/* Ivory Studios */

/* Syne + Inter, self-hosted variable fonts (OFL). latin-ext only loads when needed. */
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/syne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/syne-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg:         #080706;
  --bg-card:    #100f0c;
  --bg-card2:   #171511;
  --surface:    #1f1c17;
  --ivory:      #f0e6d3;
  --ivory-dim:  rgba(240,230,211,.7);
  --gold:       #c8a46e;
  --gold-soft:  rgba(200,164,110,.12);
  --text:       #ebe4da;
  --text-muted: #9a9083;  /* 6.4:1 on --bg */
  --text-dim:   #8e8679;  /* 4.7:1+ on every surface, labels and meta */
  --border:     #1f1d19;
  --border2:    #2d2923;

  --font-head: 'Syne', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-lg: 0 24px 64px rgba(0,0,0,.55);

  --nav-h:     72px;
  --container: 1240px;
  --gutter:    clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  /* Width available to a heading; display sizes are capped so their longest word fits */
  --wc: calc(min(100vw, var(--container)) - 2 * var(--gutter));

  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.22,1,.36,1);
  /* Motion scale: hover feedback, component changes, reveals, hero moments */
  --dur-xs: .2s;
  --dur-s:  .35s;
  --dur-m:  .7s;
  --dur-l:  1s;
}
@media (min-width: 1800px) { :root { --container: 1440px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 1280px) { body { font-size: 17px; } }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--ivory); color: var(--bg); }
[hidden] { display: none !important; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tight-top { padding-top: 24px; }
.dark-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark-section + .dark-section { border-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* Skip link + focus */
.skip-link {
  position: fixed; top: -120px; left: 16px; z-index: 10000;
  background: var(--ivory); color: var(--bg);
  padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}
.nav.scrolled, .nav.menu-open {
  background: rgba(8,7,6,.88);
  border-color: var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-size: 17px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color .2s;
}
.nav-logo .logo-accent { color: var(--ivory); }
.nav-logo:hover { color: var(--text); }
.auth-logo { display: inline-flex; align-items: center; gap: .6em; }
.logo-mark { height: 1.55em; width: auto; flex: none; color: var(--ivory); overflow: visible; }
.logo-caret { animation: caret-blink 1.1s steps(1, end) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.nav nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: var(--ivory); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-login:hover { color: var(--ivory); }
.btn-nav {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px;
  background: var(--ivory); color: var(--bg); border-radius: 100px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease-out);
}
.btn-nav:hover { background: #fff; }
.nav-ham {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.nav-ham span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease-out); }
.nav-ham[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-ham[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav nav, .nav-actions { display: none; }
  .nav-ham { display: flex; }
}
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .nav-logo { font-size: 14px; letter-spacing: .1em; }
  .nav-ham { margin-right: -10px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mm-links { display: flex; flex-direction: column; }
.mm-link {
  font-family: var(--font-head); font-size: clamp(30px, 9vw, 44px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1;
  color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), color .2s;
  transition-delay: calc(var(--i, 0) * 50ms + 60ms);
}
.mobile-menu.open .mm-link { opacity: 1; transform: none; }
.mm-link[aria-current="page"] { color: var(--ivory); }
.mm-link[aria-current="page"]::after { content: ''; display: inline-block; width: .3em; height: .3em; margin-left: .3em; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.mm-foot { display: flex; flex-direction: column; gap: 18px; }
.mm-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--text-muted); }
.mm-meta a { min-height: 44px; display: inline-flex; align-items: center; }
.mm-meta a:hover { color: var(--ivory); }

/* Buttons */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn-primary { background: var(--ivory); color: var(--bg); }
.btn-primary svg { transition: transform .25s var(--ease-out); }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 30px rgba(240,230,211,.16); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active, .btn-ghost:active { transform: scale(.98); }
.btn-ghost { border: 1px solid var(--border2); color: var(--text); }
.btn-ghost:hover { border-color: var(--ivory-dim); color: var(--ivory); }
.btn-xl { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn-primary.full-w, .full-w { width: 100%; }
.btn-primary[disabled], .btn-primary[aria-busy="true"] { opacity: .65; pointer-events: none; }
.btn-sm { min-height: 36px !important; padding: 0 14px !important; font-size: 13px !important; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--ivory);
  border-bottom: 1px solid rgba(240,230,211,.25); padding-bottom: 2px;
  transition: border-color .2s, gap .25s var(--ease-out);
}
.text-link:hover { border-color: var(--ivory); gap: 12px; }

/* Section typography */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.section-title, .page-hero-title, .cta-band-title, .proj-title, .hero-title {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  color: var(--text); overflow-wrap: normal; word-break: normal; hyphens: manual;
}
.section-title {
  font-size: min(clamp(30px, 4.4vw, 60px), calc(var(--wc) / 10.6)); line-height: 1.02; letter-spacing: -.015em;
  text-wrap: balance; max-width: 18ch;
}
.section-title .accent, .page-hero-title .accent, .cta-band-title .accent { color: var(--gold); }
.section-sub { font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 46ch; }
.section-header { margin-bottom: clamp(40px, 5vw, 64px); }
.section-header--split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 24px clamp(32px, 6vw, 96px); }
.section-header--split .section-sub { justify-self: end; }
@media (max-width: 900px) { .section-header--split { grid-template-columns: 1fr; } .section-header--split .section-sub { justify-self: start; } }
.section-cta { display: flex; justify-content: center; margin-top: 48px; }
.muted-inline { color: var(--text-muted); }

/* Hero */
.hero {
  position: relative; overflow: clip;
  min-height: min(100svh, 1040px); display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(40px, 7vh, 88px)) 0 clamp(56px, 8vh, 96px);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: .5;
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(200,164,110,.10), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: clamp(20px, 3vh, 32px);
}
.eyebrow-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* The headline is sized from the container width so it never overflows or
   collides: "BROUGHT TO LIFE." is 15.3em wide, "BROUGHT TO" 11.2em, and the
   longest word ("BROUGHT") 8.6em. */
.hero-title {
  --c: calc(min(100vw, var(--container)) - 2 * var(--gutter));
  font-size: min(calc(var(--c) / 15.9), 150px);
  line-height: .95; letter-spacing: -.02em;
  margin-bottom: clamp(32px, 5vh, 56px);
}
@media (max-width: 899px) { .hero-title { font-size: calc(var(--c) / 11.6); } }
@media (max-width: 599px) { .hero-title { font-size: min(calc(var(--c) / 8.9), 60px); line-height: .98; } }
.ht-line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.ht-line > span { display: inline-block; }
.accent-line { color: var(--gold); }

.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, clamp(400px, 32vw, 540px));
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text-muted); max-width: 34em; margin-bottom: 32px; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-services { display: flex; flex-wrap: wrap; gap: 8px 22px; width: 100%; padding-top: 24px; border-top: 1px solid var(--border2); max-width: 34em; }
.hero-services a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: var(--text-muted); transition: color .2s; }
.hero-services a::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero-services a:hover { color: var(--ivory); }

