/* ============================================================
   OmarHQ — Design-led AI studio
   Crafted, not generated.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --ink:        #0d1b2a;   /* primary dark bg / body ink            */
  --ink-raised: #13243a;   /* cards / surfaces on dark              */
  --ink-deep:   #0a1622;   /* a notch deeper, for the form well     */
  --ink-line:   rgba(255,255,255,.09);
  --paper:      #f5f3ee;   /* light editorial sections              */
  --paper-raised:#ece8df;  /* cards on paper                        */
  --paper-line: rgba(13,27,42,.10);
  --lime:       #39e75f;   /* rationed accent: live / active moment */
  --lime-deep:  #2bc24a;
  --slate:      #8ea1b6;   /* muted text on dark                    */
  --warm-gray:  #6c6a61;   /* muted text on paper                   */

  --font-display: "General Sans","Geist","Inter Tight",system-ui,sans-serif;
  --font-body:    "General Sans",system-ui,sans-serif;
  --font-mono:    "JetBrains Mono",ui-monospace,"SFMono-Regular",monospace;
  --font-serif:   "Fraunces",Georgia,serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --maxw: 1280px;
  --gutter: clamp(22px, 5vw, 84px);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: #eef2f6;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { display: block; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }

.section--ink   { background: var(--ink);   color: #eef2f6; }
.section--paper { background: var(--paper);  color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section--ink   .eyebrow { color: var(--slate); }
.section--paper .eyebrow { color: var(--warm-gray); }

.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* the green dot motif — one mark, reused */
.dot {
  display: inline-block;
  width: .5em; height: .5em;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: baseline;
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor      { width: 7px;  height: 7px;  background: #fff; transform: translate(-50%,-50%); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.55);
               transform: translate(-50%,-50%); transition: width .22s var(--ease),
               height .22s var(--ease), border-color .22s var(--ease), opacity .22s; }
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--lime); }
.cursor-ring.is-down  { width: 26px; height: 26px; }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none !important; }
  body.cursor-on { cursor: auto; }
}

/* ============================================================
   Reveal system
   ============================================================ */
/* Failure-safe: content is VISIBLE by default. Only once JS signals it is
   actively driving reveals (body.reveal-ready) do we hide not-yet-revealed
   items — so if JS or the observer ever fails, nothing stays invisible. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition-property: opacity, transform;
    transition-duration: .8s, .8s;
    transition-timing-function: var(--ease), var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  body.reveal-ready .reveal:not(.in) {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .1s linear;
  will-change: transform;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.btn--lime:hover { background: var(--lime-deep); }

.btn--ghost-d {
  background: transparent;
  color: #eef2f6;
  border-color: var(--ink-line);
}
.btn--ghost-d:hover { border-color: rgba(255,255,255,.4); background: var(--ink-raised); }

.btn--big { padding: 20px 36px; font-size: 17px; }

.magnetic { display: inline-flex; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease),
              padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,27,42,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ink-line);
  padding-top: 15px; padding-bottom: 15px;
}
.nav__logo { display: inline-flex; align-items: center; height: 24px; width: auto; }
.nav__logo img { height: 100%; width: auto; display: block; }
.nav__links {
  display: flex; align-items: center; gap: 34px;
  margin-left: auto; margin-right: 8px;
}
.nav__link {
  font-size: 14.5px; font-weight: 500; color: #d4dce4;
  position: relative; letter-spacing: -0.01em;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1.5px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { padding: 11px 20px; font-size: 14px; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============================================================
   HERO — full-bleed signature video, headline left
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 132px; padding-bottom: 86px;
  overflow: hidden;
  isolation: isolate;
}
/* the signature loop, weighted to the right */
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  pointer-events: none;
}
.hero__media video,
.hero__media img {
  position: absolute; top: 50%; right: 0;
  height: 100%; width: 72%;
  object-fit: cover; object-position: center;
  transform: translateY(-50%);
  will-change: transform;
}
/* readability scrims — navy from the left + a soft floor/ceiling */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 24%, rgba(13,27,42,.72) 46%, rgba(13,27,42,0) 74%),
    linear-gradient(0deg, var(--ink) 0%, rgba(13,27,42,0) 26%),
    linear-gradient(180deg, rgba(13,27,42,.55) 0%, rgba(13,27,42,0) 22%);
}
.hero__inner { width: 100%; max-width: 660px; }
.hero__eyebrow { margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: .98;
  letter-spacing: -0.03em;
  margin: 0 0 30px;
  text-wrap: balance;
}
.hero h1 .serif-i { font-weight: 400; font-size: .98em; }
.hero__sub {
  max-width: 30em;
  color: #c2cedb;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  margin: 0 0 38px;
}
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__note { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--slate); }
.hero__note .dot { width: 6px; height: 6px; margin-right: 7px; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 30px; z-index: 1;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); display: flex; align-items: center; gap: 10px;
}
.hero__scroll .line { width: 34px; height: 1px; background: var(--ink-line); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--lime);
  animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0%{ transform: translateX(-100%);} 100%{ transform: translateX(280%);} }
