/* ==========================================================================
   rehobotbekele.com
   Design tokens and layout transcribed from the Claude Design prototype
   "Bio Portfolio - OrbitFlow Founder.dc.html". Values are kept literal so the
   rendered page matches the mockup; every `style-hover` attribute in the
   prototype became a real :hover rule here.
   ========================================================================== */

/* Outfit (SIL Open Font License 1.1), self-hosted rather than pulled from
   Google Fonts: one less third party, no request to Google from an EU visitor,
   and the font arrives from the same CDN as everything else. Variable file —
   one download covers weights 300–700. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Light page, navy bands. The page alternates bg / bg-alt; the hero, the
     deep band and the footer switch to the dark set below.
     --white is "strongest text", not literally white: navy on the light page,
     white on the dark bands. */
  --bg:          #F5F7FA;
  --bg-alt:      #FFFFFF;
  --bg-deep:     #0F1E33;
  --surface:     #FFFFFF;
  --line:        #DCE2EA;

  /* Accent — engineering blue */
  --accent:      #1F5FBF;
  --accent-hi:   #174A96;
  --accent-fill: #9CC3F0;   /* solid hexagon behind the portraits */
  --accent-soft: rgba(31, 95, 191, 0.4);
  --accent-faint:rgba(31, 95, 191, 0.35);
  --on-accent:   #FFFFFF;

  /* Text */
  --white:       #0F1E33;
  --ink:         #1D2B40;
  --muted:       #45556B;
  --muted-2:     #4F5F75;
  --muted-3:     #5F6D82;

  --shell:       1240px;

  /* Vertical breathing room in each section. Fixed at 88px top and bottom it
     spent a quarter of a 768px-tall laptop on padding, which pushed section
     bottoms below the fold when you jumped to them from the nav. */
  --section-y:   clamp(56px, 8vh, 88px);
  /* Side margin. Fixed at 32px it collapsed to a hairline between 1024 and
     1366px — the laptop range — where the 1240px shell fills the screen and
     this padding is the only margin left. Scaling with the viewport holds the
     content near 90% of the width there; above ~1400px the shell's own
     centring takes over. */
  --gutter:      clamp(22px, 5vw, 64px);

  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --diamond: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* The dark bands: same token names, dark values, so every component inside
   them works unchanged. */
.hero, .section--deep, .footer {
  --line:        #2B3C55;
  --accent:      #7FB6FF;
  --accent-hi:   #A9CEFF;
  --accent-soft: rgba(127, 182, 255, 0.45);
  --accent-faint:rgba(127, 182, 255, 0.4);
  --on-accent:   #0F1E33;
  --white:       #FFFFFF;
  --ink:         #EEF2F7;
  --muted:       #C9D3E0;
  --muted-2:     #BAC5D3;
  --muted-3:     #9AA8BA;
}

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

