/* ============================================================
   DEIVIDAS RU — Industrial-performance coaching site
   ============================================================ */

:root {
  --black: #0a0a0b;
  --panel: #111214;
  --panel-2: #191b1e;
  --line: #26282c;
  --white: #ffffff;
  --muted: #b6bbc4;
  --muted-2: #8a8f98;
  --red: #c3272e;
  --red-bright: #e23640;
  --red-glow: rgba(195, 39, 46, 0.45);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-cond: "Barlow Condensed", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared type ---------- */
.kicker,
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.kicker .dot { color: var(--muted-2); margin-inline: 4px; }

.section-tag { color: var(--red); margin-bottom: 18px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.accent { color: var(--red); }

.lead { font-size: 1.15rem; color: var(--muted); }
.lead em { color: var(--white); font-style: italic; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(5px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 30px -8px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--red-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; padding-block: 18px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease), color 0.25s;
}
.text-link:hover { gap: 14px; color: var(--red); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s, padding 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  transition: padding 0.35s;
}
.site-header.scrolled .header-inner { padding-block: 10px; }
.brand-logo { height: 62px; width: auto; transition: height 0.35s var(--ease); }
.site-header.scrolled .brand-logo { height: 46px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  color: var(--white);
  border: 1px solid var(--red);
  padding: 9px 22px;
}
.nav-cta:hover { background: var(--red); }

.header-right { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }

/* language switch (EN | LT) */
/* Language switcher hidden for now — English only. i18n + Lithuanian strings
   are kept; change display back to inline-flex to re-enable the EN/LT toggle. */
.lang-switch { display: none; align-items: center; gap: 8px; }
.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  transition: color 0.25s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--red); }
.lang-sep { color: var(--line); font-size: 0.82rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 8px var(--pad) 24px;
}
.mobile-nav a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-cta { color: var(--red); }
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  background: url("assets/hero.webp") center/cover no-repeat;
  filter: grayscale(0.85) contrast(1.12) brightness(0.72);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 8% 100%);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--black) 30%, rgba(10,10,11,0.4) 62%, transparent 85%),
    linear-gradient(0deg, var(--black), transparent 40%);
}
.hero::before {
  /* red vertical accent bar */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
  z-index: 3;
}
.hero-inner { position: relative; z-index: 4; max-width: 760px; transform: translateX(-30px); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 18px 0 24px;
}
.hero-sub { max-width: 480px; font-size: 1.15rem; color: var(--muted); margin: 0 0 34px; }
.hero-em { color: var(--white); font-weight: 600; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 26px; height: 44px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--panel);
  padding-block: 20px;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;            /* smooth GPU compositing on iOS */
  animation: marquee 100s linear infinite;
}
.marquee-track span {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin-right: 46px;                /* trailing margin (incl. last item) makes -50% a seamless loop */
}
.marquee-track .sep {
  color: var(--red);
  font-size: 0.5rem;
  letter-spacing: 0;
  transform: translateY(-2px);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
section { padding-block: clamp(70px, 11vw, 140px); }

/* ---------- ABOUT ---------- */
.about { background: var(--black); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4 / 5;
  background: url("assets/about.webp") center/cover;
  filter: grayscale(0.6) contrast(1.05);
  border: 1px solid var(--line);
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--red);
  z-index: -1;
}
.about-badge {
  position: absolute;
  right: -14px; bottom: -14px;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
  font-family: var(--font-mono);
}
.badge-num { font-size: 0.7rem; letter-spacing: 0.2em; }
.badge-year { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }

.about-copy .section-title { margin-bottom: 26px; }
.about-copy p { margin: 0 0 18px; color: var(--muted); }
.about-copy strong { color: var(--white); }
.creds {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.creds li {
  font-family: var(--font-cond);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  padding-left: 26px;
  position: relative;
}
.creds li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 14px; height: 2px;
  background: var(--red);
}

/* ---------- ABOUT: MY STORY (chapters reuse the "01 — Who I am" treatment) ---------- */
.story { margin-top: clamp(60px, 9vw, 120px); }
.story-tag {
  color: var(--red);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.story-tag .dot { color: var(--muted-2); margin-inline: 6px; }

/* Each chapter is an .about-grid, so it inherits the intro's two-column photo/caption
   layout, the red offset frame (.about-media::before), the badge, the copy styling,
   and the responsive collapse. Only the per-chapter <img> and spacing are added here. */
.chapter { margin-top: clamp(64px, 9vw, 116px); }
.chapter-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.05);
  border: 1px solid var(--line);
}

/* every other chapter: photo on the right, mirrored frame + badge */
.chapter-flip { grid-template-columns: 1fr 0.85fr; }
.chapter-flip .about-media { order: 2; }
.chapter-flip .about-media::before { inset: 16px 16px -16px -16px; }
.chapter-flip .about-badge { right: auto; left: -14px; }

/* ---------- COACHING ---------- */
.coaching { background: var(--panel); border-block: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  position: relative;
  background: var(--black);
  padding: clamp(28px, 3.5vw, 46px);
  transition: background 0.35s, transform 0.35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.card:hover { background: var(--panel-2); }
.card:hover::before { transform: scaleY(1); }
.card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--red);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 14px 0 12px;
}
.card p { margin: 0; color: var(--muted); }

