/* =============================================================
   WorldBridge Academy — Design System
   Style:    Refined editorial · cool blue-slate
   Type:     EB Garamond (display) + Be Vietnam Pro (text)
   Author:   Built for worldbridge.ac
   ============================================================= */

/* ----------  Design Tokens  ---------- */
:root {
  /* Brand colour — cool blue-slate (primary identity #324048) */
  --oxblood:        #324048;
  --oxblood-700:    #283238;
  --oxblood-900:    #171F23;
  /* Accent — soft slate-teal (replaces the old warm accent) */
  --bronze:         #5E7A80;
  --bronze-600:     #4C666C;
  --bronze-100:     #E1ECEC;

  /* Neutrals — cool slate family */
  --ivory:          #EEF3F6;
  --ivory-deep:     #E4ECEF;
  --cream-card:     #FFFFFF;
  --ink:            #171F23;
  --muted:          #506470;
  --line:           rgba(23, 31, 35, 0.12);
  --line-strong:    rgba(23, 31, 35, 0.22);

  /* Dark surface (footer / CTA strips) */
  --dark:           #171F23;
  --dark-soft:      #283238;
  --on-dark:        #EEF3F6;
  --on-dark-muted:  rgba(238, 243, 246, 0.66);

  /* Semantic */
  --bg:             var(--ivory);
  --bg-alt:         var(--ivory-deep);
  --primary:        var(--oxblood);
  --accent:         var(--bronze);

  /* Layout */
  --maxw:           1200px;
  --maxw-prose:     68ch;
  --gutter:         clamp(1.25rem, 4vw, 2.5rem);
  --radius:         14px;
  --radius-lg:      22px;
  --radius-pill:    999px;

  /* Elevation */
  --shadow-sm:      0 1px 2px rgba(23, 31, 35,.06), 0 2px 6px rgba(23, 31, 35,.05);
  --shadow-md:      0 6px 18px rgba(23, 31, 35,.08), 0 2px 6px rgba(23, 31, 35,.05);
  --shadow-lg:      0 24px 60px -18px rgba(23, 31, 35,.28);

  /* Motion */
  --ease:           cubic-bezier(.22,.61,.36,1);
  --ease-out:       cubic-bezier(.16,1,.3,1);
  --dur:            .5s;
  --dur-fast:       .25s;

  /* Type scale (fluid) */
  --fs-display:     clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  --fs-h1:          clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  --fs-h2:          clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  --fs-h3:          clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  --fs-lead:        clamp(1.05rem, .98rem + .5vw, 1.3rem);
  --fs-body:        1.0625rem;
  --fs-sm:          .9rem;
  --fs-eyebrow:     .78rem;

  --z-nav:          50;
  --z-overlay:      40;
}

/* ----------  Reset / Base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Contain reveal-animation paint so off-screen (pre-animation) elements
   never create horizontal scroll on mobile. clip keeps position context
   intact and doesn't clip vertical shadows. */
main { overflow-x: clip; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--bronze-100); color: var(--oxblood-900); }

:focus-visible {
  outline: 2.5px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------  Layout helpers  ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt {
  background:
    radial-gradient(42% 55% at 100% 0%, rgba(94, 122, 128, .07), transparent 70%),
    radial-gradient(46% 62% at 0% 100%, rgba(50, 64, 72, .035), transparent 72%),
    var(--bg-alt);
}
.section--dark {
  background:
    /* faint bridge-cable arcs rising from the base */
    radial-gradient(58% 95% at 50% 132%, transparent 49.4%, rgba(94, 122, 128, .12) 49.8%, transparent 50.4%),
    radial-gradient(82% 120% at 50% 140%, transparent 49.5%, rgba(238, 243, 246, .06) 49.9%, transparent 50.5%),
    /* soft warm glow, upper right */
    radial-gradient(46% 70% at 88% -12%, rgba(94, 122, 128, .10), transparent 60%),
    var(--dark);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }

.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ----------  Typography utilities  ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--bronze);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.section--dark .eyebrow { color: var(--bronze); }