.hero-feature {
  position: relative; display: block; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border2);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.hf-img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface); }
.hf-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transition: transform .8s var(--ease-out); }
.hf-caption { position: relative; display: grid; gap: 4px; padding: 18px 64px 20px 22px; }
.hf-tag { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hf-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.hf-meta { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.hf-arrow {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center; color: var(--ivory);
  transition: background .25s, color .25s, border-color .25s;
}
.hero-feature:hover { border-color: rgba(240,230,211,.22); }
.hero-feature:hover .hf-img img { transform: scale(1.04); }
.hero-feature:hover .hf-arrow { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }

@media (max-width: 899px) {
  .hero-row { grid-template-columns: 1fr; align-items: start; }
  .hero-feature { max-width: 560px; }
  .hf-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .hero-eyebrow { font-size: 12px; letter-spacing: .08em; align-items: flex-start; line-height: 1.5; }
  .eyebrow-dot { margin-top: 4px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns > * { width: 100%; }
}
/* Short landscape phones: keep the hero compact */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--nav-h) + 24px); }
}

/* Hero entrance. Pure CSS, so the hero never waits for JavaScript. */
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
.hero-eyebrow { animation: fadeUp .7s var(--ease-out) both; }
.ht-line > span { animation: lineUp 1s var(--ease-out) both; }
.ht-line:nth-child(1) > span { animation-delay: .08s; }
.ht-line:nth-child(2) > span { animation-delay: .18s; }
.hero-copy { animation: fadeUp .8s .38s var(--ease-out) both; }
.hero-feature { animation: reveal 1.1s .3s var(--ease-out) both; }
.hero-feature .hf-img img { animation: settle 1.6s .3s var(--ease-out) both; }

/* Scroll reveals (only hidden once JS has loaded) */
.js .reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal-up.visible { opacity: 1; transform: none; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.intro-statement {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(24px, 2.8vw, 38px); line-height: 1.25; color: var(--text); text-wrap: pretty;
}
.intro-facts { display: grid; gap: 0; border-top: 1px solid var(--border2); }
.intro-facts li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--border2); }
.intro-facts strong { font-size: 16px; font-weight: 600; color: var(--text); }
.intro-facts span { font-size: 15px; color: var(--text-muted); }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.service-card { grid-column: span 2; }
.service-card:nth-child(-n+2) { grid-column: span 3; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  min-height: 260px; padding: clamp(24px, 2.5vw, 36px);
  background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius-xl);
  transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}
.sc-num { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.sc-title { font-family: var(--font-head); font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.15; color: var(--text); margin-top: auto; }
.sc-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 36em; }
.sc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ivory-dim); transition: color .2s, gap .25s var(--ease-out); }
.service-card:hover { border-color: rgba(240,230,211,.22); background: var(--bg-card2); }
.service-card:hover .sc-link { color: var(--ivory); gap: 12px; }
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card, .service-card:nth-child(-n+2) { grid-column: span 1; }
  .service-card:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .service-card { min-height: 0; }
}

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.work-grid--single { grid-template-columns: 1fr; }
.work-card {
  display: flex; flex-direction: column; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border2);
  transition: border-color .3s, transform .45s var(--ease-out);
}
.dark-section .work-card { background: var(--bg); }
.wc-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.wc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .4s; filter: saturate(.9); }
.wc-body { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.2vw, 30px); flex: 1; }
.wc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--text-muted); }
.wc-badge {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--border2); color: var(--text-muted);
}
.wc-badge--client { background: var(--gold-soft); border-color: rgba(200,164,110,.4); color: var(--gold); }
.wc-title { font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.15; color: var(--text); margin-top: 6px; }
.wc-sub { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.wc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--ivory-dim); transition: color .2s, gap .25s var(--ease-out); }
.work-card:hover { border-color: rgba(240,230,211,.22); }
.work-card:hover .wc-img img { transform: scale(1.04); filter: saturate(1); }
.work-card:hover .wc-cta { color: var(--ivory); gap: 12px; }
.work-card--large { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.work-card--large .wc-img { position: relative; aspect-ratio: auto; min-height: clamp(380px, 38vw, 560px); }
.work-card--large .wc-img img { position: absolute; inset: 0; object-position: 50% 30%; }
.work-card--large .wc-body { justify-content: center; padding: clamp(28px, 4vw, 56px); gap: 12px; }
.work-card--large .wc-title { font-size: clamp(30px, 3.4vw, 48px); }
.work-card--large .wc-sub { font-size: 17px; }
.work-card--large .wc-cta { margin-top: 12px; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-template-columns: 1fr; }
  .work-card--large .wc-img { min-height: 0; aspect-ratio: 4 / 3; }
  .work-card--large .wc-img img { position: static; }
}

