:root {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --ink: #141412;
  --ink-2: #4a4843;
  --ink-3: #8a877f;
  --line: rgba(20, 20, 18, 0.13);
  --accent: #c4502b;
  --dark: #121311;
  --dark-2: #1a1b18;
  --dark-line: rgba(243, 240, 232, 0.13);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand: "Schibsted Grotesk", var(--sans);
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --inset: clamp(18px, 2.6vw, 36px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }

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

/* Vertical rails (Contrary-style frame) */
.ruled { position: relative; padding-left: calc(var(--gutter) + var(--inset)); padding-right: calc(var(--gutter) + var(--inset)); }

/* ---------- Type ---------- */
.mono { font-family: var(--mono); }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
}
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.02em; color: var(--ink-2);
  margin-bottom: 28px;
}
.dark .label { color: rgba(243,240,232,.7); }
.px { display: inline-block; width: 9px; height: 9px; background: var(--accent); flex: none; }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: 0.96; letter-spacing: -0.02em;
}
.display em, .h2 em, .display-sm em, .statement em { color: var(--accent); }
.display-sm {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.8vw, 84px); line-height: 1.0; letter-spacing: -0.015em;
  max-width: 14ch;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.015em;
}
.lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 600px; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 2px;
  font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); }
.btn-ghost { height: 36px; padding: 0 16px; border: 1px solid var(--line); font-size: 14px; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.link-arrow { font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Brand ---------- */
.brand { display: inline-block; font-family: var(--brand); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; line-height: 1; }
.wm-a { color: var(--accent); }
.brand-sm { font-size: 19px; }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(243, 240, 232, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-links > a:not(.btn) { color: var(--ink-2); transition: color .2s; position: relative; }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links > a:not(.btn):hover, .nav-links > a.active { color: var(--ink); }
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-wrap, .hero-inner { pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-wrap {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 96px;
}
.hero-inner { position: relative; will-change: transform, opacity; transform: translateY(calc(var(--hp, 0) * 90px)); opacity: calc(1 - var(--hp, 0) * 1.3); }
.hero-lede { margin-top: 40px; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin-bottom: -.14em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 100ms); }
.js .hero.in .split .w > span { transform: none; }
.js .hero-lede { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .75s, transform 1s var(--ease) .75s; }
.js .hero.in .hero-lede { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); }
.section > .ruled { padding-top: clamp(88px, 11vw, 160px); padding-bottom: clamp(88px, 11vw, 160px); }
.dark { background: var(--dark); color: var(--paper); border-top-color: var(--dark-line); }
.section-head { margin-bottom: 56px; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-sub { max-width: 380px; color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }

/* Cells: hairline grid that bleeds to the rails */
.cells {
  display: grid; gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-left: calc(var(--inset) * -1); margin-right: calc(var(--inset) * -1);
}
.cells-3 { grid-template-columns: repeat(3, 1fr); }
.cells-4 { grid-template-columns: repeat(4, 1fr); }
.cell { background: var(--paper); }
.dark .cells { background: var(--dark-line); border-color: var(--dark-line); }
.dark .cell { background: var(--dark); }

/* Ansatz statement */
.thesis .def { font-size: 13.5px; color: rgba(243,240,232,.5); max-width: 720px; margin-bottom: 48px; }
.thesis .def-word { color: var(--paper); }
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.9vw, 72px); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 22ch;
}
.js .statement .sw { opacity: .14; transition: opacity .35s ease; }
.js .statement .sw.on { opacity: 1; }

/* Story */
.story-head { position: sticky; top: 120px; align-self: start; }
.prose { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.prose p + p { margin-top: 24px; }
.prose .pull {
  font-family: var(--serif); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15;
  color: var(--ink); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}

/* Thesis */
.pillar { display: flex; flex-direction: column; }
.matrix { width: 100%; aspect-ratio: 40 / 22; background: var(--dark); }
.cell-body { padding: 32px var(--inset) 36px; display: flex; flex-direction: column; flex: 1; }
.num { font-size: 13px; color: var(--accent); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.08; margin: 18px 0 14px; }
.pillar p { color: var(--ink-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 28px; }
.tags li { font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }

/* Portfolio */
.co {
  aspect-ratio: 1 / 1; padding: 28px var(--inset);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: background .3s, opacity .35s;
}
.co::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.co:hover { background: var(--dark-2); }
.co:hover::before { transform: scaleX(1); }
.co-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.co-name { font-family: var(--serif); font-size: 30px; line-height: 1; }
.co-stage { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,240,232,.45); }
.co-desc { font-size: 14.5px; color: rgba(243,240,232,.7); line-height: 1.55; }
.co-sector { margin-top: auto; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dark .co-cta { background: var(--dark-2); }
.co-cta .co-name { color: var(--accent); font-style: italic; }
.co-cta .link-arrow { margin-top: auto; }

/* Team */
.person { padding: var(--inset); display: flex; flex-direction: column; }
.avatar {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(110% 80% at 15% 0%, rgba(196,80,43,.28), transparent 60%),
    linear-gradient(160deg, #dcd6c7, #cbc4b1);
  display: grid; place-items: center;
  font-family: var(--brand); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; color: rgba(20,20,18,.28);
  margin-bottom: 22px; overflow: hidden;
  transition: filter .4s;
}
.person:hover .avatar { filter: saturate(1.3) contrast(1.05); }
.person h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.role { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.bio { font-size: 14.5px; color: var(--ink-2); margin-top: 14px; }
.person-link { font-size: 12.5px; margin-top: auto; padding-top: 16px; color: var(--ink-2); transition: color .2s; }
.person-link:hover { color: var(--accent); }

/* CTA */
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.cta-link { font-size: clamp(16px, 1.6vw, 20px); color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.cta-link:hover { color: var(--accent); border-color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--dark-line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.footer .brand { color: var(--paper); }
.footer-links { display: flex; gap: 28px; justify-content: flex-end; font-size: 13px; color: rgba(243,240,232,.65); flex-wrap: wrap; }
.footer-links a:hover { color: var(--paper); }
.legal { grid-column: 1 / -1; font-size: 12.5px; color: rgba(243,240,232,.4); max-width: 760px; padding-top: 28px; border-top: 1px solid var(--dark-line); }

/* Generic reveal + stagger */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease), background .3s; transition-delay: calc(var(--i, 0) * 70ms); }
.js .stagger.in > * { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cells-4 { grid-template-columns: repeat(2, 1fr); }
  .cells-3 { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: 1fr 1fr; }
  .matrix { height: 100%; aspect-ratio: auto; min-height: 240px; }
}
@media (max-width: 820px) {
  :root { --inset: 0px; }
  .cells { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .cell-body, .co, .person { padding-left: var(--gutter); padding-right: var(--gutter); }
  .person { padding-top: 24px; padding-bottom: 28px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links > a:not(.btn) { padding: 14px 0; width: 100%; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .story-head { position: static; }
  .pillar { display: flex; }
  .matrix { aspect-ratio: 40 / 22; height: auto; min-height: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .cells-4 { grid-template-columns: 1fr; }
  .co { aspect-ratio: auto; min-height: 220px; }
  .team .cells-4 { grid-template-columns: 1fr 1fr; }
  .avatar { font-size: 32px; }
  .person h3 { font-size: 21px; }
  .bio { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger > *, .js .split .w > span, .js .hero-lede { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .statement .sw { opacity: 1; }
  .hero-inner { transform: none; opacity: 1; }
}

/* Team: two partners */
.cells-2 { grid-template-columns: repeat(2, 1fr); }
.cells-2 .person { flex-direction: row; align-items: stretch; gap: var(--inset); padding: var(--inset); }
.cells-2 .avatar { width: clamp(140px, 16vw, 220px); flex: none; margin-bottom: 0; font-size: clamp(40px, 4vw, 60px); }
.person-info { display: flex; flex-direction: column; min-width: 0; }
.cells-2 .person h3 { font-size: clamp(28px, 2.6vw, 38px); }
@media (max-width: 820px) {
  .cells-2 { grid-template-columns: 1fr; }
  .cells-2 .person { padding: 24px var(--gutter); gap: 20px; }
  .cells-2 .avatar { width: 120px; font-size: 36px; }
}
@media (max-width: 820px) {
  .hero-wrap { justify-content: flex-start; padding-top: 112px; padding-bottom: 40px; }
}

/* Thesis: statement + where we invest, on dark */
.thesis-sub { margin: clamp(96px, 11vw, 150px) 0 48px; font-size: clamp(32px, 3.6vw, 48px); }
.dark .pillar p { color: rgba(243,240,232,.68); }
.dark .tags li { border-color: var(--dark-line); color: rgba(243,240,232,.7); }
.dark .matrix { background: #0b0c0a; }
.dark .pillar h3 { color: var(--paper); }

/* Stealth tiles: name only */
.co-stealth { justify-content: center; align-items: center; }
.co-stealth .co-name { font-size: clamp(28px, 2.6vw, 36px); color: rgba(243,240,232,.85); }

/* On dark backgrounds the brand orange reads lighter-weight than the cream letters;
   lift it so the A carries the same visual weight as "nsatz". */
.dark .wm-a, .portal-side .wm-a { color: #e8693d; }
.dark .brand, .portal-side .brand { color: #efeadf; }
.portal-brand { align-self: flex-start; }
