/* ==========================================================================
   Aesoma Studio — Base Styles
   Warm off-white ground + near-black ink. Gambetta (display) + Switzer (body).
   Palette/type v2, confirmed by Sean Aug 28 2026 (Claude Design handoff) --
   supersedes the earlier strict black/white + Zodiak lock.
   Fonts are loaded via <link> in each page's head (not @import, which
   blocks rendering). Fraunces/Barlow load only on work.html, for the
   client typography specimen — not used in Aesoma's own type.
   ========================================================================== */

:root {
  /* Warm-neutral palette -- ground/ink plus a light-context and a
     dark-context gray scale (dark sections use their own near-black,
     not --ink, and their own near-white, not --paper). */
  --black: #1a1917;
  --white: #faf9f6;
  --gray-100: #eeebe4;
  --gray-200: #e3e0d9;
  --gray-400: #a19c92;
  --gray-600: #6e6a63;
  --gray-800: #3a3833;

  --ink: var(--black);
  --paper: var(--white);
  --muted: var(--gray-600);
  --line: var(--gray-200);
  --label: #767166; /* darkened from gray-400 (#a19c92, 2.6:1) to clear WCAG AA 4.5:1 on --paper */

  --dark: #1a1a1a;
  --dark-text: #f2efe9;
  --dark-label: #8a857c;
  --dark-muted: #b5b0a6;
  --dark-line: rgba(242, 239, 233, 0.14);
  --dark-link: #d6d2ca;

  --font-display: 'Gambetta', Georgia, 'Times New Roman', serif;
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, Menlo, 'SF Mono', Consolas, monospace;

  --container: 1560px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad: clamp(4.375rem, 9vw, 8.75rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dt, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Focus & selection ---------- */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--flush-t { padding-top: 0; }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--border-t { border-top: 1px solid var(--line); }
.section--dark.section--border-t { border-top: 1px solid var(--dark-line); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 1.25rem;
}
.section--dark .kicker { color: var(--dark-label); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.h1 {
  font-size: clamp(2.625rem, 8vw, 7.25rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 0.98;
  font-optical-sizing: auto;
}

.h2 {
  font-size: clamp(2.125rem, 8vw, 3.9375rem);
  font-weight: 500;
}
.h2--bold { font-weight: 700; }

.h3 {
  font-size: clamp(1.625rem, 2.5vw, 2.375rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

.h4 {
  font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.018em;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}
.section--dark .lede { color: var(--dark-muted); }

p.body-copy {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 62ch;
  color: var(--gray-800);
}
.section--dark p.body-copy { color: var(--dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.875rem 1.625rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: transparent; color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.section--dark .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section--dark .btn--primary:hover { background: transparent; color: var(--paper); }
.section--dark .btn--ghost { color: var(--paper); border-color: rgba(242, 239, 233, 0.4); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn svg { width: 1rem; height: 1rem; transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
  transition: opacity 200ms var(--ease);
}
.text-link:hover { opacity: 0.6; }
.text-link svg { width: 0.9rem; height: 0.9rem; transition: transform 200ms var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Nav (sticky, translucent, blurred) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.125rem var(--gutter);
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 25, 23, 0.06);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}
.nav__logo img { height: 20px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.125rem, 2.4vw, 2.375rem);
  font-size: 0.875rem;
  color: var(--gray-800);
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 220ms var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }

.nav__cta { display: none; }
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }
.nav__cta.btn { padding: 0.6875rem 1.25rem; font-size: 0.84375rem; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav__toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 250ms var(--ease), opacity 250ms var(--ease); }

@media (min-width: 900px) { .nav__toggle { display: none; } }
@media (max-width: 899px) { .nav__links, .nav__cta-desktop { display: none; } }

.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 6rem var(--gutter) 4rem;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 400ms var(--ease);
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10vw, 3rem);
  font-weight: 700;
}
.nav__mobile .btn {
  align-self: flex-start;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
}

body.nav-open { overflow: hidden; }

/* ---------- Hero (full-bleed framed image, grain shader, bottom-anchored copy) ---------- */
.hero { padding: 0.625rem 0.625rem 0; }

.hero__frame {
  position: relative;
  height: clamp(32.5rem, 84vh, 55rem);
  overflow: hidden;
  background: var(--dark);
}
.hero__frame .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 17, 0.18) 0%, rgba(20, 19, 17, 0) 34%, rgba(20, 19, 17, 0.72) 100%);
  pointer-events: none;
}

.hero__content { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.75rem, 4vw, 3.75rem); }
.hero__content-grid {
  max-width: 93.75rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.hero__kicker { color: rgba(255, 255, 255, 0.78); margin-bottom: 1.375rem; }
.hero__title {
  font-size: clamp(2.25rem, 5.6vw, 4.875rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: #fff;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__desc-wrap { max-width: 32.5rem; padding-bottom: 0.375rem; }
.hero__desc { font-size: clamp(0.9375rem, 1.15vw, 1.0625rem); line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 40ch; margin-bottom: 1.625rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__content .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__content .btn--primary:hover { background: transparent; color: var(--paper); }
.hero__content .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero__content .btn--ghost:hover { background: #fff; color: var(--ink); }

@media (max-width: 640px) {
  .hero__title { max-width: 12ch; }
  .hero__desc-wrap { max-width: none; }
}


/* ---------- Placeholder photography frames ---------- */
.photo-frame {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--gray-200) 0px, var(--gray-200) 1px, transparent 1px, transparent 14px),
    var(--gray-100);
  aspect-ratio: var(--ar, 4 / 5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-frame__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

/* ---------- Value cards ---------- */
.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: clamp(1.75rem, 3.6vw, 3.75rem);
  align-items: stretch;
}
.value-card { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: clamp(1.25rem, 2vw, 1.875rem); }
.value-card .kicker { margin-bottom: clamp(1.125rem, 2vw, 1.75rem); }
.value-card h3 { margin-bottom: clamp(1.125rem, 2vw, 1.625rem); }
.value-card p { font-size: 0.9375rem; line-height: 1.62; color: var(--muted); margin: 0 0 clamp(1.625rem, 3vw, 2.5rem); max-width: 34ch; }
.value-card__media { margin-top: auto; aspect-ratio: 16 / 11; border-radius: 2px; overflow: hidden; }
.value-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Featured work teaser ---------- */
.work-teaser {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.875rem;
  margin-bottom: 1.625rem;
  padding-top: clamp(5.625rem, 7vw, 7.5rem);
}
.work-teaser__text { flex: 35 1 13.75rem; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(1.5rem, 3vw, 3rem); }
.work-teaser__quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.625rem, 2.5vw, 2.375rem); line-height: 1.32; letter-spacing: -0.015em; margin: 0; max-width: 30rem; }
/* Centers the quote's vertical midpoint on the large image's top edge,
   matching the reference design -- desktop two-column layout only, since
   on the mobile single-column stack this would just leave dead space
   above the quote where the large-image column used to be beside it. */
@media (min-width: 861px) { .work-teaser__quote { transform: translateY(-50%); } }
.work-teaser__media { border-radius: 2px; overflow: hidden; }
.work-teaser__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-teaser__media--small { margin-top: auto; aspect-ratio: 4 / 5; }
.work-teaser__media--large { flex: 65 1 21.25rem; aspect-ratio: 4 / 5; }

.photo-frame--rounded { border-radius: 6px; }
.work-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding-bottom: clamp(1.75rem, 4vw, 3.375rem);
  border-bottom: 1px solid var(--line);
}
.work-caption__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.625rem, 2.5vw, 2.375rem); letter-spacing: -0.022em; }
.work-caption__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.work-caption__link { margin-left: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- FAQ accordion (custom, single-open) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding-block: 1.625rem;
  cursor: pointer;
  text-align: left;
}
.faq__trigger .h4 { margin: 0; font-weight: 500; }
.faq__icon { flex-shrink: 0; width: 1.25rem; font-size: 1.25rem; line-height: 1; color: var(--label); text-align: center; }
.faq__icon::before { content: '+'; }
.faq__item.is-open .faq__icon::before { content: '\2013'; }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 350ms var(--ease), opacity 300ms var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; opacity: 1; }
.faq__panel > p {
  overflow: hidden;
  margin: 0;
  padding-bottom: 1.625rem;
  padding-right: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.62;
  max-width: 60ch;
}

