/* ==========================================================================
   ARIYAM — The Five-Year Experiment
   Editorial, cinematic, minimal. Black / charcoal / warm paper / ember accent.
   ========================================================================== */

@font-face { font-family: "Inter Tight"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/inter-tight-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
    --ink: #0b0b0c;
    --charcoal: #141518;
    --graphite: #24262b;
    --steel: #3a3d43;
    --smoke: #6f7279;
    --mist: #a9abb0;
    --line: #dcd8d0;
    --paper: #f5f2ec;
    --white: #ffffff;
    --accent: #d08a4e;       /* ember — on dark */
    --accent-ink: #9a5a24;   /* ember — text on paper (AA) */

    --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --gutter: clamp(1.5rem, 4vw, 3rem); /* >= half of Bootstrap g-5 so rows never overflow */
    --section: clamp(4.5rem, 10vw, 9rem);
    --ease: cubic-bezier(.2, .7, .1, 1);

    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-link-color-rgb: 11, 11, 12;
    --bs-link-hover-color-rgb: 154, 90, 36;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container-xxl { padding-left: var(--gutter); padding-right: var(--gutter); max-width: 1440px; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    background: var(--ink); color: var(--white); padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Type primitives ---------- */
.eyebrow {
    font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent-ink); margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--accent); }

.display-h {
    font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
    font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.5rem; text-wrap: balance;
}
.display-h--light { color: var(--white); }
.body-lg { font-size: clamp(1.075rem, 1.3vw, 1.25rem); line-height: 1.65; color: #2b2d31; max-width: 38rem; }
.fine-print { font-size: .875rem; color: var(--smoke); margin-top: 2rem; max-width: 40rem; }
.fine-print--center { margin-left: auto; margin-right: auto; text-align: center; }
.pending { color: var(--smoke); font-style: italic; font-family: var(--font-serif); }
.text-mist { color: var(--mist) !important; }

/* ---------- Links & buttons (all real links; no dead buttons) ---------- */
.btn-line {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .95rem 1.6rem; border: 1px solid var(--ink); color: var(--ink);
    font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line--light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-line--light:hover { background: var(--white); color: var(--ink); }

.link-arrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; color: var(--ink); padding: .5rem 0; border-bottom: 1px solid transparent;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover { color: var(--accent); }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "←"; transition: transform .3s var(--ease); }
.link-arrow--back:hover::before { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(245,242,236,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(11,11,12,.06); transition: background .4s var(--ease), border-color .4s var(--ease); }
.site-header .navbar { padding: 1.1rem 0; }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; color: var(--white); }
.site-header--overlay.is-scrolled { background: rgba(11,11,12,.88); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.06); }

.brand { display: inline-flex; align-items: baseline; gap: 1rem; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__mark { font-weight: 800; font-size: 1.15rem; letter-spacing: .32em; }
.brand__sub { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }

.site-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.25rem; }
.site-nav a {
    font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none; color: inherit; opacity: .75; padding: .4rem 0; position: relative;
}
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .35s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { opacity: 1; color: inherit; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }

.nav-toggle { background: none; border: 0; padding: .5rem; width: 2.75rem; height: 2.75rem; display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; color: inherit; }
.nav-toggle__bar { display: block; height: 1.5px; width: 100%; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .site-nav { flex-direction: column; gap: 0; padding: 1.5rem 0 1rem; }
    .site-nav a { display: block; padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid rgba(127,127,127,.18); }
    .site-nav a::after { display: none; }
    .site-header--overlay .navbar-collapse.show,
    .site-header--overlay .navbar-collapse.collapsing { background: transparent; }
    .site-header--overlay:has(.navbar-collapse.show), .site-header--overlay:has(.navbar-collapse.collapsing) { background: rgba(11,11,12,.96); }
}

