/* Lezan site styles. Change the colour variables in :root to restyle every page. */

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 100 700;
  src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 100 700;
  src: url("fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}


:root {
  --abyss: #061628;     /* page background */
  --deep: #0a2140;      /* alternate sections */
  --marine: #10305a;    /* cards, fields */
  --line: rgba(141, 196, 235, 0.18);
  --foam: #eef4f9;      /* main text */
  --mist: #a3b9cf;      /* secondary text */
  --current: #5cc0f0;   /* links, highlights, the bridge */
  --coral: #e8558a;     /* focus ring only */

  --serif: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.site-header { view-transition-name: site-header; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--abyss); color: var(--foam);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }

a { color: var(--current); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
a:hover { background-size: 0 1px; background-position: 100% 100%; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--foam); color: var(--abyss); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: transparent over the hero, frosted once you scroll */
.site-header { position: sticky; top: 0; z-index: 20; transition: background-color .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header.scrolled { background: rgba(6, 22, 40, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.04em; color: var(--foam); background: none; line-height: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 3vw, 2.25rem); flex-wrap: wrap; }
.site-nav a { color: var(--foam); font-size: 1rem; font-weight: 500; background-size: 0 1px; background-position: 100% 100%; padding: .2rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; background-position: 0 100%; }
.site-nav a[aria-current="page"] { color: var(--current); }

/* Type */
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 15ch; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5; color: var(--foam); max-width: 34rem; }
.muted { color: var(--mist); }

/* Hero */
.hero { position: relative; margin-top: -5.5rem; padding: calc(5.5rem + clamp(3rem, 9vw, 7rem)) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; isolation: isolate; }
.hero-bg, .page-bg { display: none; }
.hero-bg { opacity: .55; transform-origin: 70% 40%; }
.hero::after, .page-head::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--abyss) 18%, rgba(6,22,40,.72) 55%, rgba(6,22,40,.25)), linear-gradient(0deg, var(--abyss) 2%, transparent 40%); }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.hero h1 { max-width: none; font-size: clamp(2.1rem, 4.8vw, 4.6rem); line-height: 1.08; }
.hero .lead { margin-top: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2.25rem; }
.hero-portrait { position: relative; max-width: 24rem; justify-self: end; width: 100%; }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 42%, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 42%, #000 62%, transparent 100%); }
.hero-portrait::before { content: ""; position: absolute; inset: 8% 4% 2%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(92,192,240,.28), transparent); filter: blur(10px); }
@media (max-width: 55.99rem) { .hero-portrait { justify-self: start; max-width: 13rem; order: -1; } }
@media (max-width: 55.99rem) {
  .hero { padding-top: calc(5.5rem + 1.25rem); }
  .hero-grid { gap: 1.25rem; }
  .hero-portrait img { aspect-ratio: 1 / 1; object-position: 50% 22%; }
}
.path a { position: relative; }
.path a::after { content: ""; position: absolute; inset: -.6rem -.4rem; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: .6rem; background: var(--foam); color: var(--abyss); font: inherit; font-weight: 600; font-size: 1.0625rem;
  padding: .95rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer; transition: background-color .25s, transform .25s var(--ease), box-shadow .25s; }
.button:hover { background: var(--current); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(92,192,240,.6); }
.button.ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1px rgba(238,244,249,.4); }
.button.ghost:hover { background: rgba(92,192,240,.12); box-shadow: inset 0 0 0 1px var(--current); }

/* Bridge */
.bridge-band { padding: clamp(1rem, 3vw, 2rem) 0 0; }
.bridge { width: 100%; height: auto; overflow: visible; }
.bridge .cable { fill: none; stroke: var(--current); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(92,192,240,.55)); }
.bridge .towers line { stroke: var(--foam); stroke-width: 5; stroke-linecap: square; }
.bridge .deck { stroke: var(--foam); stroke-width: 3; }
.bridge .hangers line { stroke: var(--current); stroke-width: 1; opacity: .45; }
.bridge-ends { display: flex; justify-content: space-between; gap: 2rem; margin-top: 1rem; font-size: .9375rem; line-height: 1.4; color: var(--mist); }
.bridge-ends span { max-width: 48%; }
@media (min-width: 40.0625rem) { .bridge-ends span { max-width: none; white-space: nowrap; } }
@media (max-width: 40rem) { .bridge-ends { flex-direction: column; gap: .25rem; } .bridge-ends span { max-width: none; } }
.bridge-ends span:last-child { text-align: right; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0 0; }
.section.tinted { background: linear-gradient(180deg, var(--abyss), var(--deep) 30%, var(--deep) 70%, var(--abyss)); padding-bottom: clamp(4.5rem, 9vw, 7.5rem); margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 3rem; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split > h2 { padding-top: .05em; } }
.split > div > p:last-child { margin-bottom: 0; }
.intro { margin-top: 1rem; }

