/* Activate the Youth v2. One stylesheet, no framework. */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colour, all from the logo: ink is its blue taken deep, charge is its red (the one "do this" colour) */
  --ink: #0b1450;
  --ink-2: #16217a;
  --charge: #d40000;
  --charge-deep: #ad0000;
  --charge-text: #ffffff;
  --charge-on-dark: #ff6b6b; /* the red lifted so it reads on ink (6:1) */
  --paper: #f3f4fa;
  --white: #ffffff;
  --slate: #4f5677;
  --line: #d9dbea;
  --cobalt: #1a2fbf;
  /* From the logo */
  --logo-red: #d40000;
  --logo-blue: #021a9d;
  --ok: #17804a;
  --danger: #b3261e;

  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (1.25 ratio from 17px) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.6rem;
  --t-xl: 2.2rem;
  --t-2xl: clamp(2.6rem, 6vw, 3.8rem);
  --t-hero: clamp(3.4rem, 11vw, 7.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --radius-sm: 6px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .photo-hero :focus-visible, .reg-band :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: 0.005em; margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.05; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: var(--t-md); color: var(--slate); }
.on-ink .lede { color: #c9cee8; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.on-ink { background: var(--ink); color: var(--white); }
.on-ink a:not(.btn) { color: var(--white); }
.skip { position: absolute; left: -999px; top: 0; background: var(--charge); color: var(--charge-text); padding: 0.6rem 1rem; z-index: 99; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: amber is the one "do this" colour on the whole site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 700 var(--t-base)/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-charge { background: var(--charge); color: var(--charge-text); }
.btn-charge:hover { background: var(--charge-deep); color: var(--charge-text); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { color: inherit; background: rgba(127,127,160,.12); }

/* Header: white, so the full-colour logo reads as designed */
.site-header { background: var(--white); color: var(--ink); position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; }
.brand { display: block; padding-block: .5rem; }
.brand img { width: 140px; height: auto; }
@media (max-width: 480px) { .brand img { width: 120px; } }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.site-header .nav a:not(.btn) { color: var(--ink); }
.site-header .nav a:not(.btn):hover { color: var(--logo-red); }
.site-header .nav a[aria-current="page"] { color: var(--logo-red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav a { text-decoration: none; font-weight: 600; padding: 0.75rem 0.8rem; border-radius: var(--radius-sm); }
.nav .btn { margin-left: 0.5rem; min-height: 44px; padding: 0.55rem 1.1rem; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; background: none; border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font: 700 var(--t-sm) var(--body); padding: 0 .9rem; }
  .nav { display: none; position: absolute; inset: 92px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11,20,80,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 0.75rem 0 0; }
}

/* Hero: headline left, the pass right */
.hero { background: var(--ink); color: var(--white); overflow: hidden; position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "head pass" "body pass";
  column-gap: clamp(2rem, 5vw, 4rem); row-gap: 0; align-items: center;
  padding-block: clamp(2rem, 7vw, 5.5rem); position: relative;
}
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; align-self: start; }
.hero .pass { grid-area: pass; }
.hero h1 { margin-bottom: 0.15em; }
.hero h1 .year { color: var(--charge-on-dark); display: block; }
.hero .theme { font: 600 var(--t-lg)/1.2 var(--body); margin-bottom: 1rem; }
.hero .bolt { position: absolute; right: -4rem; top: -2rem; width: 26rem; opacity: 0.07; pointer-events: none; }
/* Phones: title, then the pass (date, venue, entry), then the pitch */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "pass" "body"; row-gap: 1.75rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero .theme { margin-bottom: 0; }
}

/* The pass: the one bold element. Same shape is used for the emailed ticket. */
.pass {
  --notch: 18px;
  position: relative; color: var(--white); background: var(--charge);
  border-radius: 14px; display: grid; grid-template-rows: auto auto;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transform: rotate(-2deg);
}
/* Notches sit exactly on the perforation; they take the colour of whatever the pass sits on. */
.pass-stub { position: relative; }
.pass-stub::before, .pass-stub::after {
  content: ""; position: absolute; top: calc(var(--notch) * -1 - 1px);
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--pass-ground, var(--ink));
}
.pass-stub::before { left: calc(var(--notch) * -1); }
.pass-stub::after { right: calc(var(--notch) * -1); }
.pass-main { padding: 1.6rem 1.6rem 1.2rem; }
.pass-kicker { font-weight: 700; font-size: var(--t-sm); margin: 0 0 .4rem; }
.pass-date { font-family: var(--display); font-weight: 900; line-height: 0.85; font-size: clamp(4.2rem, 10vw, 6rem); margin: 0; }
.pass-date small { display: block; font-size: 0.42em; font-weight: 800; line-height: 1; margin-top: .15em; }
.pass-meta { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 1rem 0 0; font-size: var(--t-sm); }
.pass-meta dt { font-weight: 700; opacity: .85; }
.pass-meta dd { margin: 0; }
.pass-stub { border-top: 2px dashed rgba(255,255,255,.6); padding: 1.1rem 1.6rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pass-stub .countdown { font-weight: 700; }
.pass-stub .countdown strong { font-family: var(--display); font-size: 2.2rem; font-weight: 900; line-height: 1; }
@media (max-width: 860px) { .pass { transform: none; max-width: 26rem; } }

/* Speakers: portrait list, not boxed cards */
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 2.2rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.speaker a { text-decoration: none; color: inherit; display: block; }
.speaker .photo { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-sm); background: var(--line); margin-bottom: .8rem; }
.speaker .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .25s ease; }
.speaker a:hover .photo img { transform: scale(1.03); }
.speaker h3 { font-size: 1.7rem; margin: 0 0 .15rem; }
.speaker p { margin: 0; color: var(--slate); font-size: var(--t-sm); }
.role { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: var(--radius-pill); background: var(--ink); color: var(--white); margin-bottom: .45rem; }
.role.keynote, .role.convener { background: var(--charge); color: var(--charge-text); }

