/* =========================================================================
   Matt Bowd — Field Station theme
   One hand-written stylesheet, no build step. Sections:
   1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Type · 6 Buttons & links
   7 Header & menu · 8 Home: stage/hero/statement · 9 Explore cards
   10 In the Field · 11 The Desk · 12 What Emerged · 13 Brief
   14 Currently · 15 Subscribe · 16 Footer · 17 Post cards & grids
   18 Article & page · 19 Ghost content (Koenig) · 20 Archive headers
   21 About · 22 Field collections · 23 Members pages · 24 Legacy pages
   25 Error · 26 Motion states · 27 Utilities
   ========================================================================= */

/* 1 Fonts: the @font-face rules live in partials/font-faces.hbs (inline in <head>), so their addresses carry the same
   ?v= version as the preload links and each font downloads once. Newsreader (normal and italic) and
   Hanken Grotesk, self-hosted in assets/fonts/. */

/* 2 Tokens */
:root {
    /* Colour: Matt Bowd's charcoal, sand, rust and olive, set on a near-white page */
    --paper: #fbfaf7;
    --tint: #f2efe8;
    --sand: #e5dcc9;
    --sand-2: #d9cdb3;
    --ink: #232320;
    --body: #55554e;
    --muted: #6b6a61;        /* 5.2:1 on paper, 4.7:1 on tint */
    --line: rgba(35, 35, 32, 0.14);
    --rust: #b66c3e;            /* large type only (3:1+) */
    --rust-strong: #96512c;     /* small text and fills (5:1+ with white) */
    --olive: #9a9b81;
    --olive-deep: #686a52;
    --night: #191a17;
    --night-2: #24251f;
    --on-night: #ece6d8;
    --on-night-muted: rgba(236, 230, 216, 0.68);
    --line-night: rgba(236, 230, 216, 0.16);
    --focus: #b66c3e;

    /* Type */
    --font-serif: var(--gh-font-heading, "Newsreader"), "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-sans: var(--gh-font-body, "Hanken Grotesk"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-hero: clamp(3.25rem, 0.6rem + 9vw, 8.5rem);
    --fs-display: clamp(3rem, 0.4rem + 8.6vw, 8.5rem);
    --fs-title: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);
    --fs-h2: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem);
    --fs-card: clamp(1.75rem, 1.3rem + 1vw, 2.25rem);
    --fs-h3: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);
    --fs-lead: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-label: 0.75rem;

    /* Space and layout */
    --gutter: clamp(1rem, 4.4vw, 4rem);
    --max: 100rem;
    --section: clamp(6rem, 4rem + 6vw, 10rem);
    --radius-s: 6px;
    --radius-m: 14px;
    --header-h: 79px;

    /* Motion */
    --ease: cubic-bezier(0.44, 0, 0.56, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-s: 0.3s;
    --dur-m: 0.6s;
    --dur-l: 1s;
    --dur-nav: 0.55s;
    --ease-nav: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 3 Base */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.7;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 400; }
p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--sand); color: var(--ink); }
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 2px;
}
.on-night :focus-visible, [data-tone="dark"] :focus-visible { outline-color: var(--sand); }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    border-radius: 999px;
    transform: translateY(-160%);
    transition: transform var(--dur-s) var(--ease);
}
.skip-link:focus { transform: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* 4 Layout */
.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.on-night { background: var(--night); color: var(--on-night-muted); }
.on-night h1, .on-night h2, .on-night h3, .on-night h4 { color: var(--on-night); }
.on-tint { background: var(--tint); }

/* 5 Type */
.t-hero, .t-display, .t-title, .t-card {
    font-family: var(--font-serif);
    font-weight: 380;
    color: var(--ink);
    text-wrap: balance;
}
.t-hero { font-size: var(--fs-hero); line-height: 0.88; letter-spacing: -0.04em; }
.t-display { font-size: var(--fs-display); line-height: 0.88; letter-spacing: -0.04em; }
.t-title { font-size: var(--fs-title); line-height: 1; letter-spacing: -0.03em; }
.t-card { font-size: var(--fs-card); line-height: 1.02; letter-spacing: -0.025em; }
.t-h2 {
    font-family: var(--font-sans);
    font-size: var(--fs-h2);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.035em;
    color: var(--ink);
    text-wrap: balance;
}
.t-h3 {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-weight: 420;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.t-lead {
    font-size: var(--fs-lead);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: pretty;
}
.t-small { font-size: var(--fs-small); line-height: 1.8; }
.t-label {
    font-family: var(--font-sans);
    font-size: var(--fs-label);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.accent { color: var(--rust); }
.on-night .accent, [data-tone="dark"] .accent { color: #d29a72; }
.muted { color: var(--muted); }
.measure { max-width: 30rem; }
.measure-wide { max-width: 40rem; }
.prose p + p { margin-top: 1em; }

/* 6 Buttons & links */
.btn {
    --btn-bg: var(--rust-strong);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 1px 48px 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-sans);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: background var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
    touch-action: manipulation;
}
.btn__label { display: block; transition: transform var(--dur-s) var(--ease); will-change: transform; }
.btn__dot {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: currentColor;
}
/* Inside buttons the dot rides a track from its rest point (right) to just before the label (left).
   Only transform animates, so the move stays on the compositor and doesn't stutter. */
.btn .btn__dot {
    left: calc(var(--pad-l, 24px) - 2px);
    right: var(--dot-r, 22px);
    width: auto;
    background: none;
    border-radius: 0;
    pointer-events: none;
}
.btn .btn__dot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle closest-side, currentColor 92%, transparent) no-repeat right center / 5px 5px;
    transition: transform var(--dur-nav) var(--ease-nav);
}
.btn__label { transition-duration: var(--dur-nav); transition-timing-function: var(--ease-nav); }
@media (hover: hover) {
    .btn:hover .btn__label { transform: translateX(var(--pad-l, 24px)); }
    .btn:hover .btn__dot::before { transform: translateX(calc(-100% + 5px)); }
}
.btn:active { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.08); }
.btn--sand { --btn-bg: var(--sand); --btn-fg: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--line { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    position: relative;
    text-decoration: none;
    min-height: 44px;
    transition: color 0.4s var(--ease);
}
.link::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

/* 6b GLOBAL LINK LINE: the one hover for every text link on the site, taken from the header navigation.
   A 2px line in the link's own colour draws in from the left on hover or keyboard focus and leaves to the right.
   Timing: --dur-nav / --ease-nav. Two forms of the same line:
     - single-line labels (.link, navigation, footer): an ::after bar;
     - text that can wrap (titles, names, links in writing): a background line that follows every line of text.
   To give a new link the line, add the class "line-link" (or put it on the text span inside a larger link). */
.link::after {
    content: "";
    position: absolute;
    left: 15px;                 /* after the dot */
    right: 0.11em;              /* trailing letter-spacing */
    bottom: 10px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--dur-nav) var(--ease-nav);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.menu-sheet nav a { position: relative; }
.menu-sheet nav a::after {
    content: ""; position: absolute; left: 16px; right: calc(16px + 0.11em); bottom: 6px; height: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: right center;
    transition: transform var(--dur-nav) var(--ease-nav);
}
.menu-sheet nav a:hover::after, .menu-sheet nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.line-link,
.post-card__title a,
.post-card__author,
.field-card__title,
.brief__title a,
.week-list a > span:first-child,
.article-head__tags a,
.article-meta__author .line-link,
.content-cta p a,
.member-hero__switch a,
.tag-faq__a a,
.gh-content a:not([class]) {
    text-decoration: none;
    padding-bottom: 0.06em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 2px;
    transition: background-size var(--dur-nav) var(--ease-nav), color 0.4s var(--ease);
}
@media (hover: hover) {
    a.line-link:hover, a:hover > .line-link, a:hover .line-link,
    .post-card__title a:hover, .post-card__author:hover,
    .field-card__link:hover .field-card__title,
    .brief__title a:hover, .week-list a:hover > span:first-child,
    .article-head__tags a:hover,
    .content-cta p a:hover, .member-hero__switch a:hover, .tag-faq__a a:hover,
    .gh-content a:not([class]):hover { background-size: 100% 2px; background-position: left bottom; }
}
a.line-link:focus-visible, a:focus-visible .line-link,
.post-card__title a:focus-visible, .post-card__author:focus-visible,
.field-card__link:focus-visible .field-card__title,
.brief__title a:focus-visible, .week-list a:focus-visible > span:first-child,
.article-head__tags a:focus-visible,
.content-cta p a:focus-visible, .member-hero__switch a:focus-visible, .tag-faq__a a:focus-visible,
.gh-content a:not([class]):focus-visible { background-size: 100% 2px; background-position: left bottom; }
/* Links inside writing: bold and rust, with no resting underline; the site's 2px line draws in on hover and focus. */
.gh-content a:not([class]) { color: var(--rust-strong); font-weight: 650; }
/* Text underlined in the editor (<u>) inside a link would draw a second line under it: the hover line is the only one. */
.gh-content a u, .post-lead__words a u { text-decoration: none; }

/* 7 Header & menu */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    color: var(--ink);
    transition: color 0.4s var(--ease), transform 0.5s var(--ease-out);
    pointer-events: none;
}
.site-header.is-on-dark { color: var(--on-night); }
/* Glass bar: clear at the very top of the page, frosted once the page scrolls under it.
   Light glass over paper sections, dark glass over dark ones (follows the header tone). */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(251, 250, 247, 0.62);
    box-shadow: inset 0 -1px 0 rgba(35, 35, 32, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    opacity: 0;
    transition: opacity 0.45s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-on-dark::before {
    background: rgba(25, 26, 23, 0.46);
    box-shadow: inset 0 -1px 0 rgba(236, 230, 216, 0.1);
}
.site-header.is-scrolled::before { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header::before { background: rgba(251, 250, 247, 0.94); }
    .site-header.is-on-dark::before { background: rgba(25, 26, 23, 0.9); }
}
.site-header__inner { position: relative; }
.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    pointer-events: auto;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    text-decoration: none;
    min-height: 44px;
}
.site-header__brand img {
    width: auto;
    height: clamp(19px, 0.35vw + 17px, 22px); /* logo height: 19px on phones, up to 22px on wide screens */
    max-width: 44vw;
    object-fit: contain;
    object-position: left center;
    transition: filter 0.4s var(--ease);
}
.site-header.is-on-dark .site-header__brand img,
.menu-sheet .site-header__brand img.is-light { filter: invert(1) sepia(0.25) brightness(1.1); }
/* Hover: the signature writes itself again, left to right, like a pen stroke.
   A soft-edged mask sweeps from hidden to shown; it plays once each time the pointer arrives. */
@keyframes brand-sign {
    0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    100% { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
/* Logo image: same as the footer logo, the signature writes itself again left to right in rust
   (a rust layer masked by the logo itself, --logo set inline in partials/brand.hbs). */
.brand-mark { position: relative; display: block; line-height: 0; }
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #b5683c;
    -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat, var(--logo) 0 0 / 100% 100% no-repeat;
    mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat, var(--logo) 0 0 / 100% 100% no-repeat;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    pointer-events: none;
}
.site-header.is-on-dark .brand-mark::after, .member-hero__top .brand-mark::after { background: #d08a5c; }
.brand-mark img { transition: filter 0.4s var(--ease), opacity 0.5s var(--ease); }
@media (hover: hover) {
    .site-header__brand:hover .brand-mark::after { animation: footer-sign 0.95s cubic-bezier(0.45, 0.05, 0.3, 1) both; }
    .site-header__brand:hover .brand-mark img { opacity: 0; transition-delay: 0.35s; }
}
.site-header__brand:focus-visible .brand-mark::after { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
.site-header__brand:focus-visible .brand-mark img { opacity: 0; }
@media (hover: hover) {
    .site-header__brand:hover .brand-text {
        -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
        mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
        -webkit-mask-size: 220% 100%;
        mask-size: 220% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        animation: brand-sign 0.95s cubic-bezier(0.45, 0.05, 0.3, 1) both;
    }
}
.site-header__brand .brand-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}
.site-nav { display: flex; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    position: relative;
    text-decoration: none;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0.11em; /* trailing letter-spacing */
    bottom: 10px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--dur-nav) var(--ease-nav);
}
.site-nav a { transition: color 0.4s var(--ease); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
/* Current page: shown by colour, not a line. A lighter rust on dark sections keeps it readable (4.5:1+). */
.site-nav .nav-current a { color: var(--rust-strong); }
.site-header.is-on-dark .site-nav .nav-current a { color: #d08a5c; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    transition: background var(--dur-s) var(--ease);
}
.icon-btn:hover { background: rgba(127, 127, 120, 0.14); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn i { font-size: 16px; line-height: 1; }
.site-header .menu-toggle { display: none; }
.site-header .btn { min-height: 40px; }
.site-header.is-on-dark .btn--ink { --btn-bg: var(--sand); --btn-fg: var(--ink); }

@media (max-width: 1099px) {
    .site-nav, .site-header__actions .header-cta { display: none; }
    .site-header .menu-toggle { display: inline-flex; }
}

/* Phone and tablet menu. Opening: the sheet wipes down over the page from the top, then the links rise out of a
   blur one after another, the buttons last. Closing: everything fades back into a blur together, then the sheet
   wipes back up. site.js 8 hides it once the close has finished (MENU_CLOSE_MS there matches these timings). */
.menu-sheet {
    --wipe: cubic-bezier(0.76, 0, 0.24, 1);
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--wipe) 0.22s, visibility 0s linear 0.72s;
    visibility: hidden;
    overflow-y: auto;
}
.menu-sheet.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.6s var(--wipe), visibility 0s;
}
.menu-sheet__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu-sheet nav { flex: 1; display: grid; place-content: center; padding-block: 32px; }
.menu-sheet nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu-sheet nav li,
.menu-sheet__foot {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
    transition: opacity 0.22s ease-in, filter 0.22s ease-in, transform 0.22s ease-in; /* closing: all together, quickly */
}
.menu-sheet nav a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--dur-s) var(--ease);
}
.menu-sheet nav .nav-current a { color: var(--rust-strong); }
.menu-sheet.is-open nav li,
.menu-sheet.is-open .menu-sheet__foot {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
/* Opening: once the wipe has nearly covered the page, one link after another. */
.menu-sheet.is-open nav li:nth-child(1) { transition-delay: 0.42s; }
.menu-sheet.is-open nav li:nth-child(2) { transition-delay: 0.5s; }
.menu-sheet.is-open nav li:nth-child(3) { transition-delay: 0.58s; }
.menu-sheet.is-open nav li:nth-child(4) { transition-delay: 0.66s; }
.menu-sheet.is-open nav li:nth-child(5) { transition-delay: 0.74s; }
.menu-sheet.is-open nav li:nth-child(6) { transition-delay: 0.82s; }
.menu-sheet.is-open nav li:nth-child(n+7) { transition-delay: 0.9s; }
.menu-sheet.is-open .menu-sheet__foot { transition-delay: 0.98s; }
.menu-sheet__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
}
/* Menu / Close: site buttons (.btn .btn--ink, sand over dark sections), at the header's 40px height and one width,
   so the Close button in the menu sits exactly over the Menu button. No hover move: pressing it moves it instead.
   Open (.is-on, site.js 8): the label slides right and the dot runs to its left; closing slides them back. */
.pill-toggle.btn { min-height: 40px; min-width: 118px; -webkit-tap-highlight-color: transparent; }
/* Two dots: the right one (::before) slips out past the right edge while the left one (::after) slides in from
   the left edge, so the dot never crosses the label. Closing runs it backwards. */
.pill-toggle.btn .btn__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle closest-side, currentColor 92%, transparent) no-repeat left center / 5px 5px;
    transform: translateX(-32px);
    transition: transform var(--dur-nav) var(--ease-nav);
}
.pill-toggle.btn:hover .btn__label, .pill-toggle.btn:hover .btn__dot::before { transform: none; }
.pill-toggle.btn.is-on .btn__label { transform: translateX(var(--pad-l, 24px)); }
.pill-toggle.btn.is-on .btn__dot::before { transform: translateX(32px); }
.pill-toggle.btn.is-on .btn__dot::after { transform: none; }
.site-header.is-on-dark .pill-toggle { --btn-bg: var(--sand); --btn-fg: var(--ink); }

