/* The Founder's Break
   Brand tokens are lifted verbatim from onetouch.studio/public/css/variables.css
   so this page reads as part of the same studio. One accent (emerald), one theme
   (dark), and a two-step radius scale: surfaces 14px, controls 10px. */

:root {
  --bg: #06060b;
  --bg2: #0c0c14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface2: rgba(255, 255, 255, 0.05);
  --accent: #10b981;
  --accent2: #34d399;
  --accent3: #059669;
  --text: #f1f0ff;
  --muted: #8b89a6;
  --fine: #9c9ab5;              /* smallest text: lifted off --muted2 to clear WCAG AA */
  --border: rgba(16, 185, 129, 0.12);
  --border-hover: rgba(16, 185, 129, 0.35);
  --hairline: rgba(255, 255, 255, 0.08);
  --on-accent: #04140f;         /* near-black on emerald. White scores 3.9:1 and fails AA. */

  --r-surface: 14px;
  --r-control: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1200px;
  --gut: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  /* Background lives on html so the z-index:-1 blueprint layer has something to
     sit in front of. A background on body would paint over it. */
  background: var(--bg);
}

body {
  background: transparent;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent2); }

:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r-control) 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ── Blueprint background ─────────────────────────────────────
   A fixed decorative layer: a pool table that draws itself as you scroll, a
   cue ball that rolls across, and a cue that strokes through the break. All of
   it runs on CSS scroll-driven animation, so there is no scroll listener and no
   JavaScript, and it degrades to a still drawing where that is unsupported. */

.bp {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  color: var(--accent);
  /* Faint enough that body copy keeps its contrast at every scroll position. */
  opacity: 0.2;
}

.bp-table {
  position: absolute; top: 50%; left: 50%;
  width: min(118vw, 1320px); height: auto;
  transform: translate(-50%, -50%);
}

.bp-draw {
  /* Every shape carries pathLength="1", so one pair of values draws them all
     at the same rate whatever their real geometry. */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.bp-ball {
  position: absolute; top: 62%; left: 0;
  width: clamp(56px, 8vw, 108px); height: auto;
  transform: translate(-25vw, -50%);
  will-change: transform;
}

.bp-cue {
  position: absolute; top: 62%; left: 0;
  width: min(60vw, 620px); height: auto;
  transform: translate(-120%, -50%);
  opacity: 0;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .bp-draw {
      animation: bp-ink linear both;
      animation-timeline: scroll(root block);
      animation-range: 0% 55%;
    }
    /* Staggered so the table assembles rail, cushion, pockets, lines, rack. */
    .bp-d2 { animation-range: 4% 60%; }
    .bp-d3 { animation-range: 10% 66%; }
    .bp-d4 { animation-range: 18% 74%; }
    .bp-d5 { animation-range: 26% 82%; }

    .bp-ball {
      animation: bp-roll linear both;
      animation-timeline: scroll(root block);
    }
    .bp-cue {
      animation: bp-strike linear both;
      animation-timeline: scroll(root block);
      animation-range: 0% 30%;
    }
  }
}

@keyframes bp-ink { to { stroke-dashoffset: 0; } }

/* Rotation matches the distance travelled closely enough to read as rolling
   rather than spinning in place. */
@keyframes bp-roll {
  from { transform: translate(-25vw, -50%) rotate(0deg); }
  to   { transform: translate(115vw, -50%) rotate(1440deg); }
}

@keyframes bp-strike {
  0%   { transform: translate(-120%, -50%); opacity: 0; }
  55%  { transform: translate(-14%, -50%); opacity: 1; }
  100% { transform: translate(6%, -50%); opacity: 0; }
}

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut);
  background: rgba(6, 6, 11, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav.scrolled { background: rgba(6, 6, 11, 0.95); }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-mark { opacity: 0.9; flex: none; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.02rem; white-space: nowrap; }

.nav-right { display: flex; align-items: center; gap: 1.9rem; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  white-space: nowrap; transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  background: var(--accent); color: var(--on-accent);
  padding: 0.5rem 1.15rem; border-radius: var(--r-control);
  font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent2); }
.nav-cta:active { transform: translateY(1px); }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.9rem; border-radius: var(--r-control);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: var(--on-accent);
  box-shadow: 0 4px 22px rgba(16, 185, 129, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--accent2); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(1px); }
