/* Meridian Charter — shared design system.
   Edit tokens/components here once; every page updates. */

:root {
    --bg: #0F1418;
    --bg-elevated: #161C22;
    --bg-deep: #0A0E12;
    --ink: #EBE8DF;
    --ink-dim: #9A958A;
    --ink-faint: #4A4640;
    --gold: #B8956A;
    --gold-deep: #957345;
    --platinum: #C9CDD2;
    --steel: #8E96A0;
    --clay: #6B3A2A;
    --rule: #2D332E;
    --mx: 50%;
    --my: 50%;
  }

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    position: relative;
  }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    animation: grain-drift 8s steps(8) infinite;
  }

@keyframes grain-drift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, 1%); }
    50%  { transform: translate(1%, -2%); }
    75%  { transform: translate(-1%, 2%); }
    100% { transform: translate(0, 0); }
  }

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--ink-dim);
  }

.gold { color: var(--gold); }

/* Scroll progress bar */
  .scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 1px; width: 0%;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    z-index: 200;
    transition: width 0.08s linear;
  }

/* Nav */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 1.1rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(15, 20, 24, 0.78);
    border-bottom: 1px solid var(--rule);
    opacity: 0;
    transform: translateY(-100%);
    animation: nav-drop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
  }

@keyframes nav-drop {
    to { opacity: 1; transform: translateY(0); }
  }

.logo {
    display: flex; align-items: center; gap: 0.85rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
  }

.logo-mark-nav {
    width: 28px;
    height: 38px;
    flex-shrink: 0;
    background: url('img/80676ceac4.png') center/contain no-repeat;
    animation: none;
  }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
  }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 1px; width: 0;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

.nav-links a:hover { color: var(--ink); }

.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 30px;
    padding: 6px 4px;
    background: none; border: none; cursor: pointer;
    z-index: 60;
  }

.nav-toggle span {
    display: block; width: 100%; height: 1.5px;
    background: var(--ink, #EBE8DF);
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

/* Hero */
  header.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 6rem 2.5rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
  }

.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    opacity: 0.10;
    background-image:
      radial-gradient(ellipse at 80% 25%, var(--gold) 0%, transparent 55%),
      radial-gradient(ellipse at 18% 75%, var(--clay) 0%, transparent 60%);
    animation: gradient-drift 22s ease-in-out infinite alternate;
  }

@keyframes gradient-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(2%, -3%) scale(1.05); }
    100% { transform: translate(-3%, 2%) scale(1); }
  }

.hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(184, 149, 106, 0.10) 1px, transparent 1px),
      linear-gradient(90deg, rgba(184, 149, 106, 0.10) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    animation: grid-pan 40s linear infinite;
  }

@keyframes grid-pan {
    from { background-position: 0 0; }
    to   { background-position: 80px 80px; }
  }

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
  }

/* Letterhead — uses the actual logo image */
  .hero-letterhead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 2rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--rule);
    text-align: center;
  }

.lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
    max-width: 580px;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    animation: lockup-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
  }

@keyframes mark-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.lockup-mark {
    width: auto;
    height: 220px;
    display: block;
  }

/* orbiting gold rings around the spinning mark */
  .mark-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

.orbit {
    position: absolute;
    top: 50%; left: 50%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
  }

.orbit-1 {
    width: 208px; height: 208px; margin: -104px 0 0 -104px;
    animation: mark-spin 16s linear infinite;
  }

.orbit-2 {
    width: 178px; height: 178px; margin: -89px 0 0 -89px;
    animation: mark-spin 22s linear infinite reverse;
  }

.orbit-ring {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.55;
    stroke-linecap: round;
    stroke-dasharray: 30 26;
    opacity: 0.5;
    filter: drop-shadow(0 0 1.4px rgba(184, 149, 106, 0.5));
  }

.orbit-ring-fine {
    stroke-width: 0.4;
    stroke-dasharray: 1.6 7;
    opacity: 0.42;
  }

.orbit-arc {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.55;
    stroke-linecap: round;
    opacity: 0.5;
    filter: drop-shadow(0 0 1.4px rgba(184, 149, 106, 0.5));
  }

.orbit-dot {
    fill: var(--gold);
    opacity: 0.9;
    filter: drop-shadow(0 0 2px rgba(184, 149, 106, 0.85));
  }

