/* ============================================================================
   Hamerkop Studio, design system
   Warm editorial architecture palette. Light bone default, full dark theme,
   fluid type scale, and motion that respects prefers-reduced-motion.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* colour, warm neutral spine + the studio's gold */
  --bone:      #f6f2ea;
  --bone-2:    #efe9de;
  --paper:     #fdfbf7;
  --ink:       #14120e;
  --ink-2:     #1e1b15;
  --ink-3:     #2b2720;
  --gold:      #b88e2f;
  --gold-lift: #cfa246;
  --clay:      #8d6b45;
  --sage:      #6f7561;

  --bg:        var(--bone);
  --bg-raise:  var(--paper);
  --fg:        var(--ink);
  --fg-soft:   color-mix(in oklab, var(--ink) 62%, var(--bone));
  --fg-faint:  color-mix(in oklab, var(--ink) 38%, var(--bone));
  --line:      color-mix(in oklab, var(--ink) 14%, var(--bone));
  --line-soft: color-mix(in oklab, var(--ink) 8%, var(--bone));
  --accent:    var(--gold);
  --on-accent: #14120e;

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Sora", "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --step--2: clamp(.69rem, .67rem + .1vw, .75rem);
  --step--1: clamp(.8rem, .77rem + .16vw, .89rem);
  --step-0:  clamp(.95rem, .91rem + .2vw, 1.06rem);
  --step-1:  clamp(1.13rem, 1.06rem + .35vw, 1.4rem);
  --step-2:  clamp(1.35rem, 1.22rem + .64vw, 1.85rem);
  --step-3:  clamp(1.6rem, 1.38rem + 1.1vw, 2.45rem);
  --step-4:  clamp(1.92rem, 1.53rem + 1.9vw, 3.25rem);
  --step-5:  clamp(2.3rem, 1.64rem + 3.2vw, 4.3rem);
  --step-6:  clamp(2.75rem, 1.6rem + 5.6vw, 6.4rem);
  --step-7:  clamp(3.2rem, 1.1rem + 9.6vw, 9rem);

  /* space */
  --gap: clamp(1rem, .7rem + 1.2vw, 1.6rem);
  --pad-x: clamp(1.15rem, .4rem + 3.4vw, 4.5rem);
  --section: clamp(4.5rem, 2.5rem + 8vw, 10rem);
  --radius: 2px;
  --radius-lg: 4px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur: .68s;

  --shadow: 0 1px 2px rgba(20,18,14,.04), 0 12px 34px -18px rgba(20,18,14,.22);
  --shadow-lg: 0 2px 6px rgba(20,18,14,.05), 0 40px 80px -40px rgba(20,18,14,.35);
  --maxw: 1560px;
}

[data-theme="dark"] {
  --bg: var(--ink);
  --bg-raise: var(--ink-2);
  --fg: var(--bone);
  --fg-soft: color-mix(in oklab, var(--bone) 66%, var(--ink));
  --fg-faint: color-mix(in oklab, var(--bone) 40%, var(--ink));
  --line: color-mix(in oklab, var(--bone) 16%, var(--ink));
  --line-soft: color-mix(in oklab, var(--bone) 9%, var(--ink));
  --accent: var(--gold-lift);
  --on-accent: #14120e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 34px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.4), 0 40px 80px -40px rgba(0,0,0,.85);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--fg-faint) transparent;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.02; letter-spacing: -.022em; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.wrap-narrow { max-width: 78ch; }
.section { padding-block: var(--section); }
.grid { display: grid; gap: var(--gap); }
.g12 { grid-template-columns: repeat(12, 1fr); }
.stack > * + * { margin-top: var(--flow, 1.1em); }
.center { text-align: center; }
@media (max-width: 900px) { .g12 { grid-template-columns: repeat(6, 1fr); } }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--display); font-weight: 300; font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40; }
.d1 { font-family: var(--display); font-weight: 300; font-size: var(--step-7); line-height: .93; letter-spacing: -.035em; }
.d2 { font-family: var(--display); font-weight: 300; font-size: var(--step-6); line-height: .97; letter-spacing: -.03em; }
.d3 { font-family: var(--display); font-weight: 300; font-size: var(--step-5); line-height: 1.02; letter-spacing: -.026em; }
.d4 { font-family: var(--display); font-weight: 300; font-size: var(--step-4); line-height: 1.08; letter-spacing: -.02em; }
.d5 { font-family: var(--display); font-weight: 300; font-size: var(--step-3); line-height: 1.14; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-soft); font-weight: 300; max-width: 46ch; }
.body-lg { font-size: var(--step-1); line-height: 1.55; font-weight: 300; }
.muted { color: var(--fg-soft); }
.faint { color: var(--fg-faint); }
.italic { font-style: italic; }
em, .accent-italic { font-family: var(--display); font-style: italic; font-weight: 300; color: var(--accent); }