/* 8 Home: stage, hero and statement */
.stage { position: relative; background: var(--night); color: var(--on-night); isolation: isolate; overflow: clip; /* keeps the sticky ground from painting below the stage */ }
.stage__ground {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100lvh;
    margin-bottom: -100vh;
    margin-bottom: -100lvh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.ground__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 60% at 78% 18%, rgba(154, 155, 129, 0.42), transparent 70%),
        radial-gradient(60% 55% at 12% 88%, rgba(182, 108, 62, 0.28), transparent 70%),
        linear-gradient(170deg, #23241f 0%, #1a1b18 55%, #2a2a22 100%);
}
.ground__circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(229, 220, 201, 0.5);
    opacity: 0.12;
    filter: blur(1px);
}
.ground__circle--1 { width: 76vmax; height: 76vmax; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.ground__circle--2 { width: 60vmax; height: 60vmax; left: 8%; top: -10%; transform: translate(-50%, -50%); }
.ground__circle--3 { width: 68vmax; height: 68vmax; left: 92%; top: 30%; transform: translate(-50%, -50%); }
.ground__media {
    position: absolute;
    inset: -4%;
    will-change: opacity, transform;
}
.ground__media video, .ground__media img {
    position: absolute;
    inset: -16% 0 16% 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 70%;
    transform: scaleY(-1); /* aerial footage: foam above, dark water behind the headline */
}
.ground__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(25, 26, 23, 0.62) 0%, rgba(25, 26, 23, 0) 26%),
        linear-gradient(0deg, rgba(25, 26, 23, 0.55) 0%, rgba(25, 26, 23, 0) 45%);
}
.grain {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    mix-blend-mode: overlay;
    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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 26.5rem);
    align-items: end;
    gap: 32px 64px;
}
.hero__title { color: var(--on-night); max-width: 11ch; }
.hero__aside { display: grid; gap: 28px; justify-items: start; padding-bottom: 0.6rem; }
.hero__aside p { color: var(--on-night); font-size: 1.0625rem; line-height: 1.7; }
.hero__aside p + p { margin-top: 0.2em; }
.hero__motion {
    position: absolute;
    right: var(--gutter);
    bottom: 20px;
    z-index: 2;
}
.hero__motion .icon-btn { width: 40px; height: 40px; color: var(--on-night); background: rgba(25, 26, 23, 0.35); }
.hero__motion .icon-btn:hover { background: rgba(25, 26, 23, 0.6); }
.hero { position: relative; }
@media (max-width: 1099px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__aside { max-width: 30rem; }
}
@media (max-width: 799px) {
    .hero__title { max-width: 9ch; }
}

.statement {
    position: relative;
    height: 170vh;
}
.statement__pin {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding-block: calc(var(--header-h) + 24px) 48px;
}
.statement__inner { display: grid; justify-items: center; gap: 36px; text-align: center; max-width: 60rem; }
.statement .t-label { color: var(--on-night-muted); display: inline-flex; align-items: center; gap: 12px; }
.statement .t-label::before, .statement .t-label::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.statement__heading { color: var(--on-night); }
.statement__words {
    font-family: var(--font-serif);
    font-size: clamp(1.625rem, 1.1rem + 1.9vw, 2.75rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--on-night);
    text-wrap: balance;
}
.statement__words .w { opacity: var(--o, 1); transition: opacity 0.2s linear; }
.js .statement__words .w { --o: 0.45; }  /* unlit words stay readable (about 4:1 on night) */
.statement__coda { display: grid; justify-items: center; gap: 22px; margin-top: 4px; }
.statement__coda p { color: var(--on-night-muted); max-width: 26rem; }
@media (max-width: 699px) { .statement { height: 150vh; } }

/* 8b Focus: hero line -> dot -> FOCUS switch -> paper and the Field Station statement.
   site.js draws the line to end on the switch knob, docks the switch when the section pins,
   and turns it on a little further down (or on click). Without JavaScript only the statement shows. */
.focus { height: 300vh; }
@media (max-width: 699px) { .focus { height: 260vh; } }
/* Centred in the space below the header, at any window size. */
.focus .statement__pin { place-items: center; padding-block: var(--header-h) 0; }
.focus .statement__pin > .container { position: relative; }
.focus-line { display: none; }
.js .focus-line {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}
.focus-line path {
    fill: none;
    stroke: var(--sand);
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-dasharray: 1 1;
    opacity: 0.8;
}
/* On first load the line draws itself in with the hero. */
.js .stage:not(.is-ready):not(.is-entering) .focus-line path { stroke-dashoffset: 1; }
.js .stage.is-entering .focus-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out); }

.focus__paper { position: absolute; inset: 0; background: var(--paper); opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.focus.is-on .focus__paper { opacity: 1; }
.focus__inner { display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 32px); text-align: center; }
.focus__stack { display: grid; width: 100%; justify-items: center; }
.focus__stack > * { grid-area: 1 / 1; align-self: start; }

/* The switch: a lone dot until the section pins, then a pill that reads UNFOCUSED; on, the knob crosses and it reads FOCUSED.
   The knob centre stays 18px in from the left edge until it switches on (site.js ends the hero line there). */
.focus-switch { display: none; }
.js .focus-switch {
    position: relative;
    display: block;
    width: 9.75rem;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--on-night);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: color 0.6s var(--ease);
}
.focus-switch__track {
    position: absolute;
    left: 0;
    top: 4px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px transparent;
    overflow: hidden;
    transition: width var(--dur-nav) var(--ease-nav), background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.focus-switch__knob {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sand);
    transform: translate(-50%, -50%);
    transition: transform var(--dur-nav) var(--ease-nav), width 0.5s var(--ease-nav), height 0.5s var(--ease-nav), background-color 0.6s var(--ease);
}
.focus-switch__text {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s var(--ease), transform var(--dur-nav) var(--ease-nav);
}
/* Each word is centred in the part of the pill the knob isn't covering (knob spans 6-30px from its edge). */
.focus-switch__text { text-align: center; padding-left: 0.11em; /* balances the trailing letter-spacing */ }
.focus-switch__text--off { left: 30px; right: 0; transform: translateX(-8px); }
.focus-switch__text--on { left: 0; right: 30px; transform: translateX(8px); }
.focus.is-docked .focus-switch__track { width: 100%; background: rgba(236, 230, 216, 0.1); box-shadow: inset 0 0 0 1px rgba(236, 230, 216, 0.4); }
.focus.is-docked .focus-switch__knob { width: 24px; height: 24px; }
.focus.is-docked:not(.is-on) .focus-switch__text--off { opacity: 1; transform: none; transition-delay: 0.15s; }
.focus.is-on .focus-switch { color: var(--paper); }
.focus.is-on .focus-switch__track { background: var(--rust-strong); box-shadow: inset 0 0 0 1px var(--rust-strong); }
.focus.is-on .focus-switch__knob { background: var(--paper); transform: translate(calc(-50% + 9.75rem - 36px), -50%); }
.focus.is-on .focus-switch__text--on { opacity: 1; transform: none; transition-delay: 0.15s; }
@media (hover: hover) {
    .focus.is-docked .focus-switch:hover .focus-switch__knob { width: 27px; height: 27px; }
}

/* Before: the noise. Same layout as the statement; it blurs away when the switch turns on. */
.focus__pre { transition: opacity 0.6s var(--ease), transform 0.9s var(--ease-out), filter 0.6s var(--ease); }
.focus__pre-words { color: var(--on-night-muted); }
html:not(.js) .focus__pre { display: none; }
.focus.is-on .focus__pre { opacity: 0; transform: translateY(-16px); filter: blur(6px); pointer-events: none; }

/* After: the statement, on paper. */
.js .focus .focus__post { opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity 0.7s var(--ease), transform 1s var(--ease-out); }
.js .focus.is-on .focus__post { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.15s; }
.focus.is-on .t-label { color: var(--muted); }
.focus.is-on .statement__heading, .focus.is-on .statement__words { color: var(--ink); }
.focus.is-on .statement__coda p { color: var(--muted); }
.focus.is-on .btn--sand { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.focus .t-label, .focus .statement__heading, .focus .statement__words, .focus .statement__coda p { transition: color 0.8s var(--ease); }

/* The statement now hands straight over to Explore on paper, so the rising sheet edge is not needed. */
.stage:has(.focus) + .explore { margin-top: 0; border-radius: 0; padding-top: 0; } /* site.js sets a negative margin-top so the cards sit a set gap under the button */

/* 9 Explore cards
   Each card is a window onto a still photograph. On desktop it rests partly closed (--lift trimmed off the top
   and bottom) and opens out from its centre as the pointer comes near: the title rides the top edge,
   the dot and EXPLORE MORE ride the bottom edge, the description and the photo stay put.
   --near (0..1) comes from site.js (4c): 1 for the card under the pointer, falling off with distance. */
@property --near { syntax: "<number>"; inherits: true; initial-value: 0; }
.explore { background: var(--paper); }
.explore__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.explore__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}
.station-card {
    --near: 0;
    --card-h: 24rem;
    --lift-max: 0px;                                      /* how much each edge is trimmed at rest */
    --lift: calc((1 - var(--near)) * var(--lift-max));
    --more-o: clamp(0, (var(--near) - 0.3) / 0.7, 1);     /* EXPLORE MORE fades in on near and hovered cards */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: var(--card-h);
    padding: 24px 24px 22px;
    color: var(--on-night);
    text-decoration: none;
    isolation: isolate;
    transition: --near 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.station-card__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(90% 60% at 70% 30%, rgba(154, 155, 129, 0.28), transparent 70%),
        radial-gradient(80% 50% at 10% 100%, rgba(182, 108, 62, 0.22), transparent 70%),
        var(--night-2);
    border-radius: var(--radius-s);
    clip-path: inset(var(--lift) 0 var(--lift) 0 round var(--radius-s));
    overflow: hidden;
}
.station-card__bg .grain { opacity: 0.14; z-index: 2; }
/* Photograph: black and white, fixed in place; the card opens over it. The shade keeps the text readable. */
.station-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}
.station-card__bg::after {
    content: "";
    position: absolute;
    inset: var(--lift) 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(25, 26, 23, 0.62) 0%, rgba(25, 26, 23, 0) 34%),
        linear-gradient(0deg, rgba(25, 26, 23, 0.86) 0%, rgba(25, 26, 23, 0.35) 38%, rgba(25, 26, 23, 0) 60%);
}
.station-card__title { color: var(--on-night); transform: translateY(var(--lift)); }
.station-card__foot { display: grid; gap: 18px; }
.station-card__desc { font-size: var(--fs-small); line-height: 1.75; color: var(--on-night); max-width: 16rem; margin-bottom: var(--lift-max); }
.station-card__more { display: flex; align-items: center; gap: 12px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; min-height: 20px; transform: translateY(calc(-1 * var(--lift))); }
.station-card__more::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.station-card__more span { opacity: var(--more-o); transform: translateX(calc((1 - var(--more-o)) * -10px)); }
.station-card:focus-visible { outline-offset: 4px; --near: 1; }
@media (hover: hover) and (min-width: 1100px) {
    .station-card { --card-h: clamp(32rem, 24rem + 14vw, 42rem); --lift-max: calc(var(--card-h) * 0.105); }
}
@media (hover: none), (max-width: 1099px) { .station-card { --near: 1; } }
@media (max-width: 1099px) {
    .explore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explore__grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
    .explore__grid { grid-template-columns: 1fr; }
    .station-card { --card-h: 21rem; }
}

/* 10 In the Field */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.story__text { display: grid; gap: 28px; justify-items: start; position: sticky; top: calc(var(--header-h) + 48px); }
.story__text .t-label { color: var(--olive-deep); }
.story__collage { position: relative; min-height: clamp(28rem, 20rem + 26vw, 46rem); }
.story__img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-s); background: var(--sand); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img--back { right: 0; top: 0; width: 66%; aspect-ratio: 600 / 760; }
.story__img--front { left: 0; top: 38%; width: 52%; aspect-ratio: 500 / 600; box-shadow: 0 30px 60px -30px rgba(25, 26, 23, 0.45); }
.field-latest { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.field-latest__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
@media (max-width: 899px) {
    .story { grid-template-columns: 1fr; }
    .story__text { position: static; }
    .story__collage { min-height: 0; height: 30rem; }
}
@media (max-width: 499px) { .story__collage { height: 24rem; } }

/* Fixed line art (appears for The Desk) */
.lineart {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    color: var(--olive);
}
.lineart svg { width: 100%; height: 100%; }
.lineart path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* 11 The Desk */
.desk { position: relative; z-index: 1; }
.desk__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(3rem, 2rem + 3vw, 5.5rem); }
.desk__head .t-display { grid-column: 1 / -1; }
.desk__intro { grid-column: 2; display: grid; gap: 24px; justify-items: start; }
@media (max-width: 899px) { .desk__head { grid-template-columns: 1fr; } .desk__intro { grid-column: 1; } }

/* 12 What Emerged */
.emerged { position: relative; margin-top: -1px; padding-top: 0; }
.emerged__curve {
    position: relative;
    height: clamp(5rem, 2rem + 10vw, 12rem);
    background: var(--paper);
    overflow: hidden;
}
.emerged__curve::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    top: 0;
    bottom: -1px;
    background: var(--night);
    border-radius: 50% 50% 0 0 / calc(var(--curve, 1) * 100%) calc(var(--curve, 1) * 100%) 0 0;
}
.emerged__body { padding-bottom: var(--section); }

/* "How the field station works": permanent homepage section before the newsletter.
   A giant step number stays pinned and rolls 01 -> 04 while each step comes into focus (site.js 4d). */
/* It adapts to the section above it:
   - after What Emerged (dark): no curve; it carries on in the same dark, separated by a thin rule.
   - after Currently (tinted): the curve is cut from the tint rather than white. */
.emerged:not(.wip) + .wip { margin-top: 0; }
.emerged:not(.wip) + .wip > .emerged__curve { display: none; }
.emerged:not(.wip) + .wip > .emerged__body > .container { border-top: 1px solid var(--line-night); padding-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
.emerged:has(+ .wip) > .emerged__body { padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
.on-tint + .wip > .emerged__curve { background: var(--tint); }
.process__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.process__head > div { display: grid; gap: 22px; }
.process__head .t-label { color: var(--olive); }
.process__head .t-title { color: var(--on-night); }
.process__intro { color: var(--on-night-muted); max-width: 30rem; line-height: 1.7; justify-self: end; }
.process__track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
.process__steps { list-style: none; margin: 0; padding: 0; }
.process-step {
    display: grid;
    gap: 16px;
    align-content: center;
    min-height: 72vh;
    max-width: 30rem;
    opacity: 0.18;
    filter: blur(3px);
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.9s var(--ease-out);
}
.process-step.is-active { opacity: 1; filter: none; transform: none; }
.process-step.is-past { opacity: 0.08; filter: blur(6px); transform: translateY(-16px); }
.process-step__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--on-night); }
.process-step p { color: var(--on-night-muted); line-height: 1.75; max-width: 26rem; }
/* The pinned number: the second digit sits in a strip that slides up one digit per step. */
.process__counter {
    position: sticky;
    top: calc(50vh - 0.5em);
    align-self: start;
    justify-self: end;
    display: flex;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(9rem, 4rem + 13vw, 19rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: #d08a5c;
    margin-top: 36vh;
}
.process__digit { display: block; height: 1em; }
.process__digit--roll { clip-path: inset(0 -0.4em); } /* crop only top and bottom (where digits slide); never the sides of wide digits */
.process__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d, 0) * -1em)); transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.process__strip > span { display: block; height: 1em; }
.process__cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 64px; align-items: start; margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid var(--line-night); }
.process__cta .t-h3 { color: var(--on-night); }
.process__cta-body { display: grid; gap: 24px; justify-items: start; }
.process__cta-body p { color: var(--on-night-muted); max-width: 30rem; line-height: 1.7; }
.process__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.wip__link { position: relative; color: var(--on-night); font-weight: 600; text-decoration: none; padding-block: 8px; }
.wip__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform var(--dur-nav) var(--ease-nav); }
.wip__link:hover::after, .wip__link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
/* Phones and small tablets: no pinned counter; each step shows its own number, and every step is readable. */
@media (max-width: 799px) {
    .process__head, .process__cta { grid-template-columns: 1fr; }
    .process__intro { justify-self: start; }
    .process__track { grid-template-columns: 1fr; }
    .process__counter { display: none; }
    .process-step, .process-step.is-active, .process-step.is-past { min-height: 0; padding-block: clamp(1.75rem, 1rem + 3vw, 2.5rem); border-top: 1px solid var(--line-night); opacity: 1; filter: none; transform: none; }
    .process-step::before { content: attr(data-step); font-family: var(--font-sans); font-weight: 500; font-size: 3.5rem; line-height: 1; letter-spacing: -0.04em; color: #d08a5c; }
}
.reduce-motion .process-step { opacity: 1; filter: none; transform: none; }
.emerged__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.emerged__head .t-label { color: var(--olive); grid-column: 1 / -1; }
.emerged__intro { display: grid; gap: 24px; justify-items: start; }
.emerged__intro p { color: var(--on-night); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.project-card { display: grid; gap: 20px; text-decoration: none; color: var(--on-night-muted); }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-s); background: var(--night-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease); }
.project-card__media:hover img { transform: scale(1.04); }
/* Project images: slightly faded into the dark section, with the brand's film grain on top. */
.project-card__media img { opacity: 0.82; filter: saturate(0.75) contrast(0.92) brightness(0.92); }
.project-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: overlay;
    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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Wrapped titles get room between rows so each row's hover line clears the letters of the row below. */
.project-card__title { color: var(--on-night); line-height: 1.2; text-wrap: balance; }
/* Title: the header nav's 2px line (in from the left, out to the right) and a light rust, only while the
   pointer is on the title itself. A background line, so it follows titles that wrap. */