/* ---------- Image placeholders ---------- */
.site-img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--graphite); }
.img-placeholder {
    position: relative; display: flex; align-items: flex-end; width: 100%; overflow: hidden;
    color: var(--mist);
    background:
        radial-gradient(120% 90% at 70% 20%, rgba(208,138,78,.16), transparent 55%),
        radial-gradient(80% 80% at 10% 100%, rgba(255,255,255,.05), transparent 60%),
        linear-gradient(160deg, #2a2c31 0%, #17181b 55%, #0e0e10 100%);
}
.img-placeholder::before {
    /* subtle film grain */
    content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.img-placeholder::after {
    content: ""; position: absolute; inset: 1rem; border: 1px dashed rgba(255,255,255,.14); pointer-events: none;
}
.img-placeholder__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem; max-width: 34rem; }
.img-placeholder__tag { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.img-placeholder__label { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: #d6d6d9; line-height: 1.4; }
.img-placeholder__file { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: var(--smoke); word-break: break-all; }

.ratio-21x9 { aspect-ratio: 21 / 9; } .ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-1x1 { aspect-ratio: 1; } .ratio-4x5 { aspect-ratio: 4 / 5; } .ratio-3x4 { aspect-ratio: 3 / 4; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media > .site-img, .hero__media > .img-placeholder { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 60% 30%; animation: hero-zoom 14s var(--ease) both; }
.hero__media > .img-placeholder { align-items: flex-start; justify-content: flex-end; }
.hero__media > .img-placeholder .img-placeholder__inner { margin-top: 6.5rem; margin-right: var(--gutter); text-align: right; align-items: flex-end; opacity: .85; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.05) 35%, rgba(11,11,12,.35) 62%, rgba(11,11,12,.92) 100%); }
.hero__content { padding-bottom: clamp(5rem, 10vh, 8rem); padding-top: 9rem; }
.hero__title {
    font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .86;
    font-size: clamp(3.6rem, 13vw, 11.5rem); margin: 0 0 2rem; max-width: 12ch;
    animation: rise 1.2s .15s var(--ease) both;
}
.hero__eyebrow { animation: rise 1s 0s var(--ease) both; }
.hero__lede { font-family: var(--font-serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; max-width: 36rem; color: rgba(255,255,255,.86); margin-bottom: 2.5rem; animation: rise 1.2s .35s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; animation: rise 1.2s .5s var(--ease) both; }
.hero__meta { display: flex; gap: 2.5rem; padding-bottom: 1.75rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; }
@media (max-width: 575.98px) { .hero__meta { gap: 1.25rem; font-size: .62rem; } }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Sections & bands ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0 var(--section); }
.section--rule { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__text { margin-top: -.25rem; }
.band { padding: var(--section) 0; }
.band--dark { background: var(--ink); color: var(--white); }
.band--charcoal { background: var(--charcoal); color: var(--white); }

/* Central question */
.question { margin: 0 auto; max-width: 62rem; text-align: center; }
.question p { font-family: var(--font-serif); font-size: clamp(1.75rem, 4.2vw, 3.4rem); line-height: 1.22; letter-spacing: -.01em; margin: 0 0 2rem; text-wrap: balance; }
.question p::before { content: "“"; color: var(--accent); }
.question p::after { content: "”"; color: var(--accent); }
.question footer { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }

/* Principles */
.principles { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--accent-ink); padding-top: .3rem; }
.principles h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .3rem; }
.principles p { margin: 0; color: #4a4c52; }

/* ---------- Clock ---------- */
.clock__head { margin-bottom: 3rem; }
.clock__sub { color: var(--mist); font-size: 1rem; margin: -.5rem 0 0; }
.clock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0 0 2.5rem; }
.clock__grid > div { border-top: 1px solid var(--steel); padding-top: 1.25rem; }
.clock__grid dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); font-weight: 600; margin-bottom: .5rem; }
.clock__grid dd { margin: 0; font-weight: 800; letter-spacing: -.03em; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--white); }
.clock__grid dd small { font-size: .35em; font-weight: 600; letter-spacing: .05em; color: var(--mist); margin-left: .35rem; }
.clock__bar { height: 3px; background: var(--steel); position: relative; overflow: hidden; }
.clock__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 1.6s var(--ease); }
.clock__ticks { display: flex; justify-content: space-between; margin-top: .9rem; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); }
@media (max-width: 575.98px) { .clock__grid { grid-template-columns: 1fr 1fr; } .clock__grid > div:last-child { grid-column: span 2; } }