.eyebrow {
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: .22em;
  font-weight: 500; color: var(--fg-faint); display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before {
  content: ""; width: clamp(20px, 3vw, 44px); height: 1px; background: var(--accent); flex: none;
}
.eyebrow.no-rule::before { display: none; }
.mono {
  font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; font-variant-numeric: tabular-nums;
}

.rich > * + * { margin-top: 1.15em; }
.rich h2 { font-family: var(--display); font-size: var(--step-3); margin-top: 1.8em; }
.rich h3 { font-family: var(--display); font-size: var(--step-2); margin-top: 1.6em; }
.rich p { color: var(--fg-soft); max-width: 68ch; }
.rich ul, .rich ol { padding-left: 1.2em; color: var(--fg-soft); max-width: 66ch; }
.rich li + li { margin-top: .4em; }
.rich a { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.rich blockquote {
  border-left: 2px solid var(--accent); padding-left: 1.4em; font-family: var(--display);
  font-size: var(--step-2); font-style: italic; font-weight: 300; line-height: 1.3;
}
.rich img { width: 100%; border-radius: var(--radius); margin-block: 2em; }

/* ---------------------------------------------------------------- grain + progress */
.grain {
  position: fixed; inset: -60%; z-index: 9998; pointer-events: none; opacity: .3;
  background-image: var(--grain-url); background-size: 220px;
  animation: grain 7s steps(8) infinite; mix-blend-mode: multiply;
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .18; }
@keyframes grain {
  0%,100%{transform:translate(0,0)} 10%{transform:translate(-4%,-4%)} 20%{transform:translate(-8%,3%)}
  30%{transform:translate(4%,-8%)} 40%{transform:translate(-3%,9%)} 50%{transform:translate(-6%,3%)}
  60%{transform:translate(7%,0)} 70%{transform:translate(0,7%)} 80%{transform:translate(2%,17%)} 90%{transform:translate(-6%,4%)}
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 9997;
  transform-origin: 0 50%; transform: scaleX(0); background: var(--accent);
  will-change: transform;
}

/* ---------------------------------------------------------------- cursor */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
.cursor {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid color-mix(in oklab, var(--fg) 45%, transparent);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease),
              background .35s var(--ease), border-color .35s var(--ease), opacity .3s;
  display: grid; place-items: center;
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--accent); }
.cursor__label {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--on-accent); opacity: 0; transition: opacity .25s; white-space: nowrap;
}
body.cursor-hover .cursor { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: color-mix(in oklab, var(--accent) 20%, transparent); border-color: var(--accent); }
body.cursor-view .cursor { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: var(--accent); }
body.cursor-view .cursor__label { opacity: 1; }
body.cursor-view .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none !important; } }

/* ---------------------------------------------------------------- preloader */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--ink); color: var(--bone);
  display: grid; place-items: center; transition: transform 1.05s var(--ease), opacity .5s .55s;
}
.preloader__inner { text-align: center; }
.preloader__mark { overflow: hidden; line-height: 0; }
.preloader__mark img { width: clamp(180px, 40vw, 280px); height: auto; }
.preloader__mark span { display: inline-block; transform: translateY(105%); animation: pl-up .9s var(--ease) forwards; }
@keyframes pl-up { to { transform: translateY(0); } }
.preloader__bar { width: min(260px, 50vw); height: 1px; background: rgba(246,242,234,.2); margin: 1.6rem auto 0; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--gold-lift); transition: width .2s linear; }
.preloader__num { font-size: var(--step--2); letter-spacing: .2em; margin-top: .9rem; color: rgba(246,242,234,.5); font-variant-numeric: tabular-nums; }
body.loaded .preloader { transform: translateY(-101%); pointer-events: none; }
body.no-preload .preloader { display: none; }

/* ---------------------------------------------------------------- header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: transform .55s var(--ease), background .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
  padding-block: clamp(.85rem, .5rem + .9vw, 1.35rem);
}
.header.is-solid {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line-soft);
}
.header.is-hidden { transform: translateY(-110%); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
/* The lockup ships as two files rather than one recoloured with CSS: an <img>
   cannot inherit currentColor, and inlining 18 KB of path data into every page
   twice over costs more than a second cached request. */