.project-card__title-text {
    padding-bottom: 0.02em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0% 2px;
    transition: background-size var(--dur-nav) var(--ease-nav), color 0.4s var(--ease);
}
@media (hover: hover) {
    .project-card__title-text:hover { color: #d08a5c; background-size: 100% 2px; background-position: left bottom; }
}
.project-card:focus-visible .project-card__title-text { color: #d08a5c; background-size: 100% 2px; background-position: left bottom; }
.project-card__excerpt { max-width: 34rem; }
.project-card--text .project-card__media { display: grid; place-items: center; }
.project-card--text .project-card__media span { font-family: var(--font-serif); font-size: clamp(2rem, 1rem + 3vw, 3.5rem); color: var(--sand); letter-spacing: -0.03em; padding: 24px; text-align: center; line-height: 1; }
.empty-note { display: grid; gap: 20px; justify-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.on-night .empty-note { border-color: var(--line-night); }
.empty-note p { max-width: 32rem; }
@media (max-width: 899px) { .emerged__head, .project-grid { grid-template-columns: 1fr; } }

/* 13 Field station brief */
.brief__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 48px 80px; align-items: start; }
.brief__pin { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.brief__pin .t-label { color: var(--olive-deep); }
.brief__number {
    font-family: var(--font-sans);
    font-size: clamp(5.5rem, 2rem + 14vw, 15rem);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.06em;
    color: var(--rust);
    display: flex;
    align-items: baseline;
    gap: 0.12em;
}
.brief__number small { font-size: 0.16em; letter-spacing: 0; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.11em; }
.odometer { display: inline-flex; align-items: flex-start; overflow: hidden; height: 0.86em; line-height: 0.86; }
.odometer__col { display: flex; flex-direction: column; transition: transform 1.6s var(--ease-out); }
.odometer__col span { height: 0.86em; display: block; }
.brief__meta { color: var(--muted); }
.brief__body { display: grid; gap: 40px; }
.brief-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-s); background: var(--night); color: var(--on-night); text-decoration: none; }
.brief-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.brief-media:hover img { transform: scale(1.03); }
.brief-media__play {
    position: absolute;
    left: 24px; bottom: 24px;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 0 22px 0 8px;
    min-height: 48px;
    border-radius: 999px;
    background: rgba(25, 26, 23, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
}
.brief-media__play i { display: grid; place-items: center; width: 32px; height: 32px; padding-left: 2px; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 12px; }
.brief__title { display: grid; gap: 12px; }
.week-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.week-list li { border-bottom: 1px solid var(--line); }
.week-list a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); font-weight: 500; transition: color var(--dur-s) var(--ease); }
.week-list a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); flex: none; translate: 0 -3px; }
.week-list a:hover { color: var(--rust-strong); }
.week-list time { margin-left: auto; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .brief__grid { grid-template-columns: 1fr; } .brief__pin { position: static; } }

/* 14 Currently */
.currently__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status-col { background: var(--paper); border-radius: var(--radius-m); padding: 28px 24px 24px; display: grid; align-content: start; gap: 20px; min-height: 17rem; }
.status-col h3 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.status-list a { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.45; }
.status-list a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); margin-top: 0.6em; }
/* Titles: the header nav's 2px line (in from the left, out to the right) and rust colour on hover.
   Drawn on the inline text so it follows titles that wrap. */
.status-list__text {
    padding-bottom: 0.06em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0% 2px;
    transition: background-size var(--dur-nav) var(--ease-nav), color 0.4s var(--ease);
}
@media (hover: hover) {
    .status-list a:hover .status-list__text { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; }
}
.status-list a:focus-visible .status-list__text { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; }
.status-list__state { grid-column: 2; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.status-list--reading a { grid-template-columns: 44px 1fr; align-items: center; }
.status-list--reading a::before { display: none; }
.status-list--reading img, .status-list--reading .cover-blank { width: 44px; height: 60px; object-fit: cover; border-radius: 3px; background: var(--sand); }
.status-list--reading .status-list__state { grid-column: 2; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--fs-small); }
.status-empty { color: var(--muted); font-size: var(--fs-small); }
.status-col .link { margin-top: auto; justify-self: start; color: var(--rust-strong); } /* start: the hover line stays the width of the words, not the column */
@media (max-width: 1099px) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .currently__head { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .status-grid { grid-template-columns: 1fr; } .status-col { min-height: 0; } }

/* 15 Subscribe */
.subscribe__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.subscribe__copy { display: grid; gap: 20px; }
.member-form { display: grid; gap: 14px; }
.member-form__row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-s) var(--ease); }
.member-form__row:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }
.member-form input[type="email"], .member-form input[type="text"] {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
}
.member-form input:focus-visible { outline: none; }
.member-form .btn { flex: none; }
.member-form__note { font-size: var(--fs-small); color: var(--muted); }
.member-form__msg { display: none; font-size: var(--fs-small); font-weight: 500; }
.member-form.loading .btn { pointer-events: none; }
.member-form.loading .btn__label { opacity: 0.4; }
.member-form.loading .btn__dot { animation: dot-pulse 0.9s var(--ease) infinite alternate; }
/* Inside a button the dot is drawn on the track's ::before, so pulse that around the dot's own centre. */
.member-form.loading .btn .btn__dot { animation: none; }
.member-form.loading .btn .btn__dot::before { animation: dot-pulse 0.9s var(--ease) infinite alternate; transform-origin: calc(100% - 2.5px) 50%; }
.member-form.success .member-form__row, .member-form.success .member-form__note { display: none; }
.member-form.success .member-form__msg--success { display: block; color: var(--olive-deep); }
.member-form.error .member-form__msg--error { display: block; color: #a3342a; }
.member-form.error .member-form__row { box-shadow: inset 0 0 0 1px #a3342a; }
.member-form [data-members-error]:empty { display: none; }
.on-night .member-form__row { background: rgba(236, 230, 216, 0.06); box-shadow: inset 0 0 0 1px var(--line-night); }
.on-night .member-form input { color: var(--on-night); }
.on-night .member-form input::placeholder { color: var(--on-night-muted); }
@keyframes dot-pulse { from { opacity: 1; transform: scale(1); } to { opacity: 0.2; transform: scale(1.8); } }
.subscribe__member { display: grid; gap: 20px; justify-items: start; }
/* Newsletter + author bio (tag pages and In the Field): newsletter on the left, a short bio from Ghost on the right */
.sub-bio { background: var(--tint, #f3f0e8); }
.sub-bio__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px clamp(48px, 3rem + 6vw, 160px); align-items: center; }
.sub-bio__join { display: grid; gap: clamp(28px, 1.5rem + 1.5vw, 44px); max-width: 40rem; }
.sub-bio__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 4.25rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.sub-bio__title .accent { display: block; color: var(--rust); }
.sub-bio__join .member-form { max-width: 32rem; }
.sub-bio__author { display: grid; justify-items: start; gap: 18px; max-width: 26rem; }
.sub-bio__grid > .sub-bio__author:only-child { grid-column: 1 / -1; }
.sub-bio__label { color: var(--muted); }
.sub-bio__who { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.sub-bio__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1); box-shadow: 0 0 0 3px var(--paper); }
.sub-bio__name { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.sub-bio__name-text { padding-bottom: 0.04em; background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 2px; transition: background-size var(--dur-nav) var(--ease-nav), color 0.3s ease; }
@media (hover: hover) { .sub-bio__who:hover .sub-bio__name-text { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; } }
.sub-bio__who:focus-visible .sub-bio__name-text { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; }
.sub-bio__text { color: var(--muted); line-height: 1.75; }
.sub-bio__pitch { max-width: 34rem; color: var(--body, var(--muted)); font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem); line-height: 1.7; }
.sub-bio__more .link { color: var(--rust-strong); }
.sub-bio__social { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0 -10px; padding: 0; list-style: none; }
.sub-bio__social:not(:has(li)) { display: none; }
.sub-bio__social a { display: grid; place-items: center; text-decoration: none; width: 44px; height: 44px; border-radius: 50%; color: var(--olive-deep); transition: color 0.3s ease, background-color 0.3s ease; }
.sub-bio__social a:hover, .sub-bio__social a:focus-visible { color: var(--rust-strong); background: rgba(150, 81, 44, 0.08); }
.sub-bio__social i { font-size: 19px; line-height: 1; }
@media (max-width: 899px) { .sub-bio__grid { grid-template-columns: 1fr; } .sub-bio__author { padding-top: 40px; border-top: 1px solid var(--line); max-width: none; } }
@media (max-width: 899px) { .subscribe__grid { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 459px) {
    .member-form__row { flex-direction: column; border-radius: 22px; }
    .member-form .btn { justify-content: center; }
}

/* 16 Footer */
/* The footer fills the screen at the end of the page: logo and links centred in the space above the bottom bar. */
.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--night);
    color: var(--on-night-muted);
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}
.site-footer > .container { flex: 1; display: flex; flex-direction: column; width: 100%; }
.site-footer .site-footer__top { flex: 1; align-items: center; align-content: center; }
.site-footer__ground { position: absolute; inset: -30% 0 0 0; z-index: -1; will-change: transform; }
.site-footer__ground img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0.85; }
@media (max-width: 799px) { .site-footer__ground img { object-position: 66% 0; } } /* narrow screens: lean toward the tree line on the right */
.site-footer__ground::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(25, 26, 23, 0.6) 40%, rgba(25, 26, 23, 0.85) 100%); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px 64px; padding-top: clamp(6rem, 4rem + 6vw, 10rem); padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.site-footer__title { color: var(--on-night); max-width: 12ch; }
/* Footer logo: the signature, large, in the same sand tone as the logo on the dark header. */
.site-footer__brand { display: grid; justify-items: start; gap: clamp(20px, 2vw, 28px); align-self: center; }
.site-footer__logo { display: inline-block; text-decoration: none; }
.site-footer__lede { display: grid; gap: 0.2em; max-width: 30rem; color: var(--on-night-muted); font-size: 1.0625rem; line-height: 1.7; }
@media (max-width: 899px) { .site-footer__lede { display: block; } .site-footer__lede span { display: inline; } } /* small screens: one flowing paragraph */
.site-footer__logo img {
    display: block;
    width: clamp(220px, 26vw, 440px);
    height: auto;
    opacity: 0; /* holds the size; the logo itself shows in rust through ::after below */
}
/* Follow me: one row of social icons under the line beside the logo. */
.site-footer__follow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-footer .site-footer__follow h2.t-label { margin-bottom: 0; }
.site-footer .site-footer__follow ul { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.site-footer .site-footer__follow li a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-night-muted); text-decoration: none; transition: color 0.3s ease, background-color 0.3s ease; }
.site-footer .site-footer__follow li a:hover, .site-footer .site-footer__follow li a:focus-visible { color: #d29a72; background: rgba(236, 230, 216, 0.08); }
.site-footer .site-footer__follow li a:focus-visible { outline: 2px solid #d29a72; outline-offset: 2px; }
.site-footer .site-footer__follow i { font-size: 19px; line-height: 1; }
.site-footer .site-footer__follow li a::after { content: none; } /* no text underline on the icons */
/* Footer logo: always rust (the logo's own shape filled with rust). site.js 10 writes it once, stroke by stroke,
   the first time the footer comes into view, and again on hover. */
.site-footer__logo { position: relative; }
.site-footer__logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #d08a5c;
    -webkit-mask: var(--logo) 0 0 / 100% 100% no-repeat;
    mask: var(--logo) 0 0 / 100% 100% no-repeat;
    pointer-events: none;
}
.site-footer__logo.is-etching::after { opacity: 0; } /* the pen writes it in the svg instead */
/* Hand-written signature (site.js 10). Once the script takes over a logo (.is-etch), the plain sweep above steps
   aside: on hover the logo vanishes (.is-etching) and a pen writes the name again in rust along its own strokes. */
.brand-mark, .site-footer__logo { --etch: #b5683c; }
.site-header.is-on-dark .brand-mark, .member-hero__top .brand-mark, .site-footer__logo { --etch: #d08a5c; }
.etch-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 0.35s var(--ease); }
.etch-rust { fill: var(--etch); }
.is-etch.brand-mark::after { content: none; }
.is-etch.is-etch.brand-mark img { opacity: 1; transition: filter 0.4s var(--ease), opacity 0.45s var(--ease); transition-delay: 0s; }
.is-etch.is-etching .etch-svg { opacity: 1; transition-duration: 0.12s; }
.is-etch.is-etch.is-etching img { opacity: 0; transition-duration: 0.15s; }
.is-etch.is-etch.is-etched img { opacity: 0; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.site-footer h2.t-label { color: var(--on-night-muted); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer li a, .site-footer .footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--on-night);
    font-weight: 600;
    font-size: 1.0625rem;
    position: relative;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
/* Same line as the header nav: 2px, draws in from the left, leaves to the right. */
.site-footer li a::after, .site-footer .footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--dur-nav) var(--ease-nav);
}
.site-footer li a:hover::after, .site-footer .footer-link:hover::after,
.site-footer li a:focus-visible::after, .site-footer .footer-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 32px; border-top: 1px solid var(--line-night); font-size: var(--fs-small); }
.site-footer__bottom a { color: var(--on-night); }
@media (max-width: 899px) { .site-footer__top { grid-template-columns: 1fr; } }

/* Back to top: a small frosted circle (same glass as the header) in the page's right margin.
   A thin ring fills with scroll progress; it switches light/dark with the section behind it.
   site.js (4e) shows it after the first screen, keeps it above the footer's bottom line, and on narrow screens
   (no free margin) only shows it beside the footer, so it never sits on text. */
.to-top {
    --tt-size: 42px;
    position: fixed;
    right: var(--tt-right, 14px);
    bottom: var(--tt-bottom, 22px);
    z-index: 45;
    display: grid;
    place-items: center;
    width: var(--tt-size);
    height: var(--tt-size);
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: rgba(251, 250, 247, 0.62);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: inset 0 0 0 1px rgba(35, 35, 32, 0.1), 0 10px 30px -14px rgba(25, 26, 23, 0.45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out), visibility 0s linear 0.5s, color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top.is-on-dark { color: var(--on-night); background: rgba(25, 26, 23, 0.5); box-shadow: inset 0 0 0 1px rgba(236, 230, 216, 0.16), 0 10px 30px -14px rgba(0, 0, 0, 0.6); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--tt-progress, 0)); opacity: 0.55; transition: stroke 0.4s var(--ease), opacity 0.4s var(--ease); }
.to-top__arrow { font-size: 15px; line-height: 1; transition: transform var(--dur-nav) var(--ease-nav); }
@media (hover: hover) {
    .to-top:hover .to-top__arrow { transform: translateY(-3px); }
    .to-top:hover .to-top__ring circle { stroke: var(--rust-strong); opacity: 1; }
    .to-top.is-on-dark:hover .to-top__ring circle { stroke: #d08a5c; }
}
.to-top:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* Narrow screens: the button sits on the copyright line, so that row keeps its right end free (no text under it). */
.tt-in-footer .site-footer__bottom { padding-right: 58px; }

/* 17 Post cards & grids */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 24px; }
.post-card { position: relative; display: grid; gap: 18px; align-content: start; }
.post-card__media { display: block; position: relative; text-decoration: none; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); border-radius: 999px 999px var(--radius-s) var(--radius-s) / 40% 40% var(--radius-s) var(--radius-s); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); color: var(--muted); }
.post-card__meta .tag { color: var(--rust-strong); font-weight: 600; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__excerpt { font-size: var(--fs-small); color: var(--body); max-width: 34rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__byline { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ink); font-weight: 500; }
.post-card__byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-card--no-image .post-card__media { display: grid; place-items: end start; padding: 28px; background: var(--tint); }
.post-card--no-image .post-card__media span { font-family: var(--font-serif); font-size: 4rem; line-height: 0.8; color: var(--olive-deep); }  /* 4.9:1 on tint */
.post-card .members-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--olive-deep); font-weight: 600; }
.members-badge i { font-size: 0.85em; }

/* Author name: its own link, above the card's stretched click area so it works on every page. */
.post-card__author { position: relative; z-index: 2; color: inherit; text-decoration: none; }

/* The Desk: three separate hover zones.
   Image: black and white like the rest of the brand, colour only while the pointer is on the image.
   Title and author: the header nav's 2px line (in from the left, out to the right) and a rust colour,
   each only while the pointer is on it. The line is a background so it follows titles that wrap. */
.desk .post-card__title a::after { content: none; }  /* no stretched click area here: each part links on its own */
.desk .post-card__media img { filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease); }
.desk .post-card:hover .post-card__media img { transform: none; }
.desk .post-card__title a,
.desk .post-card__author {
    padding-bottom: 0.08em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0% 2px;
    transition: background-size var(--dur-nav) var(--ease-nav), color 0.4s var(--ease);
}
.desk .post-card__author { padding-bottom: 3px; }
.desk .post-card__title a:hover, .desk .post-card__author:hover { text-decoration: none; }
@media (hover: hover) {
    /* Zoom + colour only while the pointer is on the image (same ease as What Emerged); outranks the card-hover reset above. */
    .desk .post-card:hover .post-card__media:hover img { filter: grayscale(0) contrast(1); transform: scale(1.04); }
    .desk .post-card__title a:hover,
    .desk .post-card__author:hover { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; }
}
.desk .post-card__title a:focus-visible,
.desk .post-card__author:focus-visible { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; }
/* Homepage Desk: tall photo cards (partials/cards/desk-card.hbs). Photo fills the card in black and white, date and
   title at the top, a round white arrow button bottom right. Corners match the station cards (--radius-s). */
