/* ukku.ai: "Signal". Near-black ground, one green, teal for data, Newsreader for voice, mono for readouts. */
:root {
  --bg: #060908; --bg-2: #0A0F0D; --surface: #0D1311; --subtle: #141C19; --border: #1C2723; --line: rgba(234,241,238,.09);
  --text: #EAF1EE; --muted: #97A8A0; --dim: #5E6E67; --accent: #9AC93D; --accent-text: #A8D84E; --on-accent: #08100D; --teal: #4FD1E0;
  --serif: "Newsreader", Georgia, serif; --sans: "Instrument Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 14px; --r-lg: 22px; --wrap: 1320px; --gut: max(20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.6vw, 124px); letter-spacing: -0.035em; line-height: .96; }
h2 { font-size: clamp(38px, 5.2vw, 84px); }
h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.015em; }
em { font-style: italic; color: var(--accent-text); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, var(--gut)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.section { position: relative; padding-block: clamp(96px, 13vw, 184px); }
.lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); max-width: 48ch; line-height: 1.55; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skiplink { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; z-index: 300; }
.skiplink:focus { left: 8px; }

/* atmosphere: a light that follows the cursor, a faint scan-line texture */
.spot { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(154,201,61,.07), transparent 60%); }
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 2; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
main, .site-foot { position: relative; z-index: 3; }