/* ---------- Starting stats (sized to their container, wherever they're placed) ---------- */
.stats-wrap { container-type: inline-size; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.stats__item { padding: 1.75rem 1.25rem 0 0; min-width: 0; }
.stats__item + .stats__item { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.stats dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); margin-bottom: .75rem; }
.stats__note { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; font-family: var(--font-serif); font-size: .85rem; }
.stats dd { margin: 0; font-weight: 800; letter-spacing: -.04em; font-size: clamp(2.4rem, 7.5cqi, 5.25rem); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dd small { font-size: .3em; font-weight: 600; letter-spacing: .04em; margin-left: .3rem; color: var(--smoke); }
.stats__approx { color: var(--accent-ink); font-weight: 400; margin-right: .1em; }
@container (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats dd { font-size: clamp(2.4rem, 15cqi, 4.5rem); }
    .stats__item { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line); }
    .stats__item + .stats__item { border-left: 0; padding-left: 0; }
    .stats__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1rem; }
}

/* ---------- Photo tiles ---------- */
.photo-tile { margin: 0; position: relative; overflow: hidden; background: var(--ink); }
.photo-tile > .site-img, .photo-tile > .img-placeholder { transition: transform 1.2s var(--ease); }
.photo-tile:hover > .site-img, .photo-tile:hover > .img-placeholder { transform: scale(1.025); }
.photo-tile > .img-placeholder { align-items: flex-start; }
.photo-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.75rem 1.5rem; background: linear-gradient(transparent, rgba(11,11,12,.9)); color: var(--white); display: flex; flex-direction: column; gap: .3rem; }
.photo-tile__title { font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; text-transform: uppercase; }
.photo-tile__empty { font-family: var(--font-serif); font-style: italic; color: rgba(255,255,255,.75); }

