/* ITOT Solutions — visual language inspired by common OT-security site patterns
   (black & red palette, geometric type, sharp controls, dark/light sections).
   Original layout, wordmark, and illustrations. */

:root {
  /* Layout & type */
  --header-h: 72px;
  --radius: 0;
  --menu-width: 320px;
  --ease: ease;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 40px;
  --danger: #c6152c;

  /* Colour: Black & Red */
  --bg: #0A0A0A;
  --surface: #1A1010;
  --surface-hover: #2A1616;
  --surface-0: #140C0C;
  --text: #F7F4F4;
  --text-soft: #C9B4B4;
  --text-on-card: #1A1010;
  --text-muted-on-card: #6B4E4E;
  --line: #3A2222;
  --line-card: #EBD5D5;
  --accent: #C41E3A;
  --accent-deep: #9B1730;
  --accent-light: #FF6B6B;
  --accent-bright: #FF6B6B;
  --accent-soft: rgba(196, 30, 58, 0.16);
  --accent-tint: #F8E4E7;
  --focus: #FF6B6B;
  --header-bg: #0A0A0A;
  --header-text: #F7F4F4;
  --footer-bg: #111111;
  --nav-muted: #C9B4B4;
  --card: #FFF8F8;
  --card-hover: #F8EAEA;
  --btn-bg: #C41E3A;
  --btn-fg: #FFFFFF;
  --btn-hover-bg: #9B1730;
  --btn-hover-fg: #FFFFFF;
  --btn-ghost-border: rgba(255, 107, 107, 0.38);
  --btn-ghost-bg: rgba(10, 10, 10, 0.42);
  --hero-sub: #C9B4B4;
  --hero-em-1: #FF6B6B;
  --hero-em-2: #C41E3A;
  --hero-em-3: #FF8A8A;
  --hero-photo-fallback: #140808;
  --hero-filter: saturate(0.75) hue-rotate(-8deg) brightness(0.8) contrast(1.06);
  --hero-overlay:
    linear-gradient(90deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.82) 30%, rgba(90, 18, 28, 0.28) 62%, rgba(90, 18, 28, 0.05) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 32%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 22%);
  --hero-overlay-mobile:
    linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.82) 50%, rgba(10, 10, 10, 0.45) 80%, rgba(10, 10, 10, 0.92) 100%);
  --body-glow-1: rgba(196, 30, 58, 0.18);
  --body-glow-2: rgba(50, 10, 14, 0.85);
  --stack-glow-1: rgba(196, 30, 58, 0.18);
  --stack-glow-2: rgba(50, 10, 14, 0.85);
  --stack-foot-bg: rgba(17, 17, 17, 0.88);
  --stack-foot-border: rgba(58, 34, 34, 0.7);
  --backdrop: rgba(10, 10, 10, 0.72);
  --scan-line: rgba(255, 107, 107, 0.04);
  --scan-grid: rgba(255, 107, 107, 0.08);
  --dot-glow: rgba(196, 30, 58, 0.2);
  --dot-glow-2: rgba(255, 107, 107, 0.75);
  --cue-line: rgba(196, 30, 58, 0.35);
  --shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.18);

}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 70% -10%, var(--body-glow-1), transparent 55%),
    radial-gradient(ellipse 70% 40% at 10% 100%, var(--body-glow-2), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--accent-deep);
  color: var(--btn-fg);
  border-radius: 0;
  text-decoration: none;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 0 28px;
  flex-wrap: wrap;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--header-text);
  text-decoration: none;
}

.wordmark:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.wordmark h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mark {
  display: block;
  color: var(--accent-bright);
  fill: currentColor;
}

main {
  flex: 1;
  padding: 32px 24px 64px;
}