/* Differentiators */
.diff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border2); border-left: 1px solid var(--border2); }
.diff-item { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--border2); border-bottom: 1px solid var(--border2); }
.diff-item h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 10px; }
.diff-item p { font-size: 15px; color: var(--text-muted); }
@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .diff-grid { grid-template-columns: 1fr; } }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.process-step {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 0 8px; border-top: 1px solid var(--border2);
}
.process-step::before { content: ''; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--gold); }
.ps-num { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.ps-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ps-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; }
.ps-tag { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.process-note { margin-top: 28px; font-size: 14px; color: var(--text-dim); }
@media (max-width: 1000px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border2); }
.faq-item { border-bottom: 1px solid var(--border2); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 20px 0;
  font-family: var(--font-head); font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.35; color: var(--text);
  cursor: pointer; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border2);
  background:
    linear-gradient(var(--gold), var(--gold)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 11px no-repeat;
  transition: transform .35s var(--ease-out), border-color .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--gold); }
.faq-item summary:hover { color: var(--ivory); }
.faq-a { padding: 0 48px 24px 0; font-size: 16px; color: var(--text-muted); line-height: 1.75; }
.faq-item[open] .faq-a { animation: fadeUp .4s var(--ease-out); }

/* CTA band */
.cta-band { text-align: center; position: relative; overflow: clip; }
.cta-band::before {
  content: ''; position: absolute; left: 50%; top: 100%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(200,164,110,.10), transparent 65%); pointer-events: none;
}
.cta-band-inner { position: relative; max-width: 900px; margin: 0 auto; }
.cta-band-title { font-size: min(clamp(30px, 5.2vw, 72px), calc(var(--wc) / 10.6)); line-height: 1; letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.cta-band-sub { font-size: 18px; color: var(--text-muted); line-height: 1.65; max-width: 40em; margin: 0 auto 36px; }
.cta-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta-reassure { font-size: 14px; color: var(--text-dim); margin-top: 22px; }
@media (max-width: 480px) { .cta-band-actions { flex-direction: column; } .cta-band-actions > * { width: 100%; } }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); }
.footer-inner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.footer-cta-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--border);
}
.footer-cta-title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1.15; color: var(--text); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-logo > span > span { color: var(--ivory); }
.footer-tagline { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 30em; }
.footer-links-group { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.flg-title { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.footer-links-group a:not(.fs-icon) { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--text-muted); transition: color .2s; }
.footer-links-group a:not(.fs-icon):hover { color: var(--ivory); }
.footer-note { font-size: 14px; color: var(--text-dim); margin: 4px 0 12px; }
.footer-socials, .contact-socials-row { display: flex; gap: 8px; }
.fs-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2); border-radius: 50%; color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.fs-icon:hover { color: var(--bg); background: var(--ivory); border-color: var(--ivory); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.footer-legal { display: inline-flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-legal a, .footer-consent { color: var(--text-muted); font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
.footer-legal a:hover, .footer-consent:hover { color: var(--ivory); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } .footer-cta-row .btn-primary { width: 100%; } }

/* Inner page hero */
.page-hero { position: relative; overflow: clip; padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(48px, 8vw, 104px)) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--border); }
.page-hero--tight { padding-bottom: 40px; border-bottom: 0; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title { font-size: min(clamp(34px, 6vw, 84px), calc(var(--wc) / 11.4)); line-height: 1; letter-spacing: -.02em; margin-bottom: 24px; max-width: 15ch; text-wrap: balance; }
.page-hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); line-height: 1.6; max-width: 40em; }
.page-hero .hero-btns { margin-top: 36px; }
.page-hero .hero-grid-bg { opacity: .35; }
.page-hero > .container > *, .page-hero-inner > * { animation: fadeUp .8s var(--ease-out) both; }
.page-hero-inner > *:nth-child(2) { animation-delay: .06s; }
.page-hero-inner > *:nth-child(3) { animation-delay: .12s; }
.page-hero-inner > *:nth-child(n+4) { animation-delay: .18s; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.crumbs a { color: var(--text-muted); transition: color .2s; }
.crumbs a:hover { color: var(--ivory); }
.crumbs span { color: var(--text-dim); }
.crumbs .crumbs-current { color: var(--ivory); }

/* Lists */
.tick-list, .dot-list { display: grid; gap: 12px; }
.tick-list li, .dot-list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); line-height: 1.55; }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a46e' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.dot-list li::before { content: ''; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dot-list li { color: var(--text-muted); }

/* Services overview */
.svc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--border2);
}
.svc-row:first-child { padding-top: 0; }
.svc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-num { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.svc-title { font-family: var(--font-head); font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: var(--text); margin-bottom: 18px; text-wrap: balance; }
.svc-title a:hover { color: var(--ivory); }
.svc-lead { font-size: 17px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; max-width: 36em; }
.svc-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: clamp(24px, 3vw, 36px); background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-xl); align-self: start; }
.svc-panel-title { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .svc-panel { grid-template-columns: 1fr; } }

/* Service page */
.svc-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-h2 { font-family: var(--font-head); font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 20px; text-wrap: balance; }
.svc-intro-lead { font-size: 18px; line-height: 1.75; color: var(--text-muted); margin-bottom: 40px; max-width: 40em; }
.svc-deliverables { position: sticky; top: calc(var(--nav-h) + 24px); padding: 32px; background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-xl); }
.svc-deliverables-title { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.svc-deliverables .dot-list { margin-bottom: 28px; }
.svc-deliverables .dot-list li { color: var(--text); }
.svc-proof { margin-top: 40px; padding: 24px 28px; border-left: 2px solid var(--gold); background: var(--bg); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-size: 16px; color: var(--text-muted); line-height: 1.7; max-width: 60em; }
.svc-proof .text-link { margin-left: 4px; font-size: 15px; }
.benefit-card { padding: clamp(24px, 3vw, 36px); background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius-xl); }
.benefit-num { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 18px; }
.benefit-card h3 { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.25; }
.benefit-card p { font-size: 15px; color: var(--text-muted); }
.related-service {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 64px;
  background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-xl);
  transition: border-color .3s, background .3s;
}
.rs-name { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--text); }
.rs-sub { font-size: 15px; color: var(--text-muted); }
.rs-arrow { position: absolute; left: 28px; bottom: 24px; color: var(--gold); transition: transform .3s var(--ease-out); }
.related-service:hover { border-color: rgba(240,230,211,.22); background: var(--bg-card2); }
.related-service:hover .rs-arrow { transform: translateX(6px); }
@media (max-width: 900px) { .svc-detail-grid { grid-template-columns: 1fr; } .svc-deliverables { position: static; } }

