/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-accent: #fcd6d9;          /* soft pink, slightly lighter than Figma #f9c6c9 */
  --color-focus: #fcd6d9;

  --glass-bg: rgba(217, 217, 217, 0.2);
  --glass-border: rgba(255, 255, 255, 0.9);

  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --gutter: clamp(1rem, 2.85vw, 2.5625rem);   /* 16px → 41px */
  --header-top: clamp(1rem, 2.9vw, 2.625rem); /* 16px → 42px */
  --logo-size: clamp(3rem, 5.2vw, 4.6875rem); /* 48px → 75px */

  --art-width: 100%;

  --color-muted: #b3b3b3;
  --color-line: #262626;
  --color-surface: #111;
  --color-pink-strong: #ff8cc9;
  --color-footer: #fce4ee;

  --content-max: 1200px;
  --section-space: clamp(5rem, 10vw, 9rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 720px) {
  :root { --art-width: min(604px, 78vw); }
}

@media (min-width: 1024px) {
  :root { --art-width: clamp(540px, 36vw, 640px); }
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #000;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  position: absolute;
  inset: var(--header-top) var(--gutter) auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: block;
  width: var(--logo-size);
  flex-shrink: 0;
  border-radius: 8px;
}

.nav { position: relative; }

.nav__list,
.nav__toggle {
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.625rem;                     /* + link padding = 50px between labels */
  min-height: 60px;
  padding: 0 2.875rem;
  border-radius: 44px;
}

.nav__list a {
  display: inline-block;
  padding: 0.625rem 0.75rem;        /* ≥ 44px tall hit area */
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.nav__list a:hover { color: var(--color-accent); }

.nav__toggle {
  display: none;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  color: var(--color-text);
  font: 500 1rem/1 var(--font-sans);
  cursor: pointer;
}

/* Small screens: collapse the pill into a Menu button (only when JS can open it) */
@media (max-width: 719.98px) {
  .js .nav__toggle { display: inline-flex; align-items: center; }

  .js .nav__list {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 12rem;
    padding: 0.5rem;
    border-radius: 24px;
    background: rgba(40, 40, 40, 0.55);
  }

  .js .nav__toggle[aria-expanded="false"] + .nav__list { display: none; }

  .js .nav__list a {
    display: block;
    padding: 0.75rem 1rem;
  }

  /* No-JS fallback: let the pill wrap */
  html:not(.js) .nav__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.25rem 0.75rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  justify-content: center;
}

.hero__art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--art-width);
  min-height: min(100vh, 900px);
  min-height: min(100svh, 900px);
  overflow: hidden;
  padding-top: clamp(9rem, 24vh, 15.25rem); /* headline sits ~244px down on desktop */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 1rem;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 1rem + 2.2vw, 2.5rem); /* 28px → 40px */
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.accent { color: var(--color-accent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  margin-top: 1.25rem;
  padding: 0.75rem 1.6875rem;
  background: #fff;
  color: #000;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 41px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.hero__portrait {
  width: 62%;
  max-width: 400px;
  margin-top: auto;
  padding-top: 0.5rem;
  margin-bottom: 0;
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 719.98px) {
  .hero__portrait { width: 72%; }
}

/* ==========================================================================
   Peeks: hoverable stickers in the black space beside the hero (desktop only)
   Layers: .peek (position + entrance)
             └ __float (idle drift)
                 └ __magnet (leans toward the cursor, set from JS)
                     ├ __trigger > __sticker (hover lift)
                     └ __arrow (optional, draws in)
             └ __pop (revealed note: optional __gif + __text, words in sequence)
   Each instance sets its own position and personality with custom properties.
   ========================================================================== */
.hero { position: relative; }

.peek { display: none; }

@media (min-width: 1360px) {
  .hero {
    --side: calc(50% - var(--art-width) / 2);   /* width of each black side area */
  }

  .peek {
    --box: 180px;
    --pop-w: 15rem;
    --rest-rot: 0deg;
    --hover-rot: -6deg;
    --enter-x: 70px;

    display: block;
    position: absolute;
    top: var(--top);
    left: var(--left);
    width: var(--box);
    aspect-ratio: 1;
    animation: peek-enter 1.4s var(--ease-out) var(--enter-delay, 0.6s) both;
  }

  .peek__float,
  .peek__magnet {
    position: absolute;
    inset: 0;
  }

  .peek__float {
    z-index: 1;
    animation: peek-drift var(--drift-dur, 7s) ease-in-out var(--drift-delay, 0s) infinite;
  }

  .peek__magnet {
    transform:
      translate(var(--mx, 0px), var(--my, 0px))
      rotate(var(--mr, 0deg));
    transition: transform 0.7s var(--ease-out);
    will-change: transform;
  }

  .peek__trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 12px;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .peek__sticker {
    width: var(--sticker-w, 70%);
    transform: rotate(var(--rest-rot));
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    transition:
      transform 0.5s var(--ease-spring),
      filter 0.5s var(--ease-out);
  }

  .peek__trigger:active .peek__sticker {
    transform: rotate(var(--hover-rot)) scale(0.96);
    transition-duration: 0.15s;
  }

  .peek__arrow {
    position: absolute;
    overflow: visible;
    fill: #fff;
    pointer-events: none;
    clip-path: inset(-20% 100% -20% 0);          /* hidden: nothing revealed yet */
    transition: clip-path 0.2s ease-in;
  }

  .peek__pop {
    position: absolute;
    top: var(--pop-top, auto);
    bottom: var(--pop-bottom, auto);
    left: var(--pop-left, calc(50% - var(--pop-w) / 2));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: var(--pop-w);
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
  }

  .peek__gif {
    width: var(--gif-w, 150px);
    padding: 6px 6px 20px;                       /* polaroid frame */
    background: #f4f1ea;
    border-radius: 4px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: var(--gif-from, translateY(14px)) rotate(calc(var(--gif-rot, -4deg) - 14deg)) scale(0.35);
    transition:
      opacity 0s linear 0.28s,
      transform 0.3s cubic-bezier(0.5, 0, 0.75, 0);   /* slips back in */
  }

  .peek__text {
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
  }

  .peek__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(6px);
    transition:
      opacity 0.15s ease,
      transform 0.2s ease,
      filter 0.15s ease;
  }

  /* ---- Active: hover, keyboard focus, or pinned open by click/tap ---- */
  .peek:where(.is-open, :has(.peek__trigger:hover), :has(.peek__trigger:focus-visible)) {
    z-index: 5;

    & .peek__float { animation-play-state: paused; }

    & .peek__sticker {
      transform: translateY(-6px) rotate(var(--hover-rot)) scale(1.08);
      filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.55));
    }

    & .peek__arrow {
      clip-path: inset(-20% -10% -20% 0);
      transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.12s;
    }

    & .peek__pop {
      visibility: visible;
      transition-delay: 0s;
    }

    & .peek__gif {
      opacity: 1;
      transform: rotate(var(--gif-rot, -4deg));
      transition:
        opacity 0s linear 0.08s,
        transform 0.75s var(--ease-spring) 0.08s;   /* springs out */
    }

    & .peek__word {
      opacity: 1;
      transform: none;
      filter: blur(0);
      transition:
        opacity 0.5s ease,
        transform 0.7s var(--ease-out),
        filter 0.5s ease;
      transition-delay: calc(var(--words-delay, 0.35s) + var(--i, 0) * 45ms);
    }
  }

  /* ---- Instances ---- */

  /* Cloud (right): “I used to design buildings…” */
  .peek--cloud {
    --box: clamp(180px, 14.7vw, 260px);         /* 212px at 1440, from Figma */
    --top: 26%;                                  /* 268 / 1024 */
    --left: calc(50% + var(--art-width) / 2 + clamp(2.5rem, 4.3vw, 5rem));
    --sticker-w: 68%;
    --rest-rot: -11.22deg;
    --hover-rot: -18deg;
    --pop-w: clamp(14rem, 17.5vw, 20rem);
    --pop-bottom: 80%;
    --pop-left: 12%;
    --words-delay: 0.4s;
    --enter-delay: 0.6s;
  }

  .peek--cloud .peek__arrow {
    top: 23%;
    left: 67%;
    width: 17%;
    transform: rotate(-2.21deg);
  }

  /* Arrows on the other stickers, all pointing toward their note */
  .peek--laptop .peek__arrow { top: 96%; left: 62%; width: 17%; transform: rotate(78deg); }
  .peek--coffee .peek__arrow { top: -26%; left: 56%; width: 19%; transform: rotate(-58deg); }
  .peek--flower .peek__arrow { top: -40%; left: 30%; width: 34%; transform: rotate(-118deg) scaleY(-1); }

  /* Laptop (left, upper): research + sticky notes */
  .peek--laptop {
    --box: clamp(170px, 13.5vw, 230px);
    --top: 23%;
    --left: calc(var(--side) * 0.45 - var(--box) / 2);
    --sticker-w: 92%;
    --rest-rot: -6deg;
    --hover-rot: 2deg;
    --pop-top: 124%;
    --words-delay: 0.45s;
    --gif-rot: 3deg;
    --enter-x: -70px;
    --enter-delay: 0.8s;
    --drift-delay: -2s;
  }

  /* Coffee (left, lower): iced brown sugar lattes */
  .peek--coffee {
    --box: clamp(130px, 10.5vw, 180px);
    --top: 70%;
    --left: calc(var(--side) * 0.58 - var(--box) / 2);
    --sticker-w: 86%;
    --rest-rot: 8deg;
    --hover-rot: -4deg;
    --pop-bottom: 136%;
    --pop-left: 20%;
    --words-delay: 0.45s;
    --gif-rot: -5deg;
    --enter-x: -70px;
    --enter-delay: 1s;
    --drift-dur: 8s;
    --drift-delay: -4s;
  }

  /* Flower (right, lower): asking why */
  .peek--flower {
    --box: clamp(84px, 6.7vw, 110px);
    --top: 67%;
    --left: calc(50% + var(--art-width) / 2 + var(--side) * 0.5 - var(--box) / 2);
    --sticker-w: 62%;
    --rest-rot: 18deg;
    --hover-rot: 108deg;
    --pop-bottom: 150%;
    --pop-left: calc(50% - var(--pop-w) * 0.62);
    --words-delay: 0.45s;
    --gif-rot: 4deg;
    --enter-delay: 1.2s;
    --drift-dur: 6s;
    --drift-delay: -1s;
  }

  .peek--flower .peek__sticker {
    height: auto;
    aspect-ratio: 1;
    fill: var(--color-pink-strong);
  }

  @keyframes peek-enter {
    from {
      opacity: 0;
      transform: translate(var(--enter-x), 24px) rotate(10deg) scale(0.9);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes peek-drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-9px) rotate(1.6deg); }
  }

  /* The facts list below the hero repeats these notes for smaller screens */
  .intro .facts { display: none; }
}

