/* guidoputignano.com. Design approved in Step 2; tokens are recorded in CLAUDE.md. */
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  /* Palette */
  --white: #FFFFFF;
  --ink: #0E1124;
  --slate: #565C70;
  --line: #E3E6EE;
  --line-strong: #C3C8D6;
  --blue: #2A4DE0;      /* stage blue */
  --night: #070B2A;     /* night blue */
  --cyan: #8FE3FF;      /* accent on dark and blue only */

  /* Type */
  --body-size: 1.0625rem;
  --name-size: clamp(1.3rem, 0.85rem + 1.7vw, 2.4rem);
  --lede-size: clamp(2rem, 1rem + 3vw, 3.6rem);
  --h2-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; font-size: var(--body-size); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Missing facts stay visible until they are filled in. */
.todo { background: #FFF1A8; color: #3A3000; padding: 0 0.25em; }

/* Logos */
.logo { display: block; width: auto; }

/* Header. On the homepage it sits over the hero photo. */
.page { display: grid; grid-template-columns: minmax(0, 1fr); }
.page > .top, .page > main { grid-area: 1 / 1; }
main { min-width: 0; }
.top {
  align-self: start;
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: clamp(1.1rem, 3vw, 2.25rem) var(--gutter);
}
.site-name { margin: 0; font: inherit; }
.name {
  font-size: var(--name-size);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
}
.top nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.top--page { border-bottom: 1px solid var(--line); }
.top--page .name { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); }

/* Hero: full-screen photo, text on the white sphere */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(36rem, 100vh);
  min-height: max(36rem, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--line);
}
.hero-media { position: absolute; inset: 0; z-index: -1; display: block; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; color: transparent; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 32%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 20%);
}
.hero-copy { padding: 8rem var(--gutter) 6rem; max-width: 44rem; }
.lede { margin: 0; font-size: var(--lede-size); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.lede .after { display: block; margin-top: 0.15em; }
.verbs { color: var(--blue); }
.creds {
  display: grid; gap: 0.2rem; margin: 1.5rem 0 0; padding-left: 0.9rem;
  border-left: 2px solid var(--blue); font-size: 0.98rem; line-height: 1.45; color: var(--slate);
}
.button {
  display: inline-block; margin-top: 1.75rem; padding: 0.95rem 1.6rem;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600; line-height: 1.2;
}
.button:hover { filter: brightness(1.15); }

/* Phones: photo on top, text below the face. */
@media (max-width: 47.99em) {
  .top nav { font-size: 0.875rem; gap: 0.25rem 1.1rem; }
  .hero { min-height: 0; display: block; background: var(--white); }
  .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; }
  .hero-media img { object-position: 50% 0%; }
  .hero-media::after {
    background:
      linear-gradient(0deg, var(--white) 0%, transparent 38%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 18%, transparent 34%);
  }
  .hero-copy { position: relative; margin-top: -5.5rem; padding-top: 0; padding-bottom: 3rem; }
}

