/* self-hosted fonts (latin) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================================================
   Crown & Ashes journal theme (adapted from the Arkanth journal)
   Tokens & motion adapted from the Atheryx design kit.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #080808;
  --bg2: #0d0d0d;
  --card: #111111;
  --card-h: #161616;

  /* lines */
  --border: #444444;
  --border-h: #666666;
  --hair: rgba(255, 255, 255, 0.10);
  --hair-soft: rgba(255, 255, 255, 0.06);

  /* text */
  --text: #ffffff;
  --text2: #888888;
  --text3: #444444;
  --text-body: rgba(255, 255, 255, 0.78);
  --text-dim: rgba(255, 255, 255, 0.45);

  /* accents */
  --accent: #d4a05a;
  --accent-rgb: 212, 160, 90;

  /* fonts */
  --fh: 'Inter', system-ui, sans-serif;       /* headings / big statements */
  --fb: 'Inter', system-ui, sans-serif;               /* body */
  --fm: 'IBM Plex Mono', ui-monospace, monospace;        /* labels / eyebrow */

  /* motion */
  --ease: 0.35s ease;
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  --container: 1820px;   /* global page container width (header, footer, sections) — tuned for 1920 desktop */

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--fb);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text2);
}

.section-title {
  font-family: var(--fh);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--text);
}

.lead {
  font-family: var(--fb);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--text-body);
}

/* hairline flourish under section headers */
.rule {
  width: 46px; height: 1px; background: var(--border-h);
  margin: 22px 0 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--fm);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.btn:hover { border-color: var(--border-h); background: rgba(255, 255, 255, 0.05); }

.btn--solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn--solid:hover { background: var(--bg); color: var(--text); border-color: var(--bg); }

.btn--sm { padding: 11px 22px; font-size: 0.68rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--ease), border-color var(--ease), backdrop-filter var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--hair-soft);
}
.nav { display: flex; align-items: center; height: 78px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { width: 46px; height: 46px; display: block; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45)); transition: opacity var(--ease); }
.brand, .footer-logo { transition: opacity var(--ease); }
.brand:hover, .footer-logo:hover { opacity: 0.62; }
.brand span {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 34px; list-style: none; margin-left: auto; }
.nav-links a {
  font-family: var(--fm);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("img/hero-eye.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.75); /* full colour, exposure reduced 25% (cursor drains saturation) */
  z-index: 0;
}
/* Darkening disabled on request: the image shows as-is, true colors, no scrim.
   Re-add a bottom gradient here later if the foot text needs more contrast. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
}
/* Cursor colour-reveal canvas (JS-created), painted above the grey background. */
.hero-reveal { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-frame {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 150px 32px 48px;
}
.hero-wordmark {
  font-family: var(--fh);
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.86;
  letter-spacing: 0.005em;
  font-size: clamp(4rem, 17vw, 15.5rem);
  cursor: default; /* keep the normal pointer, not a text caret, over the wordmark */
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.hero-pitch { max-width: 440px; }
.hero-tagline { display: block; margin-bottom: 20px; color: rgba(255, 255, 255, 0.7); }
.hero-pitch-text {
  font-family: var(--fb); font-weight: 400;
  font-size: 1rem; line-height: 1.62; color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 20px rgba(0, 0, 0, 0.75);
}
.hero-cta { gap: 12px; }
.hero-links { display: flex; gap: 12px; flex: 0 0 auto; }
.hero-ic {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: border-color var(--ease), background-color var(--ease);
}
.hero-ic svg { width: 18px; height: 18px; display: block; }
.hero-ic:hover { border-color: #fff; background: rgba(255, 255, 255, 0.09); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section-head { margin-bottom: 66px; max-width: 640px; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }

/* ---- Services ---- */
.services { border-top: 1px solid var(--hair-soft); background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.card {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 44px 38px 52px;
  background: transparent;
  transition: background-color var(--ease);
  min-height: 300px;
  display: flex; flex-direction: column;
}
.card:hover { background: var(--card); }
.card-num {
  font-family: var(--fm); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--text3); margin-bottom: 40px;
}
.card h3 {
  font-family: var(--fh); font-weight: 500; font-size: 1.9rem;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 16px; line-height: 1.1;
}
.card p { font-size: 0.95rem; color: var(--text2); line-height: 1.7; }

/* ---- About ---- */
.about { border-top: 1px solid var(--hair-soft); }
.about-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center;
}
.about-copy p { color: var(--text-body); font-weight: 300; margin-bottom: 20px; max-width: 48ch; line-height: 1.85; }
.about-copy p:last-of-type { margin-bottom: 0; }
.about-copy .section-head { margin-bottom: 40px; }

.figure {
  position: relative; overflow: hidden;
  border: 1px solid var(--hair);
  aspect-ratio: 4 / 5;
}
.figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(24%) brightness(0.82) contrast(1.05);
  transition: transform 1.2s var(--ease-out), filter var(--ease);
}
.figure::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 120px 20px rgba(8, 8, 8, 0.7);
  pointer-events: none;
}
.figure:hover img { transform: scale(1.04); filter: grayscale(10%) brightness(0.9) contrast(1.05); }
.figure-cap {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-dim);
}

.stats {
  list-style: none; display: grid; gap: 0;
  margin-top: 52px; border-top: 1px solid var(--hair);
}
.stats li {
  display: flex; align-items: baseline; gap: 20px;
  padding: 22px 2px; border-bottom: 1px solid var(--hair);
}
.stats strong {
  font-family: var(--fh); font-weight: 500; font-size: 1.5rem;
  color: var(--text); letter-spacing: -0.01em; min-width: 190px;
}
.stats span { font-family: var(--fm); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); }

/* ---- Contact ---- */
.contact {
  position: relative; text-align: center;
  border-top: 1px solid var(--hair-soft);
  overflow: hidden;
}
.contact-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("img/warrior-helm.jpg");
  background-size: cover; background-position: center 30%;
  filter: grayscale(30%);
}
.contact-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(8, 8, 8, 0.82);
  box-shadow: inset 0 0 240px 60px rgba(8, 8, 8, 0.96);
}
.contact-inner { position: relative; z-index: 1; }
.contact .section-title { margin-bottom: 22px; }
.contact .lead { max-width: 520px; margin: 0 auto 40px; }
.contact-mail {
  display: inline-block;
  font-family: var(--fh); font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.01em; color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px; transition: border-color var(--ease), color var(--ease);
}
.contact-mail:hover { border-color: var(--text); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--hair); background: var(--bg); padding: 84px 0 34px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 60px;
  padding-bottom: 54px; border-bottom: 1px solid var(--hair-soft);
}
.footer-logo { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.footer-logo .logo-text {
  font-family: var(--fh); font-weight: 500; font-size: 1.45rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
}
.footer-desc { color: var(--text2); font-size: 0.92rem; line-height: 1.75; max-width: 42ch; margin-bottom: 26px; }
.footer-socials { display: flex; gap: 11px; }
.social {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}
.social svg { width: 17px; height: 17px; display: block; }
.social:hover { color: var(--text); border-color: var(--border-h); background: rgba(255, 255, 255, 0.05); }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col__title {
  font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 22px;
}
.footer-links { list-style: none; display: grid; gap: 13px; }
.footer-links a {
  font-family: var(--fb); font-size: 0.92rem; color: var(--text2);
  display: inline-block; transition: color var(--ease), transform var(--ease);
}
.footer-links a:hover { color: var(--text); transform: translateX(4px); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap; padding-top: 28px;
  font-family: var(--fm); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text3);
}
.footer-legal { display: flex; gap: 26px; }
.footer-legal a { color: var(--text3); transition: color var(--ease); }
.footer-legal a:hover { color: var(--text); }

