/* ==========================================================================
   N/EL Partners — Base styles
   Sections: 1 reset · 2 layout · 3 type · 4 header/nav · 5 hero
             6 components · 7 footer · 8 motion helpers
   ========================================================================== */

/* ---- 1. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-fg); }

/* ---- 2. Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .5); }
.section + .section { padding-top: 0; }
.rule { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(12, 1fr); }
.col-4  { grid-column: span 12; }
.col-6  { grid-column: span 12; }
.col-8  { grid-column: span 12; }
.col-5  { grid-column: span 12; }
.col-7  { grid-column: span 12; }
.col-12 { grid-column: span 12; }
@media (min-width: 900px) {
  .col-4  { grid-column: span 4; }
  .col-5  { grid-column: span 5; }
  .col-6  { grid-column: span 6; }
  .col-7  { grid-column: span 7; }
  .col-8  { grid-column: span 8; }
  /* offsets leave one empty column after the preceding block */
  .col-4.offset-1 { grid-column: 9 / 13; }
  .col-5.offset-1 { grid-column: 8 / 13; }
  .col-7.offset-1 { grid-column: 6 / 13; }
}

/* ---- 3. Type ------------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--t-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.01em; }
.display--hero { font-size: var(--t-hero); line-height: var(--lh-tight); letter-spacing: -.03em; }
.display--bold { font-weight: 800; }
.display--light { font-weight: 200; }
.lead { font-size: var(--t-lead); line-height: 1.4; }
.small { font-size: var(--t-small); }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }
.measure { max-width: 34em; }
.measure-narrow { max-width: 24em; }
p + p { margin-top: var(--s-3); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.stat { font-family: var(--font-display); font-size: var(--t-stat); font-weight: 800; line-height: 1; letter-spacing: -.03em; }

.link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--dur-fast), gap var(--dur-fast);
}
.link:hover { color: var(--accent); gap: var(--s-3); }

.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: .9em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  background: var(--accent); color: var(--accent-fg);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.hero .btn--ghost:hover { background: #fff; color: var(--nel-blue-deep); }

/* ---- 4. Header & navigation -------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--fg);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur);
}
.header.on-hero { color: var(--hero-fg); }              /* white while over the gradient */
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled.on-hero { background: transparent; box-shadow: none; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.header__brand { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }

/* Live clock — day, date, time (and location) beside the logo */
.clock { font-size: 10px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; opacity: .85; white-space: nowrap; }
.clock__place { display: none; align-items: center; gap: .5em; }
.clock__place::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.header.on-hero .clock__place::before { background: #fff; }
.clock__secs { display: none; }
@media (min-width: 900px) { .clock { font-size: 11px; } .clock__place { display: flex; } .clock__secs { display: inline; } }
/* Logo: the SVG is used as a mask so it takes the current text colour */
.logo { display: block; height: 30px; aspect-ratio: 266.17 / 70.22; background: currentColor; -webkit-mask: url("../img/logo-lockup.svg") no-repeat center / contain; mask: url("../img/logo-lockup.svg") no-repeat center / contain; }

.nav { display: none; align-items: center; gap: var(--s-5); }
.nav a { position: relative; font-weight: 500; padding-block: .25em; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } }

.header__tools { display: flex; align-items: center; gap: var(--s-3); }

/* Theme toggle — a small pill with sun/moon */
.theme-toggle {
  width: 52px; height: 30px; border-radius: 999px; position: relative;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: background var(--dur-fast);
}
.theme-toggle__knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: currentColor;
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease-out);
}
.theme-toggle__knob svg { width: 14px; height: 14px; }
.theme-toggle__knob .sun { display: block; color: var(--bg); }
.theme-toggle__knob .moon { display: none; color: var(--bg); }
.header.on-hero .theme-toggle__knob svg { color: var(--nel-blue-deep); }
[data-theme="dark"] .theme-toggle__knob { transform: translateX(22px); }
[data-theme="dark"] .theme-toggle__knob .sun { display: none; }
[data-theme="dark"] .theme-toggle__knob .moon { display: block; }