/* ==========================================================================
   Shared section layout
   ========================================================================== */
html { scroll-padding-top: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.section {
  width: min(100% - 2 * var(--gutter), var(--content-max));
  margin-inline: auto;
  padding-block: var(--section-space);
}

.section__header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.section__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section__lede {
  margin: 0.75rem auto 0;
  max-width: 40ch;
  color: var(--color-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

/* Scroll reveal: only hides content when JS is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.8s var(--ease-out),
      transform 0.9s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 110ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro__statement {
  max-width: 42ch;
  margin: 0 auto;
  font-size: clamp(1.25rem, 0.95rem + 1.1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: pretty;
}

/* Highlighter that sweeps in when the statement is revealed */
.highlight {
  color: #000;
  background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 0 / 100% 100%;
  padding: 0.02em 0.18em;
  border-radius: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-reduced-motion: no-preference) {
  .js .highlight {
    color: inherit;
    background-size: 0% 100%;
    transition:
      background-size 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.5s,
      color 0.4s ease 0.9s;
  }

  .js .is-visible .highlight {
    color: #000;
    background-size: 100% 100%;
  }
}

/* Fun facts */
.facts {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fact__icon {
  width: 40px;
  height: 40px;
  fill: var(--color-pink-strong);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.7s var(--ease-spring);
}

.fact:nth-child(2) .fact__icon { --tilt: 20deg; }
.fact:nth-child(3) .fact__icon { --tilt: -15deg; }

.fact:hover .fact__icon { transform: rotate(calc(var(--tilt, 0deg) + 90deg)) scale(1.15); }

.fact__text {
  max-width: 22ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.4;
  color: var(--color-text);
}

/* ==========================================================================
   Logos strip
   ========================================================================== */
.logos {
  border-block: 1px solid var(--color-line);
}

.logos__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem 3rem;
  width: min(100% - 2 * var(--gutter), var(--content-max));
  margin-inline: auto;
  padding-block: 1.75rem;
}

.logos__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
}

.logos__label {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.logos__list {
  display: flex;
  gap: 0.75rem;
}

.logos__chip {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 0.6rem 1.1rem;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.4s var(--ease-spring);
}

.logos__chip--icon {
  width: 52px;
  padding: 0;
  overflow: hidden;
}

.logos__chip--icon img { width: 34px; }

.logos__chip:hover { transform: translateY(-3px) rotate(-4deg); }

/* ==========================================================================
   Work grid
   ========================================================================== */
.work__grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 720px) {
  .work__grid {
    --stagger: clamp(3rem, 8vw, 7rem);
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: var(--stagger);
  }

  /* Right column sits lower, echoing the current Projects page.
     Relative offset keeps the grid rows (and reading order) intact. */
  .work__grid > :nth-child(even) {
    position: relative;
    top: var(--stagger);
  }
}

.project__img {
  width: 100%;
  aspect-ratio: 1234 / 740;
  object-fit: cover;
  border-radius: clamp(14px, 1.6vw, 22px);
  background: var(--color-surface);
  outline: 1px solid var(--color-line);
  outline-offset: -1px;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.project:hover .project__img {
  transform: translateY(-6px) scale(1.015);
  filter: brightness(1.06);
}

.project__title {
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.project__tags {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials__list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .testimonials__list { grid-template-columns: repeat(3, 1fr); }
}

.testimonials__list > li { display: flex; }

.quote-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 22px;
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}

.quote-card:hover {
  border-color: rgba(252, 214, 217, 0.45);
  transform: translateY(-4px);
}

.quote-card__icon {
  width: 38px;
  height: 21px;
  fill: var(--color-pink-strong);
  transition: transform 0.6s var(--ease-spring);
}

.quote-card:hover .quote-card__icon { transform: rotate(-12deg) scale(1.15); }

.quote-card__text {
  flex: 1;
  margin: 1.25rem 0 1.75rem;
}

.quote-card__text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #e5e5e5;
}

.quote-card__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-muted);
}

.quote-card__person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.quote-card__person strong {
  display: block;
  color: var(--color-accent);
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-footer);
  color: #000;
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  width: min(100% - 2 * var(--gutter), var(--content-max));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

@media (max-width: 719.98px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__quote { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 3rem clamp(2.5rem, 6vw, 6rem);
  }
}