/* ---------- Teasers ---------- */
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); margin-bottom: 1rem; }
.meta-line a { text-decoration: none; color: var(--accent-ink); font-weight: 600; }
.teaser__title { font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.08; margin-bottom: 1rem; text-wrap: balance; }
.teaser__title a { text-decoration: none; }
.teaser__title--sm { font-size: 1.5rem; }
.teaser__summary { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55; color: #3a3c41; max-width: 34rem; }
.tag-pill { display: inline-block; padding: .2rem .55rem; border: 1px solid var(--accent-ink); color: var(--accent-ink); font-weight: 600; font-size: .66rem; letter-spacing: .16em; }

/* ---------- Video ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-soon { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; color: var(--white); }
.video-soon__frame {
    position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(90% 70% at 60% 35%, rgba(208,138,78,.18), transparent 60%), linear-gradient(160deg, #24262b, #0e0e10);
    border: 1px solid rgba(255,255,255,.08);
}
.video-soon__frame::before, .video-soon__frame::after { content: ""; position: absolute; width: 1.75rem; height: 1.75rem; border: 1.5px solid rgba(255,255,255,.35); }
.video-soon__frame::before { top: 1.25rem; left: 1.25rem; border-right: 0; border-bottom: 0; }
.video-soon__frame::after { bottom: 1.25rem; right: 1.25rem; border-left: 0; border-top: 0; }
.video-soon__play { width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); position: relative; animation: pulse 3.2s ease-in-out infinite; }
.video-soon__play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .8rem 0 .8rem 1.3rem; border-color: transparent transparent transparent rgba(255,255,255,.85); }
.video-soon__rec { position: absolute; top: 1.35rem; right: 1.6rem; font-size: .68rem; letter-spacing: .22em; color: var(--mist); display: flex; align-items: center; gap: .5rem; }
.video-soon__rec::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(2, start) infinite; }
.video-soon__badge { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: .3rem .7rem; margin-bottom: 1.5rem; }
.video-soon__title { font-weight: 800; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 1.75rem; }
.video-soon__planned-h { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); margin-bottom: .5rem; }
.video-soon__planned { list-style: none; padding: 0; margin: 0 0 2rem; }
.video-soon__planned li { padding: .75rem 0; border-top: 1px solid var(--steel); font-family: var(--font-serif); font-size: 1.1rem; color: #d9d9dc; }
.video-soon__actions { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.video-soon--compact { display: block; background: var(--ink); padding: 2.5rem; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; }
.video-soon--compact .video-soon__badge { align-self: flex-start; }
.video-soon--compact .video-soon__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
@media (max-width: 991.98px) { .video-soon { grid-template-columns: 1fr; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(208,138,78,.0); } 50% { box-shadow: 0 0 0 14px rgba(208,138,78,.12); } }
@keyframes blink { to { visibility: hidden; } }
.section--dark-tail { background: var(--ink); padding-top: 0; }

/* ---------- Timeline strip (home) ---------- */
.timeline-strip { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline-strip::before { content: ""; position: absolute; left: 0; right: 0; top: .35rem; height: 1px; background: var(--steel); }
.timeline-strip li { position: relative; padding: 2rem 1rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.timeline-strip li::before { content: ""; position: absolute; top: 0; left: 0; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--accent); }
.timeline-strip li:first-child::before, .timeline-strip li:last-child::before { background: var(--accent); }
.timeline-strip__label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.timeline-strip__title { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
@media (max-width: 991.98px) {
    .timeline-strip { grid-template-columns: 1fr; }
    .timeline-strip::before { left: .35rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
    .timeline-strip li { padding: 0 0 1.75rem 2.25rem; }
    .timeline-strip li::before { top: .2rem; }
}

/* ---------- Full timeline (experiment) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 56rem; }
.timeline::before { content: ""; position: absolute; left: .4rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--steel); }
.timeline__item { position: relative; padding: 0 0 3.25rem 3rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker { position: absolute; left: 0; top: .3rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--accent); }
.timeline__item:first-child .timeline__marker, .timeline__item:last-child .timeline__marker { background: var(--accent); }
.timeline__label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; font-weight: 600; }
.timeline__title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.025em; margin-bottom: .6rem; }
.timeline__text { color: #c9cacd; max-width: 36rem; font-size: 1.075rem; }
.timeline__checks { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.timeline__checks li { font-size: .78rem; letter-spacing: .04em; color: var(--mist); border: 1px solid var(--steel); padding: .35rem .7rem; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(5rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem); }
.page-head__title { font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; font-size: clamp(3rem, 9vw, 8rem); margin-bottom: 2rem; animation: rise 1s var(--ease) both; }
.page-head__lede { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.45; max-width: 44rem; color: #3a3c41; animation: rise 1s .15s var(--ease) both; }
.page-head--dark { background: var(--ink); color: var(--white); }
.page-head--dark .page-head__lede { color: rgba(255,255,255,.78); }
.page-head--error { min-height: 70vh; display: flex; align-items: center; }
.page-wide-img { margin-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- Story ---------- */
.story .container-xxl { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
.story__toc { position: sticky; top: 7rem; align-self: start; }
.story__toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; border-left: 1px solid var(--line); }
.story__toc li { counter-increment: t; }
.story__toc a { display: block; padding: .5rem 0 .5rem 1.25rem; font-size: .875rem; color: var(--smoke); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; transition: color .2s, border-color .2s; }
.story__toc a::before { content: counter(t, decimal-leading-zero) "  "; font-size: .72rem; color: var(--accent-ink); white-space: pre; }
.story__toc a:hover, .story__toc a.is-current { color: var(--ink); border-left-color: var(--accent); }
.story__body { max-width: 44rem; padding-bottom: var(--section); }
.story__section { padding: 0 0 4.5rem; scroll-margin-top: 7rem; }
.story__num { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--accent-ink); margin-bottom: .75rem; }
.story__section h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.pull-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; margin: 2.5rem 0 0; padding-left: 1.5rem; border-left: 2px solid var(--accent); color: var(--ink); }
.draft-note { font-family: var(--font-serif); font-style: italic; color: var(--smoke); border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (max-width: 991.98px) { .story .container-xxl { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Prose ---------- */
.prose { font-family: var(--font-serif); font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.75; color: #232428; }
.prose p { margin-bottom: 1.4em; }
.prose h2 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.4em 0 .8em; line-height: 1.1; }
.prose h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.3rem; margin: 2em 0 .6em; }
.prose blockquote { margin: 2em 0; padding: .25em 0 .25em 1.5rem; border-left: 2px solid var(--accent); font-size: 1.3em; line-height: 1.45; font-style: italic; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: 1.5em; }
.prose li { margin-bottom: .55em; padding-left: .25em; }
.prose li::marker { color: var(--accent-ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--accent-ink); }
.prose img { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

/* ---------- Experiment goals ---------- */
.goal-areas { display: grid; gap: 0; }
.goal-area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.goal-area:last-child { border-bottom: 1px solid var(--line); }
.goal-area__num { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--accent-ink); margin-bottom: .5rem; }
.goal-area__head h3 { font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .75rem; }
.goal-area__head p { color: #4a4c52; max-width: 28rem; margin: 0; }
.goal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.goal-table thead th { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); padding: 0 1rem .75rem 0; border-bottom: 1px solid var(--ink); text-align: left; }
.goal-table tbody th, .goal-table td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.goal-table tbody th { font-weight: 600; width: 40%; }
.goal-table tbody tr:last-child th, .goal-table tbody tr:last-child td { border-bottom: 0; }
.goal-table__note { display: block; font-weight: 400; font-size: .85rem; color: var(--smoke); margin-top: .25rem; }
.goal-table strong { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
@media (max-width: 991.98px) { .goal-area { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .goal-table thead { display: none; }
    .goal-table tbody tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
    .goal-table tbody th, .goal-table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .3rem 0; width: auto; }
    .goal-table td::before { content: attr(data-label); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); padding-top: .2rem; }
    .goal-table tbody th { display: block; margin-bottom: .4rem; }
}

/* ---------- Progress dashboard ---------- */
.dash { background: var(--ink); color: var(--white); padding: 0 0 var(--section); }
.dash__status { background: var(--charcoal); padding: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,.06); }
.panel { position: relative; height: 100%; justify-content: flex-start; background: var(--charcoal); border: 1px solid rgba(255,255,255,.06); padding: 1.75rem; display: flex; flex-direction: column; min-height: 22rem; overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.panel__title { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; margin: 0; }
.panel__state { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); white-space: nowrap; }
.panel__plot { position: relative; flex: 0 0 auto; height: 7.5rem; margin: .5rem 0 1.5rem; }
.panel--wide .panel__plot { height: 10rem; }
.panel__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 100% 25%, 12.5% 100%;
    border-left: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 6%, rgba(0,0,0,.25) 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 6%, rgba(0,0,0,.25) 100%);
}
.panel__plot::after { /* the origin: where the line will start */
    content: ""; position: absolute; left: -5px; bottom: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 6px rgba(208,138,78,.15); animation: pulse 3.2s ease-in-out infinite;
}
.panel__empty-h { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; margin: 0 0 .35rem; color: var(--white); }
.panel__empty-t { color: var(--mist); margin: 0; font-size: .95rem; max-width: 32rem; }
.panel__known { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--steel); }
.panel__known dt { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); font-weight: 600; margin-bottom: .3rem; }
.panel__known dd { margin: 0; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; }
.panel__known dd.pending { font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--mist); padding-top: .5rem; }
.panel--wide { min-height: 26rem; }
@media (max-width: 575.98px) { .panel__known { grid-template-columns: 1fr; } }
.dash .fine-print { color: var(--smoke); }