.brand { display: block; line-height: 0; }
.brand__img {
  height: clamp(29px, 25px + .95vw, 40px); width: auto;
  transition: opacity .35s var(--ease);
}
.brand:hover .brand__img { opacity: .72; }
.brand .l-light { display: none; }
[data-theme="dark"] .brand .l-dark { display: none; }
[data-theme="dark"] .brand .l-light { display: block; }

.nav { display: flex; align-items: center; gap: clamp(1rem, .3rem + 1.6vw, 2.4rem); }
.nav a { font-size: var(--step--1); letter-spacing: .02em; position: relative; padding-block: .3em; color: var(--fg-soft); transition: color .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.header__side { display: flex; align-items: center; gap: .7rem; }
@media (max-width: 940px) { .nav--main { display: none; } }
/* Pages whose hero is a full-bleed photo: the header sits on dark until it
   turns solid, so its chrome inverts rather than disappearing into the image. */
body[data-hero="dark"] .header:not(.is-solid) .nav a { color: rgba(246,242,234,.88); }
body[data-hero="dark"] .header:not(.is-solid) .brand .l-dark { display: none; }
body[data-hero="dark"] .header:not(.is-solid) .brand .l-light { display: block; }
body[data-hero="dark"] .header:not(.is-solid) .nav a:hover,
body[data-hero="dark"] .header:not(.is-solid) .nav a[aria-current="page"] { color: #fff; }
body[data-hero="dark"] .header:not(.is-solid) .icon-btn { border-color: rgba(246,242,234,.34); color: #f6f2ea; }
body[data-hero="dark"] .header:not(.is-solid) .icon-btn:hover { border-color: var(--gold-lift); }
body[data-hero="dark"] .header:not(.is-solid) .btn--ghost { border-color: rgba(246,242,234,.42); color: #f6f2ea; --btn-fg: #f6f2ea; }
body[data-hero="dark"] .header:not(.is-solid) .burger i { background: #f6f2ea; }
body.menu-open .header .nav a,
body.menu-open .header .icon-btn, body.menu-open .header .btn--ghost { color: var(--bone); }
body.menu-open .header .brand .l-dark { display: none; }
body.menu-open .header .brand .l-light { display: block; }
body.menu-open .header .burger i { background: var(--bone); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); transform: rotate(12deg); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }
[data-theme="dark"] .theme-btn .sun { display: none; }

.burger { display: none; width: 44px; height: 44px; place-items: center; }
@media (max-width: 940px) { .burger { display: grid; } }
.burger i { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: transform .45s var(--ease), opacity .3s; }
.burger i + i { margin-top: 6px; }
body.menu-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* full screen menu */
.menu {
  position: fixed; inset: 0; z-index: 890; background: var(--ink); color: var(--bone);
  clip-path: inset(0 0 100% 0); transition: clip-path .85s var(--ease);
  display: grid; grid-template-rows: 1fr auto; padding-top: 20vh; overflow-y: auto;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__list { display: grid; gap: .1em; }
.menu__list a {
  font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 1rem + 7vw, 5rem);
  line-height: 1.06; letter-spacing: -.03em; display: block; overflow: hidden;
}
.menu__list a span { display: block; transform: translateY(110%); transition: transform .7s var(--ease); }
body.menu-open .menu__list a span { transform: translateY(0); }
body.menu-open .menu__list li:nth-child(1) span { transition-delay: .16s; }
body.menu-open .menu__list li:nth-child(2) span { transition-delay: .22s; }
body.menu-open .menu__list li:nth-child(3) span { transition-delay: .28s; }
body.menu-open .menu__list li:nth-child(4) span { transition-delay: .34s; }
body.menu-open .menu__list li:nth-child(5) span { transition-delay: .40s; }
body.menu-open .menu__list li:nth-child(6) span { transition-delay: .46s; }
.menu__list a:hover span { color: var(--gold-lift); }
.menu__foot { padding-block: 2.5rem; border-top: 1px solid rgba(246,242,234,.14); display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; color: rgba(246,242,234,.6); font-size: var(--step--1); }
.menu__foot a:hover { color: var(--gold-lift); }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--fg); --btn-fg: var(--bg);
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.7em; border-radius: 100px; overflow: hidden; isolation: isolate;
  font-size: var(--step--1); font-weight: 500; letter-spacing: .04em;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: color .4s var(--ease), transform .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .55s var(--ease); border-radius: 100px;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--on-accent); }
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--accent::before { background: var(--fg); }
.btn--accent:hover { color: var(--bg); }

.link-u {
  display: inline-flex; align-items: center; gap: .5em; font-size: var(--step--1);
  letter-spacing: .05em; text-transform: uppercase; font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: .35em; transition: background-size .5s var(--ease), color .3s;
}
.link-u:hover { background-size: 0% 1px; background-position: 100% 100%; color: var(--accent); }
.link-u svg { width: 15px; height: 15px; flex: none; }
.link-u:hover svg { transform: translateX(3px); }
.link-u svg { transition: transform .45s var(--ease); }

/* ---------------------------------------------------------------- reveals */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .95s var(--ease), transform .95s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.955); }

