/* ==========================================================================
   Codecarrots Technologies — main stylesheet (dark luxury edition)
   1 Tokens · 2 Base · 3 Layout · 4 Atmosphere (grain, cursor, preloader, progress)
   5 Components · 6 Header · 7 Hero · 8 Home sections · 9 Inner pages
   10 Forms · 11 Footer · 12 Motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('manrope-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+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallbacks (measured): text occupies the same space before and after the web fonts load */
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Helvetica'), local('Roboto'); size-adjust: 102.2%; }

:root {
  color-scheme: dark;
  /* Surfaces — true black base with warm-black layers */
  --bg: #050505;
  --bg-2: #090908;
  --surface: #0f0e0d;
  --surface-2: #161513;
  --surface-3: #1e1c1a;
  --line: rgba(255, 244, 230, 0.08);
  --line-2: rgba(255, 244, 230, 0.15);
  --line-3: rgba(255, 244, 230, 0.28);
  /* Text */
  --text: #f4f1eb;
  --text-2: #d8d3ca;
  --muted: #9e988e;      /* 7.4:1 on --bg */
  --faint: #6c675f;      /* decorative only */
  /* Accent — carrot orange (match to official logo) with champagne detailing */
  --orange: #ff6b1a;
  --orange-2: #ff9a4d;
  --orange-deep: #b8440c;
  --gold: #e2c39a;
  --grad: linear-gradient(115deg, #ff5a0a 0%, #ff8a3d 45%, #ffc48a 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 107, 26, 0.18), rgba(226, 195, 154, 0.06));
  --glow: 0 0 0 1px rgba(255, 107, 26, 0.25), 0 20px 60px -20px rgba(255, 107, 26, 0.45);
  --focus: #ffb27a;

  /* Type */
  --font: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(3rem, 1.1rem + 6.6vw, 7.5rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 4.2vw, 5.5rem);
  --fs-h2: clamp(2.2rem, 1.3rem + 3.1vw, 4.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.7rem);
  --fs-lede: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --track-display: -0.05em;
  --track-head: -0.035em;

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(3.25rem, 1.75rem + 4vw, 5.25rem);
  --section-stack: clamp(1.5rem, 0.85rem + 2vw, 2.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --max: 1440px;
  --measure: 62ch;
  --header-h: 78px;

  /* Shape */
  --r-sm: 8px; --r-md: 16px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-lux: cubic-bezier(0.77, 0, 0.175, 1);
  --d-1: 200ms; --d-2: 500ms; --d-3: 1000ms;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 300; background: var(--orange); color: #000; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: var(--s-4); }
.ic { width: 1.5em; height: 1.5em; flex-shrink: 0; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.section { position: relative; padding-block: var(--section); }
.section + .section { padding-top: var(--section-stack); }
.tone-2 { background: var(--bg-2); }
.rule-top { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(1.75rem, 1.1rem + 2vw, 3rem); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; column-gap: var(--s-8); } }
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); font-weight: 600; color: var(--gold); }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: var(--track-head); font-weight: 500; max-width: 17ch; text-wrap: balance; }
.section-intro { font-size: var(--fs-lede); color: var(--muted); max-width: 42ch; line-height: 1.55; }
.section-more { margin-top: var(--s-6); }
.sub-title { font-size: var(--fs-h3); font-weight: 600; margin: var(--s-8) 0 var(--s-5); letter-spacing: -0.015em; }
.note { margin-top: var(--s-7); color: var(--muted); }
.note a { color: var(--orange-2); }
.prose { max-width: var(--measure); color: var(--text-2); }
.prose p + p { margin-top: var(--s-4); }
.prose h2 { color: var(--text); font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem); line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; margin: var(--s-7) 0 var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose > .pending { margin-bottom: var(--s-6); }

/* 4. ATMOSPHERE ------------------------------------------------------------ */
/* Film grain over everything (static SVG noise, very low cost) */
.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 220; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(255, 107, 26, 0.8); }

/* Custom cursor (created by JS on fine pointers only) */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 244, 230, 0.4);
  display: grid; place-items: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; color: #000;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background-color 0.35s, border-color 0.35s, opacity 0.3s;
}
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(255, 107, 26, 0.7); background: rgba(255, 107, 26, 0.08); }
.cursor-ring.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--orange); border-color: var(--orange); }
.cursor-ring span { opacity: 0; transition: opacity 0.2s; }
.cursor-ring.is-view span { opacity: 1; }
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0 !important; }

