/* ==========================================================================
   hardeepsinghpuri.in — design system
   Palette: Petroleum Blue · Deep Carbon · Burnished Copper · Mineral Grey ·
            Sandstone · Warm Ivory · Deep Teal
   ========================================================================== */

:root {
  --petrol: #123B46;
  --petrol-2: #0E2F38;
  --carbon: #15191B;
  --carbon-2: #1C2124;
  --copper: #A96A45;
  --copper-lt: #C98B63;
  --mineral: #6B7375;
  --sand: #D7C5A7;
  --sand-lt: #E7DBC6;
  --ivory: #F5F1E8;
  --paper: #FBF9F4;
  --teal: #1E5555;
  --teal-lt: #2C7272;

  --ink: #15191B;
  --ink-2: #3A4245;
  --ink-3: #5A6366;
  --rule: rgba(21, 25, 27, .14);
  --rule-strong: rgba(21, 25, 27, .28);
  --on-dark: #F5F1E8;
  --on-dark-2: rgba(245, 241, 232, .74);
  --on-dark-3: rgba(245, 241, 232, .55);
  --rule-dark: rgba(245, 241, 232, .14);

  --f-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-body: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  --fs-h1: clamp(2.2rem, 1.6rem + 2.6vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.13rem + .5vw, 1.55rem);
  --fs-small: .875rem;
  --fs-micro: .75rem;

  --wrap: 1240px;
  --wrap-narrow: 820px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 8vw, 120px);
  --radius: 2px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: inherit; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-family: var(--f-sans); font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
abbr { text-decoration: none; }
.sr-only { 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 { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--copper); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.section { padding: var(--sec) 0; position: relative; }
.section-tight { padding: calc(var(--sec) * .6) 0; }
.bg-ivory { background: var(--ivory); }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--sand-lt); }
.bg-petrol { background: var(--petrol); color: var(--on-dark); }
.bg-carbon { background: var(--carbon); color: var(--on-dark); }
.bg-teal { background: var(--teal); color: var(--on-dark); }
.dark { color: var(--on-dark); }
.dark a, .bg-petrol a, .bg-carbon a, .bg-teal a { color: var(--sand); }
.dark a:hover, .bg-petrol a:hover, .bg-carbon a:hover, .bg-teal a:hover { color: #fff; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--f-data); font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); display: inline-flex; align-items: center; gap: .75em; margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.bg-petrol .eyebrow, .bg-carbon .eyebrow, .bg-teal .eyebrow, .dark .eyebrow { color: var(--copper-lt); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.bg-petrol .lead, .bg-carbon .lead, .bg-teal .lead, .dark .lead { color: var(--on-dark-2); }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--f-data); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.serif { font-family: var(--f-serif); }
.italic { font-style: italic; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: clamp(20px, 5vw, 80px); }
.sec-head h2 { margin: 0; max-width: 20ch; }
.sec-head p { margin: 0; }
.sec-num { font-family: var(--f-data); font-size: var(--fs-micro); color: var(--mineral); letter-spacing: .1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(21, 25, 27, .94); color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; border: 1px solid var(--copper); display: grid; place-items: center; font-family: var(--f-serif); font-size: 15px; letter-spacing: .04em; color: var(--copper-lt); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--f-serif); font-size: 1.12rem; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-family: var(--f-data); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); white-space: nowrap; }

.nav { display: flex; align-items: center; height: 100%; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-item { position: static; height: 100%; display: flex; align-items: center; margin: 0; }
.nav-link, .nav-trigger {
  font-family: var(--f-sans); font-size: .875rem; font-weight: 500; letter-spacing: .01em;
  color: var(--on-dark-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 8px 10px; display: inline-flex; align-items: center; gap: 5px; height: 100%; position: relative;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: #fff; }
.nav-link[aria-current="page"], .nav-trigger.is-current { color: #fff; }
.nav-link[aria-current="page"]::after, .nav-trigger.is-current::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--copper); }
.nav-trigger svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--carbon); color: var(--on-dark);
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  box-shadow: 0 30px 60px rgba(0,0,0,.35); display: none;
}
.mega.is-open { display: block; animation: megaIn .22s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-inner { max-width: 1440px; margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 48px; }
.mega-intro h3 { font-size: 1.6rem; margin-bottom: .4em; }
.mega-intro p { color: var(--on-dark-3); font-size: .9rem; margin: 0; max-width: 32ch; }
.mega-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 32px; list-style: none; margin: 0; padding: 0; }
.mega-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-dark); color: var(--on-dark); text-decoration: none; }
.mega-links a:hover, .mega-links a[aria-current="page"] { color: var(--copper-lt); }
.mega-links strong { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 1.1rem; }
.mega-links span { display: block; font-size: .8rem; color: var(--on-dark-3); line-height: 1.4; margin-top: 2px; }

