/* ==========================================================================
   Karolina Albanowska — Neuromarketing site
   Global design system: tokens, base, header/nav, footer, sections, cards
   ========================================================================== */

:root {
  /* Palette */
  --navy-950: #070e1a;
  --navy-900: #0b1626;
  --navy-850: #142948;
  --navy-800: #122438;
  --navy-700: #1a3049;
  --navy-600: #243f5c;
  --navy-border: rgba(255, 255, 255, 0.09);

  --gold-300: #ecd3a0;
  --gold-400: #e3c184;
  --gold-500: #d4a857;
  --gold-600: #c3933e;

  --cream: #f6f2e9;
  --white: #ffffff;
  --text-body: #b9c6da;
  --text-dim: #8392a8;

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--navy-900);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-body);
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

/* Staggered "entrance" animation for heading blocks across every section */
.section-head.reveal > *,
.discover-top.reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.section-head.reveal.is-visible > *,
.discover-top.reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.section-head.reveal.is-visible > *:nth-child(1),
.discover-top.reveal.is-visible > *:nth-child(1) { transition-delay: 0s; }
.section-head.reveal.is-visible > *:nth-child(2),
.discover-top.reveal.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.section-head.reveal.is-visible > *:nth-child(3),
.discover-top.reveal.is-visible > *:nth-child(3) { transition-delay: 0.26s; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
  padding: 110px 0;
}

section.tight {
  padding: 70px 0;
}

.bg-alt {
  background: var(--navy-850);
}

/* Generic scroll-reveal utility — placed early in the cascade so that any
   later, equally-specific component rule (hover states, custom transforms,
   shimmer animations, etc.) reliably overrides this default. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
}

/* Full gold background needs the opposite (navy) end of the palette for
   contrast — the default light cream/gold text used everywhere else on the
   dark theme would be unreadable here. */
.section-gold .eyebrow { color: var(--navy-950); opacity: 0.85; }
.section-gold h1,
.section-gold h2,
.section-gold h3,
.section-gold h4 { color: var(--navy-950); }
.section-gold p,
.section-gold .whoami-text p { color: var(--navy-900); }

.section-gold .whoami-photo {
  border-color: rgba(7, 14, 26, 0.25);
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1304;
  box-shadow: 0 10px 30px -8px rgba(212, 168, 87, 0.55);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(212, 168, 87, 0.7);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.btn-outline {
  border: 1px solid var(--navy-border);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.btn-sm {
  padding: 11px 24px;
  font-size: 0.85rem;
}

/* ---------------------------------- Header / Nav ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(7, 14, 26, 0.86);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--navy-border);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active {
  color: var(--navy-950);
  background: var(--gold-400);
}

.nav-links a.nav-contact {
  color: #1a1304;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  margin-left: 6px;
}

.nav-links a.nav-contact:hover {
  color: #1a1304;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--navy-border);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: none;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--cream);
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--navy-950);
    border-left: 1px solid var(--navy-border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 110px 26px 40px;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  body.nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block !important; }
}

.nav-toggle .icon-close { display: none; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.6);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

body.nav-open .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------- Page header banner (non-home pages) ---------------------------------- */

.page-banner {
  padding: 180px 0 90px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 168, 87, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(45, 90, 140, 0.18), transparent 55%),
    var(--navy-950);
  border-bottom: 1px solid var(--navy-border);
  text-align: center;
}

.page-banner.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-banner.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 26, 0.55) 0%, rgba(7, 14, 26, 0.9) 100%);
}

.page-banner.has-bg .container {
  position: relative;
  z-index: 1;
}

.page-banner.has-bg.is-faded {
  background-image: none;
}

/* Note: the faded photo is a real DOM element (.page-banner-photo) with its
   background-image set inline in the HTML, not a CSS custom property read
   from this stylesheet. A var() holding a url() is resolved relative to the
   stylesheet that consumes it (css/style.css), not the HTML page, so a
   relative "assets/images/..." path inside a custom property would 404 here
   — hence the real element with an inline style instead. */
.page-banner-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.page-banner.has-bg.is-faded::before {
  z-index: 1;
}

.page-banner .eyebrow { margin-bottom: 18px; }