@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 46px; } }
@media (max-width: 560px) {
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   Motion — only active when JS is present (.js on <html>)
   ============================================================ */

/* blur-in by words */
.js .blur-word {
  display: inline-block; opacity: 0; transform: translateY(0.5em); filter: blur(10px);
  transition: opacity .6s cubic-bezier(.25,.46,.45,.94),
              transform .6s cubic-bezier(.25,.46,.45,.94),
              filter .6s cubic-bezier(.25,.46,.45,.94);
}
.js .is-in .blur-word { opacity: 1; transform: translateY(0); filter: blur(0); }

.js [data-blur-el] {
  opacity: 0; transform: translateY(0.5em); filter: blur(10px);
  transition: opacity .6s cubic-bezier(.25,.46,.45,.94),
              transform .6s cubic-bezier(.25,.46,.45,.94),
              filter .6s cubic-bezier(.25,.46,.45,.94);
}
.js [data-blur-el].is-in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* reveal blocks */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--rd, 0ms); will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* heroRise */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.js .hero-wordmark,
.js .hero-tagline,
.js .hero-pitch-text,
.js .hero-cta,
.js .hero-links {
  animation: heroRise .95s var(--ease-out) both;
}
.js .hero-wordmark   { animation-delay: .12s; }
.js .hero-tagline    { animation-delay: .42s; }
.js .hero-pitch-text { animation-delay: .52s; }
.js .hero-cta        { animation-delay: .62s; }
.js .hero-links      { animation-delay: .70s; }

@media (prefers-reduced-motion: reduce) {
  .js .blur-word, .js [data-blur-el], .js [data-reveal] {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .js .hero-wordmark, .js .hero-tagline, .js .hero-pitch-text, .js .hero-cta, .js .hero-links { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .figure { aspect-ratio: 3 / 2; max-height: 460px; }
  .stats strong { min-width: 150px; font-size: 1.3rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .nav-links { display: none; }
  .nav { height: 66px; }
  .hero-frame { padding: 108px 22px 38px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .card { padding: 34px 26px 40px; min-height: 0; }
  .stats li { flex-direction: column; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Journal — index listing
   ============================================================ */
.page-top { padding: 150px 0 40px; border-bottom: 1px solid var(--hair-soft); }
.page-top .eyebrow { display: block; margin-bottom: 22px; }
.page-top .page-title {
  font-family: var(--fh); font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1.0;
  letter-spacing: -0.02em; color: var(--text);
}
.page-top .page-intro {
  margin-top: 28px; max-width: 560px; font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; color: var(--text-body);
}

.journal-list { border-top: 1px solid transparent; }
.journal-item {
  display: grid;
  grid-template-columns: 64px 1fr 210px;
  gap: 40px; align-items: start;
  padding: 46px 0;
  border-bottom: 1px solid var(--hair);
  transition: background-color var(--ease);
}
.journal-item:hover { background: var(--card); }
.journal-item .j-idx { font-family: var(--fm); font-size: 0.72rem; color: var(--text3); padding-top: 8px; }
.journal-item .j-title {
  font-family: var(--fh); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--text); margin-bottom: 14px;
  transition: color var(--ease);
}
.journal-item:hover .j-title { color: #fff; }
.journal-item .j-excerpt { font-size: 0.98rem; color: var(--text2); line-height: 1.7; max-width: 58ch; }
.journal-item .j-meta {
  font-family: var(--fm); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text2); padding-top: 10px; text-align: right; line-height: 1.9;
}
.journal-item .j-meta span { display: block; color: var(--text3); }

@media (max-width: 760px) {
  .journal-item { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .journal-item .j-idx { padding-top: 0; }
  .journal-item .j-meta { text-align: left; padding-top: 6px; }
}

/* ============================================================
   Article — reading page
   ============================================================ */
.article { max-width: 740px; margin: 0 auto; padding: 150px 32px 40px; }
.article-back {
  font-family: var(--fm); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text2); transition: color var(--ease); display: inline-block; margin-bottom: 38px;
}
.article-back:hover { color: var(--text); }
.article-meta {
  font-family: var(--fm); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 22px;
}
.article-meta span { color: var(--text3); }
.article-title {
  font-family: var(--fh); font-weight: 400;
  font-size: clamp(2.05rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.018em;
  color: var(--text); margin-bottom: 22px;
}
.article-dek {
  font-family: var(--fh); font-style: normal; font-weight: 400;
  font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.45; color: var(--text-body);
  margin-bottom: 20px;
}
.article-rule { width: 100%; height: 1px; background: var(--hair); margin: 36px 0 44px; }

.prose { font-family: var(--fb); font-weight: 400; font-size: 1.08rem; line-height: 1.85; color: var(--text-body); }
.prose > p { margin-bottom: 1.55em; }
.prose > p:first-of-type::first-letter {
  font-family: var(--fh); font-weight: 500; float: left;
  font-size: 3.4em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--text);
}
.prose h2 {
  font-family: var(--fh); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  line-height: 1.16; letter-spacing: -0.01em; color: var(--text);
  margin: 2.4em 0 0.7em;
}
.prose h3 {
  font-family: var(--fh); font-weight: 600; font-size: 1.4rem; color: var(--text);
  margin: 1.9em 0 0.5em; letter-spacing: -0.005em;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(var(--accent-rgb), .4); transition: border-color var(--ease); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 1.55em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.6em; }
.prose blockquote {
  margin: 2em 0; padding: 6px 0 6px 30px; border-left: 1px solid var(--border-h);
  font-family: var(--fh); font-style: normal; font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.45; color: var(--text);
}
.prose hr { border: 0; height: 1px; background: var(--hair); margin: 2.6em 0; }
.prose code {
  font-family: var(--fm); font-size: 0.86em; background: var(--card); color: var(--text);
  padding: 2px 7px; border: 1px solid var(--hair);
}

.article-foot {
  max-width: 740px; margin: 0 auto; padding: 40px 32px 110px;
  border-top: 1px solid var(--hair); margin-top: 60px;
}
.article-foot .sig { font-family: var(--fm); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); }
.read-next { display: block; margin-top: 26px; }
.read-next .rn-label { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); }
.read-next .rn-title { font-family: var(--fh); font-weight: 500; font-size: 1.6rem; color: var(--text); margin-top: 8px; transition: color var(--ease); }
.read-next:hover .rn-title { color: #fff; }

@media (max-width: 640px) {
  .article { padding-top: 120px; }
  .prose { font-size: 1.04rem; }
}

/* ============================================================
   Selected Work
   ============================================================ */
.work { border-top: 1px solid var(--hair-soft); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card { display: block; }
.work-figure {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--hair); background: var(--card);
}
.work-figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(32%) brightness(0.8) contrast(1.05);
  transition: transform 1s var(--ease-out), filter var(--ease);
}
.work-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 110px 18px rgba(8, 8, 8, 0.72);
}
.work-card:hover .work-figure img { transform: scale(1.05); filter: grayscale(12%) brightness(0.92) contrast(1.05); }
.work-cat {
  font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text3); display: block; margin: 22px 0 10px;
}
.work-title {
  font-family: var(--fh); font-weight: 500; font-size: 1.6rem; line-height: 1.12;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 10px; transition: color var(--ease);
}
.work-card:hover .work-title { color: #fff; }
.work-desc { font-size: 0.94rem; color: var(--text2); line-height: 1.65; max-width: 40ch; }

@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* image reveal: a curtain wipe with a settling scale, driven by the card entering view */
.js .work-card[data-reveal] .work-figure { clip-path: inset(0 0 100% 0); }
.js .work-card[data-reveal].in .work-figure { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out); }
.js .work-card[data-reveal] .work-figure img { transform: scale(1.16); transition: transform 1.4s var(--ease-out); }
.js .work-card[data-reveal].in .work-figure img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .js .work-card[data-reveal] .work-figure { clip-path: none; }
  .js .work-card[data-reveal] .work-figure img { transform: none; }
}