.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--maxw-prose);
}
.section--dark .lead { color: var(--on-dark-muted); }

.muted { color: var(--muted); }
.accent-text { color: var(--oxblood); }
.serif-em { font-family: "EB Garamond", serif; font-style: italic; }

.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: .65rem; }
.section-head .lead { margin-top: 1rem; }
.section-head.center .lead { margin-inline: auto; }

/* ----------  Buttons  ---------- */
.btn {
  --btn-bg: var(--oxblood);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  text-align: center;
}
.btn:hover { background: var(--oxblood-700); border-color: var(--oxblood-700); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-fg: var(--oxblood); background: transparent; border-color: var(--oxblood); box-shadow: none; }

.btn--gold { --btn-bg: var(--bronze-100); --btn-fg: var(--ink); border-color: var(--bronze-100); }
.btn--gold:hover { --btn-bg: #B7CBCB; border-color: #B7CBCB; color: var(--ink); box-shadow: var(--shadow-md); }

.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--on-dark); border-color: rgba(238, 243, 246,.4); }
.btn--on-dark:hover { background: rgba(238, 243, 246,.1); border-color: var(--on-dark); }

.btn .ico { width: 1.05em; height: 1.05em; }

/* text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--oxblood);
  position: relative;
}
.link-arrow .ico { width: 1.05em; height: 1.05em; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.section--dark .link-arrow { color: var(--bronze); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }

/* ----------  Icons / decorative  ---------- */
.ico {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bronze-100);
  color: var(--oxblood);
  flex: none;
}
.icon-badge .ico { width: 27px; height: 27px; }
.section--dark .icon-badge { background: rgba(94, 122, 128,.18); color: var(--bronze); }

/* bronze hairline divider */
.rule { height: 1px; background: var(--line); border: 0; }
.rule--accent { height: 2px; width: 64px; background: var(--bronze); border: 0; }

/* ----------  Pills / tags  ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  background: rgba(50, 64, 72,.06);
  color: var(--oxblood);
  border: 1px solid rgba(50, 64, 72,.12);
}
.section--dark .tag { background: rgba(238, 243, 246,.08); color: var(--on-dark); border-color: rgba(238, 243, 246,.16); }

/* ----------  Cards  ---------- */
.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(94, 122, 128,.4); transform: translateY(-4px); }
.card h3 { margin-bottom: .6rem; }
.card .icon-badge { margin-bottom: 1.15rem; }
.card p { color: var(--muted); }

/* clickable card */
a.card { display: block; color: inherit; }
a.card .card-cta { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* numbered card (program quick cards) */
.num-card { position: relative; }
.num-card .num {
  font-family: "EB Garamond", serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--bronze);
  line-height: 1;
  display: block;
  margin-bottom: .8rem;
  opacity: .85;
}

/* ----------  Media / placeholder blocks  ---------- */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--oxblood) 0%, var(--oxblood-900) 60%, #0E1316 100%);
  color: var(--on-dark);
  isolation: isolate;
  min-height: 280px;
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* branded placeholder (no image yet) */
.ph {
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .55rem;
  padding: 2rem;
  min-height: 280px;
  border-radius: var(--radius-lg);
  color: var(--muted);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 50% 38%, rgba(94, 122, 128,.1), transparent 72%),
    var(--cream-card);
  overflow: hidden;
}
.ph::before { /* faint bridge-arc line motif */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(62% 120% at 50% 132%, transparent 49.5%, rgba(94, 122, 128,.22) 50%, transparent 51%),
    radial-gradient(84% 150% at 50% 152%, transparent 49.6%, rgba(50, 64, 72,.1) 50%, transparent 50.6%);
  opacity: .85;
}
.ph__label {
  position: relative;
  font-size: var(--fs-eyebrow);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-600);
  font-weight: 600;
}
.ph__title {
  position: relative;
  font-family: "EB Garamond", serif;
  font-size: 1.4rem;
  color: var(--ink);
}
.ph .ico { width: 30px; height: 30px; color: var(--bronze); margin-inline: auto; position: relative; }
.ph--tall { min-height: 440px; }
.ph--wide { min-height: 320px; }

