/* Layout: left-aligned editorial columns on a deep night ground. The hero pairs
   the headline with a ringed portrait; sections are a narrow label column beside
   a wide content column, separated by luminous hairlines. Dark by design. */

:root {
  color-scheme: dark;

  --ink: #060918;
  --ink-raised: #0c1230;
  --text: #e9ecf8;
  --muted: #9aa3c7;
  --line: rgba(150, 170, 255, 0.16);
  --glow: #7cc4ff;
  --glow-rgb: 124, 196, 255;
  --aurora-rgb: 199, 125, 255;
  --error: #ff9aa8;

  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --label-col: 200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 88% -5%, rgba(var(--aurora-rgb), 0.16), transparent 65%),
    radial-gradient(800px 700px at -10% 30%, rgba(var(--glow-rgb), 0.09), transparent 60%),
    var(--ink);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 4px;
}
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8em 1.5em;
  border: 1px solid var(--text); border-radius: 999px;
  background: var(--text); color: var(--ink);
  font: 600 0.9375rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}
.btn:hover { box-shadow: 0 0 0 5px rgba(var(--glow-rgb), 0.22), 0 0 32px rgba(var(--glow-rgb), 0.35); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--glow); box-shadow: none; }
.btn--small { padding: 0.65em 1.15em; font-size: 0.875rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 9, 24, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.nav__name { font: 400 1.5rem/1 var(--display); text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 0.9375rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(64px, 11vw, 136px) clamp(56px, 8vw, 104px);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 88px);
}
.hero__text { max-width: 640px; }

.hero__portrait {
  position: relative; width: clamp(240px, 30vw, 400px); aspect-ratio: 1; border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--line),
    0 0 0 clamp(18px, 2.6vw, 34px) rgba(var(--glow-rgb), 0.04),
    0 0 0 calc(clamp(18px, 2.6vw, 34px) + 1px) rgba(var(--glow-rgb), 0.12),
    0 0 0 clamp(40px, 5.6vw, 76px) rgba(var(--aurora-rgb), 0.03),
    0 0 0 calc(clamp(40px, 5.6vw, 76px) + 1px) rgba(var(--aurora-rgb), 0.1),
    0 40px 120px 20px rgba(var(--aurora-rgb), 0.28);
}
.hero__photo {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: 55% 35%;
}
/* Signed across the foot of the portrait, like a signed photograph */
.hero__signature {
  position: absolute; left: -14%; bottom: -17%; width: 128%; max-width: none; height: auto;
  transform: rotate(-4deg);
  filter: drop-shadow(0 0 14px rgba(var(--glow-rgb), 0.55)) drop-shadow(0 2px 10px rgba(6, 9, 24, 0.9));
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--glow);
}
.eyebrow span { margin-inline: 0.5em; color: var(--muted); }

h1 {
  margin-top: 24px;
  font: 400 clamp(2.75rem, 7.2vw, 5.25rem)/1.02 var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--glow); text-shadow: 0 0 44px rgba(var(--glow-rgb), 0.45); }

.hero__lede { margin-top: 28px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.figures {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.figures > div { padding: 28px 24px 36px 0; }
.figures > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figures dt { font: 400 clamp(2rem, 3.6vw, 2.875rem)/1.1 var(--display); font-variant-numeric: lining-nums; }
.figures dd { margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); max-width: 22ch; }

/* Company logos, white marks sized by optical height via --h */
img[src^="logos/"] { display: block; height: var(--h, 24px); width: auto; max-width: 100%; }

.logos {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 32px; align-items: center;
  border-top: 1px solid var(--line); padding-block: 32px 40px;
}
.logos__label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.logos ul { display: flex; flex-wrap: wrap; align-items: center; gap: 28px clamp(28px, 4.5vw, 56px); }
.logos img { opacity: 0.78; transition: opacity 0.2s; }
.logos li:hover img { opacity: 1; }

/* ---------- Sections ---------- */

.section { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 64px; }
.section__grid { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 32px; }
.section__label {
  font: 500 0.8125rem/1.65 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow);
  padding-top: 0.5em;
}

h3 { font: 600 1.0625rem/1.4 var(--body); }

/* About */
.prose { display: grid; gap: 22px; max-width: 680px; }
.prose p { color: var(--muted); }
.prose .prose__lead {
  font: 400 clamp(1.75rem, 3.4vw, 2.5rem)/1.18 var(--display);
  color: var(--text); text-wrap: balance; margin-bottom: 10px;
}

/* Reach */
.reach__head { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 32px; align-items: baseline; }
.reach__head p { font: 400 clamp(1.5rem, 2.8vw, 2rem)/1.2 var(--display); max-width: 640px; text-wrap: balance; }
.reach__map { display: block; width: 100%; aspect-ratio: 360 / 135; margin-top: clamp(32px, 5vw, 56px); }
.reach__cities { margin-top: 20px; font-size: 0.875rem; line-height: 1.8; color: var(--muted); text-align: center; text-wrap: balance; }
.reach__flags {
  display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 32px; align-items: center;
  margin-top: clamp(32px, 5vw, 56px); padding-top: 32px; border-top: 1px solid var(--line);
}
.reach__flags ul { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.reach__flags img {
  display: block; width: 32px; height: 24px; border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line); opacity: 0.72; filter: saturate(0.8);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}
