/* EKX main page. Look A "Blueprint" + v3 (ideas from Hermes and Khaeli): Ivory & Ink, a thin frame around the page,
   tight bold titles that come into focus, [mono bracket captions], light and dark sections, grainy engraved artwork,
   mini screens that show results, and a giant EKX at the bottom.
   Motion follows Emil Kowalski's rules: purposeful, strong ease-out, UI under 300 ms, transform/opacity/filter only, still under "reduce motion". */
:root {
  --bg: #f5f4f0; --ink: #1f1f1f; --muted: #6a675f; --line: #dedbd2; --grid: rgba(31, 31, 31, .07); --panel: #fbfaf7;
  --night: #0b0b0b; --night-ink: #f2f0ea; --night-muted: #9c998f; --night-line: #262523; --night-panel: #151514;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 4vw, 40px);
  --frame: clamp(6px, 1vw, 12px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141414; --ink: #f2f0ea; --muted: #a29f97; --line: #2c2b29; --grid: rgba(242, 240, 234, .06); --panel: #1b1b1a; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ol { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 300; }
.skip:focus { top: 12px; }

/* paper grain + the frame around the whole page (like a printed poster) */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.frame { position: fixed; inset: 0; z-index: 200; pointer-events: none; border: var(--frame) solid var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 calc(var(--gutter) + var(--frame)); }
.wordmark { display: inline-block; height: 26px; aspect-ratio: 1270 / 556; background: currentColor;
  -webkit-mask: url(assets/img/ekx-wordmark.png) center / contain no-repeat; mask: url(assets/img/ekx-wordmark.png) center / contain no-repeat; }

/* type */
.title { font-weight: 800; letter-spacing: -0.055em; line-height: .92; text-wrap: balance; }
.hero .title, .title.h1 { font-size: clamp(54px, 12.5vw, 150px); }
.title.h2 { font-size: clamp(44px, 7.6vw, 96px); }
.bracket { font-family: var(--mono); letter-spacing: 0; }
.kicker { font: 400 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 18px; }
.lead { font-size: clamp(16px, 2.1vw, 21px); line-height: 1.45; max-width: 32ch; }
.sub { font-size: clamp(15px, 1.7vw, 17px); line-height: 1.5; color: var(--muted); max-width: 46ch; margin-top: 18px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }

/* the headline comes into focus word by word on load */
.js .focus span { display: inline-block; filter: blur(14px); opacity: 0; transform: translateY(6px);
  animation: focus 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes focus { to { filter: blur(0); opacity: 1; transform: none; } }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding-top: var(--frame); }
.nav nav { display: flex; gap: clamp(14px, 3vw, 28px); font: 500 13px var(--mono); }
.nav nav a { text-decoration: none; padding: 12px 0; position: relative; white-space: nowrap; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .nav nav a:hover::after { transform: scaleX(1); } }
@media (max-width: 560px) { .nav nav a:first-child { display: none; } }
@media (max-width: 400px) { .nav nav a:nth-child(3) { display: none; } }

/* hero: text on the left, the sphere you talk to on the right (stacked on phones) */
.hero { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; padding-top: clamp(28px, 6vh, 72px); }
.hero > * { min-width: 0; }
.hero .title { margin: 0 0 22px; }
@media (min-width: 980px) { .hero { grid-template-columns: 1.05fr 1fr; } .hero .title { font-size: clamp(64px, 7.4vw, 118px); } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--ink); transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.ghost { color: var(--ink); background: transparent; }
@media (hover: hover) { .btn.ghost:hover { background: var(--ink); color: var(--bg); } .btn.solid:hover { background: transparent; color: var(--ink); } }

/* "try ekx": grid paper, the dotted sphere with light rays, the conversation and the question buttons */
.ask { position: relative; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 34px 0 18px;
  background: repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 32px); }
.ask-top { position: absolute; left: 0; right: 0; top: 8px; display: flex; justify-content: space-between; font: 400 12px var(--mono); pointer-events: none; }
.ask-top span { background: var(--bg); padding: 2px 6px 2px 0; }
.ask-top span + span { padding: 2px 0 2px 6px; }
.orb-wrap { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.orb { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.orb.dragging { cursor: grabbing; }
.orb-hint { position: absolute; right: 8%; top: 18%; font: 500 12px var(--mono); background: var(--ink); color: var(--bg); padding: 5px 9px; border-radius: 99px;
  pointer-events: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); animation: nudge 2.4s var(--ease-out) infinite; }
.orb-hint.gone { opacity: 0; transform: scale(.9); animation: none; }
@keyframes nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-4px); } 90% { transform: translateY(0); } }
.convo { min-height: 172px; display: grid; align-content: start; gap: 10px; padding: 6px 2px 14px; }
.convo .hint { font: 400 13px var(--mono); color: var(--muted); text-align: center; }
.q, .a { max-width: 88%; padding: 10px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: rise 260ms var(--ease-out); }
.q { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.a { justify-self: start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.a .who { display: block; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); margin-bottom: 5px; }
.a.thinking .txt::after { content: "thinking…"; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.a .txt.caret::after { content: ""; display: inline-block; width: 1px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink);
  font: 500 14px var(--sans); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.chips button:active { transform: scale(0.97); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .chips button:hover { background: var(--ink); color: var(--bg); } }
@media (max-width: 600px) {
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
}

/* where EKX works: a slow scrolling strip */
.strip { margin-top: clamp(64px, 10vh, 110px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0 24px; overflow: hidden; }
.strip-label { text-align: center; font: 400 13px var(--mono); color: var(--muted); margin-bottom: 16px; }
.marquee { -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; gap: clamp(36px, 5vw, 72px); animation: slide 38s linear infinite; }
.track span { font-weight: 700; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.03em; white-space: nowrap; }
@keyframes slide { to { transform: translateX(calc(-50% - clamp(18px, 2.5vw, 36px))); } }
@media (hover: hover) { .strip:hover .track { animation-play-state: paused; } }

/* dark sections: always night, in light and dark mode */
.ink, .cta, .foot { background: var(--night); color: var(--night-ink); }
.ink .kicker, .cta .kicker, .ink .sub, .cta .sub { color: var(--night-muted); }

/* what ekx does: engraved artwork + a grid of mini screens */
.ink { position: relative; overflow: hidden; margin-top: clamp(80px, 12vh, 140px); padding: clamp(84px, 13vh, 150px) 0 clamp(72px, 11vh, 130px); }
.ink-art { position: absolute; right: -6%; top: 0; width: min(78%, 980px); height: auto; mix-blend-mode: screen; opacity: .85; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 95%); mask: linear-gradient(180deg, #000 55%, transparent 95%); }
@media (max-width: 760px) { .ink-art { position: relative; right: auto; width: 140%; max-width: none; margin: -30px 0 -40px -20%; opacity: .9; } }
.ink .wrap { position: relative; }
.bento { display: grid; gap: 14px; margin-top: clamp(40px, 7vh, 72px); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--night-panel); border: 1px solid var(--night-line); border-radius: 20px; padding: 14px 14px 22px; }
.tile h3 { font-weight: 700; font-size: 21px; letter-spacing: -0.025em; margin: 18px 6px 6px; }
.tile p { color: var(--night-muted); font-size: 14.5px; margin: 0 6px; }
.screen { position: relative; height: 230px; border-radius: 14px; overflow: hidden; background: #050505; border: 1px solid #1f1e1c; padding: 16px; display: grid; align-content: start; gap: 8px; }

.screen.phone { background: radial-gradient(120% 80% at 50% 0%, #2a2926, #050505 70%); text-align: center; }
.lock-time { font-weight: 600; font-size: 46px; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
.lock-date { font-size: 13px; color: var(--night-muted); margin-bottom: 6px; }
.notif { text-align: left; background: rgba(242,240,234,.1); backdrop-filter: blur(8px); border-radius: 12px; padding: 8px 11px; font-size: 12.5px; line-height: 1.35; display: grid; }
.notif b { font: 500 10px var(--mono); letter-spacing: .08em; color: var(--night-muted); }
.notif em { font-style: normal; color: var(--night-muted); }
.notif.dim { opacity: .55; transform: scale(.96); }

.screen.langs { gap: 7px; }
.langs p { margin: 0; font-size: 13px; line-height: 1.35; padding: 7px 11px; border-radius: 13px; max-width: 92%; }
.langs .me { justify-self: end; background: var(--night-ink); color: var(--night); }
.langs .ai { justify-self: start; background: #1b1a18; border: 1px solid #2a2926; }
.langs i { font: 500 10px var(--mono); font-style: normal; color: var(--night-muted); margin-right: 7px; }

.screen.bars { align-content: center; gap: 12px; }
.bars .cap, .clock .cap { font: 400 11px var(--mono); color: var(--night-muted); }
.bar { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; font-size: 12.5px; }
.bar i { height: 12px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--night-ink) 0 2px, transparent 2px 4px); transform-origin: left; transform: scaleX(var(--v)); }
.js .tile.reveal:not(.seen) .bar i { transform: scaleX(0); }
.bar i { transition: transform 900ms var(--ease-out) 200ms; }

.screen.clock { place-content: center; text-align: center; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(242,240,234,.04) 18px 19px), #050505; }
.clock .big { font-weight: 800; font-size: 64px; letter-spacing: -0.05em; line-height: 1; }
.clock .big small { font-size: 18px; font-weight: 600; letter-spacing: 0; margin-left: 4px; color: var(--night-muted); }

/* services: cards with line drawings */
.services { padding-top: clamp(96px, 14vh, 160px); }
.cards { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
.card-svc { border: 1px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--panel); }
.iso { display: block; width: 100%; height: auto; padding: 18px 10px 4px; color: var(--ink);
  background: repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 24px);
  border-bottom: 1px solid var(--line); }
.card-body { padding: 22px 24px 28px; }
.card-body .n { font: 400 13px var(--mono); color: var(--muted); }
.card-body h3 { font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.035em; line-height: 1.05; margin-top: 10px; }
.card-body p { margin-top: 10px; color: var(--muted); max-width: 48ch; }
.card-body p a { color: var(--ink); text-underline-offset: 3px; }
.live, .soon { display: inline-block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; border-radius: 99px; padding: 4px 8px; margin-left: 6px; color: var(--ink); }
.soon { color: var(--muted); border-style: dashed; }

/* how we work */
.how { padding-top: clamp(96px, 14vh, 160px); }
.steps { display: grid; margin-top: 36px; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li + li { border-left: 1px solid var(--line); } }
.steps li { padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .steps li { padding: 26px 22px 30px; border-bottom: 0; } .steps li:first-child { padding-left: 0; } }
.steps .n { font: 400 13px var(--mono); color: var(--muted); }
.steps h3 { font-weight: 700; font-size: 24px; letter-spacing: -0.03em; margin-top: 18px; }
.steps p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* final call: the engraved hands, light dust drifting from the point between them */
.cta { position: relative; overflow: hidden; margin-top: clamp(96px, 14vh, 160px); padding: 0 0 clamp(80px, 12vh, 130px); text-align: center; }
.cta-art { width: min(1200px, 160%); max-width: none; height: auto; margin: 0 0 -6%; position: relative; left: 50%; transform: translateX(-50%); mix-blend-mode: screen; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-in { position: relative; }
.cta .sub { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }
.btn.inv { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
@media (hover: hover) { .btn.inv:hover { background: transparent; color: var(--night-ink); } }
.btn.outline-inv { background: transparent; color: var(--night-ink); border-color: var(--night-ink); }
@media (hover: hover) { .btn.outline-inv:hover { background: var(--night-ink); color: var(--night); } }

/* footer: a giant EKX */
.foot { position: relative; overflow: hidden; padding-bottom: var(--frame); padding-top: clamp(24px, 4vh, 48px); border-top: 1px solid var(--night-line); }
.foot-row { position: relative; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font: 400 13px var(--mono); color: var(--night-muted); padding-top: 18px; padding-bottom: 10px; }
.foot-row a { text-decoration: none; }
.giant { position: relative; width: calc(100% - 2 * var(--frame) - 2 * var(--gutter)); max-width: 1200px; margin: 0 auto; aspect-ratio: 1150 / 556; background: var(--night-ink);
  -webkit-mask: url(assets/img/ekx-wordmark.png) left center / auto 100% no-repeat; mask: url(assets/img/ekx-wordmark.png) left center / auto 100% no-repeat; opacity: .96; }

/* scroll reveal: once, small lift */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .focus span { animation: none; filter: none; opacity: 1; transform: none; }
  .track, .orb-hint, .q, .a, .a .txt.caret::after, .live-dot { animation: none; }
  .js .tile.reveal:not(.seen) .bar i { transform: scaleX(var(--v)); }
}

/* engraved art: deepen the near-blacks so no rectangle shows, and fade the edges into the night */
.cta-art { filter: brightness(.92) contrast(1.25);
  -webkit-mask: radial-gradient(70% 75% at 50% 50%, #000 55%, transparent 100%); mask: radial-gradient(70% 75% at 50% 50%, #000 55%, transparent 100%); }
.ink-art { filter: brightness(.92) contrast(1.25); }

/* ---------- One night with EKX: the page holds still while the night plays out ---------- */
.night { position: relative; height: 460vh; background: var(--night); color: var(--night-ink); margin-top: clamp(80px, 12vh, 140px); }
.night .kicker { color: var(--night-muted); }
.night-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stars { position: absolute; inset: 0; opacity: var(--stars, 1); pointer-events: none;
  background: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 62%, #fff, transparent), radial-gradient(1.4px 1.4px at 43% 30%, #fff, transparent),
    radial-gradient(1px 1px at 57% 78%, #fff, transparent), radial-gradient(1.2px 1.2px at 71% 14%, #fff, transparent), radial-gradient(1px 1px at 84% 52%, #fff, transparent),
    radial-gradient(1px 1px at 92% 86%, #fff, transparent), radial-gradient(1.3px 1.3px at 6% 74%, #fff, transparent), radial-gradient(1px 1px at 36% 90%, #fff, transparent),
    radial-gradient(1px 1px at 64% 40%, #fff, transparent), radial-gradient(1.2px 1.2px at 19% 42%, #fff, transparent), radial-gradient(1px 1px at 77% 68%, #fff, transparent); }
.dawn { position: absolute; inset: auto 0 0; height: 70%; pointer-events: none; opacity: var(--dawn, 0);
  background: radial-gradient(80% 90% at 50% 120%, rgba(245,244,240,.34), rgba(245,244,240,.06) 55%, transparent 75%); }
.night-in { position: relative; height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; gap: 14px; padding-top: calc(var(--frame) + 76px); padding-bottom: calc(var(--frame) + 22px); }
@media (min-width: 980px) {
  .night-in { grid-template-columns: 1fr 1.1fr .8fr; grid-template-rows: 1fr auto auto; column-gap: 48px; align-items: center; }
  .night-head { grid-row: 1; } .night-feed { grid-row: 1; } .night-phone { grid-row: 1; }
  .night-bar, .night-end { grid-column: 1 / -1; }
}
.night-head .title.h2 { font-size: clamp(40px, 6vw, 86px); }
@media (min-width: 980px) { .night-head .title.h2 { font-size: clamp(44px, 4.4vw, 70px); } }
.night-clock { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; font-weight: 800; letter-spacing: -0.05em; }
.nc-time { font-size: clamp(56px, 8vw, 112px); line-height: 1; font-variant-numeric: tabular-nums; }
.nc-ap { font-size: clamp(18px, 2vw, 26px); color: var(--night-muted); letter-spacing: 0; }
.night-hint { font: 400 12px var(--mono); color: var(--night-muted); margin-top: 10px; transition: opacity 300ms ease; }
.night.going .night-hint { opacity: 0; }

.night-feed { position: relative; min-height: 210px; align-self: center; }
.ev { position: absolute; inset: 0 0 auto; display: grid; gap: 10px; opacity: 0; transform: translateY(26px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.ev.now { opacity: 1; transform: none; }
.ev.past { opacity: 0; transform: translateY(-34px) scale(.97); }
.ev-time { font: 400 12px var(--mono); color: var(--night-muted); }
.ev-q, .ev-a { margin: 0; max-width: 90%; padding: 11px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; }
.ev-q { justify-self: end; background: var(--night-ink); color: var(--night); border-bottom-right-radius: 6px; }
.ev-a { justify-self: start; background: #1a1918; border: 1px solid #2c2b28; border-bottom-left-radius: 6px; opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.ev-a b { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--night-muted); margin-bottom: 6px; }
.ev.answered .ev-a { opacity: 1; transform: none; }

.night-phone { display: none; }
@media (min-width: 980px) { .night-phone { display: block; justify-self: end; width: min(100%, 270px); } }
.np-screen { aspect-ratio: 9 / 18.5; border-radius: 38px; border: 1px solid #34332f; padding: 34px 14px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #26251f, #050505 70%); box-shadow: 0 0 0 6px #0f0f0e, 0 30px 80px rgba(0,0,0,.6); }
.np-time { font-weight: 600; font-size: 52px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.np-date { font-size: 13px; color: var(--night-muted); margin-bottom: 12px; }
.nn { text-align: left; display: grid; background: rgba(242,240,234,.1); border-radius: 13px; padding: 8px 11px; font-size: 12px; line-height: 1.35;
  opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.nn.on { opacity: 1; transform: none; }
.nn b { font: 500 9.5px var(--mono); letter-spacing: .08em; color: var(--night-muted); }
.nn em { font-style: normal; color: var(--night-muted); font-size: 11px; }

.night-bar { position: relative; display: flex; justify-content: space-between; font: 400 11px var(--mono); color: var(--night-muted); padding-top: 12px; }
.night-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #2c2b28; }
.night-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--night-ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.night-end { font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.25; max-width: 34ch; opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.night-end b { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.night.morning .night-end { opacity: 1; transform: none; }
.ink.after-night { margin-top: 0; border-top: 1px solid var(--night-line); }

/* without the scroll story (reduce motion / no script): show the whole night as a plain list */
.night.static { height: auto; }
.night.static .night-pin { position: static; height: auto; overflow: visible; padding-bottom: 40px; }
.night.static .night-in { height: auto; }
.night.static .night-feed { min-height: 0; display: grid; gap: 28px; }
.night.static .ev, .night.static .ev-a, .night.static .nn, .night.static .night-end { position: static; opacity: 1; transform: none; }
.night.static .night-clock, .night.static .night-hint, .night.static .night-bar { display: none; }

/* ---------- giant EKX made of dots (falls back to the solid letters) ---------- */
.giant-wrap { position: relative; width: calc(100% - 2 * var(--frame) - 2 * var(--gutter)); max-width: 1200px; margin: 0 auto; aspect-ratio: 1150 / 556; }
.giant-wrap .giant { position: absolute; inset: 0; width: 100%; margin: 0; transition: opacity 600ms ease; }
.giant-dots { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.giant-wrap.dotted .giant { opacity: 0; }

/* ---------- cursor + magnetic buttons (computers only; set by script) ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .orb { cursor: none; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px dashed #fff; display: grid; place-items: center;
  transition: width 240ms var(--ease-out), height 240ms var(--ease-out), margin 240ms var(--ease-out), opacity 200ms ease, border-color 200ms ease; }
.cur-ring span { font: 500 10px var(--mono); color: #fff; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity 160ms ease; }
.cur-ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-style: solid; }
.cur-ring.label { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cur-ring.label span { opacity: 1; }
.cur-ring.down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cur-hidden .cur-dot, .cur-hidden .cur-ring { opacity: 0; }
.magnet { translate: var(--mx, 0) var(--my, 0); transition: translate 260ms var(--ease-out), transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.ink-art, .cta-art { translate: var(--px, 0) var(--py, 0); transition: translate 600ms var(--ease-out); }

/* ---------- the statement that lights up word by word as you scroll ---------- */
.statement { padding-top: clamp(96px, 15vh, 170px); padding-bottom: clamp(24px, 4vh, 48px); }
.lit { font-weight: 700; font-size: clamp(30px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -0.035em; max-width: 22ch; text-wrap: pretty; }
.lit em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.lit .w { color: color-mix(in srgb, var(--ink) 16%, var(--bg)); transition: color 260ms ease; }
.lit .w.on { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(96px, 14vh, 160px); }
.qa-list { margin-top: 36px; border-top: 1px solid var(--ink); max-width: 900px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 18px 0;
  font-weight: 700; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor 0 0) center / 100% 1.5px no-repeat, linear-gradient(currentColor 0 0) center / 1.5px 100% no-repeat; transition: transform 240ms var(--ease-out); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); max-width: 62ch; padding: 0 0 22px; font-size: 16px; }
.qa p a { color: var(--ink); text-underline-offset: 3px; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* ---------- the guide: a small EKX sphere that follows you, talks about each section, opens WhatsApp ---------- */
.guide { position: fixed; right: calc(var(--frame) + 16px); bottom: calc(var(--frame) + 16px); z-index: 250; display: flex; align-items: flex-end; gap: 10px;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.guide.away { opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; }
.guide[hidden] { display: none; }
.guide-orb { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--night-ink);
  box-shadow: 0 0 0 1px rgba(242,240,234,.12), 0 14px 34px rgba(0,0,0,.28); transition: transform 160ms var(--ease-out); }
.guide-orb:active { transform: scale(.94); }
.guide-dots { width: 48px; height: 48px; background: var(--night-ink); animation: spin 18s linear infinite;
  -webkit-mask: url(assets/img/sphere-small.svg) center / contain no-repeat; mask: url(assets/img/sphere-small.svg) center / contain no-repeat; }
.guide.talking .guide-dots { animation: spin 18s linear infinite, breathe 900ms ease-in-out infinite alternate; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { from { scale: .9; opacity: .7; } to { scale: 1; opacity: 1; } }
.guide-wa { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.guide-wa svg { width: 13px; height: 13px; }
.guide-say { position: relative; max-width: min(260px, calc(100vw - 120px)); margin: 0 0 8px; padding: 10px 30px 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12); font-size: 14px; line-height: 1.4;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); transform-origin: bottom right; }
.guide-say.quiet { opacity: 0; transform: translateY(6px) scale(.96); pointer-events: none; }
.guide-txt.caret::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: blink 1s steps(1) infinite; }
.guide-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
@media (prefers-color-scheme: dark) { .guide-orb { box-shadow: 0 0 0 1px rgba(242,240,234,.22), 0 14px 34px rgba(0,0,0,.5); } }

@media (prefers-reduced-motion: reduce) {
  .lit .w { color: var(--ink); transition: none; }
  .guide-dots, .guide.talking .guide-dots, .guide-txt.caret::after { animation: none; }
  .qa::details-content { transition: none; }
}
