/* Simply Put Tech: site styles. Motion lives in /js/main.js; everything here renders complete without it. */

@property --hl { syntax: "<number>"; inherits: false; initial-value: 1; }

:root {
  --ink: #0E0F12;
  --ink-2: #15171C;
  --ink-3: #1D2027;
  --lime: #E2FF3B;
  --paper: #F4F2EA;
  --muted: #A3A6AE;
  --dim: #3A3D45;
  --line: rgba(244, 242, 234, .1);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --z-nav: 50; --z-progress: 60; --z-skip: 70;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { html:not(.motion) { scroll-behavior: smooth; } }
body {
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.6;
  font-variation-settings: "opsz" 24;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 10px; z-index: var(--z-skip); background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; }

/* ---------- the highlighter: lime marker that draws across text (--hl: 0 → 1) ---------- */
.hl {
  color: var(--ink);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: calc(var(--hl) * 100%) 82%;
  background-position: 0 62%;
  padding: 0 .12em; margin: 0 -.04em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.motion .hl { --hl: 0; color: var(--paper); }

/* ---------- headings ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(38px, 5.6vw, 84px); line-height: .98; max-width: 16ch; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px; border: 2px solid var(--lime);
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--lime); color: var(--ink); }
.btn.primary:hover { background: var(--paper); border-color: var(--paper); }
.btn.ghost { color: var(--lime); background: rgba(14, 15, 18, .72); }
.btn.ghost:hover { background: rgba(226, 255, 59, .1); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; z-index: var(--z-progress); }
html:not(.motion) .progress { display: none; }

.nav {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 16px; border-radius: 18px;
  background: rgba(14, 15, 18, .72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 6px; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s, background-color .2s; }
.nav ul a:hover { color: var(--paper); background: rgba(244, 242, 234, .06); }
@media (prefers-reduced-motion: no-preference) {
  .brand-cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 72px; overflow: hidden; isolation: isolate; }
.motion .hero { visibility: hidden; }
.dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
html:not(.motion) .hero { background-image: radial-gradient(rgba(244, 242, 234, .07) 1.3px, transparent 1.5px); background-size: 30px 30px; }

.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.prompt { font-family: var(--mono); font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); color: var(--lime); display: flex; align-items: center; gap: .5ch; }
.prompt-mark { color: var(--muted); }
.caret { width: .6ch; height: 1.15em; background: var(--lime); display: inline-block; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1s steps(1) infinite; } }

.hero-copy { container-type: inline-size; min-width: 0; }
/* 13.2cqi: the longest line ("Then built for real.") measures 7.15em, so every line fits its column on one line */
.hero-title { font-size: clamp(38px, 13.2cqi, 136px); line-height: .94; letter-spacing: -.045em; margin: 22px 0 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line-inner { display: inline-block; white-space: nowrap; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--paper); opacity: .84; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-phone { perspective: 1400px; display: flex; justify-content: center; }
.phone-tilt { transform-style: preserve-3d; }
.phone {
  position: relative; width: clamp(230px, 22vw, 320px); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 9px; background: #1A1C22;
  box-shadow: 0 0 0 1px rgba(244, 242, 234, .12), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -20px rgba(226, 255, 59, .25);
  transform-style: preserve-3d;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #000; }
.phone figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 18px); text-align: center; color: var(--muted); font-size: 14px; line-height: 1.4; }
.unmute {
  position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(14, 15, 18, .78); color: var(--paper); font: 600 13px var(--display);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.unmute svg { width: 18px; height: 18px; }
.unmute .wave { display: none; }
.unmute[aria-pressed="true"] .wave { display: block; }
.unmute[aria-pressed="true"] .mute-x { display: none; }
.unmute:hover { background: var(--lime); color: var(--ink); }

/* ---------- ticker ---------- */
.ticker { padding: clamp(36px, 6vw, 72px) 0; border-block: 1px solid var(--line); overflow: hidden; }
.ticker-row { display: flex; overflow: hidden; }
.ticker-track { display: flex; flex: none; will-change: transform; }
.ticker-list { display: flex; flex: none; align-items: center; }
.ticker-list li {
  display: flex; align-items: center; white-space: nowrap;
  font-weight: 800; font-size: clamp(40px, 7.4vw, 116px); line-height: 1.05; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244, 242, 234, .55);
}
.ticker-list li:nth-child(odd) { color: var(--paper); -webkit-text-stroke: 0; }
.ticker-list li::after {
  content: ""; width: .5em; height: .5em; margin: 0 .45em; flex: none;
  background: var(--lime);
  -webkit-mask: url("/logo.svg") center / contain no-repeat; mask: url("/logo.svg") center / contain no-repeat;
}
.ticker-row-alt { margin-top: 10px; }
.ticker-row-alt .ticker-list li { font-family: var(--mono); font-weight: 600; font-size: clamp(18px, 2.2vw, 30px); letter-spacing: 0; color: var(--lime); -webkit-text-stroke: 0; }
.ticker-row-alt .ticker-list li::after { width: .7em; height: .7em; background: var(--muted); }
html:not(.motion) .ticker-row { flex-wrap: wrap; }
html:not(.motion) .ticker-list[aria-hidden="true"], html:not(.motion) .ticker-row-alt .ticker-list + .ticker-list { display: none; }

/* ---------- story: ask / explain / build ---------- */
.story { padding: clamp(80px, 10vw, 140px) 0; }
.story-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps { margin-top: 44px; display: grid; gap: 8px; }
.step { display: flex; gap: 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid transparent; transition: background-color .35s, border-color .35s, opacity .35s; }
.motion .step { opacity: .38; }
.motion .step.is-active { opacity: 1; background: var(--ink-2); border-color: var(--line); }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 600 15px var(--mono); background: var(--ink-3); color: var(--muted); transition: background-color .35s, color .35s; }
.step.is-active .step-n { background: var(--lime); color: var(--ink); }
.step p { color: var(--muted); font-size: 16px; margin-top: 4px; }

.chat { background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 14px var(--mono); color: var(--muted); }
.chat-bar svg { width: 22px; height: 22px; }
.chat-body { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
.msg { max-width: 92%; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; }
.msg-you { justify-self: end; font-family: var(--mono); font-weight: 600; color: var(--lime); background: var(--ink-3); padding: 14px 18px; border-radius: 18px 18px 4px 18px; }
.msg-ai { background: var(--paper); color: var(--ink); padding: 18px 22px; border-radius: 18px 18px 18px 4px; font-weight: 600; }
.msg-ai .hl { color: var(--ink); }
.motion .msg-ai .hl { color: var(--ink); }

.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 6px 0; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-lines path { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; }
.node { position: relative; justify-self: center; display: grid; justify-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.node svg { width: 58px; height: 58px; padding: 14px; border-radius: 18px; background: var(--ink-3); border: 1px solid var(--line); color: var(--paper); }
.node-ai svg { padding: 10px; background: var(--ink); border-color: var(--lime); box-shadow: 0 0 40px -6px rgba(226, 255, 59, .45); }
.toasts { display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); font-size: 15px; }
.toast svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--lime); color: var(--ink); flex: none; }

