:root {
  --sand-50: #FBF6EE;
  --sand-100: #F4EADB;
  --sand-200: #EADBC4;
  --sand-400: #D3A982;
  --sunset: #E8743B;
  --sunset-deep: #C95A24;
  --cream: #F2E6D3;
  --sky: #9FB4CB;
  --ink: #1B1815;
  --ink-2: #4A4239;
  --ink-3: #6B6157;
  --line: rgba(27, 24, 21, .12);

  --glass-bg: rgba(255, 255, 255, .18);
  --glass-bg-strong: rgba(255, 255, 255, .42);
  --glass-border: rgba(255, 255, 255, .55);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 20px 50px -20px rgba(60, 40, 20, .35);
  --blur: 18px;

  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: .18s;
  --t-med: .45s;
  --t-slow: .9s;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 28px;
  --section-y: clamp(80px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
.hero__title, .section__title, .process__title, .card__title, .work-card h3, .step h3, .hero__reel-line, .fact dd, .numeral, .step__num {
  font-family: var(--f-display); font-weight: 400;
}
.hero__title em, .section__title em, .process__title em, .hero__reel-line em { font-style: italic; color: var(--sunset-deep); }
.hero__reel-line em { color: var(--ink); }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--sunset-deep); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top var(--t-fast); }
.skip:focus { top: 16px; }

/* Glass */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .pill__body, .work-card { background: rgba(251, 246, 238, .86) !important; }
}

/* Buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-med), box-shadow var(--t-med);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink); color: var(--sand-50); box-shadow: 0 10px 30px -12px rgba(27,24,21,.6); }
.btn--dark:hover { background: #2C2722; }
.btn--glass { background: rgba(255,255,255,.35); color: var(--ink); border: 1px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255,255,255,.55); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding-inline: var(--gutter); transition: transform var(--t-med) var(--ease-out); }
.nav.is-hidden { transform: translateY(-120%); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  transition: background var(--t-med), box-shadow var(--t-med);
}
.nav.is-scrolled .nav__inner { background: rgba(251, 246, 238, .62); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 26px; height: 26px; }
.brand__mark rect { fill: var(--sunset); }
.brand__mark circle { fill: var(--sand-50); }
.brand__name { font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand__iq { font-weight: 400; margin-left: 3px; color: var(--sunset-deep); }
.nav__links { display: none; gap: 4px; position: relative; }
.nav__links a { position: relative; z-index: 1; text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); transition: color var(--t-med); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__pill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; opacity: 0; background: rgba(255,255,255,.62); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 4px 14px -6px rgba(60,40,20,.25); transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s; }

/* Rolling labels */
.roll { position: relative; display: inline-flex; flex-direction: column; overflow: hidden; height: 1.25em; line-height: 1.25; vertical-align: middle; }
.roll > span { display: block; transition: transform .55s var(--ease-out); }
a:hover > .roll > span, button:hover .roll > span, a:focus-visible > .roll > span { transform: translateY(-100%); }

/* Drawn underlines */
.contact__direct a, .footer__links a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.contact__direct a { background-size: 100% 1px; background-position: left bottom; }
.contact__direct a:hover { animation: underline-redraw .8s var(--ease-out); }
.footer__links a:hover { background-size: 100% 1px; background-position: left bottom; }
@keyframes underline-redraw { 0% { background-size: 100% 1px; background-position: right bottom; } 45% { background-size: 0 1px; background-position: right bottom; } 46% { background-position: left bottom; } 100% { background-size: 100% 1px; background-position: left bottom; } }

