/* ==========================================================================
   sections.css — hero, work, capabilities, process, contact, case studies
   ========================================================================== */

/* ---- Hero (dark) ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--ink-text);
  padding-top: calc(var(--header-h) + clamp(16px, 2.2vw, 30px));
  padding-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -18% -8% auto -8%;
  height: 96%;
  pointer-events: none;
  background-image: radial-gradient(760px 460px at 76% 4%, rgba(166, 58, 82, 0.62), transparent 64%),
    radial-gradient(520px 340px at 10% 0%, rgba(122, 38, 58, 0.34), transparent 70%);
}

/* Very fine grid: reads as paper texture, not as decoration. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 85%);
}

.hero > .container,
.hero > .marquee {
  position: relative;
  z-index: 1;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__head {
  padding-block: clamp(20px, 3vw, 40px) 0;
}

.hero__lower {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.82fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(20px, 2.6vw, 36px) clamp(28px, 3.4vw, 48px);
}

.hero__title {
  margin-top: 22px;
  font-size: var(--fs-mega);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.048em;
  color: var(--ink-text);
}

.hero__accent {
  color: var(--accent-rose);
  font-size: 1.04em;
  letter-spacing: -0.02em;
}

.hero__sub {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: rgba(247, 245, 241, 0.86);
  max-width: 32ch;
}

.hero__desc {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 46ch;
}

.hero__actions {
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink-faint);
}

.hero__meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(227, 166, 180, 0.16);
  flex: none;
}

/* Technical panel, glass on dark */
.panel {
  border: 1px solid var(--ink-line);
  border-top: 2px solid var(--accent-rose);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 18px 24px 0;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-muted);
}

.panel__rows {
  display: grid;
}

.panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 0 4px rgba(227, 166, 180, 0.16);
}

.panel__count {
  color: var(--accent-rose);
  letter-spacing: 0.1em;
  margin-left: 4px;
}

.panel__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink-line-soft);
}

.panel__key {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.panel__val {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-text);
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease);
}

.panel__foot:hover {
  color: var(--accent-rose);
}

/* ---- Section header --------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(28px, 3.2vw, 44px);
}

.section-head__title {
  margin-top: 18px;
  font-size: var(--fs-h2);
  letter-spacing: -0.04em;
}

.section-head__aside {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--muted-strong);
  padding-bottom: 6px;
  max-width: 42ch;
}

.band--dark .section-head__aside {
  color: var(--ink-muted);
}

.band--dark .eyebrow {
  color: var(--ink-muted);
}

.band--dark .eyebrow::before {
  background: var(--accent-rose);
}

.band--dark .section-head__title .serif,
.band--dark .about-teaser__title .serif {
  color: var(--accent-rose);
}

/* ---- Evidence band ---------------------------------------------------- */

.evidence {
  border-bottom: 1px solid var(--line);
}

.evidence__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}

.evidence__note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
}

/* ---- Work cards ------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* ---- Capabilities ----------------------------------------------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}

.cap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--bg);
  transition: background-color var(--dur) var(--ease);
}

.cap:hover {
  background: var(--white);
}

.cap__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Oversized ghost numeral — structure without a card frame. */
.cap__index {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.22;
  transition: opacity var(--dur) var(--ease);
}

.cap:hover .cap__index {
  opacity: 0.5;
}

.cap__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.cap:hover .cap__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cap__title {
  font-size: 1.1875rem;
  letter-spacing: -0.025em;
}

.cap__summary {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

.cap__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cap__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---- Process (dark band) --------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
}

.stage {
  position: relative;
  padding: 30px 22px 0 0;
}

.stage + .stage {
  padding-left: 22px;
  border-left: 1px solid var(--ink-line-soft);
}

.stage::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 0 4px rgba(227, 166, 180, 0.14);
}

.stage + .stage::before {
  left: 22px;
}

.stage__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--accent-rose-dim);
}

.stage__title {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--ink-text);
}

