@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #090b0d;
  --bg-2: #101418;
  --surface: #14191e;
  --border: #30383f;
  --text: #e3e7ea;
  --text-2: #b5bbc0;
  --muted: #89939c;
  --amber: #ffb32c;
  --green: #80936a;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 76rem;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { background: var(--bg); color: var(--text-2); font-family: var(--body); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--amber); color: #000; padding: .5rem 1rem; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
[hidden] { display: none !important; }

/* Buttons: angular, amber for the one main action */
.btn { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #0a0a0a; background: var(--amber); border: 0; padding: 1rem 1.9rem; min-height: 3rem; cursor: pointer; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); transition: filter .2s, transform .2s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { color: var(--text); background: rgba(9,11,13,.55); box-shadow: inset 0 0 0 1px rgba(227,231,234,.45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber); filter: none; }
.btn--small { padding: .6rem 1.2rem; min-height: 0; font-size: .75rem; }

/* Header */
.top { position: fixed; z-index: 30; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .8rem var(--gutter); transition: background .25s; background: linear-gradient(to bottom, rgba(9,11,13,.75), rgba(9,11,13,0)); }
.top.is-solid { background: rgba(9,11,13,.92); box-shadow: 0 1px 0 var(--border); }
.top__mark { font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.top__nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.top__nav a:not(.btn) { text-decoration: none; color: var(--text-2); padding: .4rem 0; }
.top__nav a:not(.btn):hover { color: var(--amber); }
.top__burger { display: none; width: 2.75rem; height: 2.75rem; background: transparent; border: 1px solid var(--border); cursor: pointer; position: relative; }
.top__burger i { position: absolute; left: .7rem; right: .7rem; height: 2px; background: var(--text); }
.top__burger i:nth-of-type(1) { top: 1.05rem; } .top__burger i:nth-of-type(2) { top: 1.5rem; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,11,13,.82) 0%, rgba(9,11,13,.5) 38%, rgba(9,11,13,0) 68%), linear-gradient(to top, rgba(9,11,13,.85) 0%, rgba(9,11,13,0) 38%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 96px 96px; }
.hero__copy { position: relative; z-index: 2; width: 100%; max-width: 46rem; padding: 7rem var(--gutter) clamp(2.5rem, 9vh, 5.5rem); }
.hero__logo { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.4rem, 10.5vw, 8.5rem); line-height: .82; letter-spacing: .04em; color: #fff; margin-bottom: 1.6rem; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.eyebrow { color: var(--amber); margin-bottom: .6rem; }
.hero h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: .95; color: var(--text); margin-bottom: 1.2rem; }
.hero__sub { max-width: 34rem; margin-bottom: 2rem; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.meta { margin-top: 1.8rem; color: var(--text-2); }

/* Sections */
.sec { position: relative; padding: clamp(4rem, 10vh, 7.5rem) 0; }
.sec--plain { background: var(--bg); }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--border); background-image: linear-gradient(rgba(227,231,234,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(227,231,234,.03) 1px, transparent 1px); background-size: 96px 96px; }
.sec--world { background: linear-gradient(to bottom, var(--bg) 0%, #0d1311 100%); }
.sec--final { background: linear-gradient(to bottom, #0d1311, var(--bg) 85%); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 112rem; margin-top: 2.5rem; }
.label { color: var(--muted); display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.label b { color: var(--amber); }
.label::after { content: ""; width: 3rem; height: 1px; background: var(--border); }
h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: .95; color: var(--text); max-width: 16em; margin-bottom: 1.6rem; }
h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--text); }
.lead { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); line-height: 1.45; color: var(--text); max-width: 40rem; }
.lead--tight { margin-bottom: 2.5rem; }
.sec p + p { margin-top: 1rem; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start; max-width: 62rem; }
.two p + p { margin-top: 0; }

/* Screenshots: thin corner marks only */
.shot { position: relative; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::before, .shot::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--amber); pointer-events: none; z-index: 1; }
.shot::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.shot::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about__text p:not(.label):not(.lead) { max-width: 36rem; }
.about .lead { margin-bottom: 1.2rem; }
.about__side .shot { aspect-ratio: 3 / 2; margin-bottom: 1.5rem; }
.facts { border-top: 1px solid var(--border); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--amber); padding-top: .2rem; }
.facts dd { color: var(--text); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3vw, 2.8rem) clamp(1.2rem, 2.5vw, 2.2rem); }
.feature .shot { aspect-ratio: 3 / 2; margin-bottom: 1.1rem; overflow: hidden; }
.feature .shot img { transition: transform .6s ease; }
.feature:hover .shot img { transform: scale(1.04); }
.feature .pos-colony { object-position: 88% 72%; transform-origin: 88% 72%; }
.feature .pos-colony { transform: scale(1.8); }
.feature:hover .pos-colony { transform: scale(1.9); }
.feature h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); line-height: 1; margin-bottom: .5rem; }
.feature p { font-size: 1rem; max-width: 26rem; }

