:root {
  --ink: #0e0d0b;
  --ink-2: #171512;
  --cream: #efe9dc;
  --muted: #9a9387;
  --line: rgba(239, 233, 220, 0.14);
  --flame: #ff5a1f;
  --flame-soft: #ff8a55;
  --steel: #8fb3c4;
  --paper: #f2eee6;
  --paper-ink: #16140f;
  --paper-muted: #6b665d;
  --paper-line: rgba(22, 20, 15, 0.14);
  --gutter: clamp(16px, 4vw, 56px);
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-style: normal; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--flame); color: var(--ink); }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

/* Nav */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; color: var(--flame); }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--cream); }

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1.4fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 110px var(--gutter) 64px;
  position: relative;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero-copy > p { margin-top: 28px; max-width: 30ch; font-size: clamp(18px, 1.5vw, 22px); color: #cfc8ba; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  background: var(--flame); color: var(--ink);
  padding: 15px 24px; border-radius: 4px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--flame-soft); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #2a2620; }
.link { font-weight: 600; font-size: 16px; text-underline-offset: 5px; text-decoration-color: var(--flame); }
.hero-table { position: relative; width: 100%; }
#table { display: block; width: 100%; aspect-ratio: 18 / 11; }
.table-note { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); max-width: 52ch; }

/* Scale */
.scale { padding: clamp(96px, 14vw, 200px) var(--gutter); border-top: 1px solid var(--line); }
.scale h2 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.04; font-weight: 700; max-width: 20ch; }
.scale p { margin-top: 36px; max-width: 46ch; font-size: clamp(18px, 1.5vw, 22px); color: #cfc8ba; margin-left: auto; }

/* How */
.how {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px);
  padding: 0 var(--gutter); border-top: 1px solid var(--line);
}
.how-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
#lattice { width: 100%; height: 100%; display: block; }
.loop { position: absolute; width: 64px; height: 64px; left: 0; bottom: 48px; transform: rotate(-90deg); }
.loop-track { fill: none; stroke: var(--line); stroke-width: 6; }
.loop-fill { fill: none; stroke: var(--flame); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .6s ease; }
.how-steps { padding: 30svh 0 40svh; }
.how-steps h2 { font-size: clamp(34px, 4vw, 60px); font-weight: 700; margin-bottom: 18svh; }
.how-steps ol { list-style: none; margin: 0; padding: 0; }
.how-steps li { min-height: 52svh; padding-left: 64px; position: relative; opacity: .32; transition: opacity .5s; }
.how-steps li.on { opacity: 1; }
.how-steps .n { position: absolute; left: 0; top: 4px; font-family: var(--mono); font-size: 14px; color: var(--flame); border: 1px solid currentColor; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 3px; }
.how-steps h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; line-height: 1.1; }
.how-steps li p { margin-top: 14px; font-size: 19px; color: #cfc8ba; max-width: 34ch; }

/* Paper sections */
.paper { background: var(--paper); color: var(--paper-ink); }
.compute {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
}
.compute h2 { font-size: clamp(34px, 4.4vw, 68px); font-weight: 700; line-height: 1.04; }
.compute p { margin-top: 28px; font-size: clamp(18px, 1.5vw, 22px); color: var(--paper-muted); max-width: 40ch; }
.machines { margin: 0; }
.machines svg { width: 100%; height: auto; display: block; }
.machine rect { fill: none; stroke: var(--paper-ink); stroke-width: 2; }
.machine line { stroke: var(--paper-line); stroke-width: 3; stroke-linecap: round; }
.machine .slot { fill: var(--paper-ink); stroke: none; }
.machines svg { max-width: 460px; margin-left: auto; }
.led { fill: var(--flame); animation: standby 2.8s ease-in-out infinite; }
.led-b { animation-delay: 1.4s; }
@keyframes standby { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.machines figcaption { text-align: right;  margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--paper-muted); }

.problems { padding: 0 var(--gutter) clamp(96px, 12vw, 180px); }
.problems h2 { font-size: clamp(34px, 4.4vw, 68px); font-weight: 700; padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--paper-line); }
.rows { list-style: none; padding: 0; margin: 48px 0 0; }
.rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--paper-line); outline: none;
}
.rows li:first-child { border-top: 1px solid var(--paper-line); }
.rows h3 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 700; line-height: 1.1; transition: color .25s; }
.rows p { margin-top: 10px; color: var(--paper-muted); max-width: 52ch; font-size: 18px; }
.els { display: flex; gap: 8px; }
.els b {
  font-family: var(--mono); font-weight: 500; font-size: 16px;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--paper-line); border-radius: 3px; color: var(--paper-muted);
  transition: background .3s, color .3s, border-color .3s;
}
.rows li:hover h3, .rows li:focus-visible h3 { color: var(--flame); }
.rows li:hover .els b, .rows li:focus-visible .els b, .rows li.lit .els b { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.rows li:hover .els b:nth-child(2), .rows li.lit .els b:nth-child(2) { transition-delay: .05s; }
.rows li:hover .els b:nth-child(3), .rows li.lit .els b:nth-child(3) { transition-delay: .1s; }
.rows li:hover .els b:nth-child(4), .rows li.lit .els b:nth-child(4) { transition-delay: .15s; }
.rows li:hover .els b:nth-child(5), .rows li.lit .els b:nth-child(5) { transition-delay: .2s; }
.rows-note { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--paper-muted); }