/* Mobile menu */
.menu-btn { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.menu-btn span { position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; margin: -1px 0 0 -11px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child  { transform: translateY(4px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child  { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--gutter) var(--s-6);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s var(--dur);
}
.menu-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu a { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 4rem); line-height: 1.1; letter-spacing: -.02em; padding-block: .15em; border-bottom: 1px solid var(--line); }
.menu a[aria-current="page"] { color: var(--accent); }
.menu__foot { margin-top: auto; padding-top: var(--s-5); }
@media (min-width: 900px) { .menu { display: none; } }

/* ---- 5. Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + var(--s-6)) 0 var(--s-6);
  color: var(--hero-fg);
  isolation: isolate;
}
.hero--short { min-height: 72svh; }
.hero__bg { position: absolute; inset: -18% 0; z-index: -1; will-change: transform; }
.hero__bg canvas { width: 100%; height: 100%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 37, 140, .35), transparent 50%); }
.hero__content { position: relative; will-change: transform, opacity; }
.hero .eyebrow { color: inherit; opacity: .85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: var(--s-6); font-size: var(--t-small); letter-spacing: .1em; text-transform: uppercase; opacity: .7; display: none; }
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* ---- 6. Components ------------------------------------------------------- */

/* Numbered rows (Pentagram-style list) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; gap: var(--s-3);
  grid-template-columns: minmax(3rem, auto) 1fr;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.row__n { font-family: var(--font-display); color: var(--accent); font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; }
.row__title { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; }
.row__body { color: var(--fg-muted); grid-column: 2; }
@media (min-width: 900px) {
  .row__body { grid-column: auto; }
  .row { grid-template-columns: minmax(4rem, auto) 2fr 3fr; gap: var(--s-4); padding: var(--s-5) 0; }
  .row__title:last-child { grid-column: 2 / -1; }   /* a row without a body uses the full width */
}
.row--link { transition: padding-left var(--dur) var(--ease-out); }
.row--link:hover { padding-left: var(--s-3); }

/* Cards */
.cards { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-4);
  min-height: 16rem;
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.card__n { font-size: var(--t-small); font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.card h3 { margin-top: auto; }
.card p { color: var(--fg-muted); }
.card--accent { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.card--accent .card__n, .card--accent p { color: inherit; opacity: .85; }
.card--ink { background: var(--fg); color: var(--bg); box-shadow: none; }
.card--ink .card__n { color: var(--accent); }
.card--ink p { color: inherit; opacity: .75; }
.tag { display: inline-block; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35em .7em; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; opacity: .8; }

/* Media with parallax — the wrapper clips, the image is oversized and moves */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey-100); aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1; }
.media img { position: absolute; inset: -18% 0; width: 100%; height: 136%; object-fit: cover; will-change: transform; }
[data-theme="dark"] .media { background: var(--grey-900); }

/* Work grid */
.work-grid { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, 1fr); } .work-grid > :nth-child(4n+2), .work-grid > :nth-child(4n+3) { margin-top: var(--s-6); } }
.work { display: block; }
.work__meta { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); align-items: baseline; }
.work__title { font-family: var(--font-display); font-size: var(--t-h3); transition: color var(--dur-fast); }
.work:hover .work__title { color: var(--accent); }
.work__tag { font-size: var(--t-small); color: var(--fg-muted); white-space: nowrap; }

/* Steps (method) */
.steps { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); counter-reset: step; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(7, 1fr); } }
.step { padding: var(--s-4) var(--s-3); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line); min-height: 11rem; display: flex; flex-direction: column; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: var(--t-small); font-weight: 600; color: var(--accent); }
.step strong { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); margin-top: auto; }
.step span { color: var(--fg-muted); font-size: var(--t-small); }
.step--accent { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.step--accent::before, .step--accent span { color: inherit; opacity: .85; }

/* Stats */
.stats { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats p { margin-top: var(--s-2); color: var(--fg-muted); max-width: 16em; }

/* Simple two-column text list (clients, sectors) */
.list-cols { columns: 2; column-gap: var(--s-5); }
@media (min-width: 900px) { .list-cols { columns: 3; } }
.list-cols li { break-inside: avoid; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }

/* Big statement band — the statement runs the full container width */
.band { background: var(--fg); color: var(--bg); }
.band .display--hero { max-width: none; }
.section.band { padding-top: var(--section); }          /* the statement needs air above it, even after another section */
.band + .section { padding-top: var(--section); }        /* and the section that follows the band starts with air too */
.band .accent { color: var(--accent); }
[data-theme="dark"] .band { background: var(--bg-raised); color: var(--fg); }

/* Forms (contact) */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--t-small); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field textarea {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: .6em 0;
  transition: border-color var(--dur-fast);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 6em; resize: vertical; }

/* Contact details */
.contact-list dt { font-size: var(--t-small); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); margin-top: var(--s-4); }
.contact-list dd { font-family: var(--font-display); font-size: var(--t-h3); margin-top: var(--s-1); }

/* News entries */
.news { display: grid; gap: var(--s-3); grid-template-columns: 1fr; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.news:first-child { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .news { grid-template-columns: 10rem 1fr 1fr; gap: var(--s-4); } }
.news time { font-size: var(--t-small); color: var(--fg-muted); }
.news h2 { font-size: var(--t-h3); }

/* ---- 7. Footer ----------------------------------------------------------- */
.footer { padding: var(--s-7) 0 var(--s-5); border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 2fr 1fr 1fr; } }
.footer__logo { height: 40px; }
.footer h4 { font-size: var(--t-eyebrow); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--s-3); }
.footer li + li { margin-top: var(--s-2); }
.footer a:hover { color: var(--accent); }
.footer__bottom { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; font-size: var(--t-small); color: var(--fg-muted); }