.page-banner h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.page-banner p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--text-body);
}

/* ---------------------------------- Who am I ---------------------------------- */

.whoami-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.whoami-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-border);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

.whoami-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 4 / 5;
  transform: scale(1.22);
  transition: transform 1.2s var(--ease);
}

.reveal.is-visible .whoami-photo img {
  transform: scale(1);
}

.whoami-text p {
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.whoami-text p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .whoami-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .whoami-photo img { aspect-ratio: 16 / 11; object-position: top center; }
}

/* ---------------------------------- Discover Neuromarketing ---------------------------------- */

.discover-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
}

.discover-glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: 920px;
  height: 920px;
  max-width: 160vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 168, 87, 0.14), transparent 62%);
  pointer-events: none;
  animation: discoverPulse 9s ease-in-out infinite;
}

@keyframes discoverPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.discover-top {
  position: relative;
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.discover-title {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  background: linear-gradient(135deg, var(--cream), var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .discover-title { color: var(--cream); background: none; }
}

.discover-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto;
}

.discover-chapters {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto 56px;
}

.discover-chapter {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 30px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.discover-chapter.reveal-pop {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s var(--ease), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background 0.3s ease;
}

.discover-chapter.reveal-pop.is-visible {
  opacity: 1;
  transform: scale(1);
}

.discover-chapter:hover {
  border-color: rgba(212, 168, 87, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.discover-chapter:nth-child(even) {
  flex-direction: row-reverse;
}

.discover-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-500);
  line-height: 1;
}

.discover-chapter-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--cream);
}

.discover-chapter-body p {
  font-size: 0.98rem;
}

.discover-cta {
  position: relative;
  text-align: center;
}

.discover-tagline {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-300);
}

@media (max-width: 700px) {
  .discover-chapter,
  .discover-chapter:nth-child(even) {
    flex-direction: column;
    gap: 14px;
    padding: 26px;
  }
}

/* ---------------------------------- Services accordion ---------------------------------- */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.service-card {
  border: 1px solid var(--navy-border);
  background: var(--navy-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.service-card.is-open {
  border-color: rgba(212, 168, 87, 0.45);
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
}

.service-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--navy-border);
  background: var(--navy-700);
}

.service-icon img { width: 100%; height: 100%; object-fit: cover; }

.service-copy { flex: 1; }

.service-copy h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.service-copy p {
  font-size: 0.92rem;
  color: var(--text-body);
}

.service-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  background: var(--gold-400);
  transition: transform 0.3s var(--ease);
}

.service-toggle::before { width: 12px; height: 2px; }
.service-toggle::after { width: 2px; height: 12px; }

.service-card.is-open .service-toggle::after {
  transform: rotate(90deg) scaleY(0);
}

.service-card.is-open .service-toggle {
  background: var(--gold-500);
}

.service-card.is-open .service-toggle::before,
.service-card.is-open .service-toggle::after {
  background: #1a1304;
}

.service-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.service-panel-inner {
  padding: 0 22px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.service-panel-inner li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.service-panel-inner li::before {
  content: "✓";
  color: var(--gold-500);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .service-card-head { gap: 14px; padding: 16px; }
  .service-icon { width: 46px; height: 46px; }
  .service-panel-inner { grid-template-columns: 1fr; padding-left: 16px; }
}

.services-cta {
  text-align: center;
  margin-top: 44px;
}

/* ---------------------------------- Productions / podcasts ---------------------------------- */

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.podcast-card,
.podcast-tile-long {
  --tilt: 0deg;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

/* Specificity note: these tiles also carry the generic ".reveal"/".is-visible"
   scroll-reveal classes, which set their own `transform`. The doubled class
   selector below intentionally matches ".reveal.is-visible" specificity
   (two classes) so the tilt transform always wins once revealed, regardless
   of rule order. */
.podcast-card.podcast-card,
.podcast-tile-long.podcast-tile-long {
  transform: perspective(1400px) rotateX(var(--tilt)) rotateY(calc(var(--tilt) * -0.4));
}

.podcast-card:hover,
.podcast-tile-long:hover {
  transform: perspective(1400px) rotateX(var(--tilt)) rotateY(calc(var(--tilt) * -0.4)) scale(1.035) translateY(-6px);
  box-shadow: 0 0 0 2px var(--gold-500), 0 30px 60px -20px rgba(212, 168, 87, 0.55);
  border-color: var(--gold-500);
}

.podcast-cover {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--navy-border);
}

.podcast-cover img { width: 100%; height: 100%; object-fit: cover; }

.podcast-card h3 { font-size: 1.3rem; }
.podcast-card .podcast-tag {
  font-size: 0.78rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.podcast-card p { font-size: 0.95rem; }

.podcast-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .podcast-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Podcasts (elongated tiles with Spotify embeds) ---------------------------------- */

.podcast-long-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.podcast-tile-main {
  display: flex;
  gap: 40px;
  align-items: center;
}

.podcast-tile-copy { flex: 1.15; min-width: 0; }
.podcast-tile-copy h3 { font-size: 1.7rem; margin: 6px 0 14px; }
.podcast-tile-copy p { font-size: 0.98rem; margin-bottom: 14px; }

.podcast-tile-tagline {
  font-weight: 700;
  color: var(--cream);
}

.podcast-tile-cover-lg {
  flex: 0.85;
  flex-shrink: 0;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-border);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.6);
}