/* Card edge trace */
.edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.edge rect { fill: none; stroke: var(--sunset); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s cubic-bezier(.4,0,1,1); }
@media (hover: hover) {
  .card:hover .edge rect, .work-card:hover .edge rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-out); }
  .card:hover .card__icon > * { stroke-dasharray: 1; animation: icon-draw 1s var(--ease-out); }
}
@keyframes icon-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (hover: none) {
  .card.is-focus .edge rect, .work-card.is-focus .edge rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-out); }
  .card.is-focus .card__icon > * { stroke-dasharray: 1; animation: icon-draw 1.1s var(--ease-out); }
  .card, .work-card { transition: transform .6s var(--ease-out), box-shadow .6s; }
  .card.is-focus, .work-card.is-focus { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -28px rgba(60,40,20,.4); }
}
.nav__cta { display: none; }
.nav__toggle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; display: grid; place-content: center; gap: 5px; }
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--sand-50); transition: transform var(--t-med) var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu {
  max-width: var(--maxw); margin: 10px auto 0; border-radius: 28px; padding: 12px;
  display: grid; gap: 2px;
  background: linear-gradient(160deg, rgba(255,255,255,.42), rgba(251,246,238,.22));
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 -1px 0 rgba(255,255,255,.25) inset, 0 30px 60px -24px rgba(60,40,20,.45);
  transform-origin: top right;
  animation: menuIn .5s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; text-decoration: none; border-radius: 16px;
  font-family: var(--f-display); font-size: 30px; line-height: 1.1; color: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.4);
  transition: background var(--t-fast);
  animation: menuItemIn .6s var(--ease-out) backwards;
}
.mobile-menu a:not(.btn)::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sunset); opacity: 0; transition: opacity var(--t-fast); }
.mobile-menu a:not(.btn):active { background: rgba(255,255,255,.45); }
.mobile-menu a:not(.btn):active::after { opacity: 1; }
.mobile-menu a:nth-child(1) { animation-delay: .04s; }
.mobile-menu a:nth-child(2) { animation-delay: .08s; }
.mobile-menu a:nth-child(3) { animation-delay: .12s; }
.mobile-menu a:nth-child(4) { animation-delay: .16s; }
.mobile-menu .btn { margin-top: 10px; animation: menuItemIn .6s var(--ease-out) .2s backwards; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes menuItemIn { from { opacity: 0; transform: translateY(8px); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-menu { background: rgba(251, 246, 238, .94); }
}
@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* Scene */
.scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.scene--video { background: #C9B79E url("assets/hero-poster-sm.jpg") 60% 50% / cover no-repeat; }
@media (min-width: 700px) { .scene--video { background-image: url("assets/hero-poster.jpg"); } }
.scene__video { opacity: 0; transition: opacity .6s ease; }
.scene__video.is-ready { opacity: 1; }
.scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 60% 55%; will-change: transform; }
.scene__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,246,238,.62) 0%, rgba(251,246,238,.34) 38%, rgba(251,246,238,0) 62%);
}
.scene--video::after { content: ""; position: absolute; inset: auto 0 0; height: 16%; background: linear-gradient(180deg, rgba(251,246,238,0), var(--sand-50)); }
@media (max-width: 899px) {
  .scene__scrim { background: linear-gradient(180deg, rgba(251,246,238,.6) 0%, rgba(251,246,238,.45) 40%, rgba(251,246,238,.2) 58%, rgba(251,246,238,0) 75%); }
}
.scene__grain, .process__grain {
  position: absolute; inset: 0; opacity: .16; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero__track { position: absolute; inset: 0; z-index: 0; }
.hero__track > .scene--video { position: sticky; top: 0; height: 100vh; height: 100svh; }
.hero__inner { position: relative; z-index: 1; min-height: 100svh; display: grid; gap: 48px; align-items: center; align-content: center; padding-top: 120px; padding-bottom: 90px; }
.hero__reel { position: relative; z-index: 1; overflow-x: clip; height: 110svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding-inline: var(--gutter); text-align: center; }
.hero__reel-line {
  --glow: 0;
  position: relative; font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -.015em; line-height: 1.08; color: var(--ink); text-wrap: balance;
  /* layered halo: a tight bright rim, a warm bloom, then a wide golden haze; all scale with --glow */
  text-shadow:
    0 0 calc(1px + 3px * var(--glow)) rgba(255, 252, 245, calc(.55 + .45 * var(--glow))),
    0 0 calc(6px + 14px * var(--glow)) rgba(255, 244, 226, calc(.35 + .6 * var(--glow))),
    0 0 calc(18px + 42px * var(--glow)) rgba(255, 222, 176, calc(.2 + .6 * var(--glow))),
    0 0 calc(40px + 80px * var(--glow)) rgba(240, 180, 110, calc(.35 * var(--glow)));
}
.hero__reel::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 100%); height: 46%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 246, 232, .62), rgba(255, 238, 214, .28) 55%, transparent);
  opacity: var(--reel-glow, 0);
}@media (max-width: 899px) { .hero__reel { height: 90svh; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.hero__title { margin: 18px 0 22px; font-size: clamp(60px, 10.5vw, 140px); letter-spacing: -.025em; line-height: .9; color: var(--ink); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.js .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; }
.js .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes rise { to { transform: none; } }
.hero__lede { max-width: 33ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border-radius: 999px; border: 1.5px solid rgba(27,24,21,.45); display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: scrollDot 2s var(--ease-out) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.25fr .75fr; }
  .hero__scroll { display: block; }
}

/* Hero live demo (glass windows) */
.demo-wrap { display: flex; justify-content: center; perspective: 1000px; padding: 0 0 56px; }
.demo { position: relative; width: min(100%, 420px); transition: transform .6s var(--ease-out); transform-style: preserve-3d; }
.demo__window { border-radius: 28px; padding: 16px; background: rgba(255,255,255,.26); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 40px 80px -30px rgba(70,45,20,.55); }
.demo__bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.5); }
.demo__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.demo__avatar svg { width: 18px; height: 18px; }
.demo__avatar rect { fill: var(--sunset); }
.demo__avatar circle { fill: var(--sand-50); }
.demo__name { font-weight: 600; font-size: 14px; margin-right: auto; }
.demo__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.demo__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sunset); box-shadow: 0 0 0 0 rgba(232,116,59,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(232,116,59,0); } 100% { box-shadow: 0 0 0 0 rgba(232,116,59,0); } }
.demo__chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 4px 6px; min-height: 270px; }
.d-msg { margin: 0; max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.d-msg--user { align-self: flex-end; background: var(--ink); color: var(--sand-50); border-bottom-right-radius: 6px; }
.d-msg--typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 15px; background: rgba(255,255,255,.7); border-bottom-left-radius: 6px; }
.d-msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s infinite ease-in-out; }
.d-msg--typing i:nth-child(2) { animation-delay: .15s; }
.d-msg--typing i:nth-child(3) { animation-delay: .3s; }
.d-msg--ai { align-self: flex-start; background: rgba(255,255,255,.78); border-bottom-left-radius: 6px; color: var(--ink); }
.d-type { min-height: 1.45em; }
.d-type.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--sunset-deep); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.d-quote { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--sand-100); border: 1px solid var(--line); font-size: 13px; }
.d-quote span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.d-quote b { font-size: 18px; font-variant-numeric: tabular-nums; }
.demo__chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; background: rgba(255,255,255,.4); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 50px -20px rgba(70,45,20,.5); }
.demo__chip b { display: block; font-size: 14px; }
.demo__chip small { display: block; font-size: 12px; color: var(--ink-2); }
.demo__chip--a { left: -8px; bottom: -40px; }
.demo__chip--b { right: 4px; top: -30px; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 16px; }
.demo__chip--b b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.demo__check { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.demo__check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease-out) .25s; }
.demo__chip.is-on .demo__check svg { stroke-dashoffset: 0; }
[data-seq] { transition: opacity .5s var(--ease-out), transform .6s var(--ease-spring); }
.js .demo [data-seq]:not(.is-on) { opacity: 0; transform: translateY(10px) scale(.98); }
.js .demo .d-msg--typing:not(.is-on), .js .demo .d-msg--typing.is-done { display: none; }
@media (min-width: 900px) {
  .demo__chip--a { left: -48px; }
  .demo__chip--b { right: -36px; }
}