/* Agenda: a real sequence, so time runs down the left */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.agenda li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.agenda time { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.agenda h3 { font-family: var(--body); font-weight: 700; font-size: var(--t-md); margin: 0 0 .2rem; line-height: 1.3; }
.agenda p { margin: 0; color: var(--slate); }
.agenda .break h3 { color: var(--slate); font-weight: 600; }
@media (max-width: 560px) { .agenda li { grid-template-columns: 1fr; gap: .3rem; } }

/* Past editions strip */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.edition a { color: inherit; text-decoration: none; display: grid; gap: .7rem; }
.edition .cover { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: var(--ink-2); }
.edition .cover img { width: 100%; height: 100%; object-fit: cover; }
.edition .yr { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: .9; }
.edition p { margin: 0; color: var(--slate); }
.on-ink .edition p { color: #c9cee8; }

/* Sponsors */
.sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; list-style: none; padding: 0; margin: 0; }
.sponsors img { max-height: 64px; width: auto; }
.tier { font-weight: 700; color: var(--slate); margin-bottom: .75rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: var(--t-md); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font: 800 1.8rem/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.2rem; color: var(--slate); }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { font-size: var(--t-sm); color: var(--slate); margin: -.2rem 0 .4rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(26,47,191,.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: var(--t-sm); font-weight: 600; margin-top: .35rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--ink); }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); border-left: 5px solid var(--cobalt); background: var(--white); }
.notice.ok { border-color: var(--ok); }
.notice.error { border-color: var(--danger); }

/* Footer */
.site-footer { background: var(--ink); color: #c9cee8; padding-block: 3.5rem 2rem; font-size: var(--t-sm); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 1.6rem; color: var(--white); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.footer-grid ul a { display: inline-block; padding: .35rem 0; }
.footer-base { border-top: 1px solid var(--ink-2); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Prose (blog, edition descriptions) */
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.6em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2rem; border-left: 4px solid var(--charge); font-style: italic; }
.prose ul { padding-left: 1.2rem; }

/* ===== Photo-led direction (v2) ===== */

/* Hero: a real photo of the hall, full bleed. Text sits on a dark fade at the bottom left. */
.photo-hero { position: relative; min-height: min(88vh, 46rem); display: grid; align-items: end; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.photo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,20,80,0) 30%, rgba(11,20,80,.88) 100%),
              linear-gradient(90deg, rgba(11,20,80,.7) 0%, rgba(11,20,80,.15) 55%, rgba(11,20,80,0) 75%); }