.stage__body {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.stage__detail {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---- About teaser ---------------------------------------------------- */

.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.6fr);
  gap: clamp(28px, 4vw, 76px);
  align-items: start;
}

.about-teaser__title {
  margin-top: 18px;
  font-size: var(--fs-h2);
  letter-spacing: -0.04em;
}

.about-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 62ch;
}

.about-teaser__body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-strong);
}

.about-teaser__body p:first-child {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

.founder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--white);
}

.founder-card__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
}

.founder-card__meta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Contact panel --------------------------------------------------- */

.contact-section {
  padding-block: calc(var(--section-y) * 0.66);
}

.contact-section--compact {
  padding-block: calc(var(--section-y) * 0.5);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(30px, 4.4vw, 64px);
  border-radius: var(--r-xl);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.contact-panel::before,
.contact-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-panel::before {
  width: 460px;
  height: 460px;
  right: -150px;
  bottom: -220px;
}

.contact-panel::after {
  width: 720px;
  height: 720px;
  right: -290px;
  bottom: -350px;
  border-color: rgba(255, 255, 255, 0.09);
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.contact-panel .eyebrow::before {
  background: rgba(255, 255, 255, 0.6);
}

.contact-panel__title {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 15ch;
}

.contact-panel__title .serif {
  color: #f6d6dc;
}

.contact-panel__text {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  max-width: 46ch;
}

.contact-panel__actions {
  margin-top: 30px;
}

.contact-panel__side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.channels {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.channel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.9375rem;
}

.channel__key {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.channel__val {
  color: #fff;
  transition: opacity var(--dur) var(--ease);
}

a.channel__val:hover {
  opacity: 0.78;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Page hero (dark) ------------------------------------------------ */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--ink-text);
  padding-block: calc(var(--header-h) + clamp(26px, 3.6vw, 48px)) clamp(42px, 5.4vw, 82px);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 130%;
  pointer-events: none;
  background-image: radial-gradient(640px 400px at 78% 0%, rgba(122, 38, 58, 0.45), transparent 70%);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--ink-muted);
}

.page-hero .eyebrow::before {
  background: var(--accent-rose);
}

.page-hero__title {
  margin-top: 20px;
  font-size: var(--fs-display);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink-text);
  max-width: 20ch;
}

.page-hero__title .serif {
  color: var(--accent-rose);
  font-size: 1.03em;
}

.page-hero__lead {
  margin-top: 22px;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 58ch;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-line);
}

.page-hero__meta-item {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-hero__meta-item strong {
  color: var(--ink-text);
  font-weight: 500;
}

/* ---- Case study ------------------------------------------------------ */

.cs-head {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  padding-block: clamp(18px, 2.4vw, 30px) clamp(26px, 3.2vw, 40px);
  border-bottom: 1px solid var(--line);
}

.cs-head::before {
  content: none;
}

.cs-head > .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  opacity: 0.55;
}

.cs-head__title {
  margin-top: 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.01;
  color: var(--ink);
  max-width: 24ch;
}

.cs-head__tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--muted-strong);
  max-width: 50ch;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}

.cs-meta__cell {
  padding: 16px 18px;
  background: var(--bg);
}

.cs-meta__key {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cs-meta__val {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink);
}

/* On dark, a status badge should read as a label, not a button. */
.cs-head .status {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}

.cs-hero-shot {
  margin-top: clamp(26px, 3vw, 40px);
}

.cs-hero-shot .shot-figure {
  margin: 0;
}

.cs-notice {
  margin-top: clamp(24px, 3vw, 34px);
}

/* Screenshot placeholders (case study gallery + hero) */
.shot {
  --shot-ar: 16 / 9;
  position: relative;
  display: block;
  aspect-ratio: var(--shot-ar);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.cs-hero-shot .shot {
  border-color: var(--line);
}

.shot--placeholder {
  background: linear-gradient(180deg, #f7f4f0 0%, var(--surface) 100%);
  color: var(--muted-strong);
}

.shot__pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(23, 23, 23, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 23, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 95%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 95%);
  pointer-events: none;
}

.shot__monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 120px);
  letter-spacing: -0.07em;
  color: rgba(23, 23, 23, 0.07);
  user-select: none;
}

