@import url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.min.css');

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/source-serif-4@5.2.5/files/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/source-serif-4@5.2.5/files/source-serif-4-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
  REM REFERENCE:
  Base font-size is 16px (browser default), so:
    10px = 0.625rem
    12px = 0.75rem
    13px = 0.8125rem
    14px = 0.875rem
    16px = 1rem
    18px = 1.125rem
    24px = 1.5rem
    32px = 2rem
    40px = 2.5rem
*/

/* ─── Tokens ─── */
:root {
  --color-bg: #FDFBF7;
  --color-text: #3D2424;
  --color-text-main: #3D2424;
  --color-text-muted: #735E5D;
  --color-accent: #F8F1E0;
  --color-stroke: #CAC3B6;
  --color-stroke-hover: color-mix(in srgb, var(--color-stroke) 50%, transparent);
  --color-border: #CAC3B6;
  --nav-top-height: 56px;
  --side-nav-width: 180px;
  --content-max: 800px;
  --space-label-to-title: 0.75rem;
  --space-title-to-body: 1.125rem;
  --page-max: 1320px;
  --bento-media-height: 28rem;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Geist Sans', 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif-variation-regular: 'wght' 380, 'opsz' 16;
  --serif-variation-emphasis: 'wght' 580, 'opsz' 16;
  --serif-variation-medium: 'wght' 480, 'opsz' 16;

  /* SDS shadow tokens (Figma Simple Design System) */
  --sds-size-depth-0: 0rem;
  --sds-size-depth-100: 0.25rem;
  --sds-size-depth-negative-025: -0.0625rem;
  --sds-color-black-100: #0c0c0d0d;
  --sds-color-black-200: #0c0c0d1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ─── TOP NAV ─── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-top-height);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transform: translateY(0);
  transition: transform 0.3s ease;
  will-change: transform;
}

.top-nav.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .top-nav { transition: none; }
}

.top-nav .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.top-nav-links a {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 150ms ease;
  letter-spacing: -0.02em;
}

.top-nav-links a:not(.top-nav-cta):hover {
  color: var(--color-text-main);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.top-nav-cta {
  background: var(--color-accent);
  border: 1px solid var(--color-stroke);
  padding: 0.5rem 1.125rem;
  border-radius: 6px;
  color: var(--color-text-main);
  text-decoration: none;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav-cta:hover {
  background: var(--color-stroke-hover);
  color: var(--color-text-main);
  text-decoration: none;
}

/* ─── IMAGES ─── */
img {
  display: block;
  width: 100%;
}

.img-block {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--color-stroke);
}

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
  cursor: zoom-in;
}

/* ─── SCREEN DEMO (reusable prototype video container) ─── */
.screen-demo {
  container-type: size;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #E8E4DD;
  border: 1px solid var(--color-stroke);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 6%;
  padding-inline: 5%;
  box-sizing: border-box;
}

.screen-demo--lead {
  margin-bottom: 2rem;
}

.screen-demo-frame {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    var(--sds-size-depth-0) 2.28px 9.122px var(--sds-size-depth-negative-025) var(--sds-color-black-200),
    var(--sds-size-depth-0) 0.76px var(--sds-size-depth-100) var(--sds-size-depth-negative-025) var(--sds-color-black-100);
  line-height: 0;
  max-width: 100%;
  display: grid;
  width: min(100cqw, calc(100cqh * 16 / 10));
  transform: scale(1.1);
  transform-origin: center;
}

.screen-demo-frame::before {
  content: '';
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.screen-demo-video {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  cursor: pointer;
}

/* ─── IMAGE LIGHTBOX ─── */
html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.82);
  cursor: zoom-out;
}

.image-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.image-lightbox-close:hover {
  opacity: 0.7;
}

.image-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 4rem);
  pointer-events: none;
}

.image-lightbox-image {
  display: block;
  width: auto;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 4rem);
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: default;
}

/* ─── HOMEPAGE HERO ─── */
.hero {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: var(--space-title-to-body);
}

.hero-emphasis {
  font-weight: 600;
  font-variation-settings: var(--serif-variation-emphasis);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: var(--serif-variation-regular);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.5;
}

.hero-name {
  font-weight: 600;
  color: var(--color-text);
}

/* ─── HOMEPAGE BENTO GRID ─── */
.work-section {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 8rem;
}

.work-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.work-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-stroke);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  column-gap: 1.5rem;
  row-gap: 4rem;
  overflow: visible;
}

.bento-card {
  position: relative;
  z-index: 1;
  overflow: visible;
  text-decoration: none;
  color: var(--color-text);
  display: block;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: bento-fade-up 0.6s ease forwards;
}

