/* ══════════════════════════════════════════════════════════
   Ivory Studios — Premium Agency Stylesheet
   Dark warm theme | Ivory accent | Syne headings | Inter body
   ══════════════════════════════════════════════════════════ */

/* ─── Design tokens ──────────────────────────────────────── */
:root {
  --bg:         #080706;
  --bg-card:    #111009;
  --bg-card2:   #181512;
  --surface:    #201d18;
  --ivory:      #f0e6d3;
  --ivory-dim:  rgba(240,230,211,.65);
  --gold:       #c8a46e;
  --text:       #e8e1d8;
  --text-muted: #8a8175;  /* ~5.3:1 on bg — passes WCAG AA for body text */
  --text-dim:   #6f685d;  /* lifted from #3d3a35 for legible micro-labels */
  --border:     #201e1a;
  --border2:    #2e2a24;

  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius:    6px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow:    0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.75);

  --nav-h:    68px;
  --container: 1200px;

  --ease-spring: cubic-bezier(.22,1,.36,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
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: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ─── Custom cursor ──────────────────────────────────────────
   The native cursor is only hidden once JS confirms a fine pointer
   and adds .has-custom-cursor — so it never disappears on touch
   devices or on pages that don't load the cursor script. */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }

.cursor-dot, .cursor-ring { display: none; }
html.has-custom-cursor .cursor-dot,
html.has-custom-cursor .cursor-ring { display: block; }

/* Native pointer on interactive elements (custom-cursor pages override
   this with the !important rule above, so it only shows where relevant). */
a[href], button, summary, label[for], .magnetic, [onclick] { cursor: pointer; }

.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 6px; height: 6px;
  background: var(--ivory);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .2s;
  will-change: left, top;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(240,230,211,.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-spring), height .3s var(--ease-spring), border-color .2s, opacity .2s;
  will-change: left, top;
}
body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot { width: 10px; height: 10px; background: var(--ivory); }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 56px; height: 56px; border-color: var(--ivory); }