/* ----------  Navbar  ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(238, 243, 246,.88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(23, 31, 35,.03);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; }
.brand__mark { width: 38px; height: 38px; flex: none; color: var(--oxblood); }
.brand__logo { height: 34px; width: auto; flex: none; display: block; }
.footer .brand__logo { filter: invert(1); opacity: .9; }
@media (max-width: 940px) { .brand__logo { height: 30px; } }
.brand__name {
  font-family: "EB Garamond", serif;
  font-size: 1.18rem;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.05;
}
.brand__name small {
  display: block;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze-600);
  font-weight: 600;
}

.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; }
.nav__links a {
  display: inline-block;
  padding: .55rem .8rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 1.5px;
  background: var(--bronze); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__links a:hover { color: var(--oxblood); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--oxblood); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-left: 1.1rem; padding-left: 1.35rem;
  border-left: 1px solid var(--line-strong);   /* divider: tabs | actions */
}
/* EN / VI language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; flex: none; }
.lang-toggle button {
  font-family: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .03em;
  padding: .4rem .66rem; background: transparent; color: var(--muted); border: 0; cursor: pointer; line-height: 1;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-toggle button.is-active { background: var(--oxblood); color: #fff; }
.lang-toggle button:not(.is-active):hover { color: var(--oxblood); }
/* quieter nav CTA — subtle outline that only fills on hover */
.nav__cta .btn {
  padding: .56rem 1.15rem;
  font-size: .92rem;
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.nav__cta .btn:hover {
  background: rgba(50, 64, 72, .06);
  border-color: var(--oxblood);
  color: var(--oxblood);
  box-shadow: none;
}
.nav__cta .btn[aria-current="page"] { color: var(--oxblood); border-color: rgba(50, 64, 72,.4); }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 10px; cursor: pointer; color: var(--ink);
}
.nav__toggle .ico { width: 22px; height: 22px; }
.nav__toggle .ico-close { display: none; }
.nav.is-open .nav__toggle .ico-open { display: none; }
.nav.is-open .nav__toggle .ico-close { display: block; }