/* ---------- Gap comparison ---------- */
.gap__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}
.gap__col {
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(1.625rem, 2.6vw, 2.625rem);
  position: relative;
}
.gap__col--feature {
  background: var(--paper);
  color: var(--ink);
  z-index: 1;
}
.gap__col .price { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 3vw, 2.75rem); letter-spacing: -0.02em; margin: 0 0 1.875rem; }
.gap__col--feature .price { font-weight: 500; }
.gap__col ul li {
  font-size: 0.875rem;
  line-height: 1.5;
  padding-block: 0.875rem;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
}
.gap__col--feature ul li { border-top-color: var(--line); color: var(--gray-800); }
.gap__col ul li:first-child { border-top: none; }
.gap__col-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-label); margin-bottom: 1.375rem; display: block; }
.gap__col--feature .gap__col-label { color: var(--label); }

/* ---------- Process teaser ---------- */
.process__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: clamp(1.875rem, 4vw, 5rem);
  align-items: start;
}
.process__intro { position: sticky; top: 7.5rem; }
.process__intro .h2 { margin-bottom: 1.75rem; }
.process__list { border-top: 1px solid var(--line); }
.process__row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: clamp(0.875rem, 2vw, 2rem);
  padding-block: clamp(1.375rem, 2.4vw, 2.125rem);
  border-bottom: 1px solid var(--line);
}
.process__num { font-family: var(--font-display); font-style: italic; font-size: 0.9375rem; color: var(--label); }
.process__row .h4 { margin-bottom: 0.625rem; }
.process__row p { color: var(--muted); font-size: 0.9375rem; line-height: 1.62; max-width: 52ch; margin: 0; }

