:root {
  --night: #07080d;
  --bone: #f3f1ea;
  --soft: #c9c8c4;
  --line: rgba(243, 241, 234, 0.2);
  --orange: #ff5a1f;
  --ink: #15130f;
  --paper: #f4f3ee;
  --rust: #bf3604;
  --max: 1240px;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Open Sans", Arial, sans-serif;
  --italic: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { position: relative; background: var(--night); color: var(--bone); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
#space { position: fixed; top: 0; left: 0; z-index: 0; width: 100%; height: 100vh; height: 100lvh; display: block; }
main { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; }
h1 em, h2 em, .pitch em { font-family: var(--italic); font-style: italic; font-weight: 300; letter-spacing: -0.025em; }
h1 { font-size: clamp(3.4rem, 9.4vw, 8.6rem); line-height: 0.96; }
h1 em { font-size: 1.07em; color: var(--bone); }
h2 { font-size: clamp(3rem, 6.8vw, 6rem); line-height: 1; }
h2 em { font-size: 1.05em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
p { color: var(--soft); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 16px max(20px, calc((100% - var(--max)) / 2)); background: linear-gradient(rgba(7, 8, 13, 0.8), transparent); }
.logo { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.04em; }
.logo em { font-family: var(--italic); font-weight: 400; font-size: 1.1em; letter-spacing: -0.02em; }
.logo i { position: relative; width: 19px; height: 19px; margin-right: 9px; border: 3px solid var(--orange); border-radius: 50%; }
.logo i::after { content: ""; position: absolute; top: 1px; right: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--bone); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; font-weight: 500; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }
.nav-links .nav-cta { padding: 7px 15px; background: var(--bone); color: var(--ink); font-weight: 600; transition: background 0.2s, color 0.2s; }
.nav-links .nav-cta:hover { background: var(--orange); color: var(--ink); }
.nav-toggle { display: none; min-width: 44px; height: 44px; font-weight: 600; font-size: 0.95rem; }

/* ---------- Progress ---------- */
.hud { position: fixed; left: max(20px, calc((100% - var(--max)) / 2)); bottom: 20px; z-index: 15; display: flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 500; color: var(--bone); pointer-events: none; }
.hud-bar { width: 96px; height: 2px; background: rgba(243, 241, 234, 0.25); }
.hud-bar b { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* ---------- Scenes ---------- */
.flight main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.scene { display: flex; align-items: center; min-height: 165vh; padding: 32vh 0; }
.scene > .fade { width: 100%; }
.flight .scene p, .flight .scene li, .flight .scene h1, .flight .scene h2, .flight .scene h3 { text-shadow: 0 1px 22px rgba(7, 8, 13, 0.85); }
.tag { margin-bottom: 18px; font-weight: 600; font-size: 0.98rem; color: var(--orange) !important; }

.hero { min-height: 140vh; padding: 0; align-items: flex-start; }
.hero > .fade { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; }
.lead { max-width: 590px; margin-top: 28px; font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.5; color: var(--bone); }
.enter { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin-top: 38px; padding: 8px 0; font-weight: 600; }
.enter i { position: relative; width: 46px; height: 2px; overflow: hidden; background: rgba(243, 241, 234, 0.3); }
.enter i::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: pull 2s ease-in-out infinite; }
@keyframes pull { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.world > article { width: 100%; max-width: 560px; }
.world.right { justify-content: flex-end; }
.index { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 0.95rem; color: var(--bone) !important; }
.index b { font-family: var(--display); font-weight: 700; color: var(--orange); }
.world h2 { font-size: clamp(3.2rem, 6vw, 5.4rem); }
.pitch { margin: 14px 0 12px; font-family: var(--display); font-weight: 600; font-size: clamp(1.32rem, 2.2vw, 1.7rem); line-height: 1.18; letter-spacing: -0.02em; color: var(--bone) !important; }
.pitch em { font-size: 1.1em; }

/* ---------- Product demos ---------- */
.panel { --c: rgba(243, 241, 234, 0.75); position: relative; margin: 24px 0 16px; padding: 16px; background:
  linear-gradient(var(--c), var(--c)) 0 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px 14px,
  linear-gradient(var(--c), var(--c)) 100% 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 14px,
  linear-gradient(var(--c), var(--c)) 0 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px 14px,
  linear-gradient(var(--c), var(--c)) 100% 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 14px,
  rgba(7, 8, 13, 0.62); background-repeat: no-repeat; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel-label { margin-bottom: 8px; font-size: 0.8rem; font-weight: 500; color: var(--soft); }
.write-out { min-height: 2.5em; font-family: var(--italic); font-size: clamp(1.32rem, 2.4vw, 1.65rem); line-height: 1.2; color: var(--bone) !important; }
.write-out::after { content: ""; display: inline-block; width: 2px; height: 0.95em; margin-left: 3px; background: var(--orange); vertical-align: -0.1em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tones { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tones button { min-height: 36px; padding: 4px 11px; font-size: 0.88rem; font-weight: 600; transition: background 0.15s, color 0.15s; }
.tones button:hover { background: rgba(243, 241, 234, 0.13); }
.tones button[aria-pressed="true"] { background: var(--orange); color: var(--ink); }

.voice canvas { display: block; width: 100%; height: 78px; }
.voice ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; font-size: 0.82rem; font-weight: 500; line-height: 1.25; }
.voice li { color: rgba(243, 241, 234, 0.58); transition: color 0.2s; }
.voice li.on { color: var(--bone); }

.pulse { padding: 0; }
.pulse canvas { display: block; width: 100%; height: 138px; }
.emotions { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 7px 10px 9px; border-top: 1px solid var(--line); }
.emotions button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 5px; font-size: 0.82rem; font-weight: 500; }
.emotions button:hover, .emotions button[aria-pressed="true"] { background: rgba(243, 241, 234, 0.14); }
.emotions i { width: 8px; height: 8px; border-radius: 50%; }

.prompter { padding: 0; }
.screen { position: relative; height: 142px; overflow: hidden; }
.screen::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(rgba(7, 8, 13, 0.96), transparent 38%, transparent 62%, rgba(7, 8, 13, 0.96)); pointer-events: none; }
.screen::after { content: ""; position: absolute; z-index: 2; top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--orange) 18px, transparent 18px, transparent calc(100% - 18px), var(--orange) calc(100% - 18px)); }
.roll { padding: 0 34px; text-align: center; animation: roll 19s linear infinite; }
.roll p { padding: 6px 0; font-family: var(--display); font-weight: 600; font-size: 1.28rem; line-height: 1.2; color: var(--bone) !important; text-shadow: none !important; }
@keyframes roll { to { transform: translateY(-50%); } }
.prompter.paused .roll { animation-play-state: paused; }
.prompter > button { display: block; width: 100%; min-height: 40px; border-top: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; transition: background 0.15s, color 0.15s; }
.prompter > button:hover { background: var(--orange); color: var(--ink); }

.meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; }
.meta span { font-size: 0.86rem; font-weight: 500; color: var(--bone); text-shadow: 0 1px 12px var(--night); }
.go { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.go::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--orange); transform-origin: left; transition: transform 0.25s; }
.go:hover::after { transform: scaleX(0.35); }
.go.solid { padding: 0 22px; background: var(--orange); color: var(--ink); transition: background 0.2s; }
.go.solid::after { display: none; }
.go.solid:hover { background: var(--bone); }

