/* ==========================================================================
   Brightlyceum — design system
   Tokens · base · layout · components · page compositions · consent · print
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --yellow: #FFCC00;
  --yellow-soft: #FFE680;
  --yellow-tint: #FFF4C2;
  --orange: #F36A35;
  --orange-ink: #B9461B;      /* AA-compliant orange for text on light backgrounds */
  --charcoal: #20262B;
  --charcoal-2: #2B333A;
  --charcoal-deep: #171C20;
  --green: #86C34A;
  --green-ink: #3F6F14;
  --ivory: #FFF9EC;
  --ivory-2: #FBF1DA;
  --white: #FFFFFF;
  --gray: #667085;
  --gray-2: #4A5261;
  --line: #E9E1CF;
  --line-dark: rgba(255, 255, 255, .12);

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.65rem, 1.35rem + 1.4vw, 2.5rem);
  --step-4: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --step-5: clamp(2.35rem, 1.6rem + 3.6vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Signature shape: generous radius with one tight "speech-bubble" corner (bottom-left), echoing the logo */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 44px;
  --shape: var(--r-lg) var(--r-lg) var(--r-lg) 6px;
  --shape-xl: var(--r-xl) var(--r-xl) var(--r-xl) 10px;

  --shadow-sm: 0 1px 2px rgba(32, 38, 43, .06), 0 2px 8px rgba(32, 38, 43, .05);
  --shadow-md: 0 6px 18px rgba(32, 38, 43, .08), 0 18px 40px rgba(32, 38, 43, .08);
  --shadow-lg: 0 24px 60px rgba(23, 28, 32, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--charcoal); }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.visually-hidden {
  position: absolute !important; 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: 16px; top: -100px; z-index: 200;
  background: var(--yellow); color: var(--charcoal); padding: .75rem 1.1rem; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--ivory { background: var(--ivory); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 680px; }
.section-head h2 { margin-bottom: .35em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow, .eyebrow--light { color: var(--yellow); }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--gray-2); }
.on-dark .lead { color: rgba(255, 255, 255, .78); }
.muted { color: var(--gray); }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding-inline: .06em; }
.on-dark .hl { background: none; color: var(--yellow); }

/* ---------- Buttons & chips ---------- */
.btn {
  --bg: var(--charcoal); --fg: var(--white); --bd: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd);
  border-radius: 999px 999px 999px 12px;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(32, 38, 43, .18); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--yellow { --bg: var(--yellow); --fg: var(--charcoal); --bd: var(--yellow); }
.btn--yellow:hover { --bg: #FFD633; }
.btn--orange { --bg: var(--orange); --fg: var(--charcoal); --bd: var(--orange); }
.btn--green { --bg: var(--green); --fg: var(--charcoal); --bd: var(--green); }
.btn--ghost { --bg: transparent; --fg: var(--charcoal); --bd: var(--charcoal); }
.btn--ghost:hover { --bg: var(--charcoal); --fg: var(--white); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { --bg: var(--white); --fg: var(--charcoal); --bd: var(--white); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--charcoal);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow::after { content: none; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px;
  padding: .45rem .95rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  color: var(--charcoal); background: rgba(255, 255, 255, .72); border: 1px solid rgba(32, 38, 43, .14);
  cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { background: var(--white); border-color: var(--charcoal); color: var(--charcoal); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.tag {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px 999px 999px 4px;
  font-family: var(--font-head); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--yellow); color: var(--charcoal);
}
.tag--orange { background: var(--orange); }
.tag--green { background: var(--green); }
.tag--dark { background: var(--charcoal); color: var(--white); }
.tag--line { background: transparent; border: 1px solid currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal); color: var(--white);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); background: rgba(32, 38, 43, .97); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(32, 38, 43, .9); backdrop-filter: saturate(140%) blur(12px); }
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 66px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.site-header.is-scrolled .brand img { height: 38px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: rgba(255, 255, 255, .88); text-decoration: none;
  border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--white); }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 5px; height: 3px; border-radius: 3px; background: var(--yellow);
}
.nav__cta { margin-left: .75rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px 14px 14px 4px;
  background: var(--yellow); border: 0; color: var(--charcoal); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.75px; }