/* Preloader curtain: plays once per session, never blocks (CSS auto-dismisses) */
.preloader { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-seen) .preloader {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 400; background: #000;
    animation: curtainUp 0.8s var(--ease-lux) 0.95s forwards; pointer-events: none;
  }
  .pl-inner { display: grid; gap: 1.1rem; justify-items: center; }
  .pl-mark { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 700; letter-spacing: -0.045em; display: flex; align-items: baseline; overflow: hidden; }
  .pl-mark span { display: inline-block; animation: plRise 0.9s var(--ease-out) both; }
  .pl-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); margin-left: 5px; animation: plDot 0.6s var(--ease-out) 0.45s both; box-shadow: 0 0 18px var(--orange); }
  .pl-bar { width: 140px; height: 1px; background: var(--line-2); overflow: hidden; }
  .pl-bar::after { content: ''; display: block; height: 100%; background: var(--grad); transform-origin: left; animation: plBar 1s var(--ease-lux) 0.1s both; }
}
@keyframes curtainUp { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes plRise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes plDot { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
@keyframes plBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 5. COMPONENTS ------------------------------------------------------------ */
/* Buttons */
.btn {
  --bg-b: transparent; --fg-b: var(--text); --bd-b: var(--line-2);
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem; min-height: 56px; padding: 0.85rem 1.7rem;
  border-radius: var(--r-pill); border: 1px solid var(--bd-b); background: var(--bg-b); color: var(--fg-b);
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color var(--d-2) var(--ease-out), border-color var(--d-2), box-shadow var(--d-2), translate 0.4s var(--ease-out);
  will-change: translate;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fill-b, var(--text)); transform: translateY(101%) scaleY(0.6); transform-origin: bottom; transition: transform 0.6s var(--ease-lux), border-radius 0.6s; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .ic { width: 18px; height: 18px; transition: transform var(--d-2) var(--ease-out); }
.btn:hover .ic { transform: rotate(45deg); }
.btn-primary { --bg-b: var(--orange); --fg-b: #0a0502; --bd-b: var(--orange); --fill-b: #fff3e8; box-shadow: 0 10px 40px -12px rgba(255, 107, 26, 0.65); }
.btn-primary::after { /* shine sweep */
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 5.5s var(--ease-out) 2s infinite;
}
.btn-ghost:hover, .btn-ghost:focus-visible { color: #000; border-color: var(--text); }
.btn-sm { min-height: 46px; padding: 0.6rem 1.25rem; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn[disabled]::before, .btn[disabled]::after { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Animated gradient-border button (CTA hero moment) */
.btn-aura { --bg-b: #0b0806; --fg-b: var(--text); --bd-b: transparent; --fill-b: var(--orange); min-height: 64px; padding-inline: 2.1rem; font-size: 1.0625rem; }
.btn-aura > .aura-ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 55%, var(--orange) 75%, var(--gold) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinA 4s linear infinite;
}
.btn-aura:hover, .btn-aura:focus-visible { color: #000; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spinA { to { --a: 360deg; } }

/* Text link */
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; text-decoration: none; color: var(--orange-2); background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size var(--d-2) var(--ease-out); }
.text-link:hover { background-size: 0 1px; background-position: right bottom; }
.text-link .ic { width: 1em; height: 1em; }

.stretched { text-decoration: none; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* Spotlight surface: cursor-following glow (JS sets --mx/--my) */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 140, 70, 0.13), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.spot-border::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 154, 77, 0.8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot-border:hover::after { opacity: 1; }

/* Glass card */
.glass { background: linear-gradient(180deg, rgba(255, 244, 230, 0.045), rgba(255, 244, 230, 0.015)); border: 1px solid var(--line); border-radius: var(--r-lg); backdrop-filter: blur(10px); }

/* Pending content marker */
.pending { border: 1px dashed rgba(255, 107, 26, 0.55); border-radius: var(--r-md); padding: var(--s-5) var(--s-6); background: rgba(255, 107, 26, 0.05); max-width: 70ch; margin-bottom: var(--s-7); }
.pending-title { font-weight: 700; margin-bottom: var(--s-2); color: var(--text); }
.pending-title::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 0.55rem; vertical-align: 0.1em; box-shadow: 0 0 10px var(--orange); }
.pending p:not(.pending-title) { color: var(--muted); font-size: var(--fs-sm); }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 650; padding: 0.35rem 0.75rem; border-radius: var(--r-pill); }
.tag-pending { background: rgba(0, 0, 0, 0.7); color: var(--text); border: 1px dashed var(--orange); backdrop-filter: blur(8px); }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-6); }
.crumbs li + li::before { content: '/'; margin-right: 0.45rem; color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

/* Icon badge */
.badge-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--orange-2); background: linear-gradient(160deg, rgba(255, 107, 26, 0.16), rgba(255, 107, 26, 0.02)); border: 1px solid rgba(255, 140, 70, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.badge-ic .ic { width: 26px; height: 26px; }

/* Media frame with reveal + inner parallax */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media[data-parallax] img { height: 118%; margin-top: -9%; translate: 0 var(--py, 0); will-change: translate; }
.media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }

/* 6. HEADER / NAV ---------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 200; padding-top: env(safe-area-inset-top); transition: background-color var(--d-2) var(--ease-out), border-color var(--d-2), transform 0.6s var(--ease-lux); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(5, 5, 5, 0.72); border-bottom-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; position: relative; z-index: 2; }
.wordmark { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.045em; display: inline-flex; align-items: baseline; }
.wordmark-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--orange); margin-left: 3px; transform: rotate(45deg); box-shadow: 0 0 12px rgba(255, 107, 26, 0.9); }

.nav-list { display: flex; gap: 0.1rem; align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { position: relative; display: block; padding: 0.6rem 0.85rem; text-decoration: none; font-weight: 550; font-size: 0.96rem; color: var(--text-2); transition: color var(--d-1); }
.nav-link::after { content: ''; position: absolute; left: 50%; bottom: 0.2rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform var(--d-2) var(--ease-out); box-shadow: 0 0 8px var(--orange); }
.nav-link:hover, .nav-link[aria-current] { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scale(1); }
.mega-toggle { display: grid; place-items: center; min-width: 28px; min-height: 28px; background: none; border: 0; padding: 0.4rem; cursor: pointer; color: var(--muted); border-radius: var(--r-sm); }
.mega-toggle .ic { width: 14px; height: 14px; transition: transform var(--d-2) var(--ease-out); }
.has-mega.is-open .mega-toggle .ic { transform: rotate(180deg); }
.mega-heading, .footer-heading { font-size: var(--fs-xs); font-weight: 650; color: var(--gold); margin-bottom: var(--s-4); }
.mega ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.mega li a { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; text-decoration: none; font-weight: 550; color: var(--text-2); transition: color var(--d-1), transform var(--d-2) var(--ease-out); }
.mega li a .ic { width: 20px; height: 20px; color: var(--orange-2); opacity: 0.8; }
.mega li a:hover { color: #fff; transform: translateX(6px); }
.mega-feature { position: relative; overflow: hidden; border-radius: var(--r-md); min-height: 240px; padding: var(--s-6); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-2); border: 1px solid var(--line); }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.75; transition: transform 1.2s var(--ease-out); }
.mega-feature:hover img { transform: scale(1.06); }
.mega-feature-title { font-weight: 650; font-size: 1.2rem; letter-spacing: -0.015em; }
.mega-feature p:not(.mega-feature-title) { color: var(--text-2); margin-bottom: var(--s-2); }
.menu-toggle { display: none; }

@media (min-width: 1120px) {
  .primary-nav { display: flex; align-items: center; gap: var(--s-5); }
  .has-mega > .nav-link { padding-right: 0.2rem; }
  .mega {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top));
    background: rgba(8, 8, 7, 0.92); backdrop-filter: blur(24px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: opacity var(--d-2) var(--ease-out), clip-path 0.7s var(--ease-lux), visibility 0s linear 0.7s;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  }
  .has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition-delay: 0s; }
  .js .has-mega.is-closed .mega { opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); }
  .mega-inner { max-width: var(--max); margin: 0 auto; padding: var(--s-7) var(--gutter); display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.3fr; gap: var(--s-7); }
}
@media (max-width: 1119.98px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.6rem; position: relative; z-index: 2; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text); padding: 0.55rem 1.05rem; border-radius: var(--r-pill); cursor: pointer; font-weight: 600; min-height: 46px; backdrop-filter: blur(10px); }
  .menu-toggle-bars { width: 16px; height: 10px; position: relative; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--d-2) var(--ease-out), top var(--d-2) var(--ease-out); }
  .menu-toggle-bars::before { top: 1px; } .menu-toggle-bars::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 4px; transform: rotate(-45deg); }
  .js .primary-nav {
    position: fixed; inset: 0; z-index: 1; background: radial-gradient(60rem 40rem at 100% 0%, rgba(255, 107, 26, 0.14), transparent 60%), #030303;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + var(--s-5)) var(--gutter) calc(var(--s-7) + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--s-6);
    visibility: hidden; clip-path: circle(0% at calc(100% - 3rem) 2.4rem);
    transition: clip-path 0.8s var(--ease-lux), visibility 0s linear 0.8s;
  }
  .js .primary-nav.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 3rem) 2.4rem); transition-delay: 0s; }
  .js .primary-nav .nav-item { opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.7s var(--ease-out); }
  .js .primary-nav.is-open .nav-item { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--i, 0) * 0.05s); }
  html:not(.js) .site-header { position: absolute; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .primary-nav { width: 100%; padding: 0 0 var(--s-5); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; padding: 0.85rem 0; color: var(--text); }
  .nav-link::after { display: none; }
  .mega-toggle { margin: 0; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; }
  .mega { width: 100%; display: none; padding: 0 0 var(--s-5); }
  .has-mega.is-open .mega, html:not(.js) .mega { display: block; }
  .mega-inner { display: grid; gap: var(--s-5); }
  .mega-feature { display: none; }
  .nav-cta { align-self: flex-start; }
}

/* 7. HERO ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; isolation: isolate; min-height: max(100svh, 680px);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(2rem, 1rem + 4vw, 5rem));
  display: flex; flex-direction: column; justify-content: space-between; background: #000;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.95; }
.hero-aura { position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 30rem at var(--ax, 75%) var(--ay, 35%), rgba(255, 107, 26, 0.16), transparent 65%), linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 40%, #000 100%); transition: background-position 1s; }
.hero-grid { position: relative; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5); } }
.hero-title { font-size: min(var(--fs-display), 5.6vw + 0.4rem); line-height: 0.97; letter-spacing: var(--track-display); font-weight: 500; margin-bottom: var(--s-6); }
.hl { display: block; overflow: hidden; padding: 0.04em 0 0.08em; margin: -0.04em 0 -0.08em; }
.hl > span { display: block; white-space: nowrap; }
.hero-title .hl:nth-child(2) > span { padding-left: 0.75em; }
.hero-title .hl:nth-child(3) > span { background: linear-gradient(100deg, #fff 0%, #fff 40%, #ffd7b5 70%, #ff9a4d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: var(--fs-lede); color: var(--text-2); max-width: 40ch; margin-bottom: var(--s-7); line-height: 1.55; }
.hero-visual { position: relative; max-width: 580px; justify-self: center; width: 100%; perspective: 1400px; }
.hero-visual-svg { width: 100%; overflow: visible; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 0.8s var(--ease-out); transform-style: preserve-3d; }
@media (max-width: 999.98px) { .hero-title { font-size: clamp(2.3rem, 0.6rem + 7.8vw, 5.6rem); } .hero-visual { max-width: 440px; margin-top: calc(var(--s-5) * -1); } }
.hero-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-top: var(--s-6); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); margin-top: var(--s-7); border-top: 1px solid var(--line); }
.clocks { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); }
.clocks li { display: grid; gap: 0.1rem; }
.clock-city { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; }
.clock-city { position: relative; }
.clock-city::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.clock-city::after { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; border: 1px solid #3ddc84; animation: pulse 2.4s var(--ease-out) infinite; }
.clock-time { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.scroll-cue { display: inline-flex; align-items: center; gap: 0.8rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-decoration: none; }
.scroll-cue i { position: relative; width: 22px; height: 36px; border: 1px solid var(--line-3); border-radius: 12px; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: cue 1.8s var(--ease-out) infinite; }
.scroll-cue:hover { color: var(--text); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Hero visual (generated SVG) */
.hv-face { stroke: rgba(255, 244, 230, 0.16); stroke-width: 1; }
.hv-grid { stroke: rgba(255, 244, 230, 0.07); stroke-width: 1; fill: none; }
.hv-edge { stroke: rgba(255, 244, 230, 0.4); stroke-width: 1.2; fill: none; }
.hv-node { fill: rgba(255, 244, 230, 0.6); }
.hv-node--hot { fill: var(--orange); filter: drop-shadow(0 0 4px var(--orange)); }
.hv-plane-1 .hv-face { stroke: rgba(255, 107, 26, 0.6); }
.hv-plane-1 .hv-edge { stroke: var(--orange); }
.hv-link { stroke: rgba(255, 244, 230, 0.3); stroke-width: 1; stroke-dasharray: 3 4; }
.hv-port { fill: #000; stroke: var(--orange); stroke-width: 1.4; }
.hv-label { fill: var(--muted); font: 600 13px var(--font); }
.hv-trace { fill: none; stroke: rgba(255, 107, 26, 0.3); stroke-width: 1.4; stroke-linejoin: round; }
.hv-packet { fill: #ffd2a8; opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 138, 69, 1)); }
@keyframes dash { to { stroke-dashoffset: -14; } }

/* 8. HOME SECTIONS --------------------------------------------------------- */
/* Marquee */
.marquee { position: relative; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-block: 1px solid var(--line); background: #000; overflow: hidden; }
.marquee-row { display: flex; width: max-content; }
.marquee-row + .marquee-row { margin-top: var(--s-3); }
.marquee-track { display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-right: clamp(1.5rem, 1rem + 2vw, 3rem); flex-shrink: 0; }
.marquee-track li { display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); font-size: clamp(2.4rem, 1.2rem + 4.6vw, 6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; white-space: nowrap; }
.marquee-row--rev .marquee-track li { color: rgba(255, 244, 230, 0.16); }
.marquee-track .ic { width: 0.5em; height: 0.5em; color: var(--orange); }
.marquee-row--rev .marquee-track .ic { color: var(--gold); }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #000, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #000, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-row { animation: marquee var(--speed, 48s) linear infinite; }
  .marquee-row--rev { animation-direction: reverse; --speed: 56s; }
  .marquee:hover .marquee-row { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifesto */
.manifesto-text { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.75rem); line-height: 1.18; letter-spacing: -0.035em; font-weight: 500; max-width: 24ch; text-wrap: balance; }
.manifesto-text .w { color: var(--muted); transition: color 0.5s; }
.manifesto-text .w.is-lit { color: var(--text); }
html:not(.js) .manifesto-text { color: var(--text); }
.pillars { display: grid; gap: var(--s-4); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.pillar dt { display: grid; gap: var(--s-4); justify-items: start; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.pillar dd { color: var(--muted); }

/* Services list with floating preview */
.svc-list { border-top: 1px solid var(--line); position: relative; }
.svc-row { position: relative; display: grid; gap: var(--s-4) var(--s-6); align-items: start; grid-template-columns: 56px minmax(0, 1fr); padding: clamp(1.8rem, 1.2rem + 1.8vw, 3rem) 0; border-bottom: 1px solid var(--line); transition: padding 0.6s var(--ease-out); }
.svc-row::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-lux); }
.svc-row:hover::before, .svc-row:focus-within::before { transform: scaleX(1); }
.svc-title { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.85rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; margin-bottom: var(--s-3); transition: transform 0.6s var(--ease-out), color 0.3s; }
.svc-row:hover .svc-title { transform: translateX(10px); color: #fff; }
.svc-summary { color: var(--muted); max-width: 50ch; }
.svc-alt { display: inline-block; margin-top: var(--s-3); position: relative; z-index: 2; font-weight: 650; font-size: var(--fs-sm); color: var(--orange-2); }
.svc-includes { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.svc-includes li { font-size: var(--fs-xs); font-weight: 600; padding: 0.35rem 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text-2); background: rgba(255, 255, 255, 0.02); }
.svc-arrow { grid-column: 2; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background var(--d-2) var(--ease-out), border-color var(--d-2), color var(--d-2), box-shadow var(--d-2); }
.svc-arrow .ic { width: 22px; height: 22px; transition: transform var(--d-2) var(--ease-out); }
.svc-row:hover .svc-arrow { background: var(--orange); border-color: var(--orange); color: #000; box-shadow: 0 0 40px -6px rgba(255, 107, 26, 0.8); }
.svc-row:hover .svc-arrow .ic { transform: rotate(45deg); }
@media (min-width: 1000px) {
  .svc-row { grid-template-columns: 56px minmax(0, 6fr) minmax(0, 4fr) 60px; align-items: center; }
  .svc-includes, .svc-arrow { grid-column: auto; }
}
.svc-preview { position: fixed; left: 0; top: 0; z-index: 30; width: 340px; aspect-ratio: 4 / 3; pointer-events: none; border-radius: var(--r-md); overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-6deg); transition: opacity 0.4s, transform 0.6s var(--ease-out); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2); }
.svc-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg)); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 0.45s, transform 0.9s var(--ease-out); }
.svc-preview img.is-active { opacity: 1; transform: none; }
@media (hover: none), (max-width: 999.98px) { .svc-preview { display: none; } }

/* Work */
.work-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem) var(--s-6); }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(12, 1fr); } .work-card { grid-column: span 6; } }
@media (min-width: 1000px) { .work-card { grid-column: span 5; } .work-card--wide { grid-column: span 7; } .work-home .work-card:nth-child(even) { margin-top: var(--s-10); } }
.work-card { position: relative; }
.work-link { display: block; text-decoration: none; }
.work-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); isolation: isolate; }
.work-card--wide .work-media { aspect-ratio: 16 / 11; }
.work-media img { width: 100%; height: 118%; margin-top: -9%; object-fit: cover; translate: 0 var(--py, 0); transition: scale 1.4s var(--ease-out), filter 0.8s; filter: saturate(0.9) brightness(0.9); }
.work-link:hover .work-media img { scale: 1.06; filter: saturate(1.1) brightness(1.05); }
.work-media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.6)); pointer-events: none; }
.work-media .tag { position: absolute; left: var(--s-4); top: var(--s-4); z-index: 2; }
.work-label { position: absolute; left: var(--s-6); bottom: var(--s-5); z-index: 2; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: rgba(255, 244, 230, 0.9); max-width: 12ch; }
.work-meta { padding-top: var(--s-5); display: grid; gap: var(--s-1); }
.work-cat { font-size: var(--fs-xs); color: var(--orange-2); font-weight: 650; }
.work-title { font-size: var(--fs-h3); letter-spacing: -0.025em; font-weight: 550; line-height: 1.25; }
.work-industry { color: var(--muted); font-size: var(--fs-sm); }
.work-link:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }
.work-home .section-more { display: flex; justify-content: center; }