.tabs {
  display: inline-flex;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.tab {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--nav-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab[aria-selected="true"] {
  background: transparent;
  color: var(--header-text);
  box-shadow: none;
  border-bottom-color: var(--accent);
}

.tab:hover {
  color: var(--header-text);
}

.tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.tab-panel {
  width: 100%;
}

.lede,
.consult-title {
  margin: 16px auto 40px;
  max-width: 18em;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.consult-title {
  margin-bottom: 12px;
}

.consult-intro {
  margin: 0 auto 40px;
  max-width: 36em;
  text-align: center;
  color: var(--text-soft);
  font-size: 16px;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: min(680px, calc(100vh - 240px));
}

.canvas {
  position: relative;
  width: min(800px, 100%);
  margin: 0 auto;
}

.purdue {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-display);
  user-select: none;
  -webkit-user-select: none;
}

.level {
  cursor: pointer;
  outline: none;
}

.level .face {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease);
}

.level .accent-bar {
  fill: var(--accent-deep);
  transition: fill 0.25s var(--ease);
}

.level .lvl-num {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
  fill: var(--accent-light);
  font-family: var(--font-display);
}

.level .lvl-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  fill: var(--text);
  font-family: var(--font-display);
}

.level .lvl-sub {
  font-size: 13px;
  font-weight: 400;
  fill: var(--text-soft);
  font-family: var(--font);
}

.level .glyph {
  color: var(--text-soft);
  opacity: 0.95;
}

.level .focus-ring {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 2;
  opacity: 0;
  pointer-events: none;
}

.level:hover .face,
.level:focus-visible .face {
  fill: var(--surface-hover);
  stroke: var(--accent);
}

.level:hover .accent-bar,
.level:focus-visible .accent-bar {
  fill: var(--accent-bright);
}

.level:focus-visible .focus-ring {
  opacity: 1;
}

.level.is-open .face {
  fill: var(--surface-hover);
  stroke: var(--accent-bright);
  filter: url(#level-shadow-active);
}

.level.is-open .accent-bar {
  fill: var(--accent-bright);
}

.level-0 {
  color: var(--nav-muted);
  pointer-events: none;
}

.level-0 .l0-face {
  fill: var(--surface-0);
  stroke: var(--accent-deep);
  stroke-width: 1;
}

.level-0 .l0-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--accent-light);
  font-family: var(--font);
  font-weight: 600;
}

.level-0 .l0-title {
  font-size: 15px;
  font-weight: 500;
  fill: var(--text);
  font-family: var(--font-display);
}

.level-0 .glyph {
  color: var(--text-soft);
}

.stem {
  position: absolute;
  height: 2px;
  background: var(--accent-bright);
  transform-origin: left center;
  pointer-events: none;
  z-index: 2;
  border-radius: 0;
  opacity: 0;
}

.stem.is-open {
  opacity: 1;
}

.option-menu {
  position: absolute;
  z-index: 4;
  width: var(--menu-width);
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  color: var(--text-on-card);
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}

.option-menu.is-open {
  display: block;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease);
}

.menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.menu-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

#menu-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-card);
}

.menu-close {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted-on-card);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.menu-close:hover {
  background: var(--card-hover);
  color: var(--text-on-card);
}

.menu-close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.menu-intro {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted-on-card);
}

.functions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.fn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.fn:hover {
  background: var(--card-hover);
}

.fn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.fn.is-active {
  background: var(--accent-tint);
  box-shadow: inset 3px 0 0 var(--accent-deep);
}

.fn-num {
  width: 1.25em;
  color: var(--text-muted-on-card);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.fn.is-active .fn-num,
.fn.is-active .fn-name {
  color: var(--accent-deep);
  font-weight: 600;
}

.draft-panel {
  margin-top: 12px;
  padding: 12px 12px 14px;
  border-top: 1px solid var(--line-card);
}

.draft-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 0;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#draft-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-on-card);
}

#draft-body {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted-on-card);
  line-height: 1.5;
}

.backdrop {
  display: none;
}

.site-footer {
  padding: 24px 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--nav-muted);
  font-size: 13px;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}

.footer-name,
.footer-note {
  margin: 0;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--header-text);
  letter-spacing: -0.02em;
  font-size: 13px;
}

.noscript {
  margin: 0;
  padding: 12px 28px;
  background: var(--accent-deep);
  color: var(--btn-fg);
}

body.sheet-open {
  overflow: hidden;
}

.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 28px 40px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

.consult-form,
.contact-card,
.consult-thanks {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: 0;
  box-shadow: var(--shadow);
  color: var(--text-on-card);
}

.consult-form,
.consult-thanks {
  padding: 32px;
}

.field {
  margin-bottom: 16px;
}

.field label,
.check-set legend {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-on-card);
}

