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

:root {
  --navy: #102b3a;
  --navy-deep: #0b1f2b;
  --blue: #1e4a70;
  --gold: #e8bc40;
  --gold-soft: #f6e3a6;
  --paper: #fff;
  --mist: #eef4f7;
  --line: #d3dfe6;
  --muted: #465b69;
  --body: "Schibsted Grotesk", Arial, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-rise: cubic-bezier(.22, 1, .36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 17px/1.65 var(--body); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(42px, 4.5vw, 64px); margin-bottom: 26px; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold-soft) 62%, var(--gold-soft) 92%, transparent 92%); }
h2 { font-size: clamp(34px, 3.3vw, 48px); margin-bottom: 24px; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 12px; }
p { margin-bottom: 20px; max-width: 66ch; }
:focus-visible { outline: 3px solid #277fc0; outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -80px; left: 20px; background: #fff; padding: 12px; z-index: 30; }
.skip:focus { top: 10px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); flex: none; }

/* Header: sticky, gains a shadow once the page scrolls (Channel Library pattern). */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); transition: box-shadow .4s var(--ease-out), background-color .4s var(--ease-out); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.82); backdrop-filter: blur(10px); } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(4,16,31,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 44px; height: 44px; border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.site-header nav a:not(.button) { text-decoration: none; position: relative; padding-block: 10px; }
.site-header nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.site-header nav a:not(.button):hover::after { transform: scaleX(1); }

/* Buttons with the TDW hover sheen. */
.button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--navy); border-radius: 5px; background: var(--navy); color: #fff; padding: 12px 24px; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.5; transition: background-color .25s, transform .25s var(--ease-out), box-shadow .25s; }
.button:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(16,43,58,.8); }
.button.small { min-height: 44px; padding: 9px 18px; }
.button span { position: relative; z-index: 1; }
.sheen { position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-130%) skewX(-18deg); pointer-events: none; }
.button:hover .sheen { animation: sheen .9s ease-out; }
@keyframes sheen { to { transform: translateX(260%) skewX(-18deg); } }
.text-link { font-size: 15px; font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: currentColor; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 72px; padding-block: 76px 88px; }
.lead { font-size: 20px; line-height: 1.6; max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.hero-note { margin: 0; background: var(--mist); border-radius: 100px 6px 6px 6px; border-bottom: 8px solid var(--gold); padding: 56px 36px 30px; position: relative; }
.hero-note figcaption { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Hero illustration: a looping "drafts get ready" queue (Channel Library-style ambient motion). */
.queue { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 40px -30px rgba(16,43,58,.55); padding: 18px 18px 16px; }
.queue-head { display: flex; justify-content: space-between; align-items: baseline; font: 500 22px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 12px; }
.queue-count { font: 600 12px/1 var(--body); letter-spacing: .02em; color: var(--blue); background: var(--mist); border-radius: 99px; padding: 6px 10px; }
.queue ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.queue li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 12px 12px 10px; font-size: 14.5px; line-height: 1.35; background: #fff; }
.task { font-weight: 600; }
.status { position: relative; display: grid; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status b { grid-area: 1 / 1; border-radius: 99px; padding: 4px 9px; text-align: center; }
.status .working { background: var(--mist); color: var(--muted); }
.status .ready { background: var(--gold-soft); color: var(--navy); opacity: 0; }
.bar { grid-column: 1 / -1; height: 3px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.approve { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--blue); }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); position: relative; flex: none; }
.check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Final state is the default; the loop only runs when motion is welcome. */
.queue .working { opacity: 0; }
.queue .ready { opacity: 1; }
.queue .bar span { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .queue li { animation: task-in 12s var(--ease-rise) infinite; animation-delay: calc(var(--i) * 1.1s); }
  .queue .bar span { animation: fill 12s ease-in-out infinite; animation-delay: calc(var(--i) * 1.1s); }
  .queue .working { animation: working 12s linear infinite; animation-delay: calc(var(--i) * 1.1s); }
  .queue .ready { animation: ready 12s var(--ease-rise) infinite; animation-delay: calc(var(--i) * 1.1s); }
  .queue-count { animation: pulse 12s ease-in-out infinite 4.2s; }
  .check { animation: pop 12s var(--ease-rise) infinite; }
}
@keyframes task-in { 0% { opacity: 0; transform: translateY(14px); } 6%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes fill { 0%, 6% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
@keyframes working { 0%, 29% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes ready { 0%, 29% { opacity: 0; transform: scale(.85); } 33%, 100% { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { background: var(--mist); } 6% { background: var(--gold-soft); } 14% { background: var(--mist); } }
@keyframes pop { 0%, 46% { transform: scale(.4); opacity: .25; } 52% { transform: scale(1.12); opacity: 1; } 56%, 88% { transform: none; opacity: 1; } 96%, 100% { transform: scale(.4); opacity: .25; } }

/* Sections */
.section { padding-block: 84px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; border-top: 1px solid var(--line); }
.split p { color: var(--muted); font-size: 18px; }
.steps-section { background: var(--mist); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { background: #fff; border-radius: 6px; border-top: 3px solid var(--gold); padding: 28px 26px 26px; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -24px rgba(16,43,58,.6); }
.num { display: block; font: 500 40px/1 var(--display); color: var(--blue); margin-bottom: 18px; letter-spacing: -.03em; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
.section-heading { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: end; }
.section-heading > p { color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.services article { border-top: 3px solid var(--gold); padding-top: 22px; }
.services ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.services li { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.services li strong { display: block; color: var(--navy); font-weight: 600; }

/* Navy band with the TDW drifting aurora. */
.rules { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; padding-block: 88px; }
.aurora { position: absolute; inset: -20%; z-index: -1; background:
  radial-gradient(40% 45% at 20% 80%, rgba(232,188,64,.22), transparent 60%),
  radial-gradient(45% 50% at 80% 20%, rgba(39,127,192,.30), transparent 65%),
  radial-gradient(35% 40% at 60% 90%, rgba(30,74,112,.55), transparent 65%); }
@media (prefers-reduced-motion: no-preference) { .aurora { animation: aurora 18s ease-in-out infinite; } }
@keyframes aurora { 0%, 100% { transform: translate(-5%, 2%) scale(1); } 50% { transform: translate(5%, -3%) scale(1.07); } }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.rules .eyebrow { color: var(--gold); }
.rules-grid > div > p:not(.eyebrow) { color: #d3e0e9; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rule-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 20px 22px; }
.rule-list li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 500 20px/1 var(--display); }
.rule-list h3 { margin-bottom: 4px; font-size: 19px; }
.rule-list p { margin: 0; color: #d3e0e9; font-size: 15.5px; }

.founder { display: grid; grid-template-columns: 340px 1fr; align-items: center; gap: 90px; }
.portrait { position: relative; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 8px; background: var(--gold); z-index: -1; }
.portrait { isolation: isolate; }
.portrait img { width: 340px; border-radius: 8px; }
.founder p:not(.eyebrow) { color: var(--muted); }

.contact { background: var(--mist); padding-block: 84px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.contact-grid > div > p { color: var(--muted); font-size: 18px; }
.contact-card { background: #fff; border-radius: 6px; border-bottom: 6px solid var(--gold); padding: 34px 34px 28px; box-shadow: 0 24px 40px -34px rgba(16,43,58,.6); }
.contact-card .button { width: 100%; }
.contact-card p { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.contact-card a:not(.button) { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.contact-card hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0 6px; }
.fine { font-size: 12.5px !important; line-height: 1.55; }

.footer { display: flex; justify-content: space-between; gap: 48px; padding-block: 34px; font-size: 13.5px; }
.footer-brand { display: flex; gap: 12px; align-items: center; flex: none; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand strong { font-size: 15px; }
.footer p { margin: 2px 0 0; color: var(--muted); }
.footer-notes { max-width: 640px; }
.footer-notes p + p { margin-top: 6px; }

/* Stagger delays (data attributes keep the CSP free of inline styles). */
[data-d="0"] { --d: 0s; } [data-d="05"] { --d: .05s; } [data-d="08"] { --d: .08s; } [data-d="1"] { --d: .1s; } [data-d="14"] { --d: .14s; } [data-d="15"] { --d: .15s; } [data-d="16"] { --d: .16s; } [data-d="2"] { --d: .2s; } [data-d="24"] { --d: .24s; } [data-d="25"] { --d: .25s; } [data-d="3"] { --d: .3s; } [data-d="35"] { --d: .35s; } [data-d="45"] { --d: .45s; }
.queue li:nth-child(2) { --i: 1; } .queue li:nth-child(3) { --i: 2; }
.queue li { --i: 0; }

/* Motion: hero rises on load (TDW), sections reveal on scroll (Channel Library + TDW).
   Content stays visible without JavaScript; only .js pages hide it before revealing. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { animation: rise .8s var(--ease-rise) both; animation-delay: var(--d, 0s); }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.in-view { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .site-header nav { gap: 16px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-note { padding: 46px 24px 24px; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .steps { gap: 18px; }
  .split, .section-heading, .rules-grid, .contact-grid { gap: 40px; }
  .founder { grid-template-columns: 280px 1fr; gap: 56px; }
  .portrait img { width: 280px; }
}
@media (max-width: 820px) {
  .header-inner { display: block; padding-block: 14px 8px; min-height: 0; }
  .site-header nav { margin-top: 8px; gap: 4px 22px; flex-wrap: wrap; }
  .site-header nav .button { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-note { max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: relative; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { display: block; padding-block: 14px 8px; min-height: 0; }
  .brand { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .site-header nav { margin-top: 8px; gap: 4px 18px; flex-wrap: wrap; font-size: 13px; }
  .site-header nav .button { display: none; }
  .hero { padding-block: 40px 56px; gap: 34px; }
  .lead { font-size: 18px; }
  .actions { flex-direction: column; align-items: flex-start; }
  .hero-note { border-radius: 50px 5px 5px 5px; padding: 34px 16px 18px; }
  .section, .rules, .contact { padding-block: 56px; }
  .split, .section-heading, .rules-grid, .founder, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr; gap: 28px; margin-top: 26px; }
  .founder { gap: 40px; }
  .portrait img { width: 220px; }
  .contact-card { padding: 26px 22px 22px; }
  .footer { display: block; }
  .footer-notes { margin-top: 18px; }
}
@media (max-width: 380px) {
  h1 { font-size: 40px; }
  .wrap { width: calc(100% - 32px); }
  .queue li { grid-template-columns: 1fr; }
  .status { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .steps li, .site-header nav a::after { transition: none; }
}
@media (forced-colors: active) {
  .button, .check, .rule-list li > span { border: 1px solid ButtonText; }
  .bar span { background: Highlight; }
}

.not-found { min-height: 80vh; display: grid; align-content: center; justify-items: start; }
.not-found .brand { margin-bottom: 48px; }