@media (max-width: 940px) {
  .nav__menu {
    position: fixed;
    inset: 76px 0 auto 0;
    background: rgba(238, 243, 246,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
    box-shadow: var(--shadow-md);
    display: flex;
  }
  .nav.is-open .nav__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__links a { padding: .85rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; margin-top: 1rem; margin-left: 0; padding-left: 0; border-left: 0; }
  .nav__cta .btn { width: 100%; padding: .9rem; }
  .nav__toggle { display: inline-flex; }
}

/* spacer so fixed nav doesn't overlap content on inner pages */
.nav-offset { height: 76px; }

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(94, 122, 128,.16), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(50, 64, 72,.07), transparent 55%),
    var(--ivory);
}
.hero::after { /* subtle bridge line */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
  opacity: .6; pointer-events: none;
}
.hero::before { /* soft dot texture fading into the top-right */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(50, 64, 72, .05) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(58% 58% at 92% 10%, #000, transparent 72%);
          mask-image: radial-gradient(58% 58% at 92% 10%, #000, transparent 72%);
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__grid > * { min-width: 0; }
.hero__copy { min-width: 0; }
.split > * { min-width: 0; }
.hero__art { position: relative; }
.hero__art .ph { min-height: 460px; }
.hero__art .floating {
  position: absolute;
  bottom: 1.4rem; left: -1.2rem;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .8rem;
  max-width: 260px;
}
.hero__art .floating .icon-badge { width: 44px; height: 44px; margin: 0; }
.hero__art .floating strong { display: block; font-family: "EB Garamond", serif; }
.hero__art .floating span { font-size: .82rem; color: var(--muted); }

.page-hero {
  position: relative;
  padding-top: clamp(7rem, 12vh, 9.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(70% 90% at 90% -10%, rgba(94, 122, 128,.15), transparent 60%),
    var(--ivory);
}
.page-hero::before { /* soft dot texture in the top-right corner */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(50, 64, 72, .045) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(55% 62% at 95% 6%, #000, transparent 70%);
          mask-image: radial-gradient(55% 62% at 95% 6%, #000, transparent 70%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: var(--oxblood); }
.breadcrumb .sep { opacity: .5; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art .ph { min-height: 300px; }
}
@media (max-width: 480px) {
  :root { --fs-display: clamp(2rem, 1.1rem + 5vw, 2.6rem); }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  .hero__art .floating { left: .5rem; bottom: .5rem; max-width: 78%; padding: .8rem .9rem; }
  .stats { gap: 1.5rem 2rem; }
}

/* ----------  Stats  ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: "EB Garamond", serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 600;
  color: var(--oxblood);
  line-height: 1;
}
.stat__label { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* ----------  Philosophy / quote strips  ---------- */
.quote-block {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}
.quote-block .mark {
  font-family: "EB Garamond", serif;
  font-size: 5rem;
  line-height: .6;
  color: var(--bronze);
  opacity: .5;
  display: block;
  margin-bottom: .5rem;
}
.quote-block blockquote,
.quote-lg {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.quote-block cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .95rem; color: var(--on-dark-muted); letter-spacing: .04em; }
.section:not(.section--dark) .quote-block cite { color: var(--muted); }

/* inline pull-quote within prose */
.pullquote {
  border-left: 3px solid var(--bronze);
  padding: .4rem 0 .4rem 1.5rem;
  margin: 2rem 0;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.35;
  color: var(--oxblood);
}

/* ----------  Split feature (image + text)  ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
}

/* ----------  Feature list  ---------- */
.feature-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .ico { color: var(--bronze-600); width: 22px; height: 22px; flex: none; margin-top: .15rem; }
.feature-list span { color: var(--ink); }

.def-grid { display: grid; gap: 1.5rem; }
.def-grid .def-label {
  font-size: var(--fs-eyebrow); letter-spacing: .16em; text-transform: uppercase;
  color: var(--bronze-600); font-weight: 600; margin-bottom: .7rem;
}

/* ----------  Program section blocks  ---------- */
.program {
  scroll-margin-top: 100px;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.program:first-of-type { border-top: 0; }
.program__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.program__index {
  font-family: "EB Garamond", serif; font-size: 1.1rem; font-weight: 600;
  color: #fff; background: var(--oxblood);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-content: center; flex: none;
}
.program__tagline { font-size: var(--fs-lead); color: var(--oxblood); font-family: "EB Garamond", serif; font-style: italic; margin-top: .3rem; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; margin-top: 1.75rem; }
.program__head > div { min-width: 0; }

/* anchor chip nav */
.chipnav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.chipnav a {
  font-size: .85rem; font-weight: 500; padding: .5rem 1rem;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  color: var(--ink); background: var(--cream-card);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.chipnav a:hover { border-color: var(--oxblood); color: var(--oxblood); background: rgba(50, 64, 72,.04); }

/* ----------  Destinations  ---------- */
.dest-card { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.dest-card .ph, .dest-card .media { min-height: 210px; margin: 0; border-radius: 0; }
.dest-card .dest-body { padding: clamp(1.3rem, 3vw, 1.7rem); }
.dest-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.dest-code {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  padding: .3rem .6rem; border-radius: var(--radius-pill);
  background: rgba(23, 31, 35,.45); color: var(--on-dark);
  backdrop-filter: blur(4px); border: 1px solid rgba(238, 243, 246,.25);
}
.dest-card .home-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: var(--radius-pill);
  background: var(--oxblood); color: #fff;
}

/* ----------  Contact  ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item .icon-badge { width: 46px; height: 46px; }
.contact-item .label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item p { font-size: 1.05rem; font-weight: 500; }
.contact-item a:hover { color: var(--oxblood); }

.form { display: grid; gap: 1.2rem; background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .9rem; font-weight: 600; }
.field label .req { color: var(--oxblood); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem;
  background: var(--ivory);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--oxblood);
  box-shadow: 0 0 0 3px rgba(50, 64, 72,.12);
}
.field input::placeholder, .field textarea::placeholder { color: #606C76; }
.form .btn { width: 100%; margin-top: .3rem; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { display: none; padding: .9rem 1rem; border-radius: 10px; font-size: .92rem; }
.form-status.is-ok { display: block; background: rgba(34,90,54,.1); color: #1e5631; border: 1px solid rgba(34,90,54,.25); }
.form-status.is-err { display: block; background: rgba(50, 64, 72,.08); color: var(--oxblood); border: 1px solid rgba(50, 64, 72,.25); }

/* ----------  CTA strip  ---------- */
.cta-strip { position: relative; overflow: hidden; }
.cta-strip .ph-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(50% 120% at 80% 0%, rgba(94, 122, 128,.22), transparent 60%),
    radial-gradient(60% 120% at 50% 140%, transparent 49.6%, rgba(238, 243, 246,.12) 50%, transparent 50.6%);
}
.cta-strip .container { position: relative; z-index: 1; }

/* ----------  Footer  ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer a { color: var(--on-dark-muted); transition: color var(--dur-fast) var(--ease); }
.footer a:hover { color: var(--on-dark); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(238, 243, 246,.12); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }
.footer .brand__name { color: var(--on-dark); }
.footer__about { max-width: 36ch; color: var(--on-dark-muted); margin-top: 1rem; font-size: .95rem; }
.footer__col h4 { font-family: "Be Vietnam Pro", sans-serif; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1rem; font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: .85rem; color: var(--on-dark-muted); }
.footer__bottom .brand__mark { color: var(--bronze); }

/* ----------  Scroll reveal animations  ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal="left"]  { transform: translateX(-18px); }
.reveal[data-reveal="right"] { transform: translateX(18px); }
.reveal[data-reveal="scale"] { transform: scale(.985); }
.reveal.is-visible[data-reveal] { transform: none; }

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* gentle float for hero card */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-anim { animation: floaty 6s var(--ease) infinite; }

/* ----------  Reduced motion  ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .float-anim { animation: none !important; }
}

/* ----------  Utilities  ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: 1.5rem; }
.maxw-prose { max-width: var(--maxw-prose); }
.hidden { display: none; }
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--oxblood); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   PREMIUM v2 — Fraunces type, duotone imagery, cinematic hero,
   choreographed motion, film grain
   ============================================================= */

/* ----------  Type refinement (EB Garamond — restrained)  ---------- */
:root {
  --fs-display: clamp(2.4rem, 1.7rem + 2.5vw, 3.85rem);
  --fs-h1: clamp(1.95rem, 1.5rem + 1.8vw, 2.95rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.25vw, 2.3rem);
  --fs-h3: clamp(1.2rem, 1.06rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.05rem, .99rem + .4vw, 1.22rem);
  --ease-lux: cubic-bezier(.16, 1, .3, 1);
}
h1, h2, h3, h4 { letter-spacing: -.004em; font-weight: 600; }
.display { letter-spacing: -.008em; line-height: 1.14; font-weight: 500; }
.h2 { font-weight: 600; }
.stat__num, .num, .program__index { font-weight: 600; font-feature-settings: "tnum" 1; letter-spacing: 0; }
.serif-em, .quote-block blockquote, .quote-lg, .pullquote, .program__tagline { font-weight: 500; }
.eyebrow { font-size: .76rem; }

/* ----------  Film grain (whole page, subtle)  ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .028; mix-blend-mode: multiply;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ----------  Duotone imagery (Ironwood)  ---------- */
.duo { position: relative; isolation: isolate; overflow: hidden; background: var(--oxblood-900); }
.duo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* warm Ironwood monochrome base */
  filter: grayscale(1) sepia(.55) saturate(1.55) hue-rotate(-8deg) contrast(1.05) brightness(1.04);
}
.duo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--oxblood); mix-blend-mode: multiply; opacity: .5; }
.duo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(150deg, rgba(94, 122, 128,.35), rgba(50, 64, 72,.2)); mix-blend-mode: soft-light; opacity: .7; }
.duo > * { position: relative; z-index: 3; }
.duo--hero img { filter: grayscale(1) sepia(.5) saturate(1.5) hue-rotate(-8deg) contrast(1.04) brightness(1.07); }
.duo--hero::before { opacity: .3; }
.duo--hero::after { opacity: .55; }
.duo--soft::before { opacity: .4; }

/* image inside the existing .media wrapper gets duotone too */
.media.duo { background: var(--oxblood-900); }

/* ----------  Cinematic hero  ---------- */
.hero--cine {
  position: relative;
  min-height: clamp(540px, 82vh, 820px);
  display: flex; align-items: center;
  overflow: hidden;
  padding-block: clamp(7rem, 12vh, 9rem) clamp(3rem, 6vh, 4.5rem);
  background: var(--ivory);
}
.hero--cine .container { position: relative; z-index: 3; width: 100%; }
.hero--cine .hero__copy { max-width: 600px; }
.hero--cine .hero__copy .stats { border-top-color: rgba(23, 31, 35,.16); }

.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; z-index: 1; }
.hero__media .duo { width: 100%; height: 100%; }
.hero__media .duo img { animation: kenburns 36s ease-in-out infinite alternate; will-change: transform; }
.hero__media::before { /* blend image into the ivory text area */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, var(--ivory) 1%, rgba(238, 243, 246,.6) 22%, rgba(238, 243, 246,0) 52%);
}
.hero__media::after { /* gentle vignette at base */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 4; pointer-events: none;
  background: linear-gradient(0deg, rgba(23, 31, 35,.28), transparent);
}
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.09); } }