/* ---------- Pricing teaser ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  padding: clamp(1.625rem, 2.4vw, 2.375rem);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.price-card--feature { border-color: var(--ink); }
.price-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.price-card__tier { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); margin-bottom: 1.125rem; }
.price-card__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.1vw, 1.875rem); letter-spacing: -0.02em; margin-bottom: 0.625rem; }
.price-card__price { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.2vw, 2.875rem); letter-spacing: -0.025em; margin-bottom: 1.375rem; }
.price-card__desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.62; margin-bottom: 1.875rem; flex: 1; }
.price-card__meta { display: flex; gap: 1.625rem; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.125rem; margin-bottom: 1.25rem; }

/* ---------- Expertise (dark, row breakdown) ---------- */
.expertise__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: clamp(1.5rem, 2.6vw, 2.375rem);
  border-top: 1px solid var(--dark-line);
  align-items: start;
}
.expertise__row:last-child { border-bottom: 1px solid var(--dark-line); }
.expertise__row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.expertise__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6875rem 2rem;
}
.expertise__list li { font-size: 0.875rem; color: var(--dark-muted); }


/* ---------- Why-small (centered, avatar row) ---------- */
.about-hero { text-align: center; padding-top: clamp(5rem, 10vw, 10.625rem); padding-bottom: clamp(1.25rem, 3vw, 3.125rem); }
.about-hero__title { max-width: 17ch; margin-inline: auto; margin-bottom: clamp(1.875rem, 3.4vw, 3.25rem); text-wrap: balance; }
.about-hero__actions { justify-content: center; margin-bottom: clamp(2.125rem, 4vw, 3.625rem); }
.about-hero__avatars { display: flex; justify-content: center; margin-bottom: 1.125rem; }
.about-hero__avatars img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 2px solid var(--paper);
  object-fit: cover;
  margin-left: -0.875rem;
}
.about-hero__avatars img:first-child { margin-left: 0; }
.about-hero__note { font-size: 0.875rem; line-height: 1.6; color: var(--label); margin: 0 auto; max-width: 46ch; }

/* ---------- About teaser ---------- */
/* Reference design gives this section its own asymmetric padding plus a
   margin-top on top of that (not just padding) -- both clamp(50px,6vw,100px),
   distinct from the border-t section's own top edge. */