/* Marquee */
.stack { padding: 28px 0 8px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.stack__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.stack__label { color: var(--ink-3); }
.stack__pause { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.stack__pause svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.stack__pause .i-play { display: none; fill: var(--ink-2); stroke: none; }
.stack__pause[aria-pressed="true"] .i-pause { display: none; }
.stack__pause[aria-pressed="true"] .i-play { display: block; }
.marquee { display: flex; overflow: hidden; padding: 12px 0 24px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { flex: none; display: flex; gap: 56px; padding-right: 56px; margin: 0; list-style: none; animation: marquee 38s linear infinite; }
.marquee__track li { font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; letter-spacing: -.02em; white-space: nowrap; color: var(--ink-2); }
.marquee__track li:nth-child(3n+2) { font-weight: 700; color: var(--ink); }
.marquee.is-paused .marquee__track, .marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Sections */
.section { position: relative; padding: var(--section-y) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title { margin: 18px 0 20px; font-size: clamp(44px, 6.4vw, 88px); letter-spacing: -.02em; line-height: .95; }
.section__lede { max-width: 54ch; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); }

/* Services */
.services { overflow: hidden; background: linear-gradient(180deg, var(--sand-50), var(--sand-100)); }
/* Contour-line motif (generated in script.js) */
.contours { position: absolute; left: 0; width: 100%; pointer-events: none; overflow: visible; }
.contours path { fill: none; stroke: var(--sand-400); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.contours path.is-accent { stroke: var(--sunset); stroke-width: 1.5; opacity: 1; }
.contours--field { top: 0; height: 100%; }
.contours--band { top: 0; height: 140px; }
.contours--field path { opacity: .9; }
.contours--contact path { opacity: .6; }
.js [data-contour] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out) var(--pd, 0s); }
.js [data-contour].is-in path { stroke-dashoffset: 0; }
.services .container, .work .container, .contact .container { position: relative; }
.bento { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__a { grid-column: span 4; }
  .bento__b { grid-column: span 2; }
  .bento__c { grid-column: span 2; }
  .bento__d { grid-column: span 4; }
}
.card {
  position: relative; border-radius: var(--radius); padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: var(--glass-shadow);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
  overflow: hidden;
}
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -24px rgba(60,40,20,.4); } }
.card--frosted { background: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.card--clear { background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(4px) saturate(180%); backdrop-filter: blur(4px) saturate(180%); }
.card--blur { background: rgba(232,190,150,.22); -webkit-backdrop-filter: blur(34px) saturate(130%); backdrop-filter: blur(34px) saturate(130%); }
.card__num { position: absolute; top: 26px; right: 28px; color: var(--ink-3); }
.card__icon { width: 34px; height: 34px; margin-bottom: 40px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: clamp(32px, 3.2vw, 44px); line-height: 1; margin-bottom: 14px; }
.card p { color: var(--ink-2); max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticks li { font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7); }

/* Process (poster) */
.process { position: relative; background: var(--sand-200); color: var(--ink); padding: var(--section-y) 0; overflow: clip; isolation: isolate; border-top: 1px solid var(--line); }
.process__grain { opacity: .14; }
.process__grid { position: relative; display: grid; gap: 48px; }
.process__labels { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--ink); line-height: 1.6; }
.process__labels b { font-weight: 500; }
.process__title { margin: 28px 0 0; font-size: clamp(48px, 6.4vw, 88px); letter-spacing: -.02em; line-height: .92; position: relative; z-index: 2; }
.numerals { position: relative; height: clamp(220px, 30vw, 400px); display: none; overflow: hidden; }
.numeral { position: absolute; left: -.05em; bottom: 0; font-size: clamp(220px, 30vw, 400px); line-height: 1; letter-spacing: -.04em; color: var(--ink); opacity: 0; transform: translateY(60%); transition: opacity .5s var(--ease-out), transform .9s var(--ease-out); }
.numeral.is-active { opacity: 1; transform: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: rgba(251, 246, 238, .78); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 24px 50px -30px rgba(80,50,20,.4); }
.step__trace { position: absolute; top: 22px; left: 28px; right: 28px; width: calc(100% - 56px); height: 44px; pointer-events: none; overflow: visible; }
.step__trace path { fill: none; stroke: var(--sand-400); stroke-width: 1; vector-effect: non-scaling-stroke; }
.step__trace path.is-accent { stroke: var(--sunset); stroke-width: 1.5; }
.js .step:not(.is-current) .step__trace path { stroke-dashoffset: 1; transition-duration: .4s; transition-delay: 0s; }
.step__num { transition: color .6s; }
.step.is-current .step__num { color: var(--sunset-deep); }
.step__num { font-size: 72px; line-height: .8; color: var(--ink); display: block; margin: 70px 0 18px; }
.step__time { color: var(--ink-3); margin-bottom: 6px; }
.step h3 { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.step p:last-child { color: var(--ink-2); }
@media (min-width: 960px) {
  .process__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .process__sticky { position: sticky; top: 110px; align-self: start; }
  .numerals { display: block; }
  .steps { gap: 24px; padding-block: 4vh 10vh; }
  .step { padding: 40px; min-height: 52vh; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .6s var(--ease-out), opacity .6s; opacity: .55; transform: scale(.97); }
  .step.is-current { opacity: 1; transform: none; }
  .step__num { display: none; }
}

/* Work */
.work { background: var(--sand-50); }
.work__grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .work__grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { border-radius: var(--radius); background: var(--sand-100); border: 1px solid var(--line); overflow: hidden; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
@media (hover: hover) { .work-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(60,40,20,.45); } }
.work-card__body { padding: 26px 28px 30px; }
.work-card__tag { color: var(--sunset-deep); margin-bottom: 10px; }
.work-card h3 { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.work-card p:last-child { color: var(--ink-2); font-size: 16px; }
.mock { position: relative; height: 220px; padding: 22px; background: linear-gradient(160deg, #B7C6D6 0%, #E4D6C2 60%, #D9B48E 100%); overflow: hidden; }

.mock--chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bubble { max-width: 82%; padding: 10px 14px; font-size: 13.5px; line-height: 1.4; border-radius: 18px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-spring); }
.bubble--in { align-self: flex-start; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-left-radius: 6px; }
.bubble--out { align-self: flex-end; background: var(--ink); color: var(--sand-50); border-bottom-right-radius: 6px; }
.is-in .bubble { opacity: 1; transform: none; }
.is-in .bubble:nth-child(2) { transition-delay: .5s; }
.is-in .bubble:nth-child(3) { transition-delay: 1.1s; }
.typing { display: flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.mock--flow { display: grid; place-items: center; }
.mock--flow svg { width: 100%; height: auto; overflow: visible; }
.flow__path { fill: none; stroke: rgba(27,24,21,.55); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow__nodes rect { fill: rgba(255,255,255,.75); stroke: rgba(255,255,255,.9); }
.flow__nodes rect:nth-of-type(2) { fill: var(--ink); }
.flow__nodes text { font-family: var(--f-sans); font-size: 12px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; fill: var(--ink); }
.flow__nodes text:nth-of-type(2) { fill: var(--sand-50); }
.flow__dot { fill: var(--sunset-deep); offset-path: path("M50 40 C120 40 110 110 170 110 S250 40 270 40"); animation: travel 3.2s var(--ease-out) infinite; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.mock--chart { display: flex; flex-direction: column; }
.chart__head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: auto; }
.chart__head b { color: var(--sunset-deep); }
.chart__bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.chart__bars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: rgba(255,255,255,.65); transform-origin: bottom; transform: scaleY(.04); transition: transform 1s var(--ease-out); }
.chart__bars i.is-ai { background: repeating-linear-gradient(135deg, var(--sunset) 0 6px, var(--sunset-deep) 6px 12px); }
.is-in .chart__bars i { transform: none; }
.is-in .chart__bars i:nth-child(2) { transition-delay: .06s; } .is-in .chart__bars i:nth-child(3) { transition-delay: .12s; }
.is-in .chart__bars i:nth-child(4) { transition-delay: .18s; } .is-in .chart__bars i:nth-child(5) { transition-delay: .24s; }
.is-in .chart__bars i:nth-child(6) { transition-delay: .3s; } .is-in .chart__bars i:nth-child(7) { transition-delay: .45s; }

.facts { position: relative; display: grid; gap: 1px; margin: clamp(48px, 7vw, 88px) 0 0; background: var(--line); border-bottom: 1px solid var(--line); padding-top: 1px; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
.js .facts::before { transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.js .facts.is-in::before { transform: none; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--sand-50); padding: 28px 4px; }
.js .fact dd { clip-path: polygon(-5% 125%, 105% 125%, 105% 125%, -5% 125%); transform: translateY(.3em); transition: clip-path 1.1s var(--ease-out) var(--fd, .2s), transform 1.1s var(--ease-out) var(--fd, .2s); }
.js .facts.is-in dd { clip-path: polygon(-5% -25%, 105% -25%, 105% 125%, -5% 125%); transform: none; }
.fact:nth-child(2) { --fd: .32s; }
.fact:nth-child(3) { --fd: .44s; }
.fact dt { color: var(--ink-3); }
.fact dd { margin: 8px 0 0; font-size: clamp(56px, 7vw, 96px); letter-spacing: -.02em; line-height: 1; }

/* Local */
.local { background: var(--sand-100); }
.local__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .local__grid { grid-template-columns: 1.1fr .9fr; } }
.cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cities li { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--sand-50); font-weight: 500; transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
@media (hover: hover) { .cities li:hover { border-color: var(--ink); transform: translateY(-2px); } }
.js .cities li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), border-color var(--t-med); }
.js .cities.is-in li { opacity: 1; transform: none; }
.cities li:nth-child(2) { transition-delay: .05s; } .cities li:nth-child(3) { transition-delay: .1s; }
.cities li:nth-child(4) { transition-delay: .15s; } .cities li:nth-child(5) { transition-delay: .2s; }
.cities li:nth-child(6) { transition-delay: .25s; } .cities li:nth-child(7) { transition-delay: .3s; }
.cities li:nth-child(8) { transition-delay: .35s; }
.cities li:last-child { background: var(--ink); color: var(--sand-50); border-color: var(--ink); }

/* FAQ */
.faq { background: var(--sand-50); }
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0; padding: 24px 0; font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: ""; flex: none; width: 0; height: 1.5px; margin-right: 0; background: var(--sunset); transition: width .5s var(--ease-out), margin-right .5s var(--ease-out); }
.qa summary:hover::before, .qa[open] summary::before { width: 22px; margin-right: 14px; }
.qa summary::after { content: ""; flex: none; margin-left: auto; transform-origin: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1815' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform var(--t-med) var(--ease-out), background-color var(--t-med); }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--sand-200); }
.qa p { padding: 0 0 26px; max-width: 60ch; color: var(--ink-2); }
.qa[open] p { animation: qaIn var(--t-med) var(--ease-out); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.contact { overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--sand-100), var(--sand-200)); }
.contact .container { z-index: 1; }
.contact__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.contact__direct { margin-top: 26px; color: var(--ink-2); }
.contact__direct a { font-weight: 600; color: var(--ink); text-underline-offset: 4px; overflow-wrap: anywhere; }
.form { border-radius: 32px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; background: rgba(255,255,255,.32); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); transition: color var(--t-med); }
.field:focus-within > label { color: var(--sunset-deep); }
.field label span[aria-hidden] { color: var(--sunset-deep); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; font-size: 16px;
  border: 1px solid rgba(27,24,21,.18); background: rgba(255,255,255,.7);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(232,116,59,.25); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field__error { font-size: 13.5px; color: #A1231B; min-height: 0; }
.field__error:empty { display: none; }
.field__help { font-size: 13.5px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 14px; background: rgba(255,255,255,.55); border: 1px solid rgba(27,24,21,.16); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.chips input:checked + span { background: var(--ink); color: var(--sand-50); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2.5px solid var(--sunset-deep); outline-offset: 2px; }
.chips label:active span { transform: scale(.96); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading .btn__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__turnstile:empty { display: none; }
.form__status { font-size: 15px; font-weight: 500; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #24613A; }

/* Footer */
.footer { background: var(--ink); color: var(--sand-100); padding: 56px 0 40px; }
.footer__inner { display: grid; gap: 22px; }
.footer .brand__mark circle { fill: var(--ink); }
.footer .brand__iq { color: var(--sunset); }
.footer__note, .footer__copy { color: #B9AE9F; font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { font-size: 15px; padding: 6px 0; }
.footer__links a:hover { color: #fff; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 40px; } }

/* Motion: one idea. Lines trace in (eyebrow rule, contours), headings rise out of a mask. */
.js .eyebrow.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .1s; }
.js .eyebrow.reveal { opacity: 0; transition: opacity .6s var(--ease-out); }
.js .eyebrow.reveal.is-in { opacity: 1; }
.js .eyebrow.reveal.is-in::before { transform: none; }
.js h1.reveal, .js h2.reveal { clip-path: polygon(-5% 125%, 105% 125%, 105% 125%, -5% 125%); transform: translateY(.3em); transition: clip-path 1.1s var(--ease-out) .12s, transform 1.1s var(--ease-out) .12s; }
.js h1.reveal.is-in, .js h2.reveal.is-in { clip-path: polygon(-5% -25%, 105% -25%, 105% 125%, -5% 125%); transform: none; }
.js .fade { opacity: 0; transition: opacity 1s var(--ease-out) var(--d, 0s); }
.js .fade.is-in { opacity: 1; }

/* Phone layout: decisions made for small screens, not the desktop squeezed */
@media (max-width: 699px) {
  :root { --section-y: 72px; --radius: 24px; }
  .section__head { margin-bottom: 32px; }
  .section__title { font-size: clamp(40px, 11.5vw, 48px); margin: 14px 0 16px; }
  .section__lede { font-size: 16px; }

  /* Hero: stacked, equal-width actions */
  .hero__inner { padding-top: 108px; gap: 40px; }
  .hero__title { font-size: clamp(54px, 17vw, 72px); margin: 14px 0 18px; }
  .hero__lede { font-size: 16.5px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .hero__actions .btn { width: 100%; }
  .demo__chat { min-height: 250px; }
  .d-msg { font-size: 14px; }

  /* Marquee */
  .stack { padding-top: 22px; }
  .stack__label { font-size: 11px; }
  .marquee { padding: 6px 0 18px; }
  .marquee__track { gap: 36px; padding-right: 36px; }

  /* Gentler contour waves: draw wider than the screen so curves don't steepen */
  .contours--field { width: 280%; left: -90%; }
  .contours--band { width: 220%; left: -60%; height: 110px; }
  .work { overflow-x: clip; }

  /* Services: tighter cards, inline capability list */
  .card { padding: 22px 22px 24px; }
  .card__num { top: 22px; right: 22px; }
  .card__icon { width: 30px; height: 30px; margin-bottom: 22px; }
  .card__title { font-size: 32px; margin-bottom: 10px; }
  .card p { font-size: 16px; }
  .ticks { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(27,24,21,.1); font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }
  .ticks li { display: inline; padding: 0; border: 0; background: none; border-radius: 0; font-weight: 500; }
  .ticks li + li::before { content: " · "; color: var(--sunset-deep); }

  /* Process: no pinned counter on phones, compact cards */
  .process__labels span:last-child { display: none; }
  .process__title { margin-top: 18px; font-size: clamp(44px, 12.5vw, 54px); }
  .process__grid { gap: 32px; }
  .steps { gap: 12px; }
  .step { padding: 22px 22px 24px; }
  .step__trace { top: 16px; left: 22px; right: auto; width: 46%; height: 30px; }
  .step__num { font-size: 56px; margin: 34px 0 12px; }
  .step h3 { font-size: 34px; margin-bottom: 8px; }
  .step p:last-child { font-size: 16px; }

  /* Work */
  .work__grid { gap: 14px; }
  .mock { height: 180px; padding: 18px; }
  .chart__bars { height: 110px; }
  .work-card__body { padding: 20px 22px 24px; }
  .work-card h3 { font-size: 30px; }
  .work-card p:last-child { font-size: 15.5px; }

  /* Facts: one compact row instead of three stacked blocks */
  .facts { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
  .fact { padding: 18px 8px 20px 0; }
  .fact + .fact { padding-left: 10px; }
  .fact dt { font-size: 9.5px; letter-spacing: .1em; line-height: 1.4; min-height: 2.8em; }
  .fact dd { font-size: clamp(28px, 9vw, 36px); margin-top: 6px; white-space: nowrap; }

  /* Local, FAQ, contact */
  .local__grid { gap: 28px; }
  .cities { gap: 8px; }
  .cities li { padding: 9px 15px; font-size: 15px; }
  .faq__grid { gap: 12px; }
  .qa summary { padding: 20px 0; font-size: 18px; gap: 0; }
  .qa summary::after { width: 30px; height: 30px; }
  .qa p { padding-bottom: 22px; font-size: 16px; }
  .contact__grid { gap: 28px; }
  .contact__direct { margin-top: 18px; font-size: 15.5px; }
  .form { border-radius: 24px; gap: 16px; }

  .footer { padding: 44px 0 32px; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 50px; }
  .fact dd { font-size: 26px; }
  .card__title, .work-card h3 { font-size: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .line > span { transform: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .stack__pause { display: none; }
}