.desk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.desk-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 3 / 4.6;
    padding: clamp(24px, 1rem + 1.2vw, 36px);
    border-radius: var(--radius-s);
    background: var(--night-2);
    color: var(--on-night); text-decoration: none;
}
.desk-card__bg { position: absolute; inset: 0; z-index: -1; }
.desk-card--plain .desk-card__bg {
    background:
        radial-gradient(90% 60% at 70% 30%, rgba(154, 155, 129, 0.28), transparent 70%),
        radial-gradient(80% 50% at 10% 100%, rgba(182, 108, 62, 0.22), transparent 70%),
        var(--night-2);
}
.desk-card__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.desk-card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 26, 23, 0.72) 0%, rgba(25, 26, 23, 0.3) 38%, rgba(25, 26, 23, 0) 60%); }
.desk-card__head { display: grid; gap: 14px; }
.desk-card__date { font-size: 0.9375rem; color: var(--on-night); }
.desk-card__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.625rem, 1.2rem + 0.9vw, 2.125rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--on-night); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.desk-card__go { align-self: flex-end; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1b1b19; }
.desk-card__go svg { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
/* Hover (as the reference video): the whole card grows a little, the arrow turns from up-right to right,
   and the title turns light rust (readable on the dark photo shade). */
.desk-card { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.desk-card__title { transition: color 0.3s var(--ease); }
@media (hover: hover) {
    .desk-card:hover { transform: scale(1.025); box-shadow: 0 24px 60px -18px rgba(25, 26, 23, 0.55); }
    .desk-card:hover .desk-card__go svg { transform: rotate(45deg); }
    .desk-card:hover .desk-card__title { color: #d29a72; }
}
.desk-card:focus-visible { outline: 2px solid var(--rust-strong); outline-offset: 3px; }
.desk-card:focus-visible .desk-card__title { color: #d29a72; }
.reduce-motion .desk-card:hover, .reduce-motion .desk-card:hover .desk-card__go svg { transform: none; }
@media (max-width: 1023px) { .desk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .desk-cards { grid-template-columns: 1fr; gap: 16px; } .desk-card { aspect-ratio: 4 / 5; } }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .post-grid { grid-template-columns: 1fr; gap: 48px; } }

.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.field-card { position: relative; }
.field-card__link { display: grid; gap: 18px; text-decoration: none; }
.field-card__image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-s); background: var(--tint); }
.field-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.field-card__link:hover img { transform: scale(1.04); }
.field-card__title { font-family: var(--font-serif); font-size: var(--fs-h3); line-height: 1.15; color: var(--ink); letter-spacing: -0.015em; }
.field-card__excerpt { font-size: var(--fs-small); max-width: 32rem; }
.field-card.no-image .field-card__link { padding: 28px; border-radius: var(--radius-m); background: var(--tint); min-height: 14rem; align-content: end; }
@media (max-width: 1023px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .field-grid { grid-template-columns: 1fr; } }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); }
.pagination__count { font-size: var(--fs-small); color: var(--muted); }

/* 18 Article & page */
.article { padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)); }
.article-head { display: grid; gap: 28px; }
.article-head > :not(.article-feature) { max-width: 64rem; }
.article-head__tags { display: flex; gap: 16px; flex-wrap: wrap; }
.article-head__tags a { color: var(--rust-strong); text-decoration: none; }
.article-head .t-title { max-width: 20ch; }
.article-head__excerpt { max-width: 40rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: var(--fs-small); color: var(--muted); padding-top: 8px; }
.article-meta__author { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.article-meta__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-feature { margin: clamp(3rem, 2rem + 3vw, 5rem) 0 0; }
.article-feature img { width: 100%; max-height: 85vh; object-fit: cover; border-radius: var(--radius-s); }
.article-feature figcaption, .gh-content figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); text-align: center; }
.article-body { padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--section); }
.article-foot { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 64px; display: grid; gap: 24px; }
/* Previous and next post under the line, in one row on every screen: older on the left, newer on the right. */
.post-pager { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 24px; }
.post-pager__link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--rust-strong); text-decoration: none; }
.post-pager__link--next { grid-column: 2; }
.related { padding-block: var(--section); }
.related__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }

/* "More from the field station" slider (partials/related-slider.hbs, site.js 4f5). Left: counter, vertical label,
   small photos of the other posts. Middle: the photo. Right: tag, title, excerpt, previous/next buttons. */
.rel { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: clamp(24px, 1rem + 2vw, 48px); align-items: stretch; }
.rel__meta { display: flex; flex-direction: column; gap: 24px; }
.rel__count { margin: 0; font-size: var(--fs-small); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; color: var(--muted); }
.rel__vlabel { margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.rel__thumbs { display: flex; gap: 8px; margin-top: auto; }
.rel__thumb { width: 80px; height: 96px; padding: 0; border: 0; border-radius: var(--radius-s); overflow: hidden; cursor: pointer; background: var(--night-2); opacity: 0.7; transition: opacity 0.3s var(--ease); }
.rel__thumb[hidden] { display: none; }
.rel__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.rel__thumb--plain, .rel__img--plain { background: radial-gradient(90% 60% at 70% 30%, rgba(154, 155, 129, 0.28), transparent 70%), radial-gradient(80% 50% at 10% 100%, rgba(182, 108, 62, 0.22), transparent 70%), var(--night-2); }
.rel__thumb:hover, .rel__thumb:focus-visible { opacity: 1; }
.rel__thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.rel__media { position: relative; min-height: clamp(400px, 22rem + 8vw, 540px); border-radius: var(--radius-s); overflow: hidden; background: var(--night-2); }
.rel__img { position: absolute; inset: 0; display: block; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.rel__img:not(.is-active) { pointer-events: none; }
.rel__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.rel__img--plain { display: grid; place-items: center; }
.rel__img--plain span { font-family: var(--font-serif); font-size: var(--fs-h3); color: var(--on-night-muted); }
.rel__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-left: clamp(0px, 2vw, 32px); }
.rel__texts { display: grid; padding-top: clamp(1rem, 4vw, 6rem); }
.rel__text { grid-area: 1 / 1; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.rel__text:not(.is-active) { pointer-events: none; }
.rel__tag { margin: 0; color: var(--muted); }
.rel__date { font-weight: 500; }
.rel__title { margin: 12px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.rel__title a { color: var(--ink); text-decoration: none; transition: color 0.3s var(--ease); }
.rel__title a:hover, .rel__title a:focus-visible { color: var(--rust); }
.rel__excerpt { margin: 24px 0 0; max-width: 34rem; font-family: var(--font-serif); font-size: var(--fs-lead); line-height: 1.45; color: var(--body); }
.rel__nav { display: flex; gap: 8px; }
.rel__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(35, 35, 32, 0.35); background: transparent; color: var(--ink); transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.rel__btn:hover { border-color: var(--ink); }
.rel__btn--fill { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rel__btn--fill:hover { background: var(--rust-strong); border-color: var(--rust-strong); }
.rel__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.rel.is-single .rel__count, .rel.is-single .rel__thumbs, .rel.is-single .rel__nav { display: none; }
.reduce-motion .rel__img, .reduce-motion .rel__text { transition: none; }
@media (max-width: 1023px) { .rel { grid-template-columns: 2fr 4fr 5fr; } .rel__thumbs { flex-wrap: wrap; } .rel__thumb { width: 60px; height: 76px; } }
@media (max-width: 767px) {
    .rel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .rel__media { order: 1; min-height: 0; aspect-ratio: 4 / 5; }
    .rel__side { order: 2; padding-left: 0; gap: 24px; }
    .rel__texts { padding-top: 0; }
    .rel__meta { order: 3; flex-direction: row; align-items: center; justify-content: space-between; }
    .rel__vlabel { display: none; }
    .rel__thumbs { margin-top: 0; flex-wrap: nowrap; }
    .rel__thumb { width: 56px; height: 68px; }
}

/* 19 Ghost content (Koenig) */
.gh-content {
    --content: min(42rem, 100% - 2 * var(--gutter));
    --wide: min(68rem, 100% - 2 * var(--gutter));
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, calc((var(--wide) - var(--content)) / 2))
        [main-start] var(--content) [main-end]
        minmax(0, calc((var(--wide) - var(--content)) / 2)) [wide-end]
        minmax(var(--gutter), 1fr) [full-end];
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
    line-height: 1.75;
    color: #34342f;
    font-weight: 400;
}
.gh-content > * { grid-column: main; }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content > .kg-width-wide { grid-column: wide; }
.gh-content > .kg-width-full { grid-column: full; }
.gh-content > .kg-width-full img { border-radius: 0; }
.gh-content h2, .gh-content h3, .gh-content h4 { font-family: var(--font-sans); color: var(--ink); letter-spacing: -0.03em; line-height: 1.2; font-weight: 600; }
.gh-content h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); margin-top: 2.2em; }
.gh-content h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.5rem); margin-top: 1.9em; }
.gh-content h4 { font-size: 1.125rem; margin-top: 1.8em; }
.gh-content h2 + *, .gh-content h3 + *, .gh-content h4 + * { margin-top: 0.7em; }
.gh-content strong { font-weight: 650; color: var(--ink); }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.45em; }
.gh-content li::marker { color: var(--rust); }
.gh-content hr { border: 0; height: 1px; background: var(--line); margin-block: 3em; }
.gh-content blockquote:not([class]) {
    padding-left: 1.2em;
    border-left: 2px solid var(--rust);
    font-style: italic;
    color: var(--ink);
}
.gh-content blockquote.kg-blockquote-alt {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--ink);
    padding: 0.4em 0;
    font-style: normal;
}
.gh-content figure img { border-radius: var(--radius-s); margin-inline: auto; }
.gh-content code:not(pre code) { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: 0.85em; background: var(--tint); padding: 0.12em 0.4em; border-radius: 4px; }
.gh-content pre { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: 0.875rem; line-height: 1.65; background: var(--night); color: var(--on-night); padding: 1.4em 1.6em; border-radius: var(--radius-m); overflow-x: auto; }
.gh-content table:not(.gist table) { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.9375rem; }
.gh-content th, .gh-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gh-content th { color: var(--ink); font-weight: 600; }
.gh-content .kg-embed-card, .gh-content .kg-video-card, .gh-content .kg-gallery-card, .gh-content .kg-image-card { margin-top: 2.2em; margin-bottom: 0.4em; }
.gh-content .kg-gallery-image img { border-radius: 4px; }
.gh-content .kg-callout-card, .gh-content .kg-toggle-card, .gh-content .kg-product-card, .gh-content .kg-file-card, .gh-content .kg-bookmark-card, .gh-content .kg-audio-card { font-family: var(--font-sans); font-size: 1rem; }
.gh-content .kg-bookmark-container { border-radius: var(--radius-m); }
.gh-content .kg-callout-card { border-radius: var(--radius-m); }
.gh-content .kg-button-card a.kg-btn, .gh-content .kg-header-card a.kg-header-card-button { font-family: var(--font-sans); border-radius: 999px; }
.gh-content > .kg-card + .kg-card { margin-top: 1.6em; }
.gh-content iframe { width: 100%; }
.gh-content .gh-post-upgrade-cta, .gh-content .gh-post-upgrade-cta-content { font-family: var(--font-sans); }

/* Members CTA (gated content) */
.content-cta { grid-column: wide; margin-top: 3em; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-radius: var(--radius-m); background: var(--night); color: var(--on-night-muted); text-align: center; display: grid; justify-items: center; gap: 18px; font-family: var(--font-sans); font-size: 1rem; }
.content-cta h2, .content-cta .content-cta__title { font-family: var(--font-serif); font-weight: 380; font-size: var(--fs-h2); letter-spacing: -0.02em; color: var(--on-night); margin: 0; }
.content-cta .content-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.content-cta a:not(.btn) { color: var(--on-night); }

/* 20 Archive headers */
.archive-head { padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: 28px; }
.archive-head__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px 64px; align-items: end; }
.archive-head__row > :last-child { display: grid; gap: 16px; justify-items: start; }
.archive-head__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
@media (max-width: 899px) { .archive-head__row { grid-template-columns: 1fr; } }
.archive-empty { padding: 48px 0 var(--section); }

/* 21 About */
/* About opening: a large two-line title (first line rust), a small line top right,
   then a small label and the opening paragraphs, first line indented. */
.about-intro { padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 8rem)); padding-bottom: clamp(3.5rem, 2rem + 5vw, 7rem); }
.about-intro__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 24px 64px; align-items: start; }
.about-intro__title { display: grid; font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.035em; color: var(--ink); }
.about-intro__title .accent { color: var(--rust); }
.about-intro__aside { justify-self: end; padding-top: 0.6rem; max-width: 15rem; font-size: var(--fs-small); line-height: 1.7; color: var(--muted); }
.about-intro__bottom { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 20px 64px; align-items: start; margin-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); }
.about-intro__label { color: var(--olive-deep); padding-top: 0.55rem; }
/* Tag pages: post count as a large rust numeral with a small line beside it */
.about-intro__count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.75rem; }
.about-intro__count-num { font-family: var(--font-serif); font-size: clamp(3rem, 2.2rem + 2.6vw, 4.75rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--rust); font-variant-numeric: lining-nums; }
.about-intro__count-text { color: var(--olive-deep); max-width: 12rem; line-height: 1.4; }
.about-intro__text { display: grid; gap: 0.6em; max-width: 40rem; font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.625rem); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.about-intro__text p:first-child { text-indent: 5.5em; }
/* About, tag pages and In the Field: the intro runs to the right edge of the page container */
.about-intro .about-intro__text { max-width: none; }
@media (max-width: 799px) {
    .about-intro__top, .about-intro__bottom { grid-template-columns: 1fr; }
    .about-intro__aside { justify-self: start; padding-top: 0; margin: 0.9em 0 0.6em 1.4em; } /* room for its loop on phones */
    .about-intro__text p:first-child { text-indent: 0; }
}

/* About background lines (opening only): soft loops behind the title that draw themselves in on load,
   plus a hand-drawn loop around "Read. Write. Wander. Build.". */
.about, .library-page, .arc-page { overflow-x: clip; }
.about-intro { position: relative; }
.about-intro > :not(.about-intro__columns) { position: relative; z-index: 1; }
/* Background: 14 shaded columns, 80px wide and centred, like folded paper: each column is tinted along its left
   edge and clears to the paper colour by its right edge, so every column starts with a crisp step. The whole set
   fades out from the middle in a soft oval so it never meets the edges. Fades in with the title (.is-open). */