/* Case study */
.project-page { min-height: 100vh; }
.proj-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: clip; padding-top: var(--nav-h); }
.proj-hero-img { position: absolute; inset: 0; }
.proj-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.5) saturate(.9); }
.proj-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(8,7,6,.55) 45%, rgba(8,7,6,.35) 100%); }
.proj-hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: clamp(40px, 6vw, 72px); }
.proj-hero-inner > * { animation: fadeUp .8s var(--ease-out) both; }
.proj-hero-inner > :nth-child(3) { animation-delay: .08s; }
.proj-hero-inner > :nth-child(4) { animation-delay: .14s; }
.proj-services { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.proj-services span:not(.wc-badge) { display: inline-flex; align-items: center; min-height: 24px; font-size: 12px; font-weight: 500; padding: 0 10px; border-radius: 100px; background: rgba(240,230,211,.08); border: 1px solid rgba(240,230,211,.16); color: var(--ivory-dim); }
.proj-title { font-size: min(clamp(36px, 7vw, 96px), calc(var(--wc) / 11.9)); line-height: .98; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.proj-tagline { font-size: clamp(17px, 1.8vw, 22px); color: var(--ivory-dim); max-width: 34em; line-height: 1.55; }
.proj-meta-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.pm-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-item span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.pm-item strong { font-size: 15px; font-weight: 600; color: var(--text); }
.proj-body { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.proj-concept { display: flex; gap: 10px; border: 1px solid rgba(200,164,110,.35); background: var(--gold-soft); border-radius: var(--radius-lg); padding: 16px 20px; color: var(--ivory-dim); font-size: 15px; margin-bottom: 40px; max-width: 880px; }
.proj-concept strong { color: var(--gold); white-space: nowrap; }
.proj-intro { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.35; color: var(--text); max-width: 30em; margin-bottom: clamp(40px, 5vw, 64px); text-wrap: pretty; }
.proj-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
.proj-metric { padding: 28px; background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-xl); }
.pmet-val { font-size: clamp(30px, 3.6vw, 46px); color: var(--ivory); line-height: 1.05; }
.pmet-label { font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.proj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-bottom: clamp(48px, 6vw, 80px); }
.proj-h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.proj-col p { font-size: 17px; color: var(--text-muted); line-height: 1.8; }
.proj-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proj-gallery--single { grid-template-columns: 1fr; }
.proj-shot { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border2); background: var(--surface); }
.proj-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proj-gallery--single .proj-shot img { aspect-ratio: 16 / 9; object-position: 50% 35%; }
.proj-credit { margin: 14px 0 40px; font-size: 13px; color: var(--text-dim); }
.proj-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.proj-stack-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-right: 6px; }
.stack-pill { font-size: 13px; padding: 6px 14px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border2); color: var(--text-muted); }
.proj-next-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.proj-next-title { display: block; font-family: var(--font-head); font-size: min(clamp(28px, 4vw, 52px), calc(var(--wc) / 12.4)); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; color: var(--text); transition: color .2s; }
.proj-next-title:hover { color: var(--ivory); }
.proj-next .section-label { margin-bottom: 12px; }
@media (max-width: 768px) {
  .proj-meta-bar { grid-template-columns: 1fr 1fr; }
  .proj-metrics, .proj-cols, .proj-gallery { grid-template-columns: 1fr; }
  .proj-gallery--single .proj-shot img { aspect-ratio: 4 / 3; }
  .proj-concept { flex-direction: column; gap: 4px; }
}

/* About */
.about-story { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-h2 { font-family: var(--font-head); font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 24px; text-wrap: balance; }
.about-story-text p { font-size: 17px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; max-width: 38em; }
.about-mark {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  aspect-ratio: 4 / 5; padding: clamp(28px, 4vw, 48px);
  background: radial-gradient(circle at 70% 20%, rgba(200,164,110,.14), transparent 60%), var(--bg-card);
  border: 1px solid var(--border2); border-radius: var(--radius-xl); overflow: hidden;
}
.about-mark-svg { width: 42%; height: auto; color: var(--ivory); }
.about-facts { display: grid; gap: 0; border-top: 1px solid var(--border2); }
.about-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border2); font-size: 15px; }
.about-facts dt { color: var(--text-dim); }
.about-facts dd { color: var(--text); text-align: right; }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value-card { padding: 28px; background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius-xl); }
.value-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 12px; }
.value-card p { font-size: 15px; color: var(--text-muted); }
@media (max-width: 1200px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .about-story { grid-template-columns: 1fr; } .about-mark { aspect-ratio: auto; min-height: 320px; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* Contact */
.cta-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.next-steps { display: grid; gap: 0; counter-reset: ns; margin-bottom: 32px; border-top: 1px solid var(--border2); }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--border2); }
.next-steps li::before { content: '0' counter(ns); grid-row: span 2; font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--gold); padding-top: 2px; }
.next-steps strong { font-size: 16px; font-weight: 600; color: var(--text); }
.next-steps span { font-size: 15px; color: var(--text-muted); }
.contact-methods { display: grid; gap: 12px; margin-bottom: 24px; }
.contact-method {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  transition: border-color .2s, background .2s;
}
.contact-method:hover { border-color: rgba(240,230,211,.3); background: var(--bg-card2); }
.cm-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ivory); }
.cm-label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.cm-value { display: block; font-size: 15px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.contact-note { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.cta-right { background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-xl); overflow: hidden; }
.calendly-slot { min-height: 700px; position: relative; }
.calendly-slot .calendly-inline-widget { min-width: 0 !important; width: 100%; height: 700px; }
.calendly-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--text-muted); font-size: 15px; }
.calendly-slot.loaded .calendly-placeholder { display: none; }
@media (max-width: 900px) { .cta-split { grid-template-columns: 1fr; } .calendly-slot, .calendly-slot .calendly-inline-widget { min-height: 640px; height: 640px; } }

