:root {
  --paper: #f1f3f8;
  --ink: #0e1a36;
  --ink-soft: #46536f;
  --cobalt: #2346f0;
  --line: #cbd2e3;
  --mark: #ffd84a;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(241, 243, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand__mark { width: 1.9rem; height: 1.9rem; flex: none; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-weight: 500; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav .nav__cta { color: var(--paper); background: var(--ink); padding: .5rem 1rem; border-radius: 999px; }
.nav .nav__cta:hover { background: var(--cobalt); color: #fff; }

/* Hero: graph-paper field */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-weight: 800;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__lead { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--ink); transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { font-size: clamp(1.05rem, 3vw, 1.5rem); padding: 1rem 2rem; word-break: break-all; }

/* Timeline: the one memorable moment */
.timeline { margin: clamp(3rem, 7vw, 5rem) 0 0; }
.timeline__plot { position: relative; height: clamp(11rem, 24vw, 17rem); border-bottom: 2px solid var(--ink); }
.timeline__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.timeline__line { fill: none; stroke: var(--cobalt); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.timeline__area { fill: var(--cobalt); opacity: .09; }
.timeline__line, .timeline__area { clip-path: inset(-10% 100% -10% 0); animation: reveal 2.3s cubic-bezier(.5, 0, .2, 1) .2s forwards; }

.dot { position: absolute; width: .95rem; height: .95rem; margin: -.475rem 0 0 -.475rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--cobalt); opacity: 0; animation: pop .4s ease-out var(--d) forwards; }
.dot--ia { width: 1.5rem; height: 1.5rem; margin: -.75rem 0 0 -.75rem; background: var(--mark); border-color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 216, 74, .35); }

.timeline__labels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline__labels li { text-align: center; padding-top: .9rem; font-family: var(--display); font-weight: 700; font-size: clamp(.8rem, 2.4vw, 1.2rem); color: var(--ink-soft); }
.timeline__labels .is-now { color: var(--ink); }
.timeline figcaption { margin-top: 1.25rem; font-size: .95rem; color: var(--ink-soft); }

@keyframes reveal { to { clip-path: inset(-10% -2% -10% 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Sections */
.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.block h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }

.rows { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; }
.rows p { color: var(--ink-soft); max-width: 36rem; }

.block--ink { background: var(--ink); color: var(--paper); }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: start; }
.about__text { display: grid; gap: 1.25rem; max-width: 38rem; color: #c3cbe0; }
.about__big { font-family: var(--display); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; color: #fff; }

.company { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: start; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts a { text-decoration-color: var(--cobalt); text-underline-offset: 3px; }

.block--cta { background: var(--mark); }
.cta { display: grid; gap: 1rem; justify-items: start; }
.cta p { max-width: 32rem; }
.block--cta .btn--primary:hover { background: var(--cobalt); }

.foot { padding: 1.75rem 0; font-size: .9rem; color: var(--ink-soft); }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }

/* Mobile */
@media (max-width: 52rem) {
  .nav a:not(.nav__cta) { display: none; }
  .rows li, .about, .company { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .timeline__line, .timeline__area { animation: none; clip-path: none; }
  .dot { animation: none; opacity: 1; }
}
