/* Podium — landing page.
   A bordered broadsheet frame on top of the Modernist design system: 2px ink
   rules between every band, accent red held back for emphasis.

   Sizing is driven by two custom properties, --frame-w and --pad, which step up
   at wide breakpoints. Everything else is expressed in terms of them, so the
   layout grows on a large display instead of stranding a narrow column in the
   middle of it. */

/* --rule, --hairline and --ease come from site.css. */
:root {
  --frame-w: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --occupancy: 92%; /* mirrors the figure quoted in the panel copy */
}

/* Big screens: widen the measure and open up the gutters. Below 1500px the
   frame keeps its original 1240px proportions. */
@media (min-width: 1500px) {
  :root { --frame-w: 1400px; --pad: 64px; }
}
@media (min-width: 1800px) {
  :root { --frame-w: 1520px; --pad: 72px; }
}

html { scroll-behavior: smooth; }
/* The sticky header would otherwise cover whatever an in-page link jumps to. */
:target { scroll-margin-top: 96px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); }

/* — type roles — */
.disp {
  font-family: var(--font-heading); font-weight: 800;
  letter-spacing: -0.03em; line-height: 0.98; margin: 0;
}
.kick {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent-700); margin: 0 0 20px;
}
.uc {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* — frame — */
.frame {
  max-width: var(--frame-w); margin: 0 auto; background: var(--color-bg);
  border-left: var(--rule); border-right: var(--rule);
}
.rule { height: 2px; border: 0; margin: 0; background: var(--color-text); }

/* — nav — */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad); border-bottom: var(--rule);
  background: var(--color-bg);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--color-text); text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
/* The centre bar lifts on hover — the mark's own metaphor, reused. */
.brand-mark .mark-center { transition: transform 0.25s var(--ease); transform-origin: 50% 88px; }
.brand:hover .mark-center { transform: scaleY(1.18); }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  text-decoration: none; color: var(--color-text); letter-spacing: 0.01em;
  padding: 4px 0;
}
/* Underline grows from the left rather than fading in. */
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { text-decoration: none; padding: 11px 20px; }

/* — hero — */
.hero { padding: 88px var(--pad) 76px; }
/* min-width:0 so long words in the headline can't push the grid track wider
   than its share of the row. */
.hero-copy-col { min-width: 0; }
.hero-title { font-size: clamp(38px, 6.2vw, 86px); }
.hero-title span { display: block; }
.hero-copy { max-width: 58ch; font-size: 18px; line-height: 1.6; margin: 34px 0 0; }
.btn-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn-lg { text-decoration: none; padding: 13px 24px; font-size: 15px; }
.btn { transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease); }
.btn:active { transform: translateY(1px); }

/* Desktop: the headline shares the band with the ticket rather than leaving
   half the width empty. */
@media (min-width: 1040px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(40px, 5vw, 88px); align-items: center;
    padding-top: clamp(88px, 8vw, 128px); padding-bottom: clamp(76px, 7vw, 112px);
  }
  .hero-copy { font-size: 19px; }
}

/* — hero ticket — */
.hero-visual { display: none; }
@media (min-width: 1040px) {
  .hero-visual { display: block; }
}
.ticket {
  display: flex; align-items: stretch;
  background: var(--color-neutral-100);
  border: var(--rule); box-shadow: var(--shadow-lg);
  /* Off-axis so it reads as an object on the page, not another panel. */
  transform: rotate(-1.6deg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ticket:hover { transform: rotate(0deg) translateY(-4px); }
.ticket-body { flex: 1; padding: clamp(24px, 2.4vw, 34px); min-width: 0; }
.ticket-badge { color: var(--color-accent); }
.ticket-event {
  font-size: clamp(24px, 2.2vw, 32px); margin-top: 14px;
  overflow-wrap: break-word;
}
.ticket-rows { margin: 26px 0 0; display: grid; gap: 14px; }
.ticket-rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--color-divider);
}
.ticket-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ticket-rows dt { margin: 0; }
.ticket-rows dd {
  margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-align: right;
}