/* Project brief form */
.inquiry-form-wrap { max-width: 820px; }
.inquiry-form-title { font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; color: var(--text); margin-bottom: 12px; }
.inquiry-form-sub { font-size: 17px; color: var(--text-muted); margin-bottom: 40px; max-width: 36em; }
.inquiry-form { display: flex; flex-direction: column; gap: 22px; }
.iform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.iform-group { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.iform-group label, .iform-group legend { font-size: 14px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 0; }
.iform-group legend { margin-bottom: 10px; }
.req { color: var(--gold); }
.iform-group input:not([type=checkbox]), .iform-group select, .iform-group textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text); font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.iform-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9083' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.iform-group textarea { resize: vertical; min-height: 140px; }
.iform-group input::placeholder, .iform-group textarea::placeholder { color: var(--text-dim); }
.iform-group input:not([type=checkbox]):focus, .iform-group select:focus, .iform-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,110,.18); }
.inquiry-form .iform-group [aria-invalid="true"] { border-color: #d4877c; }
.iform-err { font-size: 13px; color: #e0a59c; min-height: 0; }
.iform-err:empty { display: none; }
.iform-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; }
.iform-check {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--border2); border-radius: 100px;
  font-size: 14px; color: var(--text-muted); cursor: pointer; user-select: none;
  transition: border-color .2s, color .2s, background .2s;
}
.iform-check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--border2); border-radius: 4px; flex: none; transition: background .2s, border-color .2s; }
.iform-check input:checked { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23080706' stroke-width='3.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--gold); }
.iform-check input:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.iform-check:has(input:checked) { border-color: var(--gold); color: var(--ivory); background: var(--gold-soft); }
.iform-submit { align-self: flex-start; min-width: 180px; }
.iform-submit[aria-busy="true"] .btn-label::after { content: '…'; }
.iform-note { font-size: 14px; color: var(--text-dim); }
.iform-note a { color: var(--ivory-dim); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .iform-row { grid-template-columns: 1fr; } .iform-submit { width: 100%; } }

/* Status notes (forms + auth) */
.auth-note { margin-top: 4px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.auth-note.err { background: rgba(200,80,70,.1); border: 1px solid rgba(200,80,70,.35); color: #e8b0a7; }
.auth-note.ok  { background: rgba(120,180,120,.1); border: 1px solid rgba(120,180,120,.35); color: #b4dcab; }

/* Spinner */
.spinner { width: 22px; height: 22px; border: 2px solid var(--border2); border-top-color: var(--ivory); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; color: var(--text); line-height: 1.75; }
.legal h2 { font-family: var(--font-head); font-size: 1.3rem; color: var(--ivory); margin: 40px 0 12px; }
.legal p, .legal ul { margin: 0 0 16px; color: var(--text-muted); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal-meta { font-size: .9rem; color: var(--text-dim) !important; }

/* Cookie consent (only shown when ad/analytics IDs are set) */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--bg-card2); border: 1px solid var(--border2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .9rem; color: var(--text-muted); }
.consent a { color: var(--ivory); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }

/* Calendly popup sits above the fixed nav */
.calendly-overlay { z-index: 10001 !important; }


/* ---------- Numerals ----------
   Syne's digits are wide display shapes (its 0 reads as an "o" at small sizes
   and its 1 as a slab), so every number on the site uses Inter's tabular
   figures: even widths, no jumping while counters run. */
.fact-num, .pmet-val, .sc-num, .ps-num, .svc-num, .benefit-num, .next-steps li::before, .ast-num, .phase-pct-val {
  font-family: var(--font-body); font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.sc-num, .ps-num, .svc-num, .benefit-num, .next-steps li::before { font-weight: 600; letter-spacing: .08em; }
.fact-num { font-weight: 700; letter-spacing: -.04em; }
.pmet-val { font-weight: 700; letter-spacing: -.03em; }
.ast-num, .phase-pct-val { font-weight: 700; letter-spacing: -.02em; }

/* ---------- Motion system ---------- */

/* Signature cursor: dot + trailing ring (fine pointers only, added by JS) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 2147483647; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ivory); transition: opacity var(--dur-xs), width var(--dur-xs), height var(--dur-xs), margin var(--dur-xs); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(240,230,211,.55);
  display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--bg);
  transition: opacity var(--dur-s), width var(--dur-s) var(--ease-out), height var(--dur-s) var(--ease-out), margin var(--dur-s) var(--ease-out), background var(--dur-s), border-color var(--dur-s), scale var(--dur-xs);
}
.cursor-ring::after { content: attr(data-label); opacity: 0; transition: opacity var(--dur-xs); }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { opacity: 1; }
html.cursor-suspended .cursor-dot, html.cursor-suspended .cursor-ring { opacity: 0 !important; }
html.cursor-on, html.cursor-on a, html.cursor-on button, html.cursor-on summary, html.cursor-on label { cursor: none; }
html.cursor-on input, html.cursor-on textarea, html.cursor-on select, html.cursor-on iframe { cursor: auto; }
html.cursor-link .cursor-ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: rgba(240,230,211,.85); background: rgba(240,230,211,.06); }
html.cursor-link .cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
html.cursor-view .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ivory); border-color: var(--ivory); }
html.cursor-view .cursor-ring::after { opacity: 1; }
html.cursor-view .cursor-dot, html.cursor-text .cursor-dot, html.cursor-text .cursor-ring { opacity: 0; }
html.cursor-down .cursor-ring { scale: .86; }

/* 3D project cards: tilt, image depth and a light that follows the pointer.
   Values come from JS as custom properties; at rest everything is flat. */
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --lift: 0px; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); transition: transform var(--dur-m) var(--ease-out), border-color var(--dur-s), box-shadow var(--dur-m) var(--ease-out); }
.tilt.is-tilting { transition: transform .12s linear, border-color var(--dur-s), box-shadow var(--dur-m) var(--ease-out); --lift: -6px; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(240,230,211,.10), transparent 60%);
  opacity: 0; transition: opacity var(--dur-s);
}
.tilt.is-tilting::after { opacity: 1; }
/* Tilt must win over the scroll-reveal transform once a card has been revealed */
.js .reveal-up.visible.tilt { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); transition: opacity .8s var(--ease-out), transform var(--dur-m) var(--ease-out), border-color var(--dur-s), box-shadow var(--dur-m) var(--ease-out); }
.js .reveal-up.visible.tilt.is-tilting { transition: opacity .8s var(--ease-out), transform .12s linear, border-color var(--dur-s), box-shadow var(--dur-m) var(--ease-out); }
.work-card.tilt, .hero-feature.tilt { position: relative; }
.tilt .wc-img img, .tilt .hf-img img { translate: var(--px, 0px) var(--py, 0px); transition: transform .9s var(--ease-out), scale .9s var(--ease-out), translate .6s var(--ease-out), filter .4s; }
.tilt.is-tilting .wc-img img, .tilt.is-tilting .hf-img img { scale: 1.06; }