.menu-btn { display: none; background: none; border: 1px solid var(--rule-dark); color: var(--on-dark); width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; background: var(--carbon); color: var(--on-dark); display: none; flex-direction: column; }
.drawer.is-open { display: flex; }
.drawer-head { height: var(--header-h); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--rule-dark); }
.drawer-close { background: none; border: 1px solid var(--rule-dark); color: var(--on-dark); width: 46px; height: 46px; cursor: pointer; font-size: 26px; line-height: 1; display: grid; place-items: center; }
.drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px var(--gutter) 48px; flex: 1; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list > li { border-bottom: 1px solid var(--rule-dark); margin: 0; }
.drawer-list a, .drawer-acc { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 56px; padding: 8px 0; color: var(--on-dark); text-decoration: none; font-family: var(--f-serif); font-size: 1.3rem; background: none; border: 0; cursor: pointer; text-align: left; }
.drawer-list a[aria-current="page"] { color: var(--copper-lt); }
.drawer-acc svg { width: 14px; height: 14px; transition: transform .2s; flex-shrink: 0; }
.drawer-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer-sub { list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 1px solid var(--copper); }
.drawer-sub[hidden] { display: none; }
.drawer-sub a { font-family: var(--f-sans); font-size: 1rem; min-height: 46px; color: var(--on-dark-2); }
.drawer-contact { margin-top: 28px; font-size: .9rem; color: var(--on-dark-3); }
.drawer-contact a { color: var(--sand); }
body.no-scroll { overflow: hidden; }