/* Two ways */
.paths { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); margin-top: 2.75rem; }
@media (min-width: 52rem) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.path { position: relative; background: linear-gradient(160deg, rgba(16,48,90,.85), rgba(10,33,64,.6)); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; overflow: hidden; }
.path::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(92,192,240,.18), transparent); transition: transform .6s var(--ease); pointer-events: none; }
.path:hover { transform: translateY(-4px); border-color: rgba(92,192,240,.5); box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); }
.path:hover::after { transform: translate(-12%, -12%) scale(1.15); }
.path h3 { font-family: var(--sans); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: .9rem; }
.path p { color: var(--mist); }

/* Image band with parallax */
.band { position: relative; overflow: hidden; margin-top: clamp(4.5rem, 9vw, 7.5rem); min-height: clamp(26rem, 60vh, 38rem); display: flex; align-items: center; isolation: isolate; }
.band-bg { position: absolute; inset: -15% 0; z-index: -2; background: none; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,22,40,.92) 15%, rgba(6,22,40,.45) 60%, rgba(6,22,40,.1)), linear-gradient(180deg, var(--abyss), transparent 22%, transparent 78%, var(--abyss)); }
.band h2 { max-width: 14ch; }
.band p { margin-top: 1.25rem; color: var(--foam); }

/* Services */
.services { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); margin-top: 2.75rem; }
@media (min-width: 52rem) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service { border-top: 1px solid var(--current); padding-top: 1.5rem; }
.service h3 { font-family: var(--sans); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: .75rem; }
.service p { margin: 0; color: var(--mist); }

/* Call to action */
.cta { position: relative; padding: clamp(6rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem); text-align: left; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 0; width: min(90rem, 140%); aspect-ratio: 2 / 1; transform: translate(-50%, 0); background: radial-gradient(closest-side, rgba(92,192,240,.13), transparent); pointer-events: none; }
.cta h2 { max-width: 20ch; font-size: clamp(2.1rem, 4.4vw, 3.75rem); position: relative; letter-spacing: -0.03em; }
.cta p { margin-top: 1.5rem; position: relative; }
.cta-row { display: flex; align-items: center; gap: 1rem 1.75rem; flex-wrap: wrap; margin-top: 2.25rem; position: relative; }

/* Inner page heads */
.page-head { position: relative; margin-top: -5.5rem; padding: calc(5.5rem + clamp(3rem, 8vw, 6rem)) 0 0; overflow: hidden; isolation: isolate; }
.page-bg { opacity: .35; }
.page-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); max-width: 20ch; }
.page-head .lead { margin-top: 1.5rem; }

.about-grid { display: grid; gap: 2.5rem 4rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 18px; border: 1px solid var(--line); }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 1rem 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts .where { display: block; color: var(--mist); font-size: .9375rem; }

.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 1px solid var(--current); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--sans); font-weight: 700; font-size: 2.5rem; line-height: 1; margin-bottom: .75rem; color: var(--current); }
.steps p { margin: 0; }

.formats { list-style: none; margin: 0; padding: 0; }
.formats li { padding: 1rem 0; border-top: 1px solid var(--line); }
.formats li:last-child { border-bottom: 1px solid var(--line); }
.formats strong { font-weight: 600; }