/* floating credential card over the hero image */
.hero__media .floating {
  position: absolute; z-index: 6; bottom: 1.6rem; left: -2.2rem;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .95rem 1.15rem; display: flex; align-items: center; gap: .8rem; max-width: 260px;
}
.hero__media .floating .icon-badge { width: 44px; height: 44px; margin: 0; }
.hero__media .floating strong { display: block; font-family: "EB Garamond", serif; font-size: 1.05rem; }
.hero__media .floating span { font-size: .8rem; color: var(--muted); }

/* self-drawing bridge line over the hero image */
.hero__line { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__line path { fill: none; stroke: var(--bronze); stroke-width: 1; opacity: .5; }
.hero__line .cable { stroke-width: .8; opacity: .35; }

/* ----------  Hero line-art illustration (replaces photo)  ---------- */
.hero__media--art {
  display: flex; align-items: center; justify-content: center; overflow: visible;
  background: radial-gradient(56% 56% at 54% 47%, rgba(94, 122, 128,.12), transparent 72%);
}
.hero__media--art::before, .hero__media--art::after { display: none; }
.hero__illu {
  width: 90%; max-width: 580px; height: auto; overflow: visible;
  stroke: var(--bronze); fill: none; stroke-linecap: round; stroke-linejoin: round;
  animation: floaty 11s var(--ease) infinite;
}
.hero__illu .il-globe { stroke: var(--bronze-600); }
.hero__illu .il-bridge { stroke: var(--oxblood); }
.hero__illu .il-bird { stroke: var(--bronze-600); }
.hero__illu .il-dot { fill: var(--bronze); stroke: none; }
.hero__illu .il-sun-fill { fill: rgba(94, 122, 128, .1); stroke: none; }

/* draw-in choreography */
html.js .hero__illu [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero--cine.is-drawn .hero__illu .il-globe [data-draw] { animation: draw 1.8s var(--ease-lux) .2s forwards; }
.hero--cine.is-drawn .hero__illu .il-bridge [data-draw] { animation: draw 2.1s var(--ease-lux) .55s forwards; }
.hero--cine.is-drawn .hero__illu .il-route [data-draw] { animation: draw 1.1s var(--ease-lux) 1.05s forwards; }
.hero--cine.is-drawn .hero__illu .il-bird [data-draw] { animation: draw .9s var(--ease-lux) 1.3s forwards; }
html.js .hero__illu .il-dot circle { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .5s ease, transform .6s var(--ease-lux); }
.hero--cine.is-drawn .hero__illu .il-dot circle { opacity: 1; transform: none; transition-delay: 1.2s; }
html.js .hero__illu .il-sun-fill { opacity: 0; transform: scale(.92); transform-box: fill-box; transform-origin: center; transition: opacity 1.3s ease, transform 1.5s var(--ease-lux); }
.hero--cine.is-drawn .hero__illu .il-sun-fill { opacity: 1; transform: none; }
@media (max-width: 880px) {
  .hero__media--art { height: auto; padding: 1.25rem 0 .5rem; }
  .hero__illu { max-width: 420px; }
}

/* ----------  Per-page line illustrations (in .ph panels)  ---------- */
.ph .scene-svg {
  width: 100%; max-width: 320px; height: auto; overflow: visible;
  stroke: var(--bronze-600); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ph .scene-svg.scene-svg--sm { max-width: 140px; }
.ph--wide .scene-svg { max-width: 220px; }
.dest-card .ph .scene-svg { max-width: 215px; }
/* clean panels: drop the faint arc when a real illustration is present */
.ph:has(.scene-svg)::before { display: none; }
/* CMS-managed photos (Team + Who We Serve) fill their panels */
.ph .wws-photo, .ph.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(.wws-photo), .ph.team-photo { padding: 0; }
.ph:has(.wws-photo)::before, .ph.team-photo::before { display: none; }

/* ----------  Editorial image treatment (cool, lively, on-brand)  ----------
   Keeps natural colour, depth and highlight detail while cooling the photo
   toward the slate palette — alive, not a flat grey wash.
     <div class="ph ph--tall"><div class="duo-photo"><img src="…" alt="…"></div></div>
   Variants:  (base) = standard · "--soft" = most natural · "--rich" = stronger brand tint */
.ph:has(.duo-photo) { padding: 0; }
.ph:has(.duo-photo)::before { display: none; }
.duo-photo { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: var(--oxblood-900); }
.duo-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* retain colour & local contrast — only lightly muted */
  filter: saturate(.8) contrast(1.06) brightness(1.03);
}
/* cool slate grade — gentle gradient, deeper toward the base; tints without washing out */
.duo-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(168deg, rgba(109,136,152,.10) 0%, rgba(50,64,72,.30) 100%);
  mix-blend-mode: multiply;
}
/* lift highlights with a hint of cool light so they stay clean, not muddy */
.duo-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(229,240,240,.12); mix-blend-mode: soft-light;
}
.duo-photo > * { position: relative; z-index: 3; }