/* ============================================================
   Parallax interstitial band
   ============================================================ */
.parallax-band {
  position: relative; height: 62vh; min-height: 440px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft);
}
.pb-img {
  position: absolute; left: 0; right: 0; top: -18%; bottom: -18%;
  background-size: cover; background-position: center 35%;
  filter: grayscale(38%) brightness(0.55) contrast(1.05);
  will-change: transform;
}
.pb-img::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(8, 8, 8, 0.5);
  box-shadow: inset 0 0 220px 60px rgba(8, 8, 8, 0.92);
}
.pb-inner { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.pb-eyebrow { display: block; margin-bottom: 22px; }
.pb-statement {
  font-family: var(--fh); font-weight: 400; font-style: italic;
  font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.015em;
  color: var(--text); max-width: 16ch; margin: 0 auto;
}
@media (prefers-reduced-motion: reduce) { .pb-img { transform: none !important; } }

/* ============================================================
   Utilities & author byline
   ============================================================ */
.section--flush { padding-top: 0; }
.contact-title { margin-top: 22px; }
.pb-img--cathedral { background-image: url("img/cathedral-light.jpg"); }

.author { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.author-photo {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  filter: grayscale(100%); border: 1px solid var(--hair); flex: 0 0 auto;
}
.author-name {
  font-family: var(--fh); font-weight: 500; font-size: 1.15rem;
  color: var(--text); line-height: 1.1;
}
.author-role {
  font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text2); margin-top: 5px;
}

/* editorial byline avatar (temporary, replaces the personal photo) */
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--hair); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
}
.author-avatar img { width: 26px; height: 26px; display: block; }

/* ============================================================
   Selected Projects (masonry)
   ============================================================ */
.cw { border-top: 1px solid var(--hair-soft); }
.cw-head .eyebrow { display: block; margin-bottom: 20px; }
.cw-title { margin: 0; }
.cw-note { color: var(--text2); font-size: 0.95rem; line-height: 1.7; max-width: 64ch; margin: 24px 0 56px; }
/* Center column is wider than the sides (proportion 462:554:462), so the two
   middle cases render larger. The grid fills the section content width and its
   edges align with the heading; every tile shares the same aspect ratio. */
.cw-cards {
  display: grid; grid-template-columns: 462fr 554fr 462fr; gap: 24px;
  align-items: start;
}
.cw-col { display: flex; flex-direction: column; gap: 24px; }
/* Side columns sit lower so the taller centre column peeks out at the top. */
.cw-col--l, .cw-col--r { margin-top: 72px; }
.cw-tile {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--hair); background: var(--card);
}
.cw-tile__img {
  width: 100%; display: block; aspect-ratio: 462 / 493; object-fit: cover;
  filter: grayscale(30%) brightness(0.82) contrast(1.04);
  transition: transform 1s var(--ease-out), filter var(--ease);
}
.cw-tile:hover .cw-tile__img { transform: scale(1.05); filter: grayscale(10%) brightness(0.55); }
.cw-tile__over {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity var(--ease);
}
.cw-tile:hover .cw-tile__over { opacity: 1; }
.cw-tile__hand {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cw-tile__hand svg { width: 20px; height: 20px; display: block; }
.cw-tile__cap {
  font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; text-align: center; padding: 0 16px;
}
@media (max-width: 860px) { .cw-cards { grid-template-columns: 1fr 1fr; } .cw-col--l, .cw-col--r { margin-top: 0; } }
@media (max-width: 560px) { .cw-cards { grid-template-columns: 1fr; } }

/* ============================================================
   Industry feed (auto-scroll ticker)
   ============================================================ */
.ticker-sec { border-top: 1px solid var(--hair-soft); overflow: hidden; }
.ticker-head { max-width: 700px; }
.ticker-head .eyebrow { display: block; margin-bottom: 20px; }
.bento-h { margin: 0; }
.ticker-note { color: var(--text2); font-size: clamp(0.95rem, 1.4vw, 1.05rem); line-height: 1.7; max-width: 64ch; margin-top: 22px; }
.ticker-wrap {
  width: 100%; max-width: var(--container); margin: 52px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  height: 780px; overflow: hidden;
}
.tk-col { position: relative; overflow: hidden; }
.tk-track { display: flex; flex-direction: column; gap: 22px; will-change: transform; }
.tk-card {
  display: block; border: 1px solid var(--hair); background: var(--card);
  padding: 24px 24px 26px; transition: border-color var(--ease), background-color var(--ease);
}
/* no hover border/background change: the card is scrolling, so a changing border shimmers */
.tk-tag {
  display: inline-block; font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text2);
  border: 1px solid var(--hair); padding: 4px 9px; margin-bottom: 16px;
}
.tk-card__title {
  font-family: var(--fh); font-weight: 500; font-size: 1.1rem; line-height: 1.22;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 10px;
}
.tk-card__text { font-family: var(--fb); font-size: 0.85rem; line-height: 1.6; color: var(--text2); }
@media (max-width: 860px) {
  .ticker-wrap { grid-template-columns: 1fr 1fr; height: 700px; padding: 0 22px; }
  .tk-col:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .ticker-wrap { grid-template-columns: 1fr; height: 624px; }
  .tk-col:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tk-track { transform: none !important; } }

/* ============================================================
   Language switcher
   ============================================================ */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fm); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22); padding: 11px 15px; cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}
.lang-btn:hover { border-color: var(--border-h); background: rgba(255, 255, 255, 0.05); }
.lang-chev { width: 10px; height: 7px; transition: transform var(--ease); }
.lang[data-open] .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px;
  list-style: none; background: var(--bg2); border: 1px solid var(--hair); padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.lang[data-open] .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: block; width: 100%; text-align: left;
  font-family: var(--fb); font-size: 0.85rem; color: var(--text2);
  background: transparent; border: 0; padding: 9px 12px; cursor: pointer;
  transition: color var(--ease), background-color var(--ease);
}
.lang-opt:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.lang-opt.is-active { color: var(--text); }