.about-intro__columns {
    position: absolute;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(35, 35, 32, 0.055) 0, rgba(35, 35, 32, 0) 80px)
        center top / 1120px 100% no-repeat;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 70%);
}
@media (max-width: 699px) {
    .about-intro__columns {
        -webkit-mask-image: radial-gradient(ellipse 95% 70% at 50% 50%, #000 30%, transparent 70%);
        mask-image: radial-gradient(ellipse 95% 70% at 50% 50%, #000 30%, transparent 70%);
    }
}

.about-intro__aside { position: relative; width: fit-content; max-width: none; }
.about-intro__aside-text { position: relative; z-index: 1; white-space: nowrap; }
/* The loop is sized from the text it circles, so it encircles it at any screen size. */
.about-intro__loop { position: absolute; left: -1.6em; right: -1.6em; top: -1.15em; bottom: -1.15em; width: calc(100% + 3.2em); height: calc(100% + 2.3em); max-width: none; pointer-events: none; overflow: visible; }
.about-intro__loop path { fill: none; stroke: rgba(35, 35, 32, 0.28); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: about-lines-draw 2s var(--ease-out) 0.75s forwards; }
@keyframes about-lines-draw { to { stroke-dashoffset: 0; } }
.about-chapters { position: relative; z-index: 1; }

/* The Library (/tag/the-library/): opening as on About, then one tall panel per post that scrolls past normally.
   The photo drifts slightly slower than the page; the text rises in as the panel arrives; each panel has its own
   thin line that loops and draws itself while the panel is on screen (site.js 4g). */
.lib-panel { position: relative; min-height: 118vh; min-height: 118svh; overflow: hidden; display: grid; align-items: start; background: var(--night); color: var(--on-night); }
.lib-panel__media { position: absolute; inset: -12% 0; will-change: transform; }
.lib-panel__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.92); }
.lib-panel__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 26, 23, 0.66) 0%, rgba(25, 26, 23, 0.32) 45%, rgba(25, 26, 23, 0.06) 75%), linear-gradient(0deg, rgba(25, 26, 23, 0.45) 0%, rgba(25, 26, 23, 0) 35%); }
.lib-panel--plain { background: radial-gradient(70% 60% at 78% 25%, rgba(154, 155, 129, 0.3), transparent 70%), radial-gradient(60% 55% at 12% 88%, rgba(182, 108, 62, 0.22), transparent 70%), var(--night); }
.lib-panel .grain { z-index: 1; }
.lib-panel__body { position: relative; z-index: 3; display: grid; gap: clamp(20px, 1.8vw, 28px); justify-items: start; padding-top: clamp(10rem, 32vh, 20rem); padding-bottom: clamp(5rem, 14vh, 9rem); }
/* Title: a little line spacing so each wrapped row's hover line clears the letters of the row below. */
.lib-panel__title { max-width: 16ch; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.75rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.lib-panel__title a { color: var(--on-night); text-decoration: none; }
.lib-panel__title-text {
    padding-bottom: 0.02em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0% 2px;
    transition: background-size var(--dur-nav) var(--ease-nav), color 0.4s var(--ease);
}
@media (hover: hover) { .lib-panel__title a:hover .lib-panel__title-text { color: #d08a5c; background-size: 100% 2px; background-position: left bottom; } }
.lib-panel__title a:focus-visible .lib-panel__title-text { color: #d08a5c; background-size: 100% 2px; background-position: left bottom; }
.lib-panel__excerpt { max-width: 34rem; color: var(--on-night); opacity: 0.88; line-height: 1.7; }
/* One line across the whole stack: over the photos, behind the text. Two strands, 2px and a fainter 1px. */
.lib-stack { position: relative; overflow: clip; }
.lib-line { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: hidden; } /* never drawn outside the posts */
.lib-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.lib-line__main { stroke: rgba(236, 230, 216, 0.85); stroke-width: 2; }
.lib-line__echo { stroke: rgba(236, 230, 216, 0.4); stroke-width: 1; }
.lib-pagination { padding-block: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.lib-empty { padding-bottom: var(--section); }
@media (max-width: 799px) {
    .lib-panel { min-height: 110svh; }
    .lib-panel__body { padding-top: clamp(7rem, 20vh, 10rem); }
    .lib-panel__shade { background: linear-gradient(180deg, rgba(25, 26, 23, 0.25) 0%, rgba(25, 26, 23, 0.7) 45%, rgba(25, 26, 23, 0.55) 100%); }
}

/* About photo band: the black-and-white swans fill the screen and stay pinned while the two paragraphs
   light up word by word (site.js 4f). The shade deepens toward the bottom so the white words stay readable. */
.about-band { position: relative; height: 260vh; background: var(--night); }
.about-band__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.about-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(calc(1.08 - var(--p, 0) * 0.08)); will-change: transform; }
.about-band__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 26, 23, 0.05) 0%, rgba(25, 26, 23, 0.22) 38%, rgba(25, 26, 23, 0.55) 70%, rgba(25, 26, 23, 0.82) 100%), radial-gradient(60% 45% at 50% 58%, rgba(25, 26, 23, 0.35), transparent 75%); }
.about-band .grain { z-index: 1; }
.about-band__content { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(22px, 2.5vw, 34px); text-align: center; max-width: 66rem; padding-top: var(--header-h); }
/* The signature in rust: the logo image is used as a mask over a rust fill. */
.about-band__mark {
    display: block;
    width: clamp(120px, 10vw, 170px);
    aspect-ratio: 5 / 1;
    background: var(--rust);
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
}
.about-band__words { display: grid; gap: 0.5em; font-family: var(--font-serif); font-size: clamp(1.5rem, 1rem + 1.9vw, 2.625rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--on-night); text-wrap: balance; }
.about-band__words .w { opacity: var(--o, 1); transition: opacity 0.2s linear; }
.js .about-band__words .w { --o: 0.45; }
@media (max-width: 799px) {
    .about-band { height: 230vh; }
    .about-band__img { object-position: 45% 35%; }
    .about-band__words { font-size: clamp(1.25rem, 0.9rem + 2.2vw, 1.75rem); }
}
.about-progress { position: fixed; left: 0; top: 0; z-index: 51; height: 2px; width: 100%; background: var(--rust); transform-origin: 0 50%; transform: scaleX(0); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; padding-block: clamp(4rem, 3rem + 4vw, 7.5rem); border-top: 1px solid var(--line); }
.chapter__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.chapter__head .focus-text { font-family: var(--font-serif); font-size: var(--fs-title); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-weight: 380; text-wrap: balance; }
.chapter__head .focus-text.is-accent { color: var(--rust); }
.chapter__body { display: grid; gap: 1.05em; font-family: var(--font-serif); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.7; color: #34342f; max-width: 36rem; }
.chapter__body p:first-child { font-size: 1.2em; line-height: 1.5; color: var(--ink); }
.js .chapter__body p { transition: opacity 0.6s var(--ease); }
@media (max-width: 899px) { .chapter { grid-template-columns: minmax(0, 1fr); } .chapter__head { position: static; } }

/* In the Field page rows: alternating sides; two overlapping black-and-white crops of the feature image (a tall one
   behind, a closer crop in front and lower) drifting at different speeds, text beside them. */
.field-rows { display: grid; gap: clamp(6rem, 3rem + 9vw, 12rem); padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(6rem, 4rem + 6vw, 10rem); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 2rem + 4vw, 112px); align-items: center; }
.field-row__media { position: relative; display: block; aspect-ratio: 1 / 1.02; }
.field-row__back, .field-row__front { position: absolute; overflow: hidden; background: var(--paper-deep, #e9e4d8); }
.field-row__back { left: 0; top: 0; width: 60%; aspect-ratio: 426 / 654; }
.field-row__front { left: 49%; top: 26%; width: 51%; aspect-ratio: 364 / 544; z-index: 1; }
.field-row__back img, .field-row__front img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.field-row__back img { object-position: 35% 50%; }
.field-row__front img { object-position: 68% 30%; transform: scale(1.45); transform-origin: 68% 30%; }
@media (hover: hover) { .field-row__media:hover .field-row__back img { transform: scale(1.04); } .field-row__media:hover .field-row__front img { transform: scale(1.52); } }
/* Odd rows (first, third…): text left, photos on the right, mirrored, as in the reference */
.field-row:nth-child(odd) .field-row__media { order: 2; }
.field-row:nth-child(odd) .field-row__back { left: auto; right: 0; }
.field-row:nth-child(odd) .field-row__front { left: auto; right: 49%; }
.field-row--plain { grid-template-columns: minmax(0, 1fr); }
.field-row--plain .field-row__body { max-width: 40rem; }
.field-row__body { display: grid; justify-items: start; gap: 1.4rem; max-width: 34rem; }
.field-row__topic { color: var(--olive-deep); margin-bottom: 0.2rem; }
.field-row__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.25rem, 1.3rem + 2.8vw, 4.25rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.field-row__title a { color: var(--ink); text-decoration: none; }
.field-row__title-text {
    padding-bottom: 0.04em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 2px;
    transition: background-size var(--dur-nav) var(--ease-nav), color 0.3s ease;
}
@media (hover: hover) { .field-row__title a:hover .field-row__title-text { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; } }
.field-row__title a:focus-visible .field-row__title-text { color: var(--rust-strong); background-size: 100% 2px; background-position: left bottom; }
.field-row__excerpt { color: var(--muted); line-height: 1.75; }
.field-row__more { margin-top: 0.6rem; }
/* Text sharpens in from a blur as it arrives and softens as it leaves under the header (site.js 4h) */
.js [data-blur] { will-change: filter, opacity; }
@media (max-width: 799px) {
    .field-row, .field-row:nth-child(odd) { grid-template-columns: 1fr; gap: 2.5rem; }
    .field-row:nth-child(odd) .field-row__media { order: 0; }
    .field-row__media { width: min(100%, 30rem); }
    .field-row:nth-child(odd) .field-row__media { justify-self: end; }
}

/* What Emerged page: a calm two-column grid of landscape black-and-white photos with the title, a short excerpt
   and a Read more button centred below; a faint loop half behind each photo. */
.emerged-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(5rem, 3rem + 6vw, 9rem) clamp(40px, 2rem + 8vw, 220px); padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(6rem, 4rem + 6vw, 10rem); padding-inline: calc(var(--gutter) + clamp(0px, 5vw, 80px)); }
.emerged-item { position: relative; display: grid; justify-items: center; gap: clamp(2rem, 1.4rem + 1.6vw, 3rem); text-align: center; }
.emerged-item:nth-child(even) { margin-top: -1.5rem; }  /* the right column sits a touch higher, as in the reference */
.emerged-item__loop { position: absolute; z-index: 0; top: -2.2rem; left: 16%; width: 52%; height: auto; aspect-ratio: 300 / 120; max-width: none; fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.emerged-item:nth-child(even) .emerged-item__loop { left: auto; right: 10%; transform: scaleX(-1); }
.emerged-item__media { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.emerged-item__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(0.96) brightness(1.04); transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease); }
@media (hover: hover) { .emerged-item__media:hover img { transform: scale(1.04); filter: grayscale(0.2) contrast(1) brightness(1); } }
.emerged-item__body { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.1rem; max-width: 30rem; }
.emerged-item__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.emerged-item__title a { color: var(--rust); text-decoration: none; }
@media (hover: hover) { .emerged-item__title a:hover { color: var(--rust-strong); } }
.emerged-item__excerpt { color: var(--muted); line-height: 1.75; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.emerged-item__body .btn { margin-top: 0.4rem; }
@media (max-width: 799px) {
    .emerged-grid { grid-template-columns: 1fr; padding-inline: var(--gutter); }
    .emerged-item:nth-child(even) { margin-top: 0; }
}

/* Empty pages (The Library, The Desk, The Studio, In the Field, What Emerged before their first post):
   a heading and short note on the left that stay in view, a column of questions on the right that open and close
   smoothly (site.js 4i). Each page has its own words in partials/empty/. */
.tag-faq { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px clamp(48px, 2rem + 6vw, 160px); align-items: start; padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(6rem, 4rem + 6vw, 10rem); }
.tag-faq__side { position: sticky; top: calc(var(--header-h) + 2rem); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: min(38rem, calc(100svh - var(--header-h) - 4rem)); }
.tag-faq__head { display: grid; gap: clamp(20px, 1rem + 1vw, 32px); }
.tag-faq__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 4rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.tag-faq__title .accent { display: block; color: var(--rust); }
.tag-faq__lede { max-width: 30rem; color: var(--body); font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem); line-height: 1.7; }
.tag-faq__foot { display: grid; justify-items: start; gap: 24px; max-width: 24rem; }
.tag-faq__foot p { color: var(--muted); line-height: 1.7; }
.tag-faq__list { display: grid; gap: 12px; }
.tag-faq__item { border-radius: 18px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(35, 35, 32, 0.06); transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tag-faq__item[open] { background: #fff; box-shadow: inset 0 0 0 1px rgba(35, 35, 32, 0.08), 0 18px 40px -30px rgba(35, 35, 32, 0.35); }
.tag-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: clamp(20px, 1rem + 0.6vw, 28px) clamp(20px, 1rem + 1vw, 32px); cursor: pointer; list-style: none; border-radius: 18px; }
.tag-faq__item summary::-webkit-details-marker { display: none; }
.tag-faq__item summary:focus-visible { outline: 2px solid var(--rust-strong); outline-offset: 2px; }
.tag-faq__q { font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); font-weight: 500; line-height: 1.4; color: var(--ink); }
/* plus in a circle that turns into a cross when open */
.tag-faq__icon { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--olive-deep); color: var(--olive-deep); transition: transform var(--dur-nav) var(--ease-nav), color 0.3s ease, box-shadow 0.3s ease; }
.tag-faq__icon { display: grid; place-items: center; }
.tag-faq__icon i { font-size: 12px; line-height: 1; }
.tag-faq__item[open] .tag-faq__icon { transform: rotate(45deg); color: var(--rust-strong); box-shadow: inset 0 0 0 1.5px var(--rust-strong); }
@media (hover: hover) { .tag-faq__item summary:hover .tag-faq__icon { color: var(--rust-strong); box-shadow: inset 0 0 0 1.5px var(--rust-strong); } }
.tag-faq__a { overflow: hidden; }
.tag-faq__a p { padding: 0 clamp(20px, 1rem + 1vw, 32px) clamp(22px, 1rem + 0.8vw, 30px); max-width: 40rem; color: var(--muted); line-height: 1.75; }
.tag-faq__a a { color: var(--rust-strong); }
@media (max-width: 899px) {
    .tag-faq { grid-template-columns: 1fr; }
    .tag-faq__side { display: contents; }          /* phones: heading, questions, then the sign-up note */
    .tag-faq__head { order: 0; }
    .tag-faq__list { order: 1; }
    .tag-faq__foot { order: 2; margin-top: 16px; }
}

/* 21b Post (post.hbs, site.js 3a). A full-screen black-and-white opening like the homepage hero, lines that draw
   down the screen as you scroll, the opening heading and paragraph held on screen and lit word by word, then the
   post as chapters with pinned headings, like the About page. */
.article.article--stage { padding-top: 0; }
.post-stage { position: relative; background: var(--night); color: var(--on-night); isolation: isolate; overflow: clip; }
.post-stage__ground {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100lvh;
    margin-bottom: -100vh;
    margin-bottom: -100lvh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.post-stage__media { position: absolute; inset: -6% 0; will-change: transform; transform: scale(1.06); }
.post-stage__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.9); }
/* The wash: dark along the top (header) and the bottom (title), deepening as you scroll (--d, 0 to 1). */
.post-stage__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(25, 26, 23, 0.6) 0%, rgba(25, 26, 23, 0) 28%),
        linear-gradient(0deg, rgba(25, 26, 23, 0.72) 0%, rgba(25, 26, 23, 0.1) 55%),
        rgba(25, 26, 23, calc(0.12 + var(--d, 0) * 0.6));
}
.post-stage .ground__circle { opacity: 0.1; }
.post-stage .grain { z-index: 1; }
.post-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.post-lines path { fill: none; stroke: #d08a5c; stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; opacity: 0.9; }
.js .post-lines path { stroke-dashoffset: 1; }
.js .post-stage.is-line-in .post-lines path { transition: stroke-dashoffset 1.6s var(--ease-out); }

/* Opening: primary tag, the title (bottom left) and the excerpt (bottom right), as in the homepage hero.
   --p (0 to 1 across the first screen) softens the title and the excerpt away. */
.post-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-content: end;
    gap: clamp(16px, 1.6vw, 28px);
    padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4.5rem));
    padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
/* The primary tag: on the left edge at the middle of the screen from tablet up; just above the title on phones.
   It softens away with the title as you scroll (--p). */
.post-hero__tag-wrap { opacity: calc(1 - var(--p, 0) * 1.15); }
@media (min-width: 900px) {
    .post-hero__tag-wrap { position: absolute; top: 50%; translate: 0 -50%; padding-inline: inherit; inset-inline: 0; pointer-events: none; }
    .post-hero__tag { pointer-events: auto; width: max-content; }
    /* A long title reaches the middle: the tag sits just above it instead (site.js). */
    .post-hero.is-tag-stacked .post-hero__tag-wrap { position: static; translate: none; padding-inline: 0; }
}
.post-hero__main { display: grid; justify-items: start; }
.post-hero__tag a { color: var(--on-night); text-decoration: none; opacity: 0.85; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
@media (hover: hover) { .post-hero__tag a:hover { color: #d08a5c; opacity: 1; } }
.post-hero__tag a:focus-visible { color: #d08a5c; opacity: 1; }
.post-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px clamp(32px, 5vw, 96px);
    align-items: end;
    opacity: calc(1 - var(--p, 0) * 1.15);
    filter: blur(calc(var(--p, 0) * 10px));
    transform: translate3d(0, calc(var(--p, 0) * -5vh), 0);
}
.post-hero__title { color: var(--on-night); font-size: clamp(3rem, 0.9rem + 6.8vw, 8.5rem); line-height: 0.92; max-width: 13ch; text-wrap: balance; }
.post-hero__aside { display: grid; gap: 18px; padding-bottom: 0.5rem; max-width: 30rem; }
.post-hero__excerpt { color: var(--on-night); font-size: 1.0625rem; line-height: 1.7; }
/* Article info as one line in the tag's style: white, with the reading time, author and date in rust.
   The photo credit matches it; any link in either is bold, and the site's 2px line draws in on hover. */
.post-hero__meta, .post-hero__caption { color: var(--on-night); line-height: 1.7; }
.post-hero__hl { color: #d08a5c; }
.post-hero__meta a, .post-hero__caption a {
    font-weight: 800;
    text-decoration: none;
    padding-bottom: 0.06em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 2px;
    transition: background-size var(--dur-nav) var(--ease-nav);
}
.post-hero__caption a { color: var(--on-night); }
.post-hero__caption a *, .post-hero__caption em, .post-hero__caption i { font-style: normal; text-decoration: none; }
@media (hover: hover) { .post-hero__meta a:hover, .post-hero__caption a:hover { background-size: 100% 2px; background-position: left bottom; } }
.post-hero__meta a:focus-visible, .post-hero__caption a:focus-visible { background-size: 100% 2px; background-position: left bottom; }
@media (max-width: 899px) {
    .post-hero__grid { grid-template-columns: 1fr; }
}
/* Desktop and large screens: full width like the homepage hero (same edge spacing and right-hand column). */
@media (min-width: 1100px) {
    .post-hero { max-width: none; padding-inline: max(var(--gutter), 4vw); }
    .post-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, clamp(26.5rem, 24vw, 38rem)); gap: 32px 64px; }
    .post-hero__title { font-size: clamp(4.5rem, min(5.6vw, 10.5vh), 9rem); max-width: 18ch; }
    .post-hero__aside { gap: clamp(18px, 1.4vw, 30px); max-width: none; }
    .post-hero__excerpt { font-size: clamp(1.0625rem, 1vw, 1.5rem); }
}

/* The opening heading and paragraph: held on screen while the paragraph lights up word by word. */
.post-lead { position: relative; height: 230vh; }
.post-lead[hidden] { display: none; }
.post-lead__pin { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-block: calc(var(--header-h) + 24px) 48px; }
.post-lead__inner { display: grid; justify-items: center; gap: clamp(18px, 2vw, 26px); text-align: center; max-width: 62rem; }
.post-lead__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 20px; }
.post-lead__label { color: var(--on-night-muted); display: inline-flex; align-items: center; gap: 12px; }
.post-lead__label::before, .post-lead__label::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.post-lead__label h2, .post-lead__label h3, .post-lead__label h4, .post-lead__label p { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; margin: 0; }
.post-lead__words p {
    margin-top: clamp(8px, 1vw, 16px);
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1rem + 1.9vw, 2.75rem);
    line-height: 1.24;
    letter-spacing: -0.02em;
    color: var(--on-night);
    text-wrap: balance;
}
/* A link in the opening paragraph: bold, no resting underline, the site's 2px line on hover (as in the post body). */
.post-lead__words a { color: inherit; font-weight: 650; text-decoration: none; padding-bottom: 0.04em; background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 2px; transition: background-size var(--dur-nav) var(--ease-nav); }
@media (hover: hover) { .post-lead__words a:hover { background-size: 100% 2px; background-position: left bottom; } }
.post-lead__words a:focus-visible { background-size: 100% 2px; background-position: left bottom; }
.post-lead__words .w { opacity: var(--o, 1); transition: opacity 0.2s linear; }
.js .post-lead__words .w { --o: 0.45; }
@media (max-width: 699px) { .post-lead { height: 190vh; } }

