/* =====================================================================
   Editorial layer — makes the site feel designed, not templated.
   Loaded last. Same palette; swaps the "AI template" tells (glow pills,
   glass nav, gradient buttons, dot textures, icon-card bentos) for a
   printed-spec-sheet language: numbered sections, hairline rules,
   mono labels, flat panels, a battery scroll gauge.
   ===================================================================== */
:root {
  --font-head: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rule: rgba(10, 22, 17, 0.14);
  --rule-strong: #0a1611;
  --radius: 8px;
  --radius-lg: 10px;
}
body { font-family: var(--font-body); counter-reset: sec; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-head); }
.hero-title, .section-title, .band-title {
  font-weight: 800; letter-spacing: -0.03em; word-spacing: 0; line-height: 0.98;
}
.hero-title { font-size: clamp(38px, 6vw, 76px); }
.section-title { font-size: clamp(30px, 4vw, 52px); }
.card h3, .step h3, .uni-name, .market-title { font-weight: 700; letter-spacing: -0.015em; }
.hero-sub, .section-sub { font-size: 17px; }

/* Numbered section markers replace the glowing pill badges */
.eyebrow, .theme-light .eyebrow {
  counter-increment: sec;
  display: flex; align-items: center; gap: 12px; padding: 0 0 12px; margin-bottom: 22px;
  background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  width: 100%; max-width: none;
}
.eyebrow::before, .theme-light .eyebrow::before {
  content: counter(sec, decimal-leading-zero); width: auto; height: auto; border-radius: 0;
  background: none; box-shadow: none; color: var(--ink); font-weight: 500;
}
.eyebrow::after { content: ""; flex: 1; }
.hero .eyebrow { counter-increment: none; border-bottom: 0; padding: 0; margin-bottom: 26px; color: #126f25; }
.hero .eyebrow::before { content: "●"; color: #1f8c2d; font-size: 9px; }
.center.section-title + .section-sub, .section-title.center { text-align: center; }

/* ---------- Header: plain bar with a hairline, not a floating glass pill ---------- */
.site-header, .theme-light .site-header { top: 0; padding: 0; background: rgba(245, 249, 246, 0.92) !important; border-bottom: 1px solid var(--rule) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; }
.site-header .header-inner, .theme-light .site-header .header-inner {
  height: 60px; padding: 0 var(--gutter); border-radius: 0; background: none; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.is-scrolled .header-inner { background: none; }
.theme-light .site-header .brand-word { color: var(--ink); }
.site-header .brand img { filter: drop-shadow(0 0 0 transparent) brightness(0.85) saturate(1.3); }
.theme-light .site-nav a:not(.btn) { color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 4px; }
.theme-light .site-nav a:not(.btn):hover { color: var(--ink); background: rgba(10, 22, 17, 0.05); }
.hero { padding-top: 104px; }

/* ---------- Buttons: flat, small corners, an arrow ---------- */
.btn, .theme-light .btn {
  border-radius: 6px; background: #57e04a; color: #072011; box-shadow: inset 0 0 0 1px rgba(10, 22, 17, 0.18);
  font-weight: 700; letter-spacing: 0;
}
.btn:hover, .theme-light .btn:hover { background: #0a1611; color: #ffffff; box-shadow: none; }
.btn-lg::after, .hero-cta .btn::after, #how .btn::after { content: "→"; margin-left: 4px; transition: transform var(--dur) var(--ease-out); }
.btn-lg:hover::after, .hero-cta .btn:hover::after, #how .btn:hover::after { transform: translateX(3px); }
.btn-ghost, .theme-light .btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn-ghost:hover, .theme-light .btn-ghost:hover { background: #0a1611; color: #fff; }

/* ---------- Kill the template textures and glows ---------- */
.section::before, .hero-glow, .hero-glow-low, .card::after { display: none !important; }
.theme-light .hero::after { background: var(--bg); }
.section-alt, .market-sec, #why, .theme-light .section-alt, .theme-light #why { background: var(--bg); border-top: 1px solid var(--rule); }
.section { border-top: 1px solid var(--rule); }

/* ---------- Hero photos: straight, captioned, no fan ---------- */
.tile-left, .tile-right, .hero-media .tile-left, .hero-media .tile-right { rotate: 0deg !important; transform: none; }
.tile, .theme-light .tile, .theme-light .tile-center {
  border-radius: var(--radius); box-shadow: none; outline: 1px solid var(--rule); position: relative;
}
@media (min-width: 1024px) {
  .hero-media { aspect-ratio: auto; height: min(58vh, 500px); gap: 10px; }
  .hero-media .tile { height: 100%; }
  .hero-media .tile-left { margin-right: 0; }
  .hero-media .tile-right { margin-left: 0; }
  .hero-media .tile-left, .hero-media .tile-right { height: 88%; align-self: flex-end; }
}
.tile-cap {
  position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 2;
  font: 500 10.5px/1.25 var(--font-mono); letter-spacing: 0.02em; color: #0a1611;
  background: rgba(255, 255, 255, 0.92); padding: 5px 7px; border-radius: 4px; width: fit-content; max-width: calc(100% - 16px);
}
.slide-next { display: none; }

/* ---------- Campus / advertiser ticker ---------- */
.ticker {
  position: relative; z-index: 2; overflow: hidden; background: #0a1611; color: #ecf8ef;
  border-top: 1px solid #0a1611; border-bottom: 1px solid #0a1611;
}
.ticker-track { display: flex; width: max-content; }
.ticker-row { display: flex; flex-shrink: 0; }
.ticker-row span {
  display: inline-flex; align-items: center; gap: 22px; padding: 13px 0 13px 22px;
  font: 500 13px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.ticker-row span::after { content: "/"; color: #57e04a; }
.ticker-row span:first-child { color: inherit; }
.ticker-row .tk-label { color: #57e04a; }
.ticker-row .tk-label::after { content: ":"; color: #57e04a; margin-left: -18px; }
.ticker-row .tk-brand { font-weight: 500; color: #ffffff; }
/* Infinite auto-scroll: two identical rows, slide exactly one row width, repeat */
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-track { animation: ticker 52s linear infinite; will-change: transform; }
.ticker:hover .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
/* Reduce Motion users still see it move, just gently, and can stop it */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 70s !important; animation-iteration-count: infinite !important; }
}
.ticker-toggle {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 2; width: 44px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #ecf8ef;
  background: linear-gradient(90deg, rgba(10, 22, 17, 0), #0a1611 40%);
}
.ticker-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.ticker-toggle:hover { color: #57e04a; }
.ticker-toggle:focus-visible { outline: 2px solid #57e04a; outline-offset: -4px; }

/* ---------- Statement strip ---------- */
.band-title { font-weight: 800; }

/* ---------- "Why": editorial columns separated by heavy rules, no icon bento ---------- */
.why-grid, .theme-light .why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; gap: 0 32px; margin-top: 40px; max-width: none;
}
.why-grid .card, .theme-light .card, .theme-light #why .card, #why .card {
  counter-increment: why; background: none; border: 0; border-top: 3px solid var(--rule-strong);
  border-radius: 0; box-shadow: none; padding: 20px 0 0; min-height: 0;
}
.why-grid { counter-reset: why; }
.why-grid .card::before {
  content: "(" counter(why) ")"; display: block; margin-bottom: 26px;
  font: 500 13px/1 var(--font-mono); color: var(--muted);
}
.why-grid .card .card-icon { display: none; }
.why-grid .card:first-child { grid-row: auto; display: block; padding: 20px 0 0; }
.why-grid .card h3, .why-grid .card:first-child h3 { font-size: 24px; line-height: 1.12; margin: 0 0 12px; padding: 0; }
.why-grid .card p, .why-grid .card:first-child p, .theme-light #why .card p { font-size: 16px; color: var(--muted); max-width: 34ch; }
.card:hover, .theme-light .card:hover { transform: none; border-color: var(--rule-strong); }
@media (max-width: 860px) {
  .why-grid, .theme-light .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Panels: flat white with a hairline, small corners ---------- */
.market-wrap, .theme-light .market-wrap, .steps, .theme-light .steps, .lead-form, .theme-light .lead-form {
  border-radius: var(--radius-lg); box-shadow: none; border: 1px solid var(--rule); background: #ffffff;
}
.mbar-fill { border-radius: 2px 2px 0 0; }
.market-detail-value { font-family: var(--font-head); letter-spacing: -0.03em; }
.mlegend, .mbar-year, .mbar-value, .market-detail-year, .market-source, .mgrid span { font-family: var(--font-mono); }
.mbar-value { font-size: 11.5px; }

/* How it works: numbered rows on rules */
.steps, .theme-light .steps { padding: 0; gap: 0; }
.step { border-radius: 0; padding: 18px 20px; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; }
.step-num, .theme-light .step-num {
  border-radius: 4px; box-shadow: none; font-family: var(--font-mono); font-weight: 500; font-size: 15px;
}
.how-progress { display: none; }
.how-media, .theme-light .how-media { border-radius: var(--radius); box-shadow: none; outline: 1px solid var(--rule); }

/* ---------- Venues: icons left, small slideshow to the right ---------- */
.vtype-icon, .theme-light .vtype-icon {
  border-radius: 6px; background: #ffffff; box-shadow: none; border: 1px solid var(--rule);
}
.vtype-label { font-size: 13.5px; }
.venues-grid { grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.vshow { width: 240px; max-width: 240px; }
.vshow-frame, .theme-light .vshow-frame { border-radius: var(--radius); box-shadow: none; outline: 1px solid var(--rule); }
.vslide figcaption { font: 500 11px/1.2 var(--font-mono); padding: 28px 10px 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.vshow-btn { width: 34px; height: 34px; }
.vshow-btn svg { width: 16px; height: 16px; }
.vshow-prev { left: 8px; }
.vshow-next { right: 8px; }
@media (max-width: 960px) {
  .venues-grid { grid-template-columns: 1fr auto; gap: 24px; }
  .vshow { width: 200px; max-width: 200px; }
  .vtypes { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
}
@media (max-width: 640px) {
  .venues-grid { grid-template-columns: 1fr; }
  .vshow { display: none; }
  .vtypes { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- University cards & form ---------- */
.uni, .theme-light .uni { border-radius: var(--radius); box-shadow: none; }
.uni-logo { border-radius: 4px; }
.uni:hover { transform: none; }
.carousel-btn, .theme-light .carousel-btn { border-radius: 6px; box-shadow: none; border: 1px solid var(--rule-strong); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { border-radius: 6px; }
.chip span { border-radius: 6px; }
.progress-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer, .theme-light .site-footer { background: #0a1611; padding: 36px 0; }
.footer-inner, .theme-light .footer-inner { background: none; border: 0; border-radius: 0; padding: 0 var(--gutter); margin: 0 auto; width: 100%; }
.footer-inner .fine { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .hero { padding-top: 88px; }
  .site-header .header-inner { height: 56px; }
  .hero-title { font-size: clamp(34px, 9.5vw, 46px); }
  .tile-cap { font-size: 9px; left: 5px; bottom: 5px; padding: 3px 5px; }
}

/* Hero photos size from their column width, so the headline keeps its room */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
  .hero-media { height: auto; max-height: none; aspect-ratio: auto; align-items: flex-end; gap: 8px; }
  .hero-media .tile { flex: 1 1 0; min-width: 0; height: auto !important; aspect-ratio: 9 / 16; }
  .hero-media .tile-center { flex-grow: 1.2; }
  .hero-media .tile-left, .hero-media .tile-right { margin-bottom: 18px; }
}

/* Proven on campus: a compact text section between the ticker and the statement strip */
.campus-sec { padding: 72px 0 64px; }
.campus-sec .section-sub { max-width: 64ch; }
@media (max-width: 720px) { .campus-sec { padding: 52px 0 44px; } }
.how-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Swipe-in on scroll (main.js sets data-swipe) ---------- */
.slide-nav { display: none !important; }
.js .reveal, .js .reveal[data-swipe] {
  opacity: 0; translate: -72px 0;
  transition: opacity 700ms var(--ease-out), translate 900ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.js .reveal[data-swipe="right"] { translate: 72px 0; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
@media (max-width: 720px) {
  .js .reveal { translate: -36px 0; }
  .js .reveal[data-swipe="right"] { translate: 36px 0; }
  .js .reveal.is-visible { translate: 0 0; }
}
/* Kept on under reduced motion at the owner's request */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 0; translate: -72px 0; }
  .js .reveal[data-swipe="right"] { translate: 72px 0; }
  .js .reveal.is-visible { opacity: 1; translate: 0 0; }
}
/* Off-screen swipe start positions must never create sideways scroll */
main { overflow-x: clip; }