.mark-orbit .orbit { position: absolute; top: 50%; left: 50%; pointer-events: none; overflow: visible; z-index: 1; }

.mark-orbit .orbit-arc, .mark-orbit .orbit-ring { vector-effect: non-scaling-stroke; }

.nav-mark .nav-orbit-2 { width: 33px; height: 33px; margin: -16.5px 0 0 -16.5px; animation: mark-spin 26s linear infinite reverse; }

.nav-mark .orbit-arc { stroke-width: 1.1; }

.nav-mark .orbit-ring { stroke-width: 0.9; }

.lockup-wordmark {
    width: 100%;
    max-width: 580px;
    height: auto;
    display: block;
  }

@keyframes lockup-rise {
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

/* ===== COMPASS RULES (flanking the lockup) ===== */
  .hero-instrument {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(6rem, 18vw, 17rem);
    width: 100%;
    position: relative;
  }

.compass-rule {
    position: relative;
    width: 28px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
  }

.compass-cardinal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    background: var(--bg);
    padding: 0.2rem 0.35rem;
    z-index: 3;
    position: relative;
    opacity: 0;
    animation: compass-cardinal-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s forwards;
  }

@keyframes compass-cardinal-in {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0); }
  }

.compass-rule .compass-s {
    animation-name: compass-cardinal-in-bottom;
  }

@keyframes compass-cardinal-in-bottom {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
  }

.compass-line {
    position: absolute;
    top: 1.7rem;
    bottom: 1.7rem;
    left: 50%;
    width: 1px;
    margin-left: -0.5px;
    background: var(--gold-deep);
    opacity: 0.55;
    transform: scaleY(0);
    transform-origin: center;
    animation: compass-line-draw 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
  }

@keyframes compass-line-draw {
    to { transform: scaleY(1); }
  }

.compass-ticks {
    list-style: none;
    position: absolute;
    top: 2.2rem;
    bottom: 2.2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    z-index: 2;
  }

.compass-tick {
    height: 1px;
    width: 7px;
    background: var(--gold-deep);
    opacity: 0;
    animation: compass-tick-fade 0.275s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

.compass-tick.major {
    width: 13px;
    background: var(--gold);
    height: 1.5px;
  }

/* Ticks point inward toward the lockup */
  .compass-rule-left  .compass-tick { align-self: flex-end;   margin-right: 0; }

.compass-rule-right .compass-tick { align-self: flex-start; margin-left: 0; }

/* Stagger ticks from center outward — center is the 5th of 9 */
  .compass-tick:nth-child(5) { animation-delay:0.775s; }

.compass-tick:nth-child(4),
  .compass-tick:nth-child(6) { animation-delay:0.85s; }

.compass-tick:nth-child(3),
  .compass-tick:nth-child(7) { animation-delay:0.925s; }

.compass-tick:nth-child(2),
  .compass-tick:nth-child(8) { animation-delay:1s; }

.compass-tick:nth-child(1),
  .compass-tick:nth-child(9) { animation-delay:1.075s; }

@keyframes compass-tick-fade {
    to { opacity: 0.75; }
  }

/* Continuous scanner sweep — travels N → S then loops */
  .compass-scanner {
    position: absolute;
    left: calc(50% - 0.5px);
    top: 1.7rem;
    width: 1px;
    height: 36px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      var(--gold) 50%,
      transparent 100%
    );
    box-shadow: 0 0 6px var(--gold);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    animation: compass-scan 14s ease-in-out 4s infinite;
  }

/* Stagger the right-rule scanner so it doesn't sync with the left */
  .compass-rule-right .compass-scanner {
    animation-delay:5.5s;
  }

@keyframes compass-scan {
    0%   { top: 1.7rem; opacity: 0; }
    6%   { opacity: 0.7; }
    50%  { opacity: 0.7; }
    94%  { opacity: 0.7; }
    100% { top: calc(100% - 1.7rem - 36px); opacity: 0; }
  }

.epigraph {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--ink-dim);
    text-align: center;
    max-width: 38ch;
    margin: 0.4rem auto 0;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    animation: fade-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.8s forwards;
  }

@keyframes fade-rise { to { opacity: 1; transform: translateY(0); } }

@keyframes fade-in { to { opacity: 1; } }