.site-footer__quote {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.site-footer__mark {
  width: 44px;
  height: 30px;
  flex-shrink: 0;
  margin-top: 0.35rem;
  fill: #000;
}

.site-footer__quote p {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.3;
}

.site-footer__nav ul,
.site-footer__social {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.3rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.site-footer a:hover { text-decoration-thickness: 2px; }

.site-footer :focus-visible { outline-color: #000; }

.site-footer__legal {
  width: min(100% - 2 * var(--gutter), var(--content-max));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  color: #3d3d3d;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Linked project cards: the title link stretches over the whole card */
.project { position: relative; }

.project__link {
  text-decoration: none;
}

.project__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: clamp(14px, 1.6vw, 22px);
}

.project__link:focus-visible { outline: none; }
.project__link:focus-visible::after {
  outline: 3px solid var(--color-focus);
  outline-offset: 6px;
}

.project:has(.project__link):hover .project__title { color: var(--color-accent); }
.project:has(.project__link) { cursor: pointer; }

/* ==========================================================================
   Project deck: cards stack as you scroll; the card underneath recedes.
   --p (0 → 1) is set per card by main.js as the next card covers it.
   ========================================================================== */
.deck {
  margin: 0;
  padding: 0;
  list-style: none;
}

.deck__item {
  position: sticky;
  top: calc(clamp(5rem, 12vh, 7rem) + var(--i) * 14px);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.deck__card {
  --p: 0;
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid #2a2a2a;
  border-radius: clamp(20px, 2.4vw, 32px);
  background: #111;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p) * 0.08)) rotate(calc(var(--p) * var(--tilt, -1.5deg)));
  filter: brightness(calc(1 - var(--p) * 0.45));
  will-change: transform, filter;
}

.deck__item:nth-child(even) .deck__card { --tilt: 1.5deg; }

@media (min-width: 900px) {
  .deck__card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
}

.deck__media {
  overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 22px);
}

.deck__media img {
  width: 100%;
  aspect-ratio: 1234 / 740;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.deck__card:hover .deck__media img { transform: scale(1.04); }

.deck__info { padding: 0.25rem 0.5rem 0.75rem; }

.deck__num {
  margin: 0;
  color: transparent;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--tone);
}

.deck__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.deck__link { text-decoration: none; }
.deck__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.deck__link:focus-visible { outline: none; }
.deck__card:has(.deck__link:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 4px; }

.deck__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.deck__tags li {
  padding: 0.3rem 0.8rem;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.deck__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-weight: 500;
}

.deck__cta::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tone);
  color: #000;
  transition: transform 0.3s var(--ease-out);
}

.deck__card:hover .deck__cta::after { transform: translateX(4px); }

/* Reduced motion: a plain list, no sticking or receding */
@media (prefers-reduced-motion: reduce) {
  .deck__item { position: static; }
  .deck__card { transform: none; filter: none; }
}

/* ==========================================================================
   Graph-paper background (Home, About and other non-project pages)
   Fine grid with a small cross every 4th line. Grey / muted white only.
   ========================================================================== */
:root {
  --grid-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.03' stroke-width='1'%3E%3Cpath d='M.5 0V96M24.5 0V96M48.5 0V96M72.5 0V96M0 .5H96M0 24.5H96M0 48.5H96M0 72.5H96'/%3E%3C/g%3E%3Cpath d='M48.5 43v11M43 48.5h11' stroke='%23e8e4dc' stroke-opacity='.15' stroke-width='1.2'/%3E%3C/svg%3E");
  --grid-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%237c8590' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M.5 0V96M24.5 0V96M48.5 0V96M72.5 0V96M0 .5H96M0 24.5H96M0 48.5H96M0 72.5H96'/%3E%3C/g%3E%3Cpath d='M48.5 43v11M43 48.5h11' stroke='%236b7380' stroke-opacity='.22' stroke-width='1.2'/%3E%3C/svg%3E");
}

body:not(.case-study) {
  background-image: var(--grid-dark);
  background-size: 96px 96px;
}

body.about { background-image: var(--grid-light); }

/* ==========================================================================
   "Pause animations" toggle (html.motion-off) — mirrors prefers-reduced-motion
   ========================================================================== */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-footer__legal p { margin: 0; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #1a1a1a;
  font: 500 0.875rem/1 var(--font-sans);
  cursor: pointer;
}
.motion-toggle::before { content: "❚❚"; font-size: 0.65rem; letter-spacing: -0.1em; }
.motion-toggle[aria-pressed="true"]::before { content: "▶"; font-size: 0.7rem; }
.motion-toggle:hover:not(:disabled) { background: rgba(0, 0, 0, 0.06); }
.motion-toggle:disabled { cursor: default; opacity: 0.75; }
.motion-toggle:disabled::before { content: none; }

html.motion-off *,
html.motion-off *::before,
html.motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/* Looping animations stop in place instead of jumping to their end */
html.motion-off .peek__float,
html.motion-off .ab-hero__cloud { animation: none !important; }
html.motion-off .ab-hero__cloud { left: 8%; }
html.motion-off .ab-hero__cloud + .ab-hero__cloud { left: 72%; }

/* Project deck becomes a plain list */
html.motion-off .deck__item { position: static; }
html.motion-off .deck__card { transform: none !important; filter: none !important; }

/* ==========================================================================
   Beyond UX: song book flipbook. Leaves hinge on the spine (centre line);
   closed at either end, the book slides so the cover sits centred.
   ========================================================================== */
.flipbook { --flip: 0.9s cubic-bezier(0.645, 0.045, 0.355, 1); }
.flipbook__stage {
  display: flex;
  justify-content: center;
  padding-block: clamp(1rem, 3vw, 2.5rem);
  perspective: 2600px;
}
.flipbook__book {
  position: relative;
  width: min(100%, 1040px);
  aspect-ratio: 2 / 1;
  cursor: pointer;
  transition: transform var(--flip);
}
.flipbook__book.is-front { transform: translateX(-25%); }
.flipbook__book.is-back { transform: translateX(25%); }
.flipbook__book:focus-visible { outline: none; }
.flipbook__book:focus-visible .leaf__face { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.flipbook__fallback { position: absolute; left: 50%; width: 50%; height: 100%; object-fit: cover; }

.leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform var(--flip);
}
.leaf.is-turned { transform: rotateY(-180deg); }
.leaf.is-moving { z-index: 100 !important; }
.leaf__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f4efe9;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.leaf__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.leaf__front { border-radius: 0 6px 6px 0; }
.leaf__back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
/* soft gutter shading along the spine */
.leaf__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.leaf__front::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 7%); }
.leaf__back::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 7%); }
.leaf:first-child .leaf__front::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 3%); }

/* the next page lifts a little on hover: a cue that it turns */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .flipbook__book:hover .leaf:not(.is-turned):not(.is-moving) { transition: transform 0.4s ease; }
  .flipbook__book:hover .leaf.is-next { transform: rotateY(-10deg); }
}

.flipbook__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.flipbook__status { min-width: 11rem; margin: 0; color: var(--color-muted); font-size: 0.9375rem; text-align: center; font-variant-numeric: tabular-nums; }
.flipbook__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.flipbook__btn svg { width: 22px; height: 22px; }
.flipbook__btn:hover:not(:disabled) { background: var(--color-accent); color: #000; }
.flipbook__btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.flipbook__btn:disabled { opacity: 0.35; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .flipbook__book, .leaf { transition: none; }
}
html.motion-off .flipbook__book,
html.motion-off .leaf { transition: none; }
.flipbook__book { width: min(100%, 960px, 118svh); }
.leaf__front::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 4%); }
.leaf__back::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 4%); }

/* Flipbook: one soft shadow under the visible pages (per-page shadows piled up at the spine) */
.leaf__face { box-shadow: none; }
.flipbook__book::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  transition: left var(--flip), right var(--flip);
}
.flipbook__book.is-front::before { left: 50%; }
.flipbook__book.is-back::before { right: 50%; }
.flipbook__hint { margin: 0.75rem 0 0; color: var(--color-muted); font-size: 0.875rem; text-align: center; }
html.motion-off .flipbook__book::before { transition: none; }
@media (prefers-reduced-motion: reduce) { .flipbook__book::before { transition: none; } }

/* Beyond UX cards on Home: the whole card opens the project */
.beyond__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 400px));
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 auto;
  padding: 0 var(--gutter, 1rem);
  list-style: none;
}
.beyond-card { position: relative; }
.beyond-card__media { overflow: hidden; border-radius: 16px; background: #1a1a1a; }
.beyond-card__media img { display: block; width: 100%; height: auto; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.beyond-card:hover .beyond-card__media img { transform: scale(1.04); }
.beyond-card__title { margin: 1.1rem 0 0.4rem; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); font-weight: 600; line-height: 1.25; }
.beyond-card__link { color: var(--color-text); text-decoration: none; }
.beyond-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.beyond-card__link:focus-visible { outline: none; }
.beyond-card__link:focus-visible::after { outline: 3px solid var(--color-accent); outline-offset: 6px; }
.beyond-card__text { margin: 0 0 0.75rem; color: var(--color-muted); font-size: 0.9375rem; line-height: 1.5; }
.beyond-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.beyond-card__tags li { padding: 0.3rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; color: var(--color-text); font-size: 0.8125rem; }
@media (prefers-reduced-motion: reduce) { .beyond-card__media img { transition: none; } }
html.motion-off .beyond-card__media img { transition: none; }
.beyond-page main { min-height: 70vh; padding-top: clamp(6rem, 12vh, 8rem); }
.beyond__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 580px)); }

/* Flipbook with portrait pages (e.g. an A4 magazine): two pages side by side */
.flipbook__book--portrait { aspect-ratio: 1190 / 842; width: min(100%, 980px, 112svh); }

/* ==========================================================================
   Sticky-on-scroll-up header: out of the way while reading down the page,
   slides back in (compact) as soon as the reader scrolls up. main.js toggles
   .is-floating (fixed, parked above the viewport) and .is-revealed.
   ========================================================================== */