/* ticker card media */
.tk-card { padding: 0; overflow: hidden; }
.tk-card__media { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.tk-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) brightness(0.8) contrast(1.03);
  transition: transform 0.9s var(--ease-out);
}
.tk-card:hover .tk-card__media img { transform: scale(1.05); }
.tk-card__body { padding: 20px 22px 24px; }

/* ============================================================
   Journal listing (search + category filter + feature + grid)
   ============================================================ */
.jx { padding-top: 130px; }
.jx-hero { padding-bottom: 40px; border-bottom: 1px solid var(--hair-soft); }
.jx-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: end; }
.jx-crumb { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); margin-bottom: 20px; }
.jx-crumb a { color: var(--text2); transition: color var(--ease); }
.jx-crumb a:hover { color: var(--text); }
.jx-title { font-family: var(--fh); font-weight: 500; text-transform: uppercase; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.95; letter-spacing: 0.01em; color: var(--text); }
.jx-sub { margin-top: 20px; max-width: 46ch; color: var(--text2); font-size: 0.98rem; line-height: 1.7; }
.jx-search { position: relative; display: flex; align-items: center; }
.jx-search svg { position: absolute; left: 16px; width: 17px; height: 17px; color: var(--text3); pointer-events: none; }
.jx-search input {
  width: 100%; font-family: var(--fb); font-size: 0.95rem; color: var(--text);
  background: var(--card); border: 1px solid var(--hair); padding: 15px 44px 15px 44px;
  transition: border-color var(--ease); outline: none;
}
.jx-search input::placeholder { color: var(--text3); }
.jx-search input:focus { border-color: var(--border-h); }
.jx-search .jx-clear { position: absolute; right: 12px; width: 26px; height: 26px; display: none; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--text2); cursor: pointer; }
.jx-search .jx-clear svg { position: static; width: 14px; height: 14px; }
.jx-search.has-value .jx-clear { display: flex; }

.jx-filter { border-bottom: 1px solid var(--hair-soft); padding: 20px 0; overflow: hidden; }
.jx-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.jx-chip {
  font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text2); background: transparent; border: 1px solid var(--hair);
  padding: 9px 15px; cursor: pointer; transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}
.jx-chip:hover { color: var(--text); border-color: var(--border-h); }
.jx-chip.active { color: var(--bg); background: var(--text); border-color: var(--text); }

.jx-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 34px 0 30px; }
.jx-count { font-family: var(--fm); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); }
.jx-reset { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); background: transparent; border: 0; cursor: pointer; display: none; transition: color var(--ease); }
.jx-reset.show { display: inline-block; }
.jx-reset:hover { color: var(--text); }

/* feature (lead) */
.jx-feat { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; margin-bottom: 60px; border: 1px solid var(--hair); background: var(--card); }
.jx-feat__cover { display: block; overflow: hidden; aspect-ratio: 16 / 11; }
.jx-feat__cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(28%) brightness(0.85); transition: transform 1s var(--ease-out); }
.jx-feat:hover .jx-feat__cover img { transform: scale(1.04); }
.jx-feat__body { padding: 8px 44px 8px 4px; }
.jx-feat__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.jx-badge { font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text2); border: 1px solid var(--hair); padding: 4px 9px; }
.jx-cat { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); }
.jx-feat__title { font-family: var(--fh); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 14px; }
.jx-feat__title a { color: var(--text); }
.jx-feat__excerpt { color: var(--text2); font-size: 0.96rem; line-height: 1.7; margin-bottom: 24px; max-width: 48ch; }
.jx-feat__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.jx-metaline { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.jx-readbtn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fm); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.jx-readbtn svg { width: 18px; height: 12px; }
.jx-readbtn:hover { color: var(--accent); }