.photo-hero .wrap { padding-block: 6rem clamp(2.5rem, 6vw, 4.5rem); }
.photo-hero h1 { font-size: clamp(3.4rem, 10vw, 7rem); max-width: 12ch; margin-bottom: .25em; }
.photo-hero .lede { color: #e3e6f6; font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 44ch; }
.next-edition { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin: 1.5rem 0 1.75rem; }
.next-edition .when { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--charge-on-dark); }
.next-edition .where { color: #e3e6f6; }
.photo-credit { position: absolute; right: var(--gutter); bottom: 1rem; font-size: .8rem; color: rgba(255,255,255,.75); }
@media (max-width: 700px) { .photo-hero { min-height: 38rem; } .photo-hero > img { object-position: 70% 60%; } .photo-credit { display: none; } }

/* Mosaic: one large photo and smaller ones; the large one changes side per row */
.mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(9rem, 16vw, 13rem); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.mosaic li { overflow: hidden; border-radius: var(--radius-sm); background: var(--line); }
.mosaic li:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.mosaic li:nth-child(6n+5) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; } .mosaic li:nth-child(6n+5) { grid-column: span 2; } }

/* Edition feature: photo half, words half */
.edition-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.edition-feature + .edition-feature { margin-top: clamp(3rem, 7vw, 5rem); }
.edition-feature:nth-of-type(even) .photo { order: 2; }
.edition-feature .photo { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); }
.edition-feature .photo img { width: 100%; height: 100%; object-fit: cover; }
.edition-feature .yr { font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: .85; color: var(--ink); display: block; }
.on-ink .edition-feature .yr { color: var(--charge-on-dark); }
.edition-feature h3 { font-size: var(--t-xl); margin-top: .3rem; }
.edition-feature .facts { color: var(--slate); margin-bottom: 1rem; }
.on-ink .edition-feature .facts { color: #c9cee8; }
@media (max-width: 800px) { .edition-feature { grid-template-columns: 1fr; } .edition-feature:nth-of-type(even) .photo { order: 0; } }

/* Registration band: only rendered while registration is open */
.reg-band { background: var(--charge); color: var(--charge-text); }
.reg-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.4rem; }
.reg-band p { margin: 0; font-size: var(--t-md); }
.reg-band strong { font-family: var(--display); font-size: 1.9rem; font-weight: 800; display: block; line-height: 1; }