/* ---------- PROCESS ---------- */
.process { background: var(--panel); border-block: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: step;
}
.step {
  background: var(--black);
  padding: clamp(30px, 4vw, 54px) clamp(26px, 3vw, 40px);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--red);
  display: block;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.step p { margin: 0; color: var(--muted); }

/* ---------- RESULTS ---------- */
.results { background: var(--black); border-bottom: 1px solid var(--line); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.result { margin: 0; }
.result img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}
.result figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- FREE RESOURCES PAGE ---------- */
.page-intro { padding: clamp(100px, 12vh, 124px) 0 clamp(12px, 2.5vw, 24px); }
.page-intro .section-tag { margin-bottom: 20px; }
.page-intro .section-title { max-width: 900px; }
.page-intro .lead { max-width: 620px; margin-top: 22px; }
.resources-page { padding-bottom: clamp(64px, 11vw, 128px); }
.resources-cards .card { display: flex; flex-direction: column; align-items: flex-start; }
.resources-cards .card h3 { margin-bottom: 14px; }
.resources-cards .card p { flex: 1; }
.resources-cards .card .text-link { margin-top: 24px; }
.card.is-soon { opacity: 0.62; }
.resource-soon {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav a[aria-current],
.mobile-nav a[aria-current],
.footer-nav a[aria-current] { color: var(--white); }
/* Free Sauce stays highlighted white on every page, main included */
.nav a[href="resources.html"],
.mobile-nav a[href="resources.html"],
.footer-nav a[href="resources.html"] { color: var(--white); }

/* ---------- LEAD-MAGNET POPUP ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.82);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.popup-overlay.open { display: flex; }
.popup {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: clamp(30px, 5vw, 46px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.popup-close {
  position: absolute; top: 12px; right: 15px;
  background: none; border: 0; color: var(--muted-2);
  font-size: 27px; line-height: 1; cursor: pointer;
}
.popup-close:hover { color: var(--white); }
.popup-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}
.popup h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 5.4vw, 2.4rem); line-height: 1;
  text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 14px;
}
.popup > p { font-size: 1rem; color: var(--muted); margin: 0 0 22px; }
.popup-form { display: flex; flex-direction: column; gap: 12px; }
.popup-form input {
  width: 100%; padding: 14px 16px;
  background: var(--black); border: 1px solid var(--line); color: var(--white);
  font-family: var(--font-body); font-size: 1rem;
}
.popup-form input:focus { outline: none; border-color: var(--red); }
.popup-form .btn { width: 100%; justify-content: center; }
.popup-error { font-size: 0.85rem; color: var(--red-bright); min-height: 1.1em; margin: 0; }
.popup-note { font-size: 0.8rem; color: var(--muted-2); margin: 16px 0 0; }
.popup.sent .popup-form,
.popup.sent .popup-note { display: none; }
.popup-success { display: none; }
.popup.sent .popup-success { display: block; }
.popup-success p { color: var(--muted); margin: 0 0 10px; }
.popup-success a { color: var(--red-bright); }

/* ---------- APPLY ---------- */
.apply { background: var(--black); position: relative; }
.apply::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(195,39,46,0.14), transparent 55%);
  pointer-events: none;
}
.apply-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.apply-intro .section-title { margin-bottom: 22px; }
.apply-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 20px;
}
.apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(26px, 3.5vw, 42px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--line);
  padding: 13px 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  resize: vertical;
}
.field select { appearance: none; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--red-bright); }
.error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--red-bright);
  min-height: 0.9em;
}
.apply-form .btn-block { grid-column: 1 / -1; }
.form-status {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0;
  min-height: 1.2em;
}
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--red-bright); }
.apply-form.sent { display: block; text-align: center; padding-block: clamp(50px, 8vw, 90px); }
.apply-form.sent > *:not(.sent-msg) { display: none; }
.sent-msg {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--white);
}
.sent-msg .accent { display: block; font-size: 0.5em; margin-top: 12px; }
.apply-form.sent .sent-msg { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); padding-block: 56px 30px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-logo { height: 74px; width: auto; }
.footer-nav, .footer-social { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a, .footer-social a {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.footer-nav a:hover, .footer-social a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin: 0;
}
.to-top {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.to-top:hover { color: var(--red); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .marquee { display: none; }   /* scrolling strip on desktop only */
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
  .chapter-flip .about-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .apply-grid { grid-template-columns: 1fr; }
  .hero-media { width: 70%; opacity: 0.5; }
  /* drop the desktop left-shift + let the flex child shrink to the viewport */
  .hero-inner { transform: none; min-width: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .apply-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  /* hero: drop flex centering on phones — it was resolving width:100% wider
     than the viewport and clipping the text. Plain block flow instead. */
  .hero { display: block; min-height: 82svh; padding: 104px 0 48px; }
  .hero-inner { max-width: 100%; }
  .hero-title { font-size: clamp(2rem, 8.4vw, 2.9rem); line-height: 0.96; }
  .hero-sub { font-size: 1.02rem; max-width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-media { width: 100%; opacity: 0.32; clip-path: none; }
  .brand-logo { height: 46px; }
  .section-title { font-size: clamp(1.9rem, 8vw, 3rem); }
}