/* ---------- Orbit ---------- */
.moons { margin-top: 42px; border-top: 1px solid var(--line); }
.moons a { display: grid; grid-template-columns: 0.8fr 1.3fr 0.7fr; align-items: baseline; gap: 22px; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background 0.2s, color 0.2s, padding 0.25s; }
.moons a:hover { padding-left: 20px; background: var(--bone); color: var(--ink); }
.moons a:hover p, .moons a:hover small { color: var(--ink); text-shadow: none !important; }
.moons a:hover h3 { text-shadow: none !important; }
.moons h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.moons small { font-size: 0.86rem; font-weight: 500; color: var(--soft); text-align: right; }

/* ---------- Journey ---------- */
.log { margin: 48px 0 22px; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: minmax(150px, 0.36fr) 1fr; gap: 28px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.log time { padding-top: 2px; font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--orange); text-shadow: 0 1px 14px var(--night); }
.log h3 { margin-bottom: 3px; font-size: clamp(1.3rem, 2.2vw, 1.72rem); }
.log p { max-width: 650px; }
.log .now { margin: 0 -14px; padding-inline: 14px; background: var(--orange); border-bottom: 0; }
.log .now time, .log .now h3, .log .now p { color: var(--ink) !important; text-shadow: none !important; }

/* ---------- Hackathon ---------- */
.scene.summit { display: block; padding: 0 0 30vh; }
.summit article { max-width: 1000px; margin: 0 auto; padding-top: 16vh; }
.summit .pitch { max-width: 760px; margin-bottom: 0; }
.zoom-track { position: relative; width: 100vw; height: 340vh; margin-left: calc(50% - 50vw); }
.zoom-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.zoom-photo { --edge: 1; position: absolute; top: 0; left: 0; width: 1500px; height: 2000px; transform-origin: 0 0; box-shadow: 0 40px 130px rgba(0, 0, 0, calc(var(--edge) * 0.72)); }
.zoom-photo img { display: block; width: 1500px; height: 2000px; max-width: none; }
.zoom-intro { position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%); padding: 5px 13px; background: var(--night); font-size: 0.82rem; font-weight: 500; white-space: nowrap; color: var(--bone); text-shadow: none !important; }
.flight .scene .zoom-me { position: absolute; left: 223px; top: 1380px; transform: translate(-50%, -50%) rotate(-5deg); line-height: 1; white-space: nowrap; mix-blend-mode: multiply; text-shadow: none; }
.zoom-me span { --ink: 0%; display: inline-block; padding: 3px 6px; font-family: "Caveat", "Bradley Hand", cursive; font-weight: 600; font-size: 31px; color: #1a3db4; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--ink) - 5%), transparent var(--ink)); mask-image: linear-gradient(90deg, #000 calc(var(--ink) - 5%), transparent var(--ink)); }
.zoom-track.still { width: auto; height: auto; margin-left: 0; padding-top: 18vh; }
.zoom-track.still .zoom-stage { position: static; height: auto; overflow: visible; }
.zoom-track.still .zoom-photo { position: relative; width: min(100%, 620px); height: auto; margin: 0 auto; }
.zoom-track.still img { width: 100%; height: auto; }
.zoom-track.still .zoom-intro, .zoom-track.still .zoom-me { display: none; }
.film { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0d0e14; }
.summit .film { margin: 30px 0 26px; }
.summit-copy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 34px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0 26px; border-block: 1px solid var(--line); }
.numbers li { padding: 18px 12px 16px 0; }
.numbers li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.numbers strong { display: block; font-family: var(--display); font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em; color: var(--bone); }
.numbers span { font-size: 0.88rem; font-weight: 500; color: var(--soft); }