.nav-toggle__bars span:nth-child(3) { top: 11.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5.75px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5.75px; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 1.5rem; margin: 0;
    padding: 1.5rem var(--gutter) 2.5rem; background: var(--charcoal);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .site-header.is-scrolled .nav { top: 66px; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-dark); }
  .nav__link { width: 100%; min-height: 60px; padding: .75rem .25rem; font-size: 1.3rem; border-radius: 0; }
  .nav__link:hover { background: none; color: var(--yellow); }
  .nav__link[aria-current="page"]::after, .nav__link.is-active::after { left: auto; right: .25rem; top: 50%; bottom: auto; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); }
  .nav__cta { margin: 0; width: 100%; }
  .nav__note { display: block !important; color: rgba(255, 255, 255, .6); font-size: .92rem; }
  body.nav-open { overflow: hidden; }
}
.nav__note { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .88rem; margin-bottom: 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; color: inherit; opacity: .8; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: inherit; }
.breadcrumbs [aria-current] { opacity: 1; font-weight: 600; }

/* ==========================================================================
   HOME — hero with golden discovery panel
   ========================================================================== */
.hero { position: relative; isolation: isolate; min-height: clamp(640px, 88vh, 860px); display: flex; align-items: center; padding-block: clamp(3rem, 6vw, 6rem); color: var(--white); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 28, 32, .62) 0%, rgba(23, 28, 32, .34) 48%, rgba(23, 28, 32, .12) 100%),
    linear-gradient(0deg, rgba(23, 28, 32, .45) 0%, transparent 40%);
}
.hero__inner { width: 100%; display: grid; grid-template-columns: minmax(0, 700px) 1fr; align-items: center; gap: 2rem; }
.hero-panel {
  position: relative; background: var(--yellow); color: var(--charcoal);
  border-radius: var(--shape-xl); padding: clamp(1.75rem, 1rem + 3vw, 3.4rem);
  box-shadow: var(--shadow-lg);
  animation: panelIn .9s var(--ease) both .1s;
}
.hero-panel::after { /* speech-bubble tail at the tight corner */
  content: ""; position: absolute; left: 0; bottom: -18px; width: 34px; height: 22px;
  background: var(--yellow); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hero-panel .eyebrow { color: var(--charcoal); }
.hero-panel .eyebrow::before { background: var(--orange); }
.hero-panel h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.1rem); margin-bottom: .35em; }
.hero-panel__text { font-size: var(--step-1); line-height: 1.55; color: rgba(32, 38, 43, .86); max-width: 54ch; margin-bottom: 1.6rem; }
.hero__aside { justify-self: end; align-self: end; max-width: 300px; }
.hero-note {
  background: rgba(23, 28, 32, .72); border: 1px solid rgba(255, 255, 255, .14); color: var(--white);
  padding: 1.1rem 1.25rem; border-radius: var(--shape); font-size: .92rem; line-height: 1.5;
  animation: panelIn .9s var(--ease) both .45s;
}
@supports (backdrop-filter: blur(8px)) { .hero-note { background: rgba(23, 28, 32, .5); backdrop-filter: blur(10px); } }
.hero-note strong { display: block; font-family: var(--font-head); color: var(--yellow); margin-bottom: .2rem; }
@keyframes panelIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Discovery search */
.search { position: relative; margin-bottom: 1.25rem; }
.search__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.search__field {
  display: flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem 1.1rem;
  background: var(--white); border-radius: 999px 999px 999px 14px; box-shadow: 0 2px 0 rgba(32, 38, 43, .08), inset 0 0 0 2px transparent;
  transition: box-shadow .2s;
}
.search__field:focus-within { box-shadow: 0 0 0 3px var(--charcoal); }
.search__field > svg { width: 22px; height: 22px; flex: none; color: var(--gray); }
.search__input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent;
  font: 500 1.05rem/1.2 var(--font-body); color: var(--charcoal);
}
.search__input::placeholder { color: #7A8291; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__submit { min-height: 50px; flex: none; }
.search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  list-style: none; margin: 0; padding: .4rem; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto;
}
.search__results[hidden] { display: none; }
.search__option { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border-radius: 12px; cursor: pointer; }
.search__option strong { font-family: var(--font-head); font-size: .98rem; }
.search__option span { font-size: .85rem; color: var(--gray); }
.search__option[aria-selected="true"], .search__option:hover { background: var(--yellow-tint); }
.search__empty { padding: .9rem; font-size: .92rem; color: var(--gray-2); }
.search__suggest { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1.6rem; }
.search__suggest-label { font-size: .85rem; font-weight: 600; margin-right: .2rem; }
.search__suggest .chip { min-height: 36px; font-size: .84rem; padding: .35rem .8rem; background: rgba(255, 255, 255, .55); }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.split--wide-text { grid-template-columns: 1.1fr .9fr; }
.media-offset { position: relative; padding: 0 0 2.25rem 2.25rem; }
.media-offset::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 72%;
  background: var(--yellow); border-radius: var(--shape-xl);
}
.media-offset img, .media-offset picture { position: relative; border-radius: var(--shape-xl); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.media-offset--orange::before { background: var(--orange); left: auto; right: 0; }
.media-offset--orange { padding: 0 2.25rem 2.25rem 0; }
.media-badge {
  position: absolute; right: -10px; top: 12%; z-index: 2; max-width: 210px;
  background: var(--charcoal); color: var(--white); padding: 1rem 1.15rem; border-radius: var(--shape);
  box-shadow: var(--shadow-md); font-size: .9rem; line-height: 1.4;
}
.media-badge b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--yellow); line-height: 1.1; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320262B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ---------- Topic cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.topic-card {
  --accent: var(--yellow);
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--shape); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.topic-card:nth-child(2) { --accent: var(--orange); }
.topic-card:nth-child(3) { --accent: var(--green); }
.topic-card:nth-child(4) { --accent: var(--charcoal); }
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.topic-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.topic-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.topic-card:hover .topic-card__media img { transform: scale(1.06); }
.topic-card__num {
  position: absolute; left: 1rem; bottom: -1px; padding: .45rem .9rem .35rem; border-radius: 14px 14px 0 0;
  background: var(--white); font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .08em;
}
.topic-card__num::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: 1px; }
.topic-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.5rem; }
.topic-card h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.topic-card h3 a { text-decoration: none; }
.topic-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.topic-card p { font-size: .96rem; color: var(--gray-2); margin-bottom: 1.25rem; }
.topic-card .link-arrow { margin-top: auto; font-size: .95rem; }
.topic-card:hover .link-arrow svg { transform: translateX(4px); }
.topic-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.topic-card:hover::before { transform: scaleX(1); }