/* Hero meta */
  .hero-meta {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    flex-wrap: wrap; gap: 1.5rem;
  }

.hero-meta-block {
    display: flex; flex-direction: column; gap: 0.4rem;
    opacity: 0;
    transform: translateY(12px);
    animation: meta-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

.hero-meta-block:nth-child(1) { animation-delay:1s; }

.hero-meta-block:nth-child(2) { animation-delay:1.075s; }

.hero-meta-block:nth-child(3) { animation-delay:1.15s; }

@keyframes meta-rise { to { opacity: 1; transform: translateY(0); } }

.hero-meta-block strong {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
  }

h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    animation: word-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

@keyframes word-rise {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }

h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
    position: relative;
  }

h1 em::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0.05em;
    width: 0; height: 1.5px;
    background: var(--gold);
    opacity: 0.55;
    animation: emphasis-underline 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.6s forwards;
  }

@keyframes emphasis-underline { to { width: 100%; } }

@keyframes lede-rise { to { opacity: 1; transform: translateY(0); } }

.hero-statement-text {
    min-width: 0;
  }

.hero-portrait {
    margin: 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: portrait-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.3s forwards;
  }

@keyframes portrait-rise {
    to { opacity: 1; transform: translateY(0); }
  }

/* Plate label, top-left of photo */
  .hero-portrait::before { display: none; }

@keyframes plate-rule { to { transform: scaleX(1); } }

.hero-portrait figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--rule);
    gap: 1rem;
    flex-wrap: wrap;
  }

.hero-portrait figcaption .caption-names {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--ink);
  }

.hero-lede strong { color: var(--ink); font-weight: 500; }

.hero-lede em {
    font-style: italic;
    color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.01em;
  }

.hero-foot {
    margin-top: 5rem;
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 2rem;
    opacity: 0;
    animation: fade-in 0.5s ease 1.8s forwards;
  }

.scroll-indicator { display: flex; align-items: center; gap: 1rem; }

.scroll-line {
    width: 60px; height: 1px;
    background: var(--gold);
    position: relative; overflow: hidden;
  }

.scroll-line::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--bg);
    animation: scroll-pulse 2.5s ease-in-out infinite;
  }

@keyframes scroll-pulse {
    0%, 100% { transform: translateX(-100%); }
    50%      { transform: translateX(100%); }
  }

.scroll-arrow {
    width: 12px; height: 12px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: rotate(45deg);
    animation: arrow-bob 2.2s ease-in-out infinite;
    margin-left: 0.5rem;
  }

@keyframes arrow-bob {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
    50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
  }

/* Pillars section */
  section.pillars {
    padding: 3rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
  }

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

.section-header.in::after { width: 60%; }

.section-label { display: flex; flex-direction: column; gap: 0.5rem; }

.section-label .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    font-weight: 400;
    font-style: italic;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

.section-header.in .section-label .num {
    animation: number-flash 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

@keyframes number-flash {
    0%   { transform: scale(1); text-shadow: 0 0 0 rgba(168, 133, 90, 0); }
    40%  { transform: scale(1.15); text-shadow: 0 4px 18px rgba(184, 149, 106, 0.5); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(168, 133, 90, 0); }
  }

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--ink);
  }

.section-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
  }

.pillar {
    display: grid;
    grid-template-columns: 100px 1fr 1.4fr;
    gap: 3rem;
    padding: 3.5rem 0;
    border-top: 1px solid var(--rule);
    position: relative;
    transition: background 0.4s ease;
    --pillar-mx: 50%;
  }

.pillar::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(
      ellipse 600px 200px at var(--pillar-mx) 50%,
      rgba(184, 149, 106, 0.10),
      transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }

.pillar:hover::before { opacity: 1; }

.pillar:last-child { border-bottom: 1px solid var(--rule); }

.pillar-roman {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 4rem;
    color: var(--ink-faint);
    line-height: 0.9;
    transition: color 0.4s ease, transform 0.4s ease;
    transform-origin: left center;
  }

