/* ============================================================
   Earncodexaura — "Night shift" design system
   Layout: dark night bands (hero, demo, form) alternate with
   calm daylight bands. One amber "lamp" accent marks what is
   awake after hours. Serif italic used only for emphasis.
   ============================================================ */

:root {
  /* Daylight surfaces */
  --paper:      #F4F5F8;
  --paper-2:    #FFFFFF;
  --ink:        #0F1422;
  --ink-2:      #4F586C;
  --line:       #DFE3EA;
  --teal:       #3150D8;

  /* Night surfaces (same in both themes) */
  --night:      #0A0D16;
  --night-2:    #121726;
  --night-3:    #1B2235;
  --night-ink:  #EEF0F6;
  --night-dim:  #9BA3B8;
  --night-line: rgba(238, 240, 246, 0.10);
  --mint:       #FFC873;

  /* The lamp */
  --lamp:       #F5B04C;
  --lamp-2:     #FFC873;
  --lamp-ink:   #1C1305;

  --ok:  #3150D8;
  --err: #B42318;

  /* Type */
  --f-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-sans:    'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   clamp(1.2rem, 1.6vw, 1.35rem);
  --t-xl:   clamp(1.45rem, 2.4vw, 1.85rem);
  --t-2xl:  clamp(1.9rem, 3.6vw, 2.75rem);
  --t-3xl:  clamp(2.5rem, 6vw, 4.6rem);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --wrap: 1180px;
  --ease: 200ms cubic-bezier(.2,.7,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0E121C;
    --paper-2: #131826;
    --ink:     #EEF0F6;
    --ink-2:   #A3ABBE;
    --line:    #252C3E;
    --teal:    #8EA4FF;
    --ok:      #8EA4FF;
    --err:     #F59A92;
    color-scheme: dark;
  }
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
body {
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lamp); color: var(--lamp-ink); }