/* ---------- Why English: editorial ---------- */
.editorial { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.editorial__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.editorial__collage { position: relative; margin-top: 2rem; height: 340px; }
.editorial__collage img { position: absolute; object-fit: cover; box-shadow: var(--shadow-md); }
.editorial__collage img:first-child { left: 0; top: 0; width: 68%; height: 82%; border-radius: var(--shape-xl); }
.editorial__collage img:last-child { right: 0; bottom: 0; width: 50%; height: 58%; border-radius: var(--r-xl) var(--r-xl) 10px var(--r-xl); border: 6px solid var(--ivory); }
.uses { list-style: none; margin: 0; padding: 0; counter-reset: use; }
.uses li {
  counter-increment: use; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.uses li:last-child { border-bottom: 1px solid var(--line); }
.uses li::before {
  content: "0" counter(use); font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--charcoal);
  transition: color .3s;
}
.uses li:hover::before { color: var(--yellow); -webkit-text-stroke-color: var(--charcoal); }
.uses h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.uses p { margin: 0; color: var(--gray-2); }

/* ---------- Journey ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.journey::before {
  content: ""; position: absolute; top: 58px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--charcoal) 0 8px, transparent 8px 16px); opacity: .25;
}
.step {
  position: relative; background: var(--white); border-radius: var(--shape); padding: 2rem 1.75rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__icon {
  position: relative; width: 76px; height: 76px; margin-bottom: 1.5rem; display: grid; place-items: center;
  border-radius: 24px 24px 24px 6px; background: var(--yellow);
}
.step:nth-child(2) .step__icon { background: var(--orange); }
.step:nth-child(3) .step__icon { background: var(--green); }
.step__icon svg { width: 38px; height: 38px; }
.step__num { position: absolute; top: 1.6rem; right: 1.6rem; font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--ivory-2); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--gray-2); margin: 0; }

/* ---------- Magazine resource grid ---------- */
.mag { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; }
.mag__list { display: grid; gap: 1.25rem; }
.res-card {
  position: relative; display: grid; background: var(--white); border-radius: var(--shape); overflow: hidden;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.res-card__media { overflow: hidden; }
.res-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.res-card:hover .res-card__media img { transform: scale(1.05); }
.res-card__body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.res-card h3 { font-size: 1.15rem; margin: 0; }
.res-card h3 a { text-decoration: none; }
.res-card h3 a::after { content: ""; position: absolute; inset: 0; }
.res-card p { margin: 0; font-size: .94rem; color: var(--gray-2); }
.res-card__meta { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--gray); }
.res-card--row { grid-template-columns: 38% 1fr; }
.res-card--row .res-card__media { min-height: 150px; }
.res-card--feature { grid-template-rows: auto 1fr; }
.res-card--feature .res-card__media { aspect-ratio: 16 / 11; }
.res-card--feature .res-card__body { padding: 1.75rem 2rem 2rem; }
.res-card--feature h3 { font-size: var(--step-2); }
.res-card--feature p { font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq { display: grid; gap: .75rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) var(--r-md) 6px;
  transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: var(--charcoal); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; line-height: 1.35;
  border-radius: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320262B' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease), background-color .25s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--orange); }
.faq .faq__a { padding: 0 1.35rem 1.25rem; color: var(--gray-2); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--charcoal); color: var(--white); border-radius: var(--shape-xl); padding: clamp(2.5rem, 2rem + 4vw, 5.5rem); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cta-band::before { width: 420px; height: 420px; right: -120px; top: -160px; background: var(--yellow); opacity: .95; border-radius: 0 0 0 60%; transform: rotate(8deg); }
.cta-band::after { width: 160px; height: 160px; right: 220px; bottom: -70px; background: var(--orange); }
.cta-band h2 { max-width: 15ch; color: var(--white); }
.cta-band p { max-width: 46ch; color: rgba(255, 255, 255, .78); font-size: var(--step-1); margin-bottom: 2rem; }
.cta-band--compact { padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.cta-band--compact h2 { font-size: var(--step-3); }

/* ==========================================================================
   SUBPAGE HEROES (each page type has its own composition)
   ========================================================================== */
/* Course overview: editorial split */
.hero-split { background: var(--ivory); padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem); overflow: hidden; }
.hero-split__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-split h1 { font-size: var(--step-5); }
.hero-split__media { position: relative; }
.hero-split__media img { width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover; border-radius: 220px 220px var(--r-xl) 10px; box-shadow: var(--shadow-md); }
.hero-split__stamp {
  position: absolute; left: -28px; bottom: 36px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center; text-align: center; padding: 1rem;
  font-family: var(--font-head); font-weight: 800; font-size: .82rem; line-height: 1.25; letter-spacing: .02em; box-shadow: var(--shadow-md);
}
.hero-split__stamp b { display: block; font-size: 2rem; line-height: 1; }

/* Topic rows (course overview) */
.topic-rows { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.topic-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.topic-row:nth-child(even) .topic-row__media { order: 2; }
.topic-row__media { position: relative; }
.topic-row__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--shape-xl); }
.topic-row__index { font-family: var(--font-head); font-weight: 800; font-size: 5rem; line-height: .9; color: var(--yellow); -webkit-text-stroke: 1.5px var(--charcoal); margin-bottom: .75rem; }
.topic-row:nth-child(2) .topic-row__index { color: var(--orange); }
.topic-row:nth-child(3) .topic-row__index { color: var(--green); }
.topic-row:nth-child(4) .topic-row__index { color: var(--ivory-2); }
.topic-row h2 { font-size: var(--step-3); }
.topic-row .chip-row { margin: 1.25rem 0 1.75rem; }
.topic-row .chip { background: var(--ivory); border-color: var(--line); cursor: default; }
.topic-row .chip:hover { transform: none; border-color: var(--line); background: var(--ivory); }

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--yellow-tint); border-radius: var(--shape); padding: 1.5rem 1.6rem; border: 1px solid #F3DE84;
}
.notice__icon { width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: var(--yellow); display: grid; place-items: center; }
.notice__icon svg { width: 22px; height: 22px; }
.notice h2, .notice h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.notice p { margin: 0; color: var(--gray-2); }
.notice p + p { margin-top: .6rem; }