/* ---------- Journal ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature__media { display: block; overflow: hidden; }
.feature__media > * { transition: transform 1.2s var(--ease); }
.feature__media:hover > * { transform: scale(1.02); }
.feature__title { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(2.2rem, 4.5vw, 3.75rem); margin-bottom: 1.25rem; text-wrap: balance; }
.feature__title a { text-decoration: none; }
.feature__summary { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.55; color: #3a3c41; margin-bottom: 1.5rem; }
@media (max-width: 991.98px) { .feature { grid-template-columns: 1fr; } }

.list-h { font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--smoke); margin: 5rem 0 1rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { display: grid; grid-template-columns: 8rem 1fr auto; gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.post-list time { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); }
.post-list h3 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .35rem; }
.post-list h3 a { text-decoration: none; }
.post-list p { margin: 0; color: #4a4c52; }
.post-list__cat { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 767.98px) { .post-list li { grid-template-columns: 1fr; gap: .4rem; } }

.empty-block { padding: 4rem 0; border-top: 1px solid var(--ink); }
.empty-block__h { font-weight: 800; font-size: 2rem; letter-spacing: -.02em; margin-bottom: .5rem; }

.post__head { padding: clamp(4rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.post__head .container-xxl { max-width: 60rem; }
.post__title { font-weight: 800; letter-spacing: -.035em; line-height: .98; font-size: clamp(2.6rem, 7vw, 5.75rem); margin-bottom: 1.75rem; text-wrap: balance; animation: rise 1s var(--ease) both; }
.post__lede { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; color: #3a3c41; margin-bottom: 1.75rem; }
.post__hero { margin-bottom: clamp(3rem, 6vw, 5rem); }
.post__body { max-width: 42rem; margin: 0 auto; }
.post__tags { list-style: none; padding: 2rem 0 0; margin: 3rem auto 0; max-width: 42rem; display: flex; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--line); }
.post__tags li { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); border: 1px solid var(--line); padding: .3rem .7rem; }
.post__foot { max-width: 42rem; margin: 3rem auto var(--section); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Next band / follow ---------- */
.next-band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.next-band__link { display: inline-flex; gap: 1rem; align-items: baseline; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1; color: var(--white); text-decoration: none; }
.next-band__link span { color: var(--accent); transition: transform .4s var(--ease); }
.next-band__link:hover { color: var(--white); }
.next-band__link:hover span { transform: translateX(10px); }
.follow__text { margin: 0 auto 2.25rem; }
.follow__actions { display: flex; justify-content: center; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; }
.follow .eyebrow { justify-content: center; }
.follow .eyebrow::after { content: ""; width: 2rem; height: 1px; background: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding: 5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.brand--footer { color: var(--white); margin-bottom: 1.25rem; }
.brand--footer:hover { color: var(--white); }
.site-footer__tag { font-family: var(--font-serif); font-size: 1.25rem; color: #e5e5e7; max-width: 24rem; }
.site-footer__fine { font-size: .85rem; color: var(--smoke); max-width: 24rem; }
.site-footer__h { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--smoke); margin-bottom: 1.25rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: .6rem; }
.site-footer__links a { color: #d6d6d9; text-decoration: none; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--graphite); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .next-band, .img-placeholder { display: none !important; }
    body { background: #fff; }
}

/* ---------- Live progress charts (Phase 2) ---------- */
.range { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--steel); margin: 0 0 1.5rem; flex-wrap: wrap; }
.range__opt { padding: .5rem 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-decoration: none; }
.range__opt:hover { color: var(--white); }
.range__opt.is-active { background: var(--white); color: var(--ink); }
.chart { position: relative; height: 15rem; margin: .5rem 0 1rem; }
.panel--wide .chart { height: 18rem; }
.chart--sm { height: 9rem; margin-bottom: .75rem; }
.chart-multi + .chart-multi { border-top: 1px solid var(--steel); padding-top: .75rem; }
.chart-multi__h { font-weight: 600; margin: 0; color: var(--white); }
.chart-multi__h span { color: var(--smoke); font-weight: 400; font-size: .85rem; margin-left: .35rem; }
.panel__note { color: var(--mist); font-size: .875rem; margin: 0; }
.panel__list { list-style: none; padding: 0; margin: 0; }
.panel__list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .8rem 0; border-top: 1px solid var(--steel); }
.panel__list li:first-child { border-top: 0; }
.panel__list strong { font-weight: 800; text-align: right; }
.panel__list time { grid-column: 1 / -1; font-size: .8rem; color: var(--smoke); }
.chart-table { margin-top: .25rem; font-size: .85rem; color: var(--mist); }
.chart-table summary { cursor: pointer; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.chart-table table { width: 100%; margin-top: .75rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: .35rem 0; border-bottom: 1px solid var(--graphite); text-align: left; }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; }
.dash-photos { margin-top: 1.5rem; background: var(--charcoal); border: 1px solid rgba(255,255,255,.06); padding: 1.75rem; }
.dash-photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.dash-photos figure { margin: 0; }
.dash-photos img { width: 100%; height: auto; display: block; background: var(--graphite); }
.dash-photos figcaption { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); margin-top: .4rem; }