/* Stories */
.story-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.story-list li { border-top: 1px solid var(--line); }
.story-list li:last-child { border-bottom: 1px solid var(--line); }
.story-list a { position: relative; display: grid; gap: .4rem 2.5rem; padding: 1.75rem 1rem 1.75rem 0; color: var(--foam); background: none; transition: padding .4s var(--ease); }
@media (min-width: 52rem) { .story-list a { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.story-list a::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: 12px; background: rgba(92,192,240,.07); opacity: 0; transition: opacity .3s; }
.story-list a:hover { padding-left: 1rem; }
.story-list a:hover::before { opacity: 1; }
.story-list strong { font-family: var(--sans); font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.story-list span { color: var(--mist); }
.story-list li { position: relative; z-index: 0; }

/* Timeline */
.timeline { list-style: none; margin: 2.75rem 0 0; padding: 0; }
.role { display: grid; gap: .5rem 2.5rem; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); padding: 1.75rem 0 2.75rem; }
@media (min-width: 52rem) { .role { grid-template-columns: 11rem minmax(0, 1fr); } }
.role .years { font-family: var(--sans); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: var(--current); line-height: 1.3; }
.role h3 { margin-bottom: .3rem; }
.role .org { color: var(--mist); margin: 0 0 1rem; }
.role ul { margin: 0; padding-left: 1.1rem; max-width: 40rem; }
.role li { margin-bottom: .6rem; }
.role li::marker { color: var(--current); }
.role .titles { margin: 0 0 1rem; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; max-width: 46rem; }
.tags li { border: 1px solid var(--line); background: rgba(16,48,90,.5); border-radius: 999px; padding: .45rem 1rem; font-size: 1rem; transition: border-color .3s, background-color .3s; }
.tags li:hover { border-color: var(--current); background: rgba(92,192,240,.12); }

/* Story pages */
.article { max-width: 46rem; }
.article .back { display: inline-block; margin-bottom: 2rem; font-weight: 500; }
.article h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 22ch; }
.article .standfirst { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; margin: 1.5rem 0 .75rem; }
.article .meta { color: var(--mist); font-size: .9375rem; margin-bottom: 0; }
.article .role-line { margin: 1.25rem 0 0; padding: .85rem 1.1rem; border-left: 2px solid var(--current); background: rgba(92,192,240,.07); border-radius: 0 10px 10px 0; font-size: .975rem; line-height: 1.55; max-width: 44rem; }
.article .role-line b { display: block; color: var(--current); font-size: .8125rem; font-weight: 600; margin-bottom: .2rem; }
.article-body { max-width: 46rem; }
.article-body h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 2.75rem 0 .85rem; }
.article-body ul { padding-left: 1.2rem; max-width: var(--measure); }
.article-body li { margin-bottom: .5rem; }
.article-body li::marker { color: var(--current); }
.read-more { margin-top: 2.5rem; }
.figures { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; margin: 0 0 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures div { display: grid; }
.figures b { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2.4rem, 4.5vw, 3.25rem); line-height: 1.05; color: var(--current); font-variant-numeric: tabular-nums; }
.figures span { color: var(--mist); font-size: .9375rem; }

/* Contact form */
.contact-grid { display: grid; gap: 3rem 4rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
form { display: grid; gap: 1.25rem; background: linear-gradient(160deg, rgba(16,48,90,.7), rgba(10,33,64,.5)); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); }
label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .45rem; }
label .opt { font-weight: 400; color: var(--mist); }
input, textarea, select { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--foam); background: rgba(6,22,40,.6); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem; transition: border-color .25s, box-shadow .25s; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; }
select option { background: var(--deep); color: var(--foam); }
textarea { min-height: 11rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 3px rgba(92,192,240,.25); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 500; }
.form-status.error { color: #ff9db8; }

/* Prose */
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 2.75rem 0 .85rem; }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); margin: 0 0 1em; }
.prose li { margin-bottom: .45rem; }

/* Footer */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--abyss), #041120); }
.site-footer .wrap { padding-top: 2.25rem; padding-bottom: 2.75rem; display: grid; gap: 1.1rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: baseline; }
.footer-row a:not(.wordmark) { color: var(--foam); font-size: 1rem; background-size: 0 1px; }
.footer-row a:not(.wordmark):hover { background-size: 100% 1px; background-position: 0 100%; }
.disclaimer { font-size: .875rem; color: var(--mist); max-width: 46rem; margin: 0; }