.mask { overflow: hidden; display: block; }
.mask > * { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.mask.in > * { transform: translateY(0); }

.img-mask { overflow: hidden; position: relative; }
.img-mask img { clip-path: inset(0 0 100% 0); transform: scale(1.16); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
.img-mask.in img { clip-path: inset(0 0 0 0); transform: scale(1); }

.split .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split .word > i { display: inline-block; font-style: inherit; transform: translateY(105%); transition: transform .9s var(--ease); }
.split.in .word > i { transform: translateY(0); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding-bottom: clamp(2.5rem, 1rem + 5vw, 5rem); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,11,9,.62) 0%, rgba(12,11,9,.18) 34%, rgba(12,11,9,.34) 62%, rgba(12,11,9,.86) 100%);
}
.hero__inner { color: #f6f2ea; position: relative; }
.hero em, .next-project em { color: var(--gold-lift); }
.hero .eyebrow { color: rgba(246,242,234,.7); }
.hero__title { font-size: var(--step-7); }
.hero__meta { position: relative; display: flex; flex-wrap: wrap; gap: clamp(1.4rem,1rem + 2vw,3.4rem); margin-top: clamp(2rem,1rem + 3vw,3.4rem); align-items: flex-end; justify-content: space-between; }
.hero__lede { color: rgba(246,242,234,.82); max-width: 40ch; }
.scroll-cue { position: absolute; right: var(--pad-x); bottom: 0; display: inline-flex; flex-direction: column; align-items: center; gap: .7rem; font-size: var(--step--2); letter-spacing: .22em; text-transform: uppercase; color: rgba(246,242,234,.6); }
.scroll-cue i { display: block; width: 1px; height: 52px; background: linear-gradient(rgba(246,242,234,.65), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content:""; position:absolute; inset:0; background: var(--gold-lift); animation: cue 2.1s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(100%)} }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ---------------------------------------------------------------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(.9rem,.6rem + .8vw,1.4rem); background: var(--bg-raise); }
.marquee__track { display: flex; width: max-content; animation: marq 42s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span {
  font-family: var(--display); font-weight: 300; font-size: var(--step-3);
  padding-inline: clamp(1rem,.6rem + 1.4vw,2rem); display: inline-flex; align-items: center; gap: clamp(1rem,.6rem + 1.4vw,2rem);
  white-space: nowrap; color: var(--fg-soft);
}
.marquee__track > span::after { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- stat / counters */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: clamp(1.5rem,1rem + 2vw,3rem); }
.stat__n { font-family: var(--display); font-weight: 300; font-size: var(--step-5); line-height: 1; letter-spacing: -.03em; display: flex; align-items: baseline; }
.stat__n sup { font-size: .42em; color: var(--accent); margin-left: .1em; }
.stat__l { margin-top: .6rem; font-size: var(--step--1); color: var(--fg-soft); max-width: 20ch; }

/* ---------------------------------------------------------------- project cards */
.work-list { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.work-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }

.pcard { position: relative; display: block; }
.pcard__media { position: relative; overflow: hidden; background: var(--bg-raise); aspect-ratio: 4/5; border-radius: var(--radius); }
.pcard--wide .pcard__media { aspect-ratio: 16/10; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.25s var(--ease), filter .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.055); }
.pcard__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,11,9,.6));
  opacity: 0; transition: opacity .6s var(--ease);
}
.pcard:hover .pcard__media::after { opacity: 1; }
.pcard__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px); padding: .42em .9em; border-radius: 100px; font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.pcard__body { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding-top: 1.1rem; border-top: 1px solid var(--line); margin-top: 1.1rem; }
.pcard__title { font-family: var(--display); font-weight: 300; font-size: var(--step-2); letter-spacing: -.02em; transition: color .35s; }
.pcard:hover .pcard__title { color: var(--accent); }
.pcard__meta { font-size: var(--step--1); color: var(--fg-faint); text-align: right; flex: none; }
.pcard__sum { color: var(--fg-soft); font-size: var(--step--1); margin-top: .5rem; max-width: 48ch; }

