:root {
  color-scheme: light;
  --logo-blue: #6a9ec3;
  --logo-blue-text: #33688d;
  --night: #282b42;
  --night-deep: #1b1d2e;
  --yellow: #fece0a;
  --red: #e71b24;
  --green: #7dc25f;
  --paper: #f4f5f7;
  --white: #ffffff;
  --muted: #4f5368;
  --line: #e1e3ea;
  --accent: var(--logo-blue);
  --header-h: 5rem;
  --font: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--night); background: var(--white); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--logo-blue); outline-offset: 3px; }
.shell { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }

.accent-yellow { --accent: var(--yellow); }
.accent-red { --accent: var(--red); }
.accent-green { --accent: var(--green); }
.accent-blue { --accent: var(--logo-blue); }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 60; background: var(--night); color: var(--white); padding: 0.6rem 1rem; }
.skip-link:focus { top: 0.75rem; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--logo-blue); transform: scaleX(0); transform-origin: left; }
.header-bar { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); padding-inline: clamp(1rem, 4vw, 3rem); max-width: 1440px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 3.7rem; }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a { font-weight: 600; text-decoration: none; padding-block: 0.4rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--logo-blue); }
.language { display: flex; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; }
.language a { min-width: 2.4rem; min-height: 2.4rem; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.language a[aria-current] { background: var(--night); color: var(--white); }
.header-contact { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem; border-radius: 999px; background: var(--night); color: var(--white); font-weight: 700; text-decoration: none; }
.header-contact:hover { background: var(--logo-blue-text); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 1.1rem; height: 2px; background: var(--night); border-radius: 2px; transition: transform 0.2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.kicker { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.5rem; border-radius: 999px; background: var(--yellow); color: var(--night); font-weight: 700; text-decoration: none; line-height: 1.3; transition: transform 0.18s, background 0.18s; }
.button:hover { background: #ffdb45; transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--white); border: 1.5px solid rgb(255 255 255 / 0.7); }
.button--ghost:hover { background: var(--white); color: var(--night); }
.text-link { display: inline-block; padding-block: 0.6rem; font-weight: 600; }

.talk { background: var(--night); color: var(--white); padding-block: clamp(4rem, 9vw, 7rem); }
/* Tablet: text beside a compact video. Desktop: heading row above a centred, narrower video, matching the page rhythm. */
.film.is-pinned .talk { display: flex; align-items: center; padding-block: 1rem; }
.talk-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.talk h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin-bottom: 1.3rem; }
.talk h2 span { display: block; }
.talk h2 span + span { color: var(--logo-blue); }
.talk-intro { font-size: 1.125rem; color: #e6e8f0; max-width: 30rem; }
.talk-award { display: flex; gap: 0.7rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.18); color: #e6e8f0; font-size: 0.9375rem; line-height: 1.5; }
.award-icon { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.05em; color: var(--yellow); }
.talk-player video a { color: inherit; }
.talk-player video { display: block; width: 100%; height: auto; background: var(--night-deep); border-radius: 0.75rem; }
.talk-player figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; margin-top: 0.9rem; font-size: 0.9375rem; color: #d3d6e2; }
.talk-frame { position: relative; }
.talk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.25rem; padding: 0.7rem 1.5rem 0.7rem 1.2rem; border: 0; border-radius: 999px; background: var(--white); color: var(--night); font: inherit; font-weight: 700; line-height: 1.3; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 24px rgb(0 0 0 / 0.35); transition: background 0.18s; }
.talk-play:hover { background: #dfe9f2; }
.talk-play[hidden] { display: none; }
.talk-play svg { flex: none; width: 1.4rem; height: 1.4rem; }
.video-error { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(24rem, calc(100% - 1.5rem)); padding: 0.9rem 1.1rem; box-shadow: 0 6px 24px rgb(0 0 0 / 0.35); font-size: 0.9375rem; line-height: 1.45; background: #fff3c4; color: var(--night); border-left: 4px solid var(--yellow); border-radius: 0.25rem; }
.video-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.2rem; margin-top: 0.6rem; }
.video-error .text-link { padding-block: 0.4rem; }
.video-error .button { min-height: 2.75rem; padding-block: 0.5rem; background: var(--night); color: var(--white); }
.video-error .button:hover { background: var(--logo-blue-text); }

.about { padding-block: clamp(4rem, 9vw, 7rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; border-radius: 0.75rem; }
.about h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 1.4rem; }
.about-lead { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 1.4rem; }
.about p:not(.about-lead):not(.kicker) { color: var(--muted); }
.about p + p { margin-top: 1rem; }

.contact { background: var(--night); color: var(--white); padding-block: clamp(4.5rem, 10vw, 8rem); }
.contact h2 { font-size: clamp(2.6rem, 7vw, 6rem); margin-bottom: 1.4rem; }
.contact h2 + p { max-width: 36rem; font-size: 1.15rem; color: #e6e8f0; margin-bottom: 2rem; }
.contact-note { margin-top: 1rem; font-size: 0.9375rem; color: #d3d6e2; }
.contact-note a { color: var(--white); font-weight: 600; }

.site-footer { padding-block: 1.6rem; font-size: 0.9375rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.footer-links { display: flex; gap: 1.5rem; margin-left: auto; }
.footer-links a { padding-block: 0.6rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.legal { max-width: 52rem; padding-block: 3rem 6rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-top: 1.5rem; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 2.4rem 0 0.8rem; }
.legal h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 1.8rem 0 0.6rem; }
.legal h4, .legal h5 { font-size: 1rem; margin: 1.3rem 0 0.4rem; }
.legal-lang p, .legal-lang li { overflow-wrap: anywhere; }
.legal-lang ul { padding-left: 1.2rem; }
.legal section { margin-top: 2.2rem; }
.legal p + p { margin-top: 1rem; }
.legal-copy { white-space: pre-line; }
.draft-note { margin-top: 1.4rem; padding: 0.9rem 1.2rem; background: #fff3c4; border-left: 4px solid var(--yellow); font-size: 0.9375rem; }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after { animation: reading-progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes reading-progress { to { transform: scaleX(1); } }

/* Low desktop windows keep the two-column layout: the stacked one would not fit a pinned scene. */
@media (min-width: 1101px) and (min-height: 741px) {
  .talk-grid { width: min(920px, calc(100% - 3rem)); grid-template-columns: auto minmax(0, 1fr); gap: 1rem 3.5rem; align-items: start; }
  /* As a pinned scene the video shrinks with the window height so the whole talk stays on screen. */
  .film.is-pinned .talk-grid { width: min(920px, calc(100% - 3rem), max(600px, calc((100svh - var(--header-h) - 20.5rem) * 16 / 9))); }
  .talk-copy { display: contents; }
  .talk-copy > .kicker { grid-column: 1 / -1; margin-bottom: 0; }
  .talk-copy > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; font-size: 3rem; }
  .talk-copy > h2 span { white-space: nowrap; }
  .talk-intro { grid-column: 2; grid-row: 2; padding-top: 0.4rem; }
  .talk-media { grid-column: 1 / -1; grid-row: 3; margin-top: 1.5rem; }
}
@media (max-width: 1000px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 0.4rem 0 0.8rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(40 43 66 / 0.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem clamp(1rem, 4vw, 3rem); }
  .site-nav a:hover, .site-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--logo-blue); }
  .language { margin-left: auto; }
  .nav-toggle { display: grid; }
  .header-bar { gap: 0.6rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 4 / 3; max-height: 32rem; }
}
@media (min-width: 1101px) and (min-height: 741px) and (max-height: 800px) {
  .film.is-pinned .talk-copy > h2 { font-size: 2.4rem; }
  .film.is-pinned .talk-grid { column-gap: 2.5rem; }
  .film.is-pinned .talk-intro { font-size: 1rem; }
}
@media (max-width: 760px) {
  .talk-grid { grid-template-columns: 1fr; }
  .film.is-pinned .talk-grid { gap: 1.1rem; }
  .film.is-pinned .talk h2 { font-size: 2rem; margin-bottom: 0.8rem; }
  .film.is-pinned .talk-intro { font-size: 1rem; line-height: 1.5; }
  .film.is-pinned .talk-player figcaption { margin-top: 0.6rem; font-size: 0.875rem; }
  .film.is-pinned .talk-award { margin-top: 0.7rem; padding-top: 0.7rem; font-size: 0.875rem; }
}
@media (max-width: 520px) {
  :root { --header-h: 4rem; }
  .brand img { height: 2.9rem; }
  .header-contact { padding-inline: 1rem; }
  .shell { width: calc(100% - 2.5rem); }
  .footer-links { margin-left: 0; width: 100%; }
}
@media (max-width: 400px) {
  .header-bar { gap: 0.4rem; padding-inline: 0.75rem; }
  .brand img { height: 2.4rem; }
  .language a { min-width: 2.2rem; }
  .header-contact { padding-inline: 0.8rem; }
}
@media (max-width: 340px) {
  .brand img { height: 2.1rem; }
  .language a { min-width: 2rem; }
  .header-contact { padding-inline: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .talk-play, .bars, .bars::before, .bars::after { transition: none; }
}
.award-source { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.award-source:hover { color: var(--yellow); }