.about-teaser-section {
  margin-top: clamp(3.125rem, 6vw, 6.25rem);
  padding-top: clamp(3.125rem, 6vw, 6.25rem);
  padding-bottom: clamp(4.375rem, 9vw, 8.75rem);
}
.about-teaser {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-teaser__media { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; }
.about-teaser__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--ink);
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mini-stats__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.mini-stats__label {
  display: block;
  margin-top: 0.35rem;
  max-width: 20ch;
  min-height: 2.8em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.section--dark .mini-stats { border-color: var(--dark-line); }
.section--dark .mini-stats__label { color: var(--dark-label); }

.about-note__sig {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: left; }
.final-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: var(--dark-text);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--dark-line);
}
.footer__brand p { color: var(--dark-label); max-width: 30ch; margin-top: 1.25rem; font-size: 0.9375rem; }
.footer__col .footer__title { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-label); margin-bottom: 1.125rem; font-weight: 400; }
.footer__col ul li { margin-bottom: 0.6875rem; }
.footer__col a { font-size: 0.875rem; color: var(--dark-link); transition: color 200ms var(--ease); }
.footer__col a:hover { color: var(--dark-text); }
.footer__wordmark { padding-block: clamp(2rem, 6vw, 4rem); }
.footer__wordmark img { width: 100%; max-width: 720px; height: auto; }
.footer__legal { margin-left: 0.75rem; border-bottom: 1px solid currentColor; transition: color 200ms var(--ease); }
.footer__legal:hover { color: var(--dark-text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.8125rem;
  color: var(--dark-label);
}

/* ---------- Reveal-on-scroll ----------
   GSAP + ScrollTrigger (main.js) animates [data-reveal] elements directly
   via inline styles -- opacity:0 here is just the pre-paint fallback so
   there's no flash of unstyled content while main.js is still loading.
   .is-visible-static is the no-GSAP/reduced-motion fallback. */
[data-reveal] { opacity: 0; }
[data-reveal].is-visible-static { opacity: 1; }

/* Gap column hover lift */
.gap__col {
  transition: translate 220ms var(--ease), box-shadow 220ms var(--ease);
}
.gap__col:hover {
  translate: 0 -6px;
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.gap__col--feature:hover { box-shadow: 0 30px 60px -14px rgba(255, 255, 255, 0.3); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .case { grid-template-columns: 1fr; }
  .case__media { --ar: 16/10; }
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser__media { max-width: 20rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .gap__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .expertise__row { grid-template-columns: 1fr; gap: 1rem; }
  .process__intro { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .work-teaser__media--large { flex-basis: 100%; }
}

@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .case__meta { flex-wrap: wrap; gap: 1.5rem; }
  .h1 { line-height: 1.02; }
  .faq__item summary { padding-block: 1.5rem; gap: 1rem; }
  .faq__item p { padding-right: 0; padding-bottom: 1.5rem; }
  .expertise__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Case Study (Work page) components
   ========================================================================== */

.page-header { padding-top: 10rem; padding-bottom: 4rem; }
.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.page-header__meta a { border-bottom: 1px solid var(--gray-400); transition: opacity 200ms var(--ease); }
.page-header__meta a:hover { opacity: 0.6; }

/* Section spacing modifier — extra breathing room for the Work page */
.section--roomy { padding-block: clamp(5rem, 11vw, 10rem); }

/* Full-bleed photography */
.bleed {
  width: 100%;
}
.bleed img { width: 100%; height: auto; display: block; }
.bleed--tall { height: clamp(25rem, 72vh, 48.75rem); border-radius: 2px; overflow: hidden; }
.bleed--tall img { height: 100%; object-fit: cover; }
.photo-set {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}
.photo-set__caption {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Problem / Solution split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gray-100);
  position: sticky;
  top: 6rem;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split h2 { margin-bottom: 1.5rem; }
.split .body-copy + .body-copy { margin-top: 1.25rem; }
.split ul.fact-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.split ul.fact-list li {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--gray-800);
  padding-left: 1.25rem;
  position: relative;
}
.split ul.fact-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--gray-400);
}

/* Signature statement — big standalone brand-line moment */
.signature-block { text-align: center; }
.signature-block__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

/* Result stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}
.stat-cell {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.stat-cell .num { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1; }
.stat-cell .label { display: block; margin-top: 0.75rem; font-size: 0.8125rem; color: var(--gray-400); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: 2.5rem;
}
.stat-row .stat { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stat-row .stat .num { font-family: var(--font-display); font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.stat-row .stat .label { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Typography & Color specimen ---------- */
/* Unified system breakdown — one bordered grid, color cells + type cells */
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.system-cell { background: var(--paper); padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.system-cell--type { grid-column: span 2; }
.system-cell__swatch { aspect-ratio: 1 / 1; margin-bottom: 1.5rem; }
.system-cell__label { display: block; font-weight: 600; }
.system-cell__hex { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; }
.system-cell__type-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.system-cell__sample {
  display: block;
}
.system-cell__sample.font-scd-display { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; }
.system-cell__sample.font-scd-body { font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 1.125rem; max-width: 32ch; line-height: 1.5; }

/* ---------- Designing the Site: device mockups (staged, suspended) ---------- */
.mockup-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(4.5rem, 9vw, 7rem) clamp(2rem, 6vw, 4rem);
  flex-wrap: wrap;
}
.mockup-stage__rail {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--gray-800);
}

