/* Layout: one 1200px editorial column; serif display names, sans body; light by default, dark follows the system */
:root {
  --bg: #F5F6F3;
  --surface: #EBECE8;
  --surface-hover: #E3E4DF;
  --fg: #121417;
  --muted: #59585A; /* logo gray */
  --faint: #59585A;
  --line: #DCDDD8;
  --accent: #1076BC; /* logo blue */
  --on-accent: #FFFFFF;
  --panel-bg: #121417;
  --panel-fg: #F5F6F3;
  --panel-muted: #A6AAB1;
  --panel-line: #33363C;
  --panel-accent: #6FB6E8;
  --header-bg: rgba(245, 246, 243, 0.86);
  --font-display: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1114; --surface: #191C21; --surface-hover: #21252B; --fg: #ECEDEA; --muted: #A9A8AA; --faint: #A9A8AA;
    --line: #2A2E35; --accent: #4DA3E0; --on-accent: #0F1114; --panel-bg: #1C2130; --panel-fg: #ECEDEA;
    --panel-muted: #A9ADB5; --panel-line: #333A4C; --panel-accent: #6FB6E8; --header-bg: rgba(15, 17, 20, 0.86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1114; --surface: #191C21; --surface-hover: #21252B; --fg: #ECEDEA; --muted: #A9A8AA; --faint: #A9A8AA;
  --line: #2A2E35; --accent: #4DA3E0; --on-accent: #0F1114; --panel-bg: #1C2130; --panel-fg: #ECEDEA;
  --panel-muted: #A9ADB5; --panel-line: #333A4C; --panel-accent: #6FB6E8; --header-bg: rgba(15, 17, 20, 0.86);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; font-weight: 400;
}
.brand-logo { width: 46px; height: 46px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.visits {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface); color: var(--fg);
  border-radius: 999px; padding: 8px 16px; font-size: 14px;
}
.visits b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.visits span { color: var(--muted); }
.visits-dot { width: 8px; height: 8px; border-radius: 50%; background: #22A06B; box-shadow: 0 0 0 0 rgba(34, 160, 107, .5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, .45); } 70% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0); } }
.foot-brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; white-space: nowrap; }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); transition: color .3s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-link[aria-current="page"] { font-weight: 500; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--font-body); border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover, .btn-solid[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.ulink {
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat;
  background-position: 0 100%; transition: background-size .4s var(--ease);
}
.ulink:hover { background-size: 100% 1px; }
.text-link { font-weight: 500; color: var(--fg); border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }

/* Type */
.eyebrow { display: block; font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.022em; line-height: 1.04; }
.display em, .h2 em { font-style: italic; color: var(--accent); }
.h1 { font-size: clamp(40px, 5.4vw, 76px); }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.018em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* Page sections */
.page-head { padding-block: 80px 48px; display: flex; flex-direction: column; gap: 22px; }
.section { padding-block: 0 104px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.section-head p { max-width: 42ch; color: var(--muted); font-size: 16px; }

/* Load motion: plays once, ends fully visible */
.rise { animation: rise .8s var(--ease) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .27s; } .d4 { animation-delay: .39s; } .d5 { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Home hero */
.hero { padding-block: 72px 56px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-name { font-size: clamp(64px, 9vw, 136px); line-height: 0.9; }
.rotator { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 300; }
.rotator-window { height: 1.3em; overflow: hidden; font-weight: 500; }
.rotator-track { display: flex; flex-direction: column; transition: transform .8s var(--ease); }
.rotator-track span { height: 1.3em; display: block; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.portrait { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 24px; background: var(--surface); }

/* Portrait hover: a thin glowing line runs once around the photo, then fades */
@property --trace-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.portrait-frame { position: relative; width: 100%; border-radius: 24px; }
.portrait-frame .portrait { display: block; }
.trace { position: absolute; inset: -4px; border-radius: 28px; pointer-events: none; filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 2px var(--accent)); }
.trace span {
  position: absolute; inset: 0; border-radius: inherit; padding: 2px; opacity: 0;
  background: conic-gradient(from var(--trace-angle), transparent 0deg, transparent 250deg, var(--accent) 320deg, #FFFFFF 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.portrait-frame:hover .trace span { animation: trace 1.8s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes trace {
  0% { --trace-angle: 0deg; opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { --trace-angle: 360deg; opacity: 0; }
}

/* Figures strip */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.figure + .figure { border-left: 1px solid var(--line); }
.figure b { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figure span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Organisation marquee */
.marquee { overflow: hidden; padding-block: 24px; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: slide 48s linear infinite; font-family: var(--font-display); font-size: 30px; color: var(--muted); white-space: nowrap; }
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Home bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; background: var(--surface); border-radius: 24px; padding: 32px; min-height: 290px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden;
  transition: transform .6s var(--ease), background-color .4s;
}
.tile:hover { transform: translateY(-5px); background: var(--surface-hover); }
.tile-wide { grid-column: span 2; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tile-label { font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.tile-quote { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -0.015em; max-width: 30ch; }
.tile-text { font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.tile-media { margin: -32px -32px 0; aspect-ratio: 16 / 8; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-dark { background: var(--panel-bg); color: var(--panel-fg); }
.tile-dark:hover { background: var(--panel-bg); }
.tile-dark .tile-label { color: var(--panel-muted); }
.tile-dark .arrow { border-color: var(--panel-line); }
.tile-big { font-family: var(--font-display); font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .45s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.arrow svg { width: 18px; height: 18px; }
a:hover > .tile-top .arrow, .tile:hover .arrow, .next:hover .arrow {
  transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 64ch; }
.prose .first { font-size: 23px; line-height: 1.5; color: var(--fg); letter-spacing: -0.01em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.fact span { font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.fact b { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.list { border-top: 1px solid var(--fg); }
.list-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.4fr); gap: 24px; padding-block: 24px;
  border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .4s var(--ease);
}
.list-row:hover { padding-left: 14px; }
.list-row .when { font-size: 15px; color: var(--faint); font-variant-numeric: tabular-nums; }
.list-row .what { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.list-row .where { font-size: 16px; color: var(--muted); }
.list-row .detail { grid-column: 2 / 4; font-size: 16px; color: var(--muted); margin-top: -10px; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quote { background: var(--surface); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; margin: 0; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.01em; }
.quote figcaption { font-size: 15px; color: var(--muted); }
.quote figcaption b { display: block; color: var(--fg); font-weight: 500; }

/* Expertise */
.areas { border-top: 1px solid var(--fg); }
.area { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding-block: 40px; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.area:hover { padding-left: 14px; }
.area h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.area p { color: var(--muted); max-width: 52ch; }
.ticks { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tool { background: var(--surface); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.tool h3 { font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg);
  font: 500 14px/1 var(--font-body); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--fg); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
.project { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.project.is-hidden { display: none; }
.project.is-in { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.project-media {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--surface);
  display: grid; place-items: center; transition: border-radius .6s var(--ease);
}
.project:hover .project-media { border-radius: 26px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; max-height: 100%; transition: transform .8s var(--ease); }
.project:hover .project-media img { transform: scale(1.04); }
.project-media.contain { padding: 18px; }
.project-media.contain img { object-fit: contain; }
.project-media.type { background: var(--panel-bg); color: var(--panel-fg); padding: 26px; place-items: end start; }
.project-media.type span { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -0.015em; }
.project-meta { display: flex; flex-direction: column; gap: 5px; }
.project-tag { font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.project h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.project .client { font-size: 15px; color: var(--muted); }
.project p.desc { font-size: 15px; color: var(--muted); line-height: 1.55; }
.project details { border-top: 1px solid var(--line); padding-top: 10px; font-size: 15px; }
.project summary { cursor: pointer; font-weight: 500; min-height: 32px; display: flex; align-items: center; gap: 8px; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.project summary::after { content: "+"; font-size: 18px; color: var(--accent); transition: transform .3s var(--ease); }
.project details[open] summary::after { transform: rotate(45deg); }
.project details ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.project details li a { color: var(--fg); border-bottom: 1px solid var(--line); }
.project details li a:hover { border-color: var(--accent); color: var(--accent); }
.orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.org {
  background: var(--surface); border-radius: 16px; min-height: 104px; display: grid; place-items: center; text-align: center;
  padding: 18px; font-family: var(--font-display); font-size: 23px; line-height: 1.15; transition: background-color .4s, color .4s;
}
.org:hover { background: var(--fg); color: var(--bg); }
.research { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.research-card { background: var(--surface); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.research-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.research-card p { color: var(--muted); font-size: 16px; }

/* Opportunities */
.wants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.want { background: var(--surface); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 18px; transition: transform .5s var(--ease), background-color .4s; }
.want:hover { transform: translateY(-4px); background: var(--surface-hover); }
.want h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.panel {
  background: var(--panel-bg); color: var(--panel-fg); border-radius: 28px; padding: clamp(30px, 5vw, 60px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
}
.panel .eyebrow { color: var(--panel-muted); }
.panel-title { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.02em; max-width: 24ch; }
.panel-title em { color: var(--panel-accent); }
.btn-light { background: var(--panel-fg); color: var(--panel-bg); }
.btn-light:hover { background: var(--panel-accent); color: var(--panel-bg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.channels { border-top: 1px solid var(--fg); }
.channel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.channel-label { font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.channel-value { font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -0.015em; overflow-wrap: anywhere; user-select: all; }
a.channel-value { user-select: auto; transition: color .3s; }
a.channel-value:hover { color: var(--accent); }
.copy { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 500 13px/1 var(--font-body); cursor: pointer; transition: border-color .3s, color .3s; }
.copy:hover { border-color: var(--fg); }
.form { background: var(--surface); border-radius: 28px; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  padding: 0 15px; font: 16px var(--font-body); transition: border-color .3s, box-shadow .3s; width: 100%;
}
.field textarea { padding-block: 13px; resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--fg); font-weight: 500; }

/* Pitch components */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-thesis { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.06; }
.hero-id { display: flex; flex-direction: column; gap: 8px; }
.byline { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.015em; color: var(--fg); }
.sectors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sector { padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sector + .sector { border-left: 1px solid var(--line); }
.sector span { font-size: 12px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.sector b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.15; }

.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.model-side { background: var(--surface); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.model-side h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.model-side p { color: var(--muted); font-size: 15px; }
.model-core {
  background: var(--panel-bg); color: var(--panel-fg); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 16px; text-align: center;
}
.model-core .eyebrow { color: var(--panel-muted); }
.model-core p { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.model-core p em { color: var(--panel-accent); }
.model-flow { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--panel-muted); }
.model-flow b { color: var(--panel-fg); font-weight: 500; background: color-mix(in srgb, var(--panel-fg) 10%, transparent); padding: 6px 12px; border-radius: 999px; }

.chapters { border-top: 1px solid var(--fg); }
.chapter {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.3fr) 56px; gap: 24px; align-items: center;
  padding-block: 26px; border-bottom: 1px solid var(--line); transition: padding .45s var(--ease);
}
.chapter:hover { padding-left: 14px; }
.chapter-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.chapter-title { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -0.02em; }
.chapter-text { color: var(--muted); font-size: 16px; }

.timeline { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-left: 6px; }
.stage { position: relative; padding: 0 0 56px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; }
.stage::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.stage:last-child { padding-bottom: 8px; }
.stage-head { display: flex; flex-direction: column; gap: 8px; }
.stage-when { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.stage-sector { display: inline-block; align-self: flex-start; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 4px 10px; border-radius: 999px; }
.stage h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.stage-org { color: var(--muted); font-size: 15px; }
.stage-body { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.stage-body .gap { color: var(--fg); font-size: 18px; line-height: 1.5; }
.learned { font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.learned b { color: var(--fg); font-weight: 500; }

.compare { overflow-x: auto; border-top: 1px solid var(--fg); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.compare th { font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.compare td:first-child { font-weight: 500; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); width: 36%; }
.compare td:nth-child(3) { color: var(--fg); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.card p { color: var(--muted); font-size: 16px; }
.challenges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.challenge { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.challenge h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.challenge p { color: var(--muted); font-size: 15px; }

.principles { border-top: 1px solid var(--fg); }
.principle { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.principle h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 10px; }
.principle p { color: var(--muted); max-width: 56ch; }
.proof { background: var(--surface); border-radius: 18px; padding: 20px 22px; font-size: 15px; color: var(--muted); align-self: start; }
.proof b { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 6px; }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.case { background: var(--surface); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.case h3 { font-size: 23px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.case dl { margin: 0; display: grid; gap: 10px; }
.case dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.case dd { margin: 0; color: var(--muted); font-size: 15px; }
.case dd.result { color: var(--fg); font-weight: 500; }

.plan { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.step { background: var(--surface); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.step p { color: var(--muted); font-size: 15px; }

/* Compact pitch components */
.arc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: arc; }
.arc a {
  position: relative; background: var(--surface); border-radius: 22px; padding: 22px 20px 20px; min-height: 210px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--ease), background-color .4s;
}
.arc a:hover { transform: translateY(-5px); background: var(--surface-hover); }
.arc-n { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); }
.arc b { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.arc span.t { font-size: 14px; color: var(--muted); line-height: 1.45; }
.arc .arrow { margin-top: auto; width: 36px; height: 36px; }
.arc a:hover .arrow { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.bridge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.bridge span { background: var(--bg); border-radius: 999px; padding: 6px 12px; }
.bridge i { font-style: normal; color: var(--accent); font-size: 16px; }

.stages { display: grid; gap: 14px; }
.stage2 {
  display: grid; grid-template-columns: 170px minmax(0, 1.5fr) minmax(0, 1fr) 150px; gap: 28px; align-items: center;
  background: var(--surface); border-radius: 24px; padding: 26px 28px; transition: transform .5s var(--ease);
}
.stage2:hover { transform: translateX(6px); }
.stage2 .when { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 6px; }
.stage2 h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 6px; }
.stage2 .role { font-size: 14px; color: var(--muted); display: block; margin-bottom: 12px; }
.stage2 .tech { display: flex; flex-direction: column; gap: 8px; }
.stage2 .tech small { font-size: 12px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.stage2 .result { text-align: right; }
.stage2 .result b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.stage2 .result span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }
.chip-sm { font-size: 13px; padding: 5px 11px; }

.matrix { overflow-x: auto; }
.matrix table { width: 100%; border-collapse: separate; border-spacing: 10px; min-width: 620px; margin: -10px; }
.matrix th { text-align: left; font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; padding: 0 4px; }
.matrix th[scope="row"] { font-family: var(--font-display); font-size: 26px; text-transform: none; letter-spacing: -0.01em; color: var(--fg); font-weight: 400; width: 18%; vertical-align: top; padding-top: 18px; }
.matrix td { background: var(--surface); border-radius: 18px; padding: 18px 20px; font-size: 15px; line-height: 1.5; vertical-align: top; }
.matrix td b { display: block; font-weight: 500; margin-bottom: 2px; }
.matrix td span { color: var(--muted); }

.tiles6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .5s var(--ease), background-color .4s; }
.mini:hover { transform: translateY(-4px); background: var(--surface-hover); }
.mini h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.mini p { font-size: 15px; color: var(--muted); }
.mini .proof-tag { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--accent); font-weight: 500; }

.case2 { background: var(--surface); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: transform .5s var(--ease); }
.case2:hover { transform: translateY(-4px); }
.case2 h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.case2 .move { font-size: 16px; line-height: 1.5; }
.case2 .big { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.case2 .big b { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.case2 .big span { font-size: 14px; color: var(--muted); }

.outputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.output { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); }
.output img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.output:hover img { transform: scale(1.06); }
.output span {
  position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--bg); color: var(--fg); border-radius: 12px;
  padding: 8px 10px; font-size: 13px; font-weight: 500; line-height: 1.3;
}

/* Back-to-top button */
.to-top {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--fg); color: var(--bg);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s, color .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top-label {
  position: absolute; right: 62px; white-space: nowrap; background: var(--fg); color: var(--bg); font: 500 13px/1 var(--font-body);
  padding: 8px 12px; border-radius: 999px; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.to-top:hover .to-top-label, .to-top:focus-visible .to-top-label { opacity: 1; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer icon links with hover labels */
.footer-icons { display: flex; gap: 10px; }
@media (min-width: 621px) { .footer-icons { margin-right: 64px; } }
.icon-link {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg);
  display: grid; place-items: center; transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.icon-link svg { width: 20px; height: 20px; }
.icon-link:hover, .icon-link:focus-visible { transform: translateY(-3px) scale(1.08); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.icon-link::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 999px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.icon-link:hover::after, .icon-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Hover zoom on boxes */
.tile, .arc a, .mini, .case2, .stage2, .want, .tool, .fact, .card, .step, .org, .output, .sector, .figure,
.model-side, .model-core, .quote, .panel, .challenge, .form, .visits {
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .4s, color .4s;
}
.tile:hover, .arc a:hover, .mini:hover, .case2:hover, .stage2:hover, .want:hover, .tool:hover, .fact:hover,
.card:hover, .step:hover, .org:hover, .output:hover, .model-side:hover, .model-core:hover {
  transform: scale(1.03); box-shadow: 0 18px 40px -24px rgba(18, 20, 23, .35); position: relative; z-index: 1;
}
.sector:hover, .figure:hover, .challenge:hover, .visits:hover { transform: scale(1.04); }
.quote:hover, .panel:hover, .form:hover { transform: scale(1.012); }

/* Scroll reveal: added by script only to content below the first screen */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pending { opacity: .25; transform: translateY(26px); }

@media (max-width: 1000px) {
  .arc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .stage2 .result { text-align: left; }
  .outputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .arc, .tiles6 { grid-template-columns: minmax(0, 1fr); }
  .arc a { min-height: 0; }
  .stage2 { grid-template-columns: minmax(0, 1fr); }
  .outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .tiles6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Next-page link */
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--fg); padding-top: 30px; }
.next-label { font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.next-title { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 54px); line-height: 1.05; transition: color .3s; }
.next:hover .next-title { color: var(--accent); }
.next .arrow { width: 56px; height: 56px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 28px 36px; font-size: 14px; color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 900px) {
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .hero, .about-grid, .contact-grid, .area { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portrait, .portrait-frame { max-width: 360px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento, .projects, .wants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .list-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .list-row .detail { grid-column: auto; margin-top: 4px; }
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sector:nth-child(4) { border-left: 0; }
  .sector:nth-child(n+4) { border-top: 1px solid var(--line); }
  .model, .duo, .principle { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .chapter { grid-template-columns: 52px minmax(0, 1fr) 48px; }
  .chapter-text { grid-column: 2 / 3; }
  .chapter .arrow { grid-row: 1; grid-column: 3; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-left: 28px; }
}
@media (max-width: 620px) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .sector:nth-child(2n) { border-left: 1px solid var(--line); }
  .sector:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .bento, .projects, .wants { grid-template-columns: minmax(0, 1fr); }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; }
  .page-head { padding-block: 56px 36px; }
  .hero { padding-block: 48px 40px; }
  .section { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Small blue labels on cards: heavier weight for legibility with the logo blue */
.stage-sector, .proof-tag, .mini .proof-tag { font-weight: 600; }

/* Images converted at build time are wrapped in <picture>; keep layout identical */
picture { display: contents; }