@media (prefers-reduced-motion: reduce) { .hero__scroll .line::after { animation: none; } }

@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: 118px; padding-bottom: 64px; }
  .hero__media video, .hero__media img {
    position: absolute; top: auto; bottom: 0; right: 50%; transform: translateX(50%);
    width: 130%; height: 56%; object-position: center;
  }
  .hero__scrim {
    background:
      linear-gradient(180deg, var(--ink) 0%, var(--ink) 30%, rgba(13,27,42,.6) 52%, rgba(13,27,42,0) 70%),
      linear-gradient(0deg, var(--ink) 4%, rgba(13,27,42,0) 30%);
  }
  .hero__inner { padding-bottom: 40vw; }
  .hero__scroll { display: none; }
}

/* ============================================================
   HERO headline — interactive word previews (desktop only)
   ============================================================ */
.hw { position: relative; white-space: nowrap; }
.hw .serif-i { position: relative; }

/* lime underline emphasis — pointer/hover devices only */
@media (hover: hover) and (pointer: fine) {
  .hw { cursor: pointer; }
  .hw .serif-i::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -0.07em;
    height: 2px; border-radius: 2px;
    background: var(--lime);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .42s var(--ease);
  }
  .hw:hover .serif-i::after,
  .hw:focus-visible .serif-i::after { transform: scaleX(1); }
  .hw:focus-visible { outline: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hw .serif-i::after { transition: none; }
}

/* floating square preview that follows the cursor */
.word-preview {
  position: fixed; top: 0; left: 0; z-index: 900;
  width: 184px; height: 184px;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  background: var(--ink-deep, #0a1622);
  box-shadow: 0 26px 64px -22px rgba(0,0,0,.66);
  opacity: 0;
  transform: translate(-50%,-50%) scale(.9);
  transition: opacity .32s var(--ease), transform .42s var(--ease);
  will-change: transform, opacity, left, top;
}
.word-preview.show {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.word-preview__frame { position: absolute; inset: 0; }
.word-preview video, .word-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .28s var(--ease);
}
.word-preview::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(57,231,95,.28) inset, 0 0 0 1px rgba(0,0,0,.4);
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
  .word-preview { display: none !important; }
}

/* ============================================================
   MANIFESTO strip (dark)
   ============================================================ */
.manifesto {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: clamp(54px, 8vw, 110px) 0;
  text-align: center;
  overflow: hidden;
}
.manifesto__line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(40px,6vw,64px);
}
.manifesto__line .serif-i { font-weight: 400; }
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 36s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; justify-content: center; flex-wrap: wrap; } }
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate);
  padding: 0 30px;
  display: inline-flex; align-items: center; gap: 30px;
}
.marquee__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-line); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES (paper)
   ============================================================ */
.services { padding: clamp(80px,11vw,150px) 0; }
.services__head {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  gap: 40px; align-items: end;
  margin-bottom: clamp(50px,7vw,90px);
}
.services__head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 18px 0 0; text-wrap: balance;
}
.services__head h2 .serif-i { font-weight: 400; }

