/* Fonts are served from this site (no third-party requests).
   Schibsted Grotesk: variable 400-800, Latin subset. IBM Plex Mono: IBM's own woff2 files.
   Licences: fonts/OFL-SchibstedGrotesk.txt, fonts/OFL-IBMPlexMono.txt. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/SchibstedGrotesk-Variable-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/IBMPlexMono-Regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/IBMPlexMono-Medium.woff2) format("woff2"); }

/* Layout: the page is the app's light table. Near-black ground, quiet grey chrome, the photos and one Gruvbox-orange accent do the talking.
   Behind everything, a faint hex grid with dots travelling its edges: dense at the top, in patches beside each section. */
:root {
  --ground: #0f0f0f;     /* the light table */
  --cell: #1a1a1a;       /* thumbnail surround */
  --chrome: #262626;     /* bars and panels */
  --rule: #2e2e2e;
  --ink: #ececec;
  --dim: #9a9a9a;
  --accent: #fe8019;      /* Gruvbox bright orange */
  --accent-deep: #d65d0e; /* Gruvbox orange */
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.label { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* the animated hex field sits behind the page content */
#hexfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero, section, footer { position: relative; z-index: 1; }

/* nav */
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ground) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; color: var(--dim); }
nav ul a { text-decoration: none; }
nav ul a:hover { color: var(--ink); }
@media (max-width: 720px) { nav ul li:not(:last-child) { display: none; } }