/* ─── Page loader ────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-word {
  font-family: var(--font-head);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.loader-word span { color: var(--ivory); }
.loader-bar {
  width: 200px; height: 2px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--ivory);
  border-radius: 2px;
  animation: loadFill .8s var(--ease-out) forwards;
}
@keyframes loadFill { from { width: 0; } to { width: 100%; } }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.dark-section { background: var(--bg-card); }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 40px;
  background: rgba(8,7,6,.0);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(8,7,6,.92);
  border-color: var(--border);
  backdrop-filter: blur(14px);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text);
  transition: color .2s;
}
.nav-logo .logo-accent { color: var(--ivory); }
.nav-logo:hover { color: var(--ivory); }
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-links li a {
  position: relative;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  letter-spacing: .3px;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links li a::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 1.5px; background: var(--ivory);
  border-radius: 2px;
  transition: left .25s var(--ease-spring), right .25s var(--ease-spring);
}
.nav-links li a:hover { color: var(--text); }
.nav-links li a:hover::after { left: 14px; right: 14px; }
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: var(--ivory);
  color: var(--bg);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-nav:hover { background: #fff; box-shadow: 0 4px 20px rgba(240,230,211,.2); }
.nav-ham {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 8px; margin-left: auto;
}
.nav-ham span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease-spring), opacity .3s;
}
.nav-ham.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-nav   { display: none; }
  .nav-ham   { display: flex; }
}

/* ─── Mobile menu ────────────────────────────────────────── */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--bg-card);
  display: flex; flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .4s var(--ease-spring);
}
.mobile-menu.open { transform: none; }
.mm-link {
  font-family: var(--font-head);
  font-size: 32px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s, padding-left .3s;
}
.mm-link:hover { color: var(--ivory); padding-left: 8px; }
.full-w  { width: 100%; justify-content: center; }
.mt { margin-top: 16px; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--ivory);
  color: var(--bg);
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  letter-spacing: .3px;
  transition: background .2s, transform .25s var(--ease-spring), box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 6px 28px rgba(240,230,211,.22);
  transform: translateY(-2px);
}
.btn-primary:active { transform: scale(.97); }
.btn-primary.btn-xl { padding: 16px 36px; font-size: 15px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-ghost:hover {
  border-color: var(--ivory);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* ─── Section typography ─────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1.5px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: .5px;
  color: var(--text);
}
.section-title .accent { color: var(--ivory); }
.section-sub { font-size: 15px; color: var(--text-muted); margin-top: 14px; line-height: 1.7; }
.section-header { margin-bottom: 56px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: clip;
  padding-top: var(--nav-h);
}
.hero-noise {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  opacity: .35;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.hero-title {
  display: flex; flex-direction: column;
  font-family: var(--font-head);
  font-size: clamp(52px, 7.5vw, 110px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 28px;
}
.ht-line {
  display: block;
  opacity: 0;
  transform: translateY(40px) skewY(2deg);
  transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring);
}
.ht-line.visible {
  opacity: 1;
  transform: none;
}
.accent-line { color: var(--ivory); }
.hero-sub {
  font-size: 16px; font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-proof {
  display: flex; align-items: center; gap: 0;
}
.proof-item { text-align: center; padding: 0 24px; }
.proof-item strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--ivory); }
.proof-item span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.proof-sep { width: 1px; height: 36px; background: var(--border2); flex-shrink: 0; }
.proof-item:first-child { padding-left: 0; }

/* Hero visual */
.hero-visual { position: relative; flex-shrink: 0; }
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hc-main { width: 320px; }
.hc-img { aspect-ratio: 16/10; overflow: hidden; }
.hc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-spring); filter: brightness(.85); }
.hc-main:hover .hc-img img { transform: scale(1.04); filter: brightness(1); }
.hc-body { padding: 18px 20px; }
.hc-tag { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.hc-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); }
.hc-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.hc-float {
  position: absolute;
  bottom: -20px; left: -50px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: floatCard 3s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hc-float svg { color: var(--gold); flex-shrink: 0; }
.hc-float-num { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--ivory); }
.hc-float-label { font-size: 11px; color: var(--text-muted); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1.5px; height: 40px;
  background: linear-gradient(to bottom, var(--border2), transparent);
  animation: scrollBob 1.8s ease-in-out infinite;
}
@keyframes scrollBob { 0%,100% { opacity:1; transform: scaleY(1); } 50% { opacity:.4; transform: scaleY(.5) translateY(-10px); } }

/* ─── Marquee ────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 20px;
}
.marquee-track .mq-sep { color: var(--gold); padding: 0 4px; font-size: 10px; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ─── Services ───────────────────────────────────────────── */
.services-grid {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.service-item {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  gap: 24px;
  align-items: start;
  padding: 32px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  transition: background .25s, padding-left .3s;
}
.service-item:last-child { border-bottom: none; }
.service-item:hover { background: var(--bg-card2); padding-left: 48px; }
.service-item:hover .si-arrow { opacity: 1; transform: none; color: var(--ivory); }
.si-num {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding-top: 4px;
}
.si-title {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
  transition: color .2s;
}
.service-item:hover .si-title { color: var(--ivory); }
.si-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.si-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.si-tags li {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  color: var(--text-muted);
  letter-spacing: .3px;
}
.service-item:hover .si-tags li { border-color: rgba(240,230,211,.2); color: var(--ivory-dim); }
.si-arrow {
  opacity: 0;
  transform: translate(-6px, 6px);
  color: var(--text-dim);
  transition: opacity .25s, transform .3s var(--ease-spring), color .2s;
  padding-top: 4px;
}

/* ─── Portfolio / Work ───────────────────────────────────── */
.work-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.work-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.work-row--flip { grid-template-columns: 1fr 1.5fr; }

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  display: block;
  transition: transform .4s var(--ease-spring), box-shadow .4s;
  transform-style: preserve-3d;
}
.work-card:hover { box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(240,230,211,.08); }
.work-card--large .wc-img { aspect-ratio: 16/7; }
.wc-img { aspect-ratio: 4/3; overflow: hidden; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-spring), filter .4s; filter: brightness(.6) saturate(.85); }
.work-card:hover .wc-img img { transform: scale(1.05); filter: brightness(.35) saturate(.6); }

