/* ============================================================
   DAP — Daniel Andrés Pedrosa
   styles.css — Frame Within Frame, v5.0
   Built from approved mockup, June 2025

   COLOUR GRAMMAR (never broken):
   Turquoise #55C7C4  →  frames, filmmaker work, thresholds
   Yellow    #FFD97A  →  teach, learning (ONLY in Teach section)
   Pink      #FF7C80  →  person, about, human moment (ONLY in About)
   ============================================================

   1.  Tokens
   2.  Reset & Base
   3.  Typography utilities
   4.  Layout utilities
   5.  Navigation
   6.  Mobile menu
   7.  Frame system
   8.  Buttons & links
   9.  Hero — split frame
   10. Intro section
   11. Colour legend bar
   12. Stories section
   13. Project cards
   14. About moment
   15. Teach section
   16. Footer
   17. Scroll reveal
   18. Responsive — tablet ≤900px
   19. Responsive — mobile  ≤600px
   20. Accessibility
   ============================================================ */


/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
  --c-bg:        #F8F7F4;
  --c-black:     #111111;
  --c-turquoise: #55C7C4;
  --c-yellow:    #FFD97A;
  --c-pink:      #FF7C80;
  --c-grey:      #888888;
  --c-rule:      #E2E1DD;
  --c-ph:        #2a2825;   /* placeholder dark */

  --f-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --f-display: 'Inter', system-ui, -apple-system, sans-serif;

  /* Scale */
  --t-hero:    clamp(44px, 7.5vw, 96px);
  --t-h2:      clamp(26px, 4vw,   48px);
  --t-h3:      clamp(20px, 2.5vw, 28px);
  --t-large:   clamp(17px, 1.8vw, 20px);
  --t-body:    16px;
  --t-small:   14px;
  --t-caption: 12px;
  --t-eye:     10px;

  /* Spacing */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  32px;
  --sp-lg:  56px;
  --sp-xl:  88px;
  --sp-2xl: 128px;

  --max-w:  1200px;
  --pad-x:  clamp(20px, 5vw, 56px);
  --nav-h:  56px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-mid:  380ms;
  --t-slow: 700ms;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

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

body {
  background: var(--c-bg);
  color: var(--c-black);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* Language switching */
body.lang-en [data-lang="es"],
body.lang-es [data-lang="en"] { display: none; }

body.lang-fade { animation: langFade 320ms var(--ease); }
@keyframes langFade { from { opacity: 0.45; } to { opacity: 1; } }


/* ============================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================ */

.eyebrow {
  display: block;
  font-size: var(--t-eye);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-grey);
  margin-bottom: 18px;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }


/* ============================================================
   5. NAVIGATION
   ============================================================ */

/* Transparent with dark scrim while over hero */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.00) 100%);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid), border-color var(--t-mid);
}

/* Solid off-white after scroll */
.nav.scrolled {
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--c-rule);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-bg);
  cursor: pointer;
  transition: color var(--t-fast);
  flex-shrink: 0;
}
.nav.scrolled .nav__logo { color: var(--c-black); }
.nav__logo:hover { color: var(--c-turquoise); }

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav__link {
  font-size: var(--t-caption);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-bg);
  cursor: pointer;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}
.nav.scrolled .nav__link { color: var(--c-black); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1.5px;
  background: var(--c-turquoise);
  transition: width var(--t-fast);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* Language */
.nav__right { display: flex; align-items: center; gap: var(--sp-md); }
.nav__lang  { display: flex; align-items: center; gap: 5px; }
.nav__lang-btn {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: rgba(248,247,244,0.65);
  cursor: pointer;
  padding: 3px 1px;
  transition: color var(--t-fast);
}
.nav.scrolled .nav__lang-btn { color: var(--c-grey); }
.nav__lang-btn.active { color: var(--c-bg); font-weight: 500; }
.nav.scrolled .nav__lang-btn.active { color: var(--c-black); }
.nav__lang-btn:hover { color: var(--c-turquoise); }
.nav__lang-sep { color: rgba(248,247,244,0.25); font-size: 11px; }
.nav.scrolled .nav__lang-sep { color: var(--c-rule); }

/* Hamburger */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
}
.nav__menu-btn span {
  display: block;
  width: 20px; height: 1px;
  background: var(--c-bg);
  transition: background var(--t-fast);
}
.nav.scrolled .nav__menu-btn span { background: var(--c-black); }