/* split words, decoding text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > i { display: inline-block; font-style: inherit; will-change: transform; }
.statement .sw { opacity: .14; }
.no-motion .statement .sw { opacity: 1; }

/* page transition: a scan line sweeps down and the page resolves behind it */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--bg); pointer-events: none; transform: translateY(101%); }
.curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); box-shadow: 0 0 30px 4px rgba(154,201,61,.6); }
.curtain .readout { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.js .curtain { transform: none; animation: curtain-safety .6s 2.5s forwards; }
@keyframes curtain-safety { to { transform: translateY(101%); } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid transparent; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .35s; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(154,201,61,.14), 0 0 40px rgba(154,201,61,.35); }
.btn-ghost { border-color: rgba(234,241,238,.22); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { color: var(--accent-text); text-underline-offset: 5px; text-decoration-thickness: 1px; font-weight: 500; }

/* header */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.site-head.scrolled { background: rgba(6,9,8,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.site-head.hidden { transform: translateY(-100%); }
.head-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img { height: 30px; width: auto; }
.status { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 2.4s steps(2) infinite; }
.nav { display: flex; gap: 30px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .3s; position: relative; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); }
.nav .btn { color: var(--on-accent); min-height: 42px; padding: 0 18px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: none; color: inherit; align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer; }
.menu-btn i { width: 16px; height: 1.5px; background: currentColor; display: block; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .status { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .site-head { background: var(--bg); }
  .nav { position: fixed; top: calc(76px + env(safe-area-inset-top, 0px)); left: 0; right: 0; height: calc(100svh - 76px); background: var(--bg); flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px max(24px, var(--gut)); font: 500 40px/1.1 var(--serif); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease-io), visibility .6s; }
  .nav a { color: var(--text); }
  .nav .btn { font: 600 16px var(--sans); margin-top: 20px; }
  .menu-open .nav { clip-path: inset(0); visibility: visible; }
}

/* hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(6,9,8,0) 35%), linear-gradient(180deg, var(--bg) 0%, rgba(6,9,8,0) 16%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(80px, 12vh); }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lead { margin-top: 26px; color: rgba(234,241,238,.78); }
.hero-copy .row { margin-top: 36px; }
.hero-copy .tag { margin-bottom: 26px; }
.cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 1px; height: 52px; background: var(--line); overflow: hidden; }
.cue::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* statement */
.statement { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 72px); line-height: 1.12; letter-spacing: -0.025em; max-width: 22ch; }

/* chapters: pinned, letterboxed 2.39:1 films at full width; one chapter of copy at a time over the film */
.chapters { position: relative; background: #030504; }
.chapters-pin { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.ch-films { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; aspect-ratio: 2.39 / 1; max-height: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ch-films::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,5,4,.88) 0%, rgba(3,5,4,.5) 30%, rgba(3,5,4,0) 52%); }
.ch-film { position: absolute; inset: 0; }
.ch-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-film:nth-child(n+2) { opacity: 0; }
.ch-copy { position: absolute; z-index: 2; inset: 0; }
.ch { position: absolute; inset: 0; display: flex; align-items: center; }
.ch:nth-child(n+2) { opacity: 0; visibility: hidden; }
.ch .wrap { width: 100%; }
.ch-in { max-width: 520px; }
.ch .mono { display: block; margin-bottom: 20px; color: var(--accent-text); }
.ch h2 { font-size: clamp(48px, 6.2vw, 104px); letter-spacing: -0.04em; line-height: .95; }
.ch h2 span { color: var(--accent); }
.ch .lead { margin-top: 22px; color: rgba(234,241,238,.86); }
.ch ul { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ch li { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--text); border: 1px solid rgba(234,241,238,.2); background: rgba(6,9,8,.45); backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 14px; }
.ch-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--accent-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(168,216,78,.4); padding-bottom: 4px; pointer-events: auto; }
.ch-cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.ch-cta:hover svg { transform: translateX(4px); }
.ch-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: max(18px, calc((100svh - 100vw / 2.39) / 2 - 42px)); }
.ch-bar .wrap { display: flex; align-items: center; gap: 24px; }
.ch-steps { display: flex; gap: 10px; flex: 1; max-width: 900px; }
.ch-steps span { flex: 1; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-steps i { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; margin-bottom: 10px; }
.ch-steps i b { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
/* stacked (phones, reduced motion): each chapter is a full-width 2.39:1 film with its words below */
.chapters.stacked { background: var(--bg); }
.chapters.stacked .chapters-pin { height: auto; min-height: 0; overflow: visible; }
.chapters.stacked .ch-films, .chapters.stacked .ch-bar { display: none; }
.chapters.stacked .ch-copy, .chapters.stacked .ch { position: static; opacity: 1; visibility: visible; }
.chapters.stacked .ch { display: block; padding-bottom: 72px; }
.ch video.inline { display: none; }
.chapters.stacked .ch video.inline { display: block; width: 100%; aspect-ratio: 2.39 / 1; object-fit: cover; margin-bottom: 26px; border-radius: 10px; border: 1px solid var(--border); }

/* AI twice */
.twice { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.twice > div { padding: 48px 48px 8px 0; }
.twice > div + div { padding-left: 48px; border-left: 1px solid var(--line); }
.twice h3 { font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.03em; }
.twice p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
@media (max-width: 820px) { .twice { grid-template-columns: 1fr; } .twice > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* founders */
.founders { text-align: left; }
.founders .big { font-family: var(--serif); font-size: clamp(36px, 5vw, 80px); letter-spacing: -0.03em; line-height: 1.06; max-width: 18ch; }
.founders .marks { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; align-items: center; }
.founders .marks span { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; }

/* disciplines */
.disc { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 56px; }
.card { text-decoration: none; color: inherit; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--cx, 50%) var(--cy, 0%), rgba(154,201,61,.12), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { border-color: rgba(154,201,61,.45); }
.card:hover::before { opacity: 1; }
.card .mono { display: block; color: var(--accent-text); }
.card h3 { margin-top: 18px; font-size: clamp(24px, 2vw, 30px); }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.card li { padding: 7px 0; border-top: 1px solid var(--line); }

/* split cta */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; }
.panel h2 { font-size: clamp(34px, 3.8vw, 60px); }
.panel p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.panel .row { margin-top: 30px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* page head (inner pages) */
.page-head { position: relative; padding-top: clamp(150px, 20vw, 240px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.page-head video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), rgba(6,9,8,.4) 60%, rgba(6,9,8,.7)); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head .tag { margin-bottom: 24px; }
.page-head .lead { margin-top: 26px; }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { border-top: 1.5px solid var(--accent); padding-top: 20px; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps b { display: block; margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.steps span { display: block; margin-top: 6px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(30px, 3.2vw, 44px); margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; color: var(--muted); }
.note { margin-top: 28px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--dim); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 96px max(32px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14.5px; }
.foot-big { font-family: var(--serif); font-size: clamp(44px, 7.4vw, 120px); line-height: .98; letter-spacing: -0.04em; color: var(--text); max-width: 13ch; }
.foot-big a { text-decoration: none; }
.foot-big a:hover em { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-row img { height: 26px; width: auto; }
.foot-row nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-row a { text-decoration: none; } .foot-row a:hover { color: var(--text); }
.legal { margin-top: 28px; font-size: 13px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .tag::before, .status::before, .cue::after { animation: none; }
  .spot { display: none; }
}

/* ---------- contact form ---------- */
.cform { margin-top: 56px; max-width: 860px; }
.cform h2 { font-size: clamp(28px, 3vw, 42px); }
.cform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 28px; }
.cform label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.cform label.full { grid-column: 1 / -1; }
.cform .opt { font-size: 12px; opacity: .8; }
.cform input, .cform select, .cform textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px; outline: none; transition: border-color .2s; }
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--accent); }
.cform [aria-invalid="true"] { border-color: #F97066; }
.cform .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.cform-foot button[disabled] { opacity: .6; cursor: progress; }
.cform-status { font-size: 15px; color: var(--muted); }
.cform-status[data-kind="ok"] { color: var(--accent-text); }
.cform-status[data-kind="error"] { color: #F97066; }
.cform-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .cform-grid { grid-template-columns: 1fr; } }
.foot-row p a { text-decoration: none; } .foot-row p a:hover { color: var(--text); }
.legal a { color: var(--muted); }