.wc-overlay {
  position: absolute; inset: 0;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(8,7,6,.9) 0%, rgba(8,7,6,.3) 50%, transparent 100%);
  transition: background .4s;
}
.work-card:hover .wc-overlay { background: linear-gradient(to top, rgba(8,7,6,.95) 20%, rgba(8,7,6,.5) 60%, rgba(8,7,6,.2) 100%); }
.wc-tags { display: flex; gap: 6px; margin-bottom: 12px; }
.wc-tags span {
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(240,230,211,.12); color: var(--ivory-dim);
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(240,230,211,.15);
}
.wc-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800; text-transform: uppercase;
  color: var(--text); margin-bottom: 6px;
  transition: color .2s;
}
.work-card:hover .wc-title { color: var(--ivory); }
.wc-sub {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  max-width: 480px; margin-bottom: 16px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease-spring), transform .35s var(--ease-spring);
}
.work-card:hover .wc-sub { opacity: 1; transform: none; }
.wc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--ivory);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease-spring), transform .3s var(--ease-spring);
}
.work-card:hover .wc-cta { opacity: 1; transform: none; }
.wc-num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: rgba(255,255,255,.2);
}
.work-footer { display: flex; align-items: center; gap: 24px; }
.work-footer p { color: var(--text-muted); font-size: 15px; }