/* Why: sticky stacking cards */
.stack { display: grid; gap: var(--s-5); }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 1.5rem + var(--i, 0) * 14px);
  display: grid; gap: var(--s-5); padding: clamp(2rem, 1.2rem + 3vw, 3.75rem); border-radius: var(--r-xl);
  background: linear-gradient(160deg, #141210 0%, #0a0908 100%); border: 1px solid var(--line-2);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.9); transform-origin: top center; overflow: hidden;
}
@media (min-width: 900px) { .stack-card { grid-template-columns: auto 1fr 1fr; align-items: center; gap: var(--s-7); min-height: 260px; } }
.stack-card h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.1; font-weight: 500; }
.stack-card p { color: var(--muted); font-size: var(--fs-lede); line-height: 1.55; }
.stack-card::after { content: ''; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 26, 0.14), transparent); pointer-events: none; }

/* Industries */
.ind-tabs { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .ind-tabs { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.ind-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ind-tab { position: relative; display: flex; align-items: center; gap: var(--s-4); text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 1.05rem 0; font-size: clamp(1.125rem, 1rem + 0.7vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); cursor: pointer; transition: color var(--d-1), padding var(--d-2) var(--ease-out); }
.ind-tab .ic { width: 24px; height: 24px; transition: color 0.3s; }
.ind-tab:hover { color: var(--text); }
.ind-tab[aria-selected="true"] { color: #fff; padding-left: var(--s-3); }
.ind-tab[aria-selected="true"] .ic { color: var(--orange); }
.ind-tab::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-lux); }
.ind-tab[aria-selected="true"]::after { transform: scaleX(1); }
.ind-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-2); padding: clamp(2rem, 1rem + 3vw, 3.75rem); min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.ind-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ind-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%); }
.ind-panels { display: grid; }
.js .ind-panel { height: 100%; }
.ind-panel + .ind-panel { margin-top: var(--s-4); }
.js .ind-panel[data-hidden] { display: none; }
.js .ind-panel + .ind-panel { margin-top: 0; }
.js .ind-panel:not([data-hidden]) > img { animation: kenburns 9s var(--ease-out) both; }
.js .ind-panel:not([data-hidden]) .ind-body { animation: panelIn 0.9s var(--ease-out) both; }
.ind-name { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); letter-spacing: -0.04em; font-weight: 500; margin: var(--s-4) 0 var(--s-4); }
.ind-body > p { color: var(--text-2); font-size: var(--fs-lede); line-height: 1.55; max-width: 44ch; }
.ind-services-label { margin-top: var(--s-6); margin-bottom: var(--s-3); font-size: var(--fs-xs); font-weight: 650; color: var(--gold); }
.ind-services { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ind-services a { display: inline-block; padding: 0.55rem 1.05rem; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); transition: background var(--d-1), color var(--d-1), border-color var(--d-1); }
.ind-services a:hover { background: var(--text); color: #000; border-color: var(--text); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.15); } to { transform: scale(1); } }

/* Process timeline */
.timeline { position: relative; display: grid; gap: var(--s-6); }
.tl-step { position: relative; padding-left: 4.5rem; }
.tl-num { position: absolute; left: 0; top: 0; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: #0c0b0a; border: 1px solid var(--line-2); z-index: 1; color: var(--muted); transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s; }
.tl-num .ic { width: 22px; height: 22px; }
.tl-idx { font-size: var(--fs-xs); color: var(--gold); font-weight: 650; display: block; margin-bottom: 0.2rem; }
.tl-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: var(--s-1); }
.tl-step p { color: var(--muted); font-size: var(--fs-sm); }
.timeline::before, .timeline::after { content: ''; position: absolute; left: calc(1.625rem - 0.5px); top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.timeline::after { bottom: auto; height: calc(var(--progress, 1) * 100%); background: var(--grad); box-shadow: 0 0 14px rgba(255, 107, 26, 0.8); }
.tl-step.is-lit .tl-num { background: var(--orange); border-color: var(--orange); color: #000; box-shadow: 0 0 30px -4px rgba(255, 107, 26, 0.9); }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(7, 1fr); gap: var(--s-4); }
  .tl-step { padding-left: 0; padding-top: 5rem; }
  .timeline::before, .timeline::after { left: 0; right: 0; top: 1.625rem; bottom: auto; height: 1px; width: auto; }
  .timeline::after { width: calc(var(--progress, 1) * 100%); right: auto; }
}

/* Insights */
.ins-grid { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .ins-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ins-grid { grid-template-columns: repeat(3, 1fr); } }
.ins-card { position: relative; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-3) var(--s-3) var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--d-2), transform 0.6s var(--ease-out); }
.ins-card:hover { border-color: var(--line-3); transform: translateY(-6px); }
.ins-card .media { aspect-ratio: 16 / 10; border-radius: calc(var(--r-lg) - 8px); margin-bottom: var(--s-3); }
.ins-card .media img { transition: scale 1.2s var(--ease-out); }
.ins-card:hover .media img { scale: 1.07; }
.ins-card > :not(.media) { padding-inline: var(--s-3); }
.ins-card h2, .ins-card h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 550; }
.ins-card p { color: var(--muted); font-size: var(--fs-sm); }
.ins-topic { font-weight: 650; color: var(--orange-2) !important; }
.ins-card .tag-pending { justify-self: start; margin-left: var(--s-3); }

/* Testimonials */
.t-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
.t-card { padding: var(--s-7); border-radius: var(--r-lg); }
.t-card blockquote p { font-size: var(--fs-lede); line-height: 1.5; margin-bottom: var(--s-5); }
.t-card figcaption { color: var(--muted); font-size: var(--fs-sm); }

/* Logo rail */
.logo-rail { overflow: hidden; padding-block: var(--s-6); border-top: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; gap: var(--s-8); width: max-content; align-items: center; }
.logo-track img { height: 40px; width: auto; filter: grayscale(1) invert(1); opacity: 0.6; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--section) * 1.15); background: #000; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000 20%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.3)), linear-gradient(0deg, #000, transparent 30%); }
.cta-orb { position: absolute; z-index: -1; width: 46rem; height: 46rem; left: var(--cx, 70%); top: var(--cy, 50%); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 26, 0.28), transparent); pointer-events: none; transition: left 1.2s var(--ease-out), top 1.2s var(--ease-out); }
.cta-inner { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .cta-inner { grid-template-columns: 7fr 5fr; gap: var(--s-9); align-items: end; } }
.cta-title { font-size: clamp(2.8rem, 1.2rem + 5.4vw, 6.75rem); line-height: 0.98; letter-spacing: var(--track-display); font-weight: 500; max-width: 13ch; text-wrap: balance; }
.cta-side { display: grid; gap: var(--s-6); }
.cta-side > p:first-child { color: var(--text-2); font-size: var(--fs-lede); line-height: 1.55; }
.cta-small { font-size: var(--fs-sm); }