.reach__flags li:hover img { opacity: 1; filter: none; transform: translateY(-2px); }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.outcome__where { font-size: 0.875rem; color: var(--muted); }
.outcome h3 { font: 400 clamp(1.625rem, 2.6vw, 2rem)/1.15 var(--display); margin-top: 6px; }
.dots { margin-top: 20px; display: grid; gap: 14px; }
.dots li { position: relative; padding-left: 22px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.9);
}

/* Career */
.timeline > li {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px;
  padding-block: 36px; border-top: 1px solid var(--line);
}
.timeline > li:first-child { border-top: 0; padding-top: 0; }
.timeline__meta { display: grid; gap: 14px; align-content: start; justify-items: start; padding-top: 4px; }
.timeline__when { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .timeline__context { margin-top: 6px; font-size: 0.9375rem; font-style: italic; }
.timeline details { margin-top: 16px; }
.timeline summary {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  font-size: 0.875rem; font-weight: 600; color: var(--text);
}
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::before {
  content: "+"; display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--glow); font-weight: 400; line-height: 1;
  transition: border-color 0.2s;
}
.timeline summary:hover::before { border-color: var(--glow); }
.timeline details[open] summary::before { content: "\2212"; }
.timeline .dots { margin-top: 18px; max-width: 640px; }

.alongside { padding-top: 36px; border-top: 1px solid var(--line); max-width: 100%; }
.alongside h3 span { margin-left: 0.6em; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.alongside p { margin-top: 8px; color: var(--muted); font-size: 1rem; max-width: 640px; }
.alongside strong { color: var(--text); font-weight: 600; }
#career .section__grid + .section__grid { margin-top: 36px; }
.timeline h3 { font: 400 clamp(1.375rem, 2.2vw, 1.625rem)/1.25 var(--display); }
.timeline h3 span { display: inline-block; margin-left: 0.35em; font: 500 0.9375rem/1 var(--body); color: var(--glow); }
.timeline div p { margin-top: 8px; color: var(--muted); font-size: 1rem; max-width: 640px; }

/* Expertise */
.expertise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.expertise p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Recognition */
.recognition { display: grid; gap: 64px; }
.honours { display: grid; gap: 24px; }
.honours li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
.honours li > span { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; padding-top: 0.1em; }
.honours p { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.aside-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px;
  padding-top: 48px; border-top: 1px solid var(--line);
}
.aside-grid p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.aside-grid p:first-of-type { color: var(--text); }
.aside-grid div:last-child p { color: var(--muted); }

/* Contact */
.section--contact {
  background: radial-gradient(700px 420px at 75% 100%, rgba(var(--aurora-rgb), 0.13), transparent 70%);
}
.contact { max-width: 680px; }
.contact__lead { font: 400 clamp(1.75rem, 3.4vw, 2.5rem)/1.18 var(--display); text-wrap: balance; }
.contact__lead em { color: var(--glow); }

.form { display: grid; gap: 20px; margin-top: 40px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 0.875rem; font-weight: 500; }
.form input, .form textarea {
  width: 100%; padding: 13px 14px;
  background: rgba(12, 18, 48, 0.7); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  font: 400 1rem/1.5 var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--glow); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), 0.16);
}
.form [aria-invalid="true"] { border-color: var(--error); }
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 4px; }
.form__status { font-size: 0.9375rem; color: var(--glow); min-width: 0; }
.form__status.is-error { color: var(--error); }
.form__note { font-size: 0.8125rem; color: var(--muted); }

.contact__alt { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.contact__alt a, .footer a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.contact__alt a:hover, .footer a:hover { text-decoration-color: var(--glow); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 0.875rem; color: var(--muted); }
.footer__mark { display: block; width: min(300px, 70%); height: auto; margin-bottom: 36px; opacity: 0.92; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer__links { display: flex; gap: 24px; }

/* ---------- Load-in ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.08s; }
  .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__text > :nth-child(4) { animation-delay: 0.24s; }
  .hero__photo { animation: fade 1.4s ease-out both; }
  .hero__signature { animation: sign 1.5s cubic-bezier(0.6, 0, 0.2, 1) 0.5s both; }
  @keyframes sign { from { clip-path: inset(-20% 100% -20% -5%); } to { clip-path: inset(-20% -5% -20% -5%); } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .section__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section__label { padding-top: 0; }
  .logos { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #career .section__grid > span:empty { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__portrait { order: -1; width: 148px; margin: 22px 0 20px 22px; }
  .reach__head, .reach__flags { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures > div { padding: 24px 16px 24px 0; }
  .figures > div + div { padding-left: 0; border-left: 0; }
  .figures > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .figures > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .outcomes, .expertise, .aside-grid, .form__row { grid-template-columns: minmax(0, 1fr); }
  .outcomes { gap: 44px; }
  .timeline > li { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .timeline__meta { grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: stretch; }
  .honours li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .honours li > span { padding-top: 0; }
  .timeline h3 span { display: block; margin: 6px 0 0; }
}

.timeline .timeline__meta p { margin-top: 0; font-size: 0.875rem; }