/* ============================================================
   6. MOBILE MENU
   ============================================================ */

.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__mobile-overlay.open { display: flex; }

.nav__mobile-close {
  position: absolute;
  top: 18px; right: var(--pad-x);
  font-size: 20px;
  color: var(--c-grey);
  cursor: pointer;
  transition: color var(--t-fast);
}
.nav__mobile-close:hover { color: var(--c-turquoise); }

.nav__mobile-link {
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-black);
  cursor: pointer;
  padding: 8px 0;
  text-align: center;
  transition: color var(--t-fast);
  display: block;
}
.nav__mobile-link:hover { color: var(--c-turquoise); }

.nav__mobile-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-md);
  font-size: 13px;
  color: var(--c-grey);
}


/* ============================================================
   7. FRAME SYSTEM
   ============================================================
   Every project image lives inside a turquoise frame.
   No border-radius. Ever.
   The frame colour encodes meaning:
     turquoise → filmmaker work
     yellow    → teach/learning  (applied in Teach section)
     pink      → person/about    (applied in About section)
   ============================================================ */

.frame {
  border: 1px solid rgba(85, 199, 196, 0.35);
  overflow: hidden;
  position: relative;
  transition: border-color var(--t-mid);
  flex-shrink: 0;
}
.frame:hover { border-color: var(--c-turquoise); }

/* Aspect ratio variants */
.frame--3-4  { aspect-ratio: 3 / 4; }
.frame--16-9 { aspect-ratio: 16 / 9; }
.frame--1-1  { aspect-ratio: 1 / 1; }
.frame--4-3  { aspect-ratio: 4 / 3; }

/* Image inside */
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-mid) var(--ease);
}
.frame:hover img { transform: scale(1.025); }

/* Placeholder — used until real images arrive */
.frame__ph {
  width: 100%; height: 100%;
  background: var(--c-ph);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* subtle grid texture */
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.frame__ph-text {
  font-size: 10px;
  color: rgba(248,247,244,0.18);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 12px;
  line-height: 1.5;
}

/* Ratio label — bottom-right corner of each frame */
.frame__ratio {
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(248,247,244,0.3);
  pointer-events: none;
  font-weight: 400;
}

/* Colour variants */
.frame--yellow { border-color: rgba(255, 217, 122, 0.45); }
.frame--yellow:hover { border-color: var(--c-yellow); }
.frame--pink   { border-color: rgba(255, 124, 128, 0.45); }
.frame--pink:hover   { border-color: var(--c-pink); }


/* ============================================================
   8. BUTTONS & LINKS
   ============================================================ */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--t-small);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--c-black);
  cursor: pointer;
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--c-black);
  transition: background var(--t-fast);
}
.link-arrow:hover { color: var(--c-turquoise); }
.link-arrow:hover::after { background: var(--c-turquoise); }