.optional {
  font-weight: 400;
  color: var(--text-muted-on-card);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-card);
  border-radius: 0;
  background: var(--card);
  color: var(--text-on-card);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent-deep);
}

.check-set {
  margin: 8px 0 20px;
  padding: 0;
  border: 0;
}

.check-set legend {
  margin-bottom: 10px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-on-card);
}

.check input {
  margin: 3px 0 0;
  accent-color: var(--accent-deep);
  width: 15px;
  height: 15px;
  flex: none;
}

.form-error {
  margin: 0 0 14px;
  color: var(--danger);
  font-size: 14px;
}

.submit {
  appearance: none;
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 12px 24px;
  cursor: pointer;
}

.submit:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}

.submit:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.consult-thanks h3 {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 550;
  color: var(--text-on-card);
}

.consult-thanks p {
  margin: 0;
  color: var(--text-muted-on-card);
}

.thanks-kicker {
  margin: 0 0 8px !important;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.contact-card {
  padding: 24px;
}

.contact-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-on-card);
}

.contact-card dl {
  margin: 0;
}

.contact-card dl > div {
  margin: 0 0 16px;
}

.contact-card dl > div:last-child {
  margin-bottom: 0;
}

.contact-card dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-card);
}

.contact-card a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-card);
}

.contact-card a:hover {
  border-bottom-color: var(--accent-deep);
  color: var(--accent-deep);
}

.contact-card a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.placeholder-tag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: 1px;
  padding: 2px 7px;
  border-radius: 0;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .consult-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .option-menu {
    --menu-width: 280px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  main {
    padding: 20px 16px 40px;
  }

  .lede,
  .consult-title {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .consult-title {
    margin-bottom: 12px;
  }

  .consult-form,
  .consult-thanks,
  .contact-card {
    padding: 20px;
  }

  .tabs {
    margin-left: auto;
  }

  .level .lvl-title {
    font-size: 16px;
  }

  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5;
    background: var(--backdrop);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  .backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .option-menu {
    position: fixed;
    left: 0 !important;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: 100%;
    max-height: min(82vh, 640px);
    overflow: auto;
    border-radius: 0;
    border: 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(16px);
    z-index: 6;
  }

  .option-menu.is-open {
    transform: translateY(0);
  }

  .stem {
    display: none !important;
  }

  .option-menu::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 0;
    background: var(--line-card);
    margin: 0 auto 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .option-menu,
  .option-menu.is-open {
    transform: none;
  }
}

/* =====================================================================
   Explore reel: opening banner (A) + Purdue stack (B)
   ===================================================================== */

/* Reel mode: the page itself does not scroll; the Explore panel is the
   scroll container and fills the space under the header. */
body.reel-mode {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.reel-mode main {
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.reel-mode .site-footer {
  display: none;
}

.site-header {
  position: relative;
  z-index: 10;
}

.reel {
  --t: 0;
  --ho: 0;  /* hero fade-out progress 0..1 */
  --si: 0;  /* stack fade-in progress 0..1 */
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;   /* baseline when JS is off */
  scrollbar-width: none;
  background: var(--bg);
}

.reel::-webkit-scrollbar {
  display: none;
}

/* JS takes over: native snapping off, programmatic scrolling only. */
.reel.reel-js {
  overflow-y: hidden;
  scroll-snap-type: none;
  touch-action: pinch-zoom;
}

.reel-track {
  position: relative;
}

.reel-section {
  position: relative;
  min-height: var(--reel-h, 100%);
  height: var(--reel-h, 100%);
  scroll-snap-align: start;
  overflow: hidden;
}

/* ---------- Section A: hero ---------- */

.hero {
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
}

.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform:
    translateY(calc(var(--ho) * var(--reel-hpx, 800px) * 0.32))
    scale(calc(1 + var(--ho) * 0.08));
  opacity: calc(1 - var(--ho) * 0.85);
  transform-origin: 50% 40%;
  will-change: transform, opacity;
}

.hero-art {
  position: absolute;
  inset: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 88px) clamp(24px, 5vw, 72px) clamp(96px, 14vh, 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: calc(1 - var(--ho) * 1.35);
  transform:
    translateY(calc(var(--ho) * var(--reel-hpx, 800px) * 0.42))
    scale(calc(1 - var(--ho) * 0.05));
  filter: blur(calc(var(--ho) * 6px));
  will-change: transform, opacity, filter;
}

.hero-copy {
  max-width: 980px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hero-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--dot-glow), 0 0 18px var(--dot-glow-2);
  animation: hero-blink 2.4s ease-in-out infinite;
}

@keyframes hero-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 5.9vw, 100px);
  line-height: 0.98;
  max-width: 13.5em;
  letter-spacing: -0.045em;
  color: var(--text);
  text-wrap: balance;
}