html {
  /* The header is sticky; without this, anchor jumps land under it. 76px is
     the header's 67px plus a little air — more than that just pushes the
     section's own top padding further down the screen. */
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

.noscript {
  max-width: 640px; margin: 0 auto; padding: 88px var(--gutter);
  font-size: 17px; line-height: 1.7; color: var(--muted);
}
.noscript h1 { color: var(--white); font-weight: 600; }

/* --- shared layout ------------------------------------------------------ */

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

.section { border-top: 1px solid var(--line); }
.section--bg     { background: var(--bg); }
.section--alt    { background: var(--bg-alt); }
.section--deep   { background: var(--bg-deep); }
.section--capped { border-bottom: 1px solid var(--line); }
.section--flush  { border-top: none; }

.stack     { display: flex; flex-direction: column; }
.stack-44  { gap: 44px; }
.stack-40  { gap: 40px; }
.stack-34  { gap: 34px; }
.stack-26  { gap: 26px; }
.stack-22  { gap: 22px; }
.stack-20  { gap: 20px; }
.stack-18  { gap: 18px; }
.stack-14  { gap: 14px; }
.stack-12  { gap: 12px; }
.stack-10  { gap: 10px; }
.stack-8   { gap: 8px; }
.stack-6   { gap: 6px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--white);
  text-wrap: pretty;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.chip {
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 7px 14px;
}
.chip--sm { font-size: 12px; padding: 6px 12px; }
.chip--award {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pill buttons — the prototype's two hero/contact CTAs */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); font-size: 17px; padding: 14px 32px; }
.btn--primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn--ghost   { border: 2px solid var(--accent); color: var(--accent); font-size: 17px; padding: 12px 30px; }
.btn--ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn--sm.btn--primary { font-size: 16px; padding: 13px 30px; }
.btn--sm.btn--ghost   { font-size: 16px; padding: 11px 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* A link that carries a faint rule under it and lights up on hover */
.rule-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-faint);
  transition: border-color .18s ease;
}
.rule-link:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* --- header ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand__mark {
  position: relative;
  width: 30px; height: 30px; flex: none;
  background: var(--accent);
  clip-path: var(--hex);
}
/* The butterfly inside the hexagon, drawn as a mask so it takes the
   on-accent colour from whichever band the header sits on. */
.brand__mark::after {
  content: '';
  position: absolute; inset: 27% 18%;
  background: var(--on-accent);
  -webkit-mask: url('/assets/img/butterfly.svg') center / contain no-repeat;
          mask: url('/assets/img/butterfly.svg') center / contain no-repeat;
}
.brand__name {
  font-size: clamp(15px, 4.2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--white);
  white-space: nowrap;
}
.brand__sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-size: 17px;
  font-weight: 500;
}
.nav a { color: var(--white); }
.nav a:hover,
.nav a[aria-current="true"] { color: var(--accent); }

/* --- hero --------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--bg-deep); }
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.9;
  display: block;
  pointer-events: none;
}
.hero__wash {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(15,30,51,0.95) 0%,
    rgba(15,30,51,0.80) 40%,
    rgba(15,30,51,0.35) 75%,
    rgba(15,30,51,0.20) 100%);
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, rgba(15,30,51,0) 0%, #0F1E33 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 80px var(--gutter) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 56px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__name {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white);
  text-wrap: balance;
}
.hero__role {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
}
.hero__role em { font-style: normal; color: var(--accent); }
/* Sits directly under the role, so it is pulled up out of the 22px hero__copy
   gap: the two lines read as one block rather than as separate claims. */
.hero__disciplines {
  margin-top: -14px;
  font-size: 17px; font-weight: 500; line-height: 1.5;
  color: var(--muted);
}
.hero__disciplines .dot { color: var(--line); padding: 0 8px; }
.hero__product { font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 40ch; }
.hero__bio {
  margin: 0;
  font-size: 18px; line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero__links {
  display: flex; flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 4px;
  font-size: 16px;
}
.hero .btn-row { padding-top: 8px; }

/* --- hexagon portrait (hero + about) ------------------------------------ */

.portrait { min-width: 0; display: flex; justify-content: center; }
.portrait__frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1.30;
}
.portrait__frame--about { aspect-ratio: 1 / 1.26; }
.portrait__glow {
  position: absolute; left: 2%; right: 2%; bottom: 2%; height: 74%;
  background: var(--accent);
  filter: blur(30px);
  opacity: 0.42;
  clip-path: var(--hex);
}
.portrait__hex {
  position: absolute; left: 0; right: 0; bottom: 0; height: 76%;
  background: var(--accent-fill);
  clip-path: var(--hex);
}
.portrait__img {
  position: absolute; bottom: 0;
  left: -8%; width: 116%;
  /* The global `img { max-width: 100% }` would clamp this back to the frame,
     shrinking the figure and throwing it 37px left of the hexagon's centre. */
  max-width: none;
  display: block;
  /* Clips the body along the hexagon's lower chevron so head and shoulders rise
     above it. The V must land on the hexagon's bottom point, which sits at 50%
     of the FRAME — so its position in IMAGE coordinates depends on how the image
     is offset: here the image spans -8%..108% of the frame, so 50% of the frame
     is 50% of the image. */
  clip-path: polygon(-60% -20%, 160% -20%, 160% 78%, 50% 100%, -60% 78%);
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.45));
}
/* Spans 2%..98% of the frame: centred, so the frame's midpoint is 50% of the
   image here too. */
