/* ==========================================================================
   Tengol K. Kplemani — site styles
   Standard sections use flex only (maps to Elementor flex containers).
   Showpiece styles are grouped at the bottom.
   ========================================================================== */

:root {
  --ink: #0b0b0b;
  --ink-2: #1c1c1c;
  --paper: #ffffff;
  --bone: #f6f4f0;
  --stone: #77736d;
  --stone-light: #b9b4ac;
  --line: #e6e2db;
  --line-dark: #2e2e2e;

  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 11vw, 160px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: .92;
}
.display--xl { font-size: clamp(48px, 8.4vw, 132px); }
.display--lg { font-size: clamp(40px, 6vw, 92px); }
.display--md { font-size: clamp(32px, 4.2vw, 60px); }
.display--sm { font-size: clamp(24px, 2.6vw, 36px); line-height: 1; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--stone);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--stone-light); }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--stone); }
.section-title { margin-bottom: 28px; }

/* ---------- Layout (flex only) ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--bone { background: var(--bone); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .lead, .section--dark p { color: #d9d6d0; }
.flex { display: flex; }
.row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.row--center { align-items: center; }
.row--end { align-items: flex-end; }
.col { flex: 1 1 0; min-width: 0; }
.col-40 { flex: 0 1 40%; min-width: 0; }
.col-60 { flex: 0 1 calc(60% - clamp(32px, 5vw, 80px)); min-width: 0; }
.col-45 { flex: 0 1 45%; min-width: 0; }
.col-55 { flex: 0 1 calc(55% - clamp(32px, 5vw, 80px)); min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head > div { max-width: 760px; }

/* teeth divider — the sawtooth band from the logo's totem */
.teeth { height: 12px; background: url('../images/pattern-teeth.svg') repeat-x left bottom / 24px 12px; }
.teeth--white { background-image: url('../images/pattern-teeth-white.svg'); }
.teeth--flip { transform: scaleY(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px; border: 1.5px solid var(--ink);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:hover svg { transform: translateX(4px); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 6px; border-bottom: 1.5px solid currentColor;
}
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, height .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { width: 58px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.brand-name span { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--stone); }
.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  position: relative; text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 13px 22px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1.5px solid var(--ink); background: var(--paper);
  align-items: center; justify-content: center; flex-direction: column; gap: 6px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
main { padding-top: var(--header-h); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 120px) 0 0; overflow: hidden; }
.page-hero .row { align-items: flex-end; }
.page-hero-title { margin-bottom: 32px; font-size: clamp(40px, 5vw, 80px); font-stretch: 110%; }
.page-hero-text { max-width: 560px; padding-bottom: clamp(32px, 5vw, 72px); }
.page-hero-media { position: relative; }
.page-hero-media img:not(.page-hero-totem) { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.page-hero-totem { position: absolute; left: 0; bottom: 48px; width: 56px; transform: translateX(-50%); background: var(--paper); padding: 10px 8px; box-sizing: content-box; }
.breadcrumb { display: flex; gap: 10px; font-size: 13px; color: var(--stone); margin-bottom: 24px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Intro (home) ---------- */
.intro-portrait { position: relative; }
.intro-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.intro-portrait-tag {
  position: absolute; right: -1px; bottom: -1px; background: var(--paper); padding: 18px 22px 0 22px;
  font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.2;
}
.title-stack { display: flex; flex-direction: column; gap: 2px; margin: 32px 0 36px; border-left: 1.5px solid var(--ink); padding-left: 22px; }
.title-stack li { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }

/* ---------- Stats / icon boxes ---------- */
.stats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-dark); }
.stat { flex: 1 1 0; min-width: 200px; padding: 44px 32px 8px 0; border-right: 1px solid var(--line-dark); margin-right: 32px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat-icon { width: 34px; height: 34px; margin-bottom: 28px; }
.stat-number { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 15px; line-height: 1.5; color: #cfcbc4; }

.icon-boxes { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.icon-box {
  flex: 1 1 33.333%; min-width: 280px; padding: 44px 36px 48px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.icon-box:hover { background: var(--ink); color: var(--paper); }
.icon-box:hover .icon-box-text, .icon-box:hover .icon-box-role { color: #cfcbc4; }
.icon-box-icon { width: 40px; height: 40px; margin-bottom: 28px; }
.icon-box-role { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; transition: color .4s; }
.icon-box-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 22px; line-height: 1.15; margin-bottom: 14px; }
.icon-box-text { font-size: 15px; line-height: 1.65; color: var(--stone); transition: color .4s; }

/* ---------- Venture cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; position: relative; overflow: hidden; background: var(--ink); color: var(--paper); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; }
.card-media { position: absolute; inset: 0; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,0) 30%, rgba(11,11,11,.92) 78%); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); opacity: .55; transition: transform 1.2s var(--ease), opacity .6s, filter .6s; }
.card:hover .card-media img { transform: scale(1.06); opacity: .4; filter: grayscale(0); }
.card-body { position: relative; padding: 36px 32px; }
.card-index { font-family: var(--font-serif); font-style: italic; font-size: 20px; margin-bottom: 14px; display: block; }
.card-title { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; margin-bottom: 16px; }
.card-text { font-size: 15px; line-height: 1.6; color: #dcd8d1; margin-bottom: 22px; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-mark { width: 54px; height: 54px; margin: 0 auto 36px; }
.quote-text { font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.15; max-width: 1080px; margin: 0 auto 36px; color: var(--paper); }
.section--dark .quote-text { color: var(--paper); }
.quote-cite { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-light); }

/* ---------- CTA ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.cta-title { max-width: 820px; }
.cta-logo { width: 120px; }

/* ---------- Story rows (about) ---------- */
.story-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 6vw, 96px); }
.story-row + .story-row { margin-top: var(--section); }
.story-row--reverse { flex-direction: row-reverse; }
.story-media { flex: 0 1 42%; min-width: 0; position: relative; }
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.story-body { flex: 1 1 0; min-width: 0; }
.story-number { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: .1em; display: block; margin-bottom: 22px; }

/* ---------- Accordion (details/summary = Elementor accordion) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(19px, 1.8vw, 24px);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-icon { flex: 0 0 40px; width: 40px; height: 40px; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.accordion-icon svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.accordion-item[open] .accordion-icon { background: var(--ink); color: var(--paper); }
.accordion-item[open] .accordion-icon svg { transform: rotate(45deg); }
.accordion-content { padding: 0 64px 32px 0; color: var(--stone); }

/* ---------- Impact blocks ---------- */
.feature { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); padding: 56px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-meta { flex: 0 0 220px; }
.feature-year { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 44px; line-height: 1; display: block; margin-bottom: 10px; }
.feature-tag { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.feature-body { flex: 1 1 400px; min-width: 0; }
.feature-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; margin-bottom: 18px; }
.feature-body p { color: var(--stone); max-width: 720px; }
.pairs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.pair { flex: 1 1 260px; border: 1px solid var(--line); padding: 22px 24px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15px; }
.pair-x { font-family: var(--font-serif); font-style: italic; font-size: 26px; font-weight: 400; color: var(--stone); }

.ambassador { display: flex; flex-direction: column; gap: 18px; flex: 1 1 380px; padding: 48px 40px; border: 1px solid var(--line-dark); }
.ambassador-badge { width: 56px; height: 56px; border: 1.5px solid var(--paper); display: flex; align-items: center; justify-content: center; }
.ambassador-badge svg { width: 26px; height: 26px; }
.ambassador-org { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-light); }
.ambassador-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--paper); }