.pillar.in .pillar-roman {
    animation: roman-enter 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

@keyframes roman-enter {
    0%   { opacity: 0; transform: scale(0.5) rotate(-8deg); color: var(--gold); }
    60%  { opacity: 1; transform: scale(1.1) rotate(2deg); color: var(--gold); }
    100% { opacity: 1; transform: scale(1) rotate(0); color: var(--ink-faint); }
  }

.pillar:hover .pillar-roman {
    color: var(--gold);
    transform: scale(1.08);
  }

.pillar-title-block {
    display: flex; flex-direction: column; gap: 1rem;
    position: relative; z-index: 1;
  }

.pillar-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--gold-deep);
    text-transform: uppercase;
    min-height: 1em;
    position: relative;
  }

.pillar-code .typed::after {
    content: '_';
    color: var(--gold);
    animation: cursor-blink 0.8s steps(1) infinite;
  }

.pillar-code .typed.done::after { display: none; }

@keyframes cursor-blink { 50% { opacity: 0; } }

.pillar-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1.05;
    letter-spacing: -0.005em;
    color: var(--ink);
  }

.pillar-name em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
  }

.pillar-status {
    display: inline-flex;
    align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-top: 0.5rem;
  }

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-faint);
  }

.status-dot.active {
    background: var(--gold);
    position: relative;
  }

.status-dot.active::before {
    content: '';
    position: absolute; inset: -6px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    animation: dot-ping 2s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
  }

@keyframes dot-ping {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
  }

.pillar-body {
    display: flex; flex-direction: column; gap: 1.5rem;
    position: relative; z-index: 1;
  }

.pillar-desc {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 55ch;
    font-weight: 300;
  }

.pillar-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 0.5rem;
  }

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(8px);
    cursor: default;
    background: transparent;
  }

.pillar.in .tag {
    animation: tag-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

.pillar.in .tag:nth-child(1) { animation-delay:0.3s; }

.pillar.in .tag:nth-child(2) { animation-delay:0.35s; }

.pillar.in .tag:nth-child(3) { animation-delay:0.4s; }

.pillar.in .tag:nth-child(4) { animation-delay:0.45s; }

@keyframes tag-in { to { opacity: 1; transform: translateY(0); } }

.tag:hover {
    border-color: var(--gold);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(184, 149, 106, 0.25);
  }

.pillar:hover .tag { border-color: var(--gold-deep); }

.person:first-of-type { border-top: none; padding-top: 1rem; }

.person:last-of-type  { border-bottom: 1px solid var(--rule); }

.person:hover .person-portrait img {
    filter: grayscale(0) sepia(0) brightness(1) contrast(1);
    transform: scale(1.04);
  }

.person-portrait::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--bg-elevated);
    transform: translateX(0);
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 2;
  }

.person.in .person-portrait::after { transform: translateX(101%); }

.person-portrait .photo-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
  }

.person-info {
    display: flex; flex-direction: column; gap: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.6s, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s;
  }

.person.in .person-info { opacity: 1; transform: translateY(0); }

.person-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    text-transform: uppercase;
    font-weight: 500;
  }

.person-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--ink);
  }

.person-name em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
  }

.person-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--gold);
    margin-top: -0.4rem;
  }

.person-bio {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--ink);
    max-width: 62ch;
    font-weight: 300;
  }

.person-bio p + p { margin-top: 0.9rem; }

.person-meta {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
  }

.person-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }

.person-meta-item .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-dim);
    font-weight: 500;
  }

.person-meta-item .value {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    color: var(--ink);
  }

section.positioning::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(
      ellipse at 70% 50%,
      rgba(184, 149, 106, 0.10),
      transparent 60%
    );
    animation: positioning-drift 20s ease-in-out infinite alternate;
    pointer-events: none;
  }

@keyframes positioning-drift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-10%, 5%); }
  }

.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 8rem;
    line-height: 0.5;
    color: var(--gold);
    margin-bottom: 1rem;
    display: inline-block;
    transform: rotate(-15deg) scale(0.5);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, opacity 1s ease 0.2s;
  }

.reveal.in .quote-mark { transform: rotate(0) scale(1); opacity: 1; }

blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: var(--ink);
  }

blockquote em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
  }

.signatory {
    margin-top: 2rem;
    display: flex; flex-direction: column;
    gap: 0.25rem;
  }

.signatory-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--ink);
  }

/* Footer */
  footer {
    padding: 5rem 2.5rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
  }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--rule);
  }

.footer-brand h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
  }

.footer-brand p {
    color: var(--ink-dim);
    font-size: 0.9rem;
    max-width: 36ch;
    line-height: 1.65;
    font-weight: 300;
  }

.footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1.25rem;
    font-weight: 500;
  }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col a, .footer-col li {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
  }

.footer-col a:hover { color: var(--gold); transform: translateX(4px); }

.footer-bottom {
    margin-top: 2.5rem;
    display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
  }

.footer-bottom span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
  }

/* Reveal */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.6, 0.2, 1), transform 1s cubic-bezier(0.2, 0.6, 0.2, 1);
  }

.reveal.in { opacity: 1; transform: translateY(0); }

/* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .hero-bg, .hero-grid, body::before, section.positioning::before {
      animation: none !important;
    }
    .compass-scanner { display: none !important; }
    .compass-line   { transform: scaleY(1) !important; }
    .compass-tick, .compass-cardinal { opacity: 1 !important; }

  }

.section-intro {
    margin-top: 1.4rem;
    color: var(--ink-dim);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 60ch;
  }

/* stat band */
  .stat-band {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--rule); border: 1px solid var(--rule); margin-bottom: 4rem;
  }

.stat { background: var(--bg); padding: 1.8rem 1.6rem; }

.stat .v {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1.9rem; color: var(--gold); line-height: 1; margin-bottom: 0.55rem;
  }

.stat .k { font-size: 0.8rem; color: var(--ink-dim); }

/* feature / provenance 3-up */
  .feature-row, .prov-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--rule); border: 1px solid var(--rule);
  }

.feature, .prov-item { background: var(--bg); padding: 2.3rem 1.9rem; }

.feature .mono, .prov-item .mono { display: block; margin-bottom: 0.9rem; }

.feature h4, .prov-item h4 {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--ink);
  }

.feature p, .prov-item p { color: var(--ink-dim); font-size: 0.92rem; }

/* element tiles */
  .element-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.element {
    position: relative; border: 1px solid var(--rule); padding: 9rem 2rem 2.2rem;
    transition: border-color 0.4s, transform 0.4s;
    overflow: hidden;
  }

.element:hover { border-color: var(--gold); transform: translateY(-4px); }

.el-no {
    position: absolute; top: 1.1rem; right: 1.4rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--ink-faint);
  }

.el-sym {
    font-family: 'Cormorant Garamond', serif; font-size: 4.6rem;
    line-height: 1; color: var(--platinum);
  }

.el-nm {
    font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin: 0.6rem 0 1rem;
  }

.element p { font-size: 0.92rem; color: var(--ink-dim); }

/* element specimens — fade in once the section scrolls into view, then stay (centred, upper band) */
  .el-specimen {
    position: absolute; top: 1.2rem; left: 50%;
    width: 156px; height: 122px;
    transform: translate(-50%, 12px) scale(0.97);
    opacity: 0;
    transition: opacity 1.3s cubic-bezier(0.2,0.6,0.2,1), transform 1.3s cubic-bezier(0.2,0.6,0.2,1);
    pointer-events: none; z-index: 0;
  }

.el-specimen svg, .el-specimen img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

.element.in .el-specimen { opacity: 0.92; transform: translate(-50%, 0) scale(1); }

.el-sym, .el-nm, .element p { position: relative; z-index: 1; }

.el-no { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
    .el-specimen { transition: opacity 0.5s ease; transform: translate(-50%, 0); }
    .element.in .el-specimen { transform: translate(-50%, 0); }
  }

.stage-no {
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 2.6rem;
    font-weight: 400; color: var(--gold-deep); line-height: 1; position: relative;
  }

.stage h4 {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: 1.5rem; margin-bottom: 0.4rem; color: var(--ink);
  }

.stage p { color: var(--ink-dim); font-size: 0.95rem; max-width: 62ch; }

.spec {
    display: inline-block; margin-top: 0.8rem; font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--platinum); border: 1px solid var(--rule); padding: 0.32rem 0.7rem;
  }

/* QA cards */
  .qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.qa-card { border: 1px solid var(--rule); padding: 2.2rem; transition: border-color 0.4s; }

.qa-card:hover { border-color: var(--gold-deep); }

.qa-ico {
    width: 40px; height: 40px; border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center; color: var(--gold);
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; margin-bottom: 1.2rem;
  }

.qa-card h4 {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--ink);
  }

.qa-card p { color: var(--ink-dim); font-size: 0.92rem; }