.bento-card:has(.bento-card-media:hover) {
  z-index: 2;
}

.bento-card:nth-child(1) { animation-delay: 0ms; }
.bento-card:nth-child(2) { animation-delay: 100ms; }
.bento-card:nth-child(3) { animation-delay: 200ms; }
.bento-card:nth-child(4) { animation-delay: 300ms; }

@keyframes bento-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-card-media {
  position: relative;
  overflow: hidden;
  height: var(--bento-media-height);
  border-radius: 0.75rem;
  border: 1px solid var(--color-stroke);
}

.bento-card-media:hover {
  cursor: none;
}

.bento-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  transition: transform 0.45s ease;
}

.bento-card-media:hover img {
  transform: scale(1.04);
}

.bento-card-cta {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  padding: 0.5rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-accent);
  border: 1px solid var(--color-stroke);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.bento-card-cta.is-visible {
  opacity: 1;
}

.bento-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1rem;
}

.bento-card-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bento-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.bento-card-tags li {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.125rem 0.75rem;
  background: var(--color-accent);
  border-radius: 999px;
  color: var(--color-text);
}

.bento-card-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ─── PAGE LAYOUT ─── */
.page-layout {
  display: grid;
  grid-template-columns: var(--side-nav-width) 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 4rem;
}

.page-layout > aside,
.page-layout > .content {
  min-width: 0;
}

/* ─── SIDE NAV ─── */
.side-nav {
  position: sticky;
  top: calc(var(--nav-top-height) + 3rem);
  height: fit-content;
  padding: 3rem 0;
}

.side-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-nav a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.side-nav a:hover { color: var(--color-text); }

.side-nav a.active {
  color: var(--color-text);
  border-left-color: var(--color-text);
  font-weight: 500;
}

/* ─── CONTENT ─── */
.content {
  padding: 4rem 0 8rem;
  max-width: var(--content-max);
}

.case-study-header {
  margin-bottom: 4rem;
}

.case-study-tag {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-label-to-title);
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-title-to-body);
}

h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-title-to-body);
}

.case-study-header p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.2;
}

.meta-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.meta-item dt {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.meta-item dd {
  font-size: 0.875rem;
}

.section {
  padding-top: 5rem;
  margin-top: 1px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-label-to-title);
}

.section p:not(.section-label):not(.body-sm) {
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

/* ─── CONTENT BLOCK ─── */
.content-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.content-block {
  padding: 1.5rem 1.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-stroke);
  background: linear-gradient(to bottom, rgba(248, 248, 248, 0) 0%, #F8F8F8 100%);
}

.content-block-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-medium);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.125rem;
}

.content-block-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0;
}

/* ─── STEPS CARD ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.steps-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--color-stroke);
  border-radius: 0.5rem;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--color-accent) 40%, transparent) 0%, transparent 100%);
  transition: transform 0.3s ease;
  transform: rotate(var(--steps-card-tilt, 0deg));
}

.steps-card-number {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.steps-card-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.steps-card .body-sm {
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: none;
}

.steps-card-image {
  width: 100%;
  height: 140px;
  margin-top: auto;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 0.5px solid var(--color-stroke);
  background: #F1EBDD;
}

.steps-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── DESIGN STACK ─── */
/* Transforms read right-to-left: final translate = spread position, rotate = tilt, first translate = center anchor */
.design-stack {
  position: relative; /* positioning context for .stack and .card */
  width: 100%; /* full content width */
  height: 400px; /* stage height — increase if spread cards get clipped */
  margin: 2rem 0; /* vertical spacing from body text above/below */
  overflow: visible; /* don't clip cards when they spread out on hover */
}

.design-stack .stack {
  position: relative; /* anchor point for absolutely positioned cards */
  width: 100%; /* fills .design-stack */
  height: 100%; /* fills .design-stack */
}

.design-stack .card {
  position: absolute; /* cards stack on top of each other at the center */
  width: 406px; /* card width — scaled 1.5% from 400px */
  height: 264px; /* card height — scaled 1.5% from 260px */
  border-radius: 12px; /* rounded corners on each card */
  border: 0.5px solid color-mix(in srgb, var(--color-stroke) 50%, transparent); /* subtle half-opacity border */
  box-shadow: 0 0 2.282px 0 rgba(0, 0, 0, 0.08), 0 2.282px 6.846px 0 rgba(0, 0, 0, 0.10), 0 9.431px 21.691px 3.537px rgba(0, 0, 0, 0.05), 0 11.788px 8.936px -9.431px rgba(0, 0, 0, 0.03); /* layered drop shadow */
  overflow: hidden; /* clip wireframe image to card radius */
  top: 50%; /* vertical center of .stack */
  left: 50%; /* horizontal center of .stack */
  transform-origin: center center; /* rotate around the card's own center */
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1); /* 0.45s = speed; cubic-bezier overshoots for physical feel */
}