.svc {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0, clamp(260px,34vw,440px));
  gap: clamp(28px,6vw,80px);
  padding: clamp(40px,6vw,76px) 0;
  border-top: 1px solid var(--paper-line);
  align-items: center;
}
.svc:last-child { border-bottom: 1px solid var(--paper-line); }
.svc__text { max-width: 30em; }
/* square media tile — poster by default, video on hover / in-view */
.svc__media {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 18px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 26px 64px -30px rgba(13,27,42,.5);
}
.svc__media::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(13,27,42,.08), inset 0 0 0 1px rgba(57,231,95,.10);
  pointer-events: none;
}
.svc__video, .svc__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .svc:hover .svc__video { transform: scale(1.045); }
}
.svc__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--warm-gray); margin-bottom: 18px; display: flex; gap: 12px; }
.svc__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 7vw, 96px);
  line-height: .92; letter-spacing: -0.03em; margin: 0;
}
.svc__desc { font-size: clamp(16px,1.35vw,19px); line-height: 1.55; margin: 16px 0 0; max-width: 26em; }
.svc__desc .serif-i { color: var(--ink); }
/* service tag chips — restrained hairline pills */
.svc__tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__tags li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--warm-gray);
  border: 1px solid var(--paper-line); border-radius: 999px;
  padding: 7px 14px; background: rgba(13,27,42,.015);
}
.svc__deliver { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__deliver li {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em;
  color: var(--warm-gray);
  border: 1px solid var(--paper-line); border-radius: 999px;
  padding: 7px 14px; background: var(--paper-raised);
}
@media (max-width: 760px) {
  .services__head { grid-template-columns: 1fr; gap: 14px; }
  .svc { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .svc__media { max-width: 440px; }
}

/* ============================================================
   CASE STUDY (paper, raised)
   ============================================================ */
.case { background: var(--paper-raised); padding: clamp(80px,11vw,140px) 0; position: relative; overflow: hidden; }
/* quiet echo of the signature still, tucked behind the phone */
.case__echo {
  position: absolute; z-index: 0; pointer-events: none;
  right: -6%; top: 50%; transform: translateY(-50%);
  width: min(640px, 52vw); aspect-ratio: 16/9;
  background: url("assets/signature-poster.jpg") center/cover no-repeat;
  opacity: .14; filter: grayscale(.3) contrast(.9);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 72%);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 72%);
}
.case .wrap { position: relative; z-index: 1; }
.case__grid {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: clamp(40px,6vw,90px);
  align-items: center;
}
.case__tag { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.case h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 26px; text-wrap: balance;
}
.case__story { color: #3a4654; font-size: clamp(16px,1.25vw,18px); line-height: 1.62; margin: 0 0 20px; max-width: 36em; }
.case__story .serif-i { color: var(--ink); }
.case__quote-mini { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px,1.5vw,21px);
  color: var(--ink); line-height: 1.4; margin: 0 0 34px; max-width: 30em; }
.case__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.case__chips li { list-style: none; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .01em;
  color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: 999px; padding: 9px 15px; display: flex; align-items: center; gap: 9px; }
.case__chips .dot { width: 6px; height: 6px; }
.case__testi {
  border-top: 1px solid var(--paper-line);
  padding-top: 26px; max-width: 34em;
}
.case__testi p { font-size: 16px; line-height: 1.55; color: #3a4654; margin: 0 0 12px; font-style: italic; }
.case__testi .who { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--warm-gray); font-style: normal; }
.placeholder-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--warm-gray);
  border: 1px dashed var(--paper-line); border-radius: 4px; padding: 2px 7px; margin-bottom: 12px;
}