/* Planetary evolution */
.evo__view { position: relative; background: #000; border: 1px solid var(--border); }
.evo__frames { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.evo__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.evo__read { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem clamp(1rem, 2.5vw, 2rem) 1rem; background: linear-gradient(to top, rgba(9,11,13,.85), rgba(9,11,13,0)); color: #fff; }
.evo__read b { color: var(--amber); }
.evo__name { margin-left: 1rem; font-size: 1rem; letter-spacing: .06em; }
.play { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: rgba(9,11,13,.7); border: 1px solid rgba(227,231,234,.5); min-height: 2.75rem; padding: .5rem 1.3rem; cursor: pointer; }
.play:hover, .play[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.evo__steps { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: .8rem; }
.evo__steps button { min-height: 2.75rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: background .2s, color .2s; }
.evo__steps button:hover { color: var(--text); border-color: var(--muted); }
.evo__steps button[aria-pressed="true"] { color: #0a0a0a; background: var(--amber); border-color: var(--amber); font-weight: 500; }
.evo__hint { color: var(--muted); margin-top: 1rem; }
.evo__note { margin-top: .6rem; max-width: 52rem; color: var(--muted); font-size: .95rem; }

/* Before and after */
.compare { position: relative; }
.compare__stack { position: relative; aspect-ratio: 16 / 9; overflow: hidden; --pos: 50%; border: 1px solid var(--border); background: #000; }
.compare__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--amber); pointer-events: none; }
.compare__line::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); color: var(--amber); font-size: .7rem; letter-spacing: .1em; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare__stack:has(.compare__range:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.compare__tag { position: absolute; top: 1rem; padding: .35rem .8rem; background: rgba(9,11,13,.78); color: var(--text); pointer-events: none; }
.compare__tag--l { left: 1rem; } .compare__tag--r { right: 1rem; }
.compare figcaption { color: var(--muted); margin-top: .9rem; }

/* Modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); }
.mode { position: relative; padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.mode:nth-child(2) { border-color: rgba(128,147,106,.55); }
.mode__num { position: absolute; right: 1.2rem; top: -.6rem; font-family: var(--display); font-weight: 900; font-size: 9rem; line-height: 1; color: rgba(227,231,234,.06); }
.mode:nth-child(2) .mode__num { color: rgba(128,147,106,.18); }
.mode h3 { position: relative; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin-bottom: .8rem; }
.mode p:last-child { position: relative; max-width: 28rem; }
.modes + .meta { margin-top: 2rem; }

/* Development */
.sec--plain .hero__actions { margin-top: 2.2rem; }
.status { display: flex; align-items: center; gap: .6rem; margin-top: 1.8rem; color: var(--text-2); }
.status i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); }
.devlogs { margin-top: 3rem; }
.devlogs__title { color: var(--muted); margin-bottom: 1rem; }
.devlogs__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.devlogs__list a { display: block; text-decoration: none; }
.devlogs__list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .8rem; }
.devlogs__list .mono { color: var(--amber); }
.devlogs__list h4 { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: var(--text); margin: .2rem 0; }

/* Newsletter */
.news > * { max-width: 46rem; }
.news > .social { max-width: none; }
.signup { margin-top: 2rem; }
.signup__row { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border); background: var(--surface); padding: .45rem .45rem .45rem 1.1rem; }
.signup__row:focus-within { border-color: var(--amber); }
.signup input[type="email"] { flex: 1; min-width: 0; font: inherit; color: var(--text); background: transparent; border: 0; padding: .5rem 0; }
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup input[type="email"]:focus-visible { outline: none; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; font-size: .95rem; cursor: pointer; }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--amber); }
.signup__note { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.signup__msg { min-height: 1.6em; margin-top: .8rem; font-weight: 500; }
.signup__msg[data-kind="ok"] { color: var(--green); }
.signup__msg[data-kind="error"] { color: #ff9a7a; }
.signup__msg[data-kind="info"] { color: var(--amber); }
.social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.social a { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .5rem 1.1rem .5rem .6rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.social a:hover { border-color: var(--amber); }

/* Footer */
.foot { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 0 2rem; font-size: .95rem; color: var(--muted); }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot__mark { font-family: var(--display); font-weight: 900; font-size: 1.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: .6rem; }
.foot__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-content: flex-start; }
.foot__links a { color: var(--text-2); text-decoration: none; }
.foot__links a:hover { color: var(--amber); }
.foot__credit { margin-top: 2rem; color: var(--muted); text-transform: none; letter-spacing: .04em; }

/* Gentle reveal on scroll, only where motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img { animation: drift 28s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1.2%); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .feature .shot img { transition: none; } }

@media (max-width: 64rem) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .devlogs__list { grid-template-columns: 1fr; }
  .top__burger { display: block; }
  .top__nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1rem var(--gutter) 1.5rem; background: rgba(9,11,13,.97); border-bottom: 1px solid var(--border); }
  .top.is-open .top__nav { display: flex; }
  .top.is-open { background: rgba(9,11,13,.97); }
  .top__nav a:not(.btn) { padding: .7rem 0; font-size: .9rem; }
  .top__nav .btn { margin-top: .6rem; }
}
@media (max-width: 48rem) {
  .about, .two, .modes { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 7rem 1fr; }
  .hero__bg img { object-position: 68% 60%; }
  .hero::before { background: linear-gradient(to top, rgba(9,11,13,.9) 0%, rgba(9,11,13,.55) 55%, rgba(9,11,13,.25) 100%); }
  .evo__steps { grid-template-columns: repeat(6, 1fr); }
  .evo__read { flex-wrap: wrap; }
  .evo__name { display: block; margin: 0; }
  .signup__row { flex-direction: column; align-items: stretch; padding: .5rem; }
  .signup input[type="email"] { padding: .7rem .6rem; }
  .compare__stack { aspect-ratio: 4 / 5; }
  .compare__line::after { width: 3rem; height: 3rem; }
}

/* Honeypot: out of sight, out of tab order, out of the accessibility tree */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Follow block with brand icons */
.follow { margin-top: clamp(2.5rem, 6vh, 4rem); }
.follow__title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 1.4rem; }
.social { margin-top: 0; }
.social a svg { width: 1.25rem; height: 1.25rem; flex: none; }
.social a { padding: .5rem 1.2rem .5rem 1rem; }
.social a:hover { color: var(--amber); }
.social--small { margin: 0; gap: .5rem; align-content: flex-start; }
.social--small a { padding: 0; width: 2.75rem; justify-content: center; }
.social--small a svg { width: 1.2rem; height: 1.2rem; }
.consent a { color: var(--text); text-underline-offset: 3px; }
.consent a:hover { color: var(--amber); }
