/* domain-portfolio: shared theme system. Four themes via body class; no frameworks. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #0d1017; --bg2: #121a2b; --panel: rgba(255,255,255,.035); --panel-b: rgba(230,207,154,.18);
  --ink: #f3ede1; --ink-2: #c9c2b4; --ink-3: #8f897d;
  --gold: #c8a96a; --gold-2: #e6cf9a; --gold-ink: #17130b;
  --line: rgba(230,207,154,.22); --err: #f0a39a; --ok: #a9d7b5;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px; --gutter: clamp(16px, 4vw, 40px); --max: 1160px;
  color-scheme: dark;
}
/* Theme A: Executive Minimal (charcoal into navy) */
.theme-executive { --bg: #0c0f15; --bg2: #13203a; }
/* Theme B: Editorial Premium (warm ivory paper, charcoal ink) */
.theme-editorial { --bg: #f4efe4; --bg2: #e9e1cf; --panel: rgba(255,255,255,.6); --panel-b: rgba(23,19,11,.14);
  --ink: #17140f; --ink-2: #3d382f; --ink-3: #635c50; --gold: #8a6a2c; --gold-2: #6e5420; --gold-ink: #fbf7ee;
  --line: rgba(23,19,11,.16); --err: #a3352a; --ok: #2f6b3f; color-scheme: light; }
/* Theme C: Technology Modern (deep navy, cool champagne) */
.theme-technology { --bg: #070b16; --bg2: #0f1d3d; --gold: #d2bd8e; --gold-2: #ecdcb6; --line: rgba(210,189,142,.2); }
/* Theme D: Heritage / Established (warm black, richer gold, double rules) */
.theme-heritage { --bg: #110e0a; --bg2: #1f1a12; --gold: #c9a45c; --gold-2: #e8cc8f; --line: rgba(232,204,143,.26); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); overflow-x: hidden;
  background-image: radial-gradient(1200px 700px at 85% -10%, var(--bg2), transparent 60%), radial-gradient(900px 600px at -10% 110%, var(--bg2), transparent 55%);
  background-attachment: fixed; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
.muted, .small { color: var(--ink-3); }
.small { font-size: .82rem; margin: .9rem 0 0; }

/* Header */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); position: relative; z-index: 2; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 600 1.25rem/1 var(--serif); letter-spacing: .01em; }
.wm-mark { width: 22px; height: 22px; border: 1.5px solid var(--gold); transform: rotate(45deg); border-radius: 3px; position: relative; }
.wm-mark::after { content: ""; position: absolute; inset: 5px; background: var(--gold); border-radius: 1px; opacity: .85; }
.wm-ext { color: var(--gold-2); }
.label { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }

/* Hero */
.hero { position: relative; padding: clamp(48px, 10vh, 120px) 0 clamp(56px, 10vh, 110px); overflow: hidden; }
.ornament { position: absolute; right: -120px; top: 50%; width: min(720px, 90vw); height: auto; transform: translateY(-50%);
  fill: none; stroke: var(--gold); stroke-width: .8; opacity: .22; pointer-events: none; }
.ornament .dot { fill: var(--gold); stroke: none; }
.theme-editorial .ornament { opacity: .28; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.domain { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .95; letter-spacing: -.015em;
  font-size: clamp(3rem, 9.5vw, 8.25rem); word-break: keep-all; }
.domain.len-l { font-size: clamp(2.7rem, 8.4vw, 7.4rem); }
.domain.len-m { font-size: clamp(2.4rem, 7.6vw, 6.6rem); }
.domain.len-xl { font-size: clamp(2.15rem, 6.6vw, 5.8rem); }
.d-ext { color: var(--gold-2); font-style: italic; }
.tagline { max-width: 34rem; margin: 26px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-2); font-weight: 300; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.cta-note { font-size: .85rem; color: var(--ink-3); }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 600 .95rem/1 var(--sans); letter-spacing: .03em;
  color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 30px -12px rgba(200,169,106,.55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); color: var(--gold-ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.theme-heritage .facts { border-top: 3px double var(--line); border-bottom: 3px double var(--line); }
.fact-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fact { padding: 24px 18px 22px 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 18px; }
.fact dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fact dd { margin: 0; font: 500 1.35rem/1.25 var(--serif); color: var(--ink); }
.footnote { margin: 0; padding: 0 0 18px; font-size: .78rem; color: var(--ink-3); max-width: 62rem; }

/* Sections */
.opportunity, .enquire { padding: clamp(56px, 9vw, 110px) 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
h2 { font: 500 clamp(1.9rem, 4vw, 2.8rem)/1.1 var(--serif); margin: 0; letter-spacing: -.01em; }
.opportunity p { margin: 0 0 1rem; color: var(--ink-2); font-size: 1.05rem; }
.opportunity p.muted { color: var(--ink-3); font-size: .9rem; }
.enquire { border-top: 1px solid var(--line); }
.enquire-intro p { color: var(--ink-2); margin: 16px 0 0; }
.assurances { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.assurances li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .95rem; }
.assurances li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border: 1.5px solid var(--gold); transform: rotate(45deg); }

/* Form */
.form-card { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 30px 80px -50px rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.theme-editorial .form-card { box-shadow: 0 30px 60px -45px rgba(40,30,10,.45); }
.field { margin: 0 0 18px; }
label, legend, summary { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.opt, .req { font-weight: 400; font-size: .74rem; color: var(--ink-3); margin-left: 4px; letter-spacing: .02em; }
.req { color: var(--gold-2); }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: rgba(0,0,0,.22);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease; }
.theme-editorial input, .theme-editorial select, .theme-editorial textarea { background: #fffdf8; }
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,106,.22); }
input[readonly] { color: var(--gold-2); border-style: dashed; background: transparent; font-weight: 600; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.hint { margin: 6px 0 0; font-size: .8rem; color: var(--ink-3); }
.err { margin: 6px 0 0; font-size: .84rem; color: var(--err); }
.has-error input, .has-error textarea, .has-error select, [aria-invalid="true"] { border-color: var(--err); }
.form-error { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--err); border-radius: 10px; color: var(--err); font-size: .9rem; }
fieldset.offer { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.offer-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
.offer-row .field { margin: 0; }
details.contact { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 0 0 16px; }
details.contact summary { cursor: pointer; padding: 15px 0; margin: 0; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
details.contact summary::-webkit-details-marker { display: none; }
details.contact summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--gold-2); }
details.contact[open] summary::after { content: "\2013"; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding-bottom: 4px; }
.contact-grid .pref { grid-column: 1 / -1; }
.anon-note { font-size: .86rem; color: var(--ink-2); margin: 0 0 18px; padding-left: 12px; border-left: 2px solid var(--gold); }
.enquiry .btn { width: 100%; }
.ack h3 { font: 500 1.9rem/1.15 var(--serif); margin: 0 0 12px; }
.ack p, .ack-card p { color: var(--ink-2); }
.ref { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; color: var(--gold-2); }
.ack-card { max-width: 40rem; }
.ack-card h3 { font: 500 2rem/1.15 var(--serif); margin: 0 0 12px; }

/* Prose (privacy) */
.prose { max-width: 46rem; padding-top: 20px; padding-bottom: 80px; }
.prose h1 { font: 500 clamp(2.2rem, 6vw, 3.4rem)/1.05 var(--serif); margin: 10px 0 8px; }
.prose h2 { font-size: 1.55rem; margin: 34px 0 8px; }
.prose p { color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 46px; font-size: .84rem; color: var(--ink-3); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 10px 40px; }
.foot-grid p { margin: 0 0 8px; }
.foot-grid p:last-child { grid-column: 2; }
.foot-domain { font: 500 1.3rem/1.2 var(--serif); color: var(--ink-2); }

/* Motion: restrained, and off for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero .domain, .hero .tagline, .hero .cta-row { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .domain { animation-delay: .08s; } .hero .tagline { animation-delay: .18s; } .hero .cta-row { animation-delay: .28s; }
  .ornament { animation: drift 40s linear infinite alternate; }
  @keyframes rise { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes drift { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(8deg); } }
}

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; } .foot-grid p:last-child { grid-column: 1; }
  .ornament { right: -45vw; opacity: .16; }
}
@media (max-width: 560px) {
  .label { font-size: .64rem; letter-spacing: .14em; padding: 6px 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px 12px 16px 0; }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
  .fact dd { font-size: 1.15rem; }
  .cta-row .btn { width: 100%; }
}
@media print { .ornament, .enquire, .skip { display: none; } body { background: #fff; color: #000; } }