/* Light variant — on dark hero */
.link-arrow--light { color: rgba(248,247,244,0.72); }
.link-arrow--light::after { background: rgba(248,247,244,0.4); }
.link-arrow--light:hover { color: var(--c-turquoise); }
.link-arrow--light:hover::after { background: var(--c-turquoise); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: var(--t-caption);
  font-weight: 400;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn--light { color: var(--c-bg); }
.btn--light:hover { background: var(--c-bg); color: var(--c-black); }

.btn--dark  { color: var(--c-black); }
.btn--dark:hover  { background: var(--c-black); color: var(--c-bg); }

.btn--yellow-dark { color: var(--c-black); border-color: var(--c-black); }
.btn--yellow-dark:hover { background: var(--c-black); color: var(--c-yellow); }

/* Play triangle */
.btn__play {
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  flex-shrink: 0;
}


/* ============================================================
   9. HERO — SPLIT FRAME
   ============================================================
   Left:  portrait (dark, film-strip sides, cinematic)
   Line:  1px turquoise — the film splice — the DAP signature
   Right: dark panel, headline word-by-word, descriptor, CTA

   The split is the brand's founding gesture.
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  max-height: 960px;
  overflow: hidden;
}

/* ── Left: portrait panel ─────────────────────────────────── */
.hero__left {
  position: relative;
  width: 54%;
  background: #1a1a18;
  overflow: hidden;
  flex-shrink: 0;
}

/* The portrait image or placeholder */
.hero__portrait {
  position: absolute;
  inset: 0;
}
/* ── REPLACE: swap this placeholder for the real image ───────
   <img src="images/hero-portrait.jpg"
        alt="Daniel Andrés Pedrosa surrounded by film strips"
        style="width:100%;height:100%;object-fit:cover;object-position:center top">
   ──────────────────────────────────────────────────────────── */
.hero__portrait-ph {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1e1d1b 0%, #2c2a27 55%, #1a1917 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Film strip edges */
.hero__strip {
  position: absolute;
  top: 0; bottom: 0;
  width: 26px;
  background: #0d0d0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 0;
  z-index: 2;
}
.hero__strip--left  { left: 0; }
.hero__strip--right { right: 0; }

.hero__hole {
  width: 10px; height: 8px;
  background: var(--c-ph);
  margin: 4px 0;
  border: 1px solid #222;
  flex-shrink: 0;
}

/* Gradient overlay on portrait — dark at bottom for text legibility */
.hero__left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.06)  0%,
    rgba(0,0,0,0.00) 20%,
    rgba(0,0,0,0.00) 28%,
    rgba(0,0,0,0.50) 68%,
    rgba(0,0,0,0.80) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Scroll cue on left panel */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-md);
  left: 36px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.28);
  writing-mode: vertical-rl;
  z-index: 4;
}

/* ── The splice line ──────────────────────────────────────── */
.hero__line {
  width: 1px;
  background: var(--c-turquoise);
  flex-shrink: 0;
  align-self: stretch;
  /* Animates in on load */
  transform-origin: top center;
  animation: lineDraw 0.9s var(--ease) both;
  animation-delay: 100ms;
}
@keyframes lineDraw {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* ── Right: text panel ────────────────────────────────────── */
.hero__right {
  flex: 1;
  background: #111110;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) var(--sp-xl);
  animation: heroTextReveal 0.9s var(--ease) both;
  animation-delay: 280ms;
}
@keyframes heroTextReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__descriptor {
  font-size: var(--t-eye);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.65);
  margin-bottom: 18px;
}

.hero__statement {
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--c-bg);
  margin-bottom: var(--sp-md);
}
.hero__statement span { display: block; }

/* Short turquoise rule */
.hero__rule {
  width: 40px; height: 1px;
  background: var(--c-turquoise);
  margin-bottom: var(--sp-md);
}

.hero__sub {
  font-size: var(--t-small);
  line-height: 1.85;
  color: rgba(248,247,244,0.65);
  max-width: 300px;
  margin-bottom: var(--sp-lg);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}


/* ============================================================
   10. INTRO SECTION
   ============================================================ */

.intro {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--c-rule);
}
.intro__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.intro__quote {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--c-black);
}
.intro__body {
  padding-top: 4px;
}
.intro__body p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 2;
  color: var(--c-black);
  margin-bottom: var(--sp-sm);
}
.intro__body p:last-child { margin-bottom: 0; }
.intro__ctas {
  margin-top: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}


/* ============================================================
   11. COLOUR LEGEND BAR
   (Explains the colour grammar — optional, can be removed later)
   ============================================================ */

.colour-legend {
  border-bottom: 1px solid var(--c-rule);
  background: #F0EFEB;
  padding: 14px var(--pad-x);
  max-width: 100%;
}
.colour-legend__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.colour-legend__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-grey);
}
.colour-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #666;
}
.colour-legend__swatch {
  width: 24px;
  height: 2px;
  flex-shrink: 0;
}


/* ============================================================
   12. STORIES SECTION
   ============================================================ */

