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

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #888888;
  --color-border: #e5e5e5;
  --color-accent: #111111;
  --color-surface: #f7f7f7;
  --font: 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif;
  --max-width: 1920px;
  --grid-gap: 2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Matches project-case-study.html: 32px floor → 6vw fluid → 140px cap */
  padding-left: clamp(32px, 6vw, 140px);
  padding-right: clamp(32px, 6vw, 140px);
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(32px, 6vw, 140px);
  padding-right: clamp(32px, 6vw, 140px);
}

/* Body/Small · 16 / 400 / Auto — kept slightly heavier (500) for logo emphasis */
.nav__logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

/* Body/Small · 16 / 400 / Auto */
.nav__links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: normal;
  transition: color 0.2s;
}

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

/* ── Hero ── */

.hero {
  padding: 160px 0 100px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  align-items: end;
}

/* Label/Small · 14 / 400 / 6% / UPPER */
.hero__tag {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* Mega Title · 80 / 500 / 1.0 / -2.5% (clamp scales for responsive) */
.hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

/* Body/Big · 18 / 400 / 1.35 / -0.5% */
.hero__desc {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.35;
  letter-spacing: -0.005em;
  max-width: 380px;
}

/* Label/Small · 14 / 400 / 6% / no-upper */
.hero__status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.hero__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

/* ── Landing: 1/3 intro + 2/3 grid ── */

.landing {
  padding: 64px 0 80px;
}

.landing__split {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  align-items: start;
}

.landing__left {
  /* Sticky: pins below the 64px nav, holds until the right column scrolls past it */
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 120px;
  padding-top: 0;
  padding-bottom: 40px;
}

.landing__intro {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Body/Big · 18 / 400 / 1.35 / -0.5% */
.landing__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--color-muted);
  margin: 0;
  max-width: 420px;
}

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

/* Label/Small · 14 / 400 / 6% / no-upper */
.landing__status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.landing__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