/* Spotlight on service + supporting cards */
.service-card, .related-service, .benefit-card, .value-card, .diff-item { --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.service-card::before, .related-service::before, .benefit-card::before, .value-card::before, .diff-item::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(200,164,110,.10), transparent 65%);
  opacity: 0; transition: opacity var(--dur-s);
}
.service-card:hover::before, .related-service:hover::before, .benefit-card:hover::before, .value-card:hover::before, .diff-item:hover::before { opacity: 1; }
.service-card { transition: border-color var(--dur-s), background var(--dur-s), transform var(--dur-m) var(--ease-out); }
.service-card:hover { transform: translateY(-4px); }

/* Magnetic buttons (JS sets --tx/--ty) */
.magnetic { translate: var(--tx, 0) var(--ty, 0); transition: translate var(--dur-m) var(--ease-out), background var(--dur-xs), color var(--dur-xs), border-color var(--dur-xs), box-shadow var(--dur-s), transform var(--dur-s) var(--ease-out); }
.magnetic.is-pulled { transition: translate .15s linear, background var(--dur-xs), color var(--dur-xs), border-color var(--dur-xs), box-shadow var(--dur-s); }

/* Underline sweep for supporting text links */
.footer-links-group a:not(.fs-icon), .crumbs a, .mm-meta a {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat;
  transition: background-size var(--dur-s) var(--ease-out), color var(--dur-xs);
}
.footer-links-group a:not(.fs-icon):hover, .crumbs a:hover, .mm-meta a:hover { background-size: 100% 1px; }

/* Nav: entrance and logo response */
.nav { animation: navIn .8s var(--ease-out) both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.nav-logo .logo-mark { transition: transform var(--dur-m) var(--ease-out); }
.nav-logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

/* Headings inside revealed blocks wipe up from a mask */
.js .section-header.reveal-up .section-title, .js .reveal-up > .intro-title, .js .cta-band-inner.reveal-up .cta-band-title {
  clip-path: inset(0 0 100% 0); transform: translateY(.25em);
  transition: clip-path var(--dur-l) var(--ease-out) .08s, transform var(--dur-l) var(--ease-out) .08s;
}
.js .section-header.reveal-up.visible .section-title, .js .reveal-up.visible > .intro-title, .js .cta-band-inner.reveal-up.visible .cta-band-title { clip-path: inset(-10% -5% -20% -5%); transform: none; }

/* Process: the top rule draws in, then the gold marker */
.process-step { border-top-color: transparent; }
.process-step::after { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--border2); transform-origin: left; }
.process-step::before { z-index: 1; transform-origin: left; }
.js .process-step.reveal-up::after { transform: scaleX(0); transition: transform 1.1s var(--ease-out) calc(var(--d, 0ms) + .1s); }
.js .process-step.reveal-up::before { transform: scaleX(0); transition: transform .8s var(--ease-out) calc(var(--d, 0ms) + .5s); }
.js .process-step.reveal-up.visible::after, .js .process-step.reveal-up.visible::before { transform: scaleX(1); }

/* Images reveal from a mask as their card enters */
.js .work-card.reveal-up .wc-img { clip-path: inset(14% 0 0 0); transition: clip-path 1.1s var(--ease-out) calc(var(--d, 0ms) + .05s); }
.js .work-card.reveal-up.visible .wc-img { clip-path: inset(0); }
.js .proj-shot { clip-path: inset(8% 0 0 0); opacity: 0; transition: clip-path 1.1s var(--ease-out), opacity .6s var(--ease-out); }
.js .proj-shot.visible { clip-path: inset(0); opacity: 1; }

/* Intro + facts */
.intro-title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: min(clamp(36px, 5.4vw, 76px), calc(var(--wc) * .58 / 9.9)); line-height: .98; letter-spacing: -.02em; color: var(--text); margin-bottom: 28px; }
.intro-title .accent { color: var(--gold); }
.intro-title span { display: block; }
@media (max-width: 900px) { .intro-title { font-size: calc(var(--wc) / 9.9); } }
.facts-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 32px); border-left: 1px solid var(--border); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--ivory); white-space: nowrap; }
.fact-num small { font-size: .5em; font-weight: 600; color: var(--gold); margin-left: .06em; letter-spacing: 0; }
.fact-label { font-size: 15px; color: var(--text-muted); max-width: 22ch; }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; padding-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 420px) { .fact-num { font-size: 40px; } .fact-label { font-size: 14px; } }
[data-count] { display: inline-block; text-align: right; }

/* Footer sign-off */
.footer-sign {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .9;
  font-size: calc(var(--wc) / 19.2); margin-bottom: clamp(40px, 6vw, 72px); white-space: nowrap;
  color: rgba(240,230,211,.1);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .footer-sign span { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(180deg, rgba(240,230,211,.22), rgba(240,230,211,.03)); }
  .footer-sign span:last-child { background-image: linear-gradient(180deg, rgba(200,164,110,.55), rgba(200,164,110,.05)); }
}
.footer-sign span { display: inline-block; }
@media (max-width: 600px) { .footer-sign { white-space: normal; font-size: calc(var(--wc) / 10); } .footer-sign span { display: block; } }
.js .footer-sign span { opacity: 0; transform: translateY(40%); transition: opacity var(--dur-l) var(--ease-out), transform var(--dur-l) var(--ease-out); }
.js .footer-sign span:last-child { transition-delay: .12s; }
.js .footer-sign.visible span { opacity: 1; transform: none; }