/* ─── Process ────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  padding: 20px 0;
}
.process-step {
  text-align: center;
  padding: 0 16px;
}
.ps-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold);
  background: rgba(200,164,110,.08);
  border: 1px solid rgba(200,164,110,.2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.ps-icon {
  width: 56px; height: 56px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--ivory);
  transition: background .2s, border-color .2s, transform .3s var(--ease-spring);
}
.process-step:hover .ps-icon { background: rgba(240,230,211,.08); border-color: var(--ivory); transform: scale(1.06); }
.ps-title {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700; text-transform: uppercase;
  color: var(--text); margin-bottom: 10px;
}
.ps-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.ps-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim);
}
.process-connector {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 56px;
  color: var(--border2);
  gap: 4px;
}
.pc-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--border2), transparent);
}

/* ─── Stats ──────────────────────────────────────────────── */
.stats-section {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex; align-items: baseline; justify-content: center; gap: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  color: var(--ivory);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: 32px; font-weight: 800;
  color: var(--gold);
  line-height: 1;
  align-self: flex-start;
  margin-top: 4px;
}
.stat-label {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .2s, transform .3s var(--ease-spring), box-shadow .3s;
  overflow: hidden;
}
.testi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.testi-card:hover { border-color: rgba(240,230,211,.15); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.testi-card:hover::before { opacity: 1; }
.testi-quote {
  font-family: Georgia, serif;
  font-size: 56px; font-weight: 700;
  line-height: .6;
  color: var(--gold);
  opacity: .4;
  margin-bottom: -12px;
}
.testi-text { font-size: 14px; color: var(--text-muted); line-height: 1.8; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px;
  background: rgba(200,164,110,.15);
  border: 1px solid rgba(200,164,110,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testi-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.testi-stars { font-size: 13px; color: var(--gold); letter-spacing: 2px; }

/* ─── CTA / Contact ──────────────────────────────────────── */
.cta-section { background: var(--bg); }
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; text-transform: uppercase;
  line-height: 1.1; letter-spacing: .5px;
  color: var(--text);
  margin-bottom: 18px;
}
.cta-title .accent { color: var(--ivory); }
.cta-sub { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; }
.cta-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cta-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.cf-icon {
  width: 24px; height: 24px;
  background: rgba(240,230,211,.08);
  border: 1px solid rgba(240,230,211,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory); flex-shrink: 0;
}
.cta-contacts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-size: 13px; color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.contact-pill:hover { border-color: var(--ivory); color: var(--ivory); }
.mt-cta { margin-top: 8px; }
.cta-right {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.footer-inner { padding: 72px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-logo span { color: var(--ivory); }
.footer-tagline { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.footer-links-group { display: flex; flex-direction: column; gap: 10px; }
.flg-title {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.footer-links-group a {
  font-size: 13px; color: var(--text-muted);
  transition: color .2s, padding-left .2s;
}
.footer-links-group a:hover { color: var(--ivory); padding-left: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}
.footer-cta {
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: var(--ivory-dim);
  transition: color .2s;
}
.footer-cta:hover { color: var(--ivory); }

/* ─── Scroll reveal animations ───────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes slideRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:none; } }

.reveal-up, .reveal-fade, .reveal-right {
  opacity: 0;
}
.reveal-up    { transform: translateY(28px); transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring); }
.reveal-fade  { transition: opacity .7s var(--ease-spring); }
.reveal-right { transform: translateX(40px); transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring); }

.reveal-up.visible, .reveal-fade.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ─── Magnetic ────────────────────────────────────────────── */
.magnetic { transition: transform .3s var(--ease-spring), background .2s, box-shadow .2s !important; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .process-connector { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .cta-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .work-row, .work-row--flip { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(32px, 10vw, 50px); letter-spacing: -0.5px; }
  /* eyebrow as a normal block so its long line wraps instead of clipping */
  .hero-eyebrow { display: block; line-height: 1.6; letter-spacing: 1px; font-size: 11px; }
  .hero-eyebrow .eyebrow-dot { display: inline-block; margin-right: 8px; vertical-align: middle; }
  .hero-proof { flex-wrap: wrap; gap: 8px 0; }
  .proof-item { padding: 0 16px; }
  .hero-btns { width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { flex: 1; justify-content: center; }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(38px, 11vw, 64px); }
  .service-item { grid-template-columns: 56px 1fr; }
  .si-arrow { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

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

/* ─── Calendly widget override ───────────────────────────── */
.calendly-inline-widget { background: var(--bg-card) !important; }

/* ════════════════════════════════════════════════════════════
   Nav actions + Client login
══════════════════════════════════════════════════════════════ */
.nav-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-login {
  font-size: 13px; font-weight: 500; letter-spacing: .3px;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-login:hover { color: var(--ivory); }
@media (max-width: 900px) { .nav-actions { display: none; } }

/* ─── Footer socials ─────────────────────────────────────── */
.footer-socials { display: flex; gap: 8px; margin-top: 6px; }
.fs-icon {
  width: 36px; height: 36px;
  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, transform .25s var(--ease-spring), background .2s;
}
.fs-icon:hover { color: var(--bg); background: var(--ivory); border-color: var(--ivory); transform: translateY(-3px); }

/* ════════════════════════════════════════════════════════════
   Auth pages (login / signup)
══════════════════════════════════════════════════════════════ */
.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 { 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; } }
.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);
  font-size: 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 / Dashboard
══════════════════════════════════════════════════════════════ */
.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); }

/* ════════════════════════════════════════════════════════════
   Project detail / case study
══════════════════════════════════════════════════════════════ */
.project-page { min-height: 100vh; }
.proj-404 { text-align: center; padding: 160px 24px; }
.proj-404 h1 { font-family: var(--font-head); font-size: 40px; text-transform: uppercase; margin-bottom: 12px; }
.proj-404 p { color: var(--text-muted); margin-bottom: 24px; }

.proj-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; }
.proj-hero-img { position: absolute; inset: 0; }
.proj-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.9); }
.proj-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(8,7,6,.4) 50%, rgba(8,7,6,.6) 100%); }
.proj-hero-inner { position: relative; z-index: 2; padding: 0 24px 64px; width: 100%; }
.proj-back {
  display: inline-block; font-size: 13px; color: var(--ivory-dim);
  margin-bottom: 28px; transition: color .2s, transform .2s;
}
.proj-back:hover { color: var(--ivory); transform: translateX(-4px); }
.proj-services { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.proj-services span {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(240,230,211,.1); border: 1px solid rgba(240,230,211,.18); color: var(--ivory-dim);
}
.proj-title { font-family: var(--font-head); font-size: clamp(38px,6vw,82px); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -1px; color: var(--text); margin-bottom: 16px; }
.proj-tagline { font-size: clamp(16px,2vw,20px); color: var(--text-muted); max-width: 620px; line-height: 1.6; }

.proj-meta-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 36px 24px; border-bottom: 1px solid var(--border); margin-bottom: 56px;
}
.pm-item { display: flex; flex-direction: column; gap: 6px; }
.pm-item span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.pm-item strong { font-size: 15px; color: var(--text); font-weight: 600; }
.pm-item .muted { color: var(--text-muted); font-weight: 400; }
.pm-item a { color: var(--ivory); font-size: 15px; font-weight: 600; }
.pm-item a:hover { text-decoration: underline; }

.proj-body { padding-bottom: 56px; }
.proj-intro { font-size: clamp(20px,2.6vw,30px); font-family: var(--font-head); font-weight: 600; line-height: 1.4; color: var(--text); max-width: 880px; margin-bottom: 56px; }
.proj-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 64px; }
.proj-metric { padding: 28px; background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-xl); text-align: center; transition: border-color .2s, transform .3s var(--ease-spring); }
.proj-metric:hover { border-color: rgba(240,230,211,.18); transform: translateY(-4px); }
.pmet-val { font-family: var(--font-head); font-size: clamp(32px,4vw,48px); font-weight: 800; color: var(--ivory); line-height: 1; }
.pmet-label { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }

.proj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.proj-h2 { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.proj-col p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }

.proj-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.proj-shot { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border2); }
.proj-shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s var(--ease-spring); }
.proj-shot:hover img { transform: scale(1.04); }

.proj-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.proj-stack-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-right: 8px; }
.stack-pill { font-size: 12px; padding: 6px 14px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border2); color: var(--text-muted); }

.proj-next { margin-top: 0; }
.proj-next-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 24px; flex-wrap: wrap; }
.proj-next-title { display: block; font-family: var(--font-head); font-size: clamp(28px,4vw,48px); font-weight: 800; text-transform: uppercase; color: var(--text); margin-top: 8px; transition: color .2s, transform .3s var(--ease-spring); }
.proj-next-title:hover { color: var(--ivory); transform: translateX(8px); }

@media (max-width: 768px) {
  .proj-meta-bar { grid-template-columns: 1fr 1fr; }
  .proj-metrics { grid-template-columns: 1fr; }
  .proj-cols { grid-template-columns: 1fr; gap: 32px; }
  .proj-gallery { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   Multi-page additions (inner page hero, services, FAQ, about,
   contact, CTA band) — shared across the sub-pages.
══════════════════════════════════════════════════════════════ */

/* hero card as a link */
a.hc-main { color: inherit; }

/* ─── Inner page hero ────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero--tight { padding-bottom: 32px; }
.page-hero .hero-grid-bg { opacity: .25; }
.page-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800; text-transform: uppercase;
  line-height: 1.0; letter-spacing: -1px;
  color: var(--text); margin: 8px 0 18px;
}
.page-hero-title .accent { color: var(--ivory); }
.page-hero-sub { font-size: clamp(15px,2vw,18px); color: var(--text-muted); line-height: 1.7; max-width: 620px; }

/* ─── Section CTA (centered button under a section) ──────── */
.section-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ─── CTA band ───────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-band-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800; text-transform: uppercase; line-height: 1.05;
  letter-spacing: .5px; color: var(--text); margin-bottom: 18px;
}
.cta-band-title .accent { color: var(--ivory); }
.cta-band-sub { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.cta-reassure { font-size: 13px; color: var(--text-muted); margin-top: 18px; letter-spacing: .2px; }

/* ─── Services detail rows ───────────────────────────────── */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.svc-row:last-child { border-bottom: none; }
.svc-row--flip .svc-info { order: 2; }
.svc-num { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.svc-title { font-family: var(--font-head); font-size: clamp(30px,4vw,46px); font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.svc-lead { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.svc-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text); }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.svc-visual { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border2); }
.svc-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: brightness(.82) saturate(.9); transition: transform .6s var(--ease-spring), filter .4s; }
.svc-row:hover .svc-visual img { transform: scale(1.04); filter: brightness(1) saturate(1); }

/* ─── FAQ (native details) ───────────────────────────────── */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 4px 22px;
  transition: border-color .2s, background .2s;
}
.faq-item[open] { border-color: rgba(240,230,211,.2); background: var(--bg-card2); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 24px; color: var(--gold);
  transition: transform .3s var(--ease-spring); line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* ─── About story ────────────────────────────────────────── */
.about-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-h2 { font-family: var(--font-head); font-size: clamp(26px,3vw,38px); font-weight: 700; text-transform: none; line-height: 1.2; color: var(--text); margin-bottom: 20px; }
.about-story-text p { font-size: 16px; color: var(--text-muted); line-height: 1.85; margin-bottom: 16px; }
.about-story-img { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border2); }
.about-story-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: brightness(.85) saturate(.9); }

