/* ZuzeTech: zuzetech.com. Tokens follow DESIGN.md. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0B1220;
  --graphite: #1A2233;
  --rule-dark: #2A3447;
  --mist: #F1F4F9;
  --white: #FFFFFF;
  --rule: #DCE2EC;
  --steel: #556070;
  --fog: #A3ADBD;
  --signal: #F2541B;
  --signal-on-dark: #FF6A2B;
  --signal-tint: #FFDCCF;
  --cobalt: #2F5BFF;
  --cobalt-on-dark: #7C9BFF;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--steel) var(--mist); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--night);
  background: var(--mist);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--signal-tint); color: var(--night); }
.on-dark ::selection { background: var(--signal-on-dark); color: var(--night); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s var(--ease), text-decoration-thickness .2s var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.on-dark a { color: var(--cobalt-on-dark); }
.on-dark :focus-visible { outline-color: var(--cobalt-on-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--night); color: var(--white); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--steel); max-width: 38em; }
.on-dark .lede, .on-dark p { color: var(--fog); }
.on-dark h2, .on-dark h3, .on-dark strong { color: var(--white); }
.muted { color: var(--steel); }
.label { margin-bottom: 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.on-dark .label { color: var(--fog); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: var(--radius); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  background: var(--signal); color: var(--night);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: #E3481A; box-shadow: 0 6px 18px -8px rgba(242, 84, 27, .7); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.on-dark .btn { background: var(--signal-on-dark); color: var(--night); }
.on-dark .btn:hover { background: #FF7F48; }

/* Header */
.site-header { background: var(--mist); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.header-link { font-weight: 600; font-size: 1rem; color: var(--night); }
.header-link:hover { color: var(--night); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 12.5em; }
.hero .lede { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.actions .text-link { font-weight: 600; }

/* The grid: sixteen dashboards, cut back to a Z */
.zfig { justify-self: end; width: min(100%, 360px); container-type: inline-size; }
.zgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7.3cqi; list-style: none; padding: 0; }
.zgrid li { aspect-ratio: 1; border-radius: 9%; border: 3px solid var(--night); background: var(--night);
  transition: background-color .8s var(--ease), border-color .8s var(--ease); }
.zgrid .d { background: var(--signal); border-color: var(--signal); }
.zgrid .r { background: transparent; border-color: rgba(11, 18, 32, .36); }
.zgrid.wall li { background: var(--night); border-color: var(--night); transition: none; }
.zgrid .r:nth-child(5) { transition-delay: .05s; } .zgrid .r:nth-child(6) { transition-delay: .2s; }
.zgrid .r:nth-child(8) { transition-delay: .12s; } .zgrid .r:nth-child(9) { transition-delay: .28s; }
.zgrid .r:nth-child(11) { transition-delay: .36s; } .zgrid .r:nth-child(12) { transition-delay: .44s; }
.zgrid .d { transition-delay: .75s; } .zgrid .d:nth-child(7) { transition-delay: .85s; }
.zgrid .d:nth-child(10) { transition-delay: .95s; } .zgrid .d:nth-child(13) { transition-delay: 1.05s; }
.legend { display: flex; gap: 22px; margin-top: 22px; padding: 0; list-style: none; font-size: .9375rem; color: var(--steel); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.sw-keep { background: var(--night); }
.sw-def { background: var(--signal); }
.sw-retire { border: 2px solid rgba(11, 18, 32, .4); }

/* Sections */
.section { padding: var(--section) 0; }
.bg-white { background: var(--white); }
.bg-mist { background: var(--mist); }
.bg-night { background: var(--night); color: var(--white); }
.section-head { max-width: 44rem; }
.section-head p { margin-top: 20px; }
.section-head .label { margin-top: 0; }

/* Problem */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.split .body { margin-top: 24px; color: var(--steel); }
.signs { padding: 32px; background: var(--mist); border-radius: 12px; }
.signs > p { margin-top: 8px; color: var(--steel); }
.checks { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; align-items: start; }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: .4em; border-radius: 2px; border: 2px solid var(--night); }

/* Diagnostic */
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 5vw, 64px); margin-top: clamp(48px, 6vw, 72px); }
.looks > div { padding-top: 22px; border-top: 1px solid var(--rule-dark); }
.looks p { margin-top: 10px; }
.subhead { margin-top: clamp(56px, 7vw, 88px); }
.gets { margin-top: 20px; border-top: 1px solid var(--rule-dark); }
.gets > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule-dark); }
.gets dt { font-weight: 700; color: var(--white); }
.gets dd { color: var(--fog); }
.keep-note { margin-top: 28px; }
.on-dark .actions { margin-top: 32px; }