/* grid */
.jx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.jx-card { border: 1px solid var(--hair); background: var(--card); display: flex; flex-direction: column; transition: border-color var(--ease); }
.jx-card:hover { border-color: var(--border-h); }
.jx-card__cover { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.jx-card__cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) brightness(0.82); transition: transform 0.9s var(--ease-out); }
.jx-card:hover .jx-card__cover img { transform: scale(1.05); }
.jx-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.jx-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.jx-card__read { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.jx-card__title { font-family: var(--fh); font-weight: 500; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: auto; }
.jx-card__title a { color: var(--text); }
.jx-card:hover .jx-card__title a { color: #fff; }
.jx-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.jx-card__date { font-family: var(--fm); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--text3); }
.jx-card__arrow { color: var(--text2); transition: color var(--ease), transform var(--ease); }
.jx-card__arrow svg { width: 18px; height: 12px; }
.jx-card:hover .jx-card__arrow { color: var(--text); transform: translateX(3px); }

.jx-empty { text-align: center; padding: 80px 0; color: var(--text2); }
.jx-empty h3 { font-family: var(--fh); font-weight: 500; font-size: 1.6rem; color: var(--text); margin-bottom: 8px; }

.jx-pag { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.jx-pag button { font-family: var(--fm); font-size: 0.72rem; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--hair); background: transparent; color: var(--text2); cursor: pointer; transition: color var(--ease), border-color var(--ease), background-color var(--ease); }
.jx-pag button:hover:not(.disabled) { color: var(--text); border-color: var(--border-h); }
.jx-pag button.active { color: var(--bg); background: var(--text); border-color: var(--text); }
.jx-pag button.disabled { opacity: 0.35; cursor: default; }
.jx-pag svg { width: 15px; height: 15px; display: block; }
.jx-pag__gap { font-family: var(--fm); font-size: 0.72rem; min-width: 24px; height: 38px; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; color: var(--text2); user-select: none; }

@media (max-width: 900px) {
  .jx-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .jx-feat { grid-template-columns: 1fr; }
  .jx-feat__body { padding: 26px; }
  .jx-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .jx-grid { grid-template-columns: 1fr; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jx-card[hidden], .jx-feat[hidden], .jx-grid[hidden], .jx-empty[hidden], .jx-pag[hidden] { display: none !important; }

/* ============================================================
   Legal pages + footer legal info + language suggestion bar
   ============================================================ */
.prose--plain > p:first-of-type::first-letter {
  float: none; font-family: inherit; font-weight: inherit;
  font-size: inherit; line-height: inherit; padding: 0; color: inherit;
}
.legal-body { max-width: 760px; padding: 56px 0 90px; }

.footer-jur { margin: 14px 0 24px; font-family: var(--fm); font-size: 0.64rem; letter-spacing: 0.05em; color: var(--text3); line-height: 1.8; }

.langbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 16px;
  background: #101014; border: 1px solid var(--hair);
  padding: 11px 12px 11px 20px; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.langbar p { font-family: var(--fb); font-size: 0.86rem; color: var(--text2); margin: 0; }
.langbar a { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #5f8a6c; white-space: nowrap; }
.langbar a:hover { color: var(--text); }
.langbar button { background: transparent; border: 0; color: var(--text3); cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1; }
.langbar button:hover { color: var(--text); }
@media (max-width: 560px) {
  .langbar { left: 14px; right: 14px; transform: none; justify-content: space-between; gap: 10px; }
}

/* ============================================================
   Statement block (between Work and Journal)
   ============================================================ */
.stmt { padding: 140px 0 120px; }
.stmt__text {
  font-family: var(--fh); font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.24; letter-spacing: -0.01em; color: #fff;
}
.stmt__foot { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 440px) 1fr minmax(0, 300px); gap: 32px; align-items: start; }
.stmt__note { font-family: var(--fb); font-size: 0.92rem; font-weight: 400; line-height: 1.75; color: var(--text2); }
.stmt__note--right { grid-column: 3; }
[data-scroll-fill] .fill-word, [data-scroll-fill] .fill-char { display: inline-block; }
@media (max-width: 900px) {
  .stmt { padding: 90px 0 80px; }
  .stmt__foot { grid-template-columns: 1fr; gap: 28px; }
  .stmt__note--right { grid-column: auto; }
}

/* ============================================================
   Closing CTA (Aristotle) after the feed
   ============================================================ */
.ccta { padding: 170px 0 180px; }
.ccta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ccta__title {
  font-family: var(--fh); font-weight: 500;
  font-size: clamp(1.35rem, 2.15vw, 2.05rem);
  line-height: 1.34; letter-spacing: -0.01em; color: #fff;
  max-width: none;
}
.ccta__muted { color: var(--text3); }
.ccta__right { display: flex; justify-content: flex-end; padding-top: clamp(120px, 22vh, 280px); }
.ccta__side { max-width: none; }
@media (max-width: 900px) {
  .ccta { padding: 100px 0 110px; }
  .ccta__grid { grid-template-columns: 1fr; gap: 36px; }
  .ccta__right { justify-content: flex-start; padding-top: 0; }
}

/* ============================================================
   Article layout: sticky table of contents + cover
   ============================================================ */
.article-layout {
  max-width: var(--container); margin: 0 auto; padding: 108px 32px 0;
  display: grid; grid-template-columns: 244px minmax(0, 760px); gap: 64px;
  justify-content: start;
}
.article-layout .article { max-width: 760px; margin: 0; padding: 0; }
.article-layout .article-foot { max-width: 760px; margin: 60px 0 0; padding: 40px 0 110px; }

.article-toc { position: relative; }
.article-toc__inner {
  position: sticky; top: 104px;
  border: 1px solid var(--hair); background: var(--card);
  padding: 22px 20px 24px; max-height: calc(100vh - 132px); overflow-y: auto;
}
.article-toc__title {
  font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 16px;
}
.article-toc__list { list-style: none; margin: 0; padding: 0; }
.article-toc__link {
  display: block; padding: 9px 0 9px 15px; border-left: 1px solid var(--hair);
  font-family: var(--fb); font-size: 0.83rem; line-height: 1.35; color: var(--text2);
  transition: color var(--ease), border-color var(--ease);
}
.article-toc__link:hover { color: var(--text); }
.article-toc__link.is-active { color: var(--text); border-left-color: #5f8a6c; font-weight: 600; }

.article-cover { margin: 8px 0 40px; overflow: hidden; border: 1px solid var(--hair); }
.article-cover img {
  width: 100%; height: auto; display: block; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 32%;
  filter: grayscale(14%) brightness(0.92) contrast(1.02);
}

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; padding-top: 112px; }
  .article-layout .article, .article-layout .article-foot { margin-left: auto; margin-right: auto; }
  .article-toc { display: none; }
}

/* ============================================================
   Glossary terms + margin definition card (marginalia)
   ============================================================ */
.article-layout { position: relative; }
.gterm { color: #fff; white-space: nowrap; }
.gterm:focus-visible { outline: none; }
.gdef-card {
  position: absolute; z-index: 30; width: 300px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  pointer-events: none;
}
.gdef-card.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.gdef-card__inner {
  background: var(--card); border: 1px solid var(--hair); padding: 22px 20px 24px;
}
.gdef-card__tag { font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }
.gdef-card__term { font-family: var(--fh); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text); margin-bottom: 10px; }
.gdef-card__text { font-family: var(--fb); font-size: 0.88rem; line-height: 1.62; color: var(--text2); }
@media (max-width: 960px) { .gdef-card { display: none; } .gterm { white-space: normal; } }

/* ============================================================
   Related articles block (article footer)
   ============================================================ */
.related { border-top: 1px solid var(--hair); margin-top: 20px; padding: 66px 0 120px; }
.rel-head { margin-bottom: 44px; }
.rel-head .eyebrow { display: block; margin-bottom: 18px; }
.rel-title { font-family: var(--fh); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--text); }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rel-card { display: flex; flex-direction: column; border: 1px solid var(--hair); background: var(--card); transition: border-color var(--ease); }
.rel-card:hover { border-color: var(--border-h); }
.rel-card__cover { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.rel-card__cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(28%) brightness(0.85); transition: transform 0.9s var(--ease-out); }
.rel-card:hover .rel-card__cover img { transform: scale(1.04); }
.rel-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; }
.rel-card__date { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--text3); }
.rel-card__title { font-family: var(--fh); font-weight: 500; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); margin: 12px 0 20px; transition: color var(--ease); }
.rel-card:hover .rel-card__title { color: #fff; }
.rel-card__link { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); display: inline-flex; align-items: center; gap: 9px; transition: color var(--ease); }
.rel-card__link svg { width: 18px; height: 12px; }
.rel-card:hover .rel-card__link { color: var(--text); }
@media (max-width: 700px) {
  .related { padding: 48px 0 80px; }
  .rel-grid { grid-template-columns: 1fr; gap: 22px; }
}


/* ===== Case detail blocks (cd-*) — built from our tokens only ===== */
.cd-meta {
  margin-top: 44px;
  padding: 34px 0 8px;
  border-top: 1px solid var(--hair-soft);
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.7fr;
  gap: 48px;
}
.cd-meta__lbl { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.cd-meta__val { font-family: var(--fb); font-size: 1.02rem; line-height: 1.55; color: var(--text); }

.cd-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px; }
.cd-shot { grid-column: span 2; display: block; overflow: hidden; background: var(--card); border: 1px solid var(--hair-soft); }
.cd-shot--wide { grid-column: span 3; }
.cd-shot img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.cd-shot:hover img { transform: scale(1.04); }

.cd-lead2 { display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 540px); justify-content: space-between; gap: 44px 80px; margin-top: 64px; }
.cd-lead2__col { display: flex; flex-direction: column; gap: 52px; }
.cd-block__lbl { font-family: var(--fm); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); margin-bottom: 22px; }
.cd-block__txt { font-family: var(--fh); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.62rem); line-height: 1.44; letter-spacing: 0.01em; color: var(--text); }

.cd-palette { display: grid; grid-template-columns: repeat(auto-fill, 184px); gap: 14px; margin-top: 2px; }
.cd-sw { background: var(--card); border: 1px solid var(--hair-soft); }
.cd-sw__chip { height: 108px; border-bottom: 1px solid var(--hair-soft); }
.cd-sw__hex { font-family: var(--fm); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text); padding: 14px 14px 0; }
.cd-sw__name { font-family: var(--fb); font-size: 0.94rem; color: var(--text); padding: 7px 14px 0; }
.cd-sw__role { font-family: var(--fb); font-size: 0.78rem; color: var(--text2); padding: 2px 14px 16px; }

