/* ============================================================
   STRUT Esteem — Design System
   Fonts: Playfair Display (didone), Inter (sans), Italianno (script)
   Palette: ink #0A0A0A · paper #FFFFFF · cream #F5F1E8
            red #D72638 · gold #C9A87C · offwhite #FAFAF7
   ============================================================ */

:root {
  /* The design is intentionally light. This stops mobile browsers (Chrome/Samsung
     on Android, and phones in dark mode) from auto-darkening the backgrounds. */
  color-scheme: only light;
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --cream: #F5F1E8;
  --red: #D72638;
  --gold: #C9A87C;
  --offwhite: #FAFAF7;
  --muted: #1a1a1a;
  --muted-2: #444;
  --line-dark: rgba(10, 10, 10, 0.12);
  --line-light: rgba(255, 255, 255, 0.15);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Typography helpers ---------- */
.didone   { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -0.015em; }
.didone-i { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
.script   { font-family: 'Italianno', cursive; font-weight: 400; }
.eyebrow  { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; }

.dot { color: var(--red); }
.text-gold { color: var(--gold); }
.text-red  { color: var(--red); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2.5rem); }
.bg-ink   { background: var(--ink); color: var(--offwhite); }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.center { text-align: center; }

/* Fluid display sizes */
.h-hero { font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.04; }
.h-1    { font-size: clamp(2.2rem, 5.5vw, 3.75rem); line-height: 1.05; }
.h-2    { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.1; }
.h-3    { font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; }
.lead   { font-size: clamp(1rem, 1.6vw, 1.05rem); line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease; text-align: center;
}
.btn i { font-size: 13px; }
.btn-red     { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91e2e; }
.btn-dark    { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.1);
}
/* Frosted effect on desktop only — backdrop-filter creates a containing block
   that would trap the position:fixed mobile menu, so scope it above the nav breakpoint. */
@media (min-width: 821px) {
  .nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
  }
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px clamp(1.25rem, 5vw, 2.5rem);
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; }
.brand .mark { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.brand .sub  { font-family: 'Italianno', cursive; font-size: 17px; color: var(--gold); margin-left: 6px; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 820px) { .brand-logo { height: 38px; } }
.footer-logo { height: 56px; filter: brightness(0) invert(1); opacity: 0.95; }

/* ---------- Logo marquee ---------- */
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; align-items: center; width: max-content;
  gap: clamp(2.75rem, 6vw, 5.5rem);
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 40px; width: auto; object-fit: contain; flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 1.75rem; }
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a.navlink {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); padding-bottom: 4px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav-links a.navlink:hover { border-bottom-color: var(--gold); }
.nav-links a.navlink.active { border-bottom-color: var(--red); }
.nav-cta {
  background: var(--ink); color: #fff; padding: 10px 18px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--ink);
}
.nav-toggle i { font-size: 26px; }

/* ---------- Eyebrow / dividers ---------- */
.rule { width: 60px; height: 1px; background: var(--gold); margin: 2.5rem auto; }
.tick { display: inline-block; width: 32px; height: 2px; background: var(--red); }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3rem); align-items: center; }

/* ---------- Media frames ---------- */
.frame { border-radius: 4px; overflow: hidden; position: relative; background: var(--cream); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-45 { aspect-ratio: 4/5; }
.ratio-11 { aspect-ratio: 1/1; }
.ratio-1610 { aspect-ratio: 16/10; }
.ratio-169 { aspect-ratio: 16/9; }
.badge-tl {
  position: absolute; top: 16px; left: 16px; z-index: 4;
  padding: 6px 14px; font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; font-weight: 500; color: #fff;
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; opacity: 0.55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.72) 45%, rgba(10,10,10,0.35) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 5vw, 2.5rem); }
.hero-copy { max-width: 720px; }

/* ---------- Cards ---------- */
.card { background: var(--paper); padding: 2.25rem 1.85rem; position: relative; }
.card .ghost-E {
  font-family: 'Playfair Display', serif; font-size: 90px; line-height: 0.9;
  color: var(--red); opacity: 0.14; position: absolute; top: 1rem; right: 1.4rem;
}