/* The body as chapters: the About page's pinned headings, with the post's own headings in the About style. */
.gh-content.is-chapters { display: block; }
.post-chapters .chapter:first-child { border-top: 0; }
.post-chapter .chapter__head h2, .post-chapter .chapter__head h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-weight: 380;
    text-wrap: balance;
}
.post-chapter .chapter__body { max-width: 38rem; display: block; }
.post-chapter .chapter__body > * + * { margin-top: 1.2em; }
.post-chapter .chapter__body p:first-child { font-size: inherit; line-height: inherit; color: inherit; }
.post-chapter .chapter__body > .kg-card, .post-chapter .chapter__body > figure { margin-top: 2em; }
.post-chapter .chapter__body > .kg-width-full img, .post-chapter .chapter__body > .kg-width-wide img { border-radius: var(--radius-s); }
.post-chapter--open .chapter__head { display: none; }
@media (min-width: 900px) { .post-chapter--open .chapter__body { grid-column: 2; } }
/* A post with no headings at all: its text column sits in the middle of the page (site.js adds .is-headless). */
.gh-content.is-headless .post-chapter--open { grid-template-columns: minmax(0, 1fr); }
.gh-content.is-headless .post-chapter--open .chapter__body { grid-column: 1; margin-inline: auto; width: 100%; }

/* 22 Field collections (In the Field, What Emerged) */
.collection-hero { padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.collection-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.collection-hero .t-display { grid-column: 1 / -1; }
.collection-hero__intro { grid-column: 2; display: grid; gap: 1em; font-family: var(--font-serif); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.65; color: #34342f; }
.collection-hero__intro p:first-child { font-size: 1.25em; line-height: 1.4; color: var(--ink); }
.collection-hero__media { grid-column: 1; grid-row: 2; position: relative; aspect-ratio: 4 / 5; max-width: 28rem; overflow: hidden; border-radius: 999px 999px var(--radius-s) var(--radius-s) / 40% 40% var(--radius-s) var(--radius-s); }
.collection-hero__media img { width: 100%; height: 120%; object-fit: cover; }
.field-grid-section { padding-bottom: var(--section); }
@media (max-width: 899px) {
    .collection-hero__grid { grid-template-columns: 1fr; }
    .collection-hero__intro, .collection-hero__media { grid-column: 1; grid-row: auto; }
    .collection-hero__media { max-width: none; aspect-ratio: 16 / 10; border-radius: var(--radius-s); }
}

/* 23 Members pages (sign in, subscribe) */
/* Sign in, Sign up, Subscribe: full-screen like the homepage hero (partials/member-page.hbs). */
.member-hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--night); color: var(--on-night); overflow: clip; }
.member-hero__ground { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.member-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: member-drift 24s var(--ease) infinite alternate; }
.member-hero__ground::after { content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 55% at 12% 92%, rgba(182, 108, 62, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(25, 26, 23, 0.7) 0%, rgba(25, 26, 23, 0) 28%),
    linear-gradient(0deg, rgba(25, 26, 23, 0.85) 0%, rgba(25, 26, 23, 0.3) 50%, rgba(25, 26, 23, 0.15) 100%); }
.member-hero__ground .grain { opacity: 0.14; z-index: 1; }
@keyframes member-drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }
.member-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--header-h, 72px); padding-top: 12px; }
.member-hero__top .site-header__brand img { filter: invert(1) sepia(0.25) brightness(1.1); }
/* Back to the site: a sand site button, the header's 40px height. */
.member-hero__home.btn { min-height: 40px; }
.member-hero__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); align-items: end; gap: 40px 64px; padding-top: 48px; padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.member-hero__title { color: var(--on-night); max-width: 11ch; font-size: min(var(--fs-hero), 15vh); }
.member-hero__aside { padding-bottom: 0.6rem; }
.member-hero__aside .member-form { gap: 14px; }
.member-hero__lede { color: var(--on-night); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 10px; }
.member-hero .t-label { color: var(--on-night-muted); }
.member-hero .member-form__row { background: rgba(25, 26, 23, 0.42); box-shadow: inset 0 0 0 1px rgba(236, 230, 216, 0.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.member-hero .member-form__row:focus-within { box-shadow: inset 0 0 0 1px var(--sand); }
.member-hero .member-form__row--single input { padding-block: 10px; }
.member-hero .member-form input { color: var(--on-night); }
.member-hero .member-form input::placeholder { color: var(--on-night-muted); }
.member-hero .member-form.success .member-form__msg--success { color: var(--sand); }
.member-hero .member-form.error .member-form__msg--error { color: #e59a86; }
.member-hero .member-form.error .member-form__row { box-shadow: inset 0 0 0 1px #e59a86; }
.member-hero .member-form.success .member-form__row, .member-hero .member-form.success .t-label { display: none; }
.member-hero__switch { font-size: var(--fs-small); color: var(--on-night-muted); margin-top: 6px; }
.member-hero__switch a { color: var(--on-night); }
.member-hero__foot { font-size: var(--fs-small); color: var(--on-night-muted); padding-bottom: 20px; }
@media (max-width: 1099px) { .member-hero__body { grid-template-columns: 1fr; } .member-hero__aside { max-width: 30rem; } }
@media (max-width: 799px) { .member-hero__title { max-width: 9ch; } }
@media (prefers-reduced-motion: reduce) { .member-hero__photo { animation: none; transform: scale(1.04); } }

/* 24 Legacy pages (templates carried over from the mb.com theme) */
.legacy-page { padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)); padding-bottom: var(--section); }
.legacy-page h1, .legacy-page .title1, .legacy-page .hacker-btn {
    font-family: var(--font-serif);
    font-size: var(--fs-title);
    font-weight: 380;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: default;
}
.legacy-page h2 { font-family: var(--font-sans); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 2em; }
.legacy-page h3 { font-family: var(--font-serif); font-size: var(--fs-h3); color: var(--ink); margin-top: 1.6em; }
/* Contact: "Contact Form" is an h2 (the page has no other h2) but keeps the h3 look. */
.legacy-page .contact-form > h2.widget-title { font-family: var(--font-serif); font-size: var(--fs-h3); font-weight: 400; letter-spacing: normal; color: var(--ink); margin-top: 1.6em; }
.legacy-page p { margin-top: 0.9em; max-width: 42rem; }
.legacy-page img { max-width: min(100%, 40rem); border-radius: var(--radius-s); margin-block: 1.5em; }
.legacy-page .hacker-tooltip, .legacy-page .decoration2, .legacy-page svg.decoration2 { display: none; }
.legacy-page .textcenter { text-align: left; }
.legacy-page ul { padding-left: 1.2em; }
.legacy-page .articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; margin-top: 48px; }
@media (max-width: 899px) { .legacy-page .articles { grid-template-columns: 1fr; } }
.legacy-page form { display: grid; gap: 14px; max-width: 34rem; margin-top: 32px; }
.legacy-page .form-input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
.legacy-page textarea.form-input { min-height: 160px; }
.legacy-page .epcl-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--rust-strong); color: #fff; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; text-decoration: none; margin-top: 24px; }
.legacy-page .demo-card { padding-block: 32px; border-top: 1px solid var(--line); }
.legacy-page .number-box span { font-family: var(--font-sans); font-weight: 600; font-size: 2.5rem; letter-spacing: -0.05em; color: var(--rust); }
.legacy-page .hide-on-mobile, .legacy-page .clear { }

/* 25 Error */
.error-page { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-top: var(--header-h); }
.error-page__code { font-family: var(--font-sans); font-weight: 500; font-size: clamp(7rem, 3rem + 18vw, 18rem); line-height: 0.85; letter-spacing: -0.07em; color: var(--rust); }
.error-page__body { display: grid; gap: 28px; justify-items: start; max-width: 36rem; }

/* 26 Motion states */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-l) var(--ease-out), transform var(--dur-l) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .word { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(10px); transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(0.45s + var(--wi, 0) * 120ms); }
.js .is-ready [data-split] .word, .js [data-split].is-ready .word { opacity: 1; filter: blur(0); transform: none; }
/* Split titles stay hidden until site.js has split them, so the plain title never flashes up and then vanishes
   before its reveal. A failsafe shows it anyway if the script never runs. */
.js [data-split]:not(.is-split) { opacity: 0; animation: split-failsafe 0s linear 2.5s forwards; }
@keyframes split-failsafe { to { opacity: 1; } }
/* Page openings (About, The Library, The Desk, The Studio, In the Field, What Emerged): one sequence.
   1. the title rises word by word straight away, line two after line one;
   2. the small circled line, then its loop draws round it;
   3. the count (or label) and the intro paragraphs;
   the background lines start with them. Nothing in the opening shows before the title. */
.js .about-intro [data-split] .word { transition-delay: calc(0.05s + var(--wi, 0) * 110ms); }
.js .about-intro:not(.is-open) [data-reveal].is-in { opacity: 0; transform: translateY(28px); }
.js .about-intro.is-open .about-intro__aside { transition-delay: 0.4s; }
.js .about-intro.is-open .about-intro__bottom > :nth-child(1) { transition-delay: 0.55s; }
.js .about-intro.is-open .about-intro__bottom > :nth-child(2) { transition-delay: 0.7s; }
.js .about-intro:not(.is-open) .about-intro__loop path,
.js .about-intro__columns { opacity: 0; transition: opacity 1.2s var(--ease) 0.3s; }
.js .about-intro.is-open .about-intro__columns { opacity: 1; }
.js [data-hero-fade] { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out) 1.1s, transform 1s var(--ease-out) 1.1s; }
.js .is-ready [data-hero-fade] { opacity: 1; transform: none; }
.js .stage__ground .ground__media { opacity: 0.1; transition: opacity 1.5s var(--ease); }
.js .stage.is-ready .stage__ground .ground__media { opacity: var(--media-o, 1); transition: none; }
.js .stage.is-entering .stage__ground .ground__media { opacity: 1; transition: opacity 1.5s var(--ease); }
.js [data-mask] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.js [data-mask].is-in > * { clip-path: inset(0 0 0 0); }

/* Reduced motion: only applies when site.js adds .reduce-motion to <html>, which it does when the visitor's system
   asks for reduced motion (RESPECT_REDUCED_MOTION is true) unless this browser opened the site with ?motion=on. */
@media (prefers-reduced-motion: reduce) {
    html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .reduce-motion.js [data-reveal], .reduce-motion.js [data-split] .word, .reduce-motion.js [data-split], .reduce-motion.js .about-intro__columns, .reduce-motion.js [data-hero-fade], .reduce-motion.js [data-mask] > * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
    .reduce-motion.js .statement__words .w { --o: 1 !important; }
    .reduce-motion.js .stage__ground .ground__media { opacity: 1; }
    .reduce-motion .statement { height: auto; }
    .reduce-motion .focus-line { display: none; }
    .reduce-motion .statement__pin { position: relative; }
    .reduce-motion .lineart { display: none; }
}