/* subtle — most natural, best for people/faces (Who We Serve) */
.duo-photo--soft img { filter: saturate(.9) contrast(1.05) brightness(1.03); }
.duo-photo--soft::before { background: linear-gradient(168deg, rgba(109,136,152,.06) 0%, rgba(50,64,72,.2) 100%); }

/* richer — stronger brand tint, for moody / image-behind-text use */
.duo-photo--rich img { filter: saturate(.55) contrast(1.07) brightness(1); }
.duo-photo--rich::before { background: linear-gradient(168deg, rgba(50,64,72,.34) 0%, rgba(23,31,35,.52) 100%); }
.duo-photo--rich::after { background: rgba(186,207,219,.16); }
.ph .scene-svg .il-accent { stroke: var(--oxblood); }
.ph .scene-svg .il-soft { stroke: var(--bronze); opacity: .55; }
.ph .scene-svg .il-fill { fill: rgba(94, 122, 128, .1); stroke: none; }
.ph .scene-svg .il-dotfill { fill: var(--bronze); stroke: none; }
/* draw-in once the panel scrolls into view (panel sits inside a .reveal wrapper) */
html.js .reveal .scene-svg [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.is-visible .scene-svg [data-draw] { animation: draw 1.7s var(--ease-lux) forwards; }
.reveal.is-visible .scene-svg .il-late { animation-delay: .5s; }

@media (max-width: 880px) {
  .hero--cine { display: block; min-height: 0; padding-top: calc(76px + 1.25rem); padding-bottom: 2.5rem; overflow: hidden; }
  .hero__media { position: relative; width: 100%; height: 44vh; right: auto; top: auto; bottom: auto; margin-bottom: -2px; }
  .hero__media::before { background: linear-gradient(0deg, var(--ivory) 2%, rgba(238, 243, 246,0) 46%); }
  .hero__media::after { display: none; }
  .hero__media .floating { left: 1rem; bottom: 1rem; max-width: 220px; }
  .hero--cine .hero__copy { max-width: none; padding-top: 1.75rem; }
  .hero__title { font-variation-settings: "opsz" 72, "wght" 470; }
}

/* ----------  Choreographed motion  ---------- */
/* masked, line-by-line headline reveal */
.reveal--lines { opacity: 1 !important; transform: none !important; }
.reveal--lines .ln { display: block; overflow: hidden; padding: .06em 0 .26em; margin-bottom: -.24em; }
html.js .reveal--lines .ln > span { display: block; transform: translateY(125%); transition: transform 1.15s var(--ease-lux); }
html.js .reveal--lines .ln:nth-child(1) > span { transition-delay: .08s; }
html.js .reveal--lines .ln:nth-child(2) > span { transition-delay: .2s; }
html.js .reveal--lines .ln:nth-child(3) > span { transition-delay: .32s; }
html.js .reveal--lines .ln:nth-child(4) > span { transition-delay: .44s; }
/* shown state — out-specifies the hidden rule; triggers on hero load (is-drawn) OR scroll (is-visible) */
html.js .hero--cine.is-drawn .reveal--lines .ln > span,
html.js .reveal--lines.is-visible .ln > span { transform: none; }

/* hero image wipe + bridge-line draw, triggered on load */
html.js .hero__media .duo { clip-path: inset(0 0 0 100%); transition: clip-path 1.5s var(--ease-lux) .2s; }
.hero--cine.is-drawn .hero__media .duo { clip-path: inset(0 0 0 0); }
html.js .hero__line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero--cine.is-drawn .hero__line path { animation: draw 3.6s var(--ease-lux) .7s forwards; }
.hero--cine.is-drawn .hero__line .cable { animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* generic image clip-reveal for editorial sections */
html.js .reveal-img > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-lux); }
.reveal-img.is-visible > * { clip-path: inset(0 0 0 0); }