/* ---------- Meta rows (program specs) ---------- */
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  padding: 1.4rem 0; border-top: 0.5px solid var(--line-dark); border-bottom: 0.5px solid var(--line-dark); margin-bottom: 2rem; }
.meta-row.on-dark { border-color: var(--line-light); }
.meta-label { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; color: #888; }
.on-dark .meta-label { color: var(--gold); }
.meta-value { font-size: 13px; line-height: 1.4; font-weight: 500; }

/* ---------- Program blocks ---------- */
.program { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2.5rem); }
.program-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
.program-media { position: sticky; top: 90px; }
.pill { display: inline-block; background: var(--red); color: #fff; padding: 5px 12px; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.frame-list { font-size: 13px; line-height: 1.95; }

/* ---------- Numbers / stats ---------- */
.num { font-family: 'Playfair Display', serif; font-weight: 400; line-height: 1; }
.stat { text-align: center; }
.stat .num { font-size: clamp(3rem, 8vw, 5rem); }

/* ---------- Belief / numbered list ---------- */
.belief { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; padding: 1.75rem 0;
  border-bottom: 0.5px solid var(--line-dark); align-items: start; }
.belief:last-child { border-bottom: none; }
.belief .rn { font-family: 'Playfair Display', serif; font-style: italic; font-size: 40px; color: var(--gold); line-height: 1; }

/* ---------- Press ---------- */
.press-card { background: var(--paper); padding: 1.75rem 2rem; display: grid; grid-template-columns: 130px 1fr; gap: 1.25rem; align-items: center; transition: transform 0.2s, box-shadow 0.2s; }
.press-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10,10,10,0.08); }
.press-logo { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.press-card:hover .press-logo { filter: grayscale(0); opacity: 1; }
.press-strip { display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; align-items: center; justify-content: center; }
.press-strip img { max-height: 40px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: 0.2s; }
.press-strip img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Play button ---------- */
.play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; background: rgba(255,255,255,0.95); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 3; transition: transform 0.2s;
}
a:hover .play, .frame:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.play i { font-size: 28px; color: var(--red); margin-left: 3px; }

/* ---------- Forms ---------- */
.field-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--ink); margin-bottom: 8px; display: block; }
.field {
  background: transparent; border: none; border-bottom: 1px solid rgba(10,10,10,0.25);
  padding: 10px 0; font-size: 15px; color: var(--ink); width: 100%; font-family: inherit;
}
.field:focus { outline: none; border-bottom-color: var(--red); }
textarea.field { resize: vertical; min-height: 90px; }
.selector-group { display: flex; flex-wrap: wrap; gap: 8px; }
.selector {
  display: inline-block; padding: 10px 18px; border: 1px solid rgba(10,10,10,0.25);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; user-select: none; transition: 0.15s; background: transparent; color: var(--ink);
}
.selector:hover { border-color: var(--ink); }
.selector.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d4d0c8; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem) 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer a { color: #d4d0c8; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer h4 { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13px; }
.footer-bottom { border-top: 0.5px solid rgba(255,255,255,0.15); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 11px; letter-spacing: 0.04em; color: #8a857c; }

/* ---------- Utility spacing ---------- */
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.75rem; } .mb-2 { margin-bottom: 1.25rem; }
.mb-3 { margin-bottom: 2rem; } .mb-4 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1.25rem; } .mt-3 { margin-top: 2rem; }
.maxw-560 { max-width: 560px; } .maxw-640 { max-width: 640px; } .maxw-720 { max-width: 720px; } .maxw-820 { max-width: 820px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--ink); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 90px 32px 32px; transform: translateX(100%);
    transition: transform 0.3s ease; z-index: 99; box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a.navlink { color: #fff; font-size: 13px; letter-spacing: 0.2em; width: 100%;
    padding: 18px 0; border-bottom: 0.5px solid rgba(255,255,255,0.12); }
  .nav-links a.navlink.active { border-bottom-color: rgba(255,255,255,0.12); color: var(--gold); }
  .nav-cta { margin-top: 20px; width: 100%; text-align: center; padding: 14px; font-size: 11px; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none;
    transition: opacity 0.3s; z-index: 98; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 760px) {
  .split, .split-even, .program-inner { grid-template-columns: 1fr; }
  .program-media { position: static; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .belief { grid-template-columns: 48px 1fr; gap: 1rem; }
  .belief .rn { font-size: 30px; }
  .press-card { grid-template-columns: 1fr; gap: 0.75rem; text-align: left; }
  .press-logo { max-height: 40px; }
  .program-media.order-first { order: -1; }
}

@media (max-width: 480px) {
  .g-2.keep-2 { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
}