/* 27 Utilities */
.stack-s > * + * { margin-top: 12px; }
.mt-l { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.center { text-align: center; }
[hidden] { display: none !important; }
.parallax-inner { display: block; width: 100%; height: 100%; }
.brief__title a { text-decoration: none; }
.article-foot-wrap { max-width: calc(42rem + 2 * var(--gutter)); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.archive-head__avatar { margin-bottom: 24px; }
.week-list__title { margin-bottom: 12px; }
/* The paper sheet rises over the end of the dark stage. */
.stage + .explore { position: relative; z-index: 1; margin-top: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)); border-radius: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
#main > .content-cta { margin: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)) var(--gutter) var(--section); }
.article-comments { min-height: 340px; } /* Ghost comments load lazily at ~332px; reserving the space avoids a layout shift */
/* Stacked hero (tablet / narrow windows): the headline block is taller, so lift the foam further and deepen the shade behind the text. */
@media (max-width: 1099px) {
    .ground__media video, .ground__media img { inset: -26% 0 26% 0; }
    .ground__media::after {
        background:
            linear-gradient(180deg, rgba(25, 26, 23, 0.62) 0%, rgba(25, 26, 23, 0) 22%),
            linear-gradient(0deg, rgba(25, 26, 23, 0.9) 0%, rgba(25, 26, 23, 0.55) 45%, rgba(25, 26, 23, 0) 70%);
    }
}
/* Short, wide windows (landscape tablets, small laptops): keep the headline below the foam. */
@media (max-height: 700px) and (min-aspect-ratio: 1/1) {
    .ground__media video, .ground__media img { inset: -36% 0 36% 0; }
    .hero__title { font-size: min(var(--fs-hero), 12vh); }
}
/* Feather the footage's bottom edge into the ground so its shifted edge never shows as a seam. */
.ground__media video, .ground__media img {
    /* 0deg, not 180deg: the footage is flipped with scaleY(-1), which flips the mask too. */
    -webkit-mask-image: linear-gradient(0deg, #000 62%, transparent 96%);
    mask-image: linear-gradient(0deg, #000 62%, transparent 96%);
}
/* Sign in / Subscribe: shade behind the quote so it reads on any feature image. */

/* Full-width hero and header on desktop and large screens (1100px and wider).
   The 1600px container cap is lifted, the edge spacing grows with the screen (4vw, about 77px at 1920 and 102px at 2560),
   and the headline keeps growing past its 136px cap. Tablets and phones are unchanged. */
@media (min-width: 1100px) {
    .site-header__inner,
    .hero .hero__grid { max-width: none; padding-inline: max(var(--gutter), 4vw); }
    .hero__motion { right: max(var(--gutter), 4vw); }
    /* Desktop headline: follows the window's width AND height, so short wide windows don't get a giant headline,
       and sets in about three balanced lines, leaving the swan room above it. */
    .hero__title {
        font-size: clamp(5.5rem, min(6.4vw, 11.5vh), 10rem);
        max-width: 14ch;
        text-wrap: balance;
    }
}
/* Large screens: the right-hand text and button grow with the headline (unchanged at 1440 and below). */
@media (min-width: 1100px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, clamp(26.5rem, 24vw, 38rem)); }
    .hero__aside { gap: clamp(28px, 1.8vw, 44px); }
    .hero__aside p { font-size: clamp(1.0625rem, 1vw, 1.5rem); }
    .hero__aside .btn {
        --pad-l: clamp(24px, 1.3vw, 34px);
        --dot-r: clamp(22px, 1.2vw, 30px);
        min-height: clamp(44px, 2.6vw, 64px);
        padding: 1px calc(var(--dot-r) + 26px) 0 var(--pad-l);
        font-size: clamp(0.75rem, 0.62vw, 1rem);
    }
}

/* Hero image: a black swan on black water (assets/media/hero-black-swan.jpg).
   The photo's black is screened out (see below) and a wide soft mask trims the water texture,
   so the ground gradient, rings and grain show around the swan. The swan sits at 49% / 51% of the photo;
   --sx / --sy place that point on screen and --sw sets the photo's width, per layout, so it never sits behind the headline. */
.ground__media .ground__swan {
    --sx: 50%; --sy: 30%; --sw: 120%;
    inset: auto;
    left: var(--sx);
    top: var(--sy);
    width: var(--sw);
    height: auto;
    max-width: none;
    object-fit: fill;
    transform: translate(-47.1%, -51.5%); /* the swan itself sits at 47.1% / 51.5% of the photo */
    -webkit-mask-image: radial-gradient(ellipse 30% 45% at 47.1% 51.5%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 30% 45% at 47.1% 51.5%, #000 55%, transparent 100%);
}
/* Screen blend: the photo's pure black drops out, so no dark oval shows against the charcoal ground. */
.ground__media { mix-blend-mode: screen; }
@media (max-width: 1099px) { .ground__media .ground__swan { --sx: 60%; --sy: 27%; --sw: 150%; } }
@media (max-width: 1099px) and (min-aspect-ratio: 1/1) { .ground__media .ground__swan { --sx: 76%; --sy: 24%; --sw: 85%; } }
@media (max-width: 599px) { .ground__media .ground__swan { --sx: 52%; --sy: 24%; --sw: 240%; } }
@media (max-width: 1099px) and (max-height: 700px) and (min-aspect-ratio: 1/1) { .ground__media .ground__swan { --sx: 66%; --sy: 32%; --sw: 90%; } }
/* Desktop: centred horizontally and in the space between the header and the headline (about 33% down the screen).
   Width is capped by the window height (swan + reflection is ~17% of the photo width, so 186vh keeps it near a third of the height),
   which stops it growing into the header on wide, short windows. */
@media (min-width: 1100px) { .ground__media .ground__swan { --sx: 50%; --sy: 34%; --sw: min(120%, 186vh); } }

/* "Show more" under the post lists on The Library, The Desk and The Studio: a link to the archive (partials/tag-feature.hbs). */
.more-posts { display: flex; justify-content: center; padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(4rem, 3rem + 4vw, 7rem); }
.field-rows + .more-posts, .emerged-grid + .more-posts { padding-top: 0; }

/* Library archive (archive-library.hbs): one row per post on the night tone, no cards. A row holds the date, the
   title and "Read more"; pointing at it (or tabbing to it) opens it to show the excerpt and photo, and dims the
   other rows. On touch screens site.js 4f3 opens the row nearest the middle of the screen (.is-open). */
.arc-page { background: var(--night); color: var(--on-night-muted); padding-bottom: clamp(5rem, 4rem + 4vw, 9rem); }
.arc-head { position: relative; display: grid; gap: clamp(20px, 2vw, 32px); padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.arc-head > :not(.arc-head__columns) { position: relative; z-index: 1; }
/* The About page's columns (.about-intro__columns), shaded with the light ink instead of the dark so they show on
   night. The same soft oval mask fades them to nothing before any edge, so they melt into the black. */
.arc-head__columns { background: repeating-linear-gradient(90deg, rgba(236, 230, 216, 0.05) 0, rgba(236, 230, 216, 0) 80px) center top / 1120px 100% no-repeat; }
.js .arc-head.is-open .arc-head__columns { opacity: 1; }
.arc-head__crumb { color: var(--on-night-muted); }
.arc-head__crumb a { color: var(--on-night); }
.arc-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.arc-head__title { display: flex; flex-wrap: wrap; gap: 0 0.25em; font-family: var(--font-serif); font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.035em; color: var(--on-night); }
.arc-head__count { display: flex; align-items: baseline; gap: 14px; color: var(--on-night-muted); }
.arc-head__num { font-family: var(--font-serif); font-size: clamp(3rem, 2.2rem + 2.6vw, 4.75rem); line-height: 0.85; letter-spacing: -0.04em; color: #d29a72; font-variant-numeric: lining-nums; }

.arc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-night); }
.arc-row {
    --open: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: clamp(16px, 3vw, 56px);
    padding-block: clamp(22px, 2.4vw, 36px);
    border-bottom: 1px solid var(--line-night);
    transition: opacity var(--dur-m) var(--ease);
}
.arc-row__date { color: var(--on-night-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.arc-row__title { font-family: var(--font-serif); font-size: clamp(1.625rem, 1.1rem + 1.7vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.arc-row__title a { color: var(--on-night); text-decoration: none; }
/* The title link covers the whole row, so the date, photo and "Read more" all lead to the post. */
.arc-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.arc-row__title-text {
    padding-bottom: 0.02em;
    background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0% 2px;
    transition: background-size var(--dur-nav) var(--ease-nav), color 0.4s var(--ease);
}
.arc-row__go { display: inline-flex; align-items: center; gap: 10px; color: #d29a72; white-space: nowrap; }
.arc-row__go i { transition: transform var(--dur-nav) var(--ease-nav); }

/* The opening panel: the row grows from zero height to its content (grid rows 0fr → 1fr). */
.arc-row__more { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.arc-row__inner { min-height: 0; overflow: hidden; }
.arc-row__excerpt { max-width: 36rem; padding-top: 18px; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.7; color: var(--on-night-muted); opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out); }
/* The photo fills the whole row behind the date, title and excerpt: washed pale and softly blurred, so it reads as a
   light veil on the dark and never competes with the text. It fades in as the row opens. */
.arc-row { isolation: isolate; }
.arc-row__media { position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease); }
.arc-row__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.9) contrast(0.7) blur(7px); transform: scale(1.14); transition: transform 1.4s var(--ease-out); }

.arc-row.is-open .arc-row__more { grid-template-rows: 1fr; }
.arc-row.is-open .arc-row__excerpt { opacity: 1; transform: none; transition-delay: 0.12s; }
.arc-row.is-open .arc-row__media { opacity: 0.26; }
.arc-row.is-open .arc-row__media img { transform: scale(1.06); }
.arc-row.is-open .arc-row__title a { color: #d29a72; }
.arc-row.is-open .arc-row__title-text { background-size: 100% 2px; background-position: left bottom; }
.arc-row.is-open .arc-row__go i { transform: translateX(6px); }
.arc-row:focus-within .arc-row__more { grid-template-rows: 1fr; }
.arc-row:focus-within .arc-row__excerpt { opacity: 1; transform: none; }
.arc-row:focus-within .arc-row__media { opacity: 0.26; }
.arc-row:focus-within .arc-row__media img { transform: scale(1.06); }
.arc-row:focus-within .arc-row__title-text { color: #d29a72; background-size: 100% 2px; background-position: left bottom; }
.arc-row__title a:focus-visible { outline: none; }
.arc-row:has(.arc-row__title a:focus-visible) { outline: 2px solid var(--sand); outline-offset: 4px; border-radius: 2px; }
@media (hover: hover) {
    .arc-row:hover .arc-row__more { grid-template-rows: 1fr; }
    .arc-row:hover .arc-row__excerpt { opacity: 1; transform: none; transition-delay: 0.12s; }
    .arc-row:hover .arc-row__media { opacity: 0.26; }
    .arc-row:hover .arc-row__media img { transform: scale(1.06); }
    .arc-row:hover .arc-row__title-text { color: #d29a72; background-size: 100% 2px; background-position: left bottom; }
    .arc-row:hover .arc-row__go i { transform: translateX(6px); }
    .arc-list:hover .arc-row:not(:hover) { opacity: 0.42; }
}

.arc-page .pagination { margin-top: clamp(32px, 3vw, 48px); padding-top: 0; border-top: 0; color: var(--on-night-muted); }
.arc-page .pagination .btn--ink { --btn-bg: var(--sand); --btn-fg: var(--ink); }
.arc-page .pagination .btn--line { color: var(--on-night); }
.arc-page .empty-note { color: var(--on-night-muted); }
/* Membership page (custom-page-membership.hbs): centred intro with a hand-drawn ring, Monthly / Yearly switch, plan cards. */
.plans-head { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.plans-head > :not(.arc-head__columns) { position: relative; z-index: 1; }
.plans-head__mark { width: 44px; height: 44px; margin-bottom: 6px; background: #c9875a; border-radius: 2px; }
.plans-head__label { color: #d29a72; }
.plans-head__title { max-width: 18ch; margin: 0; font-family: var(--font-serif); font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; color: var(--on-night); text-wrap: balance; }
.plans-head__lede { max-width: 34rem; margin: 6px 0 0; color: var(--on-night-muted); }
/* The ring (site.js 4f8 wraps the last two words and adds the svg); it draws in once, when the title comes into view. */
.plans-ring { position: relative; display: inline-block; white-space: nowrap; }
.plans-ring svg { position: absolute; left: -9%; top: -16%; width: 118%; max-width: none; height: 138%; overflow: visible; pointer-events: none; color: #d29a72; }
.plans-ring path { fill: none; stroke: currentColor; stroke-width: 0.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.35s; }
.plans-ring.is-drawn path { stroke-dashoffset: 0; }
.reduce-motion .plans-ring path { stroke-dashoffset: 0; transition: none; }

.plans-switch { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 clamp(28px, 3vw, 44px); }
.plans-switch[hidden] { display: none; }
.plans-switch__side { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--on-night-muted); cursor: pointer; transition: color var(--dur-s) var(--ease); user-select: none; }
.plans-switch__side.is-on { color: var(--on-night); }
.plans-switch__save { color: #d29a72; }
.plans-switch__track { position: relative; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: rgba(236, 230, 216, 0.18); cursor: pointer; transition: background 0.3s var(--ease); -webkit-tap-highlight-color: transparent; }
.plans-switch__track[aria-checked="true"] { background: #c9875a; }
.plans-switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sand); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
.plans-switch__track[aria-checked="true"] .plans-switch__thumb { transform: translateX(20px); }
.plans-switch__track:focus-visible { outline: 2px solid #d29a72; outline-offset: 3px; }

.plans__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 1.4vw, 20px); }
.plan {
    position: relative; display: flex; flex-direction: column; flex: 1 1 300px; max-width: 420px;
    padding: clamp(24px, 2.4vw, 34px); border-radius: var(--radius-s); background: var(--night-2);
    box-shadow: inset 0 0 0 1px var(--line-night); transition: box-shadow 0.4s var(--ease);
}
.plan:hover, .plan:focus-within { box-shadow: inset 0 0 0 1px rgba(236, 230, 216, 0.55); }
.plan__name { margin: 0; font-family: var(--font-serif); font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); font-weight: 400; line-height: 1.1; color: var(--on-night); }
.plan__desc { margin: 8px 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--on-night-muted); }
.plan__prices { display: grid; margin-top: clamp(24px, 2.4vw, 34px); }
.plan__prices > * { grid-area: 1 / 1; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.plan__amount { font-family: var(--font-serif); font-size: clamp(2.5rem, 2.1rem + 1.2vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; color: #d29a72; font-variant-numeric: lining-nums; }
.plan__per { color: var(--on-night-muted); }
[data-period="monthly"] .plan__price[data-period="yearly"],
[data-period="yearly"] .plan__price[data-period="monthly"] { opacity: 0; transform: translateY(8px); visibility: hidden; }
.plan__trial { margin: 10px 0 0; font-size: var(--fs-small); color: #d29a72; }
.plan__list { display: grid; gap: 12px; margin: clamp(22px, 2.2vw, 30px) 0 0; padding: 0; list-style: none; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.55; color: var(--on-night); }
.plan__check { flex: none; margin-top: 1px; color: #d29a72; }
.plan__go { margin-top: auto; padding-top: clamp(26px, 2.6vw, 34px); }
.plan .btn--line { color: var(--on-night); }
@media (hover: hover) {
    .plan:hover .btn__label { transform: translateX(var(--pad-l, 24px)); }
    .plan:hover .btn__dot::before { transform: translateX(calc(-100% + 5px)); }
}
.plans__signin { margin: clamp(28px, 3vw, 40px) 0 0; text-align: center; color: var(--on-night-muted); }
.plans__signin a { color: var(--on-night); font-weight: 600; }

/* Contact page (custom-page-contact.hbs): the archive header, then the form on a dark card. */
.contact-page__body { display: grid; gap: clamp(20px, 2vw, 28px); }
@media (min-width: 1024px) { .contact-page__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; align-items: start; } }
.contact-page__aside { padding-top: 14px; border-top: 1px solid var(--line-night); }
.contact-page__heading { margin: 0; max-width: 26rem; font-family: var(--font-serif); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; color: var(--on-night); text-wrap: pretty; }
.contact-page__mail { color: #d29a72; }
.contact-page__social { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 0 -10px; padding: 0; list-style: none; }
.contact-page__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-night-muted); text-decoration: none; transition: color 0.3s ease, background-color 0.3s ease; }
.contact-page__social a:hover, .contact-page__social a:focus-visible { color: #d29a72; background: rgba(236, 230, 216, 0.08); }
.contact-page__social a:focus-visible { outline: 2px solid #d29a72; outline-offset: 2px; }
.contact-page__social i { font-size: 19px; line-height: 1; }
.contact-card { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line-night); border-radius: var(--radius-s); background: var(--night-2); }
.contact-form { display: grid; gap: 20px; }
.contact-form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 599px) { .contact-form__pair { grid-template-columns: 1fr; } }
.contact-form__field { display: grid; gap: 8px; }
.contact-form__label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--on-night-muted); }
.contact-form__input {
    width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: var(--radius-s);
    background: rgba(236, 230, 216, 0.06); box-shadow: inset 0 0 0 1px rgba(236, 230, 216, 0.2);
    color: var(--on-night); font: inherit; font-size: 1rem; /* 16px: phones don't zoom in */
    transition: box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}
.contact-form__input--area { min-height: 180px; resize: vertical; line-height: 1.6; }
.contact-form__input:hover { box-shadow: inset 0 0 0 1px rgba(236, 230, 216, 0.4); }
.contact-form__input:focus { outline: none; background: rgba(236, 230, 216, 0.09); box-shadow: inset 0 0 0 1px var(--sand); }
.contact-form__input:focus-visible { outline: 2px solid #d29a72; outline-offset: 2px; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__send { display: flex; justify-content: flex-start; padding-top: 4px; }
/* Tag pages and All articles (partials/tag-index.hbs, cards/tag-card.hbs): the archive header, a row of tag
   filters, then cards on the night tone, 3 a row. */
.tag-page__desc { max-width: 40rem; color: var(--on-night-muted); }
/* Author pages (author.hbs): photo, bio and links under the title. */
.author-page__about { display: flex; gap: 20px; align-items: flex-start; }
.author-page__avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; filter: grayscale(1); border: 1px solid rgba(236, 230, 216, .2); }
.author-page__about .tag-page__desc { margin: 0; }
.author-page__place { margin: 12px 0 0; color: var(--on-night-muted); }
/* Social icons, the same set as the author box at the bottom of posts (subscribe-author.hbs); LinkedIn always shows. */
.author-page__social { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 -10px; padding: 0; list-style: none; }
.author-page__social:not(:has(li)) { display: none; }
.author-page__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-night-muted); text-decoration: none; transition: color 0.3s ease, background-color 0.3s ease; }
.author-page__social a:hover, .author-page__social a:focus-visible { color: #d29a72; background: rgba(236, 230, 216, 0.08); }
.author-page__social a:focus-visible { outline: 2px solid #d29a72; outline-offset: 2px; }
.author-page__social i { font-size: 19px; line-height: 1; }
.tag-filter { margin-bottom: clamp(28px, 3vw, 44px); }
.tag-filter__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag-filter__chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px;
    border: 1px solid rgba(236, 230, 216, 0.2); color: var(--on-night); text-decoration: none; white-space: nowrap;
    font-size: 0.9375rem; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tag-filter__chip:hover { border-color: rgba(236, 230, 216, 0.55); }
.tag-filter__chip.is-current { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.tag-filter__chip:focus-visible { outline: 2px solid #d29a72; outline-offset: 3px; }
@media (max-width: 767px) {
    /* Pills wrap onto more rows, a little smaller, so none is cut off at the screen edge. */
    .tag-filter .tag-filter__list { gap: 8px; }
    .tag-filter__chip { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
}
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 30px); }
@media (max-width: 1023px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tcards { grid-template-columns: minmax(0, 1fr); } }
.tcard {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--radius-s); background: var(--night-2); border: 1px solid rgba(236, 230, 216, 0.1);
    transition: border-color 0.4s var(--ease), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tcard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.tcard__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.tcard--plain .tcard__media {
    display: grid; place-items: center;
    background: radial-gradient(90% 60% at 70% 30%, rgba(154, 155, 129, 0.28), transparent 70%), radial-gradient(80% 50% at 10% 100%, rgba(182, 108, 62, 0.22), transparent 70%), var(--night);
}
.tcard__plain { font-family: var(--font-serif); font-size: var(--fs-h3); color: var(--on-night-muted); }
.tcard__time {
    position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px; background: rgba(25, 26, 23, 0.82); color: var(--on-night);
    font-size: 0.8125rem; line-height: 1.2;
}
.tcard__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 1.5vw, 26px); }
.tcard__tag {
    align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: rgba(236, 230, 216, 0.1);
    color: var(--on-night); font-size: 0.8125rem; font-weight: 600;
}
.tcard__title { margin: 16px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.tcard__title a { color: var(--on-night); text-decoration: none; transition: color 0.3s var(--ease); }
.tcard__title a::after { content: ""; position: absolute; inset: 0; } /* the whole card opens the post */
.tcard__excerpt { margin: 14px 0 0; color: var(--on-night-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; }
.tcard__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.tcard__avatar--none { background: rgba(236, 230, 216, 0.12); }
.tcard__who { display: grid; gap: 2px; font-size: 0.875rem; line-height: 1.3; }
.tcard__name { color: var(--on-night); }
.tcard__date { color: var(--on-night-muted); }
.tcard__lock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--on-night-muted); }
.tcard__lock svg { width: 13px; height: 13px; }
@media (hover: hover) {
    .tcard:hover { border-color: rgba(236, 230, 216, 0.28); transform: translateY(-4px); }
    .tcard:hover .tcard__img { transform: scale(1.04); }
    .tcard:hover .tcard__title a { color: #d29a72; }
}
.tcard:focus-within { border-color: rgba(236, 230, 216, 0.28); }
.tcard__title a:focus-visible { color: #d29a72; outline: none; }
.tcard:has(.tcard__title a:focus-visible) { outline: 2px solid #d29a72; outline-offset: 3px; }
.reduce-motion .tcard:hover, .reduce-motion .tcard:hover .tcard__img { transform: none; }

@media (max-width: 899px) {
    .arc-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
    .arc-row__date { grid-column: 1; grid-row: 1; }
    .arc-row__go { grid-column: 2; grid-row: 1; }
    .arc-row__title { grid-column: 1 / -1; grid-row: 2; }
    .arc-row__more { grid-column: 1 / -1; }
    .arc-row__inner { gap: 0; }

}
@media (prefers-reduced-motion: reduce) {
    .arc-row, .arc-row__more, .arc-row__excerpt, .arc-row__media, .arc-row__media img, .arc-row__go i { transition: none; }
}
.reduce-motion .arc-row, .reduce-motion .arc-row__more, .reduce-motion .arc-row__excerpt, .reduce-motion .arc-row__media, .reduce-motion .arc-row__media img { transition: none; }

/* In the Field: the four traversal cards (partials/field-traversals.hbs), the homepage station cards four across. */
.explore__grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-kinds { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
@media (max-width: 1099px) {
    .explore__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explore__grid--four > :last-child { grid-column: auto; }
}
@media (max-width: 599px) { .explore__grid--four { grid-template-columns: 1fr; } }
/* What Emerged: the two subject cards (partials/emerged-kinds.hbs), two across down to phone width. */
.explore__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1099px) { .explore__grid--two > :last-child { grid-column: auto; } }
@media (max-width: 599px) { .explore__grid--two { grid-template-columns: 1fr; } }

/* Traversal archives: featured posts on a circular carousel (partials/traversal-archive.hbs, site.js 4f4).
   Cards sit on an arc: the front card at the top, two either side lower, smaller and fainter. site.js sets each
   card's --x, --y, --s, --o (brightness), --vis and z-index, and the arc's width (--rx) from the space available. */
.feat { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.feat__label { color: var(--on-night-muted); margin: 0 0 clamp(1.5rem, 1rem + 1vw, 2rem); }
.feat__ring { --card-w: 260px; --card-h: 172px; --ry: 104px; display: grid; justify-items: center; gap: 28px; outline: none; }
.feat__ring:focus-visible { outline: 2px solid var(--on-night-muted); outline-offset: 10px; border-radius: var(--radius-m); }
.feat__track { position: relative; width: 100%; height: calc(var(--ry) * 2 + var(--card-h)); }
.feat__card {
    --x: 0px; --y: 0px; --s: 1; --o: 1; --vis: 1;
    position: absolute;
    left: 50%;
    top: calc(var(--ry) + var(--card-h) / 2);
    width: var(--card-w);
    height: var(--card-h);
    margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-m);
    border: 1px solid rgba(236, 230, 216, 0.12);
    background: linear-gradient(180deg, #302f2a, #1e1e1b);
    color: var(--on-night);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    opacity: var(--vis);
    transform: translate(var(--x), var(--y)) scale(var(--s));
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feat__card::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #1b1b19; opacity: calc(1 - var(--o)); pointer-events: none; transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1); } /* back cards dim without letting the ones behind show through */
.feat__card.is-active { box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.6); border-color: rgba(236, 230, 216, 0.22); }
.feat__card.is-away { pointer-events: none; }
/* The post photo, pale and soft behind the text, like the archive rows. */
.feat__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.16; transition: opacity 0.5s var(--ease); }
.feat__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.6) contrast(0.8) blur(2px); }
.feat__card.is-active .feat__bg { opacity: 0.24; }
.feat__date { align-self: flex-start; padding: 3px 9px; border-radius: 99px; background: rgba(236, 230, 216, 0.1); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(236, 230, 216, 0.72); }
.feat__text { display: grid; gap: 6px; }
.feat__title { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.2; color: rgba(236, 230, 216, 0.82); transition: color 0.3s var(--ease); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat__card.is-active .feat__title { color: var(--on-night); }
.feat__excerpt { font-size: 0.8125rem; line-height: 1.5; color: rgba(236, 230, 216, 0.45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat__card.is-active .feat__excerpt { color: rgba(236, 230, 216, 0.66); }
@media (hover: hover) {
    .feat__card:not(.is-active):hover { box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.45); }
    .feat__card.is-active:hover .feat__title { color: #d29a72; }
}
.feat__card:focus-visible { outline: 2px solid #d29a72; outline-offset: 3px; }
/* The counter: big number in the hollow of the arc. */
.feat__count { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; display: grid; justify-items: center; pointer-events: none; text-align: center; }
.feat__num { font-family: var(--font-serif); font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem); line-height: 1; color: rgba(236, 230, 216, 0.9); }
.feat__num.is-in { animation: feat-num 0.4s ease-out both; }
@keyframes feat-num { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feat__of { margin-top: 4px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(236, 230, 216, 0.4); }
.feat__controls { display: flex; align-items: center; gap: 16px; }
.feat__btn {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(236, 230, 216, 0.14); background: rgba(236, 230, 216, 0.05);
    color: rgba(236, 230, 216, 0.72); cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.25s var(--ease);
}
.feat__btn:hover { background: rgba(236, 230, 216, 0.1); color: var(--on-night); transform: scale(1.08); }
.feat__btn:active { transform: scale(0.95); }
.feat__btn:focus-visible { outline: 2px solid rgba(236, 230, 216, 0.4); outline-offset: 3px; }
.feat__dots { display: flex; align-items: center; gap: 2px; }
.feat__dot { width: 22px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.feat__dot::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: rgba(236, 230, 216, 0.22); transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.feat__dot:hover::before { background: rgba(236, 230, 216, 0.45); }
.feat__dot[aria-current="true"]::before { width: 20px; background: rgba(236, 230, 216, 0.85); }
/* One featured post: no counter or controls, just the card. */
.feat__ring.is-single .feat__count, .feat__ring.is-single .feat__controls { display: none; }
/* Pause button: set slightly apart from the arrows; hidden when nothing turns on its own (reduced motion). */
.feat__btn--pause { margin-left: 8px; font-size: 0.8em; }
.feat__ring.is-still .feat__btn--pause { display: none; }
.feat__ring.is-single .feat__track { height: calc(var(--card-h) + 8px); }
.feat__ring.is-single .feat__card { top: calc(var(--card-h) / 2); }
@media (max-width: 599px) {
    .feat__ring { --card-w: 196px; --card-h: 150px; --ry: 84px; }
    .feat__title { font-size: 1.0625rem; }
    .feat__excerpt { -webkit-line-clamp: 1; }
}

/* Article card flags (partials/cards/featured.hbs and access.hbs), on every article card.
   Featured: a small rust pill (plus a rust bar down the left of archive rows). Members only: a lock in a soft circle.
   Paid members only: a star in a rust circle. Rust is lighter on dark cards and deeper on light ones. */
.arc-row, .desk-card, .lib-panel, .tcard { --flag: #d29a72; }
.post-card, .field-card, .field-row, .emerged-item { --flag: var(--rust-strong); }
.post-flags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-flag {
    display: inline-flex; align-items: center; gap: 6px; flex: none; width: max-content;
    padding: 3px 10px 3px 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--flag, #d29a72) 16%, transparent); color: var(--flag, #d29a72);
    font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase;
}
.post-flag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.post-access {
    display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
    background: color-mix(in srgb, currentColor 14%, transparent); vertical-align: middle;
}
.post-access svg { width: 12px; height: 12px; }
.post-access--paid { color: var(--flag, #d29a72); background: color-mix(in srgb, var(--flag, #d29a72) 18%, transparent); }

/* Where each card puts them. */
.arc-row.is-featured::before { content: ""; position: absolute; left: calc(var(--gutter) * -0.5); top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: #c9875a; }
.arc-row__date { display: inline-flex; align-items: center; gap: 10px; }
.arc-row__title .post-flag { margin-right: 14px; vertical-align: 0.5em; }
.desk-card__date { display: inline-flex; align-items: center; gap: 10px; }
.desk-card__head .post-flag { background: rgba(20, 18, 16, 0.55); }
.desk-card__date .post-access { background: rgba(20, 18, 16, 0.55); }
.lib-panel__body > .post-flags .post-access { color: var(--on-night); }
.emerged-item__body > .post-flags { justify-content: center; }
.post-card__meta { align-items: center; }
.tcard__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tcard__lock:empty { display: none; }
.lib-panel__body > .post-flags .post-flag, .lib-panel__body > .post-flags .post-access { background: rgba(20, 18, 16, 0.6); }

/* Members-only and paid posts and pages: the "This post is for subscribers" box (partials/content-cta.hbs) sits
   centred on the page at every width, under the free preview if there is one (site.js keeps it out of the chapters). */
.gh-content > .content-cta { justify-self: center; width: 100%; max-width: 52rem; }
.gh-content.is-chapters > .content-cta { width: calc(100% - 2 * var(--gutter)); margin: clamp(2.5rem, 2rem + 3vw, 5rem) auto 0; }
.gh-content.has-gate > .content-cta:first-child { margin-top: clamp(3rem, 2rem + 5vw, 7rem); }
.content-cta h2, .content-cta p { max-width: 36rem; text-wrap: balance; }
.content-cta h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, var(--fs-h2)); line-height: 1.1; }
.content-cta .content-cta__actions > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }

/* About: author bio after the last chapter. A black-and-white portrait beside the name, place, bio and links. */
.about-author { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; padding-block: clamp(4rem, 3rem + 4vw, 7.5rem) var(--section); border-top: 1px solid var(--line); }
.about-author__photo { justify-self: end; width: min(100%, 26rem); aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--tint); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
/* The headshot exactly as supplied: full frame and in colour (no crop, no filter). */
.about-author__photo:has(img) { aspect-ratio: auto; }
.about-author__photo img { display: block; width: 100%; height: auto; }
.about-author__mark { width: 58%; aspect-ratio: 5 / 1; background: var(--rust); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.about-author__body { display: grid; justify-items: start; gap: 14px; max-width: 36rem; }
.about-author__label { color: var(--muted); }
.about-author__name { font-family: var(--font-serif); font-weight: 380; font-size: var(--fs-title); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.about-author__place { color: var(--rust-strong); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em; }
.about-author__bio { margin-top: 10px; font-family: var(--font-serif); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.7; color: #34342f; text-wrap: pretty; }
.about-author__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 12px; }
.about-author__more { color: var(--rust-strong); }
.about-author__social { margin: 0 0 0 -10px; }
@media (max-width: 899px) {
    .about-author { grid-template-columns: minmax(0, 1fr); }
    .about-author__photo { justify-self: start; width: min(100%, 22rem); }
}

/* About: newsletter as a postcard. Dark card with grain, message left, dashed divider, postmark and form right. */
.postcard-sub { padding-top: 0; }
.postcard { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); border-radius: var(--radius-m); background: radial-gradient(70% 90% at 100% 0%, rgba(182, 108, 62, 0.18), transparent 70%), var(--night); }
.postcard > .grain { z-index: 0; }
.postcard__message, .postcard__address { position: relative; z-index: 1; padding: clamp(32px, 1rem + 4vw, 80px); }
.postcard__message { display: grid; align-content: center; gap: clamp(20px, 1rem + 1vw, 32px); }
.postcard__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.75rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--on-night); text-wrap: balance; }
.postcard__title .accent { display: block; margin-top: 0.15em; font-size: 0.62em; line-height: 1.2; letter-spacing: -0.015em; }
.postcard__text { max-width: 32rem; color: var(--on-night-muted); font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem); line-height: 1.7; }
/* The address side: a dashed line down its left edge, like the back of a postcard. */
.postcard__address { display: grid; align-content: space-between; gap: 40px; background-image: linear-gradient(var(--line-night) 50%, transparent 50%); background-size: 1px 12px; background-repeat: repeat-y; background-position: left top; }
.postcard__stamp { position: relative; justify-self: end; width: clamp(104px, 7rem + 2vw, 136px); aspect-ratio: 1; color: #d29a72; transform: rotate(-8deg); }
.postcard__stamp svg { width: 100%; height: 100%; overflow: visible; }
.postcard__stamp circle { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: 0.7; }
.postcard__stamp circle + circle { stroke-dasharray: 2 3; opacity: 0.5; }
.postcard__stamp text { fill: currentColor; font-family: var(--font-sans); font-size: 7.8px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.postcard__mark { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 5 / 1; translate: -50% -50%; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.postcard .member-form { align-self: end; }
.postcard .member-form__note { color: var(--on-night-muted); }
.postcard .member-form.success .member-form__msg--success { color: var(--sand); }
.postcard .member-form.error .member-form__msg--error { color: #e59a86; }
.postcard .member-form.error .member-form__row { box-shadow: inset 0 0 0 1px #e59a86; }
.postcard .member-form__row:focus-within { box-shadow: inset 0 0 0 1px var(--on-night); }
.postcard .subscribe__member { color: var(--on-night-muted); }
.postcard .subscribe__member strong { color: var(--on-night); }
/* The form needs about 26rem to keep the email box and button on one line; narrower, they stack. */
.postcard__address { container-type: inline-size; grid-template-columns: minmax(0, 1fr); }
@container (max-width: 26rem) {
    .postcard .member-form__row { flex-direction: column; border-radius: 22px; }
    .postcard .member-form .btn { justify-content: center; }
}
@media (max-width: 1199px) {
    .postcard { grid-template-columns: minmax(0, 1fr); }
    .postcard__message { padding-bottom: 32px; }
    .postcard__address { padding-top: 40px; background-image: linear-gradient(90deg, var(--line-night) 50%, transparent 50%); background-size: 12px 1px; background-repeat: repeat-x; }
    .postcard__stamp { position: absolute; top: -52px; right: clamp(20px, 6vw, 48px); width: 92px; }
    .postcard__address { padding-top: 64px; }
}

/* What Emerged: three subject cards side by side on wide screens (two, then the last full width, on tablets; one on phones). */
.explore__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .explore__grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .explore__grid--three { grid-template-columns: 1fr; } }
/* A Different Arrangement card: the newsletter's teal from its covers, with the cover's line and arrow. */
/* Drawn cards (BRAIN, A Different Arrangement): black and white, in the brand's near-black (--night) with the off-white
   line drawing instead of a photograph. Grayscale keeps the faint glow neutral. */
.station-card--drawn .station-card__bg { background: radial-gradient(80% 55% at 80% 20%, rgba(236, 230, 216, 0.06), transparent 70%), var(--night); filter: grayscale(1); }
.station-card--drawn .station-card__bg::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 55%); }
.station-card__line { position: absolute; left: 24px; right: 24px; top: calc(var(--lift) + 30%); width: calc(100% - 48px); height: 34px; overflow: visible; }
.station-card__line path { fill: none; stroke: rgba(236, 230, 216, 0.85); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.station-card__logo { position: absolute; left: 24px; top: 50%; transform: translateY(-58%); height: 30%; width: auto; max-width: calc(100% - 48px); overflow: visible; }
.station-card__logo path, .station-card__logo circle { fill: none; stroke: rgba(236, 230, 216, 0.85); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* A Different Arrangement archive: the approved introduction under the title, and edition numbers counting down. */
.arc-intro { max-width: 46rem; }
.arc-intro p { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem); line-height: 1.6; color: var(--on-night); text-wrap: pretty; }
.arc-editions__label { margin-bottom: 20px; color: var(--on-night-muted); }
.arc-list--editions .arc-row__date::before { content: counter(edition, decimal-leading-zero); min-width: 2ch; color: #d29a72; font-weight: 600; }
.arc-list--editions .arc-row__date::after { content: ""; counter-increment: edition -1; }

/* A Different Arrangement edition: the cover whole and in colour under the title, and the author bio at the end. */
.edition-cover { margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.edition-cover img { display: block; width: 100%; max-width: 68rem; height: auto; margin-inline: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-m); box-shadow: 0 0 0 1px var(--line); }
.edition-bio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px clamp(20px, 2.5vw, 36px); align-items: start; max-width: 42rem; margin: clamp(3rem, 2rem + 3vw, 5rem) auto 0; padding-top: clamp(32px, 3vw, 48px); border-top: 1px solid var(--line); }
.edition-bio__photo { width: clamp(72px, 4.5rem + 2vw, 104px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--tint); }
.edition-bio__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.edition-bio__body { display: grid; gap: 12px; }
.edition-bio__label { color: var(--muted); }
.edition-bio__text { font-family: var(--font-serif); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.65; color: #34342f; }
.edition-bio__name { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.edition-bio__name:hover, .edition-bio__name:focus-visible { color: var(--rust-strong); }
.edition-bio__source .link { color: var(--rust-strong); }
@media (max-width: 599px) { .edition-bio { grid-template-columns: minmax(0, 1fr); } }