/* 9. INNER PAGES ----------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(4rem, 2rem + 6vw, 8rem)); padding-bottom: clamp(4rem, 2rem + 6vw, 8rem); background: #000; border-bottom: 1px solid var(--line); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000 15%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.25)), linear-gradient(0deg, #000 0%, transparent 45%); }
.js .page-hero-bg img { animation: kenburns 14s var(--ease-out) both; }
.page-hero--full { min-height: 88svh; display: grid; align-items: center; }
.page-title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: var(--track-display); font-weight: 500; max-width: 18ch; text-wrap: balance; margin-bottom: var(--s-5); }
.page-lede { font-size: var(--fs-lede); color: var(--text-2); max-width: 50ch; line-height: 1.55; }
.page-hero .actions { margin-top: var(--s-7); }

.ov-groups { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .ov-groups { grid-template-columns: repeat(2, 1fr); } }
.ov-group { border-radius: var(--r-xl); overflow: hidden; display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); }
.ov-group .media { aspect-ratio: 16 / 8; border-radius: 0; }
.ov-group .media::after { box-shadow: none; background: linear-gradient(0deg, var(--surface), transparent 60%); }
.ov-body { display: grid; gap: var(--s-4); padding: 0 clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.75rem, 1rem + 2vw, 2.75rem); margin-top: -2.5rem; position: relative; }
.ov-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.15; font-weight: 550; }
.ov-summary { color: var(--muted); }
.ov-includes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ov-includes li { font-size: var(--fs-xs); font-weight: 600; padding: 0.35rem 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text-2); }
.ov-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }

.deliver-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .deliver-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .deliver-grid { grid-template-columns: repeat(3, 1fr); } }
.deliver-item { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--s-3); align-content: start; }
.deliver-item h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.deliver-item p { color: var(--muted); }
.deliver-item .dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.split-media { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .split-media { grid-template-columns: 6fr 6fr; gap: var(--s-9); } }
.split-media .media { aspect-ratio: 4 / 3.4; }
.outcome-list li { font-size: clamp(1.3rem, 1.05rem + 1vw, 2rem); letter-spacing: -0.025em; font-weight: 500; line-height: 1.3; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); display: flex; gap: var(--s-4); }
.outcome-list li::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; margin-top: 0.55em; border-radius: 2px; background: var(--orange); transform: rotate(45deg); box-shadow: 0 0 12px var(--orange); }

.mini-process { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mini-process li { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1.15rem 0.5rem 0.5rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-weight: 600; background: var(--surface); }
.mini-process span { width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); color: #000; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; }

.faq-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 5fr 7fr; } }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform var(--d-2) var(--ease-out), background-color 0.3s, color 0.3s; }
.faq-item[open] summary::after { transform: rotate(135deg); background-color: var(--orange); color: #000; border-color: var(--orange); }
.faq-item summary:hover { color: var(--orange-2); }
.faq-body { padding-bottom: var(--s-5); color: var(--muted); max-width: 60ch; }
.js .faq-item[open] .faq-body { animation: panelIn var(--d-2) var(--ease-out); }

.related-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); min-height: 280px; padding: var(--s-6); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-3); isolation: isolate; transition: border-color 0.4s, transform 0.6s var(--ease-out); }
.related-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--ease-out); opacity: 0.8; }
.related-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.2)); }
.related-card:hover { border-color: var(--line-3); transform: translateY(-6px); }
.related-card:hover > img { scale: 1.08; }
.related-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.related-card p { color: var(--text-2); font-size: var(--fs-sm); }
.related-card .ic { width: 22px; height: 22px; color: var(--orange-2); }

.enquire-grid, .contact-grid { display: grid; gap: var(--s-7); }
.enquire .section-title { margin-bottom: var(--s-5); }
@media (min-width: 1000px) { .enquire-grid { grid-template-columns: 4fr 7fr; gap: var(--s-9); } .contact-grid { grid-template-columns: 7fr 4fr; gap: var(--s-8); } }
.form-shell { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--r-xl); }

.solution-list { border-top: 1px solid var(--line); }
.solution { display: grid; gap: var(--s-4); padding: var(--s-7) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .solution { grid-template-columns: auto 5fr 4fr 3fr; gap: var(--s-7); align-items: start; } }
.solution-title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.4rem); letter-spacing: -0.035em; font-weight: 500; line-height: 1.12; }
.solution > p { color: var(--muted); }
.solution-label { font-size: var(--fs-xs); font-weight: 650; color: var(--gold); margin-bottom: var(--s-2); }
.solution-svcs ul { display: grid; gap: var(--s-1); }
.solution-svcs a { font-weight: 600; color: var(--orange-2); }

.ind-grid { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
.ind-card { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); min-height: 440px; padding: clamp(1.75rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-3); isolation: isolate; }
.ind-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.4s var(--ease-out); }
.ind-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 25%, rgba(0, 0, 0, 0.25)); }
.ind-card:hover > img { scale: 1.06; }
.ind-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.035em; font-weight: 500; }
.ind-card p { color: var(--text-2); }
.ind-card ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding-top: var(--s-2); }
.ind-card a { font-weight: 600; font-size: var(--fs-sm); color: var(--orange-2); position: relative; z-index: 2; }

.cs-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .cs-grid { grid-template-columns: 3fr 9fr; } .cs-meta { position: sticky; top: calc(var(--header-h) + var(--s-6)); align-self: start; } }
.cs-meta { display: grid; gap: var(--s-5); }
.cs-meta dt { font-size: var(--fs-xs); font-weight: 650; color: var(--gold); }
.cs-meta dd { font-weight: 600; }
.cs-meta a { color: var(--orange-2); }
.cs-media { margin-bottom: var(--s-7); aspect-ratio: 16 / 9; }
.cs-part { padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.cs-part h2 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--s-4); }
.cs-part .pending { margin-bottom: 0; }

.process-detail { border-top: 1px solid var(--line); }
.pd-step { display: grid; gap: var(--s-4) var(--s-7); padding: var(--s-8) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .pd-step { grid-template-columns: 7rem 6fr 4fr; } }
.pd-num { font-size: clamp(3rem, 2rem + 3vw, 5.5rem); font-weight: 200; letter-spacing: -0.05em; line-height: 0.9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-main h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); letter-spacing: -0.035em; font-weight: 500; margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-4); }
.pd-short { font-weight: 600; margin-bottom: var(--s-3); color: var(--text); }
.pd-main p:last-child { color: var(--muted); max-width: 56ch; }
.pd-label { font-size: var(--fs-xs); font-weight: 650; color: var(--gold); margin-bottom: var(--s-3); }
.pd-out { padding: var(--s-6); border-radius: var(--r-lg); }
.pd-out ul { display: grid; gap: var(--s-2); }
.pd-out li { padding-left: 1.3rem; position: relative; color: var(--text-2); }
.pd-out li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }

.about-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; } }
.about-grid .prose { font-size: var(--fs-lede); line-height: 1.6; }
.about-media { aspect-ratio: 16 / 7; margin-top: var(--s-9); }
.market-grid { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .market-grid { grid-template-columns: repeat(4, 1fr); } }
.market-grid li { padding: var(--s-6); display: grid; gap: var(--s-3); }
.market-grid h3 { font-size: 1.4rem; font-weight: 550; letter-spacing: -0.025em; }
.market-grid p { color: var(--muted); font-size: var(--fs-sm); }
.market-grid .ic { width: 28px; height: 28px; color: var(--orange-2); }

.article-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .article-grid { grid-template-columns: 3fr 9fr; } }
.article-meta { display: grid; gap: var(--s-4); align-content: start; color: var(--muted); font-size: var(--fs-sm); }
.article-meta strong { color: var(--text); }
.article-body { font-size: 1.125rem; line-height: 1.8; }
.article-cover { aspect-ratio: 16 / 8; margin-bottom: var(--s-7); }

.legal-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .legal-grid { grid-template-columns: 3fr 9fr; } .legal-toc { position: sticky; top: calc(var(--header-h) + var(--s-6)); align-self: start; } }
.legal-toc p { font-weight: 650; margin-bottom: var(--s-3); }
.legal-toc ol { padding-left: 1.2rem; display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { color: var(--text); text-decoration: underline; }
.legal-updated { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-6); }

.contact-section .section-title { margin-bottom: var(--s-6); }
.contact-panel { display: grid; gap: var(--s-5); align-content: start; align-self: start; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); }
@media (min-width: 1000px) { .contact-panel { position: sticky; top: calc(var(--header-h) + var(--s-6)); } }
.cp-item { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.cp-item > .ic { grid-row: span 2; width: 24px; height: 24px; color: var(--orange-2); margin-top: 0.15rem; }
.cp-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cp-label { font-size: var(--fs-xs); font-weight: 650; color: var(--gold); }
.cp-item a { font-weight: 600; font-size: 1.125rem; }
.cp-markets { display: grid; gap: var(--s-1); }
.contact-panel .pending { margin: 0; }

.nf-code { font-size: clamp(7rem, 3rem + 16vw, 20rem); font-weight: 700; letter-spacing: -0.07em; line-height: 0.82; background: linear-gradient(180deg, #ffb27a, rgba(255, 107, 26, 0.15)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: var(--s-5); }
.nf-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); }
.nf-links a { display: inline-block; padding: 0.65rem 1.3rem; border-radius: var(--r-pill); border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); }
.nf-links a:hover { background: var(--text); color: #000; }

/* 10. FORMS ---------------------------------------------------------------- */
.inquiry { display: grid; gap: var(--s-5); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.req { color: var(--orange-2); }
.opt, .field-hint { color: var(--muted); font-weight: 500; }
.field-hint { font-size: var(--fs-xs); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 0.85rem 1.1rem; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background-color: rgba(255, 255, 255, 0.03); color: var(--text);
  transition: border-color var(--d-1), box-shadow var(--d-1), background-color var(--d-1);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%239e988e' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 12px; padding-right: 2.6rem; }
.field select option, .field select optgroup { background: #111; color: var(--text); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background-color: rgba(255, 107, 26, 0.04); box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.16); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff7b6b; }
.field-error { font-size: var(--fs-xs); font-weight: 650; color: #ff8f80; }
.field--check { grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; align-items: start; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 0.15rem; accent-color: var(--orange); }
.field--check label { font-weight: 500; color: var(--muted); }
.field--check label a { color: var(--text-2); }
.field--check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-status { font-weight: 600; font-size: var(--fs-sm); }
.form-status.is-success { color: #6fdc9b; }
.form-status.is-error { color: #ff8f80; }
.form-notice { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px dashed rgba(255, 107, 26, 0.6); background: rgba(255, 107, 26, 0.06); font-size: var(--fs-sm); color: var(--text-2); }
.form-notice strong { color: var(--text); }
.inquiry.is-sending .btn { opacity: 0.7; pointer-events: none; }

/* 11. FOOTER --------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; padding-top: var(--section); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); background: #000; border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: var(--s-8); padding-bottom: var(--s-8); }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 4fr 8fr; } }
.footer-brand { display: grid; gap: var(--s-5); align-content: start; }
.footer-brand > p { color: var(--muted); max-width: 40ch; font-size: var(--fs-sm); }
.footer-markets { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer-markets li { font-size: var(--fs-xs); font-weight: 600; padding: 0.35rem 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text-2); }
.footer-nav { display: grid; gap: var(--s-7) var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .footer-nav { grid-template-columns: 1.2fr 1fr 0.8fr 1.1fr; } }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; font-size: var(--fs-sm); }
.footer-nav a { text-decoration: none; color: var(--text-2); transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-pending { color: var(--muted); }
.footer-pending a { text-decoration: underline !important; }
.footer-social { margin-top: var(--s-5); display: flex !important; gap: var(--s-2) !important; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); }
.footer-social a:hover { background: var(--orange); color: #000; border-color: var(--orange); }
.footer-clocks { padding-block: var(--s-6); border-top: 1px solid var(--line); }
.footer-giant { position: relative; display: block; text-decoration: none; margin-top: var(--s-6); font-size: min(17.4vw, 24rem); font-weight: 700; letter-spacing: -0.065em; line-height: 0.8; white-space: nowrap; color: rgba(255, 244, 230, 0.045); user-select: none; padding-bottom: 0.08em; }
.footer-giant::after { content: 'CODECARROTS'; position: absolute; inset: 0; color: transparent; background: radial-gradient(380px circle at var(--mx, -50%) var(--my, 50%), #ffb27a, #ff6b1a 35%, transparent 70%); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; padding: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* WhatsApp floating button */
.wa-float { position: fixed; z-index: 190; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; height: 58px; min-width: 58px; padding: 0 17px; gap: 0; border-radius: var(--r-pill); background: #128c4a; color: #fff; text-decoration: none; font-weight: 650; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -10px rgba(18, 140, 74, 0.7); transition: gap var(--d-2) var(--ease-out); }
.wa-float .ic { width: 24px; height: 24px; }
.wa-float::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 1px solid rgba(37, 211, 102, 0.6); animation: ring 2.6s var(--ease-out) infinite; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--d-2) var(--ease-out); }
.wa-float:hover, .wa-float:focus-visible { gap: 0.6rem; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 12rem; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* 12. MOTION --------------------------------------------------------------- */
/* Content is visible by default; these only apply with JS and no reduced-motion preference. */
@media (prefers-reduced-motion: no-preference) {
  .js .hl > span { animation: lineUp 1.3s var(--ease-out) both; animation-delay: calc(var(--hd, 0s) + var(--li, 0) * 0.09s); }
  .js .hl:nth-child(2) { --li: 1; } .js .hl:nth-child(3) { --li: 2; }
  .js:not(.is-seen) .hero { --hd: 1.05s; }
  .js .hero-lede, .js .hero .actions, .js .hero-foot { animation: fadeUp 1.1s var(--ease-out) both; animation-delay: calc(var(--hd, 0s) + 0.4s); }
  .js .hero .actions { animation-delay: calc(var(--hd, 0s) + 0.5s); }
  .js .hero-foot { animation-delay: calc(var(--hd, 0s) + 0.7s); }
  .js .hv-plane { animation: planeIn 1.6s var(--ease-out) both; }
  .js .hv-plane-3 { animation-delay: calc(var(--hd, 0s) + 0.15s); }
  .js .hv-plane-2 { animation-delay: calc(var(--hd, 0s) + 0.35s); }
  .js .hv-plane-1 { animation-delay: calc(var(--hd, 0s) + 0.55s); }
  .js .hero-canvas { animation: fadeIn 2s ease both; animation-delay: var(--hd, 0s); }
  .hv-packet.is-moving { opacity: 1; offset-rotate: 0deg; animation: travel var(--dur, 7s) linear var(--delay, 0s) infinite; }

  /* Word-split headings */
  .js [data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .js [data-split] .sw > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.045s); }
  .js [data-split].is-in .sw > span { transform: none; }

  /* Generic reveal */
  .js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.08s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* Image curtain reveal */
  .js [data-curtain] { clip-path: inset(12% 6% 12% 6% round var(--r-lg)); transition: clip-path 1.5s var(--ease-lux); }
  .js [data-curtain] img { scale: 1.25; transition: scale 1.8s var(--ease-out); }
  .js [data-curtain].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
  .js [data-curtain].is-in img { scale: 1; }

  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vtOut 0.4s var(--ease-lux) both; }
  ::view-transition-new(root) { animation: vtIn 0.6s var(--ease-out) both; }
}
@keyframes lineUp { from { transform: translateY(110%) rotate(2deg); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes planeIn { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: none; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes vtOut { to { opacity: 0; transform: scale(0.98); filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
.hv-parallax { transition: translate 0.8s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee-row { flex-wrap: wrap; }
}
@media print {
  .site-header, .wa-float, .cta-band, .menu-toggle, .grain, .preloader, .hero-canvas { display: none !important; }
  body, .hero, .page-hero { background: #fff; color: #000; }
}

/* Stagger indexes (set in CSS so no inline styles are needed under the CSP) */
.nav-item:nth-child(2), .stack-card:nth-child(2) { --i: 1; }
.nav-item:nth-child(3), .stack-card:nth-child(3) { --i: 2; }
.nav-item:nth-child(4), .stack-card:nth-child(4) { --i: 3; }
.nav-item:nth-child(5), .stack-card:nth-child(5) { --i: 4; }
.nav-item:nth-child(6), .stack-card:nth-child(6) { --i: 5; }
.nav-item:nth-child(7) { --i: 6; }

/* (content-visibility removed — 1100px intrinsic size caused huge blank gaps between sections) */

/* ==========================================================================
   13. LUXURY EDITION — editorial serif, champagne accents, photographic layouts
   ========================================================================== */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: block; src: url('cormorant-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: block; src: url('cormorant-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: block; src: url('cormorant-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: block; src: url('cormorant-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: block; src: url('cormorant-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Fallback'; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'), local('Times'); size-adjust: 94.5%; }

:root {
  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --gold: #d9bb8f;
  --gold-2: #f0dcbc;
  --gold-deep: #8f7550;
  --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --grad: linear-gradient(115deg, #a8854f 0%, #e9cfa3 50%, #c9a26a 100%);
}

/* Editorial serif display type */
.hero-title, .page-title, .section-title, .cta-title, .manifesto-text, .svc-title, .stack-card h3, .ind-name, .pd-main h2,
.spotlight-title, .work-title, .ov-title, .solution-title, .ind-card h2, .related-card h3, .market-grid h3, .prose h2,
.t-card blockquote p, .ins-card h2, .ins-card h3, .outcome-list li, .faq-item summary, .count, .mega-feature-title, .deliver-item h3, .pillar dt, .tl-name {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.012em;
}
.hero-title em, .section-title em, .page-title em, .cta-title em { font-style: italic; color: var(--gold-2); }
.hero-title { font-size: min(clamp(3.4rem, 1.2rem + 7.6vw, 9.6rem), 7.4vw + 1rem); line-height: 0.9; }
.hero-title .hl:nth-child(3) > span { background: none; color: var(--text); }
.hero-title .hl:nth-child(2) > span { padding-left: 0.6em; }
.section-title { font-size: clamp(2.7rem, 1.4rem + 4.2vw, 5.8rem); line-height: 0.98; max-width: 15ch; }
.page-title { font-size: clamp(3rem, 1.5rem + 5.2vw, 7.4rem); line-height: 0.95; max-width: 16ch; }
.cta-title { font-size: clamp(3.2rem, 1.4rem + 6vw, 8.4rem); line-height: 0.92; }
.svc-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); line-height: 1; }
.stack-card h3, .ind-name, .pd-main h2, .spotlight-title, .solution-title, .ind-card h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.3rem); line-height: 1.02; }
.work-title, .ov-title, .related-card h3, .market-grid h3, .ins-card h2, .ins-card h3 { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); line-height: 1.1; }
.deliver-item h3, .pillar dt, .tl-name { font-size: 1.6rem; line-height: 1.1; }
.outcome-list li { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.15; }
.faq-item summary { font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.75rem); }
.prose h2 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); }
.mega-feature-title { font-size: 1.6rem; }

/* Spaced uppercase labels */
.eyebrow, .kicker, .mega-heading, .footer-heading, .cs-meta dt, .pd-label, .cp-label, .solution-label, .ind-services-label, .clock-city, .tl-idx, .work-cat, .ins-topic, .crumbs ol {
  font-family: var(--font); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.9rem; margin: 0; }
.eyebrow::before, .kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }
.crumbs ol { color: var(--muted); }
.ins-topic { color: var(--gold) !important; }

/* Champagne buttons; orange becomes a small brand spark */
.btn { min-height: 54px; padding: 0 2rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.btn-sm { min-height: 44px; padding: 0 1.3rem; font-size: 0.68rem; }
.btn-primary { --bg-b: var(--gold); --bd-b: var(--gold); --fg-b: #0b0906; --fill-b: #fff8ec; box-shadow: 0 16px 44px -18px rgba(217, 187, 143, 0.6); }
.btn-ghost { --bd-b: rgba(217, 187, 143, 0.42); --fg-b: var(--gold-2); --fill-b: var(--gold); }
.btn-aura { --fill-b: var(--gold); min-height: 62px; }
.btn-aura > .aura-ring { background: conic-gradient(from var(--a, 0deg), transparent 0 55%, var(--gold) 75%, #fff2dc 85%, transparent 100%); }
.text-link { color: var(--gold-2); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
[data-surface="dark"] .text-link, .note a, .svc-alt, .solution-svcs a, .ind-card a, .cs-meta a { color: var(--gold-2); }
.svc-alt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.badge-ic { width: 52px; height: 52px; border-radius: 50%; background: transparent; border: 1px solid rgba(217, 187, 143, 0.35); color: var(--gold); box-shadow: none; }
.badge-ic .ic { width: 22px; height: 22px; }
.scroll-progress span { background: var(--grad); box-shadow: 0 0 10px rgba(217, 187, 143, 0.7); }
.cursor-dot { background: var(--gold); }
.cursor-ring.is-link { border-color: rgba(217, 187, 143, 0.75); background: rgba(217, 187, 143, 0.07); }
.cursor-ring.is-view { background: var(--gold); border-color: var(--gold); }
.svc-row::before, .ind-tab::after { background: var(--grad); }
.svc-row:hover .svc-arrow { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 40px -8px rgba(217, 187, 143, 0.7); }
.ind-tab[aria-selected="true"] .ic { color: var(--gold); }
.timeline::after { background: var(--grad); box-shadow: 0 0 14px rgba(217, 187, 143, 0.6); }
.tl-step.is-lit .tl-num { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 30px -6px rgba(217, 187, 143, 0.8); }
.tl-num { border-color: rgba(217, 187, 143, 0.3); }
.faq-item[open] summary::after { background-color: var(--gold); border-color: var(--gold); }
.outcome-list li::before, .deliver-item .dot { background: var(--gold); box-shadow: 0 0 10px rgba(217, 187, 143, 0.6); }
.pd-num { font-family: var(--serif); font-weight: 300; }
.mega li a .ic { color: var(--gold); }
.mini-process span { background: var(--gold); }
.spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 187, 143, 0.1), transparent 60%); }
.spot-border::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 220, 188, 0.75), transparent 60%); }

/* Photographic hero */
.hero { justify-content: flex-end; min-height: max(100svh, 720px); padding-top: calc(var(--header-h) + 6rem); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; transform: scale(calc(1.06 + var(--hz, 0) * 0.06)) translateY(calc(var(--hz, 0) * 4%)); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.25) 100%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 38%), linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 20%); }
.hero-grid { grid-template-columns: 1fr !important; }
.hero-copy { max-width: 820px; }
.hero-eyebrow { margin-bottom: var(--s-6); }
.hero-lede { color: var(--text-2); }
@media (max-width: 760px) { .hero-img { object-position: 70% 50%; } .hero::before { background: linear-gradient(0deg, #000 8%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.35) 100%); } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-img { animation: heroIn 2.6s var(--ease-out) both; animation-delay: var(--hd, 0s); }
  .js .hero-eyebrow { animation: fadeUp 1.1s var(--ease-out) both; animation-delay: calc(var(--hd, 0s) + 0.1s); }
}
@keyframes heroIn { from { opacity: 0.35; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* Marquee in serif italics */
.marquee-track li { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.01em; font-size: clamp(2.8rem, 1.4rem + 5vw, 7rem); }
.marquee-row--rev .marquee-track li { font-style: normal; color: rgba(240, 220, 188, 0.2); }
.mq-dot { width: 10px; height: 10px; border: 1px solid var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* Intro: statement + counters */
.intro-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 3fr 9fr; } }
.manifesto-text { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.6rem); line-height: 1.08; max-width: 22ch; }
.intro-actions { margin-top: var(--s-7); }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-top: var(--s-7); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counters li { display: grid; gap: var(--s-2); }
.count { font-size: clamp(4.5rem, 3rem + 5vw, 8.5rem); line-height: 0.85; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums; }
.count-label { color: var(--muted); font-size: var(--fs-sm); max-width: 20ch; }

/* Home stats band — corner frames, bronze numerals (matches light ivory system) */
.intro--live {
  padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  background:
    linear-gradient(145deg, rgba(164, 124, 70, 0.08) 0%, transparent 48%),
    var(--bg-2);
}
.intro--live.section { padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.intro--live .counters--live {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.counter-cell {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-4);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) var(--s-4);
  --corner: rgba(38, 30, 20, 0.22);
  background-image:
    linear-gradient(var(--corner), var(--corner)) 0 0 / 22px 1px no-repeat,
    linear-gradient(90deg, var(--corner), var(--corner)) 0 0 / 1px 22px no-repeat,
    linear-gradient(var(--corner), var(--corner)) 100% 0 / 22px 1px no-repeat,
    linear-gradient(90deg, var(--corner), var(--corner)) 100% 0 / 1px 22px no-repeat,
    linear-gradient(var(--corner), var(--corner)) 0 100% / 22px 1px no-repeat,
    linear-gradient(90deg, var(--corner), var(--corner)) 0 100% / 1px 22px no-repeat,
    linear-gradient(var(--corner), var(--corner)) 100% 100% / 22px 1px no-repeat,
    linear-gradient(90deg, var(--corner), var(--corner)) 100% 100% / 1px 22px no-repeat;
}
.intro--live .count--outline {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  paint-order: unset;
}
.intro--live .count-label {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  max-width: 14ch;
  margin-inline: auto;
}
@media (max-width: 599.98px) {
  .intro--live .counters--live { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; }
}

/* Spotlights */
.spot-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .spot-grid { grid-template-columns: 1fr 1fr; } }
.spotlight { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(340px, 28vw + 100px, 480px); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); overflow: hidden; border-radius: var(--r-lg); text-decoration: none; isolation: isolate; border: 1px solid var(--line); }
.spotlights.section { padding-bottom: clamp(2rem, 1.25rem + 2vw, 3rem); }
.clients.section .section-head { margin-bottom: clamp(1.25rem, 0.85rem + 1.2vw, 2rem); }
.spotlight-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.spotlight-media img { width: 100%; height: 118%; margin-top: -9%; object-fit: cover; translate: 0 var(--py, 0); transition: scale 1.6s var(--ease-out); }
.spotlight:hover .spotlight-media img { scale: 1.06; }
.spotlight::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 12%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.05)); }
.spotlight-body { display: grid; gap: var(--s-4); max-width: 34rem; }
.spotlight-body > p:not(.eyebrow) { color: var(--text-2); }
.spotlight-title { margin: 0; }