.shot__marks::before,
.shot__marks::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-rose);
  border-style: solid;
  opacity: 0.6;
}

.shot__marks::before {
  top: 16px;
  left: 16px;
  border-width: 1px 0 0 1px;
}

.shot__marks::after {
  bottom: 16px;
  right: 16px;
  border-width: 0 1px 1px 0;
}

.shot__foot {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: rgba(250, 250, 248, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.shot__foot-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot__foot-tag {
  color: var(--accent);
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--accent-line);
}

.shot__foot-hint {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-caption {
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Case study body */
.cs-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  max-width: 900px;
  margin-inline: auto;
  padding-block: clamp(36px, 4vw, 60px) 0;
  align-items: start;
}

.cs-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 1px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.cs-toc__label {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.cs-toc__link {
  position: relative;
  display: block;
  padding: 5px 0 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--muted-strong);
  transition: color var(--dur) var(--ease);
}

.cs-toc__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}

.cs-toc__link:hover {
  color: var(--ink);
}

.cs-toc__link[data-active='true'] {
  color: var(--accent);
}

.cs-toc__link[data-active='true']::before {
  width: 8px;
}

.cs-section {
  padding-block: clamp(28px, 3.2vw, 46px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 32px);
}

.cs-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.cs-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.cs-section__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.cs-section__title {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  letter-spacing: -0.03em;
}

.cs-section__note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 62ch;
}

/* Long-form prose */
.prose {
  max-width: 66ch;
}

.prose p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted-strong);
}

.prose p + p {
  margin-top: 15px;
}

.prose p strong {
  color: var(--ink);
  font-weight: 500;
}

.prose--lead p:first-child {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

.cs-main .prose,
.cs-main .list-dash {
  max-width: none;
}

.list-dash {
  display: grid;
  gap: 10px;
  max-width: 66ch;
}

.list-dash li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-strong);
}

.list-dash li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.list-dash--tight li {
  font-size: 0.875rem;
}

/* Modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--bg);
}

.module-card__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.module-card__items {
  display: grid;
  gap: 6px;
}

.module-card__items li {
  position: relative;
  padding-left: 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-strong);
}

.module-card__items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 1px;
  background: var(--line-strong);
}

/* Architecture */
.arch {
  border-top: 1px solid var(--line);
}

.arch__row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.arch__layer {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}

.arch__detail {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-strong);
}

/* Decisions / challenges */
.stack-rows {
  display: grid;
}

.stack-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.stack-row:first-child {
  padding-top: 4px;
}

.stack-row__num {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 4px;
}

.stack-row__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.stack-row__body {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-strong);
}

/* Contribution */
.contrib {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}

.contrib__row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--bg);
}

.contrib__label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.7;
  padding-top: 3px;
}

.contrib__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-strong);
}

/* Results */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
  margin-bottom: 22px;
}

.metrics-grid__cell {
  padding: 18px 16px;
  background: var(--bg);
}

/* Limitations */
.limits {
  display: grid;
  border-top: 1px solid var(--line);
}

.limits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

.limits li::before {
  content: '!';
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent);
  padding-top: 3px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

.gallery .shot {
  --shot-ar: 16 / 10;
  border-color: var(--line);
  background: var(--surface);
}

/* Related */
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 44px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.related__card:hover {
  background: var(--white);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.related__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.related__cat {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.related__arrow {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.related__card:hover .related__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.related__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ---- About page ------------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
}

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}

.profile-card__portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, #2a1118 0%, #0d0d0c 62%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.profile-card__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(320px 240px at 70% 18%, rgba(122, 38, 58, 0.55), transparent 70%);
}

.profile-card__initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-rose);
  opacity: 0.9;
}