/* Motion. Everything below switches off for people who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-bg { animation: drift 22s ease-out both; }
  .js .hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
  .js .hero h1 .line > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
  .js .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
  .js .hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
  .js .hero .lead, .js .hero-cta { opacity: 0; animation: fade-up .9s var(--ease) .5s forwards; }
  .js .hero-cta { animation-delay: .65s; }
  .js .hero-portrait img { opacity: 0; animation: portrait-in 1.4s var(--ease) .3s forwards; }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }

  .js .bridge .cable { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .bridge.in .cable { animation: draw 2s cubic-bezier(.6,.05,.25,1) forwards; }
  .js .bridge .hangers { opacity: 0; }
  .js .bridge.in .hangers { animation: appear .8s ease-out 1.6s forwards; }
}
@keyframes drift { from { transform: scale(1.12) translateX(-2%); } to { transform: scale(1); } }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes portrait-in { from { opacity: 0; transform: scale(1.06); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (max-width: 34rem) {
  .bridge-ends { font-size: .8125rem; }
  .wordmark { font-size: 1.5rem; }
  .site-nav ul { gap: .9rem; }
  .site-nav a { font-size: .9375rem; }
}

/* Staggered reveals for items that sit side by side */
.paths > :nth-child(2), .services > :nth-child(2), .steps > :nth-child(2) { --d: .12s; }
.services > :nth-child(3), .steps > :nth-child(3) { --d: .24s; }
.story-list > :nth-child(2) { --d: .08s; }
.story-list > :nth-child(3) { --d: .16s; }
.story-list > :nth-child(4) { --d: .24s; }

.band > .wrap { width: 100%; }
@media (min-width: 52rem) { .band-bg { background-size: 135% auto; background-position: 0% 45%; } }
.portrait, .hero-portrait img { height: auto; }
.portrait-wrap { max-width: 12.5rem; justify-self: end; align-self: center; }
@media (max-width: 51.99rem) { .band::after { background: linear-gradient(180deg, var(--abyss), rgba(6,22,40,.72) 25%, rgba(6,22,40,.72) 75%, var(--abyss)); } }
.page-head + .section { padding-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Language switcher */
.lang-switch { display: flex; gap: .15rem; margin-left: clamp(.5rem, 2vw, 1.25rem); padding-left: clamp(.5rem, 2vw, 1.25rem); border-left: 1px solid var(--line); }
.lang-switch a { color: var(--mist); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; padding: .25rem .4rem; border-radius: 6px; background: none; }
.lang-switch a:hover { color: var(--foam); background: rgba(92,192,240,.1); }
.lang-switch a[aria-current] { color: var(--abyss); background: var(--foam); }
.site-header .wrap { flex-wrap: nowrap; }
.site-nav { margin-left: auto; }
@media (max-width: 47.99rem) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .lang-switch { margin-left: auto; padding-left: 0; border-left: 0; }
}
@media (max-width: 34rem) { .site-nav ul { gap: .75rem; } .site-nav a { font-size: .875rem; } }

/* Credentials strip in the hero */
.creds { list-style: none; margin: 2.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; max-width: 36rem; }
.creds li { display: grid; gap: .15rem; align-content: start; }
.creds b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; color: var(--foam); }
.creds span { font-size: .8125rem; line-height: 1.35; color: var(--mist); }
@media (prefers-reduced-motion: no-preference) {
  .js .creds { opacity: 0; animation: fade-up .9s var(--ease) .8s forwards; }
}