.design-stack .card img {
  width: 100%; /* fill card width */
  height: 100%; /* fill card height */
  object-fit: cover; /* crop wireframe to fill card */
  display: block; /* remove inline gap below image */
}

/* Card 1 — bottom of pile, spreads LEFT on hover */
.design-stack .card:nth-child(1) {
  transform:
    translate(-50%, -50%) /* center card on the anchor point */
    rotate(-6deg)           /* resting tilt — straightens to 0deg on hover */
    translate(-8px, 4px);  /* resting offset — small nudge left (-8px) and down (4px) */
  transition-delay: 0.08s; /* trails in last when hover ends */
  z-index: 1; /* sits behind cards 2 and 3 */
}

/* Card 2 — middle of pile, stays centered on hover */
.design-stack .card:nth-child(2) {
  transform:
    translate(-50%, -50%) /* center card on the anchor point */
    rotate(-2deg)           /* resting tilt — straightens to 0deg on hover */
    translate(-2px, 2px);  /* resting offset — tiny nudge left and down */
  transition-delay: 0.04s; /* middle of the stagger sequence */
  z-index: 2; /* sits above card 1, below card 3 */
}

/* Card 3 — top of pile, spreads RIGHT on hover */
.design-stack .card:nth-child(3) {
  transform:
    translate(-50%, -50%) /* center card on the anchor point */
    rotate(4deg)            /* resting tilt — straightens to 0deg on hover */
    translate(6px, -2px);  /* resting offset — small nudge right (6px) and up (-2px) */
  transition-delay: 0s; /* leads in first when hover ends */
  z-index: 3; /* sits on top of the pile */
}

/* HOVER — Card 1 slides left */
.design-stack .stack:hover .card:nth-child(1) {
  transform:
    translate(-50%, -50%)    /* center card on the anchor point */
    rotate(-2deg)              /* straighten — no tilt when spread */
    translate(-183px, 0);     /* SPREAD LEFT: scaled 1.5% from -180px */
  transition-delay: 0s; /* leads out first on hover */
}

/* HOVER — Card 2 stays in the middle */
.design-stack .stack:hover .card:nth-child(2) {
  transform:
    translate(-50%, -50%) /* center card on the anchor point */
    rotate(0deg)           /* straighten — no tilt when spread */
    translate(0, 0);       /* stays centered */
  transition-delay: 0.04s; /* middle of the stagger sequence */
}

/* HOVER — Card 3 slides right */
.design-stack .stack:hover .card:nth-child(3) {
  transform:
    translate(-50%, -50%)   /* center card on the anchor point */
    rotate(2deg)             /* straighten — no tilt when spread */
    translate(183px, 0);     /* SPREAD RIGHT: scaled 1.5% from 180px */
  transition-delay: 0.08s; /* trails out last on hover */
}

/* ─── h3 + body-sm ─── */
.h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 55ch;
}

.h3 em {
  font-style: italic;
}

.body-sm {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 0.75rem;
  max-width: 52ch;
  margin-bottom: 0;
}

/* ─── FEATURES SCROLL ─── */
.section--features {
  padding-top: 0;
}

.features-block {
  margin: 0;
}

.features-intro {
  padding-top: 5rem;
  margin-bottom: 2.5rem;
}

.features-block--stack .scroll-driver {
  height: auto;
}

.features-block--stack .features-sticky {
  position: static;
  height: auto;
  padding-top: 0;
  background: transparent;
  gap: 0;
}

.features-block--stack .features-scroll-chrome {
  display: none;
}