/* Institutions strip */
.proof { padding-block: clamp(1.75rem, 4vw, 2.75rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-inline: var(--gutter); margin-bottom: 1.25rem; }
.proof h2 { margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--slate); }
.strip-toggle {
  font: inherit; font-size: 0.875rem; background: none; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--slate); padding: 0.3rem 0.8rem;
}
.strip {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.track {
  display: flex; flex-shrink: 0; align-items: center; list-style: none; margin: 0;
  gap: clamp(3.5rem, 7vw, 6rem); padding: 0 clamp(3.5rem, 7vw, 6rem) 0 0;
}
.track li { display: flex; align-items: center; height: 4.5rem; white-space: nowrap; }
.track .logo { height: 2.4rem; }
.track .logo-eth { height: 1.9rem; }
.track .logo-harvard { height: 3.1rem; }
.track .logo-mitml { height: 2.6rem; }
.track .pair { gap: 0.75rem; }
.track .logo-kaust-mark { height: 3rem; }
.track .logo-kaust-word { height: 3.2rem; }
.track .logo-polimi { height: 3rem; }
.track .logo-foresight { height: 3.2rem; }

/* Section heads */
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.5rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-head h2, .about-text h2, .idea-text h2 {
  margin: 0; font-size: var(--h2-size); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1;
}
.section-head p { margin: 0; color: var(--slate); }

/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(4rem, 9vw, 7rem) var(--gutter); align-items: center; }
@media (min-width: 60em) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
@media (max-width: 59.99em) { .about-photo img { aspect-ratio: 4 / 3; object-position: 50% 20%; } }
.about-text { max-width: 40rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-lead { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.about-text p:not(.about-lead) { margin: 1.25rem 0 0; font-size: 1.125rem; color: var(--slate); }

/* The idea: feedback loop on stage blue */
.idea { background: var(--blue); color: var(--white); }
.idea-sticky { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
@media (min-width: 48em) { .idea-sticky { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.idea-intro { margin: 1.25rem 0 0; max-width: 34rem; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { padding-top: 0.9rem; border-top: 2px solid rgba(255, 255, 255, 0.3); }
.steps h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.steps p { margin: 0.35rem 0 0; max-width: 32rem; color: rgba(255, 255, 255, 0.9); }
.idea :focus-visible { outline-color: var(--white); }
.idea-visual { margin: 0; display: grid; gap: 1.25rem; justify-items: center; }
.loop { display: block; width: 100%; max-width: 23rem; height: auto; overflow: visible; }
.loop-ring { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 2; }
.loop-arrow { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.loop-node { fill: var(--white); }
.loop-dot { fill: var(--cyan); }
.loop text { fill: var(--white); font-family: var(--font); font-size: 18px; font-weight: 600; }
.orbit { transform-box: view-box; transform-origin: 200px 200px; }
.response { display: block; width: 100%; max-width: 34rem; height: auto; overflow: visible; }
.response .axis { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; }
.response .goal { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 6; }
.response .goal-label { fill: var(--white); font-family: var(--font); font-size: 14px; font-weight: 600; }
.response .axis-label { fill: rgba(255, 255, 255, 0.85); font-family: var(--font); font-size: 12px; }
.response .trace { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.response .sample { fill: var(--cyan); stroke: var(--blue); stroke-width: 2; }
.idea-visual figcaption { font-size: 1rem; color: rgba(255, 255, 255, 0.92); text-align: center; }

/* Pinned version, switched on by idea.js on larger screens with motion allowed */
.idea.is-scrolly { height: 320vh; }
.idea.is-scrolly .idea-sticky { position: sticky; top: 0; height: 100vh; padding-block: clamp(1.5rem, 5vh, 3.5rem); }
.idea.is-scrolly .loop { max-width: min(23rem, 38vh); }
.idea.is-scrolly .response { max-width: min(34rem, 56vh); }
.idea.is-scrolly .steps { gap: clamp(0.5rem, 1.6vh, 1.1rem); margin-top: clamp(1rem, 3vh, 2rem); }
.idea.is-scrolly .sample { opacity: 0; transition: opacity 0.25s ease; }
.idea.is-scrolly .sample.on { opacity: 1; }
.idea.is-scrolly .steps li { transition: border-color 0.2s ease; }
.idea.is-scrolly .steps li p { color: rgba(255, 255, 255, 0.8); transition: color 0.2s ease; }
.idea.is-scrolly .loop text { opacity: 0.75; transition: opacity 0.2s ease; }
.idea.is-scrolly .loop-node { transition: fill 0.2s ease; }
.idea[data-active="0"] .steps li[data-step="0"],
.idea[data-active="1"] .steps li[data-step="1"],
.idea[data-active="2"] .steps li[data-step="2"],
.idea[data-active="done"] .steps li { border-top-color: var(--cyan); }
.idea[data-active="0"] .steps li[data-step="0"] p,
.idea[data-active="1"] .steps li[data-step="1"] p,
.idea[data-active="2"] .steps li[data-step="2"] p,
.idea[data-active="done"] .steps li p { color: var(--white); }
.idea[data-active="0"] .loop text[data-step="0"],
.idea[data-active="1"] .loop text[data-step="1"],
.idea[data-active="2"] .loop text[data-step="2"],
.idea[data-active="done"] .loop text { opacity: 1; }
.idea[data-active="0"] .loop-node[data-step="0"],
.idea[data-active="1"] .loop-node[data-step="1"],
.idea[data-active="2"] .loop-node[data-step="2"] { fill: var(--cyan); }

/* Path: still map and the route in date order */
.path { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.path-grid { display: grid; gap: 2rem; }
@media (min-width: 60em) { .path-grid { grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr); align-items: center; gap: 3rem; } }
.map { margin: 0; }
.map-flat { display: block; width: 100%; height: auto; }
.route { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.route li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.route-years { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.route h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.route h3 span { font-weight: 400; color: var(--slate); }
.route-text p { margin: 0.1rem 0 0; font-size: 0.875rem; color: var(--slate); }


/* Rokan Health */
.rokan {
  color: var(--white);
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  background-color: var(--night);
  /* The Sala della Regina photo, kept almost hidden under the night blue */
  background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.96) 0%, rgba(7, 11, 42, 0.9) 50%, rgba(7, 11, 42, 0.82) 100%), url("/assets/img/d-hall-2000.jpg");
  background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.96) 0%, rgba(7, 11, 42, 0.9) 50%, rgba(7, 11, 42, 0.82) 100%), image-set(url("/assets/img/d-hall-2000.webp") type("image/webp"), url("/assets/img/d-hall-2000.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 60% 40%;
}
@media (max-width: 47.99em) {
  .rokan {
    background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.96) 0%, rgba(7, 11, 42, 0.9) 50%, rgba(7, 11, 42, 0.82) 100%), url("/assets/img/d-hall-phone-800.jpg");
    background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.96) 0%, rgba(7, 11, 42, 0.9) 50%, rgba(7, 11, 42, 0.82) 100%), image-set(url("/assets/img/d-hall-phone-800.webp") type("image/webp"), url("/assets/img/d-hall-phone-800.jpg") type("image/jpeg"));
  }
}
.rokan-inner { max-width: 62rem; }
.eyebrow { margin: 0 0 1.25rem; font-size: 1rem; font-weight: 600; color: var(--cyan); }
.rokan h2 { margin: 0; font-size: clamp(2.75rem, 1.2rem + 6vw, 6.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.rokan-text { margin: 1.75rem 0 0; max-width: 40rem; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem); line-height: 1.5; color: rgba(255, 255, 255, 0.84); }
.rokan-link, .elsewhere a, .footer a {
  color: var(--white); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.rokan-link { display: inline-block; margin-top: 2rem; font-weight: 600; }
.rokan :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--cyan); }

/* Selected work */
.showcase { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52em) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.card:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card-panel {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr;
  height: clamp(11rem, 16vw, 14rem); padding: 1.1rem 1.25rem; background: var(--night); color: var(--white);
}
.card-type { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--cyan); }
.card-year { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; }
.card-panel .logo { grid-column: 1 / -1; align-self: center; justify-self: center; height: 2.6rem; max-width: 75%; filter: brightness(0) invert(1); }
.card-panel .logo-nature { height: 3.6rem; }
.card-panel .logo-wef { height: 3.8rem; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.6rem; }
.card h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.45rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.22; text-wrap: pretty; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body > p:not(.card-cta) { margin: 0.7rem 0 0; color: var(--slate); }
.card-cta { margin: 0; margin-top: auto; padding-top: 1.25rem; color: var(--blue); font-weight: 600; }
.card:hover .card-panel { background: var(--blue); }
.card:hover .card-cta { text-decoration: underline; text-underline-offset: 0.25em; }


/* Recognition */
.recognition { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.wall {
  list-style: none; margin: 0; padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.wall li { flex: 0 0 50%; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 0.75rem; }
@media (min-width: 52em) { .wall li { flex-basis: 25%; } }
.wall-logo { display: flex; align-items: center; justify-content: center; height: 5.5rem; max-width: 100%; margin-bottom: 1.1rem; }
.wall-logo .logo { height: 3.4rem; max-width: min(13rem, 100%); object-fit: contain; }
.wall-logo .logo-forbes, .wall-logo .logo-amgen { height: 2.4rem; }
.wall-logo .logo-mercatus { height: 5.2rem; }
.wall-logo .logo-clinton, .wall-logo .logo-premio { height: 4.2rem; }
.wall-logo .logo-foresight { height: 3.6rem; }
.wall-logo .logo-aspen { height: 5.4rem; }
@media (max-width: 51.99em) {
  .wall-logo { height: 4.25rem; }
  .wall-logo .logo { height: 2.6rem; }
  .wall-logo .logo-forbes, .wall-logo .logo-amgen { height: 1.9rem; }
  .wall-logo .logo-mercatus, .wall-logo .logo-aspen { height: 4rem; }
  .wall-logo .logo-clinton { height: 3.2rem; }
  .wall-logo .logo-premio { height: 3rem; }
}
.wall-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.wall-role { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--slate); }

/* Contact: night blue over a faint photo */
.contact {
  color: var(--white);
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
  background-color: var(--night);
  background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.97) 0%, rgba(7, 11, 42, 0.93) 45%, rgba(7, 11, 42, 0.8) 72%, rgba(7, 11, 42, 0.78) 100%), url("/assets/img/d-contact-1600.jpg");
  background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.97) 0%, rgba(7, 11, 42, 0.93) 45%, rgba(7, 11, 42, 0.8) 72%, rgba(7, 11, 42, 0.78) 100%), image-set(url("/assets/img/d-contact-1600.webp") type("image/webp"), url("/assets/img/d-contact-1600.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 80% 30%;
}
@media (max-width: 47.99em) {
  .contact {
    background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.97) 0%, rgba(7, 11, 42, 0.93) 45%, rgba(7, 11, 42, 0.8) 72%, rgba(7, 11, 42, 0.78) 100%), url("/assets/img/d-contact-900.jpg");
    background-image: linear-gradient(90deg, rgba(7, 11, 42, 0.97) 0%, rgba(7, 11, 42, 0.93) 45%, rgba(7, 11, 42, 0.8) 72%, rgba(7, 11, 42, 0.78) 100%), image-set(url("/assets/img/d-contact-900.webp") type("image/webp"), url("/assets/img/d-contact-900.jpg") type("image/jpeg"));
  }
}
.contact h2 { margin: 0; font-size: clamp(2.5rem, 1.2rem + 4.5vw, 4.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.contact p { margin: 1.25rem 0 0; max-width: 36rem; color: rgba(255, 255, 255, 0.84); }
.contact .button { margin-top: 2rem; background: var(--white); color: var(--ink); overflow-wrap: anywhere; }
.elsewhere { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 1.5rem var(--gutter); background: var(--night); color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.875rem;
}
.footer p { margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

/* Inner pages: archive and 404 */
.inner { padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(4rem, 9vw, 7rem); max-width: 60rem; }
.inner h1 { margin: 0; font-size: var(--h2-size); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.inner-lead { margin: 1rem 0 0; font-size: 1.15rem; color: var(--slate); max-width: 40rem; }
.archive-group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.archive-group h2 { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--blue); }
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.archive-list h3 { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.archive-list h3 a { text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.archive-list h3 a:hover { text-decoration-color: var(--blue); }
.archive-meta { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--blue); }
.archive-list p:not(.archive-meta) { margin: 0.35rem 0 0; color: var(--slate); }

/* Motion: only when the visitor has not asked for less of it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

  .is-typing .ch { opacity: 0; }
  .is-typing .ch.on { opacity: 1; }
  .is-typing .after { opacity: 0; transform: translateY(0.5rem); }
  .is-typed .after { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
  .is-typed .creds { transition-delay: 0.12s; }
  .is-typed .button { transition-delay: 0.24s; }
  .cursor { display: inline-block; position: relative; width: 0; }
  .cursor::after {
    content: ""; position: absolute; left: 0.04em; top: -0.82em; height: 0.95em; width: 0.07em;
    background: currentColor; animation: blink 1s steps(1) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  .track { animation: strip 60s linear infinite; }
  .strip:hover .track, .strip:focus-within .track, .strip.is-paused .track { animation-play-state: paused; }
  @keyframes strip { to { transform: translateX(-100%); } }

  .card-panel { transition: background-color 180ms ease; }
  a, .button { transition: opacity 120ms ease, filter 120ms ease, text-decoration-color 120ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .strip { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .track { flex-wrap: wrap; flex-shrink: 1; row-gap: 0.75rem; padding: 0; }
  .track[aria-hidden="true"] { display: none; }
}

/* Digital card (/card/): made for phones, shown at events */
.card-page {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  background: var(--night); color: var(--white);
}
.vcard { width: 100%; max-width: 24rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vcard-photo img { display: block; width: 10rem; height: 10rem; object-fit: cover; background: var(--slate); }
.vcard .name { margin: 1.5rem 0 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
.vcard-role { margin: 0.6rem 0 0; font-weight: 600; color: var(--cyan); }
.vcard-line { margin: 0.25rem 0 0; color: rgba(255, 255, 255, 0.84); }
.vcard-save { display: block; width: 100%; margin-top: 1.75rem; background: var(--white); color: var(--ink); text-align: center; }
.vcard-links { list-style: none; margin: 1.25rem 0 0; padding: 0; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.vcard-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.vcard-links a { display: block; padding: 0.85rem 0; color: var(--white); text-decoration: none; font-weight: 500; }
.vcard-links a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 0.3em; }
.vcard-qr { margin: 2rem 0 0; }
.vcard-qr svg { display: block; width: 10.5rem; height: 10.5rem; margin-inline: auto; }
.vcard-qr figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }
.card-page :focus-visible { outline-color: var(--cyan); }

/* Talk pages (/talks/<event>/) */
.talk-meta { margin: 0 0 0.75rem; font-weight: 600; color: var(--blue); }
.talk-body { margin-top: 1rem; max-width: 40rem; font-size: 1.125rem; color: var(--slate); }
.talk-body p { margin: 0 0 1rem; }
.talk .button { margin-top: 1.5rem; }
.talk-section { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.talk-section h2, .talk-qr h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; }
.talk-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.talk-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.talk-contact p { margin: 0; color: var(--slate); }
.talk-contact p + .button { margin-top: 1rem; }
.talk-contact .button + p { margin-top: 1rem; }
.talk-qr { margin-top: clamp(2.5rem, 6vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.talk-qr svg { display: block; width: 9rem; height: 9rem; }
.talk-qr p { margin: 0.75rem 0 0; color: var(--slate); }