/* Animated line field behind hero and page headers */
canvas.flow { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.hero::before, .page-head::before { content: ""; position: absolute; inset: 0; z-index: -3;
  background: radial-gradient(60% 70% at 80% 30%, rgba(16,48,90,.9), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(10,33,64,.8), transparent 70%), var(--abyss); }
canvas.flow-soft { opacity: .7; }

/* Boat band: tone the photo into the site's blues so it sits with the rest */
.band-bg { filter: saturate(.55) brightness(.85) contrast(1.05); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #0b2a55; mix-blend-mode: color; pointer-events: none; }

/* Bridge: energy moving across in both directions */
.bridge .pulse { fill: none; stroke: #bfe8ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.06 0.94; stroke-dashoffset: 0.07; opacity: 0;
  filter: drop-shadow(0 0 6px rgba(92,192,240,.95)) drop-shadow(0 0 14px rgba(92,192,240,.6)); }
.bridge .pulse.p3, .bridge .pulse.p4 { stroke-width: 3; stroke-dasharray: 0.045 0.955; }
.bridge .pulse.back { stroke: #ffc2d8; filter: drop-shadow(0 0 6px rgba(232,85,138,.9)) drop-shadow(0 0 12px rgba(232,85,138,.5)); }
.bridge .nodes .dot { fill: var(--current); filter: drop-shadow(0 0 6px rgba(92,192,240,.9)); }
.bridge .nodes .ring { fill: none; stroke: var(--current); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .js .bridge.in .pulse { opacity: 1; animation: flow-fwd 4.8s cubic-bezier(.45,.05,.55,.95) infinite; }
  .js .bridge.in .pulse.back { animation-name: flow-back; }
  .js .bridge.in .p1 { animation-delay: 2.2s; }
  .js .bridge.in .p2 { animation-delay: 4.6s; }
  .js .bridge.in .p3 { animation-delay: 3.4s; animation-duration: 4.2s; }
  .js .bridge.in .p4 { animation-delay: 5.8s; animation-duration: 4.2s; }
  .js .bridge.in .hangers line { animation: hanger-glow 4.8s ease-in-out infinite; animation-delay: calc(2.2s + var(--i) * 4.8s * .9); }
  .js .bridge.in .nodes .ring { animation: ping 2.4s ease-out 2s infinite; }
  .js .bridge.in .nodes .r2 { animation-delay: 3.2s; }
}
@keyframes flow-fwd { 0% { stroke-dashoffset: 0.07; } 100% { stroke-dashoffset: -1; } }
@keyframes flow-back { 0% { stroke-dashoffset: -1; } 100% { stroke-dashoffset: 0.07; } }
@keyframes hanger-glow { 0%, 100% { opacity: .45; } 8% { opacity: 1; stroke: #bfe8ff; } 20% { opacity: .45; } }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

/* Globe band */
.globe-band { min-height: 0; padding: clamp(2rem, 5vw, 3rem) 0; background: radial-gradient(55% 70% at 75% 50%, rgba(16,48,90,.55), transparent 70%); }
.globe-band::after, .globe-band::before { display: none; }
.globe-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; align-items: center; }
@media (min-width: 52rem) { .globe-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
canvas.globe { width: 100%; max-width: 32rem; aspect-ratio: 1; justify-self: center; display: block; }
@media (max-width: 51.99rem) { canvas.globe { max-width: 22rem; order: -1; } }
.hero h1 br { display: none; }

.page-head + .section .story-list,
.page-head + .section .prose > h2:first-child,
.page-head + .section .article-body > h2:first-child,
.page-head + .section .article-body > .figures:first-child { margin-top: 0; }

/* Thin animated divider under each page title */
.page-head > .wrap::after {
  content: ""; display: block; height: 1px; margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  background:
    linear-gradient(90deg, transparent, rgba(191,232,255,.95), transparent) -30% 0 / 22% 100% no-repeat,
    linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
  box-shadow: 0 0 0 0 transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .js .page-head > .wrap::after { animation: divider-flow 6s cubic-bezier(.45,.05,.55,.95) 1s infinite; }
}
@keyframes divider-flow {
  0% { background-position: -30% 0, 0 0; }
  70%, 100% { background-position: 130% 0, 0 0; }
}

/* Wider intro text now that the Experience page has no photo */
.about-copy p { max-width: none; }
.about-copy p:last-child { margin-bottom: 0; }
.about + .section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.page-head .lead { max-width: 46rem; }

/* AI band: animation on the left, text on the right */
.ai-band { padding-top: clamp(3rem, 6vw, 4.5rem); background: radial-gradient(50% 70% at 25% 50%, rgba(16,48,90,.5), transparent 70%); }
@media (min-width: 52rem) { .ai-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
canvas.ai-flow { width: 100%; aspect-ratio: 16 / 10; display: block; }
@media (max-width: 51.99rem) { canvas.ai-flow { order: 0; } .ai-grid > div { order: -1; } }

/* Key numbers under "What I bring" */
.stats { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.stats li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.stats b { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--current); white-space: nowrap; }
.stats li:nth-child(4) b { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.stats span { color: var(--mist); font-size: .9375rem; line-height: 1.35; }
@media (max-width: 51.99rem) { .stats { margin-bottom: 1.5rem; } }

/* Line the home photo up with the headline and intro, not the whole column */
@media (min-width: 56rem) { .hero-portrait { align-self: start; margin-top: -2.25rem; } }