.podcast-tile-cover-lg img { width: 100%; height: 100%; object-fit: cover; }

.podcast-embed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 18px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-400);
  transition: color 0.25s ease, gap 0.25s ease;
}

.podcast-embed-toggle:hover { color: var(--gold-300); gap: 12px; }

.podcast-embed-toggle .pe-chevron {
  transition: transform 0.3s var(--ease);
}

.podcast-tile-long.is-open .podcast-embed-toggle .pe-chevron {
  transform: rotate(180deg);
}

.podcast-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.podcast-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  background: var(--navy-700);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  min-width: 108px;
}

.pb-label {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.pb-value {
  font-size: 0.86rem;
  color: var(--cream);
  font-weight: 600;
}

.podcast-tile-embeds {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.podcast-tile-embeds-inner {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 760px) {
  .podcast-tile-main { flex-direction: column-reverse; gap: 24px; }
  .podcast-tile-cover-lg { max-width: 240px; width: 100%; }
}

/* ---------------------------------- Values ---------------------------------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  /* Tiles converge toward the center as the section scrolls into view: the
     left-hand tiles slide in from the left, the right-hand tiles slide in
     from the right. See initValuesParallax() in js/nav.js, which sets
     --value-shift-left/--value-shift-right (inherited from .values-grid). */
  will-change: transform;
}

.value-card:nth-child(odd) { transform: translateX(var(--value-shift-left, 0px)); }
.value-card:nth-child(even) { transform: translateX(var(--value-shift-right, 0px)); }

/* On the single-row, 4-up desktop layout, split cleanly down the middle
   instead of alternating per-card, so the two left tiles and two right
   tiles converge toward each other symmetrically. */
@media (min-width: 981px) {
  .value-card:nth-child(-n+2) { transform: translateX(var(--value-shift-left, 0px)); }
  .value-card:nth-child(n+3) { transform: translateX(var(--value-shift-right, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .value-card { transform: none !important; }
}

.value-image {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 87, 0.4);
  margin-bottom: 18px;
  background: var(--navy-700);
  box-shadow: 0 14px 30px -14px rgba(212, 168, 87, 0.45);
}

.value-image img { width: 100%; height: 100%; object-fit: cover; }

.value-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; }

@media (max-width: 980px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Science / banner ---------------------------------- */

.science-section {
  padding-top: 0;
  overflow: hidden;
}

.science-topstrip {
  width: 100%;
  overflow: hidden;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--navy-border);
}

.science-topstrip img {
  width: 100%;
  height: auto;
  display: block;
}

.science-head.align-left {
  max-width: 960px;
}

.science-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  background-image: linear-gradient(100deg, var(--cream) 0%, var(--cream) 35%, var(--gold-300) 48%, var(--gold-500) 50%, var(--gold-300) 52%, var(--cream) 65%, var(--cream) 100%);
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.science-head.reveal.is-visible h2 {
  animation: goldShimmer 1.6s ease-out 0.35s forwards;
}

@keyframes goldShimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .science-head h2 { color: var(--cream); background: none; }
}

.science-body {
  max-width: 820px;
}

.science-body p { margin-bottom: 24px; font-size: 1.05rem; }

.science-list { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }

.science-list li {
  display: flex;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--text-body);
  padding: 6px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-26px);
}