.btn-block { width: 100%; margin-top: 0.4rem; }

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.72; }
.btn[aria-busy="true"]::after {
  content: ""; width: 15px; height: 15px; margin-left: 0.6rem;
  border: 2px solid rgba(4, 20, 15, 0.3); border-top-color: var(--on-accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero: asymmetric split ───────────────────────────────── */

/* Sized by its content, not by 100dvh. A viewport-height hero centred its copy
   a third of the way down a laptop screen and buried the details strip; this
   still clears the fold on a 900px screen and lets the next section peek. */
.hero {
  max-width: var(--shell); margin: 0 auto;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 4rem; align-items: center;
  padding: calc(64px + 3.5rem) var(--gut) 5rem;
}

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  font-weight: 700; line-height: 1.02;
}
.hero-sub {
  margin-top: 1.5rem; max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.4rem; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-surface); border: 1px solid var(--hairline);
}
.hero-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--r-surface);
  background: linear-gradient(190deg, transparent 55%, rgba(6, 6, 11, 0.5));
}

/* ── Countdown ────────────────────────────────────────────── */

.countdown-band { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut) 4.5rem; }

.countdown {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 2.6rem 2rem;
  border: 1px solid var(--border); border-radius: var(--r-surface);
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 68%),
    var(--bg2);
  text-align: center;
}

.countdown-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent2);
}

.countdown-clock {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(1.2rem, 5vw, 3.4rem);
  margin: 1.5rem 0 1.2rem;
}
.countdown-clock .unit { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 3.4ch; }
.countdown-clock .num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.countdown-clock .cap {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
}
/* One-frame lift as a digit changes, so the clock reads as live rather than static. */
.countdown-clock .num.tick { animation: tick 0.42s var(--ease); }
@keyframes tick {
  0%   { transform: translateY(-0.14em); opacity: 0.45; }
  100% { transform: none; opacity: 1; }
}

.countdown-when { color: var(--muted); font-size: 0.95rem; }

.countdown.is-live { border-color: var(--border-hover); }
.countdown.is-live .countdown-label { color: var(--accent2); }
.countdown.is-live .countdown-when { color: var(--text); font-weight: 600; }

/* ── Details: display-value strip ─────────────────────────── */

.details { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut) 6rem; }

.notice {
  margin-bottom: 1.6rem; padding: 0.85rem 1.15rem;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--r-control); background: var(--surface);
  color: var(--text); font-size: 0.92rem;
}

.detail-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.detail { padding: 2rem 1.6rem; }
.detail + .detail { border-left: 1px solid var(--hairline); }
.detail dt {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.55rem;
}
.detail dd {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.25;
}
.detail dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-hover); }
.detail dd a:hover { color: var(--accent2); }

.detail-foot {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted);
}
.detail-foot .is-live { color: var(--accent2); font-weight: 600; }
.ics { color: var(--accent2); text-decoration: none; border-bottom: 1px solid var(--border-hover); }
.ics:hover { border-bottom-color: var(--accent2); }

/* ── Pitch: full-bleed editorial band ─────────────────────── */

.pitch {
  position: relative; isolation: isolate;
  padding: 8rem var(--gut);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.pitch::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--pitch-image);
  background-size: cover; background-position: center;
}
.pitch::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 6, 11, 0.88), rgba(6, 6, 11, 0.94));
}
.pitch-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.pitch h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 700;
  text-wrap: balance;
}
.pitch p { margin-top: 1.5rem; color: var(--muted); font-size: 1.05rem; }
.pitch-kicker { color: var(--text) !important; font-weight: 600; }

/* ── What to expect: bento ────────────────────────────────── */

.expect { max-width: var(--shell); margin: 0 auto; padding: 7rem var(--gut); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 2.6rem; }

.bento {
  display: grid; gap: 1rem;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
}
.cell {
  border: 1px solid var(--hairline); border-radius: var(--r-surface);
  overflow: hidden; background: var(--surface);
}
.cell-photo { grid-row: span 2; border-color: transparent; background: none; }
.cell-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.cell-text { padding: 2rem 1.9rem; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.cell-text:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.cell-tint {
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(16, 185, 129, 0.16), transparent 62%),
    var(--surface);
}
.cell-wide { grid-column: span 2; }
.cell-text h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: 0.65rem; }
.cell-text p { color: var(--muted); font-size: 0.96rem; max-width: 52ch; }