/* Quote over photo */
.quote-photo { position: relative; color: var(--white); isolation: isolate; margin: 0; }
.quote-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote-photo::before { content: ""; position: absolute; inset: 0; background: rgba(11,20,80,.8); z-index: -1; }
.quote-photo blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; max-width: 22ch; }
.quote-photo figcaption { margin-top: 1.2rem; color: #c9cee8; }
.state-note { font-size: var(--t-sm); color: var(--slate); border-left: 3px solid var(--line); padding-left: .8rem; margin: 0 0 1rem; }

/* ===== Phase 1 pages ===== */
.narrow { max-width: 48rem; }
.small { font-size: var(--t-sm); color: var(--slate); }
.small-head { font: 700 var(--t-base)/1.3 var(--body); color: var(--slate); margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-weight: 700; color: var(--charge-on-dark); }
.crumbs { font-size: var(--t-sm); margin-bottom: .75rem; color: inherit; }
.crumbs a { color: inherit; }
.on-ink .crumbs a, .photo-hero .crumbs a { color: #e3e6f6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.opt { font-weight: 400; color: var(--slate); font-size: var(--t-sm); }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.notice a { color: var(--danger); }
.notice + .notice, .notice + .form, .notice + form { margin-top: 1rem; }
form > .notice { margin-bottom: 1rem; }
.btn-big { min-height: 56px; padding-inline: 2rem; font-size: var(--t-md); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }

/* Inner page header */
.page-head .wrap { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.page-head h1 { font-size: clamp(3rem, 9vw, 5.5rem); margin-bottom: .2em; }
.page-head .lede { margin: 0; }

/* Event hero */
.photo-hero--event { min-height: min(80vh, 42rem); }
.photo-hero--event h1 { max-width: 16ch; }
.event-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0; }
.event-facts dt { font-size: var(--t-sm); color: #c9cee8; }
.event-facts dd { margin: 0; font-weight: 700; font-size: var(--t-md); }
.edition-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.edition-links a { display: flex; gap: 1rem; align-items: baseline; text-decoration: none; font-size: var(--t-md); font-weight: 600; padding: .6rem 0; border-bottom: 1px solid var(--ink-2); }
.edition-links .yr { font: 900 2.2rem/1 var(--display); min-width: 4.5rem; }
.edition-links.on-paper a { color: var(--ink); border-color: var(--line); }
.agenda time small { font-size: .55em; margin-left: .15em; }
.agenda .who { font-weight: 600; color: var(--ink); }

/* Posts */
.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2rem 1.5rem; }
.post-item a { color: inherit; text-decoration: none; display: grid; gap: .5rem; }
.post-item .photo { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: var(--line); }
.post-item .photo img { width: 100%; height: 100%; object-fit: cover; }
.post-item time { font-size: var(--t-sm); color: var(--slate); }
.post-item h3 { font-size: 1.6rem; margin: 0; }
.post-item a:hover h3 { text-decoration: underline; text-underline-offset: .12em; }
.post-item p { margin: 0; color: var(--slate); }
.post-head { padding-bottom: 1.5rem; }
.post-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.post-meta { color: var(--slate); }
.post-cover img { width: 100%; border-radius: var(--radius-sm); max-height: 40rem; object-fit: cover; }

/* Profiles (speaker, founder) */
.profile-grid { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.profile-photo img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.profile h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }
.spoke-at { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.spoke-at .role { margin: 0 .4rem 0 0; }
.profile-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 600; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } .profile-photo { max-width: 22rem; } }

/* About, partner, contact layouts */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-photos { display: grid; gap: .6rem; }
.about-photos img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem; }
.pillars h2 { font-size: var(--t-xl); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.contact-list span { display: block; font-size: var(--t-sm); color: var(--slate); }
.contact-list a { font-weight: 700; font-size: var(--t-md); }
.register-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.register-aside { background: var(--white); border-radius: var(--radius-sm); padding: 1.5rem; position: sticky; top: 1rem; }
.register-aside h2 { font-size: var(--t-xl); }
.steps { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .5rem; }
@media (max-width: 860px) { .about-grid, .contact-grid, .register-grid, .pillars { grid-template-columns: 1fr; } .register-aside { position: static; } }
.mosaic--four { grid-template-columns: repeat(4, 1fr); }
.mosaic--four li:nth-child(n) { grid-column: auto; grid-row: auto; }
.mosaic a { display: block; height: 100%; }
.sponsor-name { font-weight: 800; font-size: var(--t-md); color: var(--ink); }
.sponsors + .small-head { margin-top: 2rem; }
.sponsor-strip .sponsors { margin-bottom: 1.25rem; }

/* Ticket */
.ticket-page .pass { max-width: 26rem; margin: 0 auto; transform: none; }
.pass--ticket .pass-stub { flex-direction: column; align-items: center; }
.qr { background: var(--white); border-radius: var(--radius-sm); width: 12rem; height: 12rem; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr svg path, .qr svg rect { fill: var(--ink); }
.ticket-code { margin: 0; text-align: center; font: 900 1.8rem/1 var(--display); letter-spacing: .06em; }
.ticket-code span { display: block; font: 700 var(--t-sm) var(--body); letter-spacing: 0; margin-bottom: .2rem; }
.ticket-help { text-align: center; margin: 1.5rem auto 0; display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
@media print { .site-header, .site-footer, .ticket-help, .skip { display: none !important; } body { background: #fff; } .pass { box-shadow: none; } }

/* Footer newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: center; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--ink-2); }
.newsletter h2 { color: var(--white); font-size: var(--t-xl); margin-bottom: .3rem; }
.newsletter p { margin: 0; }
.newsletter form { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter input[type=email] { flex: 1 1 14rem; min-height: 48px; padding: .7rem 1rem; font: inherit; border-radius: var(--radius-pill); border: 2px solid transparent; background: var(--white); color: var(--ink); }
.newsletter input[type=email]:focus { outline: 3px solid var(--charge-on-dark); outline-offset: 2px; }
.nl-msg { flex-basis: 100%; color: var(--white); font-weight: 600; }
.nl-err { color: var(--charge-on-dark); }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

.footer-logo { width: 160px; height: auto; margin-bottom: 1rem; }

/* ===== Phase 2 ===== */
/* Speaker without a photo yet */
.initials { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 4/5; background: var(--ink); color: var(--white); font: 900 clamp(3rem, 8vw, 4.5rem)/1 var(--display); letter-spacing: .02em; border-radius: var(--radius-sm); }
.speaker .photo .initials { border-radius: 0; }
/* Social icons */
.socials { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.socials a { display: inline-flex; align-items: center; gap: .4rem; min-width: 40px; min-height: 40px; justify-content: center; border-radius: var(--radius-pill); color: var(--ink); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.socials a:hover { color: var(--white); background: var(--logo-blue); border-color: var(--logo-blue); }
.socials--profile a { padding: .45rem 1rem .45rem .8rem; min-height: 44px; }
.socials--profile { margin-bottom: 1.5rem; }
.speaker .socials a { background: transparent; }
/* Speaker self-update */
.current-photo img { width: 8rem; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .6rem; }
.form h2 { font-size: var(--t-xl); margin: 1rem 0 0; }

/* Homepage hero slider: slides stack in one grid cell, so the hero is as tall as the tallest slide */
.hero-slider { position: relative; background: var(--ink); }
.hero-slider .slides { display: grid; }
.hero-slider .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero-slider .slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }
.hero-slider .slide .wrap { padding-bottom: clamp(5.5rem, 9vw, 7rem); }
.slide-title { font-size: clamp(3rem, 9vw, 6.5rem); max-width: 14ch; margin-bottom: .25em; color: var(--white); }
.slider-controls { position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 3vw, 2rem); margin-inline: auto; z-index: 2; display: flex; align-items: center; gap: .5rem; }
.slider-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(11,20,80,.35); color: var(--white); cursor: pointer; }
.slider-btn:hover { background: rgba(11,20,80,.7); border-color: var(--white); }
.slider-dots { display: flex; gap: .1rem; }
.slider-dot { width: 32px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.slider-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255,255,255,.45); }
.slider-dot[aria-current="true"]::before { background: var(--white); }
.slider-pause .i-play { display: none; }
.slider-pause.is-paused .i-play { display: inline; }
.slider-pause.is-paused .i-pause { display: none; }
.slider-pause { margin-left: auto; }
.hero-slider :focus-visible { outline-color: var(--white); }
@media (prefers-reduced-motion: reduce) { .hero-slider .slide { transition: none; } }

/* Photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,9,40,.96); color: var(--white); }
.lightbox::backdrop { background: rgba(5,9,40,.9); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4.5rem 1rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { padding: .8rem 0 0; text-align: center; color: #e3e6f6; max-width: 60ch; }
.lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(11,20,80,.6); color: var(--white); cursor: pointer; font: 400 2rem/1 var(--body); }
.lb-btn:hover { border-color: var(--white); background: var(--ink-2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 1.4rem; left: 1.25rem; margin: 0; font-weight: 700; color: #e3e6f6; }
.lightbox :focus-visible { outline-color: var(--white); }
@media (max-width: 700px) { .lightbox figure { padding: 4rem .5rem 5.5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }
.mosaic a { cursor: zoom-in; }

/* Cookie notice: fixed, so it never shifts the page */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 46rem; margin-inline: auto; background: var(--ink); color: var(--white); border-radius: 10px; padding: 1rem 1.2rem; box-shadow: 0 12px 36px rgba(5,9,40,.35); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 22rem; font-size: var(--t-sm); }
.consent a { color: var(--white); }
.consent-actions { display: flex; gap: .5rem; }
.consent .btn-line { color: var(--white); }
.consent :focus-visible { outline-color: var(--white); }
.footer-links { display: inline-flex; gap: 1.25rem; align-items: center; }
.site-footer .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--white); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