/* Gallery: draggable horizontal strip */
.gallery-track { display: flex; gap: var(--s-5); overflow-x: auto; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) var(--s-4); scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-item { flex: 0 0 auto; width: clamp(260px, 30vw, 460px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); scroll-snap-align: start; border: 1px solid var(--line); }
.gallery-item--tall { width: clamp(300px, 38vw, 600px); aspect-ratio: 5 / 6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-out); pointer-events: none; user-select: none; }
.gallery-item:hover img { scale: 1.05; }

/* Arch frames — a signature luxury motif */
.split-media .media, .about-media { border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.split-media .media { aspect-ratio: 4 / 5; }
.about-media { aspect-ratio: 16 / 8; border-radius: 600px 600px var(--r-lg) var(--r-lg); }
.js [data-curtain].media, .js .split-media [data-curtain] { clip-path: inset(10% 8% 10% 8% round 999px 999px 12px 12px); }
.js .split-media [data-curtain].is-in, .js [data-curtain].media.is-in { clip-path: inset(0 0 0 0 round 999px 999px 12px 12px); }
.js .work-media[data-curtain] { clip-path: inset(10% 6% 10% 6% round var(--r-lg)); }
.js .work-media[data-curtain].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js .article-cover[data-curtain], .js .cs-media[data-curtain] { clip-path: inset(10% 6% 10% 6% round var(--r-lg)); }
.js .article-cover[data-curtain].is-in, .js .cs-media[data-curtain].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }

/* Photographs read richer with a gentle grade */
.work-media img, .spotlight-media img, .gallery-item img, .ind-panel > img, .ind-card > img, .related-card > img { filter: saturate(0.95) contrast(1.03); }
.work-label { font-family: var(--serif); font-weight: 300; font-style: italic; }
.home-faq .faq-actions { margin-top: var(--s-6); }
.page-hero-bg img { opacity: 0.85; }
.page-hero::before { background: linear-gradient(90deg, #000 12%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0.2)), linear-gradient(0deg, #000 0%, transparent 45%); }

/* Hero photo sits to the right of the headline and dissolves into black behind it */
@media (min-width: 900px) {
  .hero-media { left: 40%; }
  .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 12%, transparent 30%); }
  .hero-img { object-position: 50% 58%; }
  .hero-title { font-size: min(clamp(3.4rem, 1.2rem + 7.6vw, 9.6rem), 6.1vw + 0.9rem); }
  .hero::before { background: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.4) 50%, transparent 64%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 32%), linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 18%); }
}

.ind-panel::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.96) 100%); }
.ind-panel > img { object-position: 50% 20%; }
.ind-card::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.97) 30%, rgba(0, 0, 0, 0.45)); }

/* Touch-friendly secondary links in service rows */
.svc-alt { display: inline-flex; align-items: center; min-height: 28px; padding-block: 4px; }

/* Cinematic hero reel: slow crossfade + gentle zoom between studio photographs */
.hero-slide { position: absolute; inset: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media.is-reel .hero-img { animation: reel 24s linear infinite; }
  .hero-media.is-reel .hero-img:nth-child(1) { animation-delay: -1.5s; }
  .hero-media.is-reel .hero-img:nth-child(2) { animation-delay: 6.5s; }
  .hero-media.is-reel .hero-img:nth-child(3) { animation-delay: 14.5s; }
}
@keyframes reel {
  0% { opacity: 0; scale: 1; }
  6% { opacity: 1; }
  33% { opacity: 1; }
  39% { opacity: 0; scale: 1.09; }
  100% { opacity: 0; scale: 1.09; }
}
.hero-reel-dots { position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); bottom: 7.5rem; z-index: 2; display: flex; gap: 0.5rem; }
.hero-reel-dots i { width: 28px; height: 1px; background: rgba(240, 220, 188, 0.3); overflow: hidden; position: relative; }
.hero-media.is-reel ~ .hero-reel-dots i::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); animation: reelDot 24s linear infinite; }
.hero-media.is-reel ~ .hero-reel-dots i:nth-child(1)::after { animation-delay: -1.5s; }
.hero-media.is-reel ~ .hero-reel-dots i:nth-child(2)::after { animation-delay: 6.5s; }
.hero-media.is-reel ~ .hero-reel-dots i:nth-child(3)::after { animation-delay: 14.5s; }
@keyframes reelDot { 0% { transform: scaleX(0); } 33% { transform: scaleX(1); } 34%, 100% { transform: scaleX(0); } }
@media (max-width: 899.98px) { .hero-reel-dots { display: none; } }

/* Brand logo (transparent PNG, white lettering for dark backgrounds) */
.brand .logo { display: block; height: 32px; width: auto; }
.footer-brand .brand .logo { height: 42px; }
@media (max-width: 760px) { .brand .logo { height: 27px; } .footer-brand .brand .logo { height: 36px; } }
.brand { transition: opacity 0.3s; }
.brand:hover { opacity: 0.85; }
/* Intro curtain shows the logo */
.pl-logo { display: block; width: min(300px, 64vw); height: auto; }
@media (prefers-reduced-motion: no-preference) { .js:not(.is-seen) .pl-logo { animation: fadeUp 0.9s var(--ease-out) both; } }
/* Giant footer wordmark echoes the logo's bold capitals */
.footer-giant { text-transform: uppercase; font-weight: 800; letter-spacing: -0.035em; font-size: min(12.4vw, 17rem); }

/* ==========================================================================
   14. PRODUCTS, CLIENTS, TESTIMONIALS
   ========================================================================== */
/* Product cards (grid) */
.prod-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
.prod-card { position: relative; display: grid; align-content: start; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.4s, transform 0.6s var(--ease-out); }
.prod-card:hover { border-color: rgba(217, 187, 143, 0.4); transform: translateY(-6px); }
.prod-media { aspect-ratio: 16 / 11; border-radius: 0; }
.prod-media::after { box-shadow: none; background: linear-gradient(0deg, var(--surface), transparent 45%); }
.prod-media img { transition: scale 1.4s var(--ease-out); }
.prod-card:hover .prod-media img { scale: 1.06; }
.prod-body { display: grid; gap: var(--s-3); padding: var(--s-2) var(--s-6) var(--s-6); }
.prod-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2.2rem); line-height: 1.08; letter-spacing: -0.01em; }
.prod-body > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-sm); }
.prod-body .text-link { margin-top: var(--s-2); width: fit-content; }

/* Product tiles (homepage draggable track) */
.prod-track { display: flex; gap: var(--s-5); overflow-x: auto; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) var(--s-4); scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.prod-track::-webkit-scrollbar { display: none; }
.prod-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.prod-tile { flex: 0 0 auto; width: clamp(270px, 28vw, 400px); display: grid; gap: var(--s-3); align-content: start; text-decoration: none; scroll-snap-align: start; }
.prod-tile-media { aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: var(--s-2); }
.prod-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-out); pointer-events: none; }
.prod-tile:hover .prod-tile-media img { scale: 1.06; }
.prod-tile:hover .prod-title { color: var(--gold-2); }
.prod-sum { color: var(--muted); font-size: var(--fs-sm); }

/* Rollout steps */
.rollout { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .rollout { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rollout { grid-template-columns: repeat(4, 1fr); } }
.rollout li { padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; border-radius: var(--r-lg); }
.rollout-num { font-family: var(--serif); font-weight: 300; font-size: 3.4rem; line-height: 0.9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rollout h3 { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1.05; }
.rollout p { color: var(--muted); font-size: var(--fs-sm); }

/* Clients: refined logo wall */
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 900px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }
.client { display: grid; place-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 140px; }
.client img { width: 100%; max-width: 220px; height: auto; opacity: 0.55; transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.client:hover img { opacity: 1; transform: scale(1.04); }
.client span { font-family: var(--serif); font-size: 1.6rem; color: var(--text-2); }

/* Testimonials: draggable quote cards */
.t-track { display: flex; gap: var(--s-5); overflow-x: auto; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) var(--s-4); scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.t-track::-webkit-scrollbar { display: none; }
.t-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.t-card { flex: 0 0 auto; width: clamp(290px, 34vw, 520px); display: grid; gap: var(--s-5); align-content: space-between; padding: clamp(1.75rem, 1rem + 2vw, 2.75rem); border-radius: var(--r-xl); scroll-snap-align: start; margin: 0; }
.t-mark .ic { width: 40px; height: 40px; color: var(--gold); }
.t-card blockquote { margin: 0; }
.t-card blockquote p { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.4rem, 1.15rem + 0.7vw, 1.85rem); line-height: 1.35; color: var(--text); margin: 0; }
.t-card figcaption { display: flex; align-items: center; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.t-avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: #0b0906; background: var(--grad); }
.t-card strong { display: block; font-weight: 650; }
.t-role { display: block; color: var(--muted); font-size: var(--fs-sm); }

/* Draggable strips: snap to the page gutter, not the screen edge */
.gallery-track, .prod-track, .t-track { scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
/* Mega-menu feature panel: keep text legible over the photograph */
.mega-feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 5, 5, 0.95) 30%, rgba(5, 5, 5, 0.55) 65%, rgba(5, 5, 5, 0.25)); }
@media (min-width: 1120px) { #mega-products .mega-inner { grid-template-columns: 1.15fr 1fr 1.2fr 1.25fr; } }
/* Product pages: longer headlines get a slightly smaller, wider title */
.is-product .page-title { font-size: clamp(2.6rem, 1.4rem + 3.8vw, 5.6rem); max-width: 20ch; }

/* ==========================================================================
   15. LIGHT EDITION — warm ivory & ink, bronze-gold details.
   The CTA band and footer keep a scoped dark palette as a grounding contrast.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f7f3ec; --bg-2: #efe9df; --surface: #fffdf9; --surface-2: #f3eee5; --surface-3: #e9e2d6;
  --line: rgba(38, 30, 20, 0.1); --line-2: rgba(38, 30, 20, 0.17); --line-3: rgba(38, 30, 20, 0.32);
  --text: #1b1712; --text-2: #3d362e; --muted: #6a6157; --faint: #9a9186;
  --gold: #a47c46;          /* decorative lines, large numerals */
  --gold-2: #7d5c2e;        /* bronze for small text and links — 5.6:1 on ivory */
  --gold-deep: #6b4f27;
  --orange-2: #b4500f; --focus: #b4500f;
  --grad: linear-gradient(115deg, #7a5a2e 0%, #b8925a 50%, #8c6a3a 100%);
}
.cta-band, .site-footer {
  --bg: #0b0a09; --surface: #141210; --text: #f4f1eb; --text-2: #d8d3ca; --muted: #a39d93; --faint: #6c675f;
  --line: rgba(255, 244, 230, 0.09); --line-2: rgba(255, 244, 230, 0.16); --line-3: rgba(255, 244, 230, 0.3);
  --gold: #d9bb8f; --gold-2: #f0dcbc; --orange-2: #ff9a4d; --focus: #ffb27a;
  --grad: linear-gradient(115deg, #a8854f 0%, #e9cfa3 50%, #c9a26a 100%);
  color: var(--text); background: #0b0a09;
}
html, body { background: var(--bg); }
.grain { opacity: 0.045; }
.skip-link { background: var(--text); color: var(--bg); }

/* Labels and links use bronze for legibility */
.eyebrow, .kicker, .mega-heading, .footer-heading, .cs-meta dt, .pd-label, .cp-label, .solution-label, .ind-services-label, .clock-city, .tl-idx, .work-cat, .ins-topic, .text-link, .svc-alt, .note a, .solution-svcs a, .ind-card a, .cs-meta a { color: var(--gold-2); }
.ins-topic { color: var(--gold-2) !important; }
.badge-ic { color: var(--gold-2); border-color: rgba(164, 124, 70, 0.4); }
.hero-title em, .section-title em, .page-title em, .cta-title em { color: #8a6633; }
.cta-band .cta-title em { color: var(--gold-2); }

/* Buttons: ink primary with a gold reveal; outline secondary */
.btn-primary { --bg-b: var(--text); --bd-b: var(--text); --fg-b: var(--bg); --fill-b: var(--gold); box-shadow: 0 16px 40px -18px rgba(40, 28, 14, 0.45); }
.btn-primary:hover, .btn-primary:focus-visible { color: #1b1712; border-color: var(--gold); }
.btn-ghost { --bd-b: var(--line-3); --fg-b: var(--text); --fill-b: var(--text); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--bg); border-color: var(--text); }
.btn-primary::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); }

/* Header, menus */
.site-header.is-scrolled { background: rgba(247, 243, 236, 0.82); border-bottom-color: var(--line); }
.nav-link { color: var(--text-2); }
.nav-link:hover, .nav-link[aria-current] { color: var(--text); }
.mega li a { color: var(--text-2); }
.mega li a:hover { color: var(--text); }
@media (min-width: 1120px) { .mega { background: rgba(250, 247, 241, 0.97); box-shadow: 0 40px 80px -40px rgba(60, 40, 20, 0.35); } }
.mega-feature::before { background: linear-gradient(0deg, rgba(250, 247, 241, 0.97) 32%, rgba(250, 247, 241, 0.6) 66%, rgba(250, 247, 241, 0.15)); }
.mega-feature img { opacity: 1; }
@media (max-width: 1119.98px) {
  .js .primary-nav { background: radial-gradient(60rem 40rem at 100% 0%, rgba(164, 124, 70, 0.14), transparent 60%), #f7f3ec; }
  .menu-toggle { background: rgba(255, 255, 255, 0.6); color: var(--text); }
}

/* Hero: ivory, photograph on the right */
.hero { background: var(--bg); }
.hero::before { background: linear-gradient(0deg, var(--bg) 6%, rgba(247, 243, 236, 0.78) 50%, rgba(247, 243, 236, 0.45) 100%); }
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 38%, rgba(247, 243, 236, 0.5) 50%, transparent 64%), linear-gradient(0deg, var(--bg) 0%, rgba(247, 243, 236, 0) 30%), linear-gradient(180deg, rgba(247, 243, 236, 0.75) 0%, transparent 16%); }
  .hero-media::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(247, 243, 236, 0.5) 12%, transparent 30%); }
}
.hero-reel-dots i { background: rgba(27, 23, 18, 0.18); }
.scroll-cue i { border-color: var(--line-3); }

