/* Nozingelayo, Option C: schematic. Graphite, cool paper, one electric blue. */

:root {
  --paper: #f4f5f2;
  --white: #ffffff;
  --ink: #0f1417;
  --muted: #5b6369;
  --line: #dcdfdb;
  --blue: #2f55ff;
  --blue-deep: #1d3ed8;
  --dark: #0f1417;
  --on-dark: #eef0ee;
  --on-dark-muted: #8e979c;
  --dark-line: rgba(238, 240, 238, .14);
  --blue-on-dark: #8fa3ff;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 80px;
  --section: clamp(112px, 14vw, 200px);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 400; }
.tag { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag a { text-decoration: underline; text-underline-offset: 4px; }
.dark { background: var(--dark); color: var(--on-dark); }
.dark .tag { color: var(--on-dark-muted); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn .arrow { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ghost { border-color: rgba(238,240,238,.4); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--blue); border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.text-link .arrow { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.text-link:hover .arrow { transform: translateX(3px); }
.inline { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.inline:hover { color: var(--blue); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--dark); color: var(--on-dark); border-bottom: 1px solid var(--dark-line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-dark); }
.brand-mark { width: 32px; height: 32px; flex: none; color: var(--on-dark); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 600 20px/1 var(--sans); letter-spacing: -0.02em; }
.brand-sub { margin-top: 6px; font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.nav { display: flex; align-items: center; gap: 40px; }
.nav > a:not(.nav-call) { position: relative; font: 500 15px/1 var(--sans); text-decoration: none; padding: 8px 0; color: var(--on-dark); }
.nav > a:not(.nav-call)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav > a:not(.nav-call):hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a[aria-current="page"]::after { background: var(--on-dark); }
.nav-call { margin-left: 8px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid rgba(238,240,238,.45); font: 500 15px/1 var(--sans); text-decoration: none; transition: background .2s, border-color .2s; }
.nav-call svg { width: 16px; height: 16px; }
.nav-call:hover { background: var(--blue); border-color: var(--blue); }
.menu-btn { display: none; align-items: center; gap: 12px; background: none; border: 0; color: var(--on-dark); font: 500 15px/1 var(--sans); cursor: pointer; padding: 8px 0; }
.menu-btn .bars { width: 20px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mm-head { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dark-line); }
.mm-close { background: none; border: 0; color: var(--on-dark); font: 500 15px/1 var(--sans); cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 6px; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 32px; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: baseline; font: 600 38px/1.1 var(--sans); letter-spacing: -0.03em; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--dark-line); }
.mobile-menu nav a small { font: 400 12px/1 var(--mono); color: var(--on-dark-muted); letter-spacing: .08em; }
.mobile-menu nav a[aria-current="page"] { color: var(--blue-on-dark); }
.mm-foot { margin-top: auto; display: grid; gap: 12px; }
.mm-foot .btn { justify-content: center; }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; height: calc(100svh - var(--header-h)); min-height: 600px; max-height: 900px; }
.hero h1 { margin-top: clamp(20px, 3vh, 32px); font-size: clamp(44px, min(5.6vw, 9.4vh), 90px); letter-spacing: -0.04em; max-width: 11.5ch; }
.lede { margin-top: clamp(20px, 3.4vh, 32px); font-size: 19px; line-height: 1.6; color: var(--on-dark-muted); max-width: 29em; }
.actions { margin-top: clamp(28px, 4.4vh, 48px); display: flex; gap: 12px; flex-wrap: wrap; }
.diagram { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vh, 48px) 0; }
.diagram svg { width: 100%; height: auto; max-height: calc(100svh - var(--header-h) - 120px); overflow: visible; }
.diagram figcaption { margin-top: 16px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }

.diagram .wire { fill: none; stroke: rgba(238,240,238,.5); stroke-width: 1.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1s cubic-bezier(.6,0,.3,1) forwards; animation-delay: var(--d, 0s); transition: stroke .2s; }
.diagram .wire.thin { stroke-width: 1; }
.diagram .db, .diagram .brk, .diagram .sq { fill: var(--dark); stroke: rgba(238,240,238,.55); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.diagram .db { fill: rgba(238,240,238,.03); }
.diagram text { font-family: var(--mono); }
.diagram .d-name { font: 500 15px var(--sans); fill: var(--on-dark); }
.diagram .d-mono { font-size: 10.5px; letter-spacing: .08em; fill: var(--on-dark-muted); }
.diagram .d-code { font-size: 10px; fill: var(--on-dark); text-anchor: middle; }
.diagram .load rect, .diagram .load text { opacity: 0; animation: fade .5s ease forwards; animation-delay: calc(var(--d, 0s) + .45s); }
.diagram .live { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 5 15; opacity: 0; animation: fade .6s 1.4s forwards, flow 1.1s linear infinite; }
.diagram a:hover .sq, .diagram a:focus-visible .sq { fill: var(--blue); stroke: var(--blue); }
.diagram a:hover .wire { stroke: var(--blue-on-dark); }
.diagram a:hover .db { stroke: var(--blue-on-dark); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diagram .wire { animation: none; stroke-dashoffset: 0; }
  .diagram .load rect, .diagram .load text { animation: none; opacity: 1; }
  .diagram .live { display: none; }
  * { transition: none !important; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section--flush-top { padding-top: 0; }
h2 { font-size: clamp(36px, 4.4vw, 64px); }
.head { max-width: 820px; margin-bottom: clamp(56px, 7vw, 104px); }
.head h2 { margin-top: 24px; }
.head-p { margin-top: 28px; color: var(--muted); font-size: 18px; max-width: 34em; }

.svc-layout { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(56px, 8vw, 128px); }
.svc-intro { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.svc-intro h2 { margin: 24px 0 28px; font-size: clamp(34px, 3.8vw, 56px); }
.svc-intro p { color: var(--muted); max-width: 28em; }
.svc-intro .text-link { margin-top: 36px; }
.svc-list { border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: 56px 1fr 168px; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.svc .code { color: var(--blue); font-size: 13px; padding-top: 8px; }
.svc h3 { font-size: clamp(22px, 2vw, 28px); transition: color .2s; }
.svc p { margin-top: 12px; color: var(--muted); max-width: 32em; }
.svc img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.svc:hover h3 { color: var(--blue); }
.svc:hover img { filter: none; }

.band { position: relative; }
.band img { width: 100%; height: clamp(360px, 72vh, 780px); object-fit: cover; }
.band figcaption { position: absolute; left: var(--gutter); bottom: 24px; background: var(--ink); color: var(--on-dark); padding: 9px 14px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

.coc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 8vw, 128px); align-items: center; }
.coc h2 { margin: 24px 0 28px; font-size: clamp(34px, 3.8vw, 56px); }
.coc > div:first-child p { color: var(--muted); max-width: 32em; }
.coc .text-link { margin-top: 36px; }
.sheet { background: var(--white); border: 1px solid var(--ink); }
.sheet-head { display: flex; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.sheet ol li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; padding: 22px 28px; border-bottom: 1px solid var(--line); font-size: 18px; }
.sheet ol li span { color: var(--blue); font-size: 13px; }
.sheet-foot { padding: 18px 28px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps li { border-top: 1px solid var(--dark-line); padding-top: 32px; }
.step-n { display: block; font: 600 clamp(48px, 5vw, 72px)/1 var(--sans); letter-spacing: -0.05em; color: var(--blue-on-dark); }
.steps h3 { font-size: 22px; letter-spacing: -0.02em; margin: 32px 0 12px; }
.steps p { color: var(--on-dark-muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.facts > div { border-top: 1px solid var(--ink); padding-top: 24px; }
.facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 18px; font: 600 clamp(24px, 2.4vw, 34px)/1.1 var(--sans); letter-spacing: -0.025em; }
.facts--spaced { margin-top: clamp(96px, 10vw, 144px); }

.cta { background: var(--blue); color: #fff; padding: clamp(104px, 12vw, 176px) 0; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 80px; align-items: end; }
.cta h2 { font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.04em; max-width: 12ch; }
.cta p { color: rgba(255,255,255,.85); font-size: 19px; max-width: 28em; }

/* Inner pages */
.page-head { padding: clamp(80px, 10vw, 144px) 0 clamp(72px, 8vw, 120px); }
.ph-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; }
.page-head h1 { font-size: clamp(52px, 7.4vw, 116px); letter-spacing: -0.045em; line-height: .95; }
.ph-grid p { color: var(--muted); font-size: 19px; max-width: 30em; }
.jump { margin-top: clamp(56px, 6vw, 88px); display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 24px; border-top: 1px solid var(--ink); }
.jump a { display: inline-flex; gap: 12px; align-items: baseline; font-weight: 500; text-decoration: none; }
.jump a span { color: var(--blue); font-size: 12.5px; }
.jump a:hover { color: var(--blue); }

.group { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(48px, 7vw, 112px); padding: clamp(80px, 10vw, 144px) 0; border-top: 1px solid var(--line); }
.group:first-child { border-top: 0; padding-top: 0; }
.group-side { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.group-side .code { color: var(--blue); font-size: 13px; }
.group-side h2 { margin-top: 16px; font-size: clamp(30px, 3.2vw, 46px); }
.group-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.group-main > p { margin-top: 40px; color: var(--muted); font-size: 18px; max-width: 36em; }
.items { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--ink); }
.items li { display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.items li span { color: var(--blue); font-size: 13px; padding-top: 3px; }

.story .lead { font: 600 clamp(28px, 3.2vw, 46px)/1.2 var(--sans); letter-spacing: -0.03em; max-width: 22em; margin-bottom: clamp(64px, 8vw, 112px); }
.story-cols { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.story-cols img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prose p { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 34em; }
.prose p + p { margin-top: 1.3em; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.why > div { border-top: 1px solid var(--ink); padding-top: 28px; }
.why h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.why p { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(56px, 8vw, 128px); align-items: start; }
.direct > a, .direct > div { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.direct > a:first-child { border-top: 1px solid var(--ink); }
.direct span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.direct strong { font: 600 22px/1.25 var(--sans); letter-spacing: -0.015em; word-break: break-word; transition: color .2s; }
.direct a:hover strong { color: var(--blue); }
.note { margin-top: 32px; color: var(--muted); max-width: 26em; }
.quote-form { background: var(--white); padding: clamp(32px, 5vw, 64px); }
.quote-form h2 { font-size: clamp(30px, 3vw, 42px); }
.sub { color: var(--muted); margin-top: 10px; }
.fields { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 14px/1.4 var(--sans); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #c9cdc8; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1417' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.err { display: none; font-size: 14px; color: #b3261e; }
.field.invalid input, .field.invalid select { border-color: #b3261e; }
.field.invalid .err { display: block; }
.send-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.fine { display: block; margin-top: 18px; color: var(--muted); font-size: 14px; }
.map { margin-top: clamp(96px, 10vw, 144px); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(1); }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding-top: clamp(96px, 10vw, 144px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; }
.footer-about p { margin-top: 28px; color: var(--on-dark-muted); max-width: 26em; }
.site-footer h4 { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 20px; }
.site-footer li { padding: 5px 0; color: var(--on-dark); }
.site-footer li a { text-decoration: none; word-break: break-word; }
.site-footer li a:hover { color: var(--blue-on-dark); }
.footer-bottom { margin-top: clamp(80px, 9vw, 120px); padding: 28px 0 36px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-muted); }
.footer-bottom .mono { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.wa-tab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; background: var(--ink); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; border: 1px solid var(--dark-line); box-shadow: 0 8px 24px rgba(15,20,23,.2); }
.wa-tab svg { width: 20px; height: 20px; color: #25d366; }
.wa-tab:hover { background: #1f8f4e; }
.wa-tab:hover svg { color: #fff; }

/* Responsive */
@media (max-width: 1080px) {
  .svc { grid-template-columns: 48px 1fr 128px; gap: 24px; }
  .svc img { width: 128px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .steps { grid-template-columns: 1fr 1fr; gap: 56px 48px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; gap: 48px; max-width: 36em; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; --section: clamp(88px, 16vw, 120px); }
  .brand-sub { display: none; }
  .hero-grid { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; padding-top: 64px; padding-bottom: 72px; gap: 56px; }
  .diagram { height: auto; padding: 0; max-width: 480px; }
  .diagram svg { max-height: none; }
  .svc-layout, .coc, .group, .ph-grid, .story-cols, .contact, .cta-grid { grid-template-columns: 1fr; }
  .svc-intro, .group-side { position: static; }
  .group { gap: 32px; }
  .story-cols img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .svc { grid-template-columns: 40px 1fr; }
  .svc img { display: none; }
  .items, .steps, .steps--3, .fields { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .actions .btn, .send-row .btn { width: 100%; justify-content: center; }
  .sheet ol li, .sheet-head, .sheet-foot { padding-left: 20px; padding-right: 20px; }
  .wa-tab span { display: none; }
  .wa-tab { padding: 14px; }
}