/* corridor */
  .corridor-line {
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem;
    padding: 2.6rem; border: 1px solid var(--rule); background: var(--bg-elevated);
  }

.corridor-line .node { flex: 1; min-width: 140px; text-align: center; }

.corridor-line .node .pt { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--ink); }

.corridor-line .node .sub { font-size: 0.8rem; color: var(--ink-dim); margin-top: 0.25rem; }

.corridor-line .arrow { flex: 0 0 auto; color: var(--gold); font-size: 1.5rem; }

.corridor-note { margin-top: 1.5rem; color: var(--ink-dim); font-size: 0.92rem; max-width: 72ch; }

/* Leadership portraits: brighten to full colour on scroll-in and STAY (mobile-friendly) */
  .person.in .person-portrait img {
    filter: grayscale(0) sepia(0) brightness(1) contrast(1);
  }

/* Hero entrance plate — full-width group photo at native 3:2 (no cropping) */
  .hero-plate { width: 100%; }

.hero-plate img { aspect-ratio: 3 / 2; }

/* ---- section figures (added) ---- */
  .sec-fig, .sec-fig-duo { margin: 2.2rem 0 0; }

.sec-fig-duo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  }

figure.plate { margin: 0; position: relative; }

figure.plate .plate-frame {
    position: relative; overflow: hidden;
    border: 1px solid var(--rule);
  }

figure.plate .plate-frame::before {
    content: ''; position: absolute; top: -1px; left: -1px;
    width: 64px; height: 1px; background: var(--gold); z-index: 3;
    transform-origin: left; transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.2,0.7,0.2,1) 0.25s;
  }

figure.plate .plate-frame::after {
    content: ''; position: absolute; top: -1px; left: -1px;
    width: 1px; height: 64px; background: var(--gold); z-index: 3;
    transform-origin: top; transform: scaleY(0);
    transition: transform 1s cubic-bezier(0.2,0.7,0.2,1) 0.25s;
  }

.sec-fig.in figure.plate .plate-frame::before,
  .sec-fig-duo.in figure.plate .plate-frame::before { transform: scaleX(1); }

.sec-fig.in figure.plate .plate-frame::after,
  .sec-fig-duo.in figure.plate .plate-frame::after { transform: scaleY(1); }

figure.plate img {
    width: 100%; height: auto; display: block; object-fit: cover;
    filter: brightness(0.9) contrast(1.05) saturate(0.85);
    transition: filter 0.9s ease, transform 1s cubic-bezier(0.2,0.7,0.2,1);
  }

.sec-fig.in figure.plate img,
  .sec-fig-duo.in figure.plate img {
    filter: brightness(1) contrast(1) saturate(1);
  }

figure.plate:hover img { transform: scale(1.018); }

figure.plate figcaption {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; flex-wrap: wrap;
    margin-top: 0.8rem; padding-top: 0.6rem;
    border-top: 1px solid var(--rule);
  }

figure.plate figcaption .cap {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 0.98rem; color: var(--ink); line-height: 1.35;
  }

figure.plate figcaption .ref {
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); white-space: nowrap; padding-top: 0.15rem;
  }

.sec-fig.single { display: flex; justify-content: center; }

.sec-fig.single figure.plate { width: 100%; }

.sec-fig.single.w-square figure.plate { max-width: 540px; }

.sec-fig.single.w-portrait figure.plate { max-width: 460px; }

@media (max-width: 760px) {
    .sec-fig-duo { grid-template-columns: 1fr; gap: 2rem; }
    .sec-fig, .sec-fig-duo { margin-top: 2.6rem; }
  }

/* ---- per-page wordmark division subtitle ---- */
  .lockup-wm { width:100%; max-width:580px; display:flex; flex-direction:column; align-items:center; gap:0; }

.lockup-wm .lockup-wordmark { width:100%; max-width:580px; }

.lockup-division { position:relative; margin-top:0.95rem; padding-top:0.85rem; font-family:'Cormorant Garamond',serif; font-weight:500; text-transform:uppercase; letter-spacing:0.55em; text-indent:0.55em; font-size:clamp(0.82rem,1.5vw,1.08rem); color:var(--cream,#ECEAE2); white-space:nowrap; line-height:1; }

.lockup-division::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:60%; height:1px; background:rgba(194,163,90,0.55); }
