@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Black */
  --ground: #0d0d0e;
  --tile: #17171a;
  --tile-2: #222226;
  /* White */
  --ink: #f3f1ed;
  --soft: #aaa7a1;
  --paper: #f3f1ed;
  --paper-ink: #0d0d0e;
  /* Red, in tones */
  --red: #ed1c24;
  --red-press: #c4121a;
  --brick: #8e1b20;
  --oxblood: #3b0b0f;
  --ok: #7fd1a0;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --margin: 12px;
  --gap: 8px;
  --radius: 8px;
  --unit: 96px;
  --section-gap: 120px;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.25rem, 1rem + 5vw, 5.5rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.4;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.05em; line-height: .95; }
h3 { font-weight: 600; font-size: var(--step-lead); letter-spacing: -.02em; line-height: 1.1; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--paper-ink); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.soft { color: var(--soft); }
.small { font-size: var(--step-small); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); }
.bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem; padding-inline: var(--margin);
}
.logo img { height: 2.25rem; width: auto; }

.nav-toggle {
  display: none; background: var(--tile); color: var(--ink); border: 0; border-radius: var(--radius);
  padding: .65rem 1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
}
.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-press); }
.btn-ghost { background: var(--tile-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); color: var(--paper-ink); }
.btn-dark { background: var(--paper-ink); color: var(--ink); }
.btn-dark:hover { background: var(--red); color: #fff; }

/* Board and tiles */
.board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: var(--unit);
  gap: var(--gap);
  padding-inline: var(--margin);
}
main > .board + .board, main + .board-footer { margin-top: var(--section-gap); }
.board-hero { margin-top: 0; }
.board-footer { margin-bottom: var(--margin); grid-auto-rows: 110px; }

.tile {
  background: var(--tile);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  min-width: 0; overflow: hidden;
  transition: background .25s, transform .6s var(--ease), opacity .6s var(--ease);
}
a.tile { text-decoration: none; }

