/* ================================================================
   PRAXIS — praxisottawa.ca
   Palette: ink #241611, ground #f7f2e9, yellow #ffe14a, paper #e8e1d3
   Font: Syne (Google Fonts, 400-800)
   Radius: 0 everywhere. Borders: 2px. Gutter: 72 / 40 / 24.
   ================================================================ */

:root {
  --ink: #241611;
  --ground: #f7f2e9;
  --yellow: #ffe14a;
  --paper: #e8e1d3;
  --body-text: #4c3a31;
  --note: #6f5b50;
  --accent-text: #7a4b08;
  --ink-light: #c4ab9c;
  --ink-muted: #a58d7e;
  --ink-hover: #3a2419;
  --ink-pressed: #160d09;
  --yellow-hover: #fff0a0;
  --yellow-pressed: #f5c81f;
  --gutter: 72px;
  --font: 'Syne', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, button, textarea { font-family: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }


/* === TYPOGRAPHY === */
.hero-text { font-size: 62px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; text-wrap: pretty; }
.hero-bold { font-size: 62px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.section-heading { font-size: 34px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }
.display-number { font-size: 132px; font-weight: 400; line-height: 0.72; letter-spacing: -0.045em; }
.row-title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.body-text { font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--body-text); }
.about-body { font-size: 17px; font-weight: 400; line-height: 1.55; color: var(--body-text); }
.small-note { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--note); }
.micro-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-text);
}


/* === LAYOUT === */
.page-gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { height: 2px; background: var(--ink); margin: 0 var(--gutter); }
.rule-full { height: 2px; background: var(--ink); }
.rule-light { height: 2px; background: rgba(247, 242, 233, 0.25); }


/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: flex-start;
  gap: 6px; cursor: pointer; text-decoration: none;
  font-weight: 500;
  font-size: 15px; line-height: 1.2;
  padding: 16px 22px; border: none; border-radius: 0;
  transition: background-color 150ms;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn-ink {
  background: var(--ink); color: var(--ground);
}
.btn-ink:hover { background: var(--ink-hover); color: var(--ground); }
.btn-ink:active { background: var(--ink-pressed); }

.btn-ink-yellow {
  background: var(--ink); color: var(--yellow);
}
.btn-ink-yellow:hover { background: var(--ink-hover); color: var(--yellow); }
.btn-ink-yellow:active { background: var(--ink-pressed); }

.btn-yellow {
  background: var(--yellow); color: var(--ink);
}
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-yellow:active { background: var(--yellow-pressed); }

.btn-subscribe {
  height: 50px; font-size: 14px; padding: 0 22px;
  background: var(--ink); color: var(--ground);
  border: none; border-radius: 0; cursor: pointer; font-weight: 500;
}
.btn-subscribe:hover { background: var(--ink-hover); }


/* === FORMS === */
.input-email {
  flex: 1; height: 50px; font-size: 15px; font-weight: 400;
  border: 2px solid var(--ink); background: transparent;
  padding: 0 14px; border-radius: 0; color: var(--ink);
  font-family: var(--font);
  min-width: 0;
}
.input-email::placeholder { color: var(--note); }
.input-email:focus-visible { border-color: var(--accent-text); outline: none; }

.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 6px; max-width: 440px; cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; margin: 2px 0 0;
  accent-color: var(--ink); flex: none;
}
.checkbox-label span {
  font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--body-text);
}
.checkbox-label a { color: var(--body-text); }