/* ── Venue ────────────────────────────────────────────────── */

.venue {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gut) 7rem;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center;
}
.venue-logo { width: auto; height: clamp(96px, 13vw, 132px); margin-bottom: 1.8rem; opacity: 0.95; }
.venue h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
.venue p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }

.venue address { margin-top: 1.4rem; font-style: normal; }
.venue address a {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 1.12rem; line-height: 1.45; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border-hover);
}
.venue address a:hover { color: var(--accent2); }

.venue-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 1.4rem; font-size: 0.9rem;
}
.venue-meta a { color: var(--accent2); text-decoration: none; border-bottom: 1px solid var(--border-hover); }
.venue-meta a:hover { border-bottom-color: var(--accent2); }
.venue-meta span { color: var(--muted); }

.venue-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-surface); border: 1px solid var(--hairline);
}
.venue-figure figcaption { margin-top: 0.8rem; font-size: 0.82rem; color: var(--fine); }

/* ── RSVP ─────────────────────────────────────────────────── */

.rsvp { padding: 0 var(--gut) 7rem; }
.rsvp-panel {
  max-width: 580px; margin: 0 auto; padding: 2.8rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-surface);
}
.rsvp-panel h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
.rsvp-sub { margin-top: 0.8rem; color: var(--muted); font-size: 0.96rem; }

form { margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input {
  font-family: inherit; font-size: 0.98rem;
  padding: 0.8rem 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-control);
  transition: border-color 0.2s var(--ease);
}
.field input::placeholder { color: var(--fine); }
.field input:hover { border-color: rgba(255, 255, 255, 0.16); }
.field input:focus { border-color: var(--accent); outline: 2px solid var(--accent2); outline-offset: 2px; }
.field-help { font-size: 0.8rem; color: var(--fine); }
.field-error { font-size: 0.8rem; color: #fca5a5; display: none; }
.field.has-error input { border-color: #f87171; }
.field.has-error .field-error { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 0.9rem; font-size: 0.88rem; color: #fca5a5; min-height: 1.2em; }
.fine { margin-top: 0.9rem; font-size: 0.78rem; color: var(--fine); text-align: center; }

.qr {
  display: flex; align-items: center; gap: 1.6rem;
  margin-top: 2.2rem; padding-top: 1.8rem;
  border-top: 1px solid var(--hairline);
}
/* Sized so a phone locks on from a comfortable arm's length, and left
   dark-on-white because inverted codes are unreliable on older scanners. */
.qr-card {
  flex: none; width: 176px; height: 176px; padding: 10px;
  background: #fff; border-radius: var(--r-control); display: block;
}
.qr-card img { width: 100%; height: 100%; }
.qr-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.qr-copy p { font-size: 0.9rem; color: var(--muted); }

/* Focused programmatically so screen readers land on it. It is a region, not a
   control, so it should not paint a focus ring. */
.rsvp-done:focus, .rsvp-done:focus-visible { outline: none; }
.rsvp-done h3 { font-size: 1.4rem; font-weight: 700; }
.done-extra { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }
.done-extra a { color: var(--accent2); text-decoration: none; border-bottom: 1px solid var(--border-hover); }
.rsvp-done p { margin: 0.8rem 0 1.2rem; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 3.2rem var(--gut);
  max-width: var(--shell); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
  align-items: center; justify-content: space-between;
}
.foot-line { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.02rem; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; align-items: center; font-size: 0.87rem; }
.foot-meta a { color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
.foot-meta a:hover { color: var(--accent2); }
.foot-host { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot-host img { opacity: 0.7; }

/* ── Scroll reveal ────────────────────────────────────────── */
/* Only hides when JS is running, so a failed script never eats the page. */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 2.8rem; padding: calc(64px + 2.5rem) var(--gut) 3.5rem; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-photo { grid-row: auto; grid-column: span 2; }
  .cell-photo img { min-height: 220px; max-height: 320px; }
  .cell-wide { grid-column: span 2; }
}

@media (max-width: 1000px) {
  .venue { grid-template-columns: 1fr; gap: 2.4rem; }
  .venue-figure { order: -1; }
}

@media (max-width: 760px) {
  :root { --gut: 1.25rem; }
  .nav-link { display: none; }
  body { font-size: 15px; }

  /* Tighter vertical rhythm: the desktop 7rem gaps read as dead space on a
     phone and push the RSVP several extra swipes away. */
  .details { padding-bottom: 3.5rem; }
  .countdown-band { padding-bottom: 3rem; }
  .countdown { padding: 1.8rem 1rem; }
  .countdown-clock { gap: 0.75rem; margin: 1.2rem 0 1rem; }
  .countdown-clock .num { font-size: clamp(2rem, 11vw, 2.6rem); }
  .countdown-clock .cap { font-size: 0.62rem; letter-spacing: 0.1em; }
  .countdown-when { font-size: 0.88rem; }

  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 1.1rem; }

  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail { padding: 1.2rem 0.9rem; }
  .detail dd { font-size: 1rem; }

  .pitch { padding: 4rem var(--gut); }
  .expect { padding: 4rem var(--gut); }
  .section-title { margin-bottom: 1.8rem; }
  .cell-text { padding: 1.5rem 1.3rem; }
  .venue { padding-bottom: 4rem; }
  .venue-logo { height: 84px; margin-bottom: 1.2rem; }
  .rsvp { padding-bottom: 4rem; }

  /* Bigger tap targets and no iOS zoom-on-focus (which needs >=16px). */
  .field input { font-size: 16px; padding: 0.85rem 0.9rem; }
  .btn { padding: 0.9rem 1.5rem; }

  /* The table drawing is mostly off-screen on a narrow viewport, so lean on
     the ball and cue instead and keep the layer cheap to paint. */
  .bp { opacity: 0.17; }
  .bp-table { width: 190vw; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail { padding: 1.4rem 1.1rem; }
  .detail:nth-child(odd) { border-left: 0; }
  .detail:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .bento { grid-template-columns: 1fr; }
  .cell-photo, .cell-wide { grid-column: auto; }
  .pitch { padding: 5rem var(--gut); }
  .expect { padding: 5rem var(--gut); }
  .rsvp-panel { padding: 1.9rem 1.4rem; }
  .qr { flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
  .qr-card { width: min(212px, 62vw); height: min(212px, 62vw); }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The blueprint layer stays as a still drawing rather than disappearing. */
  .bp-draw { stroke-dashoffset: 0; }
  .bp-cue { opacity: 1; transform: translate(-14%, -50%); }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── /flyer share page ────────────────────────────────────── */

.share-page { max-width: var(--shell); margin: 0 auto; padding: calc(64px + 3.5rem) var(--gut) 5rem; }

.share-grid {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: 3.4rem; align-items: center;
}

/* The flyer is the subject of this page, so it gets shown as a physical sheet
   rather than a thumbnail: white paper, a real shadow, slightly tilted. */
.flyer-shot a {
  display: block; border-radius: 4px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-1.4deg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.flyer-shot a:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-hover); }
.flyer-shot img { width: 100%; height: auto; display: block; }

.share-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 700; }
.share-sub { margin-top: 1rem; max-width: 44ch; color: var(--muted); font-size: 1.04rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.share-channels { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--hairline); }
.channels-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.share-channels ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.share-channels li a {
  display: inline-block; padding: 0.5rem 1rem;
  border: 1px solid var(--hairline); border-radius: var(--r-control);
  color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.share-channels li a:hover { border-color: var(--border-hover); color: var(--accent2); transform: translateY(-2px); }

.copy-link {
  margin-top: 1.2rem; width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  padding: 0.8rem 1rem; font-family: inherit;
  background: var(--surface); color: var(--text);
  border: 1px dashed var(--hairline); border-radius: var(--r-control);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.copy-link:hover { border-color: var(--border-hover); background: var(--surface2); }
.copy-link.is-copied { border-style: solid; border-color: var(--accent); }
#copy-label { font-weight: 600; font-size: 0.88rem; }
.copy-url { color: var(--muted); font-size: 0.84rem; }

@media (max-width: 1000px) {
  .share-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .flyer-shot { max-width: 22rem; margin: 0 auto; }
}

@media (max-width: 760px) {
  .share-page { padding: calc(64px + 2.5rem) var(--gut) 3.5rem; }
  .share-channels ul { gap: 0.45rem; }
  .share-channels li a { padding: 0.6rem 0.9rem; }
  .share-actions .btn { flex: 1 1 auto; }
}