.device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.device__wire {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  width: 1px;
  height: 3.5rem;
  background: var(--gray-600);
}
.device__caption {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .device__caption { color: var(--dark-label); }

.device-laptop {
  width: min(560px, 62vw);
  transform: rotate(-3deg);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.2));
}
.device-laptop--front {
  width: min(420px, 50vw);
  transform: rotate(2.5deg);
  margin-left: clamp(-4rem, -6vw, -2rem);
  z-index: 2;
}
.device-laptop__screen {
  background: #1a1a1a;
  border-radius: 9px;
  padding: 9px 9px 12px;
}
.device-laptop__screen img {
  width: 100%;
  display: block;
  border-radius: 2px;
  aspect-ratio: 1400 / 875;
  object-fit: cover;
  object-position: top;
}
.device-laptop__base {
  height: 11px;
  margin: 0 -10px;
  background: linear-gradient(180deg, #2b2b2b, #161616);
  border-radius: 0 0 7px 7px;
  position: relative;
}
.device-laptop__base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 15%;
  height: 4px;
  background: #3a3a3a;
  border-radius: 0 0 4px 4px;
}

.device-phone {
  width: min(240px, 40vw);
  transform: rotate(7deg);
  z-index: 3;
  filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}
.device-phone__frame {
  background: #1a1a1a;
  border-radius: 26px;
  padding: 9px;
}
.device-phone__screen {
  background: #1f1f1f;
  border-radius: 17px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0.85rem;
  font-family: 'Barlow', sans-serif;
}
.device-phone__screen--photo { padding: 0; }
.device-phone__screen--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-nav__logo { font-family: var(--font-display); font-size: 0.6rem; color: #f2f3f7; letter-spacing: 0.04em; }
.phone-nav__close { font-size: 0.85rem; color: #9a9a9a; line-height: 1; }
.phone-nav__list { margin-top: 1.4rem; display: flex; flex-direction: column; }
.phone-nav__list span {
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.62rem;
  color: #e3e3e3;
}
.phone-nav__list span.is-accent { color: #c4800c; }
.phone-nav__phone { margin-top: 0.7rem; font-size: 0.55rem; color: #8a8a8a; }

/* ---------- Case header: lede + meta grid ---------- */
.case-header__lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.34;
  letter-spacing: -0.015em;
  max-width: 36ch;
}
.case-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.case-header__lede { flex: 1 1 380px; margin: 0; }
.case-meta {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(1.125rem, 2vw, 2.125rem);
}
.case-meta > div { display: flex; flex-direction: column; gap: 0.5rem; }
.case-meta .kicker { margin-bottom: 0; }
.case-meta__value { font-size: 0.9375rem; }
.case-meta__value a { border-bottom: 1px solid var(--gray-400); transition: opacity 200ms var(--ease); }
.case-meta__value a:hover { opacity: 0.6; }

/* ---------- Case stat strip (quick facts, flat) ---------- */
.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.case-stats > div { border-top: 1px solid var(--line); padding-top: 1.375rem; }
.case-stats .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.375rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.875rem;
}
.case-stats .label { font-size: 0.90625rem; line-height: 1.55; color: var(--muted); max-width: 24ch; }
.section--dark .case-stats .label { color: var(--dark-muted); }
.section--dark .case-stats > div { border-color: var(--dark-line); }

/* ---------- Case row: mono label + headline + body (no image) ---------- */
.case-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.75rem, 4vw, 5rem);
  align-items: start;
}
.case-row__content { grid-column: span 2; min-width: 0; }
.case-row__content h2 { max-width: 22ch; margin-bottom: clamp(1.375rem, 2.4vw, 2.125rem); }
.case-row__content .body-copy { max-width: 58ch; }
.case-row__content .body-copy + .body-copy { margin-top: 1.25rem; }