.science-list li.is-visible {
  animation: bulletReveal 1s var(--ease) forwards;
}

@keyframes bulletReveal {
  0% { opacity: 0; transform: translateX(-26px); background: transparent; color: var(--text-body); }
  45% { opacity: 1; transform: translateX(0); background: var(--gold-500); color: #1a1304; }
  100% { opacity: 1; transform: translateX(0); background: transparent; color: var(--text-body); }
}

.science-list li::before {
  content: "→";
  color: var(--gold-500);
  flex-shrink: 0;
  font-weight: 700;
}

.science-list li.is-visible::before {
  animation: bulletArrowReveal 1s var(--ease) forwards;
}

@keyframes bulletArrowReveal {
  0%, 100% { color: var(--gold-500); }
  45% { color: #1a1304; }
}

@media (max-width: 760px) {
  .science-topstrip { margin-bottom: 34px; }
}

/* ---------------------------------- Testimonials ---------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-600);
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-card p.quote { font-size: 0.96rem; margin-bottom: 20px; }

.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 87, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--gold-400);
  flex-shrink: 0;
}

.testimonial-attr strong { color: var(--cream); font-size: 0.92rem; display: block; }
.testimonial-attr span { font-size: 0.8rem; color: var(--text-dim); }

@media (max-width: 760px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Testimonials carousel ---------------------------------- */

.testimonials-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

.testimonials-head {
  margin: 0;
  text-align: left;
  max-width: none;
  position: sticky;
  top: 130px;
}

.tcarousel-viewport {
  position: relative;
  overflow: hidden;
  padding: 16px 0 6px;
}

.tcarousel-track {
  position: relative;
  height: 360px;
}

.tcarousel-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(480px, 90%);
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  cursor: pointer;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.tcarousel-card[data-diff="0"] {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  z-index: 3;
  cursor: default;
  border-color: rgba(212, 168, 87, 0.5);
  box-shadow: 0 30px 70px -25px rgba(212, 168, 87, 0.4);
}

.tcarousel-card[data-diff="-1"] {
  transform: translate(calc(-50% - 94%), 0) scale(0.86);
  opacity: 0.5;
  z-index: 2;
}

.tcarousel-card[data-diff="1"] {
  transform: translate(calc(-50% + 94%), 0) scale(0.86);
  opacity: 0.5;
  z-index: 2;
}

.tcarousel-card:not([data-diff="0"]):not([data-diff="1"]):not([data-diff="-1"]) {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0) scale(0.7);
  z-index: 1;
}

.tcarousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.tcarousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy-border);
  transition: background 0.3s ease, transform 0.3s ease;
}

.tcarousel-dot.is-active {
  background: var(--gold-500);
  transform: scale(1.35);
}

@media (max-width: 900px) {
  .testimonials-layout { grid-template-columns: 1fr; }
  .testimonials-head { position: static; text-align: center; margin-bottom: 36px; }
  .tcarousel-track { height: 420px; }
}

/* ---------------------------------- Contact ---------------------------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 14px; }
.contact-info p { margin-bottom: 26px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--cream);
}

.contact-note {
  margin-top: 30px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--navy-900);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23d4a857' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.form-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold-500); }

/* ---------------------------------- Join Training modal ---------------------------------- */

.join-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 12, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.join-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.join-modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}

.join-modal-overlay.is-open .join-modal {
  transform: translateY(0) scale(1);
}

.join-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.join-modal-close:hover { border-color: var(--gold-500); color: var(--gold-400); }
.join-modal-close svg { width: 16px; height: 16px; }

.join-modal h3 { font-size: 1.35rem; margin-bottom: 8px; padding-right: 30px; }

.join-modal-course {
  display: block;
  font-size: 0.9rem;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: rgba(212, 168, 87, 0.1);
  border: 1px solid rgba(212, 168, 87, 0.25);
  border-radius: var(--radius-sm);
}