/* ---- 8. Motion helpers --------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 80ms); }
.stagger.in > *:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .stagger > * { opacity: 1; transform: none; }
  .hero__bg, .hero__content, .media img { transform: none !important; }
}

/* ---- 9. Loader & page transitions --------------------------------------- */
/* First visit in a session: a newspaper-style masthead with a counter.
   Later navigations swap only <main>: the header and clock stay, a page-coloured
   veil fades over the old content and the new content rises in underneath. */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); color: var(--fg);
  display: none; flex-direction: column; justify-content: space-between;
  padding: var(--s-4) var(--gutter);
  transition: transform var(--dur-slow) var(--ease-out);
}
html.is-loading .loader { display: flex; }
html.is-loaded .loader { transform: translateY(-101%); }
.loader__row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-eyebrow); letter-spacing: var(--track-eyebrow); text-transform: uppercase; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.loader__row--foot { border-bottom: 0; border-top: 1px solid var(--line); color: var(--fg-muted); }
.loader__mid { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.loader__word { font-family: var(--font-display); font-size: clamp(3.5rem, 14vw, 13rem); line-height: .9; letter-spacing: -.045em; }
.loader__count { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.loader__bar { height: 2px; background: var(--line); margin-top: var(--s-4); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }

.veil { position: fixed; inset: 0; z-index: 39; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease-out); }
html.is-leaving .veil { opacity: 1; pointer-events: auto; }
html.is-entering .veil { opacity: 1; transition: none; }
html.is-leaving main { transform: translateY(-14px); transition: transform var(--dur) var(--ease-out); }
html.is-entering main { opacity: 0; }
html.is-entered main { animation: page-in var(--dur-slow) var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- 10. Feed: grid / list listings with filters ------------------------ */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .5em 1em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: background var(--dur-fast), color var(--dur-fast); }
.chip:hover { box-shadow: inset 0 0 0 1px currentColor; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.view-toggle { display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.view-toggle button { display: inline-flex; align-items: center; gap: .5em; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .45em 1em; border-radius: 999px; transition: background var(--dur-fast), color var(--dur-fast); }
.view-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.view-toggle svg { width: 12px; height: 12px; }

.feed { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .feed--grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feed--grid { grid-template-columns: repeat(3, 1fr); } }
.post { display: grid; gap: var(--s-3); align-content: start; }
.post.is-hidden { display: none; }
.post__meta { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-eyebrow); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.post__meta b { color: var(--accent); font-weight: 600; }
.post h3 { transition: color var(--dur-fast); }
.post:hover h3 { color: var(--accent); }
.post__excerpt { color: var(--fg-muted); }
.post__more { font-size: var(--t-small); font-weight: 600; }

/* List mode: one hairline row per item */
.feed--list { gap: 0; }
.feed--list .post { grid-template-columns: 6rem 1fr; gap: var(--s-2) var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.feed--list .post .media { grid-row: 1 / span 2; }
.feed--list .post > :not(.media) { grid-column: 2; }
.feed--list .post:first-child, .feed--list .post.is-hidden + .post { border-top: 1px solid var(--line); }
.feed--list .post .media { aspect-ratio: 4 / 3; }
.feed--list .post__excerpt { display: none; }
.feed--list .post__more { display: none; }
@media (min-width: 900px) {
  .feed--list .post { grid-template-columns: 8rem 11rem 2fr 2fr 4rem; }
  .feed--list .post .media { grid-row: auto; }
  .feed--list .post > :not(.media) { grid-column: auto; }
  .feed--list .post__excerpt, .feed--list .post__more { display: block; }
  .feed--list .post__more { text-align: right; }
  .feed--list .post__meta { flex-direction: column; gap: var(--s-1); }
}
::view-transition-old(*), ::view-transition-new(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }

/* ---- 11. Article / master page ----------------------------------------- */
.article-hero { padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-5); }
.article-hero h1 { font-size: var(--t-h1); max-width: 18em; }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); padding: var(--s-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--t-eyebrow); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-top: var(--s-5); }
.article__meta b { color: var(--fg); font-weight: 600; }
.article__cover { margin-top: var(--s-5); }
.article__cover .media { aspect-ratio: 16 / 9; }
.article__side { font-size: var(--t-small); color: var(--fg-muted); }
.article__side dt { text-transform: uppercase; letter-spacing: .08em; font-size: var(--t-eyebrow); margin-top: var(--s-4); }
.article__side dd { color: var(--fg); margin-top: var(--s-1); }
@media (min-width: 900px) { .article__side { position: sticky; top: calc(var(--header-h) + var(--s-4)); } }

.prose { max-width: 40em; font-size: 1.0625rem; }
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { font-size: var(--t-h3); font-weight: 400; margin-top: var(--s-6); }
.prose h3 { font-size: var(--t-lead); }
.prose blockquote { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.15; letter-spacing: -.02em; margin: var(--s-6) 0; padding-left: var(--s-4); border-left: 3px solid var(--accent); }
.prose blockquote p + p { margin-top: var(--s-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s-2); }
.prose a { border-bottom: 1px solid var(--line); transition: border-color var(--dur-fast), color var(--dur-fast); }
.prose a:hover { color: var(--accent); border-color: currentColor; }
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
.prose .small { color: var(--fg-muted); }

.gallery { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin-top: var(--s-6); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.next { border-top: 1px solid var(--line); }
.next__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