.stories {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--c-rule);
}
.stories__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.stories__heading {
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--c-black);
  max-width: 580px;
  margin-bottom: 8px;
}
.stories__sub {
  font-size: var(--t-body);
  font-style: italic;
  color: var(--c-grey);
  margin-bottom: var(--sp-xl);
}

/*
  ASYMMETRIC GRID
  Featured card: left column, tall 3:4 portrait
  Two secondary: right column stacked, 16:9 + 1:1
  Three ratios in one section = editorial confidence
*/
.stories__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-bottom: var(--sp-md);
}
.stories__right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stories__cta {
  text-align: right;
}


/* ============================================================
   13. PROJECT CARDS
   ============================================================ */

.card {
  cursor: pointer;
}
.card__frame {
  margin-bottom: 14px;
}
.card__cat {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-turquoise);
  margin-bottom: 6px;
}
.card__title {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--c-black);
  margin-bottom: 6px;
  transition: color var(--t-fast);
}
.card:hover .card__title { color: var(--c-turquoise); }
.card__desc {
  font-size: var(--t-caption);
  color: var(--c-grey);
  line-height: 1.7;
  max-width: 320px;
}


/* ============================================================
   14. ABOUT MOMENT
   ============================================================
   Pink = person. This section belongs to Daniel.
   Two 1px pink horizontal lines open and close it.
   Faint turquoise wash in the background.
   The key sentence stands alone at statement scale.
   ============================================================ */

.about {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--c-rule);
  background: rgba(85, 199, 196, 0.055);
  position: relative;
}
.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Pink bookend lines */
.about__line {
  width: 100%;
  height: 1px;
  background: var(--c-pink);
}
.about__line--top    { margin-bottom: var(--sp-lg); }
.about__line--bottom { margin-top: var(--sp-lg); }

.about__body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-lg);
  align-items: start;
}

/* Left: pink eyebrow label */
.about__label {
  font-size: var(--t-eye);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-pink);
  padding-top: 10px;
}

/* Right: key sentence */
.about__statement {
  font-size: clamp(22px, 3.5vw, 48px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--c-black);
  margin-bottom: var(--sp-md);
  max-width: 760px;
}
.about__link {
  font-size: var(--t-small);
  color: var(--c-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
  cursor: pointer;
}
.about__link:hover { color: var(--c-turquoise); }


/* ============================================================
   15. TEACH SECTION
   ============================================================
   Yellow = learning. This entire section is warm yellow.
   NOT turquoise — the colour law.
   Yellow wash background. Yellow-tinted card borders.
   The eyebrow is warm gold. The CTA inverts to black/yellow.
   ============================================================ */

.teach {
  padding: var(--sp-xl) 0;
  background: #FFFBEE;
  border-bottom: 1px solid var(--c-rule);
}
.teach__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.teach__eyebrow {
  display: block;
  font-size: var(--t-eye);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a07c00;   /* warm gold — legible on yellow wash */
  margin-bottom: 18px;
}
.teach__statement {
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c-black);
  max-width: 640px;
  margin-bottom: var(--sp-md);
}
.teach__support {
  font-size: var(--t-large);
  line-height: 1.75;
  color: #333;
  max-width: 440px;
  margin-bottom: 8px;
}
.teach__areas {
  font-size: var(--t-caption);
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: var(--sp-lg);
}

/* Three teaching pillars as text cards */
.teach__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: var(--sp-lg);
}
.teach__card {
  padding: 22px 20px;
  border: 1px solid rgba(255, 217, 122, 0.55);
  background: rgba(255, 249, 220, 0.6);
}
.teach__card-title {
  font-size: var(--t-eye);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-black);
  margin-bottom: 10px;
}
.teach__card-body {
  font-size: var(--t-caption);
  line-height: 1.75;
  color: #555;
}


/* ============================================================
   16. FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--c-rule);
  padding: var(--sp-xl) 0 var(--sp-lg);
  background: var(--c-bg);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  margin-bottom: var(--sp-xl);
}

/* Brand */
.footer__logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-black);
  display: block;
  margin-bottom: 10px;
}
.footer__name,
.footer__role,
.footer__loc {
  font-size: 11px;
  color: var(--c-grey);
  line-height: 1.75;
  display: block;
}