/* ---------- Search grid: headline + body/checklist, side by side ---------- */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: clamp(1.75rem, 4vw, 5rem);
  align-items: start;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}
.search-grid h2 { max-width: 16ch; margin: 0; }
.search-grid .body-copy { max-width: 52ch; margin: 0; }

/* ---------- Identity: 3-image editorial grid ---------- */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(0.875rem, 1.6vw, 1.5rem);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.identity-grid__item { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; background: var(--gray-100); }
.identity-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Full-width single shot + caption row ---------- */
.full-shot { aspect-ratio: 1778 / 1000; overflow: hidden; background: var(--gray-100); }
.full-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.full-shot__caption {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Before/after comparison slider ---------- */
.ba-slider { margin-top: 3rem; }
.ba-slider__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--gray-100);
}
.ba-slider__scrollarea {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.ba-slider__track {
  position: relative;
  /* Locked to the after-image's real ratio so the (slightly taller)
     before-image's excess is clipped rather than extending how far
     the frame scrolls -- the comparison ends where the shorter page does. */
  aspect-ratio: 1200 / 3838;
  overflow: hidden;
}
.ba-slider__img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.ba-slider__img--after { position: relative; }
.ba-slider__img--before {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
}
.ba-slider__label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 25, 23, 0.55);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  pointer-events: none;
}
.ba-slider__label--before { left: 1rem; }
.ba-slider__label--after { right: 1rem; }
.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--paper);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(26, 25, 23, 0.15);
  pointer-events: none;
  z-index: 3;
}
.ba-slider__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(26, 25, 23, 0.25);
}
.ba-slider__grip svg { width: 1.125rem; height: 1.125rem; }
.ba-slider__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  touch-action: pan-y;
}
.ba-slider__input::-webkit-slider-runnable-track { -webkit-appearance: none; background: transparent; }
.ba-slider__input::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 1px; }
.ba-slider__input::-moz-range-track { background: transparent; border: none; }
.ba-slider__input::-moz-range-thumb { width: 1px; height: 1px; opacity: 0; border: none; }
.ba-slider__caption {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) {
  .ba-slider__frame { aspect-ratio: auto; height: 26rem; }
}

/* ---------- Showcase: asymmetric primary shot + stacked photo/device ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.showcase__primary {
  position: relative;
  background: var(--gray-100);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 3rem);
  height: calc(32.5rem * 3838 / 1200 + 2 * clamp(1.5rem, 3vw, 3rem));
}
.showcase__card {
  width: 100%;
  max-width: 32.5rem;
  aspect-ratio: 1200 / 3838;
  background: var(--paper);
  box-shadow: 0 30px 70px rgba(26, 25, 23, 0.16);
  overflow: hidden;
}
.showcase__card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.showcase__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 0; min-height: 0; height: calc(32.5rem * 3838 / 1200 + 2 * clamp(1.5rem, 3vw, 3rem)); }
.showcase__photo { position: relative; overflow: hidden; background: var(--gray-800); min-height: 0; }
.showcase__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase__device {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 0;
}
.showcase__device .device-phone { width: auto; height: 100%; max-width: 100%; aspect-ratio: 9 / 19.5; }
.showcase__caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 25, 23, 0.45);
}
.showcase__photo .showcase__caption { color: rgba(255, 255, 255, 0.65); }

/* ---------- SEO checklist (dark) ---------- */
.seo-check { display: grid; border-top: 1px solid var(--dark-line); margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.seo-check__row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: 0.90625rem;
}
.seo-check__row span:last-child { color: var(--dark-label); }