/* Course detail: charcoal band with overlapping image */
.hero-band { background: var(--charcoal); color: var(--white); padding-top: clamp(2rem, 1.5rem + 3vw, 4rem); position: relative; }
.hero-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: var(--white); }
.hero-band__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero-band__text { padding-bottom: calc(90px + clamp(1.5rem, 3vw, 3rem)); }
.hero-band h1 { font-size: var(--step-5); color: var(--white); }
.hero-band h1 em { font-style: normal; color: var(--yellow); }
.hero-band .lead { color: rgba(255, 255, 255, .8); max-width: 54ch; }
.hero-band__media img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; border-radius: var(--shape-xl); box-shadow: var(--shadow-lg); }
.hero-band__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.hero-band__facts .tag { font-size: .7rem; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--ivory); border-radius: var(--shape); padding: 1.5rem; }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; color: var(--gray-2); }
.toc ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .1rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .6rem; padding: .45rem .5rem; border-radius: 10px; text-decoration: none; font-size: .94rem; font-weight: 500; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: .78rem; color: var(--orange-ink); padding-top: .12rem; }
.toc a:hover, .toc a.is-current { background: var(--white); color: var(--charcoal); }
.toc .btn { width: 100%; }

/* Prose (course content, articles, legal) */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 3rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 2rem; margin-bottom: .5rem; }
.prose p, .prose li { color: #343B42; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { font-family: var(--font-head); font-weight: 800; color: var(--orange-ink); }
.prose a { color: var(--charcoal); text-decoration-color: var(--orange); }
.prose a:hover { color: var(--orange-ink); }
.prose strong { color: var(--charcoal); }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 5px solid var(--yellow); background: var(--ivory); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 1.08rem; }
.prose blockquote p:last-child { margin: 0; }
.prose .en { font-style: italic; color: var(--charcoal); background: var(--yellow-tint); padding: .05em .3em; border-radius: 4px; }