/* Tagline — centrepiece */
.footer__tagline {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--c-black);
  text-align: center;
}

/* Nav */
.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer__nav-link {
  font-size: 11px;
  color: var(--c-grey);
  cursor: pointer;
  transition: color var(--t-fast);
  letter-spacing: 0.02em;
}
.footer__nav-link:hover { color: var(--c-turquoise); }

/* Bottom bar */
.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-md) var(--pad-x) 0;
  border-top: 1px solid var(--c-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__copy { font-size: 11px; color: var(--c-grey); }
.footer__social { display: flex; gap: var(--sp-md); }
.footer__social-link {
  font-size: 11px;
  color: var(--c-grey);
  cursor: pointer;
  transition: color var(--t-fast);
}
.footer__social-link:hover { color: var(--c-turquoise); }


/* ============================================================
   17. SCROLL REVEAL
   ============================================================ */

/* Already defined in Layout Utilities */


/* ============================================================
   18. RESPONSIVE — TABLET ≤900px
   ============================================================ */

@media (max-width: 900px) {

  :root { --sp-xl: 64px; --sp-2xl: 96px; }

  /* Hero: shorter, still split */
  .hero { height: 80svh; max-height: 760px; }

  /* Intro: single column */
  .intro__inner { grid-template-columns: 1fr; gap: var(--sp-lg); }

  /* Stories: single column */
  .stories__grid { grid-template-columns: 1fr; }
  .card--featured .frame--3-4 { aspect-ratio: 16/9; }

  /* About: single column */
  .about__body { grid-template-columns: 1fr; gap: var(--sp-md); }
  .about__label { padding-top: 0; }

  /* Teach cards: 2 col */
  .teach__cards { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2 col */
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
  .footer__tagline {
    grid-column: 1 / -1;
    text-align: left;
    font-size: clamp(20px, 3.5vw, 26px);
    padding: var(--sp-md) 0;
    border-top: 1px solid var(--c-rule);
    border-bottom: 1px solid var(--c-rule);
    order: -1;
  }
  .footer__nav { align-items: flex-end; }
}


/* ============================================================
   19. RESPONSIVE — MOBILE ≤600px
   ============================================================ */

@media (max-width: 600px) {

  :root { --sp-lg: 40px; --sp-xl: 56px; --sp-2xl: 80px; }

  /* Hide desktop nav, show hamburger */
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }

  /* Hero: full height, stack vertically */
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    max-height: none;
  }
  .hero__left {
    width: 100%;
    height: 55svh;
    min-height: 280px;
  }
  .hero__line {
    width: 100%; height: 1px;
    animation: lineDrawH 0.9s var(--ease) both;
    animation-delay: 100ms;
  }
  @keyframes lineDrawH {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
  }
  .hero__right {
    flex: none;
    padding: var(--sp-lg) var(--pad-x) var(--sp-xl);
    justify-content: flex-start;
  }
  .hero__scroll { display: none; }

  /* Intro: single column */
  .intro__inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .intro__ctas { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }

  /* Stories: single column, all 16:9 */
  .stories__grid { grid-template-columns: 1fr; }
  .card--featured .frame--3-4 { aspect-ratio: 4/3; }

  /* Teach: single column */
  .teach__cards { grid-template-columns: 1fr; }

  /* Footer: single column */
  .footer__inner { grid-template-columns: 1fr; gap: 0; }
  .footer__tagline {
    font-size: clamp(22px, 6vw, 28px);
    text-align: left;
    padding: var(--sp-lg) 0;
    border-top: 1px solid var(--c-rule);
    border-bottom: 1px solid var(--c-rule);
    margin-bottom: var(--sp-md);
    order: -1;
  }
  .footer__nav {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-sm);
  }
  .footer__bottom { flex-direction: column; gap: var(--sp-sm); text-align: center; }
}


/* ============================================================
   20. ACCESSIBILITY
   ============================================================ */

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