/* luxe easing + a touch more travel on standard reveals */
.reveal { transition: opacity .85s var(--ease-lux), transform .85s var(--ease-lux); }

/* hover lift refinement on media */
.duo { transition: transform .6s var(--ease-out); }

/* ----------  Editorial split image  ---------- */
.editorial .split__media .duo { min-height: 440px; border-radius: var(--radius-lg); }
.section--photo { position: relative; overflow: hidden; }
.section--photo .photo-bg { position: absolute; inset: 0; z-index: 0; }
.section--photo .photo-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.5) saturate(1.5) hue-rotate(-8deg); }
.section--photo .photo-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 31, 35,.86), rgba(23, 31, 35,.92)); }
.section--photo .photo-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 120%, rgba(94, 122, 128,.18), transparent 60%); }
.section--photo > .container { position: relative; z-index: 1; }

/* ----------  Reduced motion overrides  ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal--lines .ln > span { transform: none !important; }
  .hero__media .duo { clip-path: none !important; }
  .hero__media .duo img { animation: none !important; transform: scale(1.06) !important; }
  .hero__line path { stroke-dashoffset: 0 !important; animation: none !important; }
  .reveal-img > * { clip-path: none !important; }
  .hero__illu { animation: none !important; }
  [data-draw] { stroke-dashoffset: 0 !important; animation: none !important; }
  .hero__illu .il-dot circle, .hero__illu .il-sun-fill { opacity: 1 !important; transform: none !important; }
}