@media (max-width: 900px) {
  .cd-meta { grid-template-columns: 1fr; gap: 26px; }
  .cd-lead2 { grid-template-columns: 1fr; gap: 44px; }
  .cd-gallery { grid-template-columns: repeat(2, 1fr); }
  .cd-shot, .cd-shot--wide { grid-column: span 1; }
}

/* ===== Case detail: functionality / typography / stack ===== */
.cd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 72px; }
.cd-fonts { display: flex; flex-direction: column; gap: 14px; }
.cd-font { display: flex; align-items: center; gap: 26px; background: var(--card); border: 1px solid var(--hair-soft); padding: 22px 26px; }
.cd-font__sample { flex: 0 0 auto; width: 92px; font-size: 3.4rem; line-height: 1; color: var(--text); }
.cd-font__name { font-family: var(--fb); font-size: 1.05rem; color: var(--text); }
.cd-font__role { font-family: var(--fm); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin: 7px 0 11px; }
.cd-font__glyphs { font-size: 0.95rem; color: var(--text2); }

.cd-stack { margin-top: 64px; }
.cd-stackmq { margin-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.cd-mq { overflow: hidden; }
.cd-mq__track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.cd-mq--l .cd-mq__track { animation: cd-mq-left 46s linear infinite; }
.cd-mq--r .cd-mq__track { animation: cd-mq-right 58s linear infinite; }
.cd-mq__chip { flex: 0 0 auto; font-family: var(--fm); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--text); background: transparent; border: 1px solid var(--hair); padding: 11px 20px; white-space: nowrap; }
@keyframes cd-mq-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cd-mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@media (max-width: 900px) {
  .cd-pair { grid-template-columns: 1fr; gap: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-mq--l .cd-mq__track, .cd-mq--r .cd-mq__track { animation: none; }
}

/* Case: font specimens + palette chips (CSP-safe classes instead of inline styles) */
.cd-fh { font-family: var(--fh); }
.cd-fb { font-family: var(--fb); }
.cd-fm { font-family: var(--fm); }
.cd-chip--obsidian { background: #0E0D0C; }
.cd-chip--bone { background: #E9E2D2; }
.cd-chip--oxblood { background: #7C2F2A; }
.cd-chip--bronze { background: #B08D57; }
.cd-chip--stone { background: #A79C8C; }
@media (max-width: 560px) {
  .cd-palette { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cd-sw__chip { height: 96px; }
}

/* Center work tile: no link, no caption/hand; a short quote fades in on hover */
.cw-tile--quote { cursor: default; }
.cw-tile__quote {
  font-family: var(--fh); font-weight: 500;
  font-size: clamp(0.9rem, 1.1vw, 1.16rem); line-height: 1.46;
  color: #fff; text-align: center; max-width: 30ch; padding: 0 28px;
  text-wrap: balance;
}


/* Case dialog: large image on the left, story and gallery on the right. */
html.cm-open { overflow: hidden; }
.cm { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cm[hidden] { display: none !important; }
.cm__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 8, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cm-fade 0.5s ease both; }
.cm__panel { position: relative; z-index: 1; width: min(1160px, 100%); height: min(700px, calc(100vh - 48px)); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--hair); overflow: hidden; animation: cm-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.cm.is-closing .cm__backdrop, .cm.is-closing .cm__panel { animation: cm-out 0.3s ease forwards; }
@keyframes cm-fade { from { opacity: 0; } }
@keyframes cm-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes cm-out { to { opacity: 0; } }
.cm__media { position: relative; background: #0b0b0b; border-right: 1px solid var(--hair); }
.cm__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease; }
.cm__img.is-fading { opacity: 0; }
.cm__body { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 34px 36px 28px; overflow-y: auto; scrollbar-width: none; }
.cm__body::-webkit-scrollbar, .cm__panel::-webkit-scrollbar { display: none; }
.cm__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: var(--text); border: 1px solid var(--hair); cursor: pointer; transition: border-color var(--ease), background-color var(--ease); }
.cm__close:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }
.cm__close svg { width: 18px; height: 18px; }
.cm__head { display: flex; align-items: center; gap: 18px; padding-right: 56px; }
.cm__mark { flex: 0 0 auto; display: block; }
.cm__mark img { width: 58px; height: 58px; display: block; }
.cm__eyebrow, .cm__label { display: block; font-family: var(--fm); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text2); }
.cm__eyebrow { margin-bottom: 8px; }
.cm__label { margin-bottom: 12px; }
.cm__title { font-family: var(--fh); font-weight: 500; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.1; color: var(--text); }
.cm__task p { font-family: var(--fh); font-weight: 400; font-size: 1rem; line-height: 1.42; color: var(--text); }
.cm__text { color: var(--text-body); font-size: 0.87rem; line-height: 1.65; }
.cm__meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; padding-top: 18px; border-top: 1px solid var(--hair); margin: auto 0 0; }
.cm__meta dt { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text3); padding-top: 3px; }
.cm__meta dd { margin: 0; color: var(--text-body); font-size: 0.9rem; }
.cm__link { align-self: flex-start; font-family: var(--fm); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); padding-bottom: 4px; border-bottom: 1px solid var(--hair); transition: border-color var(--ease); }
.cm__link:hover { border-color: var(--text); }
.cm__link[hidden] { display: none !important; }
.cm__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cm__thumbs[hidden] { display: none !important; }
.cm__thumb { aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--hair); background: #0b0b0b; overflow: hidden; cursor: pointer; opacity: 0.5; transition: opacity var(--ease), border-color var(--ease); }
.cm__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm__thumb:hover { opacity: 0.85; }
.cm__thumb.is-active { opacity: 1; border-color: var(--text); }
@media (max-width: 900px) {
  .cm { padding: 12px; align-items: stretch; }
  .cm__panel { height: auto; max-height: calc(100vh - 24px); grid-template-columns: 1fr; overflow-y: auto; scrollbar-width: none; }
  .cm__media { aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--hair); }
  .cm__body { overflow: visible; padding: 28px 22px 24px; gap: 22px; }
  .cm__close { position: fixed; top: 22px; right: 22px; z-index: 2; background: var(--card); border-color: var(--hair); }
  .cm__meta { margin-top: 4px; }
  .cm__head { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .cm__panel, .cm__backdrop, .cm.is-closing .cm__panel, .cm.is-closing .cm__backdrop { animation: none; } .cm__img { transition: none; } }

/* No visible scrollbars anywhere; scrolling itself still works. */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Images, logos and tile links cannot be picked up and dragged. */
img, a { -webkit-user-drag: none; }
img { -webkit-user-select: none; user-select: none; }

/* ============================================================
   Brief page
   ============================================================ */
body.bf-page { background: var(--bg); }

.bf-hero { position: relative; padding: 200px 0 0; }
.bf-title {
  font-family: var(--fh); font-weight: 500; color: var(--text); text-transform: uppercase;
  font-size: clamp(3.8rem, 11vw, 10rem); line-height: .92; letter-spacing: 0.01em;
  margin-top: 26px;
}
.bf-sub {
  font-family: var(--fh); font-weight: 300; color: var(--text2);
  font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em;
  margin-top: 14px;
}
.bf-intro {
  max-width: 640px; margin-top: 40px;
  font-size: 1.05rem; font-weight: 300; line-height: 1.75; color: var(--text-body);
}
.bf-intro--muted { margin-top: 14px; color: var(--text2); font-size: .95rem; }
.bf-intro a { color: var(--text); border-bottom: 1px solid var(--border); }

/* the logo ring, enlarged and cut by the right edge; strokes draw in on open */
.bf { position: relative; overflow-x: clip; } /* ring may run below the hero; only cut it at the right edge */
.bf-hero__in { position: relative; z-index: 1; }
.bf-ring {
  position: absolute; z-index: 0; pointer-events: none;
  width: 64vw; height: 64vw; left: 60vw; top: -24vw;
  color: rgba(255, 255, 255, .34);
}
.bf-ring path {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  animation: bf-ring-draw 2.4s cubic-bezier(.45, .05, .25, 1) .2s forwards;
}
.bf-ring .rail:first-child { stroke-width: 3.4; }
.bf-ring .u { animation-duration: 1.3s; animation-delay: .6s; }
@keyframes bf-ring-draw { to { stroke-dashoffset: 0; } }

.bf-page .site-footer { position: relative; z-index: 2; background: var(--bg); }

/* form */
.bf-form { position: relative; z-index: 2; padding-top: 30px; padding-bottom: 150px; }
.bf-sec { padding: 90px 0; border-top: 1px solid var(--hair); }
.bf-sec:first-child { border-top: 0; }
/* questions: same size and blur-in as the home statement */
.bf-h {
  font-family: var(--fh); font-weight: 500; color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.24; letter-spacing: -0.01em;
  margin-bottom: 44px;
}

/* choices: bare box + label in a left-aligned row, no plates */
.bf-checks, .bf-radios { display: flex; flex-wrap: wrap; gap: 16px 44px; }

.bf-opt {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 4px 0; cursor: pointer;
}
.bf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bf-box {
  flex: none; width: 16px; height: 16px; border: 1px solid var(--border-h);
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.bf-opt:hover .bf-box { border-color: var(--text); }
.bf-opt input[type="radio"] + .bf-box { border-radius: 50%; }
.bf-opt input:checked + .bf-box { background: var(--text); border-color: var(--text); box-shadow: inset 0 0 0 3px var(--bg); }
.bf-opt input:focus-visible + .bf-box { outline: 1px solid var(--text); outline-offset: 3px; }
.bf-lbl { font-size: 1.02rem; color: var(--text-body); line-height: 1.4; transition: color var(--ease); }
.bf-opt:hover .bf-lbl, .bf-opt input:checked ~ .bf-lbl { color: var(--text); }

.bf-fields { display: grid; gap: 34px 44px; }
.bf-fields--2 { grid-template-columns: 1fr 1fr; }
.bf-fields--3 { grid-template-columns: repeat(3, 1fr); }
.bf-field--wide { grid-column: 1 / -1; }
.bf-field { display: flex; flex-direction: column; gap: 10px; }
.bf-field__lbl { font-family: var(--fm); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text2); }
/* text fields: no plates, a single hairline underneath, like the choices */
.bf-field input, .bf-field textarea {
  width: 100%; padding: 10px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; color: var(--text); font-family: var(--fb); font-size: 1.02rem; line-height: 1.55; outline: none;
  transition: border-color var(--ease);
}
.bf-field textarea { display: block; min-height: 0; max-height: calc(12 * 1.55em + 22px); resize: none; overflow-y: auto; }
.bf-field__lbl { display: flex; justify-content: space-between; gap: 16px; }
.bf-count { letter-spacing: .08em; color: var(--text3); transition: color var(--ease); }
.bf-count.is-near { color: var(--text2); }
.bf-field input::placeholder, .bf-field textarea::placeholder { color: rgba(255, 255, 255, .3); }
.bf-field input:hover, .bf-field textarea:hover { border-color: var(--border-h); }
.bf-field input:focus, .bf-field textarea:focus { border-color: var(--text); }
.bf-field .is-bad, .bf-consent.is-bad .bf-box { border-color: #d0645f; }

.bf-consent { margin-top: 30px; padding: 0; align-items: flex-start; }
.bf-consent .bf-box { margin-top: 3px; }
.bf-consent input:checked + .bf-box { box-shadow: inset 0 0 0 3px var(--bg); }
.bf-consent .bf-lbl { font-size: .9rem; color: var(--text2); }
.bf-consent a { color: var(--text); border-bottom: 1px solid var(--border); }

.bf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.bf-err { color: #e07a74; font-size: .9rem; }

.bf-done { padding-bottom: 170px; }
.bf-title--done { font-size: clamp(3.4rem, 9vw, 8.5rem); }
.bf-home { margin-top: 44px; gap: 12px; }
.bf-home:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.js .bf-done .bf-home { animation: heroRise .95s var(--ease-out) .62s both; }
.arrow-ul {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square;
  transition: transform var(--ease);
}
.bf-home:hover .arrow-ul { transform: translate(-2px, -2px); }

@media (max-width: 1000px) {
  .bf-fields--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .bf-ring { width: 120vw; height: 120vw; left: 42vw; top: -48vw; color: rgba(255, 255, 255, .22); }
  .bf-hero { padding-top: 150px; }
  .bf-fields--2, .bf-fields--3 { grid-template-columns: 1fr; }
  .bf-sec { padding: 64px 0; }
  .bf-h { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-ring path { animation: none; stroke-dashoffset: 0; }
}

/* up-right arrow icon (buttons and links), drawn instead of the tiny text glyph */
.arrow-ur {
  width: 20px; height: 20px; flex: none; margin-left: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square;
  transition: transform var(--ease);
}
.btn:hover .arrow-ur, .cm__link:hover .arrow-ur { transform: translate(2px, -2px); }
.hero-cta .arrow-ur { margin-left: 0; }
.cm__link { display: inline-flex; align-items: center; }
.cm__link .arrow-ur { width: 12px; height: 12px; margin-left: 8px; }

/* ============================================================
   Entrance motion beyond the home page, reusing the home hero's heroRise
   (rise + unblur on load) and the blur-in by words / block reveal on scroll.
   ============================================================ */
.js .bf-title, .js .bf-sub, .js .bf-intro,
.js .page-top .container > *,
.js .jx-crumb, .js .jx-title, .js .jx-sub, .js .jx-search, .js .jx-filter, .js .jx-bar, .js .jx-feat,
.js .article-back, .js .article-meta, .js .article-title, .js .article-dek, .js .article-rule, .js .article-cover, .js .article-toc {
  animation: heroRise .95s var(--ease-out) both;
}
.js .bf-title { animation-delay: .12s; }
.js .bf-sub   { animation-delay: .42s; }
.js .bf-intro { animation-delay: .42s; }

.js .page-top .container > :nth-child(1) { animation-delay: .12s; }
.js .page-top .container > :nth-child(2) { animation-delay: .24s; }
.js .page-top .container > :nth-child(n+3) { animation-delay: .42s; }

.js .jx-crumb  { animation-delay: .08s; }
.js .jx-title  { animation-delay: .16s; }
.js .jx-sub    { animation-delay: .42s; }
.js .jx-search { animation-delay: .52s; }
.js .jx-filter { animation-delay: .62s; }
.js .jx-bar    { animation-delay: .70s; }
.js .jx-feat   { animation-delay: .76s; }

.js .article-back  { animation-delay: .06s; }
.js .article-meta  { animation-delay: .14s; }
.js .article-title { animation-delay: .22s; }
.js .article-dek   { animation-delay: .42s; }
.js .article-rule  { animation-delay: .52s; }
.js .article-cover { animation-delay: .60s; }
.js .article-toc   { animation-delay: .70s; }

/* journal cards rise in as they scroll into view (same curve as [data-reveal]) */
.js .jx-card {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out), border-color var(--ease);
  transition-delay: var(--rd, 0ms), var(--rd, 0ms), 0ms;
}
.js .jx-card.in { opacity: 1; transform: none; }

/* article section headings blur in by words; hidden until split so they never flash */
.js .prose h2:not([data-blur-done]) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .bf-title, .js .bf-sub, .js .bf-intro, .js .page-top .container > *,
  .js .jx-crumb, .js .jx-title, .js .jx-sub, .js .jx-search, .js .jx-filter, .js .jx-bar, .js .jx-feat,
  .js .article-back, .js .article-meta, .js .article-title, .js .article-dek, .js .article-rule, .js .article-cover, .js .article-toc { animation: none; }
  .js .jx-card { opacity: 1; transform: none; transition: border-color var(--ease); }
  .js .prose h2:not([data-blur-done]) { opacity: 1; }
}
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-actions .btn[disabled] { opacity: .55; cursor: progress; }

/* brief: choices and fields blur in one after another, same curve as .blur-word */
.js [data-stagger] .bf-opt, .js [data-stagger] .bf-field, .js [data-stagger] .bf-actions, .js [data-stagger] .bf-sublbl {
  opacity: 0; transform: translateY(0.5em); filter: blur(10px);
  transition: opacity .6s cubic-bezier(.25,.46,.45,.94),
              transform .6s cubic-bezier(.25,.46,.45,.94),
              filter .6s cubic-bezier(.25,.46,.45,.94);
  transition-delay: calc(.15s + var(--i, 0) * 70ms);
}
.js [data-stagger].is-in .bf-opt, .js [data-stagger].is-in .bf-field, .js [data-stagger].is-in .bf-actions, .js [data-stagger].is-in .bf-sublbl {
  opacity: 1; transform: none; filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-stagger] .bf-opt, .js [data-stagger] .bf-field, .js [data-stagger] .bf-actions, .js [data-stagger] .bf-sublbl {
    opacity: 1; transform: none; filter: none; transition: none;
  }
}

/* brief: a question split into labelled rows (budget / timeline) */
.bf-subq + .bf-subq { margin-top: 38px; }
.bf-sublbl { display: block; margin-bottom: 16px; font-family: var(--fm); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text2); }