/* ---------- Gallery ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery-item { flex: 1 1 calc(33.333% - 16px); min-width: 240px; position: relative; overflow: hidden; background: var(--bone); border: 0; padding: 0; cursor: zoom-in; display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform 1s var(--ease), filter .6s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: var(--paper); font-family: var(--font-serif); font-style: italic; font-size: 19px; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }
.gallery-item--wide { flex-basis: calc(50% - 16px); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,8,8,.96); display: none; align-items: center; justify-content: center; padding: 64px 80px; }
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.lightbox-img { max-height: calc(100vh - 160px); width: auto; max-width: 100%; }
.lightbox-caption { color: #d9d6d0; font-family: var(--font-serif); font-style: italic; font-size: 20px; }
.lightbox-btn { position: absolute; width: 52px; height: 52px; border: 1.5px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-btn:hover { background: var(--paper); color: var(--ink); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-item { display: flex; align-items: flex-start; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-item-icon { flex: 0 0 52px; height: 52px; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.contact-item-icon svg { width: 22px; height: 22px; }
a.contact-item:hover .contact-item-icon { background: var(--ink); color: var(--paper); }
.contact-item-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); display: block; margin-bottom: 4px; }
.contact-item-value { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 20px; line-height: 1.35; }
.contact-item-value a { text-decoration: none; }
.contact-item-value a:hover { text-decoration: underline; }

.form { display: flex; flex-direction: column; gap: 22px; background: var(--bone); padding: clamp(28px, 4vw, 56px); }
.form-row { display: flex; flex-wrap: wrap; gap: 22px; }
.form-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-bottom: 1.5px solid var(--ink); padding: 15px 16px; border-radius: 0; width: 100%;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); }
.form-note { font-size: 13px; color: var(--stone); }
.form-status { font-size: 15px; font-weight: 600; min-height: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 56px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { flex: 1 1 340px; max-width: 420px; }
.footer-logo { width: 220px; margin-bottom: 28px; }
.footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.3; color: #e8e5df; }
.footer-col { flex: 0 1 200px; }
.footer-heading { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 22px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { text-decoration: none; color: #e8e5df; font-size: 15px; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.social-row { display: flex; gap: 12px; }
.social-link { width: 46px; height: 46px; border: 1.5px solid #4a4a4a; display: flex; align-items: center; justify-content: center; color: var(--paper); transition: background .3s, color .3s, border-color .3s; }
.social-link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.social-link svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; font-size: 13px; color: var(--stone-light); }
.footer-bottom a { color: var(--stone-light); }

/* ---------- Generic reveal (Elementor "entrance animation" equivalent) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   SHOWPIECE 1 — "The Totem Rises" (home hero)
   Content lives in the markup; hero.js only sets --p (0→1) and states.
   ========================================================================== */