/* === FORM VALIDATION === */
.form-error {
  font-size: 13px; color: #c0392b; margin-top: 4px;
  display: none; line-height: 1.4;
}
.form-error.is-visible { display: block; }
.input-email.has-error,
.input-text.has-error,
.input-textarea.has-error { border-color: #c0392b; }
.checkbox-label.has-error span { color: #c0392b; }

.form-success-card {
  padding: 20px; margin-top: 14px;
  background: #f0f7f0; border-left: 3px solid #2d8a4e;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 1.5; color: var(--body-text);
}
.form-success-card svg { flex-shrink: 0; margin-top: 2px; }


/* === SPEAKER SUBMISSION FORM === */
.speak-form {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 14px; max-width: 480px;
}
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.form-field .optional { font-weight: 400; color: var(--note); }
.input-text {
  height: 46px; font-size: 15px; font-weight: 400;
  border: 2px solid var(--ink); background: transparent;
  padding: 0 14px; border-radius: 0; color: var(--ink);
  font-family: var(--font);
}
.input-text::placeholder { color: var(--note); }
.input-text:focus-visible { border-color: var(--accent-text); outline: none; }
.input-textarea {
  font-size: 15px; font-weight: 400;
  border: 2px solid var(--ink); background: transparent;
  padding: 12px 14px; border-radius: 0; color: var(--ink);
  font-family: var(--font); resize: vertical; min-height: 100px;
}
.input-textarea::placeholder { color: var(--note); }
.input-textarea:focus-visible { border-color: var(--accent-text); outline: none; }
.speak-form-success {
  display: none; margin-top: 14px;
  font-size: 17px; line-height: 1.55; color: var(--body-text);
}
.speak-form.is-submitted { display: none; }
.speak-form.is-submitted ~ .speak-form-success { display: block; }


/* === NAVIGATION === */
.nav-header { padding: 26px var(--gutter); }
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
  display: flex; align-items: baseline; gap: 14px;
}
.nav-brand .wordmark {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.nav-brand .nav-subtitle {
  font-size: 13px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--note); text-decoration: none;
}
.nav-brand .nav-subtitle:hover { color: var(--ink); }
.nav-links {
  display: flex; gap: 32px; font-size: 13px; font-weight: 400; letter-spacing: 0.02em;
  align-items: center;
}
.nav-links a {
  color: var(--ink); text-decoration: none;
}
.nav-links a:hover { color: var(--accent-text); }
.nav-links a.current {
  border-bottom: 2px solid var(--accent-text); padding-bottom: 2px;
}

.lang-toggle {
  font-size: 11px !important; font-weight: 600 !important; letter-spacing: 0.06em;
  text-transform: uppercase; color: #f7f2e9 !important; text-decoration: none;
  background: var(--ink); padding: 5px 9px;
  margin-left: 8px; display: inline-block; line-height: 1.2;
}
.lang-toggle:hover { background: var(--ink-hover, #3a2419); color: #f7f2e9 !important; text-decoration: none; }
.nav-lang-mobile { display: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 6px;
  align-items: stretch;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  transition: transform 200ms, opacity 200ms;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--ink); position: fixed; inset: 0; z-index: 100;
  padding: 26px var(--gutter);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.mobile-menu-header .wordmark {
  font-size: 15px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ground);
  text-decoration: none;
}
.mobile-menu-close {
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center;
}
.mobile-menu-close svg { stroke: var(--ground); }
.mobile-menu-nav {
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu-nav a {
  font-size: 34px; font-weight: 400; letter-spacing: -0.015em;
  color: var(--ground); text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid rgba(247, 242, 233, 0.15);
}
.mobile-menu-nav a:hover { color: var(--yellow); }
.mobile-menu-footer {
  margin-top: auto; padding-bottom: 40px;
}
.mobile-menu-footer a {
  color: var(--ink-light); text-decoration: none; font-size: 14px;
}


/* === HERO (homepage) === */
.hero {
  padding: 96px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 300px; gap: 72px;
  align-items: start;
}
.hero-content { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.hero-sidebar {
  display: flex; flex-direction: column; align-self: stretch;
}
.hero-sidebar-photo {
  width: 100%; flex: 1; min-height: 0;
  object-fit: cover; object-position: 50% 45%;
}
.hero-sidebar-content {
  border-top: 2px solid var(--accent-text); padding-top: 12px; margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-sidebar .micro-label { color: var(--accent-text); }
.speaker-list {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 16px; font-weight: 400; line-height: 1.3;
}


/* === EVENT BAND (homepage) === */
.event-band {
  background: var(--yellow); color: var(--ink);
  padding: 36px var(--gutter) 40px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 64px; flex-wrap: wrap;
  margin-top: 56px;
}
.event-band-left {
  display: flex; flex-direction: column; gap: 26px;
}
.event-band-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-text);
}
.event-band-details {
  display: flex; align-items: flex-end; gap: 36px;
}
.event-band-divider {
  width: 2px; align-self: stretch; background: var(--ink);
}
.event-detail-stack {
  display: flex; flex-direction: column; gap: 5px;
}
.event-detail-primary { font-size: 20px; font-weight: 500; line-height: 1.25; }
.event-detail-secondary { font-size: 16px; font-weight: 400; line-height: 1.35; color: var(--accent-text); }
.event-band-right {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px; max-width: 270px;
}
.event-band-right p { font-size: 16px; font-weight: 400; line-height: 1.45; }

.event-band-location a {
  color: var(--ink); text-decoration: none;
}
.event-band-location a:hover { text-decoration: underline; }


/* === NEWSLETTER / CTA PAIR === */
.newsletter-cta-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch; border-top: 2px solid var(--ink);
}
.newsletter-cell {
  background: var(--paper); padding: 56px 56px 60px var(--gutter);
  display: flex; flex-direction: column; gap: 14px;
}
.newsletter-form { display: flex; margin-top: 6px; max-width: 440px; }
.newsletter-success {
  display: none; font-size: 15px; line-height: 1.5; color: var(--body-text);
  margin-top: 6px;
}
.newsletter-cell.is-subscribed .newsletter-form,
.newsletter-cell.is-subscribed .checkbox-label { display: none; }
.newsletter-cell.is-subscribed .newsletter-success { display: block; }

.cta-cell {
  background: var(--ink); color: var(--ground);
  padding: 56px var(--gutter) 60px 56px;
  display: flex; flex-direction: column; gap: 14px;
}
.cta-cell .body-text { color: var(--ink-light); max-width: 380px; }
.cta-cell .btn-yellow { margin-top: 6px; }


/* === INSTAGRAM STRIP === */
.instagram-strip { padding: 48px var(--gutter) 64px; }
.instagram-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.instagram-grid img {
  aspect-ratio: 1; width: 100%; object-fit: cover;

}


/* === FOOTER === */
.footer { background: var(--ink); color: var(--ground); }
.footer-upper {
  padding: 48px var(--gutter) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .wordmark {
  font-size: 17px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ground); text-decoration: none;
}
.footer-brand p {
  font-size: 14px; font-weight: 400; line-height: 1.5;
  color: var(--ink-light); max-width: 260px;
}
.footer-brand a { color: var(--yellow); text-decoration: none; }
.footer-brand a:hover { color: var(--yellow-hover); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted);
}
.footer-col-links { display: flex; flex-direction: column; gap: 4px; }
.footer-col-links a {
  color: var(--ground); text-decoration: none;
  font-size: 14px; font-weight: 400; line-height: 1.6;
  display: flex; align-items: center; gap: 8px;
}
.footer-col-links a:hover { color: var(--yellow); }
.footer-col-links a svg { flex-shrink: 0; }

.footer-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-cta .footer-col-label { margin-bottom: 0; }
.footer-cta p { font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--ink-light); }
.footer-cta .btn-yellow { font-size: 15px; padding: 14px 20px; }