/* index rows with cursor-follow preview */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 4rem 1fr auto auto; gap: clamp(1rem,.5rem + 1.5vw,2.5rem);
  align-items: center; padding-block: clamp(1.4rem,1rem + 1.4vw,2.4rem);
  border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
}
.row::before { content:""; position:absolute; inset: 0 calc(var(--pad-x) * -.4); z-index:-1; background: var(--bg-raise); opacity: 0; transition: opacity .45s var(--ease); }
.row:hover::before { opacity: 1; }
.row__n { font-size: var(--step--2); letter-spacing: .12em; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.row__t { font-family: var(--display); font-weight: 300; font-size: var(--step-3); letter-spacing: -.025em; transition: transform .5s var(--ease), color .4s; }
.row:hover .row__t { transform: translateX(14px); color: var(--accent); }
.row__c, .row__y { font-size: var(--step--1); color: var(--fg-soft); }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; }
  .row__n, .row__c { display: none; }
  .row:hover .row__t { transform: none; }
}
.hover-preview {
  position: fixed; top: 0; left: 0; width: clamp(220px, 22vw, 340px); aspect-ratio: 4/5;
  z-index: 500; pointer-events: none; overflow: hidden; border-radius: var(--radius);
  opacity: 0; transform: translate(-50%,-50%) scale(.9); transition: opacity .4s var(--ease), transform .5s var(--ease);
  box-shadow: var(--shadow-lg);
}
.hover-preview.on { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px), (pointer: coarse) { .hover-preview { display: none; } }

/* ---------------------------------------------------------------- horizontal scroll */
.hscroll { position: relative; }
.hscroll__viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  overscroll-behavior-x: contain;   /* don't trigger the browser back gesture */
}
.hscroll__viewport::-webkit-scrollbar { display: none; }
.hscroll__track { display: flex; gap: var(--gap); padding-inline: var(--pad-x); width: max-content; }
.hscroll__item { width: clamp(260px, 34vw, 480px); scroll-snap-align: center; flex: none; }
.hscroll__nav { display: flex; gap: .6rem; }
.hscroll__viewport.dragging { cursor: grabbing; scroll-snap-type: none; }

/* ---------------------------------------------------------------- filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters a.fbtn,
.filters button {
  padding: .55em 1.15em; border-radius: 100px; border: 1px solid var(--line);
  font-size: var(--step--1); color: var(--fg-soft);
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .3s var(--ease);
}
.filters a.fbtn:hover,
.filters button:hover { border-color: var(--accent); color: var(--fg); }
.filters a.fbtn[aria-pressed="true"],
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------------------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; text-align: left; padding-block: clamp(1.15rem,.9rem + .8vw,1.7rem); }
.acc__btn h3 { font-family: var(--display); font-weight: 300; font-size: var(--step-2); transition: color .35s; }
.acc__btn:hover h3 { color: var(--accent); }
.acc__ico { width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; position: relative; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.acc__ico::before, .acc__ico::after { content: ""; position: absolute; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.acc__ico::before { width: 11px; height: 1.5px; }
.acc__ico::after { width: 1.5px; height: 11px; }
.acc__item.open .acc__ico { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(90deg); }
.acc__item.open .acc__ico::after { transform: scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 1.6rem; color: var(--fg-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- process */
.steps { counter-reset: st; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { counter-increment: st; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.6fr); gap: clamp(1rem,.5rem + 2vw,3.5rem); padding-block: clamp(1.8rem,1.2rem + 2vw,3.2rem); border-bottom: 1px solid var(--line); position: relative; }
.step::before {
  content: "0" counter(st); font-family: var(--display); font-weight: 300;
  font-size: var(--step-4); color: var(--line); line-height: 1; transition: color .6s var(--ease);
}
.step.in::before { color: var(--accent); }
.step__b { grid-column: 2; }
.step h3 { font-family: var(--display); font-weight: 300; font-size: var(--step-3); }
.step p { color: var(--fg-soft); margin-top: .8rem; max-width: 56ch; }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; } .step__b { grid-column: 1; } }