/* phone */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 330px; max-width: 100%;
  background: #0b141a;
  border-radius: 42px;
  padding: 13px;
  box-shadow: 0 2px 0 rgba(255,255,255,.5) inset, 0 40px 80px -30px rgba(13,27,42,.55),
              0 12px 30px -12px rgba(13,27,42,.4);
  border: 1px solid rgba(13,27,42,.12);
}
.phone__screen {
  background: #0b141a;
  border-radius: 32px;
  overflow: hidden;
  height: 600px;
  display: flex; flex-direction: column;
  position: relative;
}
.phone__notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 5;
}
.wa__header {
  background: #1f2c34; color: #e9edef;
  display: flex; align-items: center; gap: 12px;
  padding: 38px 16px 12px;
}
.wa__back { color: #8696a0; font-size: 20px; line-height: 1; }
.wa__avatar { width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(140deg,#2bc24a,#1a8c66); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #042; }
.wa__who { display: flex; flex-direction: column; line-height: 1.25; }
.wa__name { font-size: 15px; font-weight: 600; }
.wa__status { font-size: 11.5px; color: var(--lime); display: flex; align-items: center; gap: 5px; }
.wa__status .dot { width: 6px; height: 6px; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(57,231,95,.5);} 50%{ box-shadow: 0 0 0 5px rgba(57,231,95,0);} }
.wa__icons { margin-left: auto; color: #8696a0; display: flex; gap: 16px; font-size: 15px; }
.wa__body {
  flex: 1; padding: 16px 12px; overflow-y: auto; overflow-x: hidden;
  background-color: #0b141a;
  background-image:
    radial-gradient(rgba(255,255,255,.025) 1px, transparent 0);
  background-size: 22px 22px;
  display: flex; flex-direction: column; gap: 8px; justify-content: flex-end;
  scrollbar-width: none;
}
.wa__body::-webkit-scrollbar { display: none; }
.wa__day { align-self: center; font-size: 10.5px; color: #8696a0; background: #182229;
  padding: 4px 11px; border-radius: 7px; margin-bottom: 4px; font-family: var(--font-mono); letter-spacing: .04em; }
.bubble {
  max-width: 80%; padding: 7px 10px 8px; border-radius: 9px; font-size: 13.5px; line-height: 1.4;
  position: relative; color: #e9edef;
  opacity: 0; transform: translateY(8px) scale(.98);
}
.bubble.show { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.bubble--in  { align-self: flex-start; background: #1f2c34; border-top-left-radius: 3px; }
.bubble--out { align-self: flex-end;   background: #005c4b; border-top-right-radius: 3px; }
.bubble .t { display: block; font-size: 9.5px; color: rgba(233,237,239,.55); text-align: right; margin-top: 2px; }
.bubble .t .tick { color: #53bdeb; letter-spacing: -2px; margin-left: 3px; }
.bubble .em { font-family: var(--font-serif); font-style: italic; }
.typing {
  align-self: flex-start; background: #1f2c34; border-radius: 9px; border-top-left-radius: 3px;
  padding: 11px 13px; display: none; gap: 4px; align-items: center;
}
.typing.show { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; display: block;
  animation: typing 1.3s infinite ease-in-out; }
.typing i:nth-child(2){ animation-delay:.18s;} .typing i:nth-child(3){ animation-delay:.36s;}
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.5;} 30%{ transform: translateY(-4px); opacity:1; } }

@media (max-width: 860px) {
  .case__grid { grid-template-columns: 1fr; gap: 50px; }
  .case__grid .phone-wrap { order: -1; }
}

/* ============================================================
   ETHOS (dark)
   ============================================================ */
.ethos { background: var(--ink); padding: clamp(80px,11vw,150px) 0; }
.ethos__grid {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: clamp(40px,6vw,90px); align-items: center;
}
.ethos h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px,5vw,72px); line-height: 1.0; letter-spacing: -0.03em;
  margin: 22px 0 0; text-wrap: balance;
}
.ethos h2 .serif-i { font-weight: 400; }
.ethos__copy { color: var(--slate); font-size: clamp(16px,1.3vw,18.5px); line-height: 1.62; margin: 30px 0 0; max-width: 34em; }
.ethos__copy strong { color: #eef2f6; font-weight: 500; }
.ledger { display: flex; flex-direction: column; }
.ledger__row { display: flex; align-items: baseline; gap: 20px; padding: 26px 0; border-top: 1px solid var(--ink-line); }
.ledger__row:last-child { border-bottom: 1px solid var(--ink-line); }
.ledger__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px,5vw,68px);
  letter-spacing: -0.03em; line-height: 1; min-width: 1.4em; }
.ledger__num .dot { width: 9px; height: 9px; margin-left: 4px; }
.ledger__txt { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; line-height: 1.5;
  text-transform: uppercase; color: var(--slate); }
@media (max-width: 820px) { .ethos__grid { grid-template-columns: 1fr; gap: 48px; } }

/* ============================================================
   CTA (dark close)
   ============================================================ */
.cta { background: var(--ink); padding: clamp(90px,13vw,170px) 0; text-align: center; overflow: hidden; position: relative; }
/* soft anchor — heavily-cropped still bleeding from the right edge */
.cta__echo {
  position: absolute; z-index: 0; pointer-events: none;
  right: -18%; top: 50%; transform: translateY(-50%);
  width: min(900px, 70vw); aspect-ratio: 16/9;
  background: url("assets/signature-poster.jpg") center/cover no-repeat;
  opacity: .2;
  -webkit-mask-image: radial-gradient(60% 60% at 60% 50%, #000 20%, transparent 70%);
          mask-image: radial-gradient(60% 60% at 60% 50%, #000 20%, transparent 70%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta__dotform {
  width: 12px; height: 12px; border-radius: 50%; background: var(--lime); margin: 0 auto 40px;
  box-shadow: 0 0 0 0 rgba(57,231,95,.4); animation: ctaPulse 3s var(--ease) infinite;
}
@keyframes ctaPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(57,231,95,.35);} 50%{ box-shadow:0 0 0 22px rgba(57,231,95,0);} }
.cta h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px,6.4vw,90px); line-height: .98; letter-spacing: -0.03em;
  margin: 0 auto 28px; max-width: 14ch; text-wrap: balance;
}
.cta h2 .serif-i { font-weight: 400; }
.cta__sub { color: var(--slate); font-size: clamp(16px,1.4vw,19px); line-height: 1.6; max-width: 36em; margin: 0 auto 42px; }
.cta__email { margin-top: 24px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em; color: var(--slate); }
.cta__email a { color: #d4dce4; border-bottom: 1px solid var(--ink-line); padding-bottom: 2px; transition: border-color .25s, color .25s; }
.cta__email a:hover { color: var(--lime); border-color: var(--lime); }

/* ============================================================
   DARK-SECTION ATMOSPHERE (hero / ethos / cta)
   ============================================================ */
.atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ethos { position: relative; overflow: hidden; }
.hero .wrap, .ethos .wrap, .cta .wrap { position: relative; z-index: 2; }
.hero .atmos { z-index: 1; }                 /* above video(-2)/scrim(-1), below content(2) */

/* 1 — film grain */
.atmos__grain {
  position: absolute; inset: 0;
  background-image: url("assets/noise.png"); background-size: 160px 160px;
  opacity: .05; mix-blend-mode: overlay;
}
/* 2 — directional light + edge vignette for depth (navy on navy) */
.atmos__light {
  position: absolute; inset: 0;
  background: radial-gradient(110% 82% at var(--lx,28%) var(--ly,16%),
              rgba(42,68,102,.5) 0%, rgba(24,42,66,.18) 38%, rgba(13,27,42,0) 64%);
}
.atmos__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(135% 125% at 50% 38%, transparent 52%, rgba(7,14,24,.5) 100%);
}
/* 3 — heavily-blurred signature echo, different crop per section */
.atmos__echo {
  position: absolute; width: min(820px,78vw); aspect-ratio: 1 / 1;
  background-image: url("assets/signature-poster.jpg");
  background-size: cover; background-repeat: no-repeat;
  filter: blur(36px) saturate(.75) brightness(1.06);
  opacity: .13;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 50%, #000 22%, transparent 72%);
          mask-image: radial-gradient(58% 58% at 50% 50%, #000 22%, transparent 72%);
}
.atmos__echo--ethos { right: -16%; top: -14%; background-position: 28% 30%; }
.atmos__echo--cta   { left: 50%; bottom: -36%; transform: translateX(-50%);
                      width: min(1100px,94vw); background-position: 50% 72%; opacity: .11; }

/* 4 — cursor glow (desktop, JS-driven) */
.atmos__glow {
  position: absolute; top: 0; left: 0; width: 560px; height: 560px;
  margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(57,231,95,.10) 0%, rgba(57,231,95,.045) 32%, rgba(57,231,95,0) 66%);
  opacity: 0; transition: opacity .5s var(--ease); will-change: transform, opacity;
}
.atmos__glow.on { opacity: 1; }