.footer-lower {
  border-top: 2px solid rgba(247, 242, 233, 0.25);
  padding: 18px var(--gutter) 24px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 32px; flex-wrap: wrap;
  font-size: 12px; font-weight: 400; color: var(--ink-muted);
}
.footer-lower-links { display: flex; gap: 22px; }
.footer-lower-links a {
  color: var(--ink-muted); text-decoration: none;
}
.footer-lower-links a:hover { color: var(--yellow); }

.footer-location-link {
  display: flex; align-items: center; gap: 6px;
}
.footer-location-link svg { flex-shrink: 0; }


/* === GALLERY MODAL === */
.gallery-thumb {
  background: none; border: none; padding: 0; cursor: pointer;
  display: block; width: 100%;
}
.gallery-thumb:hover .past-talk-image { opacity: 0.8; }
.gallery-thumb-label {
  display: block; margin-top: 6px;
  font-size: 13px; font-weight: 500; color: var(--accent-text);
  text-align: left;
}
.gallery-thumb:hover .gallery-thumb-label { text-decoration: underline; }
.gallery-trigger {
  background: none; border: none; cursor: pointer;
  font-family: var(--font);
}

.gallery-modal {
  display: none; position: fixed; inset: 0; z-index: 200;
}
.gallery-modal.is-open { display: flex; }
.gallery-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(36, 22, 17, 0.75);
  backdrop-filter: blur(4px);
}
.gallery-modal-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 960px; max-height: 100vh;
  margin: 0 auto;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 24px var(--gutter) 48px;
}
.gallery-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 24px; position: sticky; top: 0; z-index: 2;
  background: transparent;
}
.gallery-modal-title {
  font-size: 20px; font-weight: 500; color: var(--ground);
}
.gallery-modal-close {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); border: 2px solid var(--ground);
  cursor: pointer; flex-shrink: 0;
  color: var(--ground);
  transition: background 150ms;
}
.gallery-modal-close:hover { background: var(--ink-hover); }
.gallery-modal-close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item {
  margin: 0;
}
.gallery-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;

}
.gallery-item figcaption {
  font-size: 12px; color: var(--ink-light); margin-top: 6px;
  line-height: 1.4; min-height: 1.4em;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-modal-content { padding: 16px var(--gutter) 32px; }
  .gallery-modal-title { font-size: 17px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
}


/* === TALKS PAGE === */
.talks-about {
  padding: 72px var(--gutter) 48px;
  display: grid; grid-template-columns: 1fr 300px; gap: 72px;
  align-items: end;
}
.talks-about-content { display: flex; flex-direction: column; gap: 10px; }
.talks-about-body {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 720px; margin-top: 14px;
}
.talks-about-photo-mobile { display: none; }
.talks-about-photo-mobile img { width: 100%; }
.talks-about-sidebar {
  display: flex; flex-direction: column;
}
.talks-sidebar-photo {
  width: 100%; margin-bottom: 12px;
}
.talks-sidebar-text {
  border-top: 2px solid var(--ink); padding-top: 12px;
  font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--body-text);
}