/* Perforation: a dashed rule with the paper punched out top and bottom. */
.ticket-perf { position: relative; width: 0; border-left: 2px dashed var(--color-divider); }
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; left: 50%; width: 22px; height: 22px;
  border-radius: 50%; background: var(--color-bg);
  border: 2px solid var(--color-text); transform: translateX(-50%);
}
.ticket-perf::before { top: -13px; clip-path: inset(50% 0 0 0); }
.ticket-perf::after { bottom: -13px; clip-path: inset(0 0 50% 0); }

.ticket-stub {
  flex: none; width: clamp(132px, 12vw, 168px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: clamp(20px, 2vw, 28px) 16px;
}
.qr { width: 100%; height: auto; max-width: 116px; shape-rendering: crispEdges; }
.ticket-status { color: var(--color-accent); }
.ticket-note { display: block; text-align: right; margin: 22px 6px 0; }

/* — spec row — */
.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec {
  padding: clamp(28px, 2.6vw, 40px) var(--pad);
  border-right: var(--rule); transition: background 0.22s var(--ease);
}
.spec:last-child { border-right: 0; }
.spec:hover { background: color-mix(in srgb, var(--color-accent) 6%, transparent); }
.spec-key { font-size: clamp(26px, 2.4vw, 36px); color: var(--color-accent); }
.spec-label { margin-top: 10px; }

/* — features — */
.features { padding: clamp(64px, 6vw, 92px) var(--pad) clamp(48px, 4vw, 68px); }
.feature {
  display: grid; grid-template-columns: 120px minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(32px, 3.4vw, 64px); align-items: baseline;
  padding: clamp(32px, 3vw, 46px) 0;
  transition: background 0.24s var(--ease);
}
.feature + .feature { border-top: var(--hairline); }
/* Bleed the hover tint into the gutters so it reads as a full-width row. */
.feature:hover {
  background: color-mix(in srgb, var(--color-text) 3.5%, transparent);
  box-shadow: 0 0 0 var(--pad) color-mix(in srgb, var(--color-text) 3.5%, transparent);
}
.feature-num { display: flex; align-items: center; gap: 14px; }
.feature-num::before {
  content: ""; width: 11px; height: 11px; flex: none;
  background: var(--color-accent); display: inline-block;
  transition: transform 0.24s var(--ease);
}
.feature:hover .feature-num::before { transform: scale(1.7); }
.feature-num span { font-size: 16px; }
.feature-title { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.01em; }
.feature-copy { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.65; margin: 0; max-width: 58ch; }

@media (min-width: 1500px) {
  .feature { grid-template-columns: 150px minmax(0, 400px) minmax(0, 1fr); }
}

/* — report showcase — */
.showcase {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5vw, 80px); align-items: center;
  padding: clamp(64px, 6vw, 96px) var(--pad);
}
.showcase-title { font-size: clamp(28px, 3.2vw, 46px); }
.showcase-copy { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.65; margin: 24px 0 0; max-width: 46ch; }

.panel {
  border: var(--rule); background: var(--color-bg);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.panel:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 20px; border-bottom: var(--rule);
}
.panel-name { font-size: clamp(15px, 1.2vw, 19px); }
.panel-live { color: var(--color-accent); display: inline-flex; align-items: center; gap: 7px; }
.panel-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(20px, 1.8vw, 30px) 20px; border-right: var(--rule); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: clamp(24px, 2.2vw, 34px); margin-top: 12px; }
.stat-value--accent { color: var(--color-accent); }
.stat-value small {
  font-size: 0.55em; font-weight: inherit;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.meter { height: 8px; background: var(--color-neutral-300); margin-top: 14px; overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--occupancy); background: var(--color-accent); }
.panel-foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-top: var(--rule);
}

