@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/geist-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: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist-mono-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: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* pierrevieira.com: one page, plain CSS, no build.
   Geist and Geist Mono (SIL Open Font License) are served from /fonts so the first paint waits on no other site.
   Colors are tokens: a zinc base with one blue accent, in light and dark. boot.js sets data-theme on <html> to light
   or dark before the first paint (System takes the system's theme), so the dark tokens are written once, under
   [data-theme="dark"]. Without scripts the page is light. Use the tokens, never raw colors in components. */

:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --fg: #09090b;
  --fg-soft: #3f3f46;
  --muted: #f4f4f5;
  --muted-fg: #6b6b74;        /* 4.9:1 on --bg, 5.2:1 on --surface */
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --on-accent-soft: #1d4ed8;
  --logo-accent: #7ab4ff;     /* the mark's cursor, on a --fg tile */
  --ring: rgba(37, 99, 235, 0.45);
  --positive: #15803d;
  --shadow-lg: 0 1px 2px rgba(9, 9, 11, 0.04), 0 24px 48px -12px rgba(9, 9, 11, 0.18);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05), 0 8px 24px -12px rgba(9, 9, 11, 0.12);
  --grid-line: rgba(9, 9, 11, 0.045);
  --radius: 10px;
  --radius-card: 16px;
  --radius-xl: 24px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111113;
  --fg: #fafafa;
  --fg-soft: #d4d4d8;
  --muted: #1c1c20;
  --muted-fg: #a1a1aa;
  --border: #27272a;
  --border-strong: #3f3f46;
  --accent: #7ab4ff;
  --accent-soft: rgba(122, 180, 255, 0.12);
  --on-accent-soft: #a9cdff;
  --logo-accent: #2563eb;
  --ring: rgba(122, 180, 255, 0.5);
  --positive: #4ade80;
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --grid-line: rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -64px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius); background: var(--fg); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 12px; }
.dim { color: var(--muted-fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--fg) 84%, var(--bg)); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { background: var(--muted); border-color: var(--border-strong); }
.btn-icon { width: 44px; padding: 0; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }

.link {
  color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link:hover { color: var(--accent); text-decoration-color: currentColor; }
.ext { display: inline-flex; align-items: center; gap: 4px; }
.ext .icon { width: 15px; height: 15px; color: var(--muted-fg); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
a:hover > .ext .icon, .ext:hover .icon { transform: translate(2px, -2px); color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
/* The mark, as public/icon.svg draws it: a pi, for Pierre, whose right leg is a text cursor. The tile takes the page's
   foreground, so it turns with the theme. */
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark .tile { fill: var(--fg); }
.brand-mark .pi { fill: none; stroke: var(--bg); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .cursor { fill: var(--logo-accent); }
.nav { display: none; }
.nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--fg-soft); font-size: 14px; text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { background: var(--muted); color: var(--fg); }
.header-end { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.header-cv { display: none; margin-inline-start: 8px; }

/* The header's menus (language, theme and, on a phone, the sections) are <details>: they open without scripts, and
   site.js closes them on a pick, a click outside and Escape. */
.menu { position: relative; }
.menu > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px;
  color: var(--fg-soft); cursor: pointer; list-style: none; user-select: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--muted); color: var(--fg); }
.menu > summary .icon { width: 18px; height: 18px; }
@media (pointer: coarse) { .menu > summary { min-width: 44px; height: 44px; } }
.lang-code { font: 500 12px/1 var(--mono); }
.menu-pop {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  display: grid; gap: 2px; min-width: 216px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.menu[open] > .menu-pop { animation: pop 0.16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .menu[open] > .menu-pop { animation: none; } }
.menu-pop button, .menu-pop a {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px;
  background: none; border: 0; border-radius: 8px;
  color: var(--fg); font-size: 14px; text-align: start; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
@media (pointer: coarse) { .menu-pop button, .menu-pop a { min-height: 44px; } }
.menu-pop button:hover, .menu-pop a:hover { background: var(--muted); }
.menu-pop button .icon { width: 17px; height: 17px; color: var(--muted-fg); }
.menu-pop button[aria-pressed="true"] { background: var(--accent-soft); color: var(--on-accent-soft); }
.menu-pop button[aria-pressed="true"] .icon { color: inherit; }
.menu-pop button[aria-pressed="true"]::after {
  content: ""; margin-inline-start: auto; width: 14px; height: 8px; flex: none;
  border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
.menu-pop hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--border); }
.lang-chip {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; flex: none;
  border: 1px solid var(--border); border-radius: 6px; color: var(--muted-fg); font: 500 11px/1 var(--mono);
}
.menu-pop button[aria-pressed="true"] .lang-chip { border-color: currentColor; color: inherit; }
.lang-names { display: grid; line-height: 1.25; }
.lang-detail { color: var(--muted-fg); font-size: 12px; }
.lang-detail:empty { display: none; }
.menu-pop button[aria-pressed="true"] .lang-detail { color: inherit; opacity: 0.8; }
/* The theme button shows the choice: sun, moon or, for System (and without scripts), a monitor. */
.theme-menu > summary .icon { display: none; }
:root[data-theme-pref="light"] .theme-menu .ic-light,
:root[data-theme-pref="dark"] .theme-menu .ic-dark,
:root[data-theme-pref="system"] .theme-menu .ic-system,
:root:not([data-theme-pref]) .theme-menu .ic-system { display: block; }
.nav-menu .ic-close, .nav-menu[open] .ic-open { display: none; }
.nav-menu[open] .ic-close { display: block; }

@media (min-width: 640px) { .header-cv { display: inline-flex; } }
@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; margin-inline-start: 20px; }
  .nav-menu { display: none; }
}

/* Section scaffolding */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--border); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted-fg); font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow .rule { width: 24px; height: 1px; background: var(--border-strong); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Hero */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 96px); }
/* A faint grid behind the hero, fading out downwards: decoration only. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: 28px; }
.portrait { display: flex; align-items: center; gap: 14px; }
.portrait img {
  width: 72px; height: 72px; border-radius: 20px; object-fit: cover;
  border: 1px solid var(--border); background: var(--muted);
}
.portrait figcaption { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.portrait .status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-fg); font: 500 12px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.portrait .status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--positive) 18%, transparent);
}
.portrait strong { font-weight: 500; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 7vw, 76px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em;
  text-wrap: balance;
}
.lead { margin-top: 24px; max-width: 620px; color: var(--fg-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--muted-fg); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
  .portrait { order: 2; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
  .portrait img { width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 0; }
  .portrait figcaption { gap: 6px; padding: 16px 18px 18px; border-top: 1px solid var(--border); font-size: 15px; }
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: clamp(48px, 7vw, 88px); }
.stats li { padding-block: 20px; border-top: 1px solid var(--border); }
.stats strong { display: block; font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats li > span { display: block; margin-top: 10px; color: var(--muted-fg); font-size: 14px; line-height: 1.4; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; } }

.teams { display: grid; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.teams ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.teams ul { align-items: center; }
.teams a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--fg-soft); font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none;
  transition: color 0.2s var(--ease);
}
.teams a:hover { color: var(--accent); }
@media (min-width: 900px) { .teams { grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; } }

/* Apps */
.apps { display: grid; gap: 24px; }
.app {
  display: grid; gap: 32px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
}
.app-title { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 56px; height: 56px; flex: none; padding: 11px; border-radius: 15px;
  background: var(--muted); border: 1px solid var(--border); object-fit: contain;
}
.app-icon.full { padding: 0; }
.app-title h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.app-tag { margin-top: 4px; color: var(--muted-fg); font-size: 15px; }
/* An app that is out: a green light and its words, under the app's name. */
.live {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
  color: var(--fg-soft); font: 500 11px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.live::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--positive) 18%, transparent);
}
.app-title { align-items: flex-start; }
.app-desc { margin-top: 20px; color: var(--fg-soft); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.checks { display: grid; gap: 10px; margin-top: 20px; }
.checks li { position: relative; padding-inline-start: 28px; color: var(--fg-soft); font-size: 15px; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: 0.42em; width: 12px; height: 7px;
  border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.facts { margin-top: 24px; border-top: 1px solid var(--border); }
.facts > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.facts dt { color: var(--muted-fg); font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.facts dd { color: var(--fg); }
@media (min-width: 520px) { .facts > div { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; } }
.app .actions { margin-top: 24px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 520px; margin-inline: auto; width: 100%; }
.shots img { width: 100%; border-radius: 18px; border: 1px solid var(--border); background: var(--muted); }
.shots img:nth-child(2) { margin-top: 32px; }
@media (min-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding: 48px; }
  .app:nth-child(even) .shots { order: -1; }
  .shots { gap: 16px; }
  .shots img { border-radius: 22px; }
  .shots img:nth-child(2) { margin-top: 48px; }
}

/* Experience */
.timeline { border-bottom: 1px solid var(--border); }
.job { display: grid; gap: 12px; padding-block: 32px; border-top: 1px solid var(--border); }
.job-when { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.period { font: 500 13px/1.5 var(--mono); letter-spacing: 0.02em; color: var(--fg); }
.place { color: var(--muted-fg); font-size: 14px; }
.job h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.job h3 a { text-decoration: none; }
.job h3 a:hover { color: var(--accent); }
.via { color: var(--muted-fg); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.now {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--on-accent-soft);
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.role { margin-top: 4px; color: var(--fg-soft); font-size: 16px; }
.role .dim { font-size: 14px; }
.bullets { display: grid; gap: 8px; margin-top: 16px; max-width: 680px; }
.bullets li { position: relative; padding-inline-start: 20px; color: var(--fg-soft); line-height: 1.55; text-wrap: pretty; }
.bullets li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-fg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li {
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--fg-soft); font-size: 13px; line-height: 1.5; white-space: nowrap;
}
@media (min-width: 820px) {
  .job { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-block: 40px; }
  .job-when { display: grid; gap: 4px; align-content: start; padding-top: 6px; }
}

/* Skills */
.skills { border-bottom: 1px solid var(--border); }
.skills > div { display: grid; gap: 12px; padding-block: 20px; border-top: 1px solid var(--border); }
.skills dt { font-size: 16px; font-weight: 500; }
.skills .tags { margin-top: 0; }
.skills .tags li { padding: 6px 12px; font-size: 14px; }
@media (min-width: 820px) { .skills > div { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 22px; } }

/* Talks */
.talks { display: grid; gap: 20px; }
.talk {
  display: grid; overflow: hidden; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  transition: border-color 0.2s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.talk:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.talk-media { position: relative; aspect-ratio: 16 / 9; background: var(--muted); overflow: hidden; }
.talk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.talk:hover .talk-media img { transform: scale(1.03); }
.play {
  position: absolute; inset-inline-start: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(9, 9, 11, 0.78); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.play .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-inline-start: 2px; }
.talk-body { display: grid; gap: 8px; padding: 20px; }
.talk-meta { color: var(--muted-fg); font: 500 12px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.talk h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.talk p { color: var(--fg-soft); font-size: 15px; line-height: 1.55; }
@media (min-width: 720px) { .talks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .talk, .talk-media img { transition: none; } .talk:hover, .talk:hover .talk-media img { transform: none; } }

/* Contact */
.contact h2 { margin-top: 16px; font-size: clamp(36px, 6.4vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.contact .lead { margin-top: 24px; }
.contact-list { display: grid; margin-top: 40px; border-bottom: 1px solid var(--border); }
.contact-list a {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding-block: 14px; border-top: 1px solid var(--border);
  text-decoration: none; transition: color 0.2s var(--ease), padding 0.3s var(--ease);
}
.contact-list a:hover { color: var(--accent); padding-inline-start: 6px; }
.contact-list .icon:first-child { color: var(--muted-fg); }
.contact-list .label { font-size: 17px; font-weight: 500; }
.contact-list .value { margin-inline-start: auto; color: var(--muted-fg); font-size: 14px; text-align: end; overflow-wrap: anywhere; }
.contact-list .arrow { width: 16px; height: 16px; color: var(--muted-fg); }
@media (max-width: 519px) { .contact-list .value { display: none; } .contact-list .arrow { margin-inline-start: auto; } }
@media (min-width: 900px) { .contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: end; } .contact-list { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .contact-list a:hover { padding-inline-start: 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 28px 40px; color: var(--muted-fg); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Motion: with :root.motion (boot.js), a block rises as it scrolls into view. Without it the page is still and
   complete, so reduced motion and no-script visitors miss nothing. */
:root.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
:root.motion .reveal.in { opacity: 1; transform: none; }