.hero { position: relative; background: var(--paper); }
.hero-sticky { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); width: 100%; padding-top: 40px; padding-bottom: 40px; }
.hero-copy { flex: 1 1 56%; min-width: 0; position: relative; z-index: 3; }
.hero-eyebrow { margin-bottom: 32px; }
.hero-headline { font-size: clamp(36px, 5.4vw, 94px); font-stretch: 106%; margin-bottom: 36px; }
.hero-line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-line-inner { display: block; }
.hero-line .serif { font-size: .82em; text-transform: none; letter-spacing: -0.01em; }
.hero-roles { display: flex; flex-wrap: wrap; gap: 10px 0; margin-bottom: 40px; max-width: 620px; }
.hero-role { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); line-height: 1.2; }
.hero-role:last-child { border-right: 0; }
.hero-media { flex: 0 1 40%; min-width: 0; position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-frame { position: relative; width: 100%; max-width: 500px; }
.hero-portrait { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-totem { position: absolute; z-index: 4; width: clamp(46px, 4.4vw, 68px); left: 0; bottom: 6%; transform: translateX(-50%); pointer-events: none; background: var(--paper); padding: 10px 8px; box-sizing: content-box; }
.hero-monogram { position: absolute; z-index: 0; right: -4vw; top: 50%; width: min(70vw, 1100px); transform: translateY(-50%); opacity: .045; pointer-events: none; }
.hero-scroll { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 22px; display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--stone); }
.hero-scroll-line { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--ink); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { to { top: 100%; } }

/* Enhanced state, only when hero.js runs on a capable screen */
.hero.is-enhanced { height: 220vh; }
.hero.is-enhanced .hero-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
.hero.is-enhanced .hero-portrait {
  clip-path: inset(calc((1 - var(--reveal, 0)) * 0%) calc((1 - var(--reveal, 0)) * 43%) calc((1 - var(--reveal, 0)) * 0%) calc((1 - var(--reveal, 0)) * 43%));
  transition: none;
}
.hero.is-enhanced .hero-portrait img { transform: scale(calc(1.25 - var(--reveal, 0) * .25)); filter: grayscale(calc(1 - var(--reveal, 0))); }
.hero.is-enhanced .hero-totem { transform: translate(-50%, calc((1 - var(--rise, 0)) * 60%)) ; opacity: calc(.15 + var(--rise, 0) * .85); }
.hero.is-enhanced .hero-monogram { transform: translateY(calc(-50% + var(--p, 0) * -8%)) scale(calc(1 + var(--p, 0) * .08)); }
.hero.is-enhanced .hero-line-inner { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero.is-enhanced .hero-line.is-in .hero-line-inner { transform: none; }
.hero.is-enhanced .hero-fade { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero.is-enhanced .hero-fade.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   SHOWPIECE 2 — "Network of Kingdoms" (ventures)
   network.js draws links on the canvas and positions .network-item nodes.
   ========================================================================== */
.network { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.network-stage { position: relative; display: flex; align-items: stretch; height: min(86vh, 820px); min-height: 640px; border-top: 1px solid var(--line-dark); }
.network-map { position: relative; flex: 1 1 auto; min-width: 0; }
.network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.network-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 150px; height: 150px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink);
  box-shadow: 0 0 0 12px rgba(255,255,255,.06), 0 0 0 26px rgba(255,255,255,.03);
}
.network-center img { width: 96px; }
.network-list { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.network-item { position: absolute; left: 0; top: 0; pointer-events: auto; }
.network-node {
  display: flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 0; color: var(--paper);
  cursor: pointer; text-align: left; font: inherit; transform: translate(-11px, -11px);
}
.network-dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--paper); background: var(--ink); position: relative; transition: background .3s, transform .3s var(--ease); }
.network-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); transform: scale(0); transition: transform .3s var(--ease); }
.network-item.is-active .network-dot, .network-node:hover .network-dot { transform: scale(1.25); }
.network-item.is-active .network-dot::after, .network-node:hover .network-dot::after { transform: scale(1); }
.network-label { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.network-title { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 15px; }
.network-role { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--stone-light); }
.network-item.is-left .network-node { flex-direction: row-reverse; text-align: right; transform: translate(calc(-100% + 11px), -11px); }
.network-desc { display: none; }
.network-panel {
  flex: 0 0 min(400px, 34%); background: var(--paper); color: var(--ink);
  padding: clamp(32px, 3.5vw, 56px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 4;
}
.network-panel.is-changing .network-panel-body { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.network-panel-totem { width: 34px; margin-bottom: 32px; }
.network-panel-role { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.network-panel-title { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.3vw, 34px); line-height: 1; margin-bottom: 18px; }
.network-panel-text { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.network-hint { position: absolute; z-index: 4; left: 28px; bottom: 24px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-light); }

/* Fallback (no JS / small screens): plain list */
.network:not(.is-enhanced) .network-stage { height: auto; min-height: 0; padding: 48px 0; display: block; }
.network:not(.is-enhanced) .network-canvas, .network:not(.is-enhanced) .network-panel, .network:not(.is-enhanced) .network-hint { display: none; }
.network:not(.is-enhanced) .network-center { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 40px; width: 120px; height: 120px; }
.network:not(.is-enhanced) .network-center img { width: 76px; }
.network:not(.is-enhanced) .network-list { position: relative; display: flex; flex-direction: column; padding: 0 var(--gutter); }
.network:not(.is-enhanced) .network-item { position: relative; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.network:not(.is-enhanced) .network-node { transform: none; cursor: default; }
.network:not(.is-enhanced) .network-label { white-space: normal; }
.network:not(.is-enhanced) .network-desc { display: block; margin: 12px 0 0 34px; font-size: 15px; color: #cfcbc4; }

/* ==========================================================================
   SHOWPIECE 3 — "Honours timeline" (home)
   timeline.js maps vertical scroll to horizontal travel of .timeline-track.
   ========================================================================== */
.timeline { position: relative; background: var(--paper); }
.timeline-sticky { padding: var(--section) 0; overflow: hidden; }
.timeline-head { margin-bottom: 56px; }
.timeline-track { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline-item { position: relative; display: flex; flex-direction: column; padding: 40px 0 40px 44px; border-left: 1.5px solid var(--ink); }
.timeline-item::before { content: ""; position: absolute; left: -9px; top: 50px; width: 16px; height: 16px; background: var(--paper); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.timeline-year { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(64px, 9vw, 150px); line-height: .85; letter-spacing: -0.03em; margin-bottom: 20px; -webkit-text-stroke: 1.5px var(--ink); color: transparent; transition: color .6s var(--ease); }
.timeline-item.is-current .timeline-year { color: var(--ink); }
.timeline-tag { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.timeline-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; margin-bottom: 14px; }
.timeline-text { font-size: 15px; line-height: 1.65; color: var(--stone); max-width: 440px; }
.timeline-progress { display: none; }

.timeline.is-enhanced .timeline-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.timeline.is-enhanced .timeline-head { margin-bottom: clamp(24px, 4vh, 56px); }
.timeline.is-enhanced .timeline-track { flex-direction: row; width: max-content; padding-left: var(--gutter); padding-right: 30vw; will-change: transform; }
.timeline.is-enhanced .timeline-item { width: clamp(340px, 34vw, 520px); flex: 0 0 auto; padding: 56px 56px 0 0; border-left: 0; border-top: 1.5px solid var(--ink); }
.timeline.is-enhanced .timeline-item::before { left: 0; top: -9px; }
.timeline.is-enhanced .timeline-progress { display: block; position: relative; height: 2px; background: var(--line); margin: 40px var(--gutter) 0; }
.timeline.is-enhanced .timeline-progress-bar { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--tp, 0)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); color: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 40px;
    padding: 48px var(--gutter) 48px; transform: translateX(100%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s; overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav-list a { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(32px, 8vw, 52px); letter-spacing: -0.01em; color: var(--paper); }
  .nav-list a::after { background: var(--paper); height: 3px; }
  .nav-cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .nav-open { overflow: hidden; }
  .col-40, .col-60, .col-45, .col-55 { flex: 1 1 100%; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-media { order: -1; }
  .hero-frame { max-width: 420px; margin: 0 auto; }
  .story-media { flex: 1 1 100%; }
  .story-row, .story-row--reverse { flex-direction: column; align-items: stretch; }
  .page-hero-totem { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: 72px; }
  .brand-logo { width: 48px; }
  .brand-name span { display: none; }
  .stat { flex-basis: 100%; border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line-dark); padding-bottom: 36px; }
  .card { min-height: 440px; }
  .feature-meta { flex-basis: 100%; }
  .accordion-content { padding-right: 0; }
  .gallery-item, .gallery-item--wide { flex-basis: 100%; }
  .lightbox { padding: 72px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .hero-role { border-right: 0; margin-right: 0; padding-right: 0; width: 100%; }
  .hero-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