/* — closing call to action — */
.cta {
  position: relative; overflow: hidden;
  background: var(--color-accent); color: var(--color-bg);
  padding: clamp(72px, 7vw, 112px) var(--pad);
}
.cta-inner { position: relative; z-index: 1; }
.cta-title { font-size: clamp(32px, 4.6vw, 66px); color: var(--color-bg); }
.cta-copy {
  font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; margin: 24px 0 0;
  max-width: 48ch; color: var(--color-bg); opacity: 0.92;
}
/* Oversized mark bleeding off the right edge — only where there is room. */
.cta-watermark { display: none; }
@media (min-width: 1040px) {
  .cta-watermark {
    display: block; position: absolute; right: -4%; bottom: -22%;
    width: clamp(280px, 30vw, 440px); opacity: 0.13; pointer-events: none;
  }
  .cta-watermark .mark rect { fill: var(--color-bg); }
}
.btn-on-accent {
  text-decoration: none; padding: 13px 26px; font-size: 15px;
  background: var(--color-bg); color: var(--color-text);
  border: 2px solid var(--color-bg);
}
.btn-on-accent:hover { background: color-mix(in srgb, var(--color-bg) 88%, var(--color-text)); }
.btn-on-accent-ghost {
  text-decoration: none; padding: 13px 26px; font-size: 15px;
  background: transparent; color: var(--color-bg); border: 2px solid var(--color-bg);
}
.btn-on-accent-ghost:hover { background: color-mix(in srgb, var(--color-bg) 16%, transparent); }
.cta :focus-visible { outline-color: var(--color-bg); }

/* — footer —
   The official lockup carries both the wordmark and the endorsement, so the
   footer is just the artwork. */
.site-footer {
  display: flex; align-items: center;
  padding: 32px var(--pad); border-top: var(--rule);
}
.footer-lockup { display: inline-block; }
.footer-lockup img {
  width: clamp(160px, 16vw, 210px); height: auto; display: block;
  transition: opacity 0.2s var(--ease);
}
.footer-lockup:hover img { opacity: 0.72; }

/* — 404 — */
.page-404 .frame { min-height: 100vh; display: flex; flex-direction: column; }
.notfound { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(64px, 8vw, 120px) var(--pad); }
.notfound-code { font-size: clamp(64px, 13vw, 168px); color: var(--color-accent); line-height: 0.85; }
.notfound-title { font-size: clamp(28px, 3.4vw, 48px); margin-top: 28px; }

/* ── responsive ────────────────────────────────────────────────────────── */

/* The three-column feature row breaks first: 360px of fixed title column stops
   fitting well before the page itself does. */
@media (max-width: 900px) {
  .feature { grid-template-columns: 64px minmax(0, 1fr); gap: 20px 24px; align-items: start; }
  .feature-title, .feature-copy { grid-column: 2; }
  .feature-copy { max-width: none; }
  .feature:hover { box-shadow: none; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase-copy { max-width: none; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2n) { border-right: 0; }
  .spec:nth-child(-n + 2) { border-bottom: var(--rule); }
  .hero { padding-top: 64px; padding-bottom: 56px; }
}

@media (max-width: 640px) {
  .frame { border-left: 0; border-right: 0; }
  .site-nav { flex-wrap: wrap; gap: 14px 18px; padding-top: 14px; padding-bottom: 14px; }
  .nav-spacer { display: none; }
  .brand { width: 100%; }
  .nav-links { gap: 18px; order: 3; }
  .lang { order: 4; margin-left: auto; }
  .nav-cta { order: 5; width: 100%; }
  .panel-stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .hero-copy, .cta-copy { font-size: 16px; }
}

/* ── motion ────────────────────────────────────────────────────────────── */

/* Sections rise slightly as they enter the viewport. Scroll-driven animations
   are progressive: browsers without support simply show the finished state. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .hero-visual, .feature, .panel, .showcase-copy-col {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    .meter > span {
      animation: fill linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 34%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { width: 0; } to { width: var(--occupancy); } }

/* site.css switches animation off globally; the ticket's resting tilt is a
   transform rather than an animation, so it needs undoing here. */
@media (prefers-reduced-motion: reduce) {
  .ticket { transform: none; }
}