html .site-header.is-floating {
  position: fixed;
  inset: 0.75rem var(--gutter) auto;
  padding: 0;
  z-index: 50;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html .site-header.is-floating.is-revealed { transform: none; }
.site-header.is-floating .logo { width: 48px; transition: width 0.2s ease; }
.site-header.is-floating .nav__list,
.site-header.is-floating .nav__toggle { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
@media (min-width: 720px) {
  .site-header.is-floating .nav__list { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.is-floating { transition: none; }
}
html.motion-off .site-header.is-floating { transition: none; }
.site-header-spacer { display: none; }
.site-header-spacer.is-on { display: block; }
html .site-header.is-floating .nav__list,
html .site-header.is-floating .nav__toggle {
  background: color-mix(in srgb, var(--color-bg, #000) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
/* Floating logo gets the same backing as the pill so it reads over any section */
html .site-header.is-floating .logo {
  width: 52px;
  padding: 6px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-bg, #000) 86%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
/* About uses a cream page with ink text */
html .about .site-header.is-floating .nav__list,
html .about .site-header.is-floating .nav__toggle,
html .about .site-header.is-floating .logo { background: rgba(246, 241, 231, 0.94); }


/* ==========================================================================
   Consistency layer: one primary button and one nav style across every page.
   Each page only sets two tokens: --btn-bg and --btn-fg. The arrow disc swaps them.
   ========================================================================== */
html :is(.button, .cs-button, .ab-btn, .pill-btn) {
  --btn-bg: #fff;
  --btn-fg: #000;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 50px;
  padding: 0.35rem 0.4rem 0.35rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
html :is(.button, .cs-button, .ab-btn, .pill-btn)::after {
  content: "→";
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--btn-fg);
  color: var(--btn-bg);
  font-size: 1rem;
  transition: transform 0.3s var(--ease-out);
}
html :is(.button, .cs-button, .ab-btn, .pill-btn)[target="_blank"]::after { content: "↗"; }
html :is(.button, .cs-button, .ab-btn, .pill-btn):hover {
  background: var(--btn-bg);
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
html :is(.button, .cs-button, .ab-btn, .pill-btn):hover::after { transform: translateX(3px); }
html :is(.button, .cs-button, .ab-btn, .pill-btn)[target="_blank"]:hover::after { transform: translate(2px, -2px); }
html :is(.button, .cs-button, .ab-btn, .pill-btn):focus-visible { outline: 3px solid var(--color-focus, var(--color-accent)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html :is(.button, .cs-button, .ab-btn, .pill-btn),
  html :is(.button, .cs-button, .ab-btn, .pill-btn)::after { transition: none; }
}

/* Page tokens: project colour on case studies, ink on About */
.case-study :is(.button, .cs-button, .ab-btn, .pill-btn) { --btn-bg: var(--accent); --btn-fg: var(--cs-on-accent, #fff); }
.about :is(.button, .cs-button, .ab-btn, .pill-btn) { --btn-bg: #15171c; --btn-fg: #fff; }
.zl-box :is(.button, .cs-button, .ab-btn, .pill-btn) { --btn-bg: #fff; --btn-fg: var(--accent); }

/* Nav: same pill on every page; hover is a soft tint; the current page is a filled pill */
html .site-header .nav__list a {
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
html .site-header .nav__list a:hover {
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
html .site-header .nav__list a[aria-current] { background: #fff; color: #000; }
html :is(.case-study--light, .about) .site-header .nav__list a[aria-current] { background: #15171c; color: #fff; }
/* make the shared button colours win over older page-specific rules */
html :is(.button, .cs-button, .ab-btn, .pill-btn):not(#_),
html :is(.button, .cs-button, .ab-btn, .pill-btn):not(#_):hover { background: var(--btn-bg); color: var(--btn-fg); border: 0; }
html :is(.button, .cs-button, .ab-btn, .pill-btn):not(#_)::after { background: var(--btn-fg); color: var(--btn-bg); }

/* ==========================================================================
   Cursors: a simple arrow everywhere; shaking the mouse swaps it for a "You"
   tag (main.js adds html.cursor-you). A "Navyaa" cursor drifts in the hero,
   like a collaborator in a shared file. Fine pointers only.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url("../assets/img/cursors/cursor.png") 3 2, auto; cursor: image-set(url("../assets/img/cursors/cursor.png") 1x, url("../assets/img/cursors/cursor@2x.png") 2x) 3 2, auto; }
  html.cursor-you,
  html.cursor-you body { cursor: url("../assets/img/cursors/cursor-you.png") 2 2, auto; cursor: image-set(url("../assets/img/cursors/cursor-you.png") 1x, url("../assets/img/cursors/cursor-you@2x.png") 2x) 2 2, auto; }
}
.hero__cursor {
  position: absolute;
  z-index: 3;
  left: 58%;
  top: 46%;
  width: clamp(84px, 7vw, 110px);
  height: auto;
  pointer-events: none;
  user-select: none;
  animation: collab-drift 9s ease-in-out infinite;
}
@keyframes collab-drift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-26px, 14px); }
  40% { transform: translate(-8px, 34px); }
  55% { transform: translate(22px, 18px); }
  75% { transform: translate(14px, -16px); }
}
@media (hover: none), (pointer: coarse) { .hero__cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__cursor { animation: none; } }
html.motion-off .hero__cursor { animation: none; }
/* Clickable things keep the arrow (no hand); the arrow turns pink as hover feedback */
@media (hover: hover) and (pointer: fine) {
  html :is(a, button, summary, label, select, input[type="range"], input[type="checkbox"], [role="tab"], [tabindex="0"][role="group"], .pf__card, .sp__photo, .obj, .deck__card, .beyond-card, [data-flipbook], .zl-ba):not(#_),
  html :is(a, button, summary, label, select, input[type="range"], input[type="checkbox"], [role="tab"], [tabindex="0"][role="group"], .pf__card, .sp__photo, .obj, .deck__card, .beyond-card, [data-flipbook], .zl-ba):not(#_) * {
    cursor: url("../assets/img/cursors/cursor-hover.png") 3 2, auto; cursor: image-set(url("../assets/img/cursors/cursor-hover.png") 1x, url("../assets/img/cursors/cursor-hover@2x.png") 2x) 3 2, auto;
  }
  html.cursor-you :is(a, button, summary, label, select, input[type="range"], input[type="checkbox"], [role="tab"], [tabindex="0"][role="group"], .pf__card, .sp__photo, .obj, .deck__card, .beyond-card, [data-flipbook], .zl-ba):not(#_),
  html.cursor-you :is(a, button, summary, label, select, input[type="range"], input[type="checkbox"], [role="tab"], [tabindex="0"][role="group"], .pf__card, .sp__photo, .obj, .deck__card, .beyond-card, [data-flipbook], .zl-ba):not(#_) * {
    cursor: url("../assets/img/cursors/cursor-you-hover.png") 2 2, auto; cursor: image-set(url("../assets/img/cursors/cursor-you-hover.png") 1x, url("../assets/img/cursors/cursor-you-hover@2x.png") 2x) 2 2, auto;
  }
  html button:disabled:not(#_) { cursor: url("../assets/img/cursors/cursor.png") 3 2, auto; cursor: image-set(url("../assets/img/cursors/cursor.png") 1x, url("../assets/img/cursors/cursor@2x.png") 2x) 3 2, auto; }
}
/* Floating header: the logo stays exactly as it is at the top of the page */
html .site-header.is-floating .logo,
html .about .site-header.is-floating .logo {
  width: var(--logo-size);
  padding: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: none;
}


/* Nav: the bar keeps its height; only the current-page pill is slimmer */
html .site-header .nav__list a[aria-current] { padding-block: 0.3rem; }

/* Home intro statement: a wider measure so it spreads out */
.intro__statement { max-width: 58ch; line-height: 1.35; }

/* ==========================================================================
   Home hero: the painting is split into a grid of pieces ("broken painting").
   Four pieces turn over on hover / focus / tap to reveal a quote.
   Built by main.js; without JS the whole painting shows as before.
   ========================================================================== */
.hero__tiles {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 6px;
  perspective: 1200px;
}
.hero__art.has-tiles .hero__bg { visibility: hidden; }
.hero__art.has-tiles { background: #000; }
.hero__art.has-tiles .hero__portrait,
.hero__art.has-tiles .hero__content { pointer-events: none; }
.hero__art.has-tiles .hero__content .button { pointer-events: auto; }

.tile {
  position: relative;
  grid-column: var(--c) / span var(--cs, 1);
  grid-row: var(--r) / span var(--rs, 1);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  transform: translate(var(--jx, 0), var(--jy, 0));
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.tile__face {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tile__front {
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: var(--bw) var(--bh);
  background-position: var(--bx) var(--by);
}
.tile__back {
  display: grid;
  place-items: center;
  padding: 0.75rem 0.9rem;
  background: var(--color-accent, #fcd6d9);
  color: #111;
  font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transform: rotateY(180deg);
}
.tile--q { cursor: pointer; }
.tile--q .tile__front::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent, #fcd6d9);
  box-shadow: 0 0 0 3px rgba(252, 214, 217, 0.35);
  animation: tile-ping 2.4s ease-in-out infinite;
}
@keyframes tile-ping { 50% { box-shadow: 0 0 0 7px rgba(252, 214, 217, 0); } }
.tile--q:hover, .tile--q:focus-visible, .tile--q[aria-pressed="true"] {
  z-index: 3;
  transform: translate(var(--jx, 0), var(--jy, 0)) rotateY(180deg) scale(1.04);
}
.tile--q:focus-visible { outline: none; }
.tile--q:focus-visible .tile__face { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile--q .tile__front::after { animation: none; }
}
html.motion-off .tile { transition: none; }
html.motion-off .tile--q .tile__front::after { animation: none; }
.hero__art.has-tiles .hero__portrait { position: relative; z-index: 1; }
.hero__art.has-tiles .hero__cursor { z-index: 4; }
/* let a turned piece rise above the headline while it's open */
.hero__tiles { z-index: auto; perspective: none; }
.tile { z-index: 0; transform: perspective(1200px) translate(var(--jx, 0), var(--jy, 0)); }
.tile--q:hover, .tile--q:focus-visible, .tile--q[aria-pressed="true"] {
  z-index: 5;
  transform: perspective(1200px) translate(var(--jx, 0), var(--jy, 0)) rotateY(180deg) scale(1.04);
}

/* Hero bento: wider painting, equal gaps, rounded pieces, nothing crossing the headline */
@media (min-width: 1024px) { :root { --art-width: clamp(640px, 56vw, 920px); } }
.hero__tiles { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 10px; padding: 10px; }
.tile { --jx: 0px; --jy: 0px; }
.tile__face { border-radius: 16px; overflow: hidden; }
/* the open card can be wider than a narrow piece, growing toward the middle */
.tile--q .tile__back { padding: 1rem; }
@media (max-width: 719.98px) {
  .hero__tiles { gap: 6px; padding: 6px; }
  .tile__face { border-radius: 10px; }
  .tile--q .tile__back { width: 200px; font-size: 0.8125rem; }
  .tile--l .tile__back { left: auto; right: 0; }
  .tile--r .tile__back { right: auto; left: 0; }
}
.tile--q .tile__back { width: max(100%, 230px); }
.tile--l .tile__back { left: auto; right: 0; }
.tile--r .tile__back { right: auto; left: 0; }
.tile--w .tile__back { width: 100%; }
/* the header strip shouldn't block the top pieces; only its logo and nav take clicks */
.site-header { pointer-events: none; }
.site-header > * { pointer-events: auto; }
.beyond__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 520px)); }

/* Hero grid, Swiss/Japanese style: square pieces, hairline gaps, outlined quote cards (no flip) */
.hero__tiles { gap: 4px; padding: 4px; }
.tile__face, .tile__face { border-radius: 0; }
.tile, .tile--q:hover, .tile--q:focus-visible, .tile--q[aria-pressed="true"] { transform: none; }
.tile__back {
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-size: clamp(0.875rem, 0.75rem + 0.35vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile__front { transition: opacity 0.3s ease; }
.tile__no { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; opacity: 0.7; }
.tile__q { max-width: 22ch; }
.tile--q:hover .tile__back, .tile--q:focus-visible .tile__back, .tile--q[aria-pressed="true"] .tile__back { opacity: 1; }
.tile--q:hover .tile__front, .tile--q:focus-visible .tile__front, .tile--q[aria-pressed="true"] .tile__front { opacity: 0; }
.tile--q .tile__front::after { border-radius: 0; width: 7px; height: 7px; background: #fff; box-shadow: none; animation: none; }
.tile--q:focus-visible .tile__face { outline: none; }
.tile--q:focus-visible .tile__back { outline: 2px solid var(--color-accent); outline-offset: -4px; }
@media (max-width: 719.98px) { .hero__tiles { gap: 3px; padding: 3px; } .tile__face { border-radius: 0; } }
.tile--l .tile__back { left: 0; right: auto; }
.tile--r .tile__back { right: 0; left: auto; }

/* Quote cards fit their own piece exactly; text scales to the piece */
.tile { container-type: size; overflow: hidden; }
.tile--q .tile__back, .tile--l .tile__back, .tile--r .tile__back, .tile--w .tile__back { inset: 0; width: auto; left: 0; right: 0; }
.tile__back {
  border: 0;
  padding: clamp(0.5rem, 9cqi, 1rem);
  font-size: clamp(0.6875rem, min(10cqi, 7cqb), 1rem);
  background: #000;
  opacity: 1;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}
.tile__q { max-width: none; }
/* micro-interaction: painting zooms and dims, outline draws in, number and text rise in turn */
.tile__front { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease, opacity 0.35s ease 0.1s; }
.tile--q:hover .tile__front, .tile--q:focus-visible .tile__front, .tile--q[aria-pressed="true"] .tile__front { opacity: 0; transform: scale(1.08); filter: brightness(0.4); }
.tile__back::after {
  content: ""; position: absolute; inset: 0; border: 1px solid #fff; pointer-events: none;
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.tile__no, .tile__q { opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.tile--q:is(:hover, :focus-visible, [aria-pressed="true"]) .tile__back { visibility: visible; transition: none; }
.tile--q:is(:hover, :focus-visible, [aria-pressed="true"]) .tile__back::after { clip-path: inset(0 0 0 0); transition-delay: 0.1s; }
.tile--q:is(:hover, :focus-visible, [aria-pressed="true"]) .tile__no { opacity: 0.7; transform: none; transition-delay: 0.2s; }
.tile--q:is(:hover, :focus-visible, [aria-pressed="true"]) .tile__q { opacity: 1; transform: none; transition-delay: 0.3s; }
/* idle markers breathe softly */
.tile--q .tile__front::after { animation: tile-mark 2.6s ease-in-out infinite; }
@keyframes tile-mark { 50% { opacity: 0.35; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) {
  .tile__front, .tile__back::after, .tile__no, .tile__q { transition: none !important; }
  .tile--q .tile__front::after { animation: none; }
}
html.motion-off .tile__front, html.motion-off .tile__back::after, html.motion-off .tile__no, html.motion-off .tile__q { transition: none !important; }
html.motion-off .tile--q .tile__front::after { animation: none; }

/* Hero: smaller overall, smaller portrait at every size */
.hero__art { min-height: min(82vh, 760px); min-height: min(82svh, 760px); }
@media (min-width: 720px) { :root { --art-width: min(560px, 74vw); } }
@media (min-width: 1024px) { :root { --art-width: clamp(560px, 46vw, 780px); } }
.hero__portrait { width: 46%; max-width: 300px; }
@media (max-width: 719.98px) {
  .hero__portrait { width: 54%; }
  /* the grid starts under the logo and menu so every piece is reachable */
  .hero__art.has-tiles { padding-top: calc(clamp(9rem, 24vh, 15.25rem) * 0.85); }
  .hero__tiles { top: 84px; }
}

/* Larger note text */
.tile__back { font-size: clamp(0.8125rem, min(12.5cqi, 8.5cqb), 1.25rem); padding: clamp(0.6rem, 8cqi, 1.1rem); }
.tile__no { font-size: 0.8125rem; }

/* Wordless cues on note pieces: an index tag, corner ticks, a periodic glint */
.tile--q .tile__front::after { content: none; }
.tile__tag {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 2px 6px; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tile__ticks, .tile__ticks::before, .tile__ticks::after { position: absolute; width: 12px; height: 12px; border-color: #fff; border-style: solid; }
.tile__ticks { right: 7px; bottom: 7px; border-width: 0 1.5px 1.5px 0; }
.tile__ticks::before { content: ""; right: calc(100cqi - 26px); bottom: calc(100cqb - 26px); border-width: 1.5px 0 0 1.5px; }
.tile__ticks::after { content: none; }
.tile--q .tile__front { overflow: hidden; }
.tile--q .tile__front::before {
  content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: tile-glint 7s ease-in-out infinite;
}
.tile--q:nth-child(odd) .tile__front::before { animation-delay: 3.5s; }
@keyframes tile-glint { 0%, 78% { transform: translateX(-60%); } 92%, 100% { transform: translateX(60%); } }
.tile--q.is-hint .tile__back { visibility: visible; transition: none; }
.tile--q.is-hint .tile__back::after { clip-path: inset(0 0 0 0); }
.tile--q.is-hint .tile__front { opacity: 0.25; transform: scale(1.04); }
.tile--q:hover .tile__tag, .tile--q:focus-visible .tile__tag { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tile--q .tile__front::before { animation: none; display: none; } }
html.motion-off .tile--q .tile__front::before { animation: none; display: none; }
/* wider side columns so side notes can be larger */
.hero__tiles { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr 1.3fr; }
.tile__back { font-size: clamp(0.9375rem, min(12.5cqi, 8.5cqb), 1.25rem); }
/* load hint: just an outline flash over the painting */
.tile--q.is-hint .tile__back { visibility: hidden; }
.tile--q.is-hint .tile__front { opacity: 1; transform: none; }
.tile--q::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 1.5px solid #fff; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.tile--q.is-hint::after { opacity: 1; }
/* numbers sit straight on the painting */
.tile__tag { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; top: 9px; left: 10px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
/* the old stickers live inside the note pieces */
.tile__sticker {
  position: absolute; left: 50%; top: 52%; z-index: 1;
  width: min(62cqi, 46cqb, 130px); height: auto;
  transform: translate(-50%, -50%) rotate(-6deg);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1);
  pointer-events: none;
}
.tile--q:nth-of-type(even) .tile__sticker { transform: translate(-50%, -50%) rotate(7deg); }
.tile--q:hover .tile__sticker { transform: translate(-50%, -60%) rotate(0deg) scale(1.1); }
.tile__sticker { width: min(64cqi, 72cqb, 140px); }
@media (max-width: 719.98px) { .hero__art.has-tiles { padding-top: calc(clamp(9rem, 24vh, 15.25rem) * 0.85 + 22px); } }
/* stickers appear with the note, popping in at the top-right of the card */
.tile__back .tile__sticker {
  left: auto; right: clamp(0.5rem, 7cqi, 1rem); top: clamp(0.5rem, 7cqi, 1rem);
  width: min(42cqi, 38cqb, 120px);
  transform: scale(0.4) rotate(-20deg); opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.6, 0.64, 1), opacity 0.3s ease;
}
.tile--q:is(:hover, :focus-visible, [aria-pressed="true"]) .tile__back .tile__sticker { transform: rotate(-6deg); opacity: 1; transition-delay: 0.25s; }
.tile--q:nth-of-type(even):is(:hover, :focus-visible, [aria-pressed="true"]) .tile__back .tile__sticker { transform: rotate(7deg); }
@media (prefers-reduced-motion: reduce) { .tile__back .tile__sticker { transition: none; } }
html.motion-off .tile__back .tile__sticker { transition: none; }
/* short, wide note pieces: text on the left, sticker on the right, sized to fit */
.tile--w .tile__back { justify-content: center; gap: 0.3rem; padding: clamp(0.4rem, 7cqb, 0.9rem) calc(34cqi + 0.5rem) clamp(0.4rem, 7cqb, 0.9rem) clamp(0.5rem, 5cqi, 1rem); font-size: clamp(0.6875rem, min(6.4cqi, 12cqb), 1.0625rem); line-height: 1.25; }
.tile--w .tile__no { font-size: 0.6875rem; }
.tile--w .tile__back .tile__sticker { top: 50%; right: clamp(0.4rem, 4cqi, 0.9rem); width: min(30cqi, 70cqb, 120px); transform: translateY(-50%) scale(0.4) rotate(-20deg); }
.tile--w:is(:hover, :focus-visible, [aria-pressed="true"]) .tile__back .tile__sticker { transform: translateY(-50%) rotate(-6deg); }
.tile--w:nth-of-type(even):is(:hover, :focus-visible, [aria-pressed="true"]) .tile__back .tile__sticker { transform: translateY(-50%) rotate(7deg); }
@media (max-width: 719.98px) {
  .tile--w .tile__no { display: none; }
  .tile--w .tile__back { padding: 0.45rem calc(24cqi + 0.4rem) 0.45rem 0.55rem; font-size: clamp(0.6875rem, min(5.6cqi, 11cqb), 0.875rem); }
  .tile--w .tile__back .tile__sticker { width: min(22cqi, 50cqb); }
}

/* ==========================================================================
   Phones & tablets polish
   ========================================================================== */
/* no rubber-band area showing past the footer */
html { overscroll-behavior-y: none; }

@media (max-width: 719.98px) {
  /* floating header becomes a solid bar, so the logo never sits on top of text */
  html .site-header.is-floating {
    inset: 0 0 auto;
    padding: 0.6rem var(--gutter);
    background: color-mix(in srgb, var(--color-bg, #000) 92%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-line, rgba(255, 255, 255, 0.12));
  }
  html .site-header.is-floating .logo { width: 44px; }
  html .site-header.is-floating .nav__toggle { min-height: 40px; background: transparent; box-shadow: none; }
  html .about .site-header.is-floating { background: rgba(246, 241, 231, 0.94); border-color: rgba(21, 23, 28, 0.12); }
  html .case-study--light .site-header.is-floating { background: rgba(255, 255, 255, 0.94); }


  /* logos: label above, chips below, centred */
  .logos__inner { flex-direction: column; gap: 1.5rem; padding-block: 1.75rem; }
  .logos__group { flex-direction: column; gap: 0.75rem; }
  .logos__label { font-size: 0.875rem; letter-spacing: 0.02em; }
  .logos__chip { min-height: 44px; padding: 0.45rem 0.9rem; }
  .logos__chip img { max-height: 26px; width: auto; }
  .logos__chip--icon { width: 44px; height: 44px; }
  .logos__chip--icon img { width: 26px; }

  /* footer: tighter type and spacing */
  .site-footer__quote p { font-size: 1.25rem; line-height: 1.4; }
  .site-footer__nav ul, .site-footer__social { gap: 0.9rem; }
  .motion-toggle { font-size: 0.875rem; }
}
@media (max-width: 719.98px) {
  /* footer: quote, then two labelled link columns, then a stacked legal row */
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .site-footer__quote { grid-column: 1 / -1; gap: 1rem; }
  .site-footer__mark { width: 34px; flex: none; }
  .site-footer__nav, .site-footer__social { grid-column: auto; }
  .site-footer__nav::before, .site-footer__social::before {
    display: block; margin-bottom: 0.9rem; color: rgba(0, 0, 0, 0.55);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  }
  .site-footer__nav::before { content: "Explore"; }
  .site-footer__social::before { content: "Connect"; }
  .site-footer__nav ul, .site-footer__social { display: grid; gap: 0.75rem; margin: 0; padding: 0; }
  .site-footer__nav a, .site-footer__social a { font-size: 1rem; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 719.98px) { .site-footer__social::before { margin-bottom: 0.15rem; } .site-footer__social li, .site-footer__nav li { line-height: 1.5; } }
/* link columns start where the quote text starts (mark 34px + 1rem gap) */
@media (max-width: 719.98px) {
  .site-footer__inner { grid-template-columns: calc(34px + 1rem) 1fr 1fr; column-gap: 0; }
  .site-footer__nav { grid-column: 2; }
  .site-footer__social { grid-column: 3; }
  .site-footer__legal { padding-left: calc(34px + 1rem); }
}

/* Mobile menu button: hamburger that turns into an X when open */
.nav__toggle:has(.nav__burger) { width: 48px; min-height: 48px; padding: 0; justify-content: center; }
.nav__burger { position: relative; display: block; width: 20px; height: 14px; }
.nav__burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.2s ease, top 0.3s var(--ease-out); }
.nav__burger i:nth-child(1) { top: 0; }
.nav__burger i:nth-child(2) { top: 6px; }
.nav__burger i:nth-child(3) { top: 12px; }
.nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav__burger i { transition: none; } }
html.motion-off .nav__burger i { transition: none; }
@media (max-width: 719.98px) { html .site-header.is-floating .nav__toggle { width: 44px; min-height: 44px; } }


/* ==========================================================================
   Home hero (2026 redesign): sans greeting + Libre Baskerville italic role,
   rotating cut-out photos over patterned tiles, intro + resume on the side.
   ========================================================================== */
:root { --serif: "Libre Baskerville", Georgia, "Times New Roman", serif; --cream: #fbf6e9; }
.hx {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: min(100svh, 940px);
  padding-top: clamp(7.5rem, 22vh, 12rem);
  overflow: hidden;
  isolation: isolate;
}
.hx__title { position: relative; z-index: 1; margin: 0; text-align: center; line-height: 1; }
.hx__hi { display: block; color: #fff; font-size: clamp(1.5rem, 1rem + 1.9vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; }
.hx__role {
  display: block;
  margin-top: 0.15em;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(3rem, 1.4rem + 6.4vw, 6.25rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hx__dot { color: var(--color-accent); }

.hx__stage { position: relative; z-index: 2; width: min(100%, 760px); margin-top: clamp(-5rem, -6vw, -2.5rem); align-self: end; }
.hx__tiles { position: absolute; left: 50%; bottom: 0; z-index: -1; width: min(86%, 640px); height: auto; transform: translateX(-50%); }
.hx__photos { position: relative; aspect-ratio: 940 / 618; }
.hx__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  opacity: 0; transform: translateY(8px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hx__photo.is-on { opacity: 1; transform: none; }

.hx__side { position: relative; z-index: 3; width: min(100% - 2 * var(--gutter), 22rem); padding: 1.5rem 0 3rem; text-align: center; }
.hx__side p { margin: 0; color: #f2f2f2; font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem); line-height: 1.45; }
.hx__side .button { margin-top: 1.25rem; }

@media (min-width: 1024px) {
  .hx { grid-template-rows: auto 1fr; padding-bottom: 0; }
  .hx__stage { grid-row: 2; }
  .hx__side {
    position: absolute; left: calc(50% + min(26vw, 360px)); top: 58%;
    width: 14.5rem; padding: 0; text-align: left;
  }
}
@media (max-width: 1023.98px) {
  .hx__stage { margin-top: 0.75rem; }
  .hx { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .hx__photo { transition: none; } }
html.motion-off .hx__photo { transition: none; }

/* Serif accents across the site, matching the hero */
.section__title em, .ab-title em, .cs-h2 em, .band-title em, .site-footer__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) { .hx__stage { margin-top: clamp(-7rem, -7.5vw, -3rem); } }
@media (min-width: 1024px) and (max-width: 1239.98px) {
  .hx__side { position: relative; left: auto; top: auto; width: min(100% - 2 * var(--gutter), 24rem); padding: 1.5rem 0 3rem; text-align: center; }
  .hx { grid-template-rows: auto auto auto; }
}
@media (min-width: 1240px) { .hx__side { left: calc(50% + 345px); } }

/* Hero: Figma proportions (1280 frame: 44px greeting, 87px role) */
.hx__hi { font-family: "Inter", var(--font-sans); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; }
.hx__role { font-size: clamp(2.75rem, 6.8vw, 5.5rem); margin-top: 0.05em; }
.hx__stage { width: min(100%, 700px); }
.hx__tiles { width: min(84%, 590px); }
@media (min-width: 1024px) { .hx__stage { margin-top: clamp(-4.5rem, -3.6vw, -2rem); } }
/* flip-book: hard cuts between frames, no easing */
.hx__photo, .hx__photo.is-on { transition: none; transform: none; }

/* Titles mixing sans + serif: the sans part is semibold Inter */
.section__title, .ab-title, .cs-h2:has(em), .band-title:has(em) { font-family: "Inter", var(--font-sans); font-weight: 600; letter-spacing: -0.02em; }
.section__title em, .ab-title em, .cs-h2 em, .band-title em { font-weight: 400; }

/* Nav: no rounded container anywhere */
html .site-header .nav__list,
html .site-header.is-floating .nav__list,
html :is(.about, .case-study--light) .site-header .nav__list {
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html .site-header .nav__list a[aria-current],
html :is(.case-study--light, .about) .site-header .nav__list a[aria-current] {
  background: none; color: inherit;
  text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 7px;
}
html .site-header .nav__list a:hover { background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
html .site-header .nav__toggle { border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* floating header on wide screens: a quiet full-width bar so links stay readable */
@media (min-width: 720px) {
  html .site-header.is-floating {
    inset: 0 0 auto; padding: 0.5rem var(--gutter);
    background: color-mix(in srgb, var(--color-bg, #000) 88%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  html .about .site-header.is-floating { background: rgba(246, 241, 231, 0.92); }
  html .case-study--light .site-header.is-floating { background: rgba(255, 255, 255, 0.92); }
}
/* mobile dropdown keeps a panel so it's readable over content */
@media (max-width: 719.98px) {
  html .js .site-header .nav__list { background: rgba(20, 20, 20, 0.96); border-radius: 16px; }
  html :is(.about, .case-study--light) .js .site-header .nav__list, html .js :is(.about, .case-study--light) .site-header .nav__list { background: rgba(255, 255, 255, 0.97); }
}
.hx__stage { width: min(100%, 850px); }
.hx__tiles { width: min(72%, 610px); }
@media (min-width: 1024px) { .hx__stage { margin-top: clamp(-6rem, -5vw, -2.5rem); } }
.hx { padding-top: calc(clamp(7.5rem, 22vh, 12rem) + 28px); }
.hx__stage { width: min(100%, 800px); }
.hx__tiles { width: min(78%, 620px); bottom: -9%; }
@media (min-width: 1024px) { .hx__stage { margin-top: clamp(-7rem, -6vw, -3rem); } }
.hx__tiles { bottom: 6%; width: min(80%, 630px); }
@media (min-width: 1024px) { .hx__stage { margin-top: clamp(-9.5rem, -9vw, -3.5rem); } }
.hx__stage { width: min(100%, 850px); }
.hx__tiles { bottom: -3%; width: min(76%, 640px); }
.hx__tiles { bottom: 0; }
.hx__dot { color: #ff8cc9; }
.hx__role { color: #fffceb; }
.hx__stage { width: min(100%, 850px, 66vw); }
@media (max-width: 1023.98px) { .hx__stage { width: min(100%, 700px); } }
/* The photo sits right under the title with a constant, slight overlap at every size
   (head starts ~2.9% of the stage width below the stage top) */
.hx { min-height: 0; grid-template-rows: auto auto auto; }
.hx__stage, .hx__stage:not(#_) { align-self: start; margin-top: calc(-0.0286 * min(850px, 66vw) - 20px); }
@media (max-width: 1023.98px) { .hx__stage:not(#_) { margin-top: calc(-0.0286 * min(700px, 100vw) - 10px); } }
/* Hero ~12% smaller (paragraph unchanged). Photo canvas is 1000×555; head starts 2.2% of width down */
.hx__hi { font-size: clamp(1.375rem, 3vw, 2.4rem); }
.hx__role { font-size: clamp(2.5rem, 6vw, 4.85rem); }
.hx { padding-top: calc(clamp(7rem, 20vh, 11rem) + 20px); }
.hx__stage, .hx__stage:not(#_) { width: min(100%, 890px, 70vw); margin-top: calc(-0.022 * min(890px, 70vw) - 16px); }
.hx__tiles { width: 63%; bottom: 0; }
@media (max-width: 1023.98px) { .hx__stage:not(#_) { width: min(100%, 720px); margin-top: calc(-0.022 * min(720px, 100vw) - 8px); } .hx__tiles { width: 66%; } }
@media (min-width: 1240px) { .hx__side { left: calc(50% + 320px); } }

/* Every page title: Inter Semi Bold with a Libre Baskerville italic accent */
.cs-hero__title, .hx__hi, .section__title, .ab-title, .cs-h2, .band-title, .zl-big, .beyond .section__title {
  font-family: "Inter", var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}
:is(.cs-hero__title, .section__title, .ab-title, .cs-h2, .band-title, .zl-big) em {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
/* hero side text sits above the photos' reach */
@media (min-width: 1240px) { .hx__side { top: 34%; left: calc(50% + 300px); } }
/* Footer quote: Inter, only "intention" and "experience" in Libre Baskerville italic */
html .site-footer__quote p { font-family: "Inter", var(--font-sans); font-style: normal; font-weight: 500; letter-spacing: -0.01em; }
html .site-footer__quote p em { font-family: "Libre Baskerville", Georgia, serif; font-style: italic; font-weight: 400; }
@media (min-width: 1240px) { .hx__side { top: 41%; left: calc(50% + 310px); } }

/* Hero: head overlaps the bottom of "Product Designer" slightly at every size (head starts 2.2% down the stage) */
.hx__stage:not(#_) { margin-top: calc(-0.022 * min(890px, 70vw) - clamp(26px, 2.7vw, 40px)); }
@media (max-width: 1023.98px) { .hx__stage:not(#_) { margin-top: calc(-0.022 * min(720px, 100vw) - clamp(18px, 3vw, 28px)); } }
/* paragraph + resume sit lower, beside the photo */
@media (min-width: 1240px) { .hx__side { top: auto; bottom: 18%; } }

/* Titles: Inter Medium everywhere */
.hx__hi, .section__title, .ab-title, .cs-hero__title, .cs-h2, .band-title, .zl-big { font-weight: 500 !important; }
/* Project pages: titles stay plain sans (no serif accents) */
html .case-study :is(.cs-hero__title, .cs-h2, .band-title, .band h2, .zl-big) em { font-family: inherit !important; font-style: normal !important; font-weight: inherit !important; letter-spacing: inherit; }

/* ==========================================================================
   ONE title system for the whole site
   - every h1/h2 title: Inter Medium (500)
   - Home / About / Beyond accents: Libre Baskerville italic at a matching "medium" weight, no highlight
   - project pages: plain Inter (no serif accents)
   ========================================================================== */
html :is(.hx__hi, .section__title, .ab-title, .ab-intro__title, .cs-hero__title, .cs-h2, .cs-h3, .band-title, .band h2, .zl-big, .beyond-card__title, .sol-head h3) {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
}
/* sizes: page titles one scale, section titles one scale */
html :is(.cs-hero__title) { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem) !important; line-height: 1.08; }
html :is(.section__title, .ab-title, .cs-h2, .band-title, .zl-big) { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem) !important; line-height: 1.15; }
html :is(.cs-h3, .sol-head h3) { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem) !important; line-height: 1.2; }
/* serif accents (Home, About, Beyond): Libre Baskerville only ships italic in one weight,
   so a hairline stroke brings it to medium to sit with Inter 500 */
html :is(.hx__role, .section__title em, .ab-title em, .ab-title mark, .ab-intro__title mark, .ab-intro__title em, .site-footer__quote em) {
  font-family: "Libre Baskerville", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  -webkit-text-stroke: 0.022em currentColor;
  background: none !important;
  padding: 0 !important;
  color: inherit;
}
.hx__role { color: #fffceb !important; }
/* project pages: no serif inside titles */
html .case-study :is(.cs-hero__title, .cs-h2, .cs-h3, .band-title, .band h2, .zl-big) :is(em, span, mark) {
  font-family: inherit !important; font-style: normal !important; font-weight: inherit !important; -webkit-text-stroke: 0; background: none;
}

/* Hero side text: wraps with the screen, sits lower beside the photo */
@media (min-width: 1240px) {
  .hx__side { width: clamp(13rem, 17vw, 17rem); bottom: 9%; left: calc(50% + min(24vw, 330px)); }
  .hx__side p { text-wrap: pretty; }
}
/* photo stage a touch narrower so the paragraph sits fully beside the flared arm */
@media (min-width: 1024px) {
  .hx__stage:not(#_) { width: min(800px, 62vw); margin-top: calc(-0.022 * min(800px, 62vw) - clamp(26px, 2.7vw, 40px)); }
}
@media (min-width: 1240px) {
  .hx__side { left: calc(50% + min(400px, 31vw) + 18px); width: clamp(11.5rem, 15vw, 16rem); bottom: 12%; }
}
/* paragraph closer to the photo */
@media (min-width: 1240px) { .hx__side { left: calc(50% + min(330px, 25vw)); width: clamp(11.5rem, 14vw, 15rem); bottom: 14%; } }
/* paragraph tucked in beside the photo, above the flared hand (stage height = 0.55 × width) */
@media (min-width: 1240px) {
  .hx__side { left: calc(50% + min(400px, 31vw) - 30px); bottom: calc(min(800px, 62vw) * 0.55 * 0.36); width: clamp(11.5rem, 14vw, 15rem); }
}

/* Zillow keeps its original typography (Libre Baskerville display headings) */
html body.zillow-page :is(.cs-hero__title, .band-title, .band h2, .zl-big, .sol-head h3) {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: normal;
}
html body.zillow-page .cs-hero__title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem) !important; line-height: 1.2; }
html body.zillow-page :is(.band-title, .band h2) { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) !important; line-height: 1.2; }
html body.zillow-page .zl-big { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem) !important; line-height: 1.25; }
html body.zillow-page .sol-head h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem) !important; }
html body.zillow-page .zl-big .zl-hl { font-family: var(--font-display) !important; font-style: italic !important; font-weight: 400 !important; }
/* hero fills the screen; title + photo sit at the bottom so the photo meets the fold */
@media (min-width: 1024px) {
  .hx { min-height: 100svh; align-content: end; padding-top: 8rem; }
  .hx__side { bottom: calc(min(800px, 62vw) * 0.55 * 0.30); }
}
/* hero content nudged up from the fold */
@media (min-width: 1024px) { .hx { padding-bottom: clamp(2.5rem, 7vh, 5rem); } }
/* hero zoomed out: smaller photo + tile background */
@media (min-width: 1024px) {
  .hx__stage:not(#_) { width: min(700px, 54vw); margin-top: calc(-0.022 * min(700px, 54vw) - clamp(24px, 2.4vw, 36px)); }
  .hx__tiles { width: 60%; }
}
@media (min-width: 1240px) {
  .hx__side { left: calc(50% + min(350px, 27vw) - 20px); bottom: calc(min(700px, 54vw) * 0.55 * 0.36 + clamp(2.5rem, 7vh, 5rem)); }
}
@media (max-width: 1023.98px) {
  .hx__stage:not(#_) { width: min(88%, 620px); margin-top: calc(-0.022 * min(88vw, 620px) - clamp(16px, 2.6vw, 24px)); }
  .hx__tiles { width: 62%; }
}
@media (min-width: 1240px) { .hx__side { bottom: calc(min(700px, 54vw) * 0.55 * 0.22 + clamp(2.5rem, 7vh, 5rem)); } }

/* Hero proportions from the Figma frame: photo shows to mid-thigh, tiles sit behind from the shoulders down,
   tiles ≈ 69% of the stage width, title ≈ stage-sized. --hw = stage width. */
.hx { --hw: min(660px, 50vw); }
.hx__stage:not(#_) { width: var(--hw); margin-top: calc(-0.022 * var(--hw) - clamp(22px, 2.2vw, 34px)); }
.hx__photos { aspect-ratio: 940 / 618 !important; }
.hx__tiles:not(#_) { width: 69%; top: calc(var(--hw) * 0.139); bottom: auto; }
@media (min-width: 1240px) {
  .hx__side:not(#_) { left: calc(50% + var(--hw) * 0.344 + 2.4vw); bottom: calc(var(--hw) * 0.1 + clamp(2.5rem, 7vh, 5rem)); width: clamp(11rem, 13vw, 14rem); }
}
@media (max-width: 1023.98px) { .hx { --hw: min(88vw, 560px); } }
.hx { --hw: min(850px, 70vw); }
@media (max-width: 1023.98px) { .hx { --hw: min(94vw, 600px); } }
@media (min-width: 1100px) {
  .hx__side:not(#_) { position: absolute; top: auto; text-align: left; padding: 0; left: calc(50% + var(--hw) * 0.344 + 2.4vw); bottom: calc(var(--hw) * 0.1 + clamp(2.5rem, 7vh, 5rem)); width: clamp(11rem, 14vw, 14rem); }
}
/* match the Figma frame: composition sits on the fold, tiles run off the bottom edge */
@media (min-width: 1024px) {
  .hx:not(#_) { padding-bottom: 0; }
  .hx__tiles:not(#_) { top: calc(var(--hw) * 0.139); width: 69%; height: auto; }
}
.hx__side .button { white-space: nowrap; }
@media (min-width: 1100px) { .hx__side:not(#_) { width: clamp(12.5rem, 16vw, 15rem); bottom: calc(var(--hw) * 0.13); } }
/* tile background repeats down to the bottom of the hero */
.hx__tiles:not(#_) { display: none; }
.hx__stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 0; width: 69%;
  top: calc(var(--hw) * 0.139); transform: translateX(-50%);
  background: url("../assets/img/hero/tiles-repeat.webp?v=4") top center / 100% auto repeat-y;
}