.join-modal-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.join-modal-note.join-modal-note-error { color: #e2746b; }

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.form-note.form-note-error { color: #e2746b; }

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; padding: 30px; gap: 32px; }
}

/* ---------------------------------- Courses ---------------------------------- */

/* Toolbar: reuses .articles-search / .article-filter-pill (see Articles
   section below) for a consistent search+filter feel; only the sort
   dropdown is Courses-specific. */
.courses-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.courses-sort label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.courses-sort select {
  appearance: none;
  padding: 11px 38px 11px 18px;
  border-radius: 999px;
  background: var(--navy-800);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23d4a857' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  border: 1px solid var(--navy-border);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}

.courses-sort select:focus { outline: none; border-color: var(--gold-500); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: 0 18px 40px -22px rgba(212, 168, 87, 0.45);
}

.course-card.is-first { border-color: rgba(212, 168, 87, 0.5); }

.course-card[hidden] { display: none; }

.course-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.course-media img { width: 100%; height: 100%; object-fit: cover; }

.course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 14, 26, 0.75);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.course-badge.is-first {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1304;
  border-color: transparent;
}

.course-body { padding: 26px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.course-num { margin-bottom: 8px; }
.course-body h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: 18px; overflow-wrap: anywhere; }

.course-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.course-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--navy-700);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
}

.course-fact span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.course-fact strong {
  font-size: 0.84rem;
  color: var(--cream);
  font-weight: 600;
  line-height: 1.3;
}

.course-takeaway-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 10px;
}

.course-takeaways {
  margin: 0 0 24px;
  padding-left: 20px;
  flex: 1;
}

.course-takeaways li {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.course-body .btn { margin-top: auto; }

@media (max-width: 980px) {
  .courses-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .courses-grid { grid-template-columns: 1fr; }
  .courses-sort { width: 100%; justify-content: space-between; }
  .courses-sort select { flex: 1; min-width: 0; }
  .course-facts { grid-template-columns: 1fr; }
  .course-body { padding: 20px 18px 22px; }
  .course-media { aspect-ratio: 16/9; }
}

@media (hover: none) {
  .course-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ---------------------------------- Blog ---------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border: 1px solid var(--navy-border);
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card .blog-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
}

.blog-card h3 { font-size: 1.1rem; }
.blog-card p { font-size: 0.9rem; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Articles (Free Knowledge) ---------------------------------- */

.articles-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.article-lead-card,
.article-mini-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}

.article-lead-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 168, 87, 0.14), transparent 60%),
    var(--navy-800);
}

.article-mini-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-mini-card { padding: 26px; }

.article-lead-card:hover,
.article-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: 0 24px 50px -24px rgba(212, 168, 87, 0.45);
}

.article-lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.article-featured-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1304;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-featured-tag.is-ghost {
  background: rgba(212, 168, 87, 0.14);
  color: var(--gold-400);
  border: 1px solid rgba(212, 168, 87, 0.4);
}

.article-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.article-lead-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 14px;
  color: var(--cream);
}

.article-mini-card h3 {
  font-size: 1.15rem;
  margin: 14px 0 10px;
  color: var(--cream);
}

.article-lead-card p,
.article-mini-card p {
  font-size: 0.95rem;
  color: var(--text-body);
}

.article-mini-card p { font-size: 0.88rem; }

.article-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.article-read-time {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.article-read-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-400);
}

/* Toolbar: search + category pills */

.articles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.articles-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 380px;
}

.articles-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.articles-search input {
  width: 100%;
  padding: 13px 18px 13px 42px;
  border-radius: 999px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.25s var(--ease);
}

.articles-search input:focus {
  outline: none;
  border-color: var(--gold-500);
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--navy-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.article-filter-pill:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.article-filter-pill.is-active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1304;
  border-color: transparent;
}

/* Category groups + cards */

.article-cat-group { margin-bottom: 48px; }
.article-cat-group:last-child { margin-bottom: 0; }

.article-cat-head { margin-bottom: 22px; }

.article-cat-head h3 {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 6px;
}

.article-cat-head p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: 0 18px 40px -22px rgba(212, 168, 87, 0.45);
}

.article-card.is-full {
  border-color: rgba(212, 168, 87, 0.3);
}