/* ---------- Contact ---------- */
.contact { min-height: 125vh; padding-bottom: 12vh; text-align: center; }
.mail { position: relative; display: inline-block; margin-top: 30px; font-family: var(--italic); font-style: italic; font-weight: 300; font-size: clamp(2.2rem, 6.4vw, 5rem); line-height: 1.1; overflow-wrap: anywhere; transition: color 0.2s; }
.mail:hover { color: var(--orange); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 30px; margin-top: 26px; font-weight: 600; }
.socials a { display: inline-block; padding: 10px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.socials a:hover { border-color: var(--orange); }
.sign { margin-top: 44px; font-size: 0.82rem; }

/* ---------- Blog ---------- */
.case { background: var(--paper); color: var(--ink); }
.case .nav { background: var(--night); color: var(--bone); }
.cine { position: relative; display: flex; align-items: flex-end; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); color: var(--bone); }
.cine-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 42%, rgba(7, 8, 13, 0.9)); }
.cine-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px 46px; }
.cine h1 { font-size: clamp(3.1rem, 8vw, 7.2rem); }
.byline { margin-top: 16px; font-size: 0.95rem; font-weight: 500; color: var(--bone); }
.case main { padding: 0 20px; background: var(--paper); }
.blog { max-width: var(--max); margin: 0 auto; padding: 72px 0 84px; }
.blog p { margin-bottom: 1.05em; font-size: 1.14rem; line-height: 1.66; color: #2c2a26; }
.blog strong { color: var(--ink); font-weight: 600; }
.intro { max-width: 960px; padding-bottom: 54px; }
.blog .opening { margin-bottom: 0.7em; font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
.intro p:last-child { max-width: 700px; margin-left: auto; }
.entry { display: grid; grid-template-columns: minmax(230px, 0.42fr) 1fr; gap: 48px; padding: 44px 0 34px; border-top: 1px solid rgba(21, 19, 15, 0.2); }
.entry h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; color: var(--rust); }
.entry > div { min-width: 0; max-width: 760px; }
.blog figure { max-width: 500px; margin: 30px 0 34px; }
.blog figure img { display: block; width: 100%; height: auto; }
.blog figcaption { margin-top: 8px; font-size: 0.86rem; color: #5a564e; }
.built { margin: 20px 0 18px; border-top: 1px solid rgba(21, 19, 15, 0.2); }
.built li { padding: 18px 0; border-bottom: 1px solid rgba(21, 19, 15, 0.2); }
.built h3 { margin-bottom: 4px; font-size: 1.4rem; }
.built p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.built .go { min-height: 38px; margin-top: 3px; }
.built .go::after { background: var(--rust); bottom: 5px; }
.badge { display: inline-block; margin-left: 7px; padding: 2px 8px; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; vertical-align: middle; }
.demo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 16px; padding: 0; overflow: hidden; background: #000; color: var(--bone); cursor: pointer; }
.demo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.68; transition: opacity 0.2s, transform 0.4s; }
.demo:hover img { opacity: 0.86; transform: scale(1.02); }
.demo span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 13px; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 2.2rem); letter-spacing: -0.03em; text-shadow: 0 2px 20px #000; }
.demo i { display: grid; place-items: center; width: 1.8em; height: 1.8em; padding-left: 0.12em; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 0.6em; font-style: normal; text-shadow: none; }
.demo iframe { display: block; width: 100%; height: 100%; border: 0; }
.more { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; margin-top: 30px; padding: 11px 18px 11px 13px; border: 1px solid rgba(20, 26, 157, 0.2); border-radius: 3px; background: #fff; color: #121316; font-family: "DM Sans", Arial, sans-serif; font-size: 0.82rem; line-height: 1.4; transition: border-color 0.18s; }
.more:hover { border-color: #141a9d; }
.more img { flex: none; display: block; width: 82px; height: auto; }
.more span { padding-left: 16px; border-left: 1px solid rgba(18, 19, 22, 0.2); }
.more b { display: block; font-size: 0.95rem; font-weight: 600; color: #141a9d; overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px max(20px, calc((100% - var(--max)) / 2)); background: var(--paper); border-top: 1px solid rgba(21, 19, 15, 0.2); color: var(--ink); font-size: 0.86rem; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter i::after, .write-out::after { animation: none; }
  .roll { animation: none; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { padding-block: 7px; background: rgba(7, 8, 13, 0.82); }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 20px 20px; background: rgba(7, 8, 13, 0.98); border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 8px 0; }
  .nav-links .nav-cta { margin-top: 6px; padding: 8px 15px; }
  .nav-links.open { display: flex; }
  .hud { left: auto; right: 20px; bottom: 12px; font-size: 0.72rem; }
  .hud-bar { width: 52px; }
  .scene { min-height: 150vh; padding: 26vh 0; }
  .world { align-items: flex-end; padding-top: 50vh; padding-bottom: 34vh; }
  .world.right { justify-content: flex-start; }
  .world > article { max-width: none; flex: 0 0 calc(100% + 40px); width: calc(100% + 40px); margin: 0 -20px; padding: 64px 20px 22px; background: linear-gradient(transparent, rgba(7, 8, 13, 0.84) 62px, rgba(7, 8, 13, 0.84) calc(100% - 26px), transparent); }
  .hero { min-height: 130vh; padding: 0; }
  .moons a { grid-template-columns: 1fr; gap: 3px; padding: 20px 4px; }
  .moons small { text-align: left; }
  .log li { grid-template-columns: 1fr; gap: 3px; padding: 17px 0; }
  .summit-copy { grid-template-columns: 1fr; gap: 10px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers li:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .blog { padding: 44px 0 56px; }
  .intro { padding-bottom: 34px; }
  .intro p:last-child { margin-left: 0; }
  .entry { grid-template-columns: 1fr; gap: 14px; padding: 32px 0 22px; }
  .blog p { font-size: 1.07rem; }
  .footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .more { gap: 10px; padding: 10px 13px 10px 10px; font-size: 0.76rem; }
  .more img { width: 62px; }
  .more span { padding-left: 10px; }
  .more b { font-size: 0.88rem; white-space: nowrap; overflow-wrap: normal; }
}