/* hero */
.hero { padding-block: 88px 0; text-align: center; }
.hero .label { color: var(--accent); }
h1 { font-weight: 800; font-size: clamp(42px, 7.2vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 22px auto 0; max-width: 13ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 58ch; margin: 26px auto 0; color: #c4c4c4; font-size: 19px; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); border: 1px solid #333; background: transparent; transition: background .12s, border-color .12s; }
.btn small { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.btn:hover { background: #1c1c1c; border-color: #4a4a4a; }
/* The main action is only a step brighter than the rest: a raised grey, never a coral fill. */
.btn.primary { background: #242424; border-color: #474747; }
.btn.primary:hover { background: #2c2c2c; border-color: #5a5a5a; }
.btn.primary small { color: #d4a47c; }
.platforms { margin-top: 18px; }

.shot-hero { position: relative; margin: 64px auto 0; max-width: 1080px; }
.shot-hero::before { content: ""; position: absolute; inset: 8% 6% -4%; background: url(/img/edit-view.jpg) center/cover; filter: blur(60px) saturate(1.6); opacity: .45; z-index: 0; }
.frame { position: relative; z-index: 1; border-radius: 3px; overflow: hidden; border: 1px solid #3a3a3a; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.caption { display: flex; justify-content: space-between; gap: 16px; margin: 14px auto 0; max-width: 1080px; }

/* features */
section { padding-block: 120px 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.03em; line-height: 1; margin: 10px 0 0; text-wrap: balance; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; border-radius: 10px; overflow: hidden; }
.feat { background: color-mix(in srgb, var(--ground) 88%, transparent); padding: 30px 28px 34px; min-width: 0; }
.feat h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.feat p { margin: 0; color: #b6b6b6; font-size: 16px; }
.feat .stat { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .06em; margin-bottom: 18px; display: block; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.next { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.chip { font: 500 13px/1 var(--mono); padding: 9px 12px; border: 1px dashed #4a4a4a; border-radius: 999px; color: var(--dim); }

/* screenshots */
.shots { display: grid; gap: 72px; margin-top: 48px; }
.shot { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; align-items: center; }
.shot:nth-child(even) { grid-template-columns: 2.4fr 1fr; }
.shot:nth-child(even) .txt { order: 2; }
.shot .txt { min-width: 0; }
.shot h3 { font-size: 26px; letter-spacing: -.02em; margin: 10px 0 8px; line-height: 1.1; }
.shot p { color: #b6b6b6; margin: 0; }
@media (max-width: 860px) { .shot, .shot:nth-child(even) { grid-template-columns: 1fr; } .shot:nth-child(even) .txt { order: 0; } }

/* download: the one place with a little more flair. Each system is a card with its mark, one
   main file (a raised button) and the other files as rows: name, one line of what it is for, the
   file name and its size. The visitor's own system glows faintly in the accent. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.os { position: relative; background: linear-gradient(180deg, #171717, #121212); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; min-width: 0; overflow: hidden; transition: border-color .2s, transform .2s; }
.os::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(254, 128, 25, .10), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.os:hover { border-color: #3a3a3a; }
.os.mine { border-color: #4a3a2e; }
.os.mine::before { opacity: 1; }
.os > * { position: relative; }
.os-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.os-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #222; border: 1px solid #333; color: var(--ink); }
.os-icon svg { width: 24px; height: 24px; }
.os.mine .os-icon { color: var(--accent); border-color: #5a4232; background: #241a13; }
.os h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.os-head p { margin: 3px 0 0; font: 400 12px/1.4 var(--mono); color: var(--dim); }
.mine-tag { visibility: hidden; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; align-self: start; margin-top: 4px; }
.mine-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.os.mine .mine-tag { visibility: visible; }
.os b { display: block; font-weight: 650; font-size: 16px; }
.os small { display: block; color: #b6b6b6; font-size: 14px; line-height: 1.4; margin-top: 2px; }
.os code.fname { display: block; margin-top: 6px; font: 400 12px/1.4 var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.os .size { font: 400 12px/1.6 var(--mono); color: var(--dim); white-space: nowrap; }
.get { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; margin-top: 22px; padding: 16px; border-radius: 10px; text-decoration: none; background: #242424; border: 1px solid #474747; transition: background .12s, border-color .12s; }
.get:hover { background: #2c2c2c; border-color: #5a5a5a; }
.get > svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.get .size { color: #d4a47c; }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; }
.files a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; margin-inline: -4px; border-radius: 8px; text-decoration: none; }
.files a:hover { background: var(--chrome); }
.files b { font-size: 15px; }
.files small { font-size: 13.5px; }
.arm { margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
.arm summary { cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 8px 8px; margin-inline: -4px; border-radius: 6px; list-style: none; display: flex; align-items: center; gap: 8px; }
.arm summary::-webkit-details-marker { display: none; }
.arm summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.arm[open] summary::before { transform: rotate(45deg); }
.arm summary:hover { color: var(--ink); }
.dl-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dl-notes p { display: flex; gap: 12px; margin: 0; padding: 16px 18px; border: 1px dashed #3a3a3a; border-radius: 10px; color: var(--dim); font-size: 14px; min-width: 0; }
.dl-notes svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 3px; }
.dl-notes code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.dl-notes a { color: var(--ink); }
@media (max-width: 1080px) { .dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .dl, .dl-notes { grid-template-columns: 1fr; } }

/* build from source */
.build { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 88px; }
.build > * { min-width: 0; }
.build h3 { font-size: 28px; letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 12px; }
.build p { color: #b6b6b6; margin: 0 0 14px; }
.build code { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.prereq { margin: 18px 0 0; display: grid; gap: 14px; }
.prereq dt { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.prereq dt svg { width: 16px; height: 16px; color: var(--dim); }
.prereq dd { margin: 4px 0 0 24px; color: #b6b6b6; font-size: 15px; }
.build .fine { margin: 22px 0 0; }
@media (max-width: 900px) { .build { grid-template-columns: 1fr; gap: 28px; } }
.fine { margin-top: 22px; color: var(--dim); font-size: 14px; }
.fine code { font-family: var(--mono); font-size: 13px; color: var(--ink); }

/* hero icon: the drips ease down once on load */
.hero-icon { display: block; width: 104px; height: 104px; margin: 0 auto 30px; filter: drop-shadow(0 18px 40px rgba(214, 93, 14, .25)); }
.hero-icon .drips { transform-box: view-box; transform-origin: 256px 380px; animation: drip 1.6s cubic-bezier(.3, .6, .2, 1) .3s both; }
@keyframes drip { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin-top: 40px; }
.stat-cell { background: color-mix(in srgb, var(--ground) 88%, transparent); padding: 28px 26px 30px; min-width: 0; }
.big-num { font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-num small { font-size: .5em; font-weight: 700; color: var(--dim); margin-left: 4px; letter-spacing: 0; }
.stat-cell h3 { font-size: 17px; margin: 14px 0 6px; font-weight: 700; }
.stat-cell p { margin: 0; font: 400 12px/1.6 var(--mono); color: var(--dim); letter-spacing: .02em; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* two-column story sections: text beside a panel */
.story { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-top: 44px; }
.story.flip { grid-template-columns: 1.25fr 1fr; }
.story.flip > :first-child { order: 2; }
.story > * { min-width: 0; }
.story h3 { font-size: 28px; letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 12px; text-wrap: balance; }
.story p { color: #b6b6b6; margin: 0 0 14px; }
.story ul { margin: 0; padding-left: 18px; color: #b6b6b6; }
.story li { margin-bottom: 6px; }
.story .fine a { color: var(--ink); }
.story code, .fine code { font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
@media (max-width: 900px) { .story, .story.flip { grid-template-columns: 1fr; gap: 28px; } .story.flip > :first-child { order: 0; } }
.panel { background: #121212; border: 1px solid #2f2f2f; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #262626; background: #181818; }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.panel-bar span { margin-left: 8px; font: 400 12px/1 var(--mono); color: var(--dim); }
.code { margin: 0; padding: 18px 20px; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); color: #cfcfcf; white-space: pre; }
.code .c { color: #6f6f6f; }
.code .k { color: var(--accent); }
.code .s { color: #b8bb26; }
.code .p { color: #8ec07c; }

/* the file tree: rows light up one after another */
.tree { margin: 0; padding: 16px 0; font: 400 14px/1 var(--mono); }
.tree .row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; padding: 9px 20px; align-items: baseline; position: relative; }
.tree .row::before { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: 0; animation: rowglow 10.5s ease-in-out infinite; }
.tree .row:nth-child(1)::before { animation-delay: 0.0s; }
.tree .row:nth-child(2)::before { animation-delay: 1.5s; }
.tree .row:nth-child(3)::before { animation-delay: 3.0s; }
.tree .row:nth-child(4)::before { animation-delay: 4.5s; }
.tree .row:nth-child(5)::before { animation-delay: 6.0s; }
.tree .row:nth-child(6)::before { animation-delay: 7.5s; }
.tree .row:nth-child(7)::before { animation-delay: 9.0s; }
.tree .row:nth-child(8)::before { animation-delay: 10.5s; }
@keyframes rowglow { 0%, 100% { opacity: 0; } 4% { opacity: .1; } 14% { opacity: 0; } }
.tree .name { white-space: pre; color: var(--ink); overflow: hidden; text-overflow: ellipsis; position: relative; }
.tree .name.dim { color: var(--dim); }
.tree .name b { color: var(--accent); font-weight: 500; }
.tree .what { font-family: var(--display); font-size: 14px; color: var(--dim); position: relative; line-height: 1.35; }
@media (max-width: 560px) { .tree .row { grid-template-columns: 1fr; gap: 4px; } }

/* tags that travel */
.travel { display: grid; grid-template-columns: 300px 60px minmax(0, 1fr); align-items: center; gap: 0; margin-top: 44px; }
.travel > * { min-width: 0; }
.photo-card { background: #191919; padding: 14px; border: 1px solid #2f2f2f; border-radius: 3px; }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; outline: 2px solid #f2f2f2; }
.photo-card .cap { margin: 12px 0 10px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font: 500 12px/1 var(--mono); padding: 6px 8px; border: 1px solid #3a3a3a; border-radius: 4px; color: var(--ink); }
.tags span.new { border-color: var(--accent-deep); color: var(--accent); }
.arrow { display: grid; place-items: center; color: var(--accent); }
.arrow svg { width: 40px; height: 40px; }
.code .hl { background: rgba(254, 128, 25, .1); display: inline-block; width: 100%; }
@media (max-width: 900px) { .travel { grid-template-columns: 1fr; gap: 16px; } .travel .photo-card { max-width: 320px; } .arrow svg { transform: rotate(90deg); } }

/* road to 1.0: one card per release, shipped ones filled in the accent */
.releases { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.releases li { position: relative; background: color-mix(in srgb, var(--ground) 90%, transparent); padding: 22px 20px 24px; min-width: 0; }
.releases li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #2a2a2a; }
.releases .done::before { background: var(--accent-deep); }
.releases .soon::before { background: linear-gradient(90deg, var(--accent) 0 30%, #2a2a2a 30%); }
.releases .ver { display: block; font-weight: 800; font-size: 34px; letter-spacing: -.03em; line-height: 1; color: #6a6a6a; font-variant-numeric: tabular-nums; }
.releases .done .ver { color: var(--ink); }
.releases .soon .ver { color: var(--accent); }
.releases .state { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.releases .done .state { color: var(--accent); }
.releases .done .state::before { content: "✓"; }
.releases .soon .state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ping2 2.4s ease-out infinite; }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 rgba(254, 128, 25, .6); } 100% { box-shadow: 0 0 0 8px rgba(254, 128, 25, 0); } }
.releases h4 { margin: 10px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.releases li:not(.done):not(.soon) h4 { color: #c4c4c4; font-weight: 600; }
.releases p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; }
@media (max-width: 1080px) { .releases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .releases { grid-template-columns: 1fr; } }

/* click to enlarge */
.frame img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 8, 8, .9); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 32px 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 3px; box-shadow: 0 40px 120px rgba(0,0,0,.7); animation: pop .22s ease-out; }
.lightbox button { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; background: #222; color: var(--ink); border: 1px solid #444; border-radius: 6px; padding: 8px 12px; font: 500 13px/1 var(--mono); cursor: pointer; }
@keyframes pop { from { transform: scale(.97); opacity: .6; } }

/* gentle reveal: content is always visible; it only rises a little as it scrolls in */
.rise { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.rise.low { transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { .rise.low { transform: none; } .hero-icon .drips, .tree .row::before, .releases .soon .state::before { animation: none; } }

/* bugs + footer */
.bugs { margin-top: 120px; padding: 44px; border-radius: 14px; background: var(--chrome); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.bugs h2 { font-size: clamp(26px, 3.4vw, 40px); }
.bugs p { color: #c4c4c4; margin: 10px 0 0; max-width: 52ch; }
footer { padding-block: 72px 64px; color: var(--dim); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--rule); padding-top: 40px; }
.foot > * { min-width: 0; }
.foot .brand { color: var(--ink); margin-bottom: 12px; }
.foot p { margin: 0 0 8px; max-width: 40ch; }
.foot h4 { margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.privacy { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 400 12px/1.5 var(--mono); }
.privacy::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.legal { margin-top: 36px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .os { padding: 18px; } .get { padding: 14px; gap: 10px; } .os-icon { width: 42px; height: 42px; } }