.article-card[hidden],
.article-cat-group[hidden] {
  display: none;
}

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.article-card-badge.is-full {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1304;
}

.article-card-badge.is-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--navy-border);
}

.article-card-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-card h4 {
  font-size: 1.02rem;
  color: var(--cream);
  line-height: 1.35;
}

.article-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  flex-grow: 1;
}

.article-card .article-read-link { margin-top: 4px; }

.articles-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .articles-featured { grid-template-columns: 1fr; }
  .article-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .articles-toolbar { flex-direction: column; align-items: stretch; }
  /* flex-basis tracks the main axis, which becomes vertical once the
     toolbar switches to flex-direction: column — without resetting it here,
     the 280px basis from .articles-search's flex shorthand turns into a
     280px-tall search box instead of a width constraint. */
  .articles-search { flex: 0 0 auto; max-width: none; }
  .article-cards { grid-template-columns: 1fr; }
}

/* ---------------------------------- Article detail page ---------------------------------- */

.article-banner { text-align: left; padding-top: 160px; }
.article-banner .container { max-width: 820px; }

.article-back {
  display: block;
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-400);
  text-decoration: none;
}

.article-back:hover { color: var(--gold-300); }

.article-banner h1 {
  text-align: left;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.article-meta {
  text-align: left;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-detail-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h3 {
  font-size: 1.4rem;
  color: var(--cream);
  margin: 42px 0 16px;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 20px;
}

.article-body ul {
  margin: 0 0 20px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-body);
}

.article-table-wrap {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.article-table th,
.article-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--navy-border);
}

.article-table th {
  background: var(--navy-800);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}

.article-table td {
  color: var(--text-body);
}

.article-table tbody tr:last-child th,
.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-lead-paragraph {
  font-size: 1.15rem;
  color: var(--cream);
}

.article-soon-box {
  margin-top: 36px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  border: 1px solid rgba(212, 168, 87, 0.3);
  text-align: center;
}

.article-soon-box h3 { margin: 8px 0 12px; }
.article-soon-box p { margin-bottom: 22px; color: var(--text-body); }

.subsection-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 40px;
}

.subsection-divider span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  white-space: nowrap;
}

.subsection-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--navy-border);
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-border);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 26px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  max-width: 420px;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 9px;
}

.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------------------------------- About hero ---------------------------------- */

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 90px;
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-border);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.4;
  pointer-events: none;
}

.about-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-hero-copy .eyebrow { margin-bottom: 18px; }
.about-hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.about-hero-copy p { font-size: 1.08rem; color: var(--text-body); max-width: 480px; }

.about-hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-border);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  aspect-ratio: 4 / 5;
}

.about-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.about-hero-photo.is-cutout {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  aspect-ratio: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-hero-photo.is-cutout img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: bottom center;
}

@media (max-width: 860px) {
  .about-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .about-hero-copy p { margin: 0 auto; }
  .about-hero-photo { max-width: 360px; margin: 0 auto; }
}

/* ---------------------------------- About intro ---------------------------------- */

.about-intro-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-intro-body p { margin-bottom: 18px; font-size: 1.05rem; }
.about-intro-body p:last-child { margin-bottom: 0; }

/* ---------------------------------- Background music widget ---------------------------------- */

.music-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 14, 26, 0.8);
  border: 1px solid var(--navy-border);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
}

.music-caption {
  font-size: 0.78rem;
  color: var(--text-body);
  max-width: 150px;
  line-height: 1.3;
}

.music-toggle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 168, 87, 0.4);
  color: var(--gold-400);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.music-toggle:hover { transform: scale(1.06); }
.music-toggle svg { width: 17px; height: 17px; }
.music-toggle .icon-on { display: none; }

.music-widget.is-playing .music-toggle {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1304;
}

.music-widget.is-playing .music-toggle .icon-off { display: none; }
.music-widget.is-playing .music-toggle .icon-on { display: block; }

@media (max-width: 640px) {
  .music-caption { display: none; }
  .music-widget { padding: 10px; right: 16px; bottom: 16px; }
}

/* ---------------------------------- Utility ---------------------------------- */

.text-center { text-align: center; }

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
}