/* Name */
.name { padding: clamp(96px, 12vw, 180px) var(--gutter); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.name h2 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 700; }
.name p { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.3; font-weight: 500; max-width: 30ch; }

/* Contact */
.contact { background: var(--flame); color: var(--ink); padding: clamp(96px, 12vw, 180px) var(--gutter); position: relative; overflow: hidden; }
.big-tile {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: clamp(220px, 30vw, 460px); aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; letter-spacing: -0.05em;
}
.bt-s { font-size: clamp(110px, 15vw, 230px); line-height: 1; }
.bt-n { position: absolute; top: 7%; left: 8%; font-family: var(--mono); font-weight: 500; font-size: clamp(18px, 2vw, 30px); letter-spacing: 0; }
.bt-name { position: absolute; bottom: 7%; left: 0; right: 0; text-align: center; font-size: clamp(16px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.01em; }
.contact h2 { font-size: clamp(44px, 7vw, 120px); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; max-width: 12ch; }
.contact > p { margin-top: 28px; font-size: clamp(19px, 1.7vw, 24px); max-width: 36ch; font-weight: 500; }
.contact .btn { margin-top: 40px; }
.contact .small { margin-top: 20px; font-size: 16px; }

/* Footer */
.foot { padding: 48px var(--gutter); display: flex; gap: 32px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot .brand { color: var(--cream); font-size: 18px; margin-right: auto; }
.foot .brand .mark { width: 26px; height: 26px; }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-content: start; padding-top: 96px; gap: 40px; }
  .hero-table { order: -1; }
  .how { grid-template-columns: 1fr; }
  .how-stage { top: 0; height: 46svh; z-index: 1; background: var(--ink); border-bottom: 1px solid var(--line); }
  .loop { width: 44px; height: 44px; bottom: 14px; }
  .how-steps { padding: 8svh 0 20svh; }
  .how-steps h2 { margin-bottom: 8svh; }
  .how-steps li { min-height: 46svh; }
  .compute { grid-template-columns: 1fr; }
  .name { grid-template-columns: 1fr; gap: 20px; }
  .big-tile { position: relative; right: auto; top: auto; transform: none; margin-top: 56px; width: min(320px, 70vw); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav nav a:not(:last-child) { display: none; }
  .rows li { grid-template-columns: 1fr; gap: 18px; }
  .els b { width: 44px; height: 44px; font-size: 14px; }
  .foot .brand { margin-right: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .led { animation-duration: 4s; }
  .loop-fill { transition-duration: .3s; }
}