.profile-card__badge {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
  padding: 5px 9px;
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  background: rgba(13, 13, 12, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.profile-card__body {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.profile-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-prose {
  max-width: 64ch;
}

.about-prose h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  letter-spacing: -0.035em;
}

.about-prose section + section {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.about-prose p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted-strong);
}

.about-prose p + p {
  margin-top: 14px;
}

.about-prose p.lead-in {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

.about-prose .list-dash {
  margin-top: 16px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-grid--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

.note-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}

.note-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.note-card__body {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-strong);
}

/* ---- Expertise page -------------------------------------------------- */

.expertise-block {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 68px);
  padding-block: clamp(30px, 3.4vw, 46px);
  border-top: 1px solid var(--line);
}

.expertise-block:first-of-type {
  border-top: 0;
}

.expertise-block__index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
}

.expertise-block__title {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  letter-spacing: -0.03em;
}

.expertise-block__summary {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-strong);
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}

.skill-columns li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.skill-columns li span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: start;
}

/* ---- Contact page --------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.2fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.contact-block {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.contact-block__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-block__key {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-block__val {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-block__val a:hover {
  color: var(--accent);
}

.contact-block__val--pending {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.form-card {
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form-card__title {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.form-card__sub {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

/* ---- 404 ------------------------------------------------------------- */

.not-found {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--ink-text);
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: calc(var(--header-h) + clamp(56px, 9vw, 120px)) clamp(64px, 10vw, 130px);
}

.not-found::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background-image: radial-gradient(560px 340px at 50% 10%, rgba(122, 38, 58, 0.45), transparent 70%);
}

.not-found > .container {
  position: relative;
  z-index: 1;
}

.not-found__code {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  color: var(--accent-rose);
}

.not-found__title {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.045em;
  color: var(--ink-text);
}

.not-found__text {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 1080px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage {
    padding: 26px 22px 26px 0;
    border-bottom: 1px solid var(--ink-line-soft);
  }

  .stage + .stage {
    padding-left: 22px;
    border-left: 1px solid var(--ink-line-soft);
  }

  .stage:nth-child(3),
  .stage:nth-child(5) {
    padding-left: 0;
    border-left: 0;
  }

  .stage + .stage::before {
    left: 22px;
  }

  .stage:nth-child(3)::before,
  .stage:nth-child(5)::before {
    left: 0;
  }

  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__lower {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .section-head,
  .evidence__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .section-head__aside {
    padding-bottom: 0;
  }

  .about-teaser,
  .about-grid,
  .contact-layout,
  .expertise-block,
  .split,
  .cs-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .profile-card {
    position: static;
    max-width: 280px;
  }

  .cs-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-left: 0;
    border-left: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    max-height: none;
  }

  .cs-toc__label {
    width: 100%;
    margin-bottom: 4px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero__title {
    letter-spacing: -0.04em;
    line-height: 0.96;
  }

  .panel__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 11px 0;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage,
  .stage + .stage,
  .stage:nth-child(3),
  .stage:nth-child(4),
  .stage:nth-child(5) {
    padding: 22px 0 22px 20px;
    border-left: 1px solid var(--ink-line-soft);
    border-bottom: 1px solid var(--ink-line-soft);
  }

  .stage::before,
  .stage + .stage::before,
  .stage:nth-child(3)::before,
  .stage:nth-child(5)::before {
    left: -4px;
    top: 26px;
  }

  .caps,
  .module-grid,
  .gallery,
  .related,
  .note-grid,
  .skill-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .contrib__row,
  .arch__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-block__row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .shot__foot-hint {
    display: none;
  }
}

/* ==========================================================================
   About page — visual-first: facts, roles, education, mini cards.
   Copy is deliberately short; the structure carries the meaning.
   ========================================================================== */

.dot-accent {
  color: var(--accent-rose);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--ink-line);
}

.fact-row li {
  padding: 16px 18px 0 0;
  border-right: 1px solid var(--ink-line-soft);
}

.fact-row li:last-child {
  border-right: 0;
}

.fact__k {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fact__v {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-text);
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: clamp(16px, 2vw, 24px);
}

.panel-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