h1, h2, h3, h4 { font-family: var(--f-sans); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
p { max-width: 62ch; }
.serif { font-family: var(--f-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
}

.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--white { background: var(--paper-2); }
.band--night { background: var(--night); color: var(--night-ink); }
.band--night h2, .band--night h3 { color: var(--night-ink); }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.band--night .kicker { color: var(--night-dim); }

.head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 720px; }
.head p:not(.kicker) { color: var(--ink-2); font-size: var(--t-md); margin-top: 1rem; }
.band--night .head p:not(.kicker) { color: var(--night-dim); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem;
  font: 600 var(--t-sm)/1 var(--f-sans);
  letter-spacing: -0.005em;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease), color var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; transition: transform var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-lamp { background: var(--lamp); color: var(--lamp-ink); box-shadow: 0 8px 28px -10px rgba(245,176,76,.7); }
.btn-lamp:hover { background: var(--lamp-2); }
.btn-ghost-night { color: var(--night-ink); border-color: rgba(238,240,246,.22); background: rgba(255,255,255,.03); }
.btn-ghost-night:hover { border-color: rgba(238,240,246,.5); }
.btn-ink { background: var(--ink); color: var(--paper-2); }
.btn-ink:hover { background: var(--teal); color: #fff; }
.btn-block { width: 100%; padding-block: 1rem; font-size: var(--t-base); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: progress; transform: none; }

/* ── Header ─────────────────────────────────────────────────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--night); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(10,13,22,.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--night-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--night-ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { display: block; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1; color: var(--night-ink); }
.brand-tag { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-dim); margin-top: 4px; }
.nav { display: flex; gap: 1.75rem; list-style: none; }
.nav a { color: var(--night-dim); font-size: var(--t-sm); font-weight: 500; transition: color var(--ease); }
.nav a:hover { color: var(--night-ink); text-decoration: none; }
.header-cta { padding: .65rem 1.05rem; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 380px) { .brand-tag { display: none; } .header-cta { padding: .6rem .85rem; font-size: .8rem; } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -120px;
  background: radial-gradient(closest-side, rgba(245,176,76,.20), rgba(245,176,76,.05) 55%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(238,240,246,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-grid > * { min-width: 0; }

.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .8rem .4rem .6rem; margin-bottom: 1.6rem;
  border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255,255,255,.03);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--night-dim);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--mint); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 { font-size: var(--t-3xl); font-weight: 600; letter-spacing: -0.045em; line-height: 1.0; color: var(--night-ink); }
.hero h1 .serif { display: block; color: var(--lamp); font-size: 1.04em; letter-spacing: -0.02em; line-height: 1.02; margin-top: .06em; }
.hero-sub { margin-top: 1.6rem; font-size: var(--t-md); color: var(--night-dim); max-width: 34rem; }
.hero-sub strong { color: var(--night-ink); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.2rem; list-style: none; }
.trust li { display: flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--night-dim); }
.trust svg { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; }

/* Phone-style sample chat */
.scene { position: relative; justify-self: center; width: 100%; max-width: 420px; padding-top: 34px; }
.clock-chip {
  position: absolute; z-index: 2; top: 0; left: -22px;
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .85rem; border-radius: 12px;
  background: var(--night-2); border: 1px solid var(--night-line);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.clock-chip b { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; color: var(--lamp); letter-spacing: .02em; }
.clock-chip span { font-size: .72rem; line-height: 1.25; color: var(--night-dim); }
.phone {
  position: relative; border-radius: 30px; padding: 10px;
  background: linear-gradient(160deg, #262E45, #10141F);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone-screen { border-radius: 22px; overflow: hidden; background: #F6F7FA; color: #0F1422; }
.phone-top { display: flex; align-items: center; gap: .7rem; padding: .95rem 1rem; background: #fff; border-bottom: 1px solid #E5E8EF; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0F1422; color: #FFC873; font-weight: 600; font-size: .8rem; flex-shrink: 0; }
.phone-top .who { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.phone-top .sub, .chat-clinic-sub { font-size: .72rem; color: #5A6378; display: flex; align-items: center; gap: .35rem; }
.online { width: 6px; height: 6px; border-radius: 50%; background: #F5B04C; box-shadow: 0 0 0 3px rgba(245,176,76,.2); display: inline-block; }
.sample-tag { margin-left: auto; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: #5A6378; border: 1px solid #DEE2EA; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.thread { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; }
.b { max-width: 84%; padding: .6rem .85rem; border-radius: 16px; font-size: .86rem; line-height: 1.45; }
.b.user { align-self: flex-end; background: #0F1422; color: #fff; border-bottom-right-radius: 5px; }
.b.bot { align-self: flex-start; background: #fff; border: 1px solid #E3E7EE; border-bottom-left-radius: 5px; }
.stamp { font-family: var(--f-mono); font-size: .62rem; color: #8C94A6; align-self: center; margin-block: .2rem; letter-spacing: .04em; }
.ticket {
  margin: .2rem 1rem 1rem; padding: .85rem 1rem; border-radius: 14px;
  background: #FFF6E6; border: 1px dashed #E9A23B;
  display: flex; gap: .75rem; align-items: center;
}
.ticket-ico { width: 32px; height: 32px; border-radius: 50%; background: #F5B04C; display: grid; place-items: center; flex-shrink: 0; }
.ticket-ico svg { width: 16px; height: 16px; color: #1C1305; }
.ticket strong { display: block; font-size: .86rem; color: #1C1305; }
.ticket span { font-size: .74rem; color: #6B5A3A; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .scene { margin-top: 1.5rem; }
  .clock-chip { left: 8px; }
}

/* ── Night vs day comparison ────────────────────────────────── */
.compare { display: grid; gap: 1.6rem; }
.row-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; margin-bottom: .6rem; font-size: var(--t-sm); }
.row-label b { font-weight: 600; }
.row-label span { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); letter-spacing: .04em; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 44px; }
.hours i { border-radius: 4px; background: var(--line); }
.hours i.on { background: var(--teal); }
.hours.all i { background: var(--lamp); }
.hours.all i.on { background: var(--teal); }
.axis { display: flex; justify-content: space-between; margin-top: .5rem; font-family: var(--f-mono); font-size: .68rem; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.2rem; font-size: .82rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.gaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.gap h3 { font-size: var(--t-md); margin-bottom: .4rem; }
.gap p { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 760px) { .gaps { grid-template-columns: 1fr; gap: 1.4rem; } .hours { height: 34px; gap: 2px; } .hours i { border-radius: 2px; } }

/* ── Services bento ─────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.1rem; }
.tile { border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.tile--hero { grid-row: span 2; background: var(--night); border-color: var(--night-line); color: var(--night-ink); position: relative; overflow: hidden; }
.tile--hero > * { position: relative; z-index: 1; }
.tile--hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(245,176,76,.18), transparent 70%); pointer-events: none; }
.tile h3 { font-size: var(--t-lg); }
.tile--hero h3 { color: var(--night-ink); font-size: var(--t-xl); }
.tile.tile--hero p { color: var(--night-dim); }
.tile-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--teal); }
.tile--hero .tile-ico { background: rgba(245,176,76,.14); color: var(--lamp); }
.tile-ico svg { width: 22px; height: 22px; }
.tile p { color: var(--ink-2); }
.ticks { list-style: none; display: grid; gap: .6rem; margin-top: .2rem; }
.ticks li { display: flex; gap: .65rem; font-size: var(--t-sm); color: var(--ink-2); }
.ticks li::before { content: ""; width: 7px; height: 7px; margin-top: .5rem; flex-shrink: 0; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }
.tile--hero .ticks li { color: var(--night-ink); }
.tile--hero .ticks li::before { background: var(--lamp); box-shadow: 0 0 0 4px rgba(245,176,76,.16); }
.tag { align-self: flex-start; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-dim); }
.mini { display: flex; flex-direction: column; gap: .45rem; margin-top: .6rem; padding: 1rem; border-radius: 16px; background: var(--night-2); border: 1px solid var(--night-line); }
.mini .b { font-size: .8rem; max-width: 88%; }
.mini .b.user { background: var(--night-3); color: var(--night-ink); }
.mini .b.bot { background: var(--night-ink); color: var(--night); border: 0; }
.mini .stamp { color: var(--night-dim); }
.channels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1rem; }
.channels span { font-size: .75rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--night-ink); }
.more { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--ink-2); }
.more strong { color: var(--ink); font-weight: 600; }
.more a { font-weight: 600; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile--hero { grid-row: auto; } }

/* ── Live demo ──────────────────────────────────────────────── */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.demo-grid > * { min-width: 0; }
.demo-intro p { color: var(--night-dim); margin-top: 1rem; }
.steps-mini { list-style: none; display: grid; gap: .85rem; margin-top: 1.8rem; counter-reset: s; }
.steps-mini li { display: flex; gap: .8rem; align-items: flex-start; color: var(--night-ink); font-size: var(--t-sm); counter-increment: s; }
.steps-mini li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: .7rem; border: 1px solid var(--night-line); color: var(--lamp); }
.link-lamp { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; color: var(--lamp); font-weight: 600; }
.link-lamp:hover { color: var(--lamp-2); }

.chat-widget { background: #F6F7FA; color: #0F1422; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.chat-widget-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: #fff; border-bottom: 1px solid #E5E8EF; }
.chat-clinic-name { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.chat-messages { height: 380px; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.widget-msg { display: flex; flex-direction: column; max-width: 85%; animation: rise 220ms ease both; }
.widget-msg.from-user { align-self: flex-end; align-items: flex-end; }
.widget-msg.from-bot { align-self: flex-start; align-items: flex-start; }
.widget-bubble { padding: .6rem .85rem; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.from-user .widget-bubble { background: #0F1422; color: #fff; border-bottom-right-radius: 5px; }
.from-bot .widget-bubble { background: #fff; border: 1px solid #E3E7EE; border-bottom-left-radius: 5px; }
.widget-time { font-family: var(--f-mono); font-size: .6rem; color: #8C94A6; margin-top: 3px; }
.typing-indicator { align-self: flex-start; display: flex; gap: 4px; padding: .75rem .9rem; background: #fff; border: 1px solid #E3E7EE; border-radius: 16px; border-bottom-left-radius: 5px; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #8C94A6; animation: bounce 1.2s infinite ease; }
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
.booking-ticket-widget { padding: .8rem 1rem; border-radius: 14px; background: #FFF6E6; border: 1px dashed #E9A23B; font-size: .85rem; color: #1C1305; }
.booking-ticket-widget strong { display: block; color: #1C1305; }
.booking-ticket-widget span { color: #6B5A3A !important; font-size: .76rem; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.1rem 1.1rem; border-top: 1px solid #E5E8EF; background: #fff; min-height: 64px; align-items: center; }
.qr-btn { font: 500 .84rem/1.2 var(--f-sans); padding: .55rem .9rem; border-radius: 999px; border: 1px solid #CDD3DE; background: #fff; color: #0F1422; cursor: pointer; text-align: left; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.qr-btn:hover { background: #0F1422; border-color: #0F1422; color: #fff; }
.qr-btn:focus-visible { outline-color: #F5B04C; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } .chat-messages { height: 340px; } }

/* ── Industries ─────────────────────────────────────────────── */
.industries { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.industries li { padding: .6rem 1rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink); }
.industries li.first { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.industries-note { margin-top: 1.5rem; color: var(--ink-2); }

/* ── Process ────────────────────────────────────────────────── */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; position: relative; }
.process::before { content: ""; position: absolute; top: 20px; left: 20px; right: 20px; height: 1px; background: var(--line); }
.process li { position: relative; min-width: 0; }
.p-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .8rem; color: var(--ink); margin-bottom: 1.25rem; position: relative; }
.process li.key .p-num { background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); }
.process h3 { font-size: var(--t-md); margin-bottom: .45rem; }
.process p { color: var(--ink-2); font-size: var(--t-sm); }
.process-foot { margin-top: 2.5rem; display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 1.8rem; }
  .process::before { top: 20px; bottom: 20px; left: 20px; right: auto; width: 1px; height: auto; }
  .process li { padding-left: 62px; }
  .p-num { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* ── Founder ────────────────────────────────────────────────── */
.founder { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.founder > * { min-width: 0; }
.note { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.note blockquote { font-family: var(--f-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.28; letter-spacing: -0.005em; color: var(--ink); }
.note blockquote p { max-width: none; }
.note blockquote p + p { margin-top: 1rem; }
.sig { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.sig .avatar { width: 42px; height: 42px; background: var(--ink); color: var(--paper-2); font-size: .95rem; }
.sig b { display: block; font-weight: 600; font-size: var(--t-sm); }
.sig span { font-size: .8rem; color: var(--ink-2); }
.promises { list-style: none; }
.promises li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.promises li:first-child { padding-top: .2rem; }
.promises li:last-child { border-bottom: 0; }
.promises svg { width: 22px; height: 22px; color: var(--teal); margin-top: 1px; }
.promises h3 { font-size: var(--t-md); margin-bottom: .3rem; }
.promises p { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-wrap > * { min-width: 0; }
.faq-side p { color: var(--ink-2); margin-top: 1rem; }
.faq-side a { font-weight: 600; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; font-weight: 500; font-size: var(--t-md); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--teal); }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; font-family: var(--f-mono); font-size: 1rem; color: var(--ink-2); transition: transform var(--ease), background var(--ease); }
details[open] .faq-toggle { transform: rotate(45deg); background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); }
.faq-answer { padding-bottom: 1.4rem; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ── CTA / forms ────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -200px; top: -200px; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(245,176,76,.13), transparent 70%); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.cta-grid > * { min-width: 0; }
.cta-copy h2 .serif { color: var(--lamp); }
.cta-copy > p { color: var(--night-dim); margin-top: 1rem; font-size: var(--t-md); }
.contact-list { list-style: none; margin-top: 2.2rem; display: grid; gap: 1.2rem; padding-top: 1.6rem; border-top: 1px solid var(--night-line); }
.contact-list .lbl { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-dim); margin-bottom: .3rem; }
.contact-list a { color: var(--night-ink); font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--lamp); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.copy-btn { display: inline-flex; align-items: center; gap: .4rem; font: 500 .74rem/1 var(--f-sans); padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--night-dim); cursor: pointer; }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn:hover { color: var(--night-ink); border-color: rgba(238,240,246,.35); }

.form-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; min-width: 0; }
fieldset.form-group { border: 0; padding: 0; }
.form-group label, .form-legend { font-size: .82rem; font-weight: 500; color: var(--night-ink); }
.form-legend { margin-bottom: .55rem; }
.req { color: var(--lamp); margin-left: 2px; }
.opt { font-weight: 400; color: var(--night-dim); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: .78rem .95rem;
  font: 400 .95rem/1.4 var(--f-sans);
  color: var(--night-ink); background: var(--night);
  border: 1px solid rgba(238,240,246,.14); border-radius: 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
input::placeholder, textarea::placeholder { color: #6B7489; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lamp); box-shadow: 0 0 0 3px rgba(245,176,76,.2); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239BA3B8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
select option { background: var(--night-2); color: var(--night-ink); }
textarea { resize: vertical; min-height: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip-check span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 999px; font-size: .85rem; border: 1px solid rgba(238,240,246,.16); color: var(--night-ink); transition: background var(--ease), border-color var(--ease), color var(--ease); }
.chip-check input:checked + span { background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--lamp); outline-offset: 2px; }
.field-error { display: none; font-size: .78rem; color: #FF9C91; }
.field-error.visible { display: block; }
.form-footer-note { margin-top: .8rem; font-size: .78rem; color: var(--night-dim); text-align: center; max-width: none; }
.form-status { display: none; padding: 1.1rem 1.2rem; border-radius: 14px; font-size: .95rem; margin-top: 1rem; }
.form-status.success { display: block; background: rgba(255,200,115,.10); border: 1px solid rgba(255,200,115,.35); color: var(--mint); }
.form-status.error { display: block; background: rgba(255,156,145,.1); border: 1px solid rgba(255,156,145,.35); color: #FFB4AB; }
.form-status a { color: inherit; text-decoration: underline; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* Light form (quote page) */
.form-light.form-card { background: var(--paper-2); border-color: var(--line); box-shadow: 0 30px 60px -40px rgba(10,20,24,.35); }
.form-light .form-group label, .form-light .form-legend { color: var(--ink); }
.form-light .opt, .form-light .form-footer-note { color: var(--ink-2); }
.form-light .req { color: #C47A12; }
.form-light input[type="text"], .form-light input[type="email"], .form-light select, .form-light textarea { background: var(--paper); color: var(--ink); border-color: var(--line); }
.form-light input::placeholder, .form-light textarea::placeholder { color: #8A93A6; }
.form-light input:focus, .form-light select:focus, .form-light textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.form-light select option { background: var(--paper-2); color: var(--ink); }
.form-light .chip-check span { color: var(--ink); border-color: var(--line); background: var(--paper); }
.form-light .chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.form-light .field-error { color: var(--err); }
.quote-page .form-status.success { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.quote-page .form-status.error { background: color-mix(in srgb, var(--err) 8%, transparent); border-color: color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }

/* ── Quote page ─────────────────────────────────────────────── */
.page-hero { background: var(--night); color: var(--night-ink); padding-block: clamp(3rem, 7vw, 5rem) clamp(6rem, 10vw, 8rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -160px; top: -200px; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(245,176,76,.16), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.02; color: var(--night-ink); }
.page-hero h1 .serif { color: var(--lamp); }
.page-hero p { color: var(--night-dim); margin-top: 1rem; font-size: var(--t-md); }
.quote-body { margin-top: clamp(-5rem, -7vw, -3.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); position: relative; }
.quote-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.quote-grid > * { min-width: 0; }
.what-next { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); position: sticky; top: 92px; }
.what-next h2 { font-size: var(--t-lg); margin-bottom: 1.3rem; }
.what-next ol { list-style: none; display: grid; gap: 1.2rem; }
.what-next li { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; }
.wn-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: .74rem; border: 1px solid var(--line); }
.what-next h3 { font-size: .95rem; margin-bottom: .2rem; }
.what-next p { font-size: .85rem; color: var(--ink-2); }
.what-next-contact { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .9rem; }
.what-next-contact p { color: var(--ink-2); margin-bottom: .2rem; }
.what-next-contact a { font-weight: 600; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .what-next { position: static; } }

/* ── 404 ────────────────────────────────────────────────────── */
.not-found { min-height: 62vh; display: grid; place-items: center; text-align: center; background: var(--night); padding-block: 4rem; }
.not-found .big { font-family: var(--f-display); font-style: italic; font-size: clamp(6rem, 22vw, 11rem); line-height: 1; color: var(--lamp); }
.not-found h1 { font-size: var(--t-2xl); color: var(--night-ink); margin-top: .5rem; }
.not-found p { color: var(--night-dim); margin: 1rem auto 2rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #06080F; color: var(--night-dim); padding-block: 3.5rem 2.5rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--night-line); }
.footer-top p { margin-top: .9rem; font-size: .88rem; max-width: 32ch; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; align-content: flex-start; }
.footer-links a { color: var(--night-dim); font-size: .9rem; }
.footer-links a:hover { color: var(--night-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.5rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; }

/* ── Motion preferences ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Motion ─────────────────────────────────────────────────── */
.hero::before { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,40px) scale(1.08); } }
.clock-chip { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Hero conversation plays in once */
.js .thread > *, .js .ticket { opacity: 0; transform: translateY(8px) scale(.98); animation: pop .5s cubic-bezier(.2,.8,.3,1) forwards; }
.js .thread > :nth-child(1) { animation-delay: .25s; }
.js .thread > :nth-child(2) { animation-delay: .55s; }
.js .thread > :nth-child(3) { animation-delay: 1.15s; }
.js .thread > :nth-child(4) { animation-delay: 1.75s; }
.js .thread > :nth-child(5) { animation-delay: 2.35s; }
.js .thread > :nth-child(6) { animation-delay: 2.95s; }
.js .thread > :nth-child(7) { animation-delay: 3.55s; }
.js .ticket { animation-delay: 4.2s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* Hero text rises in */
.js .hero-grid > div > * { opacity: 0; transform: translateY(14px); animation: pop .8s cubic-bezier(.2,.8,.3,1) forwards; }
.js .hero-grid > div > :nth-child(1) { animation-delay: .05s; }
.js .hero-grid > div > :nth-child(2) { animation-delay: .15s; }
.js .hero-grid > div > :nth-child(3) { animation-delay: .3s; }
.js .hero-grid > div > :nth-child(4) { animation-delay: .42s; }
.js .hero-grid > div > :nth-child(5) { animation-delay: .54s; }
.js .studio { opacity: 0; transform: translateY(24px); animation: pop 1s .2s cubic-bezier(.2,.8,.3,1) forwards; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.8,.3,1), transform .8s cubic-bezier(.2,.8,.3,1); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* AI row lights up hour by hour */
.js .hours.all i:not(.on) { background: var(--line); transition: background .35s ease, transform .35s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.js .compare.in .hours.all i:not(.on) { background: var(--lamp); }
.hours i { transition: transform .25s ease; }
.hours:hover i { transform: scaleY(.92); }
.hours i:hover { transform: scaleY(1.08) !important; }

/* Hover depth */
.tile { transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, border-color .35s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(15,20,34,.35); }
.industries li { transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.industries li:hover { transform: translateY(-2px); border-color: var(--ink); }
.promises li svg { transition: transform .3s ease; }
.promises li:hover svg { transform: scale(1.15) rotate(-6deg); color: var(--lamp); }
.btn-lamp { position: relative; overflow: hidden; }
.btn-lamp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-lamp:hover::after { transform: translateX(120%); }
.chat-widget { transition: transform .4s ease; }
.faq-answer { animation: fadeDown .35s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-header .header-inner { transition: height .3s ease; }
.site-header.scrolled .header-inner { height: 60px; }

@media (prefers-reduced-motion: reduce) {
  .js .float-chat, .js .float-flow, .js .float-flow li, .js .hero-grid > div > *, .js .studio, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .compare .hours.all i:not(.on) { background: var(--lamp); }
}

/* ============ v4: full-service studio components ============ */

/* Hero visual: website + AI chat + automation */
.hero { padding-bottom: clamp(5rem, 9vw, 7.5rem); }
.studio { position: relative; width: 100%; max-width: 540px; justify-self: center; padding: 0 0 70px 0; margin: 0; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; color: #0F1422; box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #EDEFF4; border-bottom: 1px solid #E1E4EB; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CDD2DC; }
.browser-bar .url { margin-left: 10px; flex: 1; max-width: 240px; font-family: var(--f-mono); font-size: .66rem; color: #6B7489; background: #fff; border-radius: 6px; padding: 4px 10px; }
.browser-body { padding: 18px 20px 20px; }
.site-nav { display: flex; align-items: center; gap: 14px; font-size: .68rem; color: #6B7489; margin-bottom: 18px; }
.site-nav b { margin-right: auto; color: #0F1422; font-size: .8rem; letter-spacing: -.01em; }
.site-hero { padding: 18px; border-radius: 12px; background: linear-gradient(135deg, #1B2235, #2C3550); color: #fff; }
.site-eyebrow { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #FFC873; }
.site-h { font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; max-width: 16ch; }
.site-p { font-size: .72rem; color: #C3C9D8; margin-top: 6px; max-width: 30ch; }
.site-btn { display: inline-block; margin-top: 12px; font-size: .7rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #F5B04C; color: #1C1305; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.site-cards span { padding: 9px 10px; border-radius: 10px; background: #F4F5F8; font-size: .64rem; color: #6B7489; display: grid; gap: 2px; }
.site-cards b { color: #0F1422; font-size: .74rem; }
.float-chat, .float-flow { position: absolute; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.float-chat { right: -26px; bottom: 6px; width: 250px; padding: 12px; background: #fff; color: #0F1422; display: flex; flex-direction: column; gap: 6px; border: 1px solid #E3E7EE; }
.fc-head { display: flex; align-items: center; gap: 8px; font-size: .74rem; padding-bottom: 6px; border-bottom: 1px solid #EEF0F4; }
.fc-head .avatar { width: 24px; height: 24px; font-size: .6rem; }
.float-chat .b { font-size: .74rem; padding: .45rem .65rem; border-radius: 12px; }
.float-flow { left: -30px; bottom: 0; width: 220px; padding: 14px 14px 12px; background: var(--night-2); border: 1px solid var(--night-line); color: var(--night-ink); }
.ff-title { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); margin-bottom: 8px; }
.float-flow ul { list-style: none; display: grid; gap: 7px; }
.float-flow li { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--night-ink); }
.ff-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; background: var(--lamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 8.3l2.2 2.1L11.5 5.6' stroke='%231C1305' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 900px) { .studio { margin-top: 1rem; } }
@media (max-width: 600px) {
  .studio { padding-bottom: 0; }
  .float-chat, .float-flow { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin-top: 12px; }
  .site-cards span:nth-child(3) { display: none; }
  .site-cards { grid-template-columns: 1fr 1fr; }
}

/* Hero animation choreography */
.js .float-flow { opacity: 0; transform: translateY(16px); animation: pop .7s 1.1s cubic-bezier(.2,.8,.3,1) forwards; }
.js .float-chat { opacity: 0; transform: translateY(16px); animation: pop .7s 1.6s cubic-bezier(.2,.8,.3,1) forwards; }
.js .float-flow li { opacity: 0; transform: translateX(-6px); animation: pop .45s ease forwards; }
.js .float-flow li:nth-child(1) { animation-delay: 1.6s; }
.js .float-flow li:nth-child(2) { animation-delay: 2.1s; }
.js .float-flow li:nth-child(3) { animation-delay: 2.6s; }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--night-dim); font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue:hover { color: var(--lamp); text-decoration: none; }
.scroll-cue svg { width: 16px; height: 24px; }
.scroll-cue .wheel { animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(7px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* Industries */
.industries-band { padding-bottom: clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.who-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.who-row h2 { font-size: var(--t-2xl); }
.who-row h2 .serif { color: var(--ink-2); }
.who-row p { color: var(--ink-2); font-size: var(--t-md); }
@media (max-width: 760px) { .who-row { grid-template-columns: 1fr; } }
.marquee { overflow: hidden; padding-block: 1.1rem; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.svc { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 2.6vw, 1.9rem); border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); min-width: 0; transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, border-color .35s ease; }
.svc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--lamp), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.svc:hover { transform: translateY(-5px); box-shadow: 0 28px 60px -34px rgba(15,20,34,.45); }
.svc:hover::before { opacity: 1; }
.svc-top { display: flex; align-items: center; gap: .85rem; }
.svc h3 { font-size: var(--t-lg); }
.svc > p { color: var(--ink-2); font-size: .95rem; }
.svc .tile-ico { transition: transform .35s ease, background .35s ease, color .35s ease; }
.svc:hover .tile-ico { transform: rotate(-6deg) scale(1.06); background: var(--lamp); color: var(--lamp-ink); }
.caps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.caps li { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.35; font-size: .85rem; color: var(--ink); min-width: 0; }
.caps li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lamp); flex-shrink: 0; margin-top: .45em; }
.svc-link { margin-top: auto; padding-top: .4rem; font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; align-self: flex-start; }
.svc-link:hover { color: var(--teal); }
.svc--ai { background: var(--night); border-color: var(--night-line); color: var(--night-ink); }
.svc--ai h3 { color: var(--night-ink); }
.svc.svc--ai > p { color: var(--night-dim); }
.svc--ai .tile-ico { background: rgba(245,176,76,.14); color: var(--lamp); }
.svc--ai .caps { border-top-color: var(--night-line); }
.svc--ai .caps li { color: var(--night-ink); }
.svc--ai .svc-link { color: var(--lamp); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.care { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: clamp(1.3rem, 2.6vw, 1.8rem); border-radius: var(--r-lg); border: 1px dashed var(--line); background: var(--paper-2); }
.care h3 { font-size: var(--t-md); }
.care p { color: var(--ink-2); font-size: .95rem; margin-top: .25rem; }

/* Stack */
.stack { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stack > * { min-width: 0; }
.stack h2 { font-size: var(--t-2xl); }
.stack-note { color: var(--ink-2); margin-top: 1rem; font-size: var(--t-md); }
.stack-list { list-style: none; }
.stack-list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); transition: padding-left .3s ease; }
.stack-list li:first-child { border-top: 1px solid var(--line); }
.stack-list li:hover { padding-left: .5rem; }
.stack-list b { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-top: .15rem; }
.stack-list span { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .stack { grid-template-columns: 1fr; } .stack-list li { grid-template-columns: 1fr; gap: .2rem; } }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; row-gap: .6rem; }
  .track span:nth-child(n+17) { display: none; }
  .scroll-cue .wheel { animation: none; }
}