/* Project index — bottom-left */
.landing__index {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Label/Small · 14 / 400 / 6% / UPPER */
.landing__index-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.landing__index-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing__index-list li {
  border-top: 1px solid var(--color-border);
}

.landing__index-list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

/* Card H1 size (20px) at regular weight — softer than the
   Jackpot 500/medium Card H1, but matches the rest of the
   landing page's regular-weight body. */
.landing__index-list a {
  display: block;
  padding: 0.875rem 0;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  color: var(--color-text);
  transition: padding-left 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease;
}

.landing__index-list a:hover {
  padding-left: 0.5rem;
}

/* Dimmed state for non-hovered items when one is active */
.landing__index.is-hovering a:not(.is-active) {
  opacity: 0.35;
}
.work-grid.is-hovering .work-card:not(.is-active) {
  opacity: 0.35;
}
.landing__index a,
.work-grid .work-card {
  transition: opacity 0.3s ease, padding-left 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Section headings ── */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

/* Label/Small · 14 / 400 / 6% / UPPER */
.section-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Label/Small · 14 / 400 / 6% / no-upper */
.section-count {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* ── Work Grid ── */

.work {
  padding: 20px 0 80px;
}

.landing__right {
  min-width: 0;
}

.landing__right .work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.work-card {
  display: block;
  cursor: pointer;
}

.work-card__image {
  aspect-ratio: 1/1;
  background: var(--color-surface);
  overflow: hidden;
  margin-bottom: 1.25rem;
  /* Matches the 14px small-tile radius from the Jackpot case
     study family (lb-bullets, beat thumbs, project__result). */
  border-radius: 14px;
  /* Static state is desaturated/lower-contrast so hovered cards
     pop. Restored to full contrast on .work-card:hover below. */
  filter: contrast(0.7);
  transition: filter 0.4s ease;
}
.work-card:hover .work-card__image {
  filter: contrast(1);
}

.work-card:nth-child(1) .work-card__image { background: #f0ede8; }
.work-card:nth-child(2) .work-card__image { background: #e8edf0; }
.work-card:nth-child(3) .work-card__image { background: #ede8f0; }
.work-card:nth-child(4) .work-card__image { background: #e8f0eb; }
.work-card:nth-child(5) .work-card__image { background: #f0e8ed; }
.work-card:nth-child(6) .work-card__image { background: #f5ede0; }

/* Jackpot 0-to-1 · saturated green fallback under the video poster
   for any case the poster JPG fails to load. */
.work-card--jackpot .work-card__image {
  background: #8bd67a;
}

/* WIP card · simple white BG with "Coming soon..." centered text.
   Compound class beats the .work-card:nth-child(6) default bg. */
.work-card.work-card--wip .work-card__image {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card__placeholder {
  font-family: 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-muted, #6b6b6b);
}

.work-card__image {
  position: relative;
}
.work-card__image img,
.work-card__image .work-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-card__image img,
.work-card:hover .work-card__image .work-card__video {
  transform: scale(1.04);
}

/* Blink WIP overlay · revealed on click, "Work in progress" in black */
.work-card__wip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-family: 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10;
  border-radius: inherit;
}
.work-card.is-wip-clicked .work-card__wip-overlay { opacity: 1; }

/* ── iPhone mockup overlay (sits in the centre of the thumbnail) ── */
.work-card__phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32%;
  aspect-ratio: 9 / 19.5;
  border-radius: 14%/6.5%;
  padding: 4px;
  background: linear-gradient(140deg, #2a2a2e 0%, #4a4a50 18%, #1f1f24 38%, #3a3a40 60%, #2c2c30 82%, #1a1a1e 100%);
  box-shadow:
    0 24px 56px -16px rgba(20, 14, 30, 0.45),
    0 8px 18px -8px rgba(20, 14, 30, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card__phone-screen {
  position: absolute;
  inset: 4px;
  border-radius: 12.5%/5.5%;
  overflow: hidden;
  background: #000;
}
.work-card__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* override the .work-card__image img scaling — phone screen image stays still */
  transition: none;
  transform: none;
}
/* Subtle phone lift on card hover (matches the video scale) */
.work-card:hover .work-card__phone {
  transform: translate(-50%, -50%) scale(1.02);
}

/* ── Logo overlay (sits in the centre of the thumbnail) ──
   Used by case studies that aren't mobile-app focused, where a
   centered brand logo reads better than a phone-bezel mockup. */
.work-card__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Per-card logo size overrides — each card can dial its own
   logo width based on the logo's natural aspect ratio. */
.work-card--nonfiction .work-card__logo { width: 76%; }
.work-card--jackpot-growth .work-card__logo { width: 57%; }

/* ── Portfolio · Built with AI thumbnail · constellation canvas ──
   Particles drift with velocity vectors, lines dynamically
   connect any pair within range. Opacity scales with distance
   so connections fade in and out as particles approach. */
/* Both classes chained so this rule (0,3,0) ties + wins over
   the .work-card:nth-child(3) default-pink rule above. */
.work-card.work-card--portfolio-ai .work-card__image {
  background: #0a0a0e;
}
.ai-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Fallback — keeps the canvas dark even if a stylesheet
     order/specificity quirk lets a lighter parent bg show through. */
  background: #0a0a0e;
}

/* Pre-composed three-icon stack centered on the thumbnail. Sits
   on top of the canvas constellation so the network drifts
   behind the icons. Constrained by max-height so the tall image
   fits the square card with breathing room. */
.ai-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}
/* Compound selector (0,2,1) beats .work-card__image img (0,1,1)
   so the Final.png renders at its own size, not stretched/cropped. */
.ai-icons img.ai-icons__final {
  width: auto;
  height: auto;
  max-height: 86%;
  max-width: 60%;
  object-fit: contain;
  display: block;
  transition: none;
  transform: none;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}

/* Corner accent overlay — sits in the top-right of the thumbnail
   image. Opt-in per card via markup. Used for small icon/asset
   flourishes that complement the centered logo. */
.work-card__accent {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14%;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card__accent img {
  width: 100%;
  height: auto;
  display: block;
  /* Override the parent's .work-card:hover image scale —
     accent has its own subtle hover lift below. */
  transition: none;
  transform: none;
}
.work-card:hover .work-card__accent {
  transform: scale(1.06);
}
.work-card__logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.30));
  /* override the .work-card__image img scaling — logo stays still */
  transition: none;
  transform: none;
}
.work-card:hover .work-card__logo {
  transform: translate(-50%, -50%) scale(1.04);
}

.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* Body/Small · 16 / 400 / Auto */
.work-card__title {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.work-card__tags {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-top: 0.375rem;
}

/* Label/Small · 14 / 400 / 6% / UPPER — inline text, no badge chrome */
.tag {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0;
  border: 0;
  border-radius: 0;
}
/* Comma divider between adjacent tags */
.tag + .tag::before {
  content: ', ';
  color: var(--color-muted);
}

/* Body/Small · 16 / 400 / Auto */
.work-card__year {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* ── About ── */

.about {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__text {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.9;
}

.about__skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.about__skill {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text);
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
}

/* ── Contact ── */

.contact {
  padding: 80px 0 120px;
  border-top: 1px solid var(--color-border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.2s;
}

.contact__link:first-child {
  border-top: 1px solid var(--color-border);
}

.contact__link:hover {
  color: var(--color-muted);
}

.contact__link-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.contact__link:hover .contact__link-arrow {
  transform: translate(3px, -3px);
}

/* ── Footer ── */

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Label/Small · 14 / 400 / 6% / no-upper */
.footer__copy {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* Label/Small · 14 / 400 / 6% / no-upper */
.footer__back {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  transition: color 0.2s;
}

.footer__back:hover {
  color: var(--color-text);
}

/* Label/Small · 14 / 400 / 6% / UPPER */
.footer__remix {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__remix:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.footer__remix:active {
  background: var(--color-text);
  color: var(--color-bg, #fff);
}

.footer__display {
  padding: 8px 0 20px;
  user-select: none;
  overflow: hidden;
  text-align: center;
}

.footer__display-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif;
  font-size: clamp(40px, 11vw, 180px);
  line-height: 1;
  letter-spacing: calc(var(--footer-optical, 0) * 0.001em);
  color: var(--color-text);
  font-weight: var(--footer-weight, 400);
  font-variation-settings: "wght" var(--footer-weight, 400), "opsz" var(--footer-optical, 14);
  transition: font-weight 0.15s ease, letter-spacing 0.1s ease;
}

.footer__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 16px 0 12px;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

/* Label/Small · 14 / 400 / 6% */
.footer__control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  cursor: pointer;
}

.footer__control-label {
  text-transform: uppercase;
}

.footer__control-value {
  min-width: 2.5ch;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.footer__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 96px;
  height: 2px;
  background: var(--color-border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.footer__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color-text);
  border: none;
  cursor: grab;
  transition: transform 0.12s ease;
}

.footer__slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.footer__slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color-text);
  border: none;
  cursor: grab;
}

.footer__slider:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

/* ── Project Page ── */

.project-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--color-border);
}

.project-hero__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items: end;
}

.project-hero__title-col {
  grid-column: span 8;
}

.project-hero__meta-col {
  grid-column: span 4;
  padding-bottom: 0.5rem;
}

/* Label/Small · 14 / 400 / 6% / UPPER */
.project-hero__label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* Mega Title · 80 / 500 / 1.0 / -2.5% (clamp scales for responsive) */
.project-hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.project-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Body/Small · 16 / 400 / Auto */
.project-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.project-meta-item:first-child {
  border-top: 1px solid var(--color-border);
}

.project-meta-item__label {
  color: var(--color-muted);
  font-weight: 400;
}

.project-meta-item__value {
  font-weight: 400;
  text-align: right;
}

/* ── Project Content ── */

.project-cover {
  padding: 60px 0;
}

.project-cover__image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f0ede8;
  overflow: hidden;
}

.project-section {
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

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

.project-section__label-col {
  grid-column: span 3;
}

.project-section__content-col {
  grid-column: span 9;
}

/* Label/Small · 14 / 400 / 6% / UPPER */
.project-section__label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: 0.25rem;
}

/* Title/H3 · 24 / 400 / Auto / 0% */
.project-section__heading {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 1.5rem;
}

/* Body/Big · 18 / 400 / 1.35 / -0.5% */
.project-section__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--color-muted);
  max-width: 640px;
}

.project-section__text + .project-section__text {
  margin-top: 1rem;
}

.project-images {
  padding: 60px 0;
}

.project-images__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.project-images__grid--single {
  grid-template-columns: 1fr;
}

.project-image {
  background: var(--color-surface);
  overflow: hidden;
}

.project-image--tall {
  aspect-ratio: 3/4;
}

.project-image--wide {
  aspect-ratio: 16/9;
}

.project-image--square {
  aspect-ratio: 1;
}

/* ── Next Project ── */

.next-project {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.next-project__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  transition: opacity 0.2s;
}

.next-project__link:hover {
  opacity: 0.6;
}

/* Label/Small · 14 / 400 / 6% / UPPER */
.next-project__label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

/* Title/H1 · 40 / 400 / 1.35 / -0.5% (clamp scales for responsive) */
.next-project__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.next-project__arrow {
  font-size: 2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.next-project__link:hover .next-project__arrow {
  transform: translateX(8px);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Landing · stack: intro+status → project tiles → index list */
  .landing__split {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 40px;
    grid-template-columns: none;
  }
  .landing__left {
    display: contents; /* let inner children participate in the flex order */
  }
  .landing__left,
  .landing__intro { max-width: none; }
  .landing__intro { order: 1; max-width: 100%; }
  .landing__intro .landing__text { max-width: none; }
  .landing__right { order: 2; min-width: 0; }
  .landing__index { order: 3; gap: 12px; }

  /* Tiles · single column on mobile, no clipping */
  .landing__right .work-grid,
  .work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Tile meta · title → year → tags, each on its own line */
  .work-card__meta {
    display: grid;
    grid-template-areas:
      "title"
      "year"
      "tags";
    row-gap: 4px;
    align-items: start;
    justify-content: start;
  }
  .work-card__meta > div { display: contents; }
  .work-card__title { grid-area: title; font-size: 18px; }
  .work-card__year { grid-area: year; margin-top: 0; }
  .work-card__tags { grid-area: tags; margin-top: 0; }

  .project-hero__title-col,
  .project-hero__meta-col {
    grid-column: span 12;
  }

  .project-section__label-col,
  .project-section__content-col {
    grid-column: span 12;
  }

  .project-images__grid {
    grid-template-columns: 1fr;
  }

  /* Footer · stack the controls into a centered column on phones so the
     row can't push the body wider than the viewport, and reorder so the
     REMIX button leads (Weight + Optical follow). */
  .footer__controls {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .footer__remix { order: 1; }
  .footer__control--weight { order: 2; }
  .footer__control--optical { order: 3; }
  .footer__display-text { font-size: clamp(36px, 9vw, 96px); }
  .footer__meta { flex-wrap: wrap; gap: 8px 16px; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .nav__inner { padding: 0 1.25rem; }
  .nav__links { gap: 1.5rem; }
  .about__skills { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   MICRO-ANIMATIONS
══════════════════════════════════════════════ */

/* ── Hide native cursor on pointer devices ── */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

/* ── Custom cursor ── */
.c-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--color-text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.18s ease;
}

.c-ring {
  position: fixed;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(17, 17, 17, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.c-ring--card {
  border-color: rgba(17, 17, 17, 0.15);
  background: rgba(17, 17, 17, 0.06);
}

/* ── Nav slide-in on load ── */
.nav {
  transform: translateY(-100%);
  transition: none;
}

.nav--loaded {
  transform: translateY(0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Title line-reveal structure ── */
.tl {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.tl__i {
  display: block;
  transform: translateY(108%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero lines stagger */
.hero--loaded .hero__title .tl:nth-child(1) .tl__i { transform: translateY(0); transition-delay: 0.3s; }
.hero--loaded .hero__title .tl:nth-child(2) .tl__i { transform: translateY(0); transition-delay: 0.42s; }
.hero--loaded .hero__title .tl:nth-child(3) .tl__i { transform: translateY(0); transition-delay: 0.54s; }

/* Project hero title stagger */
.hero--loaded .project-hero__title .tl:nth-child(1) .tl__i { transform: translateY(0); transition-delay: 0.3s; }
.hero--loaded .project-hero__title .tl:nth-child(2) .tl__i { transform: translateY(0); transition-delay: 0.42s; }

/* ── Hero supporting text load-in ── */
.hero__tag,
.hero__desc,
.hero__status,
.project-hero__label,
.project-meta-list {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero--loaded .hero__tag           { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.hero--loaded .hero__desc          { opacity: 1; transform: translateY(0); transition-delay: 0.62s; }
.hero--loaded .hero__status        { opacity: 1; transform: translateY(0); transition-delay: 0.78s; }
.hero--loaded .project-hero__label { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.hero--loaded .project-meta-list   { opacity: 1; transform: translateY(0); transition-delay: 0.56s; }

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Work card overlay ── */
.work-card__image { position: relative; }

.wc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(10, 10, 10, 0.44);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.work-card:hover .wc-overlay { opacity: 1; }

.wc-overlay__label,
.wc-overlay__arrow {
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  transform: translateY(10px);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wc-overlay__arrow { transition-delay: 0.04s; }

.work-card:hover .wc-overlay__label,
.work-card:hover .wc-overlay__arrow { transform: translateY(0); }

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9997;
  pointer-events: none;
}

/* ── Project image overflow for parallax / hover scale ── */
.project-cover__image { overflow: hidden; }
.project-cover__image img { will-change: transform; }
.project-image { overflow: hidden; }
.project-image img { will-change: transform; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ── Contact link line-sweep ── */
.contact__link {
  position: relative;
  overflow: hidden;
}

.contact__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Next project hover ── */
.next-project__link {
  transition: none;
}

.next-project__title {
  transition: letter-spacing 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.next-project__link:hover .next-project__title {
  letter-spacing: 0.02em;
}

.next-project__link:hover {
  opacity: 1;
}

/* ── Section label slide-from-left ── */
[data-reveal-left] {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal-left].is-revealed {
  opacity: 1;
  transform: translateX(0);
}