/* ---------- topics ---------- */
.learn { padding: clamp(80px, 10vw, 140px) 0; }
.topics { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.topic { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(16px, 4vw, 64px); align-items: end; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.topic h3 { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.topic p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(80px, 12vw, 180px) 0; }
.manifesto-text { font-weight: 800; font-size: clamp(34px, 5.6vw, 88px); line-height: 1.04; letter-spacing: -.04em; font-variation-settings: "opsz" 96; max-width: 20ch; }

/* ---------- files ---------- */
.files { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.files-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.files-copy p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); margin: 22px 0 30px; max-width: 46ch; }
.filestack { position: relative; height: 380px; }
.file {
  position: absolute; left: 50%; top: 50%; width: 252px; margin: -140px 0 0 -126px;
  display: grid; gap: 6px; padding: 24px; border-radius: 22px;
  background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.file svg { width: 42px; height: 42px; color: var(--lime); margin-bottom: 30px; }
.file strong { font: 600 14px var(--mono); overflow-wrap: anywhere; }
.file span { color: var(--muted); font-size: 15px; }
.file-hero { background: var(--lime); color: var(--ink); border-color: var(--lime); z-index: 2; }
.file-hero svg { color: var(--ink); }
.file-hero span { color: rgba(14, 15, 18, .7); }
.file:nth-child(1) { transform: translate(-78%, 10px) rotate(-9deg); }
.file:nth-child(3) { transform: translate(78%, 10px) rotate(9deg); }
.motion .file:nth-child(1), .motion .file:nth-child(3) { transform: none; } /* GSAP owns the fan-out */

/* ---------- host ---------- */
.host { padding: clamp(80px, 10vw, 140px) 0; }
.host-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lime); box-shadow: 0 0 24px 6px rgba(226, 255, 59, .55); opacity: 0; }
.portrait figcaption { position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--lime); font: 600 14px var(--mono); }
.host-copy p { color: var(--paper); opacity: .86; font-size: clamp(18px, 1.5vw, 21px); margin-top: 22px; max-width: 46ch; }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 120px); }
.contact p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); margin: 18px 0 34px; }
.mail { display: inline-block; text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: clamp(28px, 6.2vw, 96px); line-height: 1.1; font-variation-settings: "opsz" 96; overflow-wrap: anywhere; }
.mail .hl { transition: --hl .5s cubic-bezier(.2, .8, .2, 1), color .3s; }
.motion .mail:hover .hl, .motion .mail:focus-visible .hl { --hl: 1; color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
/* text is 6.23em wide: 14.2vw fills ~92% of the screen incl. the highlight padding */
.footer-mark { font-weight: 800; font-size: 14.2vw; line-height: .82; letter-spacing: -.055em; white-space: nowrap; text-align: center; font-variation-settings: "opsz" 96; overflow: hidden; padding-bottom: .04em; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 36px; padding-bottom: 48px; color: var(--muted); font-size: 15px; }
.footer-row ul { display: flex; gap: 22px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--lime); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone { margin-top: 24px; }
  .story-inner, .files-inner, .host-inner { grid-template-columns: 1fr; }
  .motion .step { opacity: 1; }
  .topic { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { gap: 10px; }
  .nav ul { display: none; }
  .brand-word { font-size: 18px; }
  .phone { width: min(70vw, 280px); }
  .filestack { height: auto; display: grid; gap: 14px; }
  .file { position: relative; left: auto; top: auto; margin: 0; width: 100%; transform: none !important; }
  .file svg { margin-bottom: 12px; }
  .footer-mark { font-size: 14.2vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