/* ---------------------------------------------------------------- gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.gitem { grid-column: span 6; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-raise); }
.gitem--full { grid-column: span 12; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gitem:hover img { transform: scale(1.04); }
.gitem figcaption { margin-top: .7rem; font-size: var(--step--2); color: var(--fg-faint); letter-spacing: .04em; }
@media (max-width: 720px) { .gitem, .gitem--full { grid-column: span 12; } }

.lightbox {
  position: fixed; inset: 0; z-index: 9500; background: color-mix(in oklab, var(--ink) 96%, transparent);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
  backdrop-filter: blur(8px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__top, .lightbox__bot { display: flex; align-items: center; justify-content: space-between; padding: clamp(1rem,.6rem + 1.4vw,2rem) var(--pad-x); color: var(--bone); gap: 1rem; }
.lightbox__stage { display: grid; place-items: center; padding-inline: var(--pad-x); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { color: rgba(246,242,234,.7); font-size: var(--step--1); max-width: 60ch; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246,242,234,.28); color: var(--bone); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.lb-btn:hover { background: var(--gold-lift); border-color: var(--gold-lift); color: var(--ink); transform: scale(1.06); }

/* ---------------------------------------------------------------- social feed */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(1.2rem,1rem + 1vw,2rem); }
.fcard { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-raise); display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.fcard:hover { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); transform: translateY(-4px); box-shadow: var(--shadow); }
.fcard__head { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-soft); font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.fcard__head svg { width: 16px; height: 16px; flex: none; }
.fcard__head .sp { margin-left: auto; text-transform: none; letter-spacing: .02em; }
.fcard__frame { position: relative; background: var(--bg); }
.fcard__frame iframe { width: 100%; border: 0; display: block; }
.fcard--instagram .fcard__frame { min-height: 560px; }
.fcard--linkedin .fcard__frame { min-height: 480px; }
.fcard__body { padding: 1rem 1.1rem 1.2rem; }
.fcard__cap { font-size: var(--step--1); color: var(--fg-soft); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fcard__foot { margin-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--step--2); color: var(--fg-faint); }
.fcard__frame[data-lazy] { display: grid; place-items: center; cursor: pointer; }
.fcard__ph { display: grid; place-items: center; gap: .8rem; padding: 3rem 1rem; text-align: center; color: var(--fg-faint); }
.fcard__ph span { font-size: var(--step--1); }
.play {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; transition: background .35s, color .35s, transform .35s var(--ease);
}
.fcard__frame:hover .play { background: var(--accent); color: var(--on-accent); transform: scale(1.08); }

/* ---------------------------------------------------------------- forms */
.field { position: relative; padding-top: 1.5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .7em 0; font-size: var(--step-0); transition: border-color .4s;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 6.5em; }
.field label {
  position: absolute; left: 0; top: 1.5rem; pointer-events: none; color: var(--fg-faint);
  font-size: var(--step-0); transition: transform .38s var(--ease), font-size .38s var(--ease), color .38s;
  transform-origin: 0 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label,
.field select:valid + label {
  transform: translateY(-1.55rem) scale(.72); color: var(--accent);
}
.field.err input, .field.err textarea, .field.err select { border-bottom-color: #b3452f; }
.field__err { font-size: var(--step--2); color: #b3452f; margin-top: .35rem; height: 0; overflow: hidden; transition: height .3s; }
.field.err .field__err { height: 1.4em; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.8rem,.5rem + 1.4vw,2rem); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: var(--step--2); color: var(--fg-faint); }
.form-msg { padding: 1rem 1.2rem; border-radius: var(--radius); font-size: var(--step--1); display: none; }
.form-msg.ok { display: block; background: color-mix(in oklab, var(--accent) 16%, transparent); border: 1px solid var(--accent); }
.form-msg.bad { display: block; background: rgba(179,69,47,.1); border: 1px solid #b3452f; }

/* chip pickers */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips label {
  padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 100px; cursor: pointer;
  font-size: var(--step--1); color: var(--fg-soft); transition: all .3s var(--ease); position: static; transform: none;
}
.chips input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--bone); padding-top: clamp(3.5rem,2rem + 5vw,7rem); }
.footer a { color: rgba(246,242,234,.72); transition: color .3s; }
.footer a:hover { color: var(--gold-lift); }
.footer__cta { padding-bottom: clamp(3rem,2rem + 4vw,6rem); border-bottom: 1px solid rgba(246,242,234,.14); }
.footer__cta h2 { font-size: var(--step-6); }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem,1rem + 3vw,4rem); padding-block: clamp(2.5rem,2rem + 3vw,4.5rem); }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } }
.footer h4 { font-size: var(--step--2); letter-spacing: .2em; text-transform: uppercase; color: rgba(246,242,234,.45); margin-bottom: 1.1rem; font-weight: 500; font-family: var(--sans); }
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: var(--step--1); }
.footer__bot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.8rem; border-top: 1px solid rgba(246,242,234,.14); font-size: var(--step--2); color: rgba(246,242,234,.5); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(246,242,234,.2); border-radius: 50%; display: grid; place-items: center; transition: all .4s var(--ease); }
.socials a:hover { background: var(--gold-lift); border-color: var(--gold-lift); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- misc */
.parallax { will-change: transform; }
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease); }
.divider { height: 1px; background: var(--line); }
.pill { display: inline-flex; align-items: center; gap: .45em; padding: .35em .85em; border: 1px solid var(--line); border-radius: 100px; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1.4rem 2rem; padding-block: 1.8rem; border-block: 1px solid var(--line); }
.spec dt { font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: .35rem; }
.spec dd { margin: 0; font-size: var(--step-0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 10001; background: var(--fg); color: var(--bg); padding: .8em 1.4em; border-radius: 100px; transition: top .3s; }
.skip:focus { top: 1rem; }
.empty { padding: clamp(3rem,2rem + 4vw,6rem) 0; text-align: center; color: var(--fg-faint); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

.next-project { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 62svh; color: var(--bone); text-align: center; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.next-project:hover img { transform: scale(1.06); }
.next-project::after { content:""; position:absolute; inset:0; background: rgba(12,11,9,.55); transition: background .6s; }
.next-project:hover::after { background: rgba(12,11,9,.4); }
.next-project > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .mask > *, .split .word > i { opacity: 1 !important; transform: none !important; }
  .img-mask img { clip-path: none !important; transform: none !important; }
  .grain { display: none; }
  .preloader { display: none; }
}
@media print { .header, .footer, .cursor, .cursor-dot, .grain, .preloader { display: none !important; } }


/* ------------------------------------------------------- responsive overrides
   These live at the end on purpose: a media query adds no specificity, so a
   narrow-screen rule only wins if it comes after the base rule it overrides. */
@media (max-width: 860px) {
  /* the hero photo is bright through the middle, exactly where the eyebrow and
     first line of the headline sit on a phone, so the copy gets its own scrim */
  .hero__inner::before {
    content: ""; position: absolute; z-index: -1;
    inset: -3rem -50vw -10rem;
    background: linear-gradient(180deg, transparent 0%, rgba(12,11,9,.42) 14%, rgba(12,11,9,.66) 34%, rgba(12,11,9,.84) 64%, rgba(12,11,9,.92) 100%);
  }
  /* belt and braces over an unpredictable photograph */
  .hero__inner .eyebrow, .hero__title { text-shadow: 0 1px 18px rgba(12,11,9,.55); }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(12,11,9,.6) 0%, rgba(12,11,9,.22) 26%,
                rgba(12,11,9,.5) 62%, rgba(12,11,9,.88) 100%);
  }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero__lede { max-width: none; }
}