.portrait__frame--about .portrait__img {
  left: 2%; width: 96%;
  clip-path: polygon(-60% -20%, 160% -20%, 160% 78%, 50% 100%, -60% 78%);
}

/* Hero only: a smaller hexagon, a little wider than the figure, with its top
   point at shoulder height so head and shoulders rise above it.
   Measured on portrait.webp: shoulders at ~54% of the image height; the
   crossed arms, the widest point, span 58% of the image width and are centred
   near 45.5%, the head at 48.4%. Centring on 46.8% splits the difference, so
   the image spans -4.3%..111.7% of the frame. The hexagon is 80% wide and
   60.7% tall (the same 1:0.99 box as the full-size one), its top at 39% of the
   frame, the shoulder line.
   The clip's V follows the hexagon's lower edges: vertex at 46.8% of the image
   (the frame's centre), each side rising 0.493 px per px, which reaches
   y = 62.8% at x = 160% and 64.9% at x = -60%. */
.hero .portrait__hex  { left: 10%; right: 10%; height: 60.7%; }
.hero .portrait__glow { left: 12%; right: 12%; bottom: 2%; height: 58%; }
.hero .portrait__img {
  left: -4.3%;
  clip-path: polygon(-60% -20%, 160% -20%, 160% 62.8%, 46.8% 100%, -60% 64.9%);
}

/* --- the short version -------------------------------------------------- */