.hero-title .ln {
  display: block;
}

.hero-em {
  background: linear-gradient(92deg, var(--hero-em-1) 0%, var(--hero-em-2) 45%, var(--hero-em-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--hero-sub);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--primary::after {
  content: "→";
  letter-spacing: 0;
  font-size: 15px;
}

.btn--primary:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}

.btn--ghost {
  border: 1px solid var(--btn-ghost-border);
  background: var(--btn-ghost-bg);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.btn:focus-visible,
.scroll-cue:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: calc(1 - var(--ho) * 2.5);
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--cue-line);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--accent-bright);
  animation: cue-drop 1.8s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes cue-drop {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* ---- Style 1: Control Room ---- */

/* ---- Hero slideshow (news-style, crossfade + Ken Burns) ---- */

.hero-slides {
  position: absolute;
  inset: 0;
  filter: var(--hero-filter);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 0.9s ease, visibility 0s;
}

.hero-slide.is-leaving {
  visibility: visible;
  z-index: 1;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.cr-photo {
  position: absolute;
  inset: -2%;
  background-color: var(--hero-photo-fallback);
  background-position: 72% 60%;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: var(--kb-origin, 70% 55%);
  will-change: transform;
}

.hero-slide.is-active .cr-photo,
.hero-slide.is-leaving .cr-photo {
  animation: kb-zoom 9s linear both;
}

.hero-slide:nth-child(2) { --kb-origin: 30% 60%; }
.hero-slide:nth-child(3) { --kb-origin: 80% 35%; }
.hero-slide:nth-child(4) { --kb-origin: 60% 70%; }
.hero-slide:nth-child(5) { --kb-origin: 40% 50%; }
.hero-slide:nth-child(6) { --kb-origin: 75% 65%; }
.hero-slide:nth-child(7) { --kb-origin: 55% 40%; }

@keyframes kb-zoom {
  from { transform: scale(1.0); }
  to { transform: scale(1.09); }
}

/* Re-grade the teal photography toward black / deep red */
.cr-tint {
  position: absolute;
  inset: 0;
  background: var(--hero-tint, #7a1424);
  mix-blend-mode: color;
  opacity: var(--hero-tint-opacity, 0.62);
  pointer-events: none;
}

.slide-texts {
  display: grid;
}

.slide-text {
  grid-area: 1 / 1;
  align-self: end;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.slide-text.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease, visibility 0s;
}

.slide-text .hero-kicker,
.slide-text .hero-title,
.slide-text .hero-sub {
  opacity: 0;
  transform: translateY(26px);
}

.slide-text.is-active .hero-kicker {
  animation: slide-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}

.slide-text.is-active .hero-title {
  animation: slide-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.slide-text.is-active .hero-sub {
  animation: slide-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); }
}

/* Controls: prev / dots / next / counter / pause */
.hero-controls {
  position: absolute;
  z-index: 4;
  left: max(clamp(24px, 5vw, 72px), calc((100% - 1360px) / 2 + clamp(24px, 5vw, 72px)));
  bottom: clamp(22px, 5vh, 44px);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: calc(1 - var(--ho) * 2.5);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 4px;
}

.hero-dot-btn {
  appearance: none;
  border: 0;
  padding: 14px 3px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot-bar {
  position: relative;
  display: block;
  width: 26px;
  height: 3px;
  background: rgba(247, 244, 244, 0.28);
  overflow: hidden;
  transition: width 0.3s ease, background 0.2s ease;
}

.hero-dot-btn:hover .hero-dot-bar {
  background: rgba(247, 244, 244, 0.6);
}

.hero-dot-btn[aria-current="true"] .hero-dot-bar {
  width: 52px;
  background: rgba(247, 244, 244, 0.62);
}

.hero-dot-fill {
  position: absolute;
  inset: 0;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-dot-btn[aria-current="true"] .hero-dot-fill {
  animation: dot-progress var(--slide-ms, 3000ms) linear forwards;
}

.hero.is-paused .hero-dot-btn[aria-current="true"] .hero-dot-fill {
  animation-play-state: paused;
}

.hero.is-static .hero-dot-btn[aria-current="true"] .hero-dot-fill {
  animation: none;
  transform: none;
}

@keyframes dot-progress {
  to { transform: scaleX(1); }
}

.hero-ctl {
  appearance: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--btn-ghost-border);
  border-radius: 0;
  background: var(--btn-ghost-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-ctl:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.hero-ctl:focus-visible,
.hero-dot-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hero-pause {
  margin-left: 6px;
}

.hero-pause .i-play,
.hero-pause[aria-pressed="true"] .i-pause {
  display: none;
}

.hero-pause[aria-pressed="true"] .i-play {
  display: block;
}

.hero-count {
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.hero-count span {
  color: var(--text);
}

.cr-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.cr-scan {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, var(--scan-line) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, var(--scan-grid) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(0deg, var(--scan-grid) 1px, transparent 1px) 0 0 / 120px 120px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  opacity: 0.6;
}

.hero-copy {
  border-left: 2px solid var(--accent);
  padding-left: clamp(20px, 2.4vw, 36px);
}

/* ---------- Section B: Purdue stack ---------- */

.stack-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 70% -5%, var(--stack-glow-1), transparent 60%),
    radial-gradient(ellipse 70% 40% at 10% 105%, var(--stack-glow-2), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--stack-foot-border);
  overflow: visible;
  height: auto;
}

.stack-inner {
  padding: 28px 24px 56px;
  opacity: var(--si);
  transform:
    translateY(calc((1 - var(--si)) * 90px))
    scale(calc(0.94 + var(--si) * 0.06));
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

/* Fully snapped: drop transforms so the mobile bottom sheet (position: fixed)
   is positioned against the viewport, not this section. */
.reel.stack-full .stack-inner {
  transform: none;
  will-change: auto;
}

.stack-section .lede {
  margin: 0 auto 28px;
}

.stack-section .canvas {
  width: min(800px, 100%, calc((var(--reel-hpx, 900px) - 190px) * 1.1765));
}

.stack-section .stage {
  min-height: 0;
}

.stack-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 28px 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  font-size: 12px;
  color: var(--nav-muted);
  border-top: 1px solid var(--stack-foot-border);
  background: var(--stack-foot-bg);
  opacity: var(--si);
}

.stack-foot span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--header-text);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .hero-inner {
    padding: 28px 22px 110px;
  }

  .hero-kicker {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .hero-title {
    font-size: clamp(34px, 9.6vw, 50px);
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    bottom: 16px;
    gap: 4px;
  }

  .hero-dot-bar {
    width: 14px;
  }

  .hero-dot-btn[aria-current="true"] .hero-dot-bar {
    width: 30px;
  }

  .hero-dot-btn {
    padding: 14px 2px;
  }

  .hero-count {
    display: none;
  }

  .hero-ctl {
    width: 34px;
    height: 34px;
  }

  .scroll-cue {
    left: auto;
    right: 8px;
    transform: none;
    bottom: 64px;
  }

  .hero-sub {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-ctas {
    margin-top: 28px;
  }

  .btn {
    padding: 13px 18px;
    font-size: 12px;
  }

  .cr-photo {
    background-position: 74% 100%;
    background-size: auto 62%;
    background-color: var(--hero-photo-fallback);
  }

  .cr-overlay {
    background: var(--hero-overlay-mobile);
  }

  .stack-inner {
    padding: 20px 16px 56px;
  }

  .stack-foot {
    padding: 10px 20px 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner,
  .hero-fx {
    filter: none;
  }

  .slide-text .hero-kicker,
  .slide-text .hero-title,
  .slide-text .hero-sub {
    opacity: 1;
    transform: none;
  }

  .hero-dot-btn[aria-current="true"] .hero-dot-fill {
    transform: none;
  }
}

/* Palette-aware SVG drop shadows */
#level-shadow feDropShadow {
  flood-color: var(--bg);
}
#level-shadow-active feDropShadow {
  flood-color: var(--accent-bright);
}