.panel-card .eyebrow {
  margin-bottom: 2px;
}

.role {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
}

.role__mark {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 4px;
}

.role__title {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.role__org {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.role__line {
  margin-top: 9px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.chips li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.chips--lg li {
  padding: 7px 13px;
  font-size: 0.625rem;
}

/* Education card: the number is the point. */
.edu {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.edu__score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--accent);
}

.edu__score span {
  font-size: 0.42em;
  margin-left: 2px;
}

.edu__badge {
  padding: 4px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  background: var(--accent-wash);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.panel-card--edu {
  justify-content: flex-start;
  background: var(--white);
}

.panel-card--edu .role__title {
  font-size: 1rem;
  line-height: 1.35;
}

/* Three-step explainer */
.mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}

.mini-head__title {
  font-size: var(--fs-h2);
  letter-spacing: -0.04em;
  margin-top: 14px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}

.mini-card {
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--bg);
  transition: background-color var(--dur) var(--ease);
}

.mini-card:hover {
  background: var(--white);
}

.mini-card__n {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.mini-card h3 {
  margin-top: 14px;
  font-size: 1.0625rem;
}

.mini-card p {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

.about-note {
  display: block;
  margin-top: 22px;
  color: var(--muted);
}

.stack-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 76px);
}

.contact-strip {
  display: grid;
  border-top: 1px solid var(--line-strong);
  margin-top: 14px;
}

.contact-strip li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.contact-strip li span {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-strip li a:hover {
  color: var(--accent);
}

.contact-strip li em {
  font-style: normal;
  color: var(--muted-strong);
}

@media (max-width: 960px) {
  .fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-row li {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink-line-soft);
  }

  .fact-row li:nth-child(2n) {
    border-right: 0;
  }

  .about-split,
  .stack-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .fact-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-row li {
    border-right: 0;
  }
}

/* About hero: the role line carries as much weight as the name. */
.page-hero__lead--role {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: rgba(247, 245, 241, 0.86);
  max-width: 40ch;
  margin-top: 18px;
}

.edu__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---- Case study: readability floor on the light head ---------------- */

.breadcrumb,
.breadcrumb a {
  color: var(--muted-strong);
  font-size: 0.6875rem;
}

.breadcrumb [aria-current='page'] {
  color: var(--ink);
}

.cs-head .status {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}

.cs-meta__key {
  color: var(--muted-strong);
}

.shot__foot-label {
  color: var(--muted-strong);
}

.shot__foot-hint {
  color: var(--muted);
}

.shot__watermark {
  opacity: 0.5;
}

/* ---- 404: same light world as everything else ----------------------- */

.not-found {
  background: var(--bg);
  color: var(--ink);
  min-height: 68vh;
}

.not-found::before {
  content: none;
}

.not-found h1,
.not-found p {
  color: var(--ink);
}

.not-found p {
  color: var(--muted-strong);
}

/* Case-study TOC anchors clear the sticky header too. */
[id] {
  scroll-margin-top: 84px;
}

/* Same rule on case-study pages: scroll-padding only, never both. */
html {
  scroll-padding-top: 84px;
}

[id] {
  scroll-margin-top: 0;
}

/* no screenshot exists: say so instead of leaving a hole */
.cs-shot-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--accent-line);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted-strong);
  max-width: 62ch;
}

/* real screenshots: fill the frame, top-aligned; portrait shots become devices */
.shot > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot--portrait {
  aspect-ratio: auto;
  height: clamp(330px, 30vw, 470px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(16px, 2.6vw, 34px) clamp(16px, 2.6vw, 34px) 0;
  background: linear-gradient(180deg, #efece5 0%, #e5e0d7 100%);
}

.shot--portrait > img {
  width: min(360px, 64%);
  height: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(23, 23, 23, 0.1);
  box-shadow: 0 18px 40px -26px rgba(23, 23, 23, 0.5);
  background: #fff;
}

@media (max-width: 560px) {
  .shot--portrait > img {
    width: min(260px, 82%);
  }
}