/* brief hero: title and a two-line lead, no middle line */
.bf-intro--lead { margin-top: 34px; max-width: none; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--text2); }

/* error pages (403/404/500/503): brief hero with the ring, big code, statement-size title */
.err { min-height: 82vh; padding-bottom: 150px; }
.err-title {
  margin-top: 30px; font-family: var(--fh); font-weight: 500; color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.24; letter-spacing: -0.01em;
}
.err .bf-intro--lead { margin-top: 22px; }
.js .err-title { animation: heroRise .95s var(--ease-out) .28s both; }
.js .err .bf-home { animation: heroRise .95s var(--ease-out) .6s both; }
@media (prefers-reduced-motion: reduce) {
  .js .err-title, .js .err .bf-home { animation: none; }
}
.bf-radios--col { flex-direction: column; align-items: flex-start; gap: 14px; }

/* ============================================================
   In-article call to action: darkened cover, logo ring drawn on scroll-in,
   copy and a solid button to the brief
   ============================================================ */
.prose .art-cta {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 300px; margin: 2.8em 0 3em; background: #000;
  border: 1px solid var(--hair);
}
.art-cta__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25) brightness(.5); transform: scale(1.06);
  transition: transform 1.8s var(--ease-out);
}
.art-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 8, 8, .88) 0%, rgba(8, 8, 8, .6) 55%, rgba(8, 8, 8, .3) 100%);
}
.art-cta.is-in .art-cta__bg { transform: scale(1); }