/* Hero depth: the featured card drifts slightly as the page scrolls (desktop) */
.hero-feature { translate: 0 var(--drift, 0px); }

/* Touch feedback instead of hover */
@media (hover: none) {
  .work-card:active, .service-card:active, .related-service:active, .hero-feature:active { scale: .985; transition: scale .15s; }
}

/* Large screens: cap line lengths, scale type a touch */
@media (min-width: 1800px) {
  .section-title { font-size: clamp(56px, 3.4vw, 72px); }
  .page-hero-title { font-size: clamp(76px, 4.6vw, 104px); }
}

/* Reduced motion: no movement, everything visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .reveal-up { opacity: 1; transform: none; }
  .logo-caret { animation: none; }
  .js .section-header.reveal-up .section-title, .js .reveal-up > .intro-title, .js .cta-band-inner.reveal-up .cta-band-title, .js .work-card.reveal-up .wc-img, .js .proj-shot { clip-path: none; transform: none; opacity: 1; }
  .js .process-step.reveal-up::after, .js .process-step.reveal-up::before { transform: none; }
  .js .footer-sign span { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Print */
@media print {
  .nav, .mobile-menu, .skip-link, .hero-grid-bg, .hero-glow, .footer-cta-row, .cta-band { display: none !important; }
  body { background: #fff; color: #111; }
}

/* Auth pages + client portal */
/* Auth pages */
.auth-body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(200,164,110,.06), transparent 70%),
    var(--bg);
}
.auth-logo {
  position: absolute; top: 28px; left: 32px;
  font-family: var(--font-head);
  font-size: 16px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.auth-logo > span > span { color: var(--ivory); }
.auth-logo:hover { color: var(--ivory); }
.auth-shell {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 48px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  animation: authIn .55s var(--ease-spring) both;
}
@keyframes authIn { from { opacity:0; transform: translateY(20px) scale(.98); } to { opacity:1; transform:none; } }
@media (max-width: 420px) {
  .auth-card { padding: 32px 22px; }
}
.auth-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.auth-title {
  font-family: var(--font-head);
  /* Smaller title so long words fit the card on phones */
  font-size: clamp(19px, 7vw, 30px);
  font-weight: 800; text-transform: uppercase;
  color: var(--text); margin-bottom: 8px;
}
.auth-lead { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.field { display: block; margin-bottom: 16px; }
.field span {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: .5px;
  color: var(--text-muted); margin-bottom: 7px;
}
.field input, .req-form input, .req-form select, .req-form textarea {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.field input:focus, .req-form input:focus, .req-form select:focus, .req-form textarea:focus {
  outline: none; border-color: var(--ivory); background: var(--surface);
}
.field input::placeholder { color: var(--text-dim); }
.btn-primary.full-w { width: 100%; justify-content: center; margin-top: 6px; }
.auth-note {
  margin-top: 14px; padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px; line-height: 1.5;
}
.auth-note.err { background: rgba(200,80,70,.1); border: 1px solid rgba(200,80,70,.3); color: #e0a59c; }
.auth-note.ok  { background: rgba(120,180,120,.1); border: 1px solid rgba(120,180,120,.3); color: #a8d2a0; }
.auth-switch { margin-top: 22px; font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-switch a { color: var(--ivory); }
.auth-switch a:hover { text-decoration: underline; }

/* Client portal */
.portal-body { background: var(--bg); min-height: 100vh; }
.portal-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(8,7,6,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.portal-nav-right { display: flex; align-items: center; gap: 16px; }
.portal-whoami { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.portal-rolechip {
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border2); color: var(--text-muted);
}
.portal-rolechip.admin { background: rgba(200,164,110,.14); border-color: rgba(200,164,110,.3); color: var(--gold); }
.btn-sm { padding: 7px 14px !important; font-size: 12px !important; }
.portal-main { padding: 48px 0 96px; }

.portal-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.portal-h1 { font-family: var(--font-head); font-size: clamp(28px,3.5vw,42px); font-weight: 800; text-transform: uppercase; color: var(--text); }
.portal-sub { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

.portal-empty-card {
  text-align: center; padding: 64px 32px;
  background: var(--bg-card); border: 1px dashed var(--border2);
  border-radius: var(--radius-xl);
}
.pe-icon { font-size: 32px; color: var(--gold); margin-bottom: 14px; }
.portal-empty-card h3 { font-family: var(--font-head); font-size: 22px; text-transform: uppercase; margin-bottom: 8px; color: var(--text); }
.portal-empty-card p { font-size: 14px; color: var(--text-muted); max-width: 420px; margin: 0 auto 20px; line-height: 1.7; }
.portal-empty-card code { background: var(--surface); padding: 1px 6px; border-radius: 4px; font-size: 12px; color: var(--ivory); }
.portal-empty { color: var(--text-muted); padding: 32px; text-align: center; }

/* Request cards (client) */
.req-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  animation: fadeUp .5s var(--ease-spring) both;
}
.req-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.req-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.req-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.req-tags span {
  font-size: 11px; padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--border2); color: var(--text-muted);
}
.req-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 18px 0; padding: 14px 16px; background: var(--bg-card2); border-radius: var(--radius); border-left: 2px solid var(--border2); }

/* Status pill */
.status-pill {
  flex-shrink: 0;
  font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border2); color: var(--text-muted);
}
.status-pill.s-new, .status-pill.s-reviewing { background: rgba(120,140,200,.12); border-color: rgba(120,140,200,.3); color: #9fb0e0; }
.status-pill.s-discovery, .status-pill.s-design { background: rgba(200,164,110,.12); border-color: rgba(200,164,110,.3); color: var(--gold); }
.status-pill.s-development, .status-pill.s-optimization { background: rgba(110,170,200,.12); border-color: rgba(110,170,200,.3); color: #8fc4dd; }
.status-pill.s-launched, .status-pill.s-completed { background: rgba(120,180,120,.14); border-color: rgba(120,180,120,.3); color: #a8d2a0; }
.status-pill.s-on_hold { background: rgba(200,170,90,.12); border-color: rgba(200,170,90,.3); color: #d6bd7a; }
.status-pill.s-declined { background: rgba(200,90,80,.12); border-color: rgba(200,90,80,.3); color: #dba29a; }

/* Phase tracker */
.phase-track { display: flex; align-items: center; margin: 8px 0 4px; }
.phase-node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.phase-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border2);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.phase-label { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; transition: color .3s; }
.phase-line { flex: 1; height: 2px; background: var(--border2); margin: 0 4px; margin-bottom: 22px; transition: background .4s; }
.phase-line.filled { background: var(--gold); }
.phase-node.done .phase-dot { background: var(--gold); border-color: var(--gold); }
.phase-node.done .phase-label { color: var(--text-muted); }
.phase-node.active .phase-dot { background: var(--ivory); border-color: var(--ivory); box-shadow: 0 0 0 4px rgba(240,230,211,.12); animation: phasePulse 2s ease infinite; }
.phase-node.active .phase-label { color: var(--ivory); font-weight: 600; }
@keyframes phasePulse { 0%,100% { box-shadow: 0 0 0 4px rgba(240,230,211,.12); } 50% { box-shadow: 0 0 0 7px rgba(240,230,211,.05); } }
.phase-flag {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 16px; border-radius: var(--radius); margin: 4px 0;
}
.phase-flag.on_hold  { background: rgba(200,170,90,.1); color: #d6bd7a; border: 1px solid rgba(200,170,90,.25); }
.phase-flag.declined { background: rgba(200,90,80,.1); color: #dba29a; border: 1px solid rgba(200,90,80,.25); }

/* Activity timeline */
.req-updates { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.req-updates-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.req-update { display: flex; gap: 12px; padding: 8px 0; }
.ru-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex-shrink: 0; }
.ru-msg { font-size: 14px; color: var(--text); line-height: 1.5; }
.ru-time { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.ru-empty { font-size: 13px; color: var(--text-dim); font-style: italic; }

/* New request form */
.req-form-panel { margin-bottom: 24px; }
.req-form {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 28px;
  animation: fadeUp .4s var(--ease-spring) both;
}
.req-form-title { font-family: var(--font-head); font-size: 20px; text-transform: uppercase; margin-bottom: 20px; color: var(--text); }
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.req-form label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--text-muted); margin-bottom: 16px; }
.req-form label input, .req-form label select, .req-form label textarea { margin-top: 7px; }
.req-form textarea { resize: vertical; }
.rf-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
@media (max-width: 640px) { .rf-grid { grid-template-columns: 1fr; } }

/* Admin rows */
.admin-row {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 16px;
  animation: fadeUp .45s var(--ease-spring) both;
}
.admin-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.admin-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.admin-controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.admin-ctl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.admin-ctl select {
  background: var(--bg-card2); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 8px 12px; color: var(--text); font-size: 13px; font-family: inherit;
}
.admin-post { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.admin-post input {
  flex: 1; background: var(--bg-card2); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 8px 12px; color: var(--text); font-size: 13px; font-family: inherit;
}
.admin-post input:focus { outline: none; border-color: var(--ivory); }
/* Portal: completion %, lead contact, users */

/* Completion bar in the phase tracker */
.phase-pct-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.phase-pct-label { font-size: 13px; color: var(--text-muted); }
.phase-pct-label strong { color: var(--ivory); font-weight: 600; }
.phase-pct-val { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--ivory); }
.phase-pct-bar { height: 6px; background: var(--surface); border-radius: 100px; overflow: hidden; margin-bottom: 22px; }
.phase-pct-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ivory)); border-radius: 100px; transition: width .8s var(--ease-spring); }

/* Admin lead contact + status column */
.admin-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lead-pill { font-size: 12px; padding: 4px 11px; border: 1px solid var(--border2); border-radius: 100px; color: var(--text-muted); transition: border-color .2s, color .2s; }
.lead-pill:hover { border-color: var(--ivory); color: var(--ivory); }
.admin-row-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.admin-pct { font-size: 11px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }

/* Admin stats tiles */
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.admin-stat-tile { background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 20px 16px; text-align: center; }
.ast-num { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--ivory); line-height: 1; }
.ast-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 900px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

.admin-section-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin: 40px 0 18px; }

/* Admin users table, stacks on phones */
.admin-users-table { background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-lg); overflow: hidden; }
.aut-head, .aut-row { display: grid; grid-template-columns: 1.2fr 1.8fr .8fr 1fr; gap: 12px; padding: 13px 18px; align-items: center; }
.aut-head { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.aut-row { border-bottom: 1px solid var(--border); font-size: 13px; }
.aut-row:last-child { border-bottom: none; }
.aut-row a { color: var(--text-muted); }
.aut-row a:hover { color: var(--ivory); }
.role-chip { font-size: 10px; padding: 2px 9px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border2); color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.role-chip.admin { background: rgba(200,164,110,.14); border-color: rgba(200,164,110,.3); color: var(--gold); }
@media (max-width: 700px) {
  .aut-head { display: none; }
  .aut-row { grid-template-columns: 1fr; gap: 5px; padding: 14px 16px; }
  .aut-row span::before { content: attr(data-l) ": "; color: var(--text-dim); font-size: 11px; }
}
/* Admin internal-note toggle + delete button */
.admin-internal { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); white-space: nowrap; cursor: pointer; }
.admin-internal input { accent-color: var(--gold); width: 15px; height: 15px; }
.btn-del { font-size: 12px; color: #dba29a; padding: 8px 14px; border: 1px solid rgba(200,90,80,.25); border-radius: var(--radius); background: rgba(200,90,80,.06); transition: background .2s, border-color .2s; white-space: nowrap; }
.btn-del:hover { background: rgba(200,90,80,.14); border-color: rgba(200,90,80,.5); }