/* Marquee */
.marquee { background: var(--bg); }
.marquee::before { background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-row--rev .marquee-track li { color: rgba(27, 23, 18, 0.14); }

/* Image cards with text overlays: ivory scrims, ink text */
.spotlight::before { background: linear-gradient(0deg, rgba(250, 247, 241, 0.97) 16%, rgba(250, 247, 241, 0.6) 48%, rgba(250, 247, 241, 0) 74%); }
.ind-panel::before { background: linear-gradient(180deg, rgba(250, 247, 241, 0.25) 0%, rgba(250, 247, 241, 0.86) 44%, rgba(250, 247, 241, 0.98) 100%); }
.ind-card::before { background: linear-gradient(0deg, rgba(250, 247, 241, 0.98) 30%, rgba(250, 247, 241, 0.55)); }
.related-card::before { background: linear-gradient(0deg, rgba(250, 247, 241, 0.98) 22%, rgba(250, 247, 241, 0.35)); }
.related-card > img { opacity: 1; }
.work-media::after { background: none; }
.page-hero { background: var(--bg); }
.page-hero::before { background: linear-gradient(90deg, var(--bg) 14%, rgba(247, 243, 236, 0.8) 45%, rgba(247, 243, 236, 0.2)), linear-gradient(0deg, var(--bg) 0%, transparent 42%); }
.page-hero-bg img { opacity: 1; }
.tag-pending { background: rgba(255, 253, 249, 0.92); color: var(--text); }
.ind-services a { background: rgba(255, 255, 255, 0.7); }
.ind-services a:hover, .nf-links a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.nf-links a { background: rgba(255, 255, 255, 0.7); }

/* Components */
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 249, 0.55)); border-color: var(--line); }
.stack-card { background: linear-gradient(160deg, #fffdf9 0%, #f3ede3 100%); box-shadow: 0 -24px 50px -34px rgba(60, 40, 20, 0.3); }
.svc-row:hover .svc-title { color: var(--text); }
.svc-row:hover .svc-arrow { color: #1b1712; }
.svc-includes li { background: rgba(255, 255, 255, 0.6); }
.svc-preview { box-shadow: 0 40px 80px -24px rgba(60, 40, 20, 0.45), 0 0 0 1px var(--line-2); }
.ind-tab[aria-selected="true"] { color: var(--text); }
.tl-num { background: var(--surface); }
.tl-step.is-lit .tl-num, .mini-process span, .faq-item[open] summary::after { color: #fff; }
.t-avatar { color: #fff; }
.client img { opacity: 0.7; }
.field input, .field select, .field textarea { background-color: #fffdf9; }
.field input:focus, .field select:focus, .field textarea:focus { background-color: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(164, 124, 70, 0.16); }
.field select option, .field select optgroup { background: #fff; color: var(--text); }
.field-error { color: #a52a1a; }
.form-status.is-success { color: #1d7a45; } .form-status.is-error { color: #a52a1a; }
.cursor-ring { border-color: rgba(27, 23, 18, 0.35); }
.cursor-ring.is-view { background: var(--text); border-color: var(--text); color: var(--bg); }
.wordmark { color: var(--text); }
.preloader, .js:not(.is-seen) .preloader { background: var(--bg) !important; }
.pl-bar { background: var(--line-2); }
/* Logo: ink lettering on light, white lettering in the dark footer */
.site-footer .brand .logo { filter: none; }

/* Mega-menu feature panels: photograph on top, text below on a clean surface */
.mega-feature { justify-content: flex-start; padding: 0 0 var(--s-5); gap: var(--s-2); background: var(--surface); min-height: 0; }
.mega-feature::before { display: none; }
.mega-feature img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; z-index: auto; margin-bottom: var(--s-3); }
.mega-feature > :not(img) { margin-inline: var(--s-5); }
.mega-feature-title { font-size: 1.45rem; line-height: 1.15; }
.mega-feature p:not(.mega-feature-title) { margin-bottom: var(--s-1); }

/* ==========================================================================
   16. DARK & LIGHT EDITION — every page alternates noir and ivory sections.
   Heroes, the header, every second content section (.tone-dark), the CTA
   band and the footer use the dark palette; the remaining sections stay
   ivory. To flip a section, add or remove the "tone-dark" class.
   ========================================================================== */
.tone-dark, .site-header {
  color-scheme: dark;
  --bg: #0b0a09; --bg-2: #100f0d; --surface: #141210; --surface-2: #1b1916; --surface-3: #24211d;
  --text: #f4f1eb; --text-2: #d8d3ca; --muted: #a39d93; --faint: #6c675f;
  --line: rgba(255, 244, 230, 0.09); --line-2: rgba(255, 244, 230, 0.16); --line-3: rgba(255, 244, 230, 0.3);
  --gold: #d9bb8f; --gold-2: #f0dcbc; --gold-deep: #c9a26a; --orange-2: #ff9a4d; --focus: #ffb27a;
  --grad: linear-gradient(115deg, #a8854f 0%, #e9cfa3 50%, #c9a26a 100%);
  color: var(--text);
}
.tone-dark { background-color: #0b0a09; }
/* A light section that follows a dark one needs no divider line */
.tone-dark + .rule-top:not(.tone-dark), .tone-dark.rule-top { border-top-color: transparent; }

/* Headings & buttons inside dark sections: champagne accents */
.tone-dark :is(.hero-title, .section-title, .page-title) em { color: var(--gold); }
.tone-dark .btn-primary { --bg-b: var(--gold); --bd-b: var(--gold); --fg-b: #0b0906; --fill-b: #fff8ec; box-shadow: 0 16px 44px -18px rgba(217, 187, 143, 0.55); }
.tone-dark .btn-primary:hover, .tone-dark .btn-primary:focus-visible { color: #0b0906; border-color: #fff8ec; }
.tone-dark .btn-ghost { --bd-b: rgba(217, 187, 143, 0.42); --fg-b: var(--gold-2); --fill-b: var(--gold); }
.tone-dark .btn-ghost:hover, .tone-dark .btn-ghost:focus-visible { color: #0b0906; border-color: var(--gold); }

/* Header: dark glass at all times so it reads over every hero */
.site-header.is-scrolled { background: rgba(11, 10, 9, 0.93); border-bottom-color: var(--line); }
.site-header .nav-link { color: var(--text-2); }
.site-header .nav-link:hover, .site-header .nav-link[aria-current] { color: #fff; }
.site-header .mega li a { color: var(--text-2); }
.site-header .mega li a:hover { color: #fff; }
.site-header .btn-primary { --bg-b: var(--gold); --bd-b: var(--gold); --fg-b: #0b0906; --fill-b: #fff8ec; box-shadow: none; }
.site-header .btn-primary:hover, .site-header .btn-primary:focus-visible { color: #0b0906; }
@media (min-width: 1120px) { .site-header .mega { background: rgba(11, 10, 9, 0.96); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85); } }
@media (max-width: 1119.98px) {
  .js .site-header .primary-nav { background: radial-gradient(60rem 40rem at 100% 0%, rgba(217, 187, 143, 0.12), transparent 60%), #0b0a09; }
  .site-header .menu-toggle { background: rgba(255, 255, 255, 0.06); color: var(--text); }
}

/* Homepage hero: photograph dissolving into noir */
.hero.tone-dark { background: #0b0a09; }
.hero.tone-dark::before { background: linear-gradient(0deg, #0b0a09 8%, rgba(11, 10, 9, 0.74) 55%, rgba(11, 10, 9, 0.38) 100%); }
@media (min-width: 900px) {
  .hero.tone-dark::before { background: linear-gradient(90deg, #0b0a09 0%, #0b0a09 38%, rgba(11, 10, 9, 0.45) 50%, transparent 64%), linear-gradient(0deg, #0b0a09 0%, rgba(11, 10, 9, 0) 32%), linear-gradient(180deg, rgba(11, 10, 9, 0.6) 0%, transparent 18%); }
  .hero.tone-dark .hero-media::after { background: linear-gradient(90deg, #0b0a09 0%, rgba(11, 10, 9, 0.5) 12%, transparent 30%); }
}
.hero.tone-dark .hero-reel-dots i { background: rgba(240, 220, 188, 0.3); }
.marquee.tone-dark .marquee-row--rev .marquee-track li { color: rgba(240, 220, 188, 0.2); }

/* Inner-page heroes */
.page-hero.tone-dark { background: #0b0a09; }
.page-hero.tone-dark::before { background: linear-gradient(90deg, #0b0a09 14%, rgba(11, 10, 9, 0.78) 45%, rgba(11, 10, 9, 0.28)), linear-gradient(0deg, #0b0a09 0%, transparent 42%); }
.page-hero.tone-dark .page-hero-bg img { opacity: 0.85; }
.page-hero--full.tone-dark::before { background: radial-gradient(ellipse at center, rgba(11, 10, 9, 0.62), #0b0a09 80%); }

/* Image cards with text overlays: noir scrims inside dark sections */
.tone-dark .spotlight::before { background: linear-gradient(0deg, rgba(11, 10, 9, 0.94) 14%, rgba(11, 10, 9, 0.25) 60%, rgba(11, 10, 9, 0.05)); }
.tone-dark .ind-panel::before { background: linear-gradient(180deg, rgba(11, 10, 9, 0.3) 0%, rgba(11, 10, 9, 0.84) 44%, rgba(11, 10, 9, 0.97) 100%); }
.tone-dark .ind-card::before { background: linear-gradient(0deg, rgba(11, 10, 9, 0.97) 30%, rgba(11, 10, 9, 0.45)); }
.tone-dark .related-card::before { background: linear-gradient(0deg, rgba(11, 10, 9, 0.97) 22%, rgba(11, 10, 9, 0.4)); }
.tone-dark .tag-pending { background: rgba(11, 10, 9, 0.88); color: var(--text); }
.tone-dark :is(.ind-services a, .nf-links a, .svc-includes li) { background: rgba(255, 255, 255, 0.05); }
.tone-dark :is(.ind-services a, .nf-links a):hover { background: var(--gold); color: #0b0906; border-color: var(--gold); }

/* Surfaces */
.tone-dark .glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); border-color: var(--line); }
.tone-dark .stack-card { background: linear-gradient(160deg, #1b1916 0%, #121110 100%); box-shadow: 0 -24px 50px -34px rgba(0, 0, 0, 0.8); }
.tone-dark .svc-preview { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-2); }
.tone-dark .svc-row:hover .svc-title { color: #fff; }
.tone-dark .client img { filter: brightness(0) invert(1); opacity: 0.7; }
.tone-dark .client:hover img { opacity: 1; }
.tone-dark .prod-card:hover { border-color: rgba(217, 187, 143, 0.45); }

/* Forms on dark */
.tone-dark .field input, .tone-dark .field select, .tone-dark .field textarea { background-color: rgba(255, 255, 255, 0.045); color: var(--text); border-color: var(--line-2); }
.tone-dark .field input:focus, .tone-dark .field select:focus, .tone-dark .field textarea:focus { background-color: rgba(255, 255, 255, 0.07); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 187, 143, 0.16); }
.tone-dark .field select option, .tone-dark .field select optgroup { background: #141210; color: var(--text); }
.tone-dark .field-error, .tone-dark .form-status.is-error { color: #ff9b85; }
.tone-dark .form-status.is-success { color: #6fd39a; }

/* Custom cursor stays visible over both palettes */
.cursor-ring { border-color: rgba(164, 124, 70, 0.6); }

/* ==========================================================================
   17. PRODUCT LANDING PAGES (Google Ads) — lead form in the hero, dashboard
   mockup, contact band, review slots and a sticky call bar on phones.
   ========================================================================== */
.lp-hero { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.lp-hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1040px) { .lp-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.85fr); gap: var(--s-8); } }
.lp-hero .page-title { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.4rem); max-width: 18ch; }
.lp-hero .page-lede { max-width: 52ch; }

/* phone & email */
.lp-contact { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.lp-contact a { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1.15rem 0.7rem 0.75rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); text-decoration: none; color: var(--text); font-weight: 650; background: rgba(255, 255, 255, 0.04); transition: border-color var(--d-1), background var(--d-1), transform var(--d-2) var(--ease-out); }
.lp-contact a:hover { border-color: var(--gold); transform: translateY(-2px); }
.lp-contact .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--gold); color: #0b0906; flex-shrink: 0; }
.lp-contact span { display: grid; line-height: 1.2; }
.lp-contact small { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.lp-contact--big a { padding: 0.95rem 1.5rem 0.95rem 0.95rem; font-size: 1.125rem; }
.lp-contact--big .ic { width: 46px; height: 46px; padding: 11px; }
.lp-ticks { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.lp-ticks li { display: inline-flex; align-items: center; gap: 0.45rem; }
.lp-ticks .ic { width: 18px; height: 18px; color: var(--gold); }

/* lead form card */
.lp-form-card { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: #fffdf9; color: #1b1712; border: 1px solid rgba(217, 187, 143, 0.5); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
  --bg: #fffdf9; --surface: #fffdf9; --text: #1b1712; --text-2: #3d362e; --muted: #6a6157; --line: rgba(38, 30, 20, 0.1); --line-2: rgba(38, 30, 20, 0.17); --line-3: rgba(38, 30, 20, 0.32); --gold: #a47c46; --gold-2: #7d5c2e; color-scheme: light; }
.lp-form-card .eyebrow { color: #7d5c2e; }
.lp-form-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; margin: var(--s-2) 0 var(--s-3); color: #1b1712; }
.lp-form-sub { color: #6a6157; font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.lp-form-card .form-grid { grid-template-columns: 1fr; gap: var(--s-4); }
.lp-form-card .field input { background-color: #fff; color: #1b1712; border-color: rgba(38, 30, 20, 0.2); }
.lp-form-card .field input:focus { border-color: #a47c46; box-shadow: 0 0 0 4px rgba(164, 124, 70, 0.16); }
.lp-form-card .field-error, .lp-form-card .form-status.is-error { color: #a52a1a; }
.lp-form-card .form-status.is-success { color: #1d7a45; }
.lp-form-card .field--check { margin-top: var(--s-4); }
.lp-form-card .field--check label { font-size: var(--fs-xs); }
.lp-form-card .form-actions { margin-top: var(--s-4); }
.lp-form-card .btn-primary { --bg-b: #1b1712; --bd-b: #1b1712; --fg-b: #fffdf9; --fill-b: #a47c46; width: 100%; justify-content: center; }
.lp-form-card .btn-primary:hover, .lp-form-card .btn-primary:focus-visible { color: #fffdf9; border-color: #a47c46; }
.lp-form-alt { margin: var(--s-4) 0 0; font-size: var(--fs-sm); color: #6a6157; text-align: center; }
.lp-form-alt a { color: #7d5c2e; font-weight: 700; text-decoration: none; }
.lp-form-alt a:hover { text-decoration: underline; }

/* write-up */
.lp-intro-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .lp-intro-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: var(--s-8); } }
.lp-intro .section-title { margin: var(--s-3) 0 var(--s-6); }
.lp-prose p { font-size: var(--fs-lede); line-height: 1.65; color: var(--text-2); }
.lp-who { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .lp-who { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }

/* dashboard mockup */
.lp-mock { position: relative; margin: 0 auto; max-width: 1180px; padding: 0 clamp(0rem, 3vw, 3rem); }
.lp-laptop { position: relative; }
.lp-screen { position: relative; padding: clamp(8px, 1.1vw, 16px); padding-top: clamp(14px, 1.6vw, 24px); border-radius: clamp(14px, 1.6vw, 24px) clamp(14px, 1.6vw, 24px) 6px 6px; background: linear-gradient(180deg, #2b2723, #141210); box-shadow: 0 0 0 1px rgba(255, 244, 230, 0.12), 0 60px 120px -50px rgba(0, 0, 0, 0.8); }
.lp-screen::before { content: ''; position: absolute; top: clamp(5px, 0.6vw, 9px); left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #3a352f; }
.lp-screen img { display: block; width: 100%; height: auto; border-radius: 4px; }
.lp-base { position: relative; height: clamp(12px, 1.6vw, 22px); margin: 0 -6%; border-radius: 0 0 26px 26px / 0 0 18px 18px; background: linear-gradient(180deg, #d9d4cc 0%, #a9a39a 60%, #7f7a72 100%); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6); }
.lp-base::before { content: ''; position: absolute; top: 0; left: 50%; width: 16%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, 0.18); }
.lp-float { position: absolute; display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.15rem; border-radius: 16px; background: rgba(255, 253, 249, 0.96); color: #1b1712; border: 1px solid rgba(164, 124, 70, 0.35); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55); font-size: var(--fs-sm); line-height: 1.3; }
.lp-float strong { display: block; font-weight: 700; }
.lp-float small { display: block; color: #6a6157; font-size: var(--fs-xs); }
.lp-float--1 { left: 0; top: 14%; max-width: 280px; }
.lp-float--2 { right: 0; bottom: 20%; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.lp-float--2 strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; color: #7d5c2e; }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.2); flex-shrink: 0; }
.js .lp-float--1 { animation: lpFloat 6s ease-in-out infinite; }
.js .lp-float--2 { animation: lpFloat 7s ease-in-out -2s infinite; }
@keyframes lpFloat { 50% { transform: translateY(-10px); } }
@media (max-width: 760px) { .lp-float { position: static; margin-top: var(--s-3); max-width: none; } .lp-float--2 { flex-direction: row; align-items: center; justify-content: space-between; } .lp-float--2 strong { font-size: 1.5rem; } }
.lp-mock figcaption { margin-top: var(--s-6); text-align: center; color: var(--muted); font-size: var(--fs-xs); }
.lp-mock-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }

/* reviews */
.lp-review-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .lp-review-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-review.t-card { width: auto; background: var(--surface); border: 1px solid var(--line-2); }
.lp-review .tag-pending { justify-self: start; }
.lp-review blockquote p { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); color: var(--muted); }

/* contact band */
.lp-cb-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) { .lp-cb-grid { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.9fr); gap: var(--s-8); } }
.lp-contact-band .section-title { margin: var(--s-3) 0 var(--s-5); }

/* sticky call bar (phones) */
.lp-sticky { display: none; }
@media (max-width: 760px) {
  .lp-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .lp-sticky { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 10, 9, 0.94); border-top: 1px solid rgba(217, 187, 143, 0.3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .lp-sticky a { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 50px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
  .lp-sticky .ic { width: 18px; height: 18px; }
  .lp-sticky-call { background: #3ddc84; color: #06200f; }
  .lp-sticky-demo { background: #d9bb8f; color: #0b0906; }
  .lp-page .whatsapp-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
.faq-section .faq-grid .section-intro { margin-top: var(--s-4); }
.lp-review blockquote p { color: var(--text); }
@media (min-width: 700px) { .market-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   18. BLOG — listing (blog.html) and article pages
   ========================================================================== */
.blog-filter ul { list-style: none; padding: 0; margin: 0 0 var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.blog-chip { font: inherit; font-size: var(--fs-sm); font-weight: 650; padding: 0.6rem 1.15rem; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background var(--d-1), color var(--d-1), border-color var(--d-1); }
.blog-chip:hover { border-color: var(--gold); color: var(--text); }
.blog-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.blog-feature { position: relative; display: grid; gap: var(--s-6); align-items: center; margin-bottom: var(--s-8); padding: clamp(1rem, 0.6rem + 1vw, 1.5rem); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); }
@media (min-width: 900px) { .blog-feature { grid-template-columns: 1.15fr 1fr; gap: var(--s-7); } }
.blog-feature-media { border-radius: var(--r-lg); aspect-ratio: 16 / 10; }
.blog-feature-body { padding: var(--s-4); display: grid; gap: var(--s-3); justify-items: start; }
.blog-feature-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); line-height: 1.08; }
.blog-feature-title a { color: inherit; text-decoration: none; }
.blog-feature-body p { color: var(--muted); margin: 0; }
.post-meta-line { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.post-meta-line span + span::before { content: '·'; margin-right: 1rem; }
.blog-card .post-meta-line { margin-top: auto; }
.blog-empty { margin-top: var(--s-6); color: var(--muted); }
.blog-topic-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .blog-topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-topic-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-topic { padding: var(--s-6); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: var(--s-3); align-content: start; }
.blog-topic h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.blog-topic p { color: var(--muted); margin: 0; }
.blog-topic ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.blog-topic a { color: var(--gold-2); font-weight: 600; text-decoration: none; }
.blog-topic a:hover { text-decoration: underline; }

/* article */
.post-hero .page-title { max-width: 22ch; }
.post-meta { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); align-items: center; }
.post-meta li { display: grid; gap: 0.1rem; font-weight: 600; color: var(--text); }
.post-meta small { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.post-meta .post-author { display: flex; align-items: center; gap: 0.8rem; }
.post-meta .post-author > span:last-child { display: grid; }
.post-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1000px) { .post-grid { grid-template-columns: 260px minmax(0, 760px); justify-content: center; gap: var(--s-8); } .post-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.post-aside { display: grid; gap: var(--s-6); }
.post-toc ol { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 0.15rem; border-left: 1px solid var(--line-2); }
.post-toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: var(--fs-sm); text-decoration: none; transition: color var(--d-1), border-color var(--d-1); }
.post-toc a:hover { color: var(--text); border-left-color: var(--gold); }
.post-share { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-share a { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); text-decoration: none; }
.post-share a:hover { border-color: var(--gold); color: var(--text); }
@media (max-width: 999.98px) { .post-toc { display: none; } }
.post-body { max-width: 760px; }
.post-body h2 { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.post-body ul { padding-left: 1.2rem; }
.post-body li { margin-bottom: 0.5rem; color: var(--text-2); }
.post-cover { border-radius: var(--r-lg); aspect-ratio: 16 / 9; margin-bottom: var(--s-6); }
.post-takeaways { margin: 0 0 var(--s-7); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); }
.post-takeaways ul { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 0.6rem; }
.post-takeaways li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; color: var(--text); font-weight: 500; }
.post-takeaways .ic { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 0.25rem; }
.post-cta { margin: var(--s-7) 0; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg); background: #0b0a09; color: #f4f1eb; display: grid; gap: var(--s-3); justify-items: start; }
.post-cta .eyebrow { color: #f0dcbc; }
.post-cta p { color: #d8d3ca; margin: 0; }
.post-cta .post-cta-title { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: #f4f1eb; }
.post-cta .btn-primary { --bg-b: #d9bb8f; --bd-b: #d9bb8f; --fg-b: #0b0906; --fill-b: #fff8ec; }
.post-author-box { display: flex; gap: var(--s-4); align-items: flex-start; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line-2); }
.post-author-box .t-avatar { flex-shrink: 0; }
.post-author-name { font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.post-author-box p:last-child { color: var(--muted); margin: 0; }
[data-blog-items] [hidden], .blog-empty[hidden] { display: none !important; }