.statement { font-size: var(--step-statement); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.statement-lg { font-size: var(--step-statement); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; max-width: 28ch; }
.statement-sm { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }

/* Hero board */
.t-title { grid-column: 1 / 9; grid-row: 1 / 6; justify-content: space-between; padding: 32px; }
.t-title h1 { font-size: var(--step-display); max-width: 11ch; }
.lead { font-size: var(--step-lead); max-width: 38ch; margin-top: 24px; line-height: 1.3; }
.actions { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 32px; }

.t-mark { grid-column: 9 / 13; grid-row: 1 / 6; background: var(--oxblood); padding: 0; position: relative; }
.mark { position: absolute; inset: 10%; width: 80%; height: 80%; }
.mark-body { fill: var(--ink); stroke: var(--ink); stroke-width: 6; }
.mark-dot, .mark-ring { fill: var(--red); transform-box: fill-box; transform-origin: center; }
.mark-ring { opacity: .0; }

.t-status { grid-column: 1 / 4; grid-row: 6 / 8; justify-content: space-between; }
.status { display: flex; align-items: center; gap: 12px; font-size: var(--step-body); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.dot-sm { width: 10px; height: 10px; }

.t-terminal { grid-column: 4 / 9; grid-row: 6 / 10; }
.t-scan { grid-column: 9 / 13; grid-row: 6 / 10; background: var(--tile-2); }
.t-light { grid-column: 1 / 4; grid-row: 8 / 10; background: var(--paper); color: var(--paper-ink); }
.t-light .statement { font-size: var(--step-lead); }

/* Interface fragments (carry their own borders and mono) */
[data-ui] { font-size: var(--step-small); }
.t-terminal, .t-scan, .ui { background-clip: padding-box; }
.ui-bar {
  display: flex; align-items: center; gap: 10px; color: var(--soft);
  font-size: var(--step-small); font-weight: 600; padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid #ffffff1f; /* taste-skill-ignore: data-ui fragment */
}
pre { margin: 0; overflow-x: auto; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.8; color: var(--ink); }
.c-soft { color: var(--soft); }
.c-ok { color: var(--ok); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 0; border-bottom: 1px solid #ffffff1f; text-align: left; font-size: 15px; }
th { font-weight: 600; }
td { text-align: right; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: var(--step-small); font-weight: 600; }
.chip-ok { background: #1d3b2a; color: var(--ok); }
.chip-warn { background: var(--brick); color: #fff; }
.chip-live { background: var(--red); color: #fff; }

/* Services board */
.s-head { grid-column: 1 / 5; grid-row: 1 / 4; justify-content: space-between; background: var(--paper); color: var(--paper-ink); }
.s-head h2 { font-size: var(--step-head); }
.s-head .soft { color: #55524d; max-width: 26ch; }
.s-text { display: flex; flex-direction: column; gap: 12px; }
.s-text p { color: var(--soft); max-width: 34ch; }

.s-cloud { grid-column: 5 / 13; grid-row: 1 / 4; flex-direction: row; gap: 24px; align-items: stretch; }
.s-cloud .s-text { flex: 1 1 40%; }
.s-cloud .ui { flex: 1 1 60%; align-self: center; }
.s-software { grid-column: 1 / 7; grid-row: 4 / 8; justify-content: space-between; background: var(--tile-2); }
.s-security { grid-column: 7 / 13; grid-row: 4 / 8; justify-content: space-between; background: var(--oxblood); }
.s-security .s-text p { color: #d9c3c3; }
.s-strategy { grid-column: 1 / 9; grid-row: 8 / 12; justify-content: space-between; }
.s-note { grid-column: 9 / 13; grid-row: 8 / 12; background: var(--red); color: #fff; justify-content: space-between; align-items: flex-start; }

.ui { padding: 16px; background: var(--ground); border-radius: var(--radius); }
.s-diagram svg { width: 100%; height: auto; display: block; }
.s-diagram .n { fill: var(--tile-2); }
.s-diagram .n-hot { fill: var(--brick); }
.s-diagram .l { fill: var(--soft); }
.s-diagram .pip { fill: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }

.road { display: grid; gap: 10px; }
.road-row { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--soft); }
.road-row span { width: 3.2rem; flex: none; }
.road-row i { display: block; height: 14px; border-radius: 4px; background: var(--red); }
.road-row .bar-1 { width: 70%; }
.road-row .bar-2 { width: 45%; background: var(--brick); }
.road-row .bar-3 { width: 25%; background: var(--tile-2); }

/* About board */
.a-main { grid-column: 1 / 8; grid-row: 1 / 7; justify-content: space-between; padding: 32px; }
.a-main h2 { font-size: var(--step-head); }
.a-v1, .a-v2, .a-v3 { grid-column: 8 / 13; justify-content: space-between; }
.a-v1 { background: var(--paper); color: var(--paper-ink); }
.a-v2 { background: var(--brick); }
.a-v3 { background: var(--tile-2); }
.a-v1 p { color: #55524d; }
.a-v2 p { color: #f1d6d6; }
.a-v3 p { color: var(--soft); }
.a-v1 { grid-row: 1 / 3; } .a-v2 { grid-row: 3 / 5; } .a-v3 { grid-row: 5 / 7; }

/* Contact board */
.c-main {
  grid-column: 1 / 13; grid-row: 1 / 5; background: var(--oxblood);
  flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 32px;
}
.c-main h2 { font-size: var(--step-display); max-width: 12ch; align-self: flex-start; }
.c-side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; max-width: 32ch; }
.c-side p { font-size: var(--step-lead); line-height: 1.3; }

/* Footer board */
.f-legal { grid-column: 1 / 5; grid-row: 1 / 3; justify-content: space-between; }
.f-nav { grid-column: 5 / 8; grid-row: 1 / 3; gap: 6px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; }
.f-nav a { text-decoration: none; transition: color .2s; }
.f-nav a:hover { color: var(--red); }
.f-time { grid-column: 8 / 10; grid-row: 1 / 3; justify-content: space-between; background: var(--tile-2); }
.f-clock { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; }
.f-mail { grid-column: 10 / 13; grid-row: 1 / 3; justify-content: flex-end; background: var(--brick); }
.f-mail a { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.f-mail a:hover { text-decoration: underline; }
.f-brand { grid-column: 1 / 9; grid-row: 3 / 6; background: var(--paper); align-items: center; justify-content: center; }
.f-brand img { height: 100%; max-height: 260px; width: auto; }
.f-top { grid-column: 9 / 13; grid-row: 3 / 6; background: var(--red); color: #fff; justify-content: space-between; font-size: var(--step-statement); font-weight: 600; letter-spacing: -.03em; transition: background .2s; }
.f-top:hover { background: var(--red-press); }
.f-top svg { align-self: flex-end; transition: transform .3s var(--ease); }
.f-top:hover svg { transform: translateY(-6px); }

/* Hover feedback */
.s-cloud:hover, .s-software:hover, .s-strategy:hover, .t-terminal:hover, .a-v3:hover { background: #2c2c31; }
.t-light:hover, .s-head:hover { background: #ffffff; }
.s-security:hover, .t-mark:hover, .c-main:hover { background: #4a1015; }

/* Motion: pulse, drift, reveal */
@media (prefers-reduced-motion: no-preference) {
  .mark { animation: drift 9s ease-in-out infinite alternate; }
  .mark-ring { animation: ping 2.6s ease-out infinite; }
  .status .dot, .ui-bar .dot { animation: blink 2.6s ease-in-out infinite; }

  .js .reveal { opacity: 0; transform: translateY(24px); }
  .js .reveal.in { opacity: 1; transform: none; }

  .js .shutter { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) .1s, background .25s; }
  .js .shutter.in { clip-path: inset(0 0 0 0); }
  .js .shutter .mark { scale: 1.12; transition: scale 1.4s var(--ease) .1s; }
  .js .shutter.in .mark { scale: 1; }

}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-14px, -10px); } }
@keyframes ping { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 404 */
.notfound { min-height: 70vh; padding: var(--margin); display: grid; }
.notfound .tile { justify-content: space-between; background: var(--oxblood); padding: 32px; align-items: flex-start; }
.notfound h1 { font-size: clamp(5rem, 28vw, 18rem); color: var(--red); }
.notfound p { font-size: var(--step-lead); margin: 16px 0 24px; }

/* Tablet */
@media (max-width: 1000px) {
  .t-title { grid-column: 1 / 13; grid-row: auto; min-height: 460px; }
  .t-mark { grid-column: 1 / 13; grid-row: auto; min-height: 320px; }
  .t-status { grid-column: 1 / 7; grid-row: auto; min-height: 192px; }
  .t-light { grid-column: 7 / 13; grid-row: auto; min-height: 192px; }
  .t-terminal, .t-scan { grid-column: 1 / 13; grid-row: auto; min-height: 280px; order: 1; }
  .board { grid-auto-rows: auto; }
  .board > .tile { grid-row: auto !important; }
  .s-head, .s-cloud, .s-software, .s-security, .s-strategy, .s-note,
  .a-main, .a-v1, .a-v2, .a-v3 { grid-column: 1 / 13; min-height: 240px; }
  .s-cloud { flex-direction: column; }
  .s-head, .s-note { min-height: 260px; }
  .a-main { min-height: 360px; }
  .c-main { grid-column: 1 / 13; flex-direction: column; align-items: flex-start; min-height: 420px; }
  .f-legal, .f-nav, .f-time, .f-mail { min-height: 200px; }
  .f-legal { grid-column: 1 / 13; }
  .f-nav { grid-column: 1 / 7; }
  .f-time { grid-column: 7 / 13; }
  .f-mail { grid-column: 1 / 13; min-height: 140px; }
  .f-brand { grid-column: 1 / 13; min-height: 260px; }
  .f-top { grid-column: 1 / 13; min-height: 200px; }
  .board-footer { grid-auto-rows: auto; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --margin: 8px; --gap: 6px; --section-gap: 64px; }
  .tile { padding: 20px; }
  .t-title { padding: 24px 20px; min-height: 0; gap: 32px; }
  .t-mark { min-height: 260px; }
  .t-status, .t-light { grid-column: span 6; min-height: 160px; }
  .t-terminal code { font-size: 12.5px; }
  .actions .btn { flex: 1 1 100%; }
  .f-nav, .f-time { min-height: 160px; }
  .c-main .btn { width: 100%; }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ground); padding: 8px var(--margin) 16px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a:not(.btn) { display: block; padding: 14px 4px; font-size: var(--step-lead); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