@media (max-width: 1279px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; font-family: var(--f-sans); font-size: .9rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn-copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-copper:hover { background: #8F5838; border-color: #8F5838; color: #fff; }
.dark .btn, .bg-petrol .btn, .bg-carbon .btn, .bg-teal .btn { border-color: var(--on-dark-3); color: var(--on-dark); }
.dark .btn:hover, .bg-petrol .btn:hover, .bg-carbon .btn:hover, .bg-teal .btn:hover { background: var(--ivory); color: var(--carbon); }
.dark .btn-copper, .bg-petrol .btn-copper, .bg-carbon .btn-copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { font-weight: 600; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

.chip { display: inline-block; font-family: var(--f-data); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--rule-strong); color: var(--ink-3); line-height: 1.4; }
.chip-copper { border-color: var(--copper); color: var(--copper); }
.chip-teal { border-color: var(--teal); color: var(--teal); }
.chip-current { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip-hist { background: var(--sand-lt); border-color: var(--sand); color: #6B5A3D; }
.dark .chip, .bg-petrol .chip, .bg-carbon .chip { border-color: var(--rule-dark); color: var(--on-dark-3); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { font-family: var(--f-sans); font-size: .85rem; font-weight: 500; padding: 9px 16px; min-height: 42px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-2); cursor: pointer; }
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn[aria-pressed="true"] { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.filter-count { font-family: var(--f-data); font-size: var(--fs-micro); color: var(--ink-3); margin: -16px 0 24px; }
[data-filter-item][hidden] { display: none !important; }

/* ---------- Page heroes ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--petrol); color: var(--on-dark); padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 88px); isolation: isolate; }
.page-hero h1 { max-width: 18ch; margin-bottom: .35em; }
.page-hero .lead { color: var(--on-dark-2); }
.page-hero .contours { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.page-hero .contours svg { width: 100%; height: 100%; }
.page-hero--carbon { background: var(--carbon); }
.page-hero--teal { background: var(--teal); }
.page-hero--ivory { background: var(--ivory); color: var(--ink); }
.page-hero--ivory .lead { color: var(--ink-2); }
.page-hero--ivory .crumbs, .page-hero--ivory .crumbs a { color: var(--ink-3); }
.crumbs { font-family: var(--f-data); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.crumbs li { margin: 0; }
.crumbs a { color: var(--on-dark-3); text-decoration: none; }
.crumbs a:hover { color: var(--copper-lt); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--rule-dark); font-size: .85rem; color: var(--on-dark-3); }
.page-hero--ivory .hero-meta { border-top-color: var(--rule); color: var(--ink-3); }
.hero-meta b { display: block; font-family: var(--f-data); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-lt); margin-bottom: 2px; }
.page-hero--ivory .hero-meta b { color: var(--copper); }

.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-figure { margin: 0; position: relative; }
.hero-figure .frame { background: rgba(0,0,0,.18); border: 1px solid var(--rule-dark); padding: 10px; }
.page-hero--ivory .hero-figure .frame { background: var(--sand-lt); border-color: var(--rule); }
.hero-figure img { width: 100%; height: auto; object-fit: contain; }
.hero-figure figcaption { font-size: .8rem; color: var(--on-dark-3); margin-top: 10px; line-height: 1.45; }
.page-hero--ivory .hero-figure figcaption { color: var(--ink-3); }

/* ---------- Home hero ---------- */
.home-hero { position: relative; background: var(--carbon); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.home-hero .contours { position: absolute; inset: 0; z-index: -1; opacity: .55; }
.home-hero .contours svg { width: 100%; height: 100%; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; min-height: min(86vh, 820px); padding-top: clamp(48px, 7vw, 96px); }
.home-hero-copy { padding-bottom: clamp(48px, 7vw, 100px); }
.home-hero h1 { font-size: clamp(2.6rem, 1.7rem + 4vw, 5.4rem); line-height: 1; letter-spacing: -.02em; margin-bottom: .3em; text-transform: none; }
.home-hero h1 span { display: block; }
.home-hero .role { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.9rem); color: var(--sand); margin: 0 0 1.4rem; }
.home-hero .pillars { font-family: var(--f-data); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 2.4rem; }
.home-hero .pillars span + span::before { content: "•"; color: var(--copper); margin-right: 18px; }
.home-hero-portrait { position: relative; align-self: end; margin: 0; }
.home-hero-portrait .ring { position: absolute; inset: 6% -8% auto auto; width: 92%; aspect-ratio: 1; border: 1px solid rgba(169,106,69,.45); border-radius: 50%; z-index: -1; }
.home-hero-portrait img { width: 100%; height: auto; object-fit: contain; display: block; }
.home-hero-portrait figcaption { position: absolute; left: 0; bottom: 16px; font-family: var(--f-data); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); background: rgba(21,25,27,.7); padding: 6px 10px; }
.verified-line { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--on-dark-3); border: 1px solid var(--rule-dark); padding: 8px 12px; margin-bottom: 28px; }
.verified-line i { width: 8px; height: 8px; border-radius: 50%; background: #5FB39A; box-shadow: 0 0 0 4px rgba(95,179,154,.18); flex-shrink: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.g-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.g-4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.g-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.align-center { align-items: center; }
.align-start { align-items: start; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }

/* ---------- Cards / panels ---------- */
.panel { border: 1px solid var(--rule); background: var(--paper); padding: clamp(22px, 2.6vw, 34px); }
.bg-paper .panel { background: #fff; }
.panel h3 { margin-bottom: .45em; }
.panel p:last-child { margin-bottom: 0; }
.panel-dark { background: rgba(255,255,255,.04); border-color: var(--rule-dark); }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: idx; }
.index-list > li { counter-increment: idx; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.index-list > li::before { content: counter(idx, decimal-leading-zero); font-family: var(--f-data); font-size: .8rem; color: var(--copper); }
.index-list h3 { margin: 0 0 4px; font-size: 1.3rem; }
.index-list p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.index-list a.cover { text-decoration: none; color: inherit; }
.index-list a.cover:hover h3 { color: var(--teal); }
.dark .index-list, .bg-petrol .index-list, .bg-carbon .index-list { border-top-color: var(--rule-dark); }
.dark .index-list > li, .bg-petrol .index-list > li, .bg-carbon .index-list > li { border-bottom-color: var(--rule-dark); }
.dark .index-list p, .bg-petrol .index-list p, .bg-carbon .index-list p { color: var(--on-dark-3); }

.tile-link { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 200px; padding: 26px; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .2s, transform .25s var(--ease), background .2s; }
.tile-link:hover { border-color: var(--copper); color: var(--ink); transform: translateY(-3px); }
.tile-link h3 { margin: 0; font-size: 1.35rem; }
.tile-link p { margin: 0; color: var(--ink-3); font-size: .93rem; }
.tile-link .k { font-family: var(--f-data); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.bg-petrol .tile-link, .bg-carbon .tile-link { background: rgba(255,255,255,.03); border-color: var(--rule-dark); color: var(--on-dark); }
.bg-petrol .tile-link p, .bg-carbon .tile-link p { color: var(--on-dark-3); }
.bg-petrol .tile-link:hover, .bg-carbon .tile-link:hover { border-color: var(--copper-lt); color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.stat { padding: 26px 24px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; background: var(--paper); }
.stat .v { font-family: var(--f-serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; color: var(--petrol); }
.stat .v small { font-family: var(--f-sans); font-size: .9rem; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.stat .l { font-size: .93rem; color: var(--ink-2); line-height: 1.4; }
.stat .s { font-family: var(--f-data); font-size: 10.5px; letter-spacing: .06em; color: var(--mineral); text-transform: uppercase; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--rule); line-height: 1.5; }
.stat .s a { color: var(--mineral); }
.bg-petrol .stats, .bg-carbon .stats, .bg-teal .stats { border-color: var(--rule-dark); }
.bg-petrol .stat, .bg-carbon .stat, .bg-teal .stat { background: transparent; border-color: var(--rule-dark); }
.bg-petrol .stat .v, .bg-carbon .stat .v, .bg-teal .stat .v { color: var(--on-dark); }
.bg-petrol .stat .v small, .bg-carbon .stat .v small { color: var(--on-dark-3); }
.bg-petrol .stat .l, .bg-carbon .stat .l, .bg-teal .stat .l { color: var(--on-dark-2); }
.bg-petrol .stat .s, .bg-carbon .stat .s, .bg-teal .stat .s, .bg-petrol .stat .s a, .bg-carbon .stat .s a { color: var(--on-dark-3); border-top-color: var(--rule-dark); }

/* ---------- Charts (single-series bars) ---------- */
.chart { border: 1px solid var(--rule); background: var(--paper); padding: clamp(18px, 2.4vw, 30px); }
.bg-paper .chart { background: #fff; }
.chart-title { font-family: var(--f-serif); font-size: 1.25rem; margin: 0 0 4px; }
.chart-sub { font-size: .85rem; color: var(--ink-3); margin: 0 0 20px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0; font-size: .88rem; }
.bars .lab { color: var(--ink-2); line-height: 1.3; }
.bars .track { height: 14px; position: relative; }
.bars .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 0 4px 4px 0; width: 0; transition: width 1s var(--ease); }
.bars li:hover .fill { background: var(--petrol); }
.bars li.hl .fill { background: var(--copper); }
.bars .val { font-family: var(--f-data); font-size: .82rem; color: var(--ink); min-width: 4.5em; text-align: right; }
.chart-src { font-family: var(--f-data); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--mineral); margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--rule); line-height: 1.6; }
.chart-src a { color: var(--mineral); }
.chart details { margin-top: 12px; font-size: .85rem; }
.chart summary { cursor: pointer; color: var(--teal); font-weight: 500; }

.columns-chart { display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 16px); height: 220px; border-bottom: 1px solid var(--rule-strong); padding-top: 26px; }
.columns-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.columns-chart .col .bar { width: 100%; max-width: 54px; background: var(--teal); border-radius: 4px 4px 0 0; height: 0; transition: height 1s var(--ease); position: relative; }
.columns-chart .col.hl .bar { background: var(--copper); }
.columns-chart .col:hover .bar { background: var(--petrol); }
.columns-chart .col .cv { font-family: var(--f-data); font-size: .75rem; color: var(--ink); margin-bottom: 6px; white-space: nowrap; }
.columns-x { display: flex; gap: clamp(6px, 1.4vw, 16px); margin-top: 8px; }
.columns-x span { flex: 1; text-align: center; font-family: var(--f-data); font-size: .7rem; color: var(--ink-3); min-width: 0; line-height: 1.3; }

.meter { margin: 8px 0 4px; }
.meter-track { height: 10px; background: var(--sand-lt); position: relative; border-radius: 0 4px 4px 0; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 0 4px 4px 0; }
.meter-target { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--copper); }
.meter-legend { display: flex; justify-content: space-between; font-family: var(--f-data); font-size: .72rem; color: var(--ink-3); margin-top: 6px; gap: 10px; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); background: var(--paper); }
.bg-paper .table-wrap { background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
table.data caption { text-align: left; padding: 16px 18px 6px; font-family: var(--f-serif); font-size: 1.15rem; }
table.data th, table.data td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
table.data thead th { font-family: var(--f-data); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--ivory); white-space: nowrap; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data td.num { font-family: var(--f-data); white-space: nowrap; }
table.data tbody th { font-weight: 600; }
table.data a { word-break: break-word; }

/* ---------- Editorial timeline ---------- */
.chrono { list-style: none; margin: 0; padding: 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 1px; background: var(--rule-strong); }
.chrono > li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 40px; padding: 0 0 44px; margin: 0; position: relative; }
.chrono > li::after { content: ""; position: absolute; left: 146px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--copper); }
.chrono .when { font-family: var(--f-data); font-size: .82rem; color: var(--copper); text-align: right; padding-top: 4px; line-height: 1.4; }
.chrono h3 { margin: 0 0 .35em; }
.chrono p { color: var(--ink-2); margin-bottom: .6em; }
.chrono .src { font-family: var(--f-data); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--mineral); }
.chrono .src a { color: var(--mineral); }
.chrono .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bg-ivory .chrono > li::after { background: var(--ivory); }
.bg-petrol .chrono::before, .bg-carbon .chrono::before { background: var(--rule-dark); }
.bg-petrol .chrono > li::after { background: var(--petrol); }
.bg-carbon .chrono > li::after { background: var(--carbon); }
.bg-petrol .chrono p, .bg-carbon .chrono p { color: var(--on-dark-2); }
.bg-petrol .chrono .src, .bg-carbon .chrono .src, .bg-petrol .chrono .src a, .bg-carbon .chrono .src a { color: var(--on-dark-3); }

/* Horizontal journey */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); counter-reset: j; }
.journey > div { padding: 28px 24px 8px 0; position: relative; counter-increment: j; }
.journey > div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--copper); border-radius: 50%; }
.journey .yr { font-family: var(--f-data); font-size: .8rem; color: var(--copper-lt); letter-spacing: .06em; }
.journey h3 { margin: 10px 0 8px; font-size: 1.4rem; }
.journey p { color: var(--on-dark-2); font-size: .95rem; }