.features-block--stack .features-items {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.features-block--stack .feature-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.features-block--stack .feature-item-media {
  position: relative;
  width: 100%;
}

.features-block--stack .video-panel {
  position: relative;
  opacity: 1;
}

.features-block--stack .feature-item-text {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.features-block--scroll .scroll-driver {
  height: calc((var(--feature-count, 4) + 1) * 100vh);
}

.features-block--scroll .features-sticky {
  position: sticky;
  top: var(--nav-top-height);
  z-index: 1;
  height: calc(100vh - var(--nav-top-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.25rem;
  padding-top: 2rem;
  background: var(--color-bg);
  box-sizing: border-box;
}

.features-block--scroll .features-items {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.features-block--scroll .feature-item {
  position: absolute;
  inset: 0;
}

.features-block--scroll .feature-item-text {
  display: none;
}

.features-block--scroll .feature-item-media,
.features-block--scroll .video-panel {
  position: absolute;
  inset: 0;
}

.features-block--scroll .video-panel {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.features-block--scroll .video-panel.active {
  opacity: 1;
  position: relative;
}

.features-block--scroll .features-scroll-chrome {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
}

.video-placeholder {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 0.5px solid rgba(44, 42, 36, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.pagination-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--color-stroke) 40%, transparent);
  transition: all 0.3s;
  cursor: pointer;
}

.dot.active {
  background: var(--color-text-main);
  width: 18px;
}

.feature-text {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-top: 0;
  flex-shrink: 0;
}

.feature-text-content {
  transition: opacity 150ms ease, transform 150ms ease;
}

.feature-text-content.is-transitioning {
  opacity: 0;
  transform: translateY(4px);
}

.feature-num {
  align-self: flex-end;
}

/* ─── INSIGHT LIST ─── */
.research-subsection {
  margin-top: 4rem;
}

.insight-list {
  margin-top: 2rem;
}

.insight-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-stroke);
}

.insight-row:last-child {
  border-bottom: 1px solid var(--color-stroke);
}

.insight-row-number {
  font-family: var(--font-sans);
  font-size: 5rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--color-text-muted) 20%, transparent);
  line-height: 1;
  letter-spacing: -0.04em;
  align-self: flex-end;
}

/* ─── COMPARE SLIDER ─── */
.compare-slider {
  margin: 2rem 0;
  border-radius: 0.75rem;
  border: 1px solid var(--color-stroke);
  overflow: hidden;
  background: var(--color-bg);
}

.compare-slider-viewport {
  position: relative;
  width: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.compare-slider-viewport img {
  border: none;
  border-radius: 0;
}

.compare-slider-after {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.compare-slider-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}

.compare-slider-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
}

.compare-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 2.75rem;
  transform: translateX(-50%);
  cursor: col-resize;
}

.compare-slider-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--color-text) 25%, transparent);
}

.compare-slider-handle-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-stroke);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.compare-slider-handle-thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.625rem;
  height: 0.625rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-text);
}

.compare-slider-label {
  position: absolute;
  top: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  border-radius: 0.25rem;
  pointer-events: none;
}

.compare-slider-label-before { left: 0.75rem; }
.compare-slider-label-after { right: 0.75rem; }

.img-block {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-accent);
  border: 1px solid var(--color-stroke);
  border-radius: 0.75rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
}

.caption {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* ─── WORK CARDS ─── */
.work-card {
  text-decoration: none;
  color: var(--color-text);
  display: block;
}

.work-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-accent);
  border-radius: 0.75rem;
  border: 1px solid var(--color-stroke);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  transition: opacity 0.2s;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid var(--color-stroke);
}

.work-card:hover .work-card-img { opacity: 0.8; }

.see-more .work-card:hover .work-card-img {
  opacity: 0.8;
  transform: none;
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: var(--serif-variation-regular);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.work-card-subtitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ─── SEE MORE WORK ─── */
.see-more {
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 8rem;
}

.see-more-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.see-more .work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.see-more .work-card-img {
  margin-bottom: 0.875rem;
  transition: opacity 0.15s;
}

.see-more .work-card-title {
  font-size: 1.25rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 1.5rem;
    gap: 0;
  }

  .side-nav {
    position: static;
    padding: 2rem 0 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .side-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
  }

  .side-nav a {
    padding: 6px 16px;
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .side-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-text);
  }

  .see-more { padding: 4rem 1.5rem 6rem; }
}

@media (max-width: 700px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card-tags { justify-content: flex-start; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
    grid-template-rows: auto auto 1fr;
    column-gap: 0.75rem;
    align-items: start;
  }
  .steps-card-number,
  .steps-card-title,
  .steps-card .body-sm {
    grid-column: 1;
    min-width: 0;
  }
  .steps-card-number { margin-bottom: 0.5rem; }
  .steps-card .body-sm { margin-bottom: 0; }
  .steps-card-image {
    grid-column: 2;
    grid-row: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 108px;
    margin-top: 0;
    align-self: end;
  }
  .insight-row { grid-template-columns: 1fr; }
  .insight-row-number { display: none; }
  .feature-text { grid-template-columns: 1fr; }
  .feature-num { display: none; }
  .hero h1 { font-size: 2.75rem; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .work-section { padding: 1.5rem 1.5rem 5rem; }
  .top-nav { padding: 0 1rem; }
  .top-nav-links { gap: 1rem; }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .content { padding: 3rem 0 5rem; }
  .meta-row { gap: 2rem; flex-wrap: wrap; }
  .see-more { padding: 3rem 1rem 5rem; }
}