.talks-section-header {
  padding: 56px var(--gutter) 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 32px;
}

.next-talk-row {
  background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 28px var(--gutter);
  display: grid; grid-template-columns: 130px 1fr 200px; gap: 32px;
  align-items: start;
}
.talk-number { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.talk-date-note { font-size: 13px; color: var(--accent-text); margin-top: 2px; }

.talk-main { display: flex; flex-direction: column; gap: 8px; }
.talk-description { font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--accent-text); max-width: 420px; }

.talk-speakers-col { display: flex; flex-direction: column; gap: 6px; }
.talk-speakers-list {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 15px; font-weight: 400; line-height: 1.35;
}

.talk-venue-col { font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--accent-text); }
.talk-venue-col a { color: inherit; text-decoration: none; }
.talk-venue-col a:hover { text-decoration: underline; }

.registration-bar {
  background: var(--ink); color: var(--ground);
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.registration-bar p { font-size: 20px; font-weight: 400; line-height: 1.35; max-width: 560px; }

.past-talks { padding: 0 var(--gutter) 56px; display: flex; flex-direction: column; }
.past-talk-row {
  border-top: 2px solid var(--ink); padding: 28px 0;
  display: grid; grid-template-columns: 130px 1fr 200px 200px; gap: 32px;
  align-items: start;
}
.past-talk-row-simple {
  grid-template-columns: 130px 1fr 200px;
}
.past-talk-row .talk-description { color: var(--body-text); }
.past-talk-row .talk-date-note { color: var(--note); }
.past-talk-row .talk-venue-col { color: var(--note); }
.past-talk-gallery-link {
  font-size: 13px; font-weight: 500; color: var(--accent-text);
  text-decoration: none;
}
.past-talk-gallery-link:hover { text-decoration: underline; }
.past-talk-image {
  width: 100%; height: 120px; object-fit: cover;

}
.past-talks-end-rule { border-top: 2px solid var(--ink); }

.no-event-message {
  padding: 48px var(--gutter);
  text-align: center;
}
.no-event-message p {
  font-size: 20px; font-weight: 400; line-height: 1.4; color: var(--body-text);
  max-width: 500px; margin: 0 auto;
}


/* === SPEAK PAGE === */
.page-hero {
  padding: 72px var(--gutter) 0;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 900px;
}

.page-sections { padding: 0 var(--gutter); }
.page-section {
  padding: 48px 0;
  border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: 280px 1fr; gap: 72px;
  align-items: start;
}
.page-section:last-child { padding-bottom: 64px; }
.section-label {
  position: sticky; top: 80px;
}
.section-body {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 600px;
}
.section-body p { font-size: 17px; line-height: 1.55; color: var(--body-text); }


/* === ABOUT PAGE === */
.about-photo-band {
  position: relative; height: 420px; overflow: hidden;
  margin: 0;
}
.about-photo-band img {
  width: 100%; height: 100%; object-fit: cover;

  object-position: 50% 60%;
}
.about-photo-band figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--ground);
  padding: 14px 22px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}


