:root {
  --ercarin-blue: #293d98;
  --ercarin-deep: #15235f;
  --ercarin-mist: #e9efff;
  --ercarin-mineral: #f8f9fc;
  --ercarin-graphite: #172033;
  --ercarin-botanical: #7d9185;
  --ercarin-nephrite: #4f8758;
  --ercarin-red: #b5163d;
  --ercarin-line: #cfd8ec;
  --ercarin-muted: #65708a;
  --page: min(1180px, calc(100% - 48px));
  --space-section: clamp(84px, 8vw, 108px);
  --space-section-compact: clamp(64px, 6.5vw, 88px);
  --layout-gap: clamp(44px, 6vw, 82px);
  --section-title: clamp(39px, 4.7vw, 62px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: #fff; color: var(--ercarin-graphite); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #75a6ff; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 16px; background: #fff; color: var(--ercarin-deep); border: 1px solid var(--ercarin-line); }
.skip-link:focus { top: 10px; }
.anchor-target { display: block; height: 0; scroll-margin-top: 74px; }

.site-header { height: 74px; width: 100%; padding: 0 max(24px, calc((100% - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ercarin-line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.brand { color: var(--ercarin-blue); font-size: 37px; line-height: 1; font-weight: 700; letter-spacing: -2.4px; display: inline-flex; align-items: center; }
.brand-plus { position: relative; width: .55em; height: .55em; margin-left: .08em; flex: 0 0 auto; }
.brand-plus::before, .brand-plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); border-radius: 1px; background: linear-gradient(145deg,#2a653d 0%,var(--ercarin-nephrite) 52%,#659b62 100%); opacity: .84; }
.brand-plus::before { width: 100%; height: .15em; }
.brand-plus::after { width: .15em; height: 100%; }
nav { display: flex; gap: 30px; font-size: 13px; }
nav a, .header-link { border-bottom: 1px solid transparent; }
nav a:hover, .header-link:hover { color: var(--ercarin-blue); border-color: currentColor; }
.header-link { font-size: 13px; }

.hero { color: #fff; background-color: var(--ercarin-blue); background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 48px 48px; padding: 34px max(24px, calc((100% - 1180px)/2)) 22px; }
.hero-intro { padding-bottom: 12px; }
.technical-label, .section-index, .archive-label { margin: 0; font-size: 11px; line-height: 1.4; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.technical-label { color: #cddcff; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 760px; margin: 28px 0 18px; font-size: clamp(50px,6vw,82px); line-height: .98; letter-spacing: -.055em; font-weight: 500; overflow-wrap: normal; word-break: normal; }
h1 span { display: block; white-space: nowrap; }
.hero-sub { margin: 0; color: #dbe5ff; font-size: 18px; }
.hero-observation { min-width: 0; background: #fff; color: var(--ercarin-graphite); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 22px 55px rgba(9,19,69,.2); }
.observation-meta { min-height: 55px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--ercarin-line); font-size: 10px; letter-spacing: .12em; color: var(--ercarin-muted); }
.observation-meta strong { color: var(--ercarin-deep); font-size: 13px; font-weight: 600; letter-spacing: 0; text-align: center; }
.observation-meta span:last-child { text-align: right; }
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #fff; }
.hero-pair figure { margin: 0; min-width: 0; aspect-ratio: 1/1; position: relative; background: #d7dce5; overflow: hidden; }
.hero-pair a, .hero-pair picture { display: block; width: 100%; height: 100%; }
.hero-pair img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-pair figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; background: rgba(255,255,255,.92); color: var(--ercarin-deep); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.swipe-hint { margin: 0; padding: 12px 16px; font-size: 11px; color: var(--ercarin-muted); }

.evidence-strip { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); border-right: 1px solid var(--ercarin-line); border-bottom: 1px solid var(--ercarin-line); }
.evidence-strip div { min-height: 110px; padding: 24px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--ercarin-line); }
.evidence-strip strong { color: var(--ercarin-blue); font-size: 21px; line-height: 1.2; font-weight: 500; }
.evidence-strip span { color: var(--ercarin-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.thesis { width: var(--page); margin: 0 auto; padding: var(--space-section) 0; }
.thesis-label { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 22px; color: var(--ercarin-muted); border-bottom: 1px solid var(--ercarin-line); font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.thesis h2 { max-width: 1110px; margin: 34px 0 38px; color: var(--ercarin-deep); font-size: var(--section-title); line-height: 1.08; }
.thesis-foot { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 50px; align-items: end; padding-top: 28px; border-top: 1px solid var(--ercarin-line); }
.thesis-foot p { max-width: 710px; margin: 0; color: var(--ercarin-muted); font-family: var(--sans); font-size: 21px; line-height: 1.6; }
.thesis-foot .text-link { margin: 0; white-space: nowrap; }

.story-archive { background: #f3efe7; border-top: 1px solid #ded8cc; border-bottom: 1px solid #ded8cc; }
.archive-intro, .archive-chapter, .archive-resolution { width: var(--page); margin: 0 auto; }
.archive-intro { padding: var(--space-section) 0 var(--space-section-compact); display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); column-gap: var(--layout-gap); align-items: end; }
.archive-intro .section-index { grid-column: 1/-1; margin-bottom: 28px; color: #8b5937; }
.archive-intro h2 { margin: 0; color: #31281f; }
.archive-intro > p { margin: 0 0 6px; color: #726559; font-family: var(--sans); font-size: 22px; line-height: 1.55; }
.archive-chapter { padding: var(--space-section-compact) 0; border-top: 1px solid #d8d0c2; }
.archive-chapter--failure, .turning-point { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: var(--layout-gap); align-items: center; }
.chapter-number { margin: 0 0 20px; color: #9b5c33; font-size: 11px; line-height: 1.45; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.chapter-copy h3, .archive-resolution h3 { margin: 0 0 24px; color: #31281f; font-size: clamp(34px,4.2vw,58px); line-height: 1.03; letter-spacing: -.04em; font-weight: 500; }
.chapter-copy > p:not(.chapter-number), .archive-resolution > p:not(.chapter-number) { color: #726559; font-size: 17px; line-height: 1.75; }
.honesty-note { margin-top: 26px; padding-left: 18px; border-left: 2px solid #9b5c33; font-size: 14px !important; }
.raw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.raw-pair figure, .failure-grid figure, .turning-image figure { margin: 0; padding: 10px 10px 0; background: #fff; border: 1px solid #d6cec0; box-shadow: 0 18px 42px rgba(64,45,28,.11); }
.raw-pair figure:nth-child(1) { transform: rotate(-.7deg); }
.raw-pair figure:nth-child(2) { transform: rotate(.65deg); }
.raw-pair img { width: 100%; height: 480px; display: block; object-fit: contain; background: #ebe7de; }
.raw-pair figcaption, .failure-grid figcaption, .turning-image figcaption { min-height: 48px; padding: 12px 4px; color: #796b5e; font-size: 9px; line-height: 1.4; letter-spacing: .12em; font-weight: 700; }
.archive-chapter--cases .chapter-copy { max-width: 780px; }
.failure-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.failure-grid figure:nth-child(3n+1) { transform: rotate(-.35deg); }
.failure-grid figure:nth-child(3n+2) { transform: rotate(.3deg); }
.failure-grid img { width: 100%; height: 340px; display: block; object-fit: contain; background: #e5e0d7; }
.archive-caution { max-width: 840px; margin: 30px 0 0; color: #85786c; font-size: 12px; line-height: 1.7; }
.turning-point { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
.turning-copy { grid-column: 2; grid-row: 1; }
.turning-image { grid-column: 1; grid-row: 1; }
.turning-image figure { padding: 14px 14px 0; transform: rotate(-.5deg); }
.turning-image img { width: 100%; max-height: 690px; display: block; object-fit: contain; background: #e7e3da; }
.turning-copy blockquote { margin: 34px 0 0; padding: 26px 0 0; border-top: 1px solid #c9bcaa; color: #6c3f25; font-family: var(--sans); font-size: 25px; line-height: 1.45; font-style: italic; }
.archive-resolution { padding: var(--space-section-compact) 0 var(--space-section); border-top: 1px solid #d8d0c2; }
.archive-resolution h3 { max-width: 920px; }
.archive-resolution > p:not(.chapter-number) { max-width: 760px; }
.archive-resolution .text-link { color: #8b5937; }

.section { width: var(--page); margin: 0 auto; padding: var(--space-section) 0; }
.section-index { color: var(--ercarin-blue); }
.story-section { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); gap: var(--layout-gap); align-items: start; }
.story-title { position: sticky; top: 94px; align-self: start; }
.story-title h2 { margin-bottom: 0; }
.story-content { min-width: 0; padding-top: 24px; }
.story-lead { margin: 0 0 28px; color: var(--ercarin-muted); font-size: 18px; line-height: 1.75; }
h2 { margin: 16px 0 20px; max-width: 820px; font-size: var(--section-title); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; }
.section-heading > p:last-child, .intro-copy > p, .formula-copy > p, .transparency p { color: var(--ercarin-muted); font-size: 18px; line-height: 1.75; }
.intro { border-bottom: 1px solid var(--ercarin-line); }
.intro-copy { max-width: 800px; }
.intro-copy h2 { margin-top: 0; }
.intro-copy > p { max-width: 650px; }
.text-link { display: inline-flex; align-items: center; gap: 32px; margin-top: 18px; padding-bottom: 7px; color: var(--ercarin-blue); border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 600; }

.section-heading { max-width: 920px; }
.kicker { margin: 0; color: var(--ercarin-botanical); font-family: var(--display); font-style: italic; font-size: 24px; }
.process { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--ercarin-line); }
.process li { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--ercarin-line); }
.process li > span { color: var(--ercarin-blue); font-size: 12px; letter-spacing: .13em; }
.process strong { font-size: 23px; font-weight: 500; }
.process p { margin: 4px 0 0; color: var(--ercarin-muted); }

.science { width: 100%; max-width: none; padding-left: max(24px, calc((100% - 1180px)/2)); padding-right: max(24px, calc((100% - 1180px)/2)); background: var(--ercarin-mineral); border-top: 1px solid var(--ercarin-line); border-bottom: 1px solid var(--ercarin-line); }
.science-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: var(--layout-gap); margin-top: 24px; }
.science-heading { align-self: start; position: sticky; top: 94px; }
.research-files { border-top: 1px solid var(--ercarin-deep); }
.archive-label { padding: 18px 0; color: var(--ercarin-deep); border-bottom: 1px solid var(--ercarin-line); }
details { border-bottom: 1px solid var(--ercarin-line); }
summary { min-height: 86px; display: grid; grid-template-columns: 34px minmax(0,1fr) 24px; gap: 16px; align-items: center; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { color: var(--ercarin-blue); font-size: 11px; letter-spacing: .1em; }
summary strong, summary small { display: block; }
summary strong { font-size: 17px; font-weight: 500; }
summary small { margin-top: 3px; color: var(--ercarin-muted); font-size: 12px; }
summary b { font-size: 24px; font-weight: 300; transition: transform .2s ease; }
details[open] summary b { transform: rotate(45deg); }
details > p { margin: 0; padding: 0 42px 22px 50px; color: var(--ercarin-muted); font-size: 14px; }
.report-detail { padding: 0 42px 24px 50px; }
.report-detail > p { margin: 0; color: var(--ercarin-muted); font-size: 14px; line-height: 1.7; }
.report-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.report-meta span { padding: 6px 8px; color: var(--ercarin-blue); background: #eef2ff; border: 1px solid #d6def5; font-size: 9px; line-height: 1.2; letter-spacing: .09em; font-weight: 700; }
.report-meta .verified { color: #315f3d; background: #edf6ee; border-color: #cde2d1; }
.report-pages { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-pages a { min-width: 0; padding: 8px; color: var(--ercarin-blue); background: #fff; border: 1px solid var(--ercarin-line); }
.report-pages img { width: 100%; height: 260px; display: block; object-fit: contain; object-position: center top; background: #f0f1f3; }
.report-pages span { padding: 9px 2px 2px; display: block; font-size: 9px; letter-spacing: .1em; font-weight: 700; }
.report-caveat { margin: 15px 0 0; padding-left: 12px; color: var(--ercarin-muted); border-left: 2px solid var(--ercarin-blue); font-size: 12px; line-height: 1.65; }
.file-note { margin: 22px 0 0; color: var(--ercarin-muted); font-size: 12px; line-height: 1.7; }
.report-access { margin-top: 20px; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: var(--ercarin-blue); font-size: 13px; font-weight: 600; }

.formulation { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.formulation-grid { margin-top: 42px; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(48px,8vw,110px); }
.formula-statement { padding: 36px; color: #fff; background-color: var(--ercarin-deep); background-image: radial-gradient(circle at 82% 16%, rgba(125,145,133,.34), transparent 27%), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: auto, 36px 36px, 36px 36px; }
.formula-statement .section-index { margin-bottom: 30px; color: #aebfff; }
.formula-statement > span { font-family: var(--display); font-size: 21px; font-style: italic; color: #b9c9ff; }
.formula-statement h2 { margin-bottom: 0; font-size: clamp(37px,4vw,58px); }
.formula-copy { align-self: center; }
.formula-roles { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ercarin-line); border-left: 1px solid var(--ercarin-line); }
.formula-roles span { padding: 16px; border-right: 1px solid var(--ercarin-line); border-bottom: 1px solid var(--ercarin-line); color: var(--ercarin-blue); font-size: 10px; letter-spacing: .11em; }



.observations { padding: 30px max(24px, calc((100% - 1180px)/2)) 48px; overflow: hidden; color: #fff; background-color: var(--ercarin-blue); background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 48px 48px; }
.observations .section-index { color: #aebfff; }
.observations-head { display: flex; justify-content: space-between; align-items: end; gap: 48px; }
.observations-head h1 { max-width: 820px; margin: 16px 0 0; font-size: var(--section-title); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; }
.observations-head > p { max-width: 360px; margin: 0 0 8px; color: #c5cee6; }
.archive-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(560px, 72%); gap: 18px; margin: 28px calc(max(24px, (100vw - 1180px)/2) * -1) 0; padding: 0 max(24px, calc((100vw - 1180px)/2)) 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scroll-padding-inline: max(24px, calc((100vw - 1180px)/2)); scrollbar-color: #8294cf transparent; }
.observation-card { min-width: 0; padding: 24px; color: var(--ercarin-graphite); background: #fff; scroll-snap-align: start; }
.card-meta { display: flex; justify-content: space-between; color: var(--ercarin-blue); font-size: 10px; letter-spacing: .13em; }
.observation-card h3 { margin: 12px 0 18px; font-size: 27px; line-height: 1.2; font-weight: 500; }
.card-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ercarin-line); }
.card-pair figure { min-width: 0; margin: 0; aspect-ratio: 1/1; position: relative; overflow: hidden; background: #e6e9f0; }
.card-pair picture { display: block; width: 100%; height: 100%; }
.card-pair img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-pair figure, .card-pair figure { cursor: zoom-in; }
.card-pair figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; background: rgba(255,255,255,.9); color: var(--ercarin-deep); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.observation-card > p { margin: 16px 0 0; color: var(--ercarin-muted); font-size: 14px; }
.archive-disclaimer { max-width: 820px; margin: 22px 0 0; color: #aeb8d3; font-size: 12px; line-height: 1.7; }

.transparency-grid h2 em { color: var(--ercarin-blue); font-family: var(--display); font-weight: 400; }
.transparency-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px,7vw,90px); }
.transparency-grid p { font-size: 16px; }
.transparency .story-content { padding-top: 38px; }
.transparency .story-title h2 em { color: var(--ercarin-blue); font-family: var(--display); font-weight: 400; }

.audience-paths { width: 100%; padding: var(--space-section) max(24px, calc((100% - 1180px)/2)); background: var(--ercarin-mineral); border-top: 1px solid var(--ercarin-line); }
.audience-paths header { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.55fr); gap: 20px 70px; align-items: end; }
.audience-paths header .section-index { grid-column: 1/-1; }
.audience-paths header h2 { margin-bottom: 0; }
.audience-paths header > p { margin: 0 0 8px; color: var(--ercarin-muted); font-size: 17px; line-height: 1.65; }
.path-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--ercarin-line); border-left: 1px solid var(--ercarin-line); }
.path-card { min-height: 340px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--ercarin-line); border-bottom: 1px solid var(--ercarin-line); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.path-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(21,35,95,.10); }
.path-card > span { color: var(--ercarin-blue); font-size: 11px; letter-spacing: .13em; font-weight: 700; }
.path-card h3 { margin: 36px 0 16px; color: var(--ercarin-deep); font-size: 30px; line-height: 1.1; font-weight: 500; }
.path-card p { margin: 0; color: var(--ercarin-muted); font-size: 15px; line-height: 1.7; }
.path-card b { margin-top: auto; padding-top: 32px; color: var(--ercarin-blue); font-size: 13px; font-weight: 600; }
.path-card i { float: right; font-style: normal; }
.path-card--blue { color: #fff; background: var(--ercarin-blue); border-color: var(--ercarin-blue); }
.path-card--blue > span, .path-card--blue h3, .path-card--blue b { color: #fff; }
.path-card--blue p { color: #dbe5ff; }

.gallery { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 72px minmax(0,1fr) 72px; align-items: center; padding: 26px; background: rgba(8,14,39,.96); color: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.gallery.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
body.gallery-open { overflow: hidden; }
.gallery-stage { min-width: 0; margin: 0; display: grid; justify-items: center; }
.gallery-media { width: min(78vh,760px); max-width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #11182f; box-shadow: 0 24px 70px rgba(0,0,0,.38); touch-action: none; }
.gallery-image { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transform-origin: center; transition: transform .16s ease; }
.gallery-image.is-zoomed { cursor: grab; }
.gallery-image.is-dragging { cursor: grabbing; transition: none; }
.gallery-stage figcaption { width: min(78vh,760px); max-width: 100%; padding: 14px 2px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .11em; color: #b9c5e5; }
.gallery-stage strong { color: #fff; font-size: 14px; letter-spacing: 0; text-align: center; }
.gallery-state { text-align: right; }
.gallery-close, .gallery-arrow { color: #fff; font: inherit; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.gallery-close { border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.06); }
.gallery-arrow { border: 0; background: transparent; }
.gallery-close:hover, .gallery-arrow:hover { background: rgba(255,255,255,.15); }
.gallery-close:focus-visible, .gallery-arrow:focus-visible { outline: 3px solid #75a6ff; outline-offset: 3px; }
.gallery-close { position: absolute; top: max(18px,env(safe-area-inset-top)); right: 20px; width: 48px; height: 48px; border-radius: 50%; font-size: 31px; line-height: 1; }
.gallery-arrow { width: 58px; height: 72px; border-radius: 8px; color: rgba(255,255,255,.76); font-family: Arial, sans-serif; font-size: 42px; font-weight: 200; line-height: 1; justify-self: center; }
.gallery-arrow:hover { color: #fff; }
.gallery-arrow:active { transform: scale(.94); }
.gallery-hint { position: absolute; bottom: max(16px,env(safe-area-inset-bottom)); left: 50%; margin: 0; transform: translateX(-50%); color: #98a5c7; font-size: 11px; white-space: nowrap; }

.closing { padding: var(--space-section-compact) 24px; text-align: center; color: #fff; background: var(--ercarin-blue); }
.closing .technical-label { color: #cddcff; }
.closing h2 { max-width: 850px; margin: 24px auto 14px; }
.closing > p:not(.technical-label) { margin: 0 0 32px; color: #dbe5ff; font-family: var(--sans); font-size: 22px; font-style: italic; }
.button { display: inline-flex; align-items: center; gap: 30px; padding: 15px 18px; background: #fff; color: var(--ercarin-blue); font-size: 14px; font-weight: 600; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
footer { width: var(--page); margin: 0 auto; padding: 42px 0 24px; display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; }
.footer-brand { font-size: 31px; }
footer > p, footer > a:not(.brand) { color: var(--ercarin-muted); font-size: 12px; }
footer > div { grid-column: 1/-1; display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--ercarin-line); color: var(--ercarin-muted); font-size: 10px; letter-spacing: .08em; }

@media (max-width: 820px) {
  :root { --page: calc(100% - 32px); --space-section: 64px; --space-section-compact: 56px; --layout-gap: 32px; --section-title: clamp(32px,9vw,40px); }
  html { scroll-padding-top: 64px; }
  .anchor-target { scroll-margin-top: 62px; }
  .site-header { height: 62px; padding: 0 16px; }
  .brand { font-size: 31px; }
  nav { display: none; }
  .header-link { font-size: 12px; }
  .hero { min-height: auto; padding: 18px 16px 12px; display: block; }
  .hero-intro { padding: 0 2px 6px; }
  .technical-label { font-size: 9px; }
  h1 { margin: 9px 0 5px; max-width: 100%; font-size: clamp(35px,10.4vw,44px); line-height: 1.01; letter-spacing: -.05em; }
  .hero-sub { font-size: 14px; }
  .observation-meta { min-height: 45px; padding: 0 12px; font-size: 8px; }
  .observation-meta strong { font-size: 11px; }
  .hero-pair figcaption { left: 8px; bottom: 8px; }
  .swipe-hint { padding: 9px 11px; font-size: 9px; }
  .evidence-strip { grid-template-columns: 1fr 1fr; }
  .evidence-strip div { min-height: 88px; padding: 18px; }
  .evidence-strip strong { font-size: 18px; }
  .evidence-strip span { font-size: 10px; }
  .thesis { padding: var(--space-section) 0; }
  .thesis-label { align-items: end; font-size: 9px; }
  .thesis h2 { margin: 24px 0 28px; font-size: var(--section-title); line-height: 1.08; }
  .thesis-foot { display: block; padding-top: 22px; }
  .thesis-foot p { font-size: 18px; }
  .thesis-foot .text-link { margin-top: 24px; }
  .archive-intro { padding: var(--space-section) 0 44px; display: block; }
  .archive-intro .section-index { margin-bottom: 24px; }
  .archive-intro h2 { font-size: clamp(38px,11vw,48px); }
  .archive-intro > p { margin-top: 28px; font-size: 19px; }
  .archive-chapter { padding: var(--space-section-compact) 0; }
  .archive-chapter--failure, .turning-point { display: block; }
  .archive-chapter .chapter-copy { display: contents; }
  .archive-sticky-title { position: sticky; top: 62px; z-index: 18; margin: 0 -16px 24px; padding: 12px 16px 14px; background: rgba(243,239,231,.96); border-top: 1px solid rgba(216,208,194,.82); border-bottom: 1px solid rgba(216,208,194,.92); box-shadow: 0 8px 22px rgba(64,45,28,.07); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .archive-sticky-title .chapter-number { margin: 0 0 4px; font-size: 9px; }
  .archive-sticky-title h3 { margin: 0; font-size: clamp(23px,6.5vw,28px); line-height: 1.12; letter-spacing: -.035em; }
  .archive-chapter .chapter-copy > p:not(.chapter-number) { margin-left: 0; margin-right: 0; }
  .archive-chapter--failure .raw-pair, .archive-chapter--cases .failure-grid, .turning-image { margin-top: 36px; }
  .raw-pair { gap: 8px; }
  .raw-pair figure, .failure-grid figure, .turning-image figure { padding: 6px 6px 0; }
  .raw-pair img { height: 290px; }
  .raw-pair figcaption, .failure-grid figcaption, .turning-image figcaption { min-height: 42px; padding: 10px 3px; font-size: 8px; }
  .failure-grid { margin-top: 36px; grid-template-columns: 1fr 1fr; gap: 9px; }
  .failure-grid img { height: 240px; }
  .turning-image img { max-height: none; }
  .turning-copy blockquote { font-size: 22px; }
  .archive-resolution { padding: var(--space-section-compact) 0 var(--space-section); }
  .section { padding: var(--space-section) 0; }
  .section-index { margin-bottom: 18px; font-size: 10px; }
  h2 { font-size: var(--section-title); }
  .section-heading > p:last-child, .intro-copy > p, .formula-copy > p, .transparency p { font-size: 16px; line-height: 1.7; }
  .story-section, .intro, .development, .transparency { display: block; }
  .story-title { position: sticky; top: 62px; z-index: 20; margin: 0 -16px; padding: 13px 16px 15px; color: var(--ercarin-deep); background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(207,216,236,.82); box-shadow: 0 8px 22px rgba(21,35,95,.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .story-title .section-index { margin-bottom: 5px; color: var(--ercarin-blue); }
  .story-title .kicker { display: none; }
  .story-title h2 { margin: 0; color: var(--ercarin-deep); font-size: clamp(23px,6.5vw,28px); line-height: 1.12; letter-spacing: -.035em; }
  .science .story-title { background: rgba(248,249,252,.95); }
  .formula-statement { margin: 0 -16px; padding: 14px 16px 16px; color: #fff; background-color: rgba(21,35,95,.97); }
  .formula-statement .section-index { margin-bottom: 5px; color: #aebfff; }
  .formula-statement > span { display: none; }
  .formula-statement h2 { color: #fff; font-size: clamp(23px,6.5vw,28px); }
  .transparency .story-title h2 em { color: var(--ercarin-blue); }
  .story-content { padding-top: 22px; }
  .intro-copy h2 { margin-top: 0; }
  .process { grid-column: auto; padding-top: 28px; }
  .process li { grid-template-columns: 40px minmax(0,1fr); gap: 12px; }
  .process strong { font-size: 20px; }
  .process p { font-size: 14px; }
  .report-detail { padding-right: 0; padding-left: 0; }
  .report-pages img { height: 220px; }
  .science { padding-left: 16px; padding-right: 16px; }
  .science-layout { display: block; margin-top: 0; }
  .science-heading { position: static; margin-bottom: 32px; }
  .formulation-grid { display: block; margin-top: 24px; }
  .formula-copy { padding-top: 22px; }
  .observations { padding: 18px 16px 30px; }
  .observations-head { display: block; }
  .observations-head h1 { width: 100%; max-width: none; margin-top: 14px; font-size: clamp(27px,7.8vw,34px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
  .observations-head > p { max-width: none; margin: 18px 0 0; font-size: 14px; line-height: 1.65; text-align: justify; text-align-last: left; }
  .archive-track { grid-auto-columns: calc(100vw - 32px); margin: 18px -16px 0; padding: 0 16px 18px; gap: 12px; scroll-padding-inline: 16px; }
  .observation-card { padding: 16px; }
  .observation-card h3 { font-size: 23px; }
  .transparency-grid { display: block; }
  .audience-paths { padding: var(--space-section) 16px; }
  .audience-paths header { display: block; }
  .audience-paths header h2 { margin-top: 18px; }
  .audience-paths header > p { margin-top: 20px; }
  .path-grid { margin-top: 28px; display: block; border-top: 0; }
  .path-card { min-height: 260px; border-top: 1px solid var(--ercarin-line); }
  .path-card h3 { margin-top: 28px; }
  .closing { padding: var(--space-section) 20px; }
  footer { grid-template-columns: 1fr auto; }
  footer > p { grid-column: 1/-1; margin: 0; }
  .gallery { display: block; padding: 0; }
  .gallery-stage { height: 100%; align-content: center; padding: 70px 10px 90px; }
  .gallery-media { width: min(92vw,620px); }
  .gallery-stage figcaption { width: min(92vw,620px); grid-template-columns: 1fr; gap: 2px; text-align: center; }
  .gallery-state { text-align: center; }
  .gallery-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 62px; font-size: 34px; transform: translateY(-50%); background: rgba(8,14,39,.26); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
  .gallery-arrow:active { transform: translateY(-50%) scale(.94); }
  .gallery-prev { left: 12px; }
  .gallery-next { right: 12px; }
  .gallery-close { top: max(12px,env(safe-area-inset-top)); right: 12px; }
  .gallery-hint { bottom: max(10px,env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  h1 { font-size: 37px; }
  .swipe-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .formula-roles { grid-template-columns: 1fr; }
  .raw-pair { grid-template-columns: 1fr; }
  .report-pages { grid-template-columns: 1fr; }
  .report-pages img { height: auto; max-height: 520px; }
  .raw-pair img { height: auto; max-height: 520px; }
  .failure-grid img { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Botanik Dünya: source photos and compact reading cards. */
.botanik-dunya { width:var(--page); margin:0 auto; padding:var(--space-section-compact) 0 var(--space-section); border-top:1px solid var(--ercarin-line); }
.world-heading { position:sticky; top:74px; z-index:16; padding:18px 0 20px; background:rgba(248,250,255,.97); border-bottom:1px solid var(--ercarin-line); backdrop-filter:blur(12px); }
.world-heading h2 { margin:8px 0 3px; color:var(--ercarin-deep); font-size:clamp(36px,4.7vw,60px); line-height:1.02; letter-spacing:-.045em; }
.world-heading > p:last-child { max-width:700px; margin:12px 0 0; color:var(--ercarin-muted); font-size:16px; line-height:1.6; }
.world-track { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; padding-top:26px; }
.world-card { min-width:0; align-self:start; overflow:hidden; border:1px solid var(--ercarin-line); border-radius:24px; background:#fff; box-shadow:0 12px 30px rgba(21,35,95,.07); }
.world-card > img { display:block; width:100%; aspect-ratio:1.06; object-fit:cover; }
.world-card-content { padding:18px 18px 16px; }
.world-card-number { display:block; color:var(--ercarin-nephrite); font-size:12px; font-weight:700; letter-spacing:.045em; text-transform:uppercase; }
.world-card h4 { margin:10px 0 0; color:var(--ercarin-deep); font-size:23px; line-height:1.16; letter-spacing:-.025em; }
.world-card i { display:block; margin:3px 0 14px; font-family:var(--display); color:var(--ercarin-muted); font-size:15px; }
.world-card p { margin:0; color:var(--ercarin-graphite); font-size:15px; line-height:1.55; }
.world-card details { margin-top:17px; border-top:1px solid var(--ercarin-line); }
.world-card summary { display:flex; justify-content:space-between; align-items:center; padding:12px 0 0; color:var(--ercarin-blue); font-size:14px; font-weight:700; cursor:pointer; list-style:none; }
.world-card summary::-webkit-details-marker { display:none; }
.world-card summary span { font-size:21px; font-weight:400; line-height:1; }
.world-card details[open] summary span { transform:rotate(45deg); }
.world-card details p { padding:12px 0 4px; color:var(--ercarin-muted); font-size:14px; }
.world-source { max-width:800px; margin:24px 0 0; color:var(--ercarin-muted); font-size:13px; line-height:1.55; }
@media(max-width:1000px) { .world-track { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .botanik-dunya { width:100%; padding:62px 0 78px; }.world-heading { top:62px; padding:14px 16px 16px; }.world-heading h2 { font-size:34px; }.world-heading > p:last-child { font-size:14px; }.world-track { display:grid; grid-auto-flow:column; grid-auto-columns:min(78vw,320px); grid-template-columns:none; gap:12px; padding:18px 16px 18px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-left:16px; }.world-card { scroll-snap-align:start; }.world-card > img { aspect-ratio:1.22; }.world-source { margin:16px 16px 0; font-size:12px; } }

/* Square botanical cards, matching the original card silhouette. */
.world-track { grid-template-columns:repeat(3,minmax(0,1fr)); }
.world-card { aspect-ratio:1; display:grid; grid-template-rows:54% 46%; }
.world-card > img { height:100%; aspect-ratio:auto; }
.world-card-content { min-height:0; display:flex; flex-direction:column; padding:12px 16px 10px; }
.world-card h4 { margin-top:5px; font-size:clamp(19px,2vw,23px); }
.world-card i { margin:2px 0 5px; font-size:14px; }
.world-card-content > p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:13px; line-height:1.36; }
.world-card details { margin-top:auto; }
.world-card summary { padding-top:5px; font-size:13px; }
.world-card:has(details[open]) { aspect-ratio:auto; grid-template-rows:auto auto; }
.world-card:has(details[open]) > img { height:auto; aspect-ratio:1.3; }
.world-card:has(details[open]) .world-card-content { padding-bottom:18px; }
@media(max-width:1000px) { .world-track { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .world-track { grid-template-columns:none; grid-auto-columns:min(78vw,320px); align-items:start; }.world-card { grid-template-rows:60% 40%; }.world-card-content { padding:11px 14px 8px; }.world-card-content > p { display:none; }.world-card:has(details[open]) .world-card-content > p { display:block; }.world-card h4 { font-size:20px; }.world-card > img { height:100%; aspect-ratio:auto; } }

/* Whole-card, keyboard-operable botanical dossiers. */
.world-track { padding-top:clamp(50px,6vw,78px); }
.world-card { display:block; aspect-ratio:1; }
.world-card > summary { display:grid; grid-template-rows:58% 42%; height:100%; aspect-ratio:1; padding:0; list-style:none; cursor:pointer; }
.world-card > summary::-webkit-details-marker { display:none; }
.world-card > summary > img { display:block; width:100%; height:100%; min-height:0; object-fit:cover; }
.world-card > summary .world-card-content { display:flex; flex-direction:column; min-height:0; padding:12px 16px 10px; }
.world-card > summary .world-card-number { font-size:12px; line-height:1.3; font-weight:700; color:var(--ercarin-nephrite); }
.world-card > summary .world-card-content > p { display:none; }
.world-card > summary .world-card-content i { margin-bottom:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.world-expand-cue { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-top:auto; padding-top:5px; border-top:1px solid var(--ercarin-line); color:var(--ercarin-blue); font-size:13px; line-height:1.2; font-weight:700; }
.world-expand-cue b { position:relative; top:-6px; left:-6px; font-size:20px; font-weight:400; line-height:1; }
.world-card[open] { aspect-ratio:auto; }
.world-card[open] > summary { height:auto; aspect-ratio:1; }
.world-card[open] .world-expand-cue b { transform:rotate(45deg); }
.world-card-expanded { padding:0 17px 18px; border-top:1px solid var(--ercarin-line); }
.world-card-expanded p { margin:14px 0 0; color:var(--ercarin-graphite); font-size:14px; line-height:1.65; }
@media(max-width:700px) { .world-track { padding-top:46px; align-items:start; }.world-card > summary { grid-template-rows:59% 41%; }.world-card > summary .world-card-content { padding:10px 13px 9px; }.world-card > summary h4 { margin-top:4px; font-size:clamp(17px,5vw,20px); }.world-card > summary i { font-size:13px; }.world-expand-cue { font-size:12px; }.world-card-expanded { padding:0 14px 18px; } }

/* Botanical card repair: global summary grid columns must not shrink the image. */
.world-heading { position:relative; top:auto; }
.world-track { padding-top:0; margin-top:clamp(44px,5vw,66px); }
.world-card { display:block; width:100%; height:auto; aspect-ratio:1; }
.world-card > summary.world-card-front { box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,60%) minmax(0,40%); grid-auto-flow:row; gap:0; width:100%; height:100%; padding:0; margin:0; aspect-ratio:1; border-radius:0; background:transparent; }
.world-card > summary.world-card-front > img { display:block; width:100%; min-width:0; max-width:none; height:100%; min-height:0; object-fit:cover; object-position:center; }
.world-card > summary.world-card-front > .world-card-content { box-sizing:border-box; width:100%; min-width:0; height:100%; padding:12px 16px 10px; }
.world-card > summary.world-card-front .world-expand-cue { justify-content:flex-end; }
.world-card > summary.world-card-front .world-card-number { line-height:1.2; }
.world-card[open] > summary.world-card-front { height:auto; aspect-ratio:1; }
.world-source a { text-decoration:underline; text-underline-offset:2px; }
.world-card-expanded .world-image-credit { margin-top:12px; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.world-image-credit a { color:var(--ercarin-blue); text-decoration:underline; text-underline-offset:2px; }
@media(max-width:700px) { .world-track { margin-top:38px; padding-top:0; }.world-card > summary.world-card-front { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,60%) minmax(0,40%); }.world-card > summary.world-card-front > .world-card-content { padding:10px 13px 9px; } }