/* What can follow */
.phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); margin-top: clamp(40px, 5vw, 56px); }
.phase { padding: 32px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.phase .length { margin-top: 6px; font-size: 1rem; font-weight: 600; color: var(--steel); }
.phase p:last-child { margin-top: 14px; }

/* How we work */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); margin-top: clamp(40px, 5vw, 56px); }
.principles > div { padding-top: 22px; border-top: 2px solid var(--night); }
.principles p { margin-top: 10px; color: var(--steel); }
.pull { margin-top: clamp(48px, 6vw, 72px); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; max-width: 30em; }
.pull span { color: var(--steel); font-weight: 600; }
.uses { margin-top: clamp(56px, 7vw, 88px); padding-top: 32px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px clamp(40px, 6vw, 88px); align-items: start; }
.uses-head p { margin-top: 10px; color: var(--steel); max-width: 24em; }
.tools { --tile: clamp(96px, 11vw, 148px); list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, var(--tile)); gap: calc(var(--tile) * .14); }
.tools a {
  position: relative; display: flex; align-items: flex-end; width: var(--tile); aspect-ratio: 1; padding: 12px 14px;
  border: 2px solid rgba(11, 18, 32, .16); border-radius: 10%; background: var(--white);
  color: var(--night); font-weight: 700; font-size: clamp(.8125rem, 1.05vw, .9375rem); line-height: 1.2; text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.tools a svg { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: var(--steel); transition: transform .25s var(--ease), color .25s var(--ease); }
.tools a:hover { background: var(--night); border-color: var(--night); color: var(--white); }
.tools a:hover svg { color: var(--white); transform: translate(2px, -2px); }

/* Who */
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: clamp(32px, 4vw, 44px); max-width: 52rem; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.person .name { font-weight: 700; font-size: 1.25rem; }
.person .role { color: var(--steel); }
.person .bio { margin-top: 14px; }
.person .links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }

/* Close */
.close h2 { max-width: 15em; }
.close .lede { margin-top: 20px; }
.close .email { font-weight: 700; color: var(--white); }
.sister { margin-top: clamp(64px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.sister p { color: var(--fog); }
.sister a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sister svg { width: 16px; height: 16px; }

/* Footer */
.site-footer { background: var(--night); color: var(--fog); border-top: 1px solid var(--rule-dark); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 40px; }
.site-footer img { height: 22px; width: auto; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Privacy page */
.prose > * { max-width: 40rem; }
.prose .lede { margin-top: 20px; }
.prose .updated { margin-top: 12px; font-size: .9375rem; color: var(--steel); }
.prose h2 { margin-top: 48px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact .sister { grid-column: 1 / -1; }
.contact-other { margin-top: 32px; display: grid; gap: 14px; justify-items: start; }
.on-dark .btn-quiet { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--fog); }
.on-dark .btn-quiet:hover { background: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--white); }
.contact-card { background: var(--graphite); border: 1px solid var(--rule-dark); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.contact-card h3 { font-size: 1.25rem; }
.contact-form { display: grid; gap: 18px; }
.contact-form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--white); }
.field .optional { font-weight: 400; color: var(--fog); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--white); background: var(--night); border: 1px solid var(--rule-dark); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cobalt-on-dark); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--signal-on-dark); }
.on-dark .field-error { font-size: .875rem; color: var(--signal-on-dark); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.on-dark .form-note { font-size: .875rem; }
.on-dark .form-status { font-size: .9375rem; color: var(--white); }
.form-status:empty { display: none; }
.contact-thanks:focus { outline: none; }
.contact-thanks p { margin-top: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .zfig { justify-self: start; width: min(100%, 300px); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .tools { --tile: min(148px, calc((100vw - 2 * var(--gutter) - 32px) / 3)); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  .looks, .phases { grid-template-columns: minmax(0, 1fr); }
  .gets > div { grid-template-columns: minmax(0, 1fr); }
  .signs, .phase { padding: 24px; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 26px; }
  .zfig { width: min(100%, 240px); }
}
@media (prefers-reduced-motion: reduce) {
  .zgrid li, .btn, .tools a, .tools a svg { transition: none; }
}