/* === CONNECT PAGE === */
.connect-grid {
  padding: 0 var(--gutter) 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.connect-card {
  padding: 48px; display: flex; flex-direction: column; gap: 14px;
  border-top: 2px solid var(--ink);
}
.connect-card:nth-child(odd) { padding-left: 0; border-right: 2px solid var(--ink); padding-right: 48px; }
.connect-card:nth-child(even) { padding-right: 0; padding-left: 48px; }
.connect-card .section-heading { font-size: 26px; }
.connect-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; color: var(--ink); text-decoration: none;
}
.connect-link:hover { color: var(--accent-text); }
.connect-link svg { flex-shrink: 0; }

.connect-newsletter {
  padding: 56px var(--gutter) 64px; background: var(--paper);
  border-top: 2px solid var(--ink);
}
.connect-newsletter-inner {
  max-width: 520px;
  display: flex; flex-direction: column; gap: 14px;
}


/* === MOBILE STICKY REGISTRATION BAR === */
.mobile-register-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--ink); color: var(--ground);
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  border-top: 2px solid var(--yellow);
  align-items: center; justify-content: space-between; gap: 12px;
}
.mobile-register-bar .bar-info {
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-register-bar .bar-date {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.mobile-register-bar .bar-venue {
  font-size: 12px; color: var(--ink-light);
}
.mobile-register-bar .bar-venue a { color: var(--ink-light); text-decoration: none; }
.mobile-register-bar .bar-venue a:hover { color: var(--yellow); }
.mobile-register-bar .btn-yellow {
  font-size: 14px; padding: 12px 18px; white-space: nowrap; flex-shrink: 0;
}
.mobile-register-bar.is-hidden { display: none !important; }

body.has-mobile-bar { padding-bottom: 72px; }


/* === MOBILE DIRECTIONS BUTTON === */
.directions-btn {
  display: none;
  align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  padding: 12px 18px;
  border: 2px solid var(--ink); border-radius: 0;
  margin-top: 10px;
}
.directions-btn svg { flex-shrink: 0; }


/* === PLACEHOLDER MARKERS === */


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .hero-text, .hero-bold { font-size: 48px; }
  .display-number { font-size: 100px; }
  .hero { grid-template-columns: 1fr 240px; gap: 40px; }
  .talks-about { grid-template-columns: 1fr 240px; gap: 40px; }
  .footer-upper { grid-template-columns: 1fr 1fr; gap: 32px; }
  .next-talk-row { grid-template-columns: 100px 1fr 160px; gap: 24px; }
  .past-talk-row { grid-template-columns: 100px 1fr 160px 160px; gap: 24px; }
  .page-section { grid-template-columns: 200px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }

  /* Typography scale down */
  .hero-text { font-size: 36px; }
  .hero-bold { display: none; }
  .display-number { font-size: 88px; }
  .section-heading { font-size: 28px; }
  .row-title { font-size: 18px; }

  /* Nav: hide links, show toggle + lang, tighter tracking */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-lang-mobile { display: block; margin-right: 4px; }
  .nav-brand .wordmark,
  .nav-brand .nav-subtitle { font-size: 12px; letter-spacing: 0.12em; }
  .nav-brand { gap: 8px; }
  .rule { display: none; }
  .nav-header { border-bottom: 2px solid var(--ink); margin-bottom: 0; }

  /* Hero stacks: tagline first, then photo, then speakers */
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .hero-content { order: 1; }
  .hero-sidebar { order: 2; }
  .hero-sidebar-photo { max-height: 220px; order: 1; }
  .hero-sidebar-content { order: 2; }

  /* Event band stacks */
  .event-band { flex-direction: column; align-items: flex-start; gap: 32px; padding: 28px var(--gutter) 32px; }
  .event-band-details { flex-wrap: wrap; gap: 24px; }
  .event-band-divider { display: none; }
  .event-band-right { max-width: none; width: 100%; }

  /* Mobile: prominent register button + directions */
  .event-band .btn { width: 100%; justify-content: center; font-size: 17px; padding: 18px 22px; }
  .directions-btn { display: inline-flex; width: 100%; justify-content: center; }

  /* Newsletter/CTA pair stacks */
  .newsletter-cta-pair { grid-template-columns: 1fr; }
  .newsletter-cell { padding: 40px var(--gutter); }
  .cta-cell { padding: 40px var(--gutter); }
  .cta-cell .section-heading { min-height: auto; }
  .cta-cell .btn-yellow { margin-bottom: 0; }

  /* Instagram: 3-up */
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .instagram-grid img:nth-child(n+4) { display: none; }

  /* Footer stacks */
  .footer-upper { grid-template-columns: 1fr; gap: 28px; }
  .footer-lower { flex-direction: column; gap: 12px; }

  /* Talks page: title, photo, body copy on mobile */
  .talks-about { grid-template-columns: 1fr; gap: 24px; padding: 48px var(--gutter) 40px; }
  .talks-about-sidebar { display: none; }
  .talks-about-photo-mobile { display: block; margin-top: 8px; }
  .talks-section-header { padding-top: 40px; }

  .next-talk-row {
    grid-template-columns: 1fr;
    gap: 20px; padding: 24px var(--gutter);
  }
  .next-talk-row .talk-venue-col a { text-decoration: underline; }

  .registration-bar { flex-direction: column; align-items: stretch; gap: 16px; }
  .registration-bar p { font-size: 17px; }
  .registration-bar .btn { width: 100%; justify-content: center; font-size: 17px; padding: 18px; }

  .past-talk-row {
    grid-template-columns: 1fr; gap: 16px; padding: 24px 0;
  }
  .past-talk-row .past-talk-image { height: 180px; }

  /* Mobile sticky register bar */
  .mobile-register-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 72px; }

  /* Page sections stack */
  .page-section { grid-template-columns: 1fr; gap: 16px; }
  .section-label { position: static; }

  /* About photo */
  .about-photo-band { height: 260px; }

  /* Connect grid stacks */
  .connect-grid { grid-template-columns: 1fr; }
  .connect-card:nth-child(odd) { border-right: none; padding-right: 0; }
  .connect-card:nth-child(even) { padding-left: 0; }

  /* Talks page: mobile-first venue link */
  .talk-venue-col a { text-decoration: underline; }
}

@media (max-width: 480px) {
  .hero-text { font-size: 28px; }
  .display-number { font-size: 64px; }
  .section-heading { font-size: 24px; }
  .event-band-details { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