/* 5 — sparse registration micro-details */
.atmos__mark {
  position: absolute; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(142,161,182,.42);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.atmos__mark .dot { width: 5px; height: 5px; }
.atmos__mark--br { right: clamp(20px,5vw,84px); bottom: clamp(20px,4vh,40px); }
.atmos__mark--bl { left: clamp(20px,5vw,84px);  bottom: clamp(20px,4vh,40px); }
.atmos__mark--tr { right: clamp(20px,5vw,84px); top: clamp(96px,12vh,128px); }

@media (hover: none), (pointer: coarse) { .atmos__glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .atmos__glow { display: none; } }
@media (max-width: 680px) { .atmos__mark { display: none; } }

/* ============================================================
   FOOTER (dark)
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid var(--ink-line); padding: clamp(56px,7vw,90px) 0 38px; }
.footer__top { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); gap: 40px; padding-bottom: 56px; }
.footer__brand .nav__logo { height: 26px; margin-bottom: 20px; }
.footer__desc { color: var(--slate); font-size: 15px; line-height: 1.6; max-width: 26em; }
.footer__desc .serif-i { color: #d4dce4; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 18px; font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 15px; color: #d4dce4; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer__col a:hover { color: var(--lime); }
.footer__icons { display: flex; gap: 16px; margin-top: 18px; }
.footer__icons a { color: var(--slate); display: inline-flex; transition: color .2s; }
.footer__icons a:hover { color: var(--lime); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 30px; border-top: 1px solid var(--ink-line); flex-wrap: wrap; }
.footer__bottom span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--slate); }
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}