/* ---------- Figures ---------- */
.fig { margin: 0; }
.fig .frame { background: var(--sand-lt); overflow: hidden; }
.fig img { width: 100%; height: auto; object-fit: contain; }
.fig figcaption { font-size: .82rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--copper); }
.dark .fig figcaption, .bg-petrol .fig figcaption, .bg-carbon .fig figcaption { color: var(--on-dark-3); }
.fig--bleed .frame { background: var(--carbon); }

/* ---------- Quote ---------- */
.quote { margin: 0; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.quote blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.3; font-style: italic; }
.quote blockquote::before { content: "“"; color: var(--copper); }
.quote blockquote::after { content: "”"; color: var(--copper); }
.quote figcaption { margin-top: 18px; font-size: .88rem; color: var(--ink-3); }
.quote figcaption strong { color: var(--ink); }
.bg-petrol .quote, .bg-carbon .quote, .bg-teal .quote { border-color: var(--rule-dark); }
.bg-petrol .quote figcaption, .bg-carbon .quote figcaption, .bg-teal .quote figcaption { color: var(--on-dark-3); }
.bg-petrol .quote figcaption strong, .bg-carbon .quote figcaption strong { color: var(--on-dark); }

/* ---------- Policy lens (objective → outcome) ---------- */
.lens { border: 1px solid var(--rule); background: var(--paper); }
.bg-paper .lens { background: #fff; }
.lens-head { padding: 22px 26px; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: baseline; }
.lens-head h3 { margin: 0; }
.lens-rows { display: grid; }
.lens-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.lens-row:last-child { border-bottom: 0; }
.lens-row > b { font-family: var(--f-data); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); padding: 18px 26px; background: var(--ivory); }
.lens-row > div { padding: 16px 26px; font-size: .95rem; }
.lens-row > div p:last-child { margin: 0; }