/* ---------------------------------------------------------------- utilities
   Declared last so they beat component defaults such as .btn{display:inline-flex}. */
@media (max-width: 860px) { .hide-sm { display: none; } }
@media (max-width: 560px) { .hide-xs { display: none; } }

/* ---------------------------------------------------------------- awards
   A studio with a long list needs a ledger, not a wall of trophy cards: one
   row per award, grouped by year, so fifty entries stay scannable. */
.awards { border-top: 1px solid var(--line); }
.award {
  display: grid; grid-template-columns: 6.5rem 1fr auto; gap: clamp(1rem, .5rem + 1.6vw, 2.5rem);
  align-items: baseline; padding-block: clamp(1.1rem, .9rem + 1vw, 1.8rem);
  border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
}
.award::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad-x) * -.35); z-index: -1;
  background: var(--bg-raise); opacity: 0; transition: opacity .4s var(--ease);
}
.award:hover::before { opacity: 1; }
.award__year {
  font-family: var(--display); font-weight: 300; font-size: var(--step-2);
  color: var(--fg-faint); line-height: 1; font-variant-numeric: tabular-nums;
  transition: color .45s var(--ease);
}
.award:hover .award__year { color: var(--accent); }
.award__year.is-dup { opacity: 0; }
.award:hover .award__year.is-dup { opacity: .35; }
.award__t { font-family: var(--display); font-weight: 300; font-size: var(--step-2); letter-spacing: -.018em; }
.award__org { color: var(--fg-soft); font-size: var(--step--1); margin-top: .35rem; }
.award__d { color: var(--fg-faint); font-size: var(--step--1); margin-top: .5rem; max-width: 62ch; }
.award__side { display: flex; align-items: center; gap: .8rem; flex: none; }
.award__badge {
  font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: .34em .85em; border-radius: 100px; border: 1px solid var(--line); color: var(--fg-soft);
}
.award__badge.win { border-color: var(--accent); color: var(--accent); }
.award__logo { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; }
.award a.award__link { color: var(--accent); }
@media (max-width: 700px) {
  .award { grid-template-columns: 1fr; gap: .4rem; }
  .award__year { font-size: var(--step-0); letter-spacing: .1em; }
  .award__year.is-dup { opacity: .35; }
  .award__side { margin-top: .6rem; }
}