/* ---------- Page system: 6-tile grid (dark) ---------- */
.page-system-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.page-system__head {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(1.75rem, 3vw, 2.75rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-label);
}
.page-system__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.375rem);
}
.page-system__tile { aspect-ratio: 3 / 4; overflow: hidden; }
.page-system__tile--photo { background-size: cover; background-position: center; }
.page-system__tile--card {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1rem, 1.6vw, 1.625rem);
  display: flex;
  flex-direction: column;
}
.page-system__tile-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}
.page-system__tile-mark { font-family: var(--font-display); font-size: clamp(1.0625rem, 1.5vw, 1.375rem); letter-spacing: -0.02em; margin-top: 0.875rem; }
.page-system__tile-photo { flex: 1; margin-top: 1rem; background-size: cover; background-position: center; }
.page-system__spec { font-size: 0.71875rem; line-height: 1.5; letter-spacing: 0.02em; color: var(--muted); margin-top: auto; display: grid; gap: 0.3125rem; }
.page-system__spec div { display: flex; justify-content: space-between; gap: 0.75rem; }
.page-system__spec span:last-child { color: var(--ink); }

/* ---------- Closing client quote ---------- */
.case-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.125rem, 8vw, 3.9375rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 20ch;
  text-wrap: balance;
}
.case-quote em { font-style: italic; }
.case-quote__attribution { margin-top: clamp(1.75rem, 3vw, 2.75rem); font-size: 0.875rem; color: var(--muted); }
.about-hero .case-quote { margin-inline: auto; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.about-hero .case-quote__attribution { margin-top: 0; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { position: static; aspect-ratio: 16/10; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .device-laptop, .device-laptop--front { width: min(460px, 78vw); margin-left: 0; }
  .case-row__content { grid-column: span 1; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__primary,
  .showcase__stack {
    height: calc((100vw - 2 * clamp(1.5rem, 3vw, 3rem)) * 3838 / 1200 + 2 * clamp(1.5rem, 3vw, 3rem));
  }
  .page-system__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .page-header { padding-top: 7rem; }
  .system-grid { grid-template-columns: 1fr; }
  .system-cell--type { grid-column: span 1; }
  .mockup-stage { gap: 2.5rem 1.5rem; }
  .device-laptop, .device-laptop--front { width: min(460px, 82vw); }
  .device-phone { width: min(200px, 52vw); }
  .case-stats { grid-template-columns: repeat(2, 1fr); }
  .full-shot { aspect-ratio: 4/5; }
}

/* ==========================================================================
   Process page
   ========================================================================== */

.process-step__head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.process-step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--muted);
}
.process-step__head .h2 { margin-bottom: 0; }
.process-step__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.process-step__meta dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.process-step__meta dd { font-size: 0.9375rem; color: var(--gray-800); line-height: 1.55; }

@media (max-width: 640px) {
  .process-step__meta { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog index + post template
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter) var(--gutter);
  row-gap: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 3rem;
}
.blog-card__media { --ar: 4 / 3; margin-bottom: 1.25rem; }
.blog-card__tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.blog-card__title { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 0.6rem; }
.blog-card__excerpt { color: var(--gray-800); font-size: 0.9375rem; line-height: 1.55; margin-bottom: 0.85rem; }
.blog-card__date { font-size: 0.8125rem; color: var(--gray-400); }

.blog-empty {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
  margin-top: 3rem;
}
.blog-empty p { color: var(--muted); font-size: 1rem; max-width: 42ch; margin: 0 auto 1.75rem; }

.post-body { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; color: var(--gray-800); }
.post-body p + p,
.post-body ul + p,
.post-body p + ul { margin-top: 1.5rem; }
.post-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 3rem; margin-bottom: 1rem; }
.post-body h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 2.25rem; margin-bottom: 0.75rem; }
.post-body ul { margin-top: 1rem; padding-left: 1.25rem; list-style: disc; }
.post-body li { margin-bottom: 0.5rem; }

.post-footer {
  max-width: 68ch;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-top: 2.5rem;
}
.post-byline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.post-byline strong { color: var(--ink); font-weight: 600; }

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