.art-cta .bf-ring {
  z-index: 2; left: auto; right: -210px; top: -90px; width: 480px; height: 480px;
  color: rgba(255, 255, 255, .32);
}
.art-cta .bf-ring path { stroke-width: 3; animation: none; }
.art-cta .bf-ring .rail:first-child { stroke-width: 5; }
.art-cta.is-in .bf-ring path { animation: bf-ring-draw 2.4s cubic-bezier(.45, .05, .25, 1) .15s forwards; }
.art-cta.is-in .bf-ring .u { animation-duration: 1.3s; }

.art-cta__in { position: relative; z-index: 3; max-width: 560px; padding: 48px 56px; }
.art-cta__title {
  font-family: var(--fh); font-weight: 500; color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.2; letter-spacing: -0.01em;
}
.art-cta__text { margin-top: 14px; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .74); }
.prose .art-cta .art-cta__btn { margin-top: 28px; color: var(--bg); border: 1px solid var(--text); }
.prose .art-cta .art-cta__btn:hover { color: var(--text); background: var(--bg); border-color: var(--bg); }

.js .art-cta__text, .js .art-cta__btn {
  opacity: 0; transform: translateY(0.5em); filter: blur(10px);
  transition: opacity .6s cubic-bezier(.25,.46,.45,.94), transform .6s cubic-bezier(.25,.46,.45,.94),
              filter .6s cubic-bezier(.25,.46,.45,.94), background-color var(--ease), color var(--ease), border-color var(--ease);
}
.js .art-cta__text { transition-delay: .25s, .25s, .25s, 0s, 0s, 0s; }
.js .art-cta__btn  { transition-delay: .4s, .4s, .4s, 0s, 0s, 0s; }
.js .art-cta.is-in .art-cta__text, .js .art-cta.is-in .art-cta__btn { opacity: 1; transform: none; filter: none; }

@media (max-width: 640px) {
  .art-cta__in { padding: 34px 26px; }
  .art-cta .bf-ring { width: 300px; height: 300px; right: -215px; top: -20px; color: rgba(255, 255, 255, .2); }
}
@media (prefers-reduced-motion: reduce) {
  .art-cta.is-in .bf-ring path, .art-cta .bf-ring path { animation: none; stroke-dashoffset: 0; }
  .js .art-cta__text, .js .art-cta__btn { opacity: 1; transform: none; filter: none; }
  .art-cta__bg { transition: none; }
}

/* named byline with a portrait (trial on one article) */
.author-photo--lg { width: 76px; height: 76px; filter: none; }
.author-photo--lg + div .author-name { font-size: 1.3rem; }