/* Grid children may shrink below their content's min-width, so wide tables scroll inside .table-wrap instead of widening the page */
.split > *, .layout-aside > *, .editorial > *, .story-grid > *, .contact-grid > *, .faq-wrap > *, .hero-split__grid > *, .hero-band__grid > *, .masthead__grid > *, .topic-row > *, .hero__inner > * { min-width: 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.phrase-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 480px; }
.phrase-table th, .phrase-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.phrase-table thead th { background: var(--charcoal); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.phrase-table tbody tr:nth-child(even) { background: #FFFDF6; }
.phrase-table tbody tr:last-child td { border-bottom: 0; }
.phrase-table td:first-child { font-weight: 600; color: var(--charcoal); }
.wrong { color: #A3311B; text-decoration: line-through; text-decoration-color: rgba(163, 49, 27, .5); }
.right { color: var(--green-ink); font-weight: 600; }
.prose .wrong::before { content: "✗ "; text-decoration: none; display: inline-block; }
.prose .right::before { content: "✓ "; display: inline-block; }
.phrase-table .wrong::before, .phrase-table .right::before { content: none; }

.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.example {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--shape); padding: 1.25rem 1.35rem;
  position: relative;
}
.example__label { font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: .5rem; }
.example__en { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; line-height: 1.4; margin-bottom: .4rem; color: var(--charcoal); }
.example__no { font-size: .92rem; color: var(--gray); margin: 0; }

.callout { display: flex; gap: 1rem; background: var(--charcoal); color: var(--white); border-radius: var(--shape); padding: 1.35rem 1.5rem; margin: 2rem 0; }
.callout__icon { flex: none; width: 40px; height: 40px; border-radius: 12px 12px 12px 4px; background: var(--yellow); display: grid; place-items: center; }
.callout__icon svg { width: 20px; height: 20px; }
.callout p { color: rgba(255, 255, 255, .86) !important; margin: 0; }
.callout strong { color: var(--yellow) !important; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.skills-grid li { display: flex; gap: .8rem; align-items: flex-start; background: var(--ivory); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; padding: 1rem 1.1rem; margin: 0; }
.skills-grid li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .5rem; border-radius: 50%; background: var(--orange); }
.skills-grid strong { display: block; font-family: var(--font-head); }
.prose .skills-grid { padding: 0; }
.prose .skills-grid li { margin: 0; }
.prose .faq { margin-top: 1rem; }

.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1.5rem 0 2rem; }
.audience__item { border-top: 4px solid var(--yellow); padding-top: .9rem; }
.audience__item:nth-child(2) { border-color: var(--orange); }
.audience__item:nth-child(3) { border-color: var(--green); }
.audience__item h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.audience__item p { font-size: .94rem; margin: 0; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.related .res-card__media { aspect-ratio: 16 / 10; }

/* Resources hub: magazine masthead */
.masthead { background: var(--yellow); padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) 0; position: relative; overflow: hidden; }
.masthead__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--charcoal); padding-bottom: .75rem; margin-bottom: 1.75rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.masthead h1 { font-size: clamp(2.6rem, 1.5rem + 6vw, 7rem); line-height: .95; letter-spacing: -.045em; margin-bottom: .4em; }
.masthead__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; }
.masthead__lead { font-size: var(--step-1); max-width: 46ch; color: rgba(32, 38, 43, .85); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
.masthead__media { align-self: end; }
.masthead__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.res-grid .res-card { grid-template-rows: auto 1fr; }
.res-grid .res-card__media { aspect-ratio: 16 / 10; }
.res-grid .res-card:first-child { grid-column: span 2; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto; }
.res-grid .res-card:first-child .res-card__media { aspect-ratio: auto; min-height: 320px; }
.res-grid .res-card:first-child .res-card__body { padding: 2rem; justify-content: center; }
.res-grid .res-card:first-child h3 { font-size: var(--step-2); }
.res-grid .res-card[hidden] { display: none; }
.res-grid.is-filtered .res-card:first-child { grid-column: auto; grid-template-columns: none; grid-template-rows: auto 1fr; }
.res-grid.is-filtered .res-card:first-child .res-card__media { aspect-ratio: 16 / 10; min-height: 0; }
.res-grid.is-filtered .res-card:first-child .res-card__body { padding: 1.25rem 1.4rem 1.4rem; }
.res-grid.is-filtered .res-card:first-child h3 { font-size: 1.15rem; }
.empty-state { padding: 2rem; text-align: center; background: var(--ivory); border-radius: var(--shape); }

/* Article */
.article-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 2rem; text-align: center; }
.article-head .breadcrumbs ol { justify-content: center; }
.article-head h1 { font-size: var(--step-4); max-width: 22ch; margin-inline: auto; }
.article-head .lead { max-width: 60ch; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; font-size: .9rem; color: var(--gray); margin-top: 1.25rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta svg { width: 16px; height: 16px; }
.article-figure { margin: 0 auto; max-width: 1100px; padding-inline: var(--gutter); }
.article-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--shape-xl); }
.article-body { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.article-body .prose { margin-inline: auto; font-size: 1.075rem; }
.article-body .prose > p:first-of-type { font-size: var(--step-1); color: var(--charcoal); }
.keypoints { background: var(--ivory); border-radius: var(--shape); padding: 1.5rem 1.75rem; margin: 0 0 2.5rem; }
.keypoints h2 { font-size: 1rem !important; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem !important; }
.keypoints ul { margin: 0; }

/* About: photographic brand story */
.hero-photo { position: relative; isolation: isolate; min-height: clamp(520px, 72vh, 720px); display: flex; align-items: flex-end; color: var(--white); padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero-photo__media { position: absolute; inset: 0; z-index: -2; }
.hero-photo__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(23, 28, 32, .9) 0%, rgba(23, 28, 32, .55) 50%, rgba(23, 28, 32, .2) 100%),
    linear-gradient(90deg, rgba(23, 28, 32, .55) 0%, rgba(23, 28, 32, 0) 70%);
}
.hero-photo__panel { max-width: 760px; }
.hero-photo h1 { color: var(--white); font-size: var(--step-5); }
.hero-photo .lead { color: rgba(255, 255, 255, .85); max-width: 58ch; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story-grid__media { position: sticky; top: calc(var(--header-h) + 2rem); }
.story-grid__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl) 10px var(--r-xl) var(--r-xl); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.value { padding: 1.75rem 1.5rem; border-radius: var(--shape); background: var(--charcoal-2); border: 1px solid var(--line-dark); }
.value__icon { width: 52px; height: 52px; border-radius: 16px 16px 16px 4px; display: grid; place-items: center; background: var(--yellow); margin-bottom: 1.25rem; }
.value:nth-child(2) .value__icon { background: var(--orange); }
.value:nth-child(3) .value__icon { background: var(--green); }
.value:nth-child(4) .value__icon { background: var(--white); }
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.2rem; color: var(--white); }
.value p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .96rem; }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h2 { color: var(--white); }
.transparency { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.transparency__col { border-radius: var(--shape); padding: 1.75rem; border: 1px solid var(--line); background: var(--white); }
.transparency__col h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.transparency__col h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.transparency__col--no h3::before { background: var(--orange); }
.transparency__col ul { margin: 0; padding-left: 1.2rem; color: var(--gray-2); }
.transparency__col li { margin-bottom: .45rem; }

/* Contact */
.contact-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.contact-hero h1 { font-size: var(--step-5); max-width: 14ch; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: 2.5rem var(--section); }
.contact-card { background: var(--charcoal); color: var(--white); border-radius: var(--shape-xl); padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; overflow: hidden; isolation: isolate; }
.contact-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow); z-index: -1; opacity: .95; }
.contact-card h2 { font-size: var(--step-2); color: var(--white); }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.contact-list__icon { width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: var(--yellow); }
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 700; margin-bottom: .1rem; }
.contact-list a, .contact-list address { color: var(--white); font-style: normal; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--yellow); }
.contact-photo { margin-top: 1.25rem; }
.contact-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--shape-xl); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--shape-xl); padding: clamp(1.5rem, 3vw, 2.75rem); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: var(--step-2); }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label, .field__label { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.field .req { color: var(--orange-ink); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: .8rem 1rem; font: 400 1rem/1.4 var(--font-body); color: var(--charcoal);
  background: #FFFDF8; border: 1.5px solid #D8D0BE; border-radius: 14px 14px 14px 4px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #B8AE98; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--charcoal); background: var(--white); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
.field__hint { font-size: .85rem; color: var(--gray); }
.field__error { font-size: .88rem; font-weight: 600; color: #A3311B; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #C2412B; background: #FFF6F3; }
.field.has-error .field__error { display: flex; gap: .35rem; align-items: center; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; font-size: .95rem; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border: 1.5px solid #B8AE98; border-radius: 8px 8px 8px 3px; background: #FFFDF8; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 12px; height: 7px; border: solid var(--charcoal); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--yellow); border-color: var(--charcoal); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.field.has-error .check input { border-color: #C2412B; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { border-radius: var(--r-md); padding: 1rem 1.15rem; font-weight: 600; display: none; }
.form__status.is-error { display: block; background: #FFF0EB; color: #8A2A16; border: 1px solid #F3C3B5; }
.form__status.is-info { display: block; background: var(--yellow-tint); color: var(--charcoal); border: 1px solid #F3DE84; }
.form__foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form__foot p { margin: 0; font-size: .85rem; color: var(--gray); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Legal pages */
.legal-head { background: var(--ivory); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: var(--step-4); }
.legal-head .muted { margin: 0; font-size: .92rem; }
.legal-body { padding-block: clamp(2.5rem, 4vw, 4rem) var(--section); }
.legal-body .layout-aside { grid-template-columns: 260px minmax(0, 1fr); }
.legal-body .toc { background: transparent; border: 1px solid var(--line); }
.legal-body .prose { max-width: 70ch; }
.legal-body .prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.cookie-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }

/* Thank you & 404 */
.center-page { min-height: 62vh; display: grid; place-items: center; padding-block: var(--section); text-align: center; background: var(--ivory); position: relative; overflow: hidden; isolation: isolate; }
.center-page::before { content: ""; position: absolute; width: 520px; height: 520px; left: -180px; bottom: -260px; border-radius: 50%; background: var(--yellow); z-index: -1; }
.center-page::after { content: ""; position: absolute; width: 180px; height: 180px; right: 8%; top: 12%; border-radius: 50% 50% 50% 8px; background: var(--orange); opacity: .9; z-index: -1; }
.center-page__inner { max-width: 640px; }
.center-page__icon { width: 92px; height: 92px; margin: 0 auto 1.5rem; border-radius: 30px 30px 30px 8px; background: var(--green); display: grid; place-items: center; }
.center-page__icon svg { width: 44px; height: 44px; }
.center-page h1 { font-size: var(--step-4); }
.center-page .btn-row { justify-content: center; margin-top: 2rem; }
.big-404 { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 4rem + 10vw, 11rem); line-height: .9; letter-spacing: -.06em; margin-bottom: .5rem; color: var(--charcoal); }
.big-404 span { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: rgba(255, 255, 255, .78); padding-top: clamp(3.5rem, 6vw, 5.5rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem 2rem; padding-bottom: 3rem; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; }
.footer-age { display: inline-flex; align-items: center; gap: .55rem; margin-top: .5rem; font-size: .86rem; color: rgba(255, 255, 255, .85); }
.footer-age b { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 .4rem; border-radius: 999px 999px 999px 4px; background: var(--yellow); color: var(--charcoal); font-family: var(--font-head); font-size: .8rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a, .footer-links button { color: rgba(255, 255, 255, .78); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: .95rem; line-height: 1.5; }
.footer-links a:hover, .footer-links button:hover { color: var(--yellow); text-decoration: underline; }
.footer-contact address { font-style: normal; margin-bottom: .9rem; }
.footer-contact a { color: var(--yellow); font-weight: 600; text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; }
.footer-bottom a, .footer-bottom button { color: rgba(255, 255, 255, .7); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: .86rem; }
.footer-bottom a:hover, .footer-bottom button:hover { color: var(--yellow); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 150; width: min(560px, calc(100% - 32px));
  background: var(--white); color: var(--charcoal); border-radius: var(--shape); box-shadow: 0 20px 60px rgba(23, 28, 32, .28);
  border: 1px solid var(--line); padding: 1.5rem 1.5rem 1.35rem;
  animation: panelIn .5s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent__title { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; margin: 0 0 .5rem; }
.consent__title::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 9px 9px 9px 3px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2320262B'%3E%3Ccircle cx='9' cy='9' r='1.8'/%3E%3Ccircle cx='15.5' cy='13' r='1.8'/%3E%3Ccircle cx='9.5' cy='15.5' r='1.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.consent p { font-size: .92rem; color: var(--gray-2); margin-bottom: 1.1rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent__actions .btn { min-height: 46px; padding: .55rem 1.1rem; font-size: .92rem; flex: 1 1 auto; }

.consent-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--shape-xl); box-shadow: var(--shadow-lg); color: var(--charcoal); }
.consent-dialog::backdrop { background: rgba(23, 28, 32, .6); }
.consent-dialog__inner { padding: clamp(1.5rem, 3vw, 2.25rem); }
.consent-dialog h2 { font-size: 1.5rem; }
.consent-dialog__intro { color: var(--gray-2); font-size: .95rem; }
.consent-opt { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.consent-opt h3 { font-size: 1.02rem; margin: 0; }
.consent-opt p { grid-column: 1; margin: 0; font-size: .9rem; color: var(--gray-2); }
.consent-opt .switch { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: #CFC7B5; position: relative; cursor: pointer; margin: 0; transition: background-color .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(22px); }
.switch input:disabled { background: var(--charcoal); opacity: .6; cursor: not-allowed; }
.switch input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.consent-dialog__actions .btn { flex: 1 1 auto; min-height: 48px; font-size: .94rem; }
.consent-dialog__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.consent-dialog__close svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
  .split, .split--wide-text, .editorial, .faq-wrap, .story-grid, .contact-grid, .hero-split__grid { grid-template-columns: 1fr; }
  .editorial__intro, .story-grid__media { position: static; }
  .mag { grid-template-columns: 1fr; }
  .layout-aside, .legal-body .layout-aside { grid-template-columns: 1fr; }
  .toc { position: static; }
  .layout-aside > aside { order: -1; }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related > :nth-child(3) { display: none; }
  .hero-band__grid { grid-template-columns: 1fr; }
  .hero-band__text { padding-bottom: 0; }
  .hero-band::after { height: 70px; }
  .hero-band__media { padding-bottom: 0; }
  .hero-split__media { max-width: 560px; }
  .masthead__grid { grid-template-columns: 1fr; }
  .masthead__lead { padding-bottom: 0; }
  .masthead__media { max-width: 640px; }
  .media-offset { max-width: 620px; }
  .story-grid__media img { aspect-ratio: 16 / 11; }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .hero { min-height: 0; align-items: flex-start; padding-block: 1.25rem 3.5rem; }
  .hero__media img { object-position: 70% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(23, 28, 32, .2) 0%, rgba(23, 28, 32, .55) 100%); }
  .hero-panel { border-radius: 30px 30px 30px 8px; }
  .search__field { flex-wrap: wrap; padding: .35rem; border-radius: 22px 22px 22px 8px; }
  .search__field > svg { margin-left: .7rem; }
  .search__submit { width: 100%; }
  .journey { grid-template-columns: 1fr; }
  .journey::before { display: none; }
  .topic-row, .topic-row:nth-child(even) { grid-template-columns: 1fr; }
  .topic-row:nth-child(even) .topic-row__media { order: 0; }
  .topic-row__index { font-size: 3.5rem; }
  .res-card--row { grid-template-columns: 1fr; }
  .res-card--row .res-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  .res-grid { grid-template-columns: 1fr; }
  .res-grid .res-card:first-child { grid-column: auto; grid-template-columns: none; grid-template-rows: auto 1fr; }
  .res-grid .res-card:first-child .res-card__media { aspect-ratio: 16 / 10; min-height: 0; }
  .res-grid .res-card:first-child .res-card__body { padding: 1.4rem; }
  .related { grid-template-columns: 1fr; }
  .related > :nth-child(3) { display: grid; }
  .example-grid, .skills-grid, .audience, .transparency, .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-figure img { aspect-ratio: 4 / 3; }
  .editorial__collage { height: 260px; }
  .media-badge { right: 8px; top: auto; bottom: 48px; }
  .hero-split__stamp { left: auto; right: 12px; bottom: 12px; width: 108px; height: 108px; }
  .hero-split__media img { border-radius: 140px 140px var(--r-xl) 10px; }
  .cta-band::before { width: 260px; height: 260px; right: -120px; top: -140px; }
  .cta-band::after { display: none; }
  .uses li { grid-template-columns: 3.25rem 1fr; }
  .uses li::before { font-size: 1.6rem; }
}
@media (max-width: 520px) {
  .cards-4, .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 1.5rem 1.25rem 1.6rem; }
  .hero-panel::after { bottom: -14px; width: 26px; height: 16px; }
  .hero-panel .btn-row .btn { flex: 1 1 100%; }
  /* Topic chips become one swipeable row so the CTAs stay close to the fold */
  .search__suggest {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -1.25rem; padding: .15rem 1.25rem .35rem; scroll-padding-inline: 1.25rem;
  }
  .search__suggest::-webkit-scrollbar { display: none; }
  .search__suggest .chip, .search__suggest-label { flex: none; white-space: nowrap; }
  .media-offset { padding: 0 0 1.25rem 1.25rem; }
  .media-offset--orange { padding: 0 1.25rem 1.25rem 0; }
  .consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 1.25rem; }
  .consent__actions .btn { flex: 1 1 100%; }
  .notice { grid-template-columns: 1fr; }
  .masthead__top span:last-child { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .consent, .consent-dialog, .toc, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
  .hero-band, .masthead, .hero-split { background: none; color: #000; }
}