/* home strip: a few marquee names rather than the whole ledger */
.recog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px), 1fr)); gap: clamp(1.2rem,1rem + 1.5vw,2.4rem); }
.recog__i { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.recog__y { font-size: var(--step--2); letter-spacing: .16em; color: var(--accent); font-weight: 500; }
.recog__t { font-family: var(--display); font-weight: 300; font-size: var(--step-1); margin-top: .55rem; line-height: 1.2; }
.recog__o { color: var(--fg-faint); font-size: var(--step--1); margin-top: .4rem; }

/* identity work: the mark sits inside the frame instead of filling it */
.pcard__media--contain { background: var(--pcard-bg, var(--bg-raise)); }
.pcard__media--contain img { object-fit: contain; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.pcard--brand .pcard__media { aspect-ratio: 1; }
.pcard--brand:hover .pcard__media img { transform: scale(1.03); }
.gitem--contain { background: var(--g-bg, var(--bg-raise)); }
.gitem--contain img { object-fit: contain; padding: clamp(1.2rem, 1rem + 2vw, 2.5rem); }

/* footer lockup */
.footer__logo { width: clamp(150px, 14vw, 190px); height: auto; }

/* ---------------------------------------------------------------- blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(1.8rem, 1.2rem + 2vw, 3.2rem); }
.bcard { display: flex; flex-direction: column; height: 100%; }
.bcard__media { position: relative; overflow: hidden; aspect-ratio: 3/2; border-radius: var(--radius); background: var(--bg-raise); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.045); }
.bcard__cat {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(10px);
  padding: .36em .85em; border-radius: 100px; font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.bcard__meta { display: flex; gap: .7rem; align-items: center; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); margin-top: 1.1rem; }
.bcard__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); display: block; }
.bcard__t { font-family: var(--display); font-weight: 300; font-size: var(--step-2); line-height: 1.14; letter-spacing: -.02em; margin-top: .6rem; transition: color .35s; }
.bcard:hover .bcard__t { color: var(--accent); }
.bcard__x { color: var(--fg-soft); font-size: var(--step--1); margin-top: .7rem; }
.bcard__more { margin-top: auto; padding-top: 1.1rem; }

/* featured lead article */
.blead { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
@media (max-width: 860px) { .blead { grid-template-columns: 1fr; } }
.blead__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16/11; background: var(--bg-raise); }
.blead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.blead:hover .blead__media img { transform: scale(1.04); }

/* article */
.article { max-width: 74ch; margin-inline: auto; }
.article > * + * { margin-top: 1.25em; }
.article h2 { font-family: var(--display); font-weight: 300; font-size: var(--step-3); letter-spacing: -.022em; margin-top: 2.2em; line-height: 1.12; }
.article h3 { font-family: var(--display); font-weight: 300; font-size: var(--step-2); margin-top: 1.8em; }
.article p { color: var(--fg-soft); line-height: 1.72; }
.article strong { color: var(--fg); font-weight: 500; }
.article ul, .article ol { padding-left: 1.25em; color: var(--fg-soft); }
.article li + li { margin-top: .45em; }
.article li::marker { color: var(--accent); }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.article blockquote {
  border-left: 2px solid var(--accent); padding: .2em 0 .2em 1.4em; margin-block: 2em;
  font-family: var(--display); font-size: var(--step-2); font-style: italic; font-weight: 300; line-height: 1.32; color: var(--fg);
}
.article img { width: 100%; border-radius: var(--radius); margin-block: 2.2em; }
.article hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.article table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin-block: 2em; }
.article th, .article td { text-align: left; padding: .7em .9em; border-bottom: 1px solid var(--line); }
.article th { font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); font-weight: 500; }
.article td:first-child { color: var(--fg); }
.table-wrap { overflow-x: auto; }

.callout {
  background: var(--bg-raise); border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--radius); padding: clamp(1.1rem, .9rem + .8vw, 1.6rem); margin-block: 2em;
}
.callout p { margin: 0; font-size: var(--step--1); }
.callout p + p { margin-top: .7em; }

.article-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.article-meta b { color: var(--accent); font-weight: 500; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem,.9rem + .8vw,1.6rem); background: var(--bg-raise); }
.toc h4 { font-size: var(--step--2); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: .9rem; font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: .45rem; font-size: var(--step--1); }
.toc a { color: var(--fg-soft); }
.toc a:hover { color: var(--accent); }

.share { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.share a, .share button {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: all .35s var(--ease); color: var(--fg-soft);
}
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.share svg { width: 16px; height: 16px; }