/* ─── Values ─────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 28px;
  transition: border-color .2s, transform .3s var(--ease-spring);
}
.value-card:hover { border-color: rgba(240,230,211,.18); transform: translateY(-4px); }
.value-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(200,164,110,.1); border: 1px solid rgba(200,164,110,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 18px;
}
.value-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--text); margin-bottom: 10px; line-height: 1.2; }
.value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ─── Contact methods ────────────────────────────────────── */
.contact-methods { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.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, transform .2s, background .2s;
}
.contact-method:hover { border-color: var(--ivory); transform: translateX(4px); background: var(--bg-card2); }
.cm-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ivory); flex-shrink: 0; }
.cm-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.cm-value { font-size: 15px; color: var(--text); font-weight: 500; }
.contact-socials-row { display: flex; gap: 10px; }

@media (max-width: 900px) {
  .svc-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .svc-row--flip .svc-info { order: 0; }
  .about-story { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .svc-list { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   Accessibility, performance & mobile polish (pre-launch pass)
══════════════════════════════════════════════════════════════ */

/* Skip link — first stop for keyboard users */
.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-spring);
}
.skip-link:focus { top: 16px; outline: none; }

/* Visible keyboard focus everywhere (mouse users are unaffected) */
:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, summary:focus-visible,
.btn-primary:focus-visible, .btn-ghost:focus-visible, .btn-nav:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ivory); outline-offset: 1px;
}
[tabindex="-1"]:focus { outline: none; }

/* Larger touch targets on phones (WCAG 2.5.5) */
@media (max-width: 768px) {
  .nav-links li a, .nav-login { min-height: 44px; display: inline-flex; align-items: center; }
  .fs-icon { width: 44px; height: 44px; }
  .mm-link { padding: 14px 0; }
  .btn-primary, .btn-ghost, .btn-nav { min-height: 46px; }
  .faq-item summary { padding: 20px 0; }
}

/* Respect users who ask for less motion — also a low-end-device safeguard.
   Content is shown instantly; nothing animates, scrolls-jacks, or loops. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-fade, .reveal-right, .ht-line { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .loader { display: none !important; }
  .hc-float, .eyebrow-dot, .scroll-line, .phase-node.active .phase-dot { animation: none !important; }
  html.has-custom-cursor, html.has-custom-cursor * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ─── Project Inquiry Form ─────────────────────────────────── */
.form-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  color: var(--text-muted);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.form-section-divider::before,
.form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border2);
}

.inquiry-form-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.inquiry-form-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ivory);
}
.inquiry-form-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: .95rem;
  max-width: 540px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.iform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 580px) {
  .iform-row { grid-template-columns: 1fr; }
}
.iform-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.iform-group label {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.iform-group input,
.iform-group select,
.iform-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  appearance: none;
  -webkit-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='%238a8175' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.iform-group input:focus,
.iform-group select:focus,
.iform-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,164,110,.12);
}
.iform-group input::placeholder,
.iform-group textarea::placeholder {
  color: var(--text-dim);
}
.iform-group textarea { resize: vertical; min-height: 120px; }

.iform-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.iform-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text-muted);
  transition: border-color .2s, color .2s, background .2s;
  user-select: none;
}
.iform-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border2);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color .2s, background .2s;
}
.iform-check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.iform-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 2px; top: 0px;
  width: 6px; height: 9px;
  border: 1.5px solid var(--bg);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.iform-check:has(input:checked) {
  border-color: var(--gold);
  color: var(--ivory);
  background: rgba(200,164,110,.08);
}

.iform-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
}
.iform-note {
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: -8px;
}

/* Print: clean, ink-friendly */
@media print {
  .nav, .mobile-menu, .cursor-dot, .cursor-ring, .loader, .skip-link, .hero-scroll-hint { display: none !important; }
  body { background: #fff; color: #111; }
}

/* ════════════════════════════════════════════════════════════
   Portal & admin additions (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 (responsive → stacked cards 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; }
}