.short__inner { padding: 56px var(--gutter); }
.short__headline {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  max-width: 30ch;
  text-wrap: pretty;
}
.short__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 26px 40px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.short__label { font-size: 15px; font-weight: 600; color: var(--accent); }
.short__body  { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* --- problem ------------------------------------------------------------ */

.problem__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
}
.problem__h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  text-wrap: pretty;
}
.problem__lede { margin: 0; font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.bullets { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.bullet {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.bullet__mark {
  width: 10px; height: 10px; margin-top: 8px;
  background: var(--accent);
  clip-path: var(--diamond);
}
.bullet__text { font-size: 16px; line-height: 1.65; color: var(--muted); }
.bullet__text--strong { color: var(--white); font-weight: 500; }
.answer { padding: 36px; gap: 18px; align-self: start; }
.answer__name { font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--white); }
.answer__body { margin: 0; font-size: 17px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.answer .chip-row { padding-top: 6px; }
.answer__note { font-size: 15px; line-height: 1.6; color: var(--muted-3); }

/* --- about -------------------------------------------------------------- */

.about__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 56px;
  align-items: center;
}
.about__body { margin: 0; font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.about .chip-row { gap: 10px; padding-top: 4px; }
/* Always one row of four: auto-fit with a 140px minimum wrapped the fourth
   stat onto its own line whenever the text column was narrow. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.stat__value { font-size: 30px; font-weight: 600; color: var(--white); }
.stat__value--accent { color: var(--accent); }
.stat__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
}

/* --- team --------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}
.person { padding: 32px; gap: 12px; }
.person__name { font-size: 21px; font-weight: 600; color: var(--white); }
.person__role { font-size: 15px; color: var(--accent); }
.person__body { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* The proof band has to be readable in one click from the nav, so it must fit
   a 768px-tall laptop below the sticky header. The portrait is what drives its
   height, so it runs a little smaller here than in the hero; that also brings
   the two columns close enough in height that top-aligning them costs nothing.
   Top alignment also means the text grows downwards when it is edited, instead
   of re-centring and pushing the heading further down the screen. */
.proof__inner { align-items: start; }
/* 410px inside a wider grid column, so the frame has slack. Without the margin
   override it centres in its column and starts 59px right of where every other
   section begins, which reads as the section having drifted. Pin it left; the
   --about portrait is inset 2% rather than overflowing, so the photo itself
   then lands within a few pixels of the content edge. */
.proof__inner .portrait__frame { max-width: 410px; margin-left: 0; margin-right: auto; }

/* Proof band (home): two names side by side, then the evidence list. */
.proof__people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px 32px;
  padding: 2px 0;
}

.validation { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.validation__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px 40px;
}
/* In the home page's proof column the checks read as a list, not a grid. */
.validation__grid--single { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; }
.check__mark { font-size: 16px; color: var(--accent); line-height: 1.6; }
.check__text { font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* --- what I bring ------------------------------------------------------- */

.bring__card { padding: 30px; gap: 12px; }
.bring__title { font-size: 19px; font-weight: 600; color: var(--white); }
.bring__body { font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* /cv portfolio: a card per project, with an optional picture on top */
.project { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); border-bottom: 1px solid var(--line); }
/* Drawings (schematics, plots) are shown whole on white rather than cropped */
.project__img--contain { object-fit: contain; background: #FFFFFF; }
.project__main { display: flex; flex-direction: column; gap: 10px; padding: 28px; flex: 1; }
.project__context { font-size: 13px; letter-spacing: 0.04em; color: var(--accent); }
.project__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 6px; font-size: 15px; }

/* --- experience timeline ------------------------------------------------ */

.timeline { display: flex; flex-direction: column; gap: 0; }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 12px 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry__date { font-size: 13px; color: var(--accent); }
.entry__main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.entry__role { font-size: 21px; font-weight: 600; color: var(--white); }
.entry__org  { font-size: 15px; color: var(--muted-3); }
.entry__body { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 70ch; text-wrap: pretty; }
.entry__note { font-size: 15px; line-height: 1.7; color: var(--muted-3); max-width: 70ch; text-wrap: pretty; }
.entry__list {
  margin: 6px 0 0;
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 16px; line-height: 1.7; color: var(--muted);
  max-width: 70ch; text-wrap: pretty;
}
.entry__list strong { color: var(--white); font-weight: 600; }
.callout {
  margin-top: 6px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  font-size: 16px; line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}
.callout--bright { color: var(--ink); }

.skills { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
/* /cv languages: name over level, in a row that wraps on a phone */
.languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px 32px;
}
.language { display: flex; flex-direction: column; gap: 4px; }
.skill { padding: 28px; gap: 12px; }
.skill__title { font-size: 19px; font-weight: 600; color: var(--white); }
.skill__body { font-size: 15px; line-height: 1.7; color: var(--muted-2); }
.skill .chip-row { padding-top: 6px; }

/* --- conferences & events ----------------------------------------------- */

.events {
  display: grid;
  /* Prototype hard-coded two columns; auto-fit keeps the 2-up desktop look
     and collapses cleanly on phones. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 0 48px;
}
.event {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px 48px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.event__copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.event__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.event__org { font-size: 17px; font-weight: 600; color: var(--ink); }
.event__where { font-size: 13px; color: var(--accent); }
.event__title { font-size: 19px; font-weight: 600; color: var(--white); }
a.event__title:hover { color: var(--accent); }
.event__body { font-size: 16px; line-height: 1.7; color: var(--muted-2); max-width: 70ch; text-wrap: pretty; }
/* Links inside running text need more than colour to stand out (WCAG 1.4.1) */
.event__body a { text-decoration: underline; text-underline-offset: 3px; }
.event__more {
  font-size: 15px; font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  align-self: flex-start;
  transition: border-color .18s ease;
}
.event__more:hover { border-bottom-color: var(--accent); color: var(--accent); }
.event__figure { width: 100%; max-width: 340px; aspect-ratio: 4 / 3; min-width: 200px; margin: 0; }
.event__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--surface);
}

/* --- publications ------------------------------------------------------- */

.pubs__lede { margin: 0; font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.pubs { display: flex; flex-direction: column; }
.pub {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 3fr) minmax(0, 1.2fr);
  gap: 10px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.pub__date { font-size: 13px; color: var(--accent); }
.pub__main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pub__title { font-size: 17px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.pub__impact {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  font-size: 15px; line-height: 1.65;
  color: var(--muted-2);
  text-wrap: pretty;
}
.pub__meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pub__venue { font-size: 12px; line-height: 1.5; color: var(--muted-3); }
.pub__doi {
  font-size: 12px;
  color: var(--muted-3);
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
  word-break: break-word;
  transition: color .18s ease, border-color .18s ease;
}
.pub__doi:hover { color: var(--accent); border-bottom-color: var(--accent); }
.pubs__footnote { font-size: 14px; color: var(--muted-3); }

/* --- contact ------------------------------------------------------------ */

.contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 44px;
  align-items: end;
}
.want__title { font-size: 21px; font-weight: 600; color: var(--white); }
.want__body { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 48ch; text-wrap: pretty; }
.contact__card { min-width: 0; padding: 32px; gap: 14px; }
.contact__email { font-size: 19px; color: var(--accent); word-break: break-word; }
.contact__social { font-size: 16px; color: var(--accent); }
.contact__where { font-size: 15px; color: var(--muted-2); }
.contact__card .btn-row { padding-top: 10px; }

/* --- video (click-to-play YouTube facade) -------------------------------- */

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.video__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video__play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: rgba(28, 32, 38, 0.45);
  cursor: pointer;
  transition: background-color .2s ease;
}
.video__play:hover { background: rgba(28, 32, 38, 0.25); }
/* The brand hexagon, with a play triangle punched through it. */
.video__triangle {
  width: 84px; height: 84px;
  background: var(--accent);
  clip-path: var(--hex);
  position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.video__triangle::after {
  content: '';
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 23px;
  border-color: transparent transparent transparent var(--on-accent);
}
.video__play:hover .video__triangle { transform: scale(1.06); background: var(--accent-hi); }
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- /cv page ----------------------------------------------------------- */

/* No hero on this page, so the first section carries the breathing room the
   hero would otherwise give it. */
.cv-intro .shell { padding-top: 72px; }
.cv-intro__h1 { margin: 0; }
/* Text first in the source so it reads first on a phone; the portrait sits
   to its right on wide screens, aligned to the top of the text so it is seen
   straight away rather than centred against a long intro. */
.cv-intro .about__inner { align-items: start; }

/* --- footer ------------------------------------------------------------- */

.footer { background: var(--bg-deep); }
.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-3);
}
/* space-between with one child pins it to the far left with the full width of
   the page empty beside it. The renderer adds this class when there is nothing
   to sit opposite the copyright. */
.footer__inner--solo { justify-content: center; }

/* --- narrow screens ----------------------------------------------------- */

@media (max-width: 760px) {
  /* Three-column publication rows and the 200px timeline rail are unreadable
     on a phone; stack them instead. Desktop layout is untouched. */
  .pub { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pub__meta { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 520px) {
  .hero__inner { padding: 56px var(--gutter) 72px; }
  /* Four stats share a phone's width: tighter type so PUBLICATIONS fits. */
  .stats { gap: 8px; }
  .stat__value { font-size: 24px; }
  .stat__label { font-size: 10px; letter-spacing: 0.02em; }
  /* Keep two project links side by side on a phone-width card. */
  .project__main { padding: 24px; }
  .project__links { gap: 8px 16px; font-size: 14px; }
  .answer, .person, .contact__card { padding: 26px; }
  .skill, .bring__card { padding: 24px; }
}
@media (max-width: 360px) {
  .stat__label { font-size: 9px; letter-spacing: 0; }
}