/* ---------- Value chain diagram ---------- */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.chain-step { padding: 26px 22px 26px; border: 1px solid var(--rule-dark); border-right: 0; position: relative; background: rgba(255,255,255,.02); }
.chain-step:last-child { border-right: 1px solid var(--rule-dark); }
.chain-step::after { content: ""; position: absolute; right: -9px; top: 32px; width: 16px; height: 16px; background: var(--petrol); border-top: 1px solid var(--copper); border-right: 1px solid var(--copper); transform: rotate(45deg); z-index: 2; }
.chain-step:last-child::after { display: none; }
.chain-step .k { font-family: var(--f-data); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-lt); }
.chain-step h3 { font-size: 1.45rem; margin: 10px 0 10px; }
.chain-step ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--on-dark-2); }
.chain-step li { padding: 6px 0; border-top: 1px solid var(--rule-dark); margin: 0; }

/* ---------- Doc list ---------- */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.docs > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1.1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); margin: 0; align-items: start; }
.docs h3 { font-size: 1.15rem; margin: 0 0 6px; }
.docs p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.docs .meta { font-size: .85rem; color: var(--ink-3); }
.docs .meta b { display: block; font-family: var(--f-data); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: 2px; }
.docs .go { text-align: right; }

/* ---------- Entries (speeches / statements / media) ---------- */
.entries { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.entry .date { font-family: var(--f-data); font-size: .82rem; color: var(--copper); line-height: 1.5; }
.entry .date span { display: block; color: var(--ink-3); font-size: .75rem; margin-top: 4px; }
.entry h3 { margin: 0 0 8px; font-size: 1.35rem; }
.entry .where { font-size: .88rem; color: var(--ink-3); margin-bottom: 10px; }
.entry p { color: var(--ink-2); margin-bottom: 10px; }
.entry .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.entry .srcl { font-family: var(--f-data); font-size: 11px; letter-spacing: .04em; margin-left: auto; }
.entry blockquote { margin: 12px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--copper); font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 20px; }
.gallery figure { break-inside: avoid; margin: 0 0 20px; background: var(--carbon); border: 1px solid var(--rule); }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--carbon); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; object-fit: contain; }
.gallery figcaption { background: var(--paper); padding: 14px 16px; font-size: .85rem; line-height: 1.45; color: var(--ink-2); }
.gallery figcaption b { display: block; font-family: var(--f-data); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12,14,15,.95); display: none; align-items: center; justify-content: center; padding: 60px 16px 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: var(--on-dark-2); font-size: .9rem; margin-top: 14px; text-align: center; max-width: 70ch; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; background: none; border: 1px solid var(--rule-dark); color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--f-serif); font-size: 1.25rem; position: relative; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--f-sans); font-size: 1.6rem; color: var(--copper); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; max-width: 70ch; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Sources / notes ---------- */
.sources { font-size: .88rem; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 48px; }
.sources h2, .sources h3 { font-family: var(--f-data); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 14px; font-weight: 400; }
.sources ol { padding-left: 1.4em; margin: 0; columns: 2 320px; column-gap: 40px; }
.sources li { break-inside: avoid; margin-bottom: 8px; }
.sources a { word-break: break-word; color: var(--ink-2); }
.note { font-size: .88rem; color: var(--ink-3); border-left: 2px solid var(--sand); padding: 4px 0 4px 16px; margin: 20px 0; }
.dark .note, .bg-petrol .note, .bg-carbon .note { color: var(--on-dark-3); border-left-color: var(--copper); }
.callout { border: 1px solid var(--copper); padding: 22px 26px; background: rgba(169,106,69,.06); }
.callout h3 { font-size: 1.15rem; margin-bottom: .35em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-card { border: 1px solid var(--rule); background: #fff; padding: clamp(24px, 3vw, 40px); display: grid; gap: 24px; }
.contact-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row b { font-family: var(--f-data); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.contact-row a, .contact-row span { font-family: var(--f-serif); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-row a:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.disclaimer { background: var(--ivory); border-top: 1px solid var(--rule); font-size: .85rem; color: var(--ink-3); padding: 22px 0; }
.disclaimer p { margin: 0; max-width: 100ch; }
.site-footer { background: var(--carbon); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .92rem; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.footer-brand .brand-name { font-size: 1.6rem; display: block; color: var(--on-dark); margin-bottom: 10px; font-family: var(--f-serif); }
.footer-brand p { color: var(--on-dark-3); font-size: .88rem; max-width: 36ch; }
.site-footer h2 { font-family: var(--f-data); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-lt); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.social a { width: 44px; height: 44px; border: 1px solid var(--rule-dark); display: grid; place-items: center; color: var(--on-dark); transition: border-color .2s, color .2s, background .2s; }
.social a:hover { border-color: var(--copper); color: var(--copper-lt); background: rgba(169,106,69,.08); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-base { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .82rem; color: var(--on-dark-3); }
.footer-base a { color: var(--sand); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain-step { border-right: 1px solid var(--rule-dark); border-bottom: 0; }
  .chain-step:nth-child(n+3) { border-bottom: 1px solid var(--rule-dark); }
  .chain-step::after { display: none; }
  .docs > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .docs .go { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .g-2, .g-3, .g-5-7, .g-7-5, .g-4-8, .g-8-4, .hero-split, .sec-head--split { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; align-items: start; }
  .home-hero-copy { padding-bottom: 8px; }
  .home-hero-portrait { max-width: 460px; width: 100%; margin: 0 auto; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chrono::before { left: 7px; }
  .chrono > li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 34px; }
  .chrono > li::after { left: 3px; top: 6px; }
  .chrono .when { text-align: left; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lens-row { grid-template-columns: minmax(0, 1fr); }
  .lens-row > b { padding: 12px 20px; }
  .lens-row > div { padding: 14px 20px; }
  .hero-figure { max-width: 520px; }
}
@media (max-width: 640px) {
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain-step { border-bottom: 0; }
  .chain-step:last-child { border-bottom: 1px solid var(--rule-dark); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .docs > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .index-list > li { grid-template-columns: 36px minmax(0, 1fr); }
  .index-list > li > :last-child:not(:nth-child(1)):not(div) { grid-column: 2; }
  .bars li { grid-template-columns: minmax(0, 1fr) auto; }
  .bars .lab { grid-column: 1 / -1; }
  .bars .track { grid-column: 1; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 13px; }
  .brand-name { font-size: 1rem; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: 18px 14px; }
  .home-hero .pillars span + span::before { margin-right: 10px; }
  .home-hero .pillars { gap: 6px 10px; letter-spacing: .1em; }
  .columns-chart .col .cv { font-size: .62rem; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .drawer, .site-footer, .filters, .menu-btn { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* Home hero portrait: feather the photo's outer edges into the background (face area untouched) */
.home-hero-portrait picture { display: block; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%); mask-composite: intersect; }
.section { isolation: isolate; overflow: hidden; }
.contours { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; }
.contours svg { width: 100%; height: 100%; }
.chain-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chain-3 .chain-step { border-right: 1px solid var(--rule-dark); border-bottom: 0; margin: 0 -1px -1px 0; }
.chain-3 .chain-step:nth-child(n+4) { border-bottom: 1px solid var(--rule-dark); }
.chain-3 .chain-step:nth-child(3n)::after { display: none; }
@media (max-width: 1100px) { .chain-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chain-3 .chain-step:nth-child(n+5) { border-bottom: 1px solid var(--rule-dark); } }
@media (max-width: 640px) { .chain-3 { grid-template-columns: minmax(0, 1fr); } .chain-3 .chain-step { border-bottom: 1px solid var(--rule-dark); } }
@media (max-width: 900px) { [data-layer] { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 520px) { [data-book] { grid-template-columns: 84px minmax(0, 1fr) !important; } }
.entry dl dd { word-break: normal; }
@media (max-width: 900px) { .home-hero-portrait .ring { inset: 4% 0 auto auto; width: 86%; } }
.stat .v { overflow-wrap: anywhere; }
@media (max-width: 640px) { .stat .v { font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2rem); } .stat .v small { display: inline-block; } }
