/* jasmine oh — chrome + black portfolio
   light version backed up at styles-light.css */

:root {
  --bg: #060607;
  --ink: #c2c2c9;
  --ink-soft: #8b8b93;
  --ink-faint: #5c5c64;
  --line: rgba(255, 255, 255, 0.10);
  --card: #1c1c21;
  --card-border: rgba(255, 255, 255, 0.12);
  --mono: "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --chrome-solid: #d4d4da;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg);
  /* .hero and .after-hero are full-bleed at 100vw, which counts the scrollbar
     on classic-scrollbar systems and forces a sideways scroll. clip (not
     hidden) stops that without creating a scroll container, so the sticky
     nav and pinned hero keep working. */
  overflow-x: clip;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(32px, 6vw, 88px); }

/* chrome text — solid */
.emboss {
  color: var(--chrome-solid);
  letter-spacing: 0.14em;
}

/* nav — small caps, wide tracking, like the reference plate */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
nav .logo {
  font-family: "Quicksand", var(--mono);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
nav .links a {
  font-family: "Quicksand", var(--mono);
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 12.5px;
  margin-left: 28px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav .links a:hover, nav .links a.active { color: var(--ink); }

/* hero — full viewport, pinned for parallax */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  margin-top: -97px;
  height: 100vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-top: 97px;
  overflow: hidden;
  z-index: 0;
}

/* content that slides over the pinned hero — soft top edge */
.after-hero {
  position: relative;
  z-index: 1;
  background: var(--bg);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 160px max(clamp(32px, 6vw, 88px), calc(50vw - 600px)) 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 130px);
  mask-image: linear-gradient(180deg, transparent 0, #000 130px);
}

.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74vmin;
  height: 74vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(6, 6, 7, 0) 0%,
    rgba(6, 6, 7, 0.9) 6%,
    rgba(6, 6, 7, 1) 11%,
    rgba(185, 190, 205, 0.50) 42%,
    rgba(215, 220, 232, 0.22) 60%,
    transparent 74%
  );
  filter: blur(28px);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.07); opacity: 1; }
}

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

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}

.edge-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.edge-label.left { left: 0; }
.edge-label.right { right: 0; }

/* hero — statement left, portrait right, both pinned behind the work cards */
.hero-inner {
  width: 100%;
  /* same box as .wrap, so the hero lines up with the nav */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(32px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  align-items: end;
  gap: clamp(24px, 3vw, 44px);
  height: 100%;
}

.hero-copy {
  align-self: center;
  padding-bottom: clamp(40px, 9vh, 96px);
  transition: opacity 0.15s linear;
}

.hero-links {
  margin-bottom: 18px;
  /* Inter Tight rather than Quicksand — Quicksand is a rounded geometric and
     its 600 reads almost light at this size; Inter Tight 600 actually looks it */
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-links a:hover { color: #80B9FF; }
.hero-links .dot { color: var(--ink-soft); margin: 0 10px; }

.hero-sub {
  text-wrap: pretty;
  max-width: 30em;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.hero-portrait {
  align-self: center;
  justify-self: center;
  padding-bottom: clamp(40px, 9vh, 96px);
  transition: opacity 0.15s linear;
}
/* the circle catches a chrome rim-light that tracks the cursor, and leans
   very slightly toward it — --ang/--mx/--my/--rx/--ry are set in index.html */
.hero-portrait { perspective: 900px; }
.portrait-ring {
  position: relative;
  width: min(26vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.portrait-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
/* rim */
.portrait-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from var(--ang, 0deg),
    rgba(255,255,255,0) 0deg,
    rgba(255,255,255,0.85) 26deg,
    rgba(212,212,218,0.35) 70deg,
    rgba(255,255,255,0) 150deg,
    rgba(255,255,255,0) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  opacity: 0.4;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
/* soft light travelling across the photo */
.portrait-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.18), rgba(255,255,255,0) 58%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.hero-portrait:hover .portrait-ring::after { opacity: 1; }
.hero-portrait:hover .portrait-sheen { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .portrait-ring { transform: none !important; transition: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 24px; }
  .portrait-ring { width: min(28vw, 230px); }
}

/* stack on phones — circle above the statement, both centred */
@media (max-width: 680px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 30px;
  }
  .hero-copy {
    order: 2;
    align-self: auto;
    padding-bottom: 56px;
    text-align: center;
  }
  .hero h1 { font-size: clamp(29px, 7.6vw, 40px); }
  .hero-sub { max-width: none; margin-top: 18px; margin-inline: auto; }
  .hero-portrait {
    order: 1;
    align-self: auto;
    padding-bottom: 0;
  }
  .portrait-ring { width: min(42vw, 170px); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--ink-faint);
  text-decoration: none;
  font-family: "Quicksand", var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-hint .scroll-label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: none;
}
.scroll-hint .arrow { animation: bob 2.2s ease-in-out infinite; font-size: 14px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint .arrow { animation: none; }
}
/* the about-page CTA shares the home headline's scale so the two pages
   speak at the same volume */
.hero h1,
.about-cta h2 {
  /* balance evens the ragged edge; the nbsp in the markup keeps the last
     line from collapsing to a single orphan word */
  text-wrap: balance;
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.018em;
  color: #f4f4f7;
  margin-bottom: 0;
}
/* "Oh" mark — liquid chrome O (canvas) + type h */

.hero p.tagline {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 32px;
}

/* case study cards — black plates with hairline chrome edges */
.cards { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-bottom: 100px; }
.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  width: 100%;
  /* mirrors .wrap's content box — .after-hero is full-bleed with its own
     padding, so the card can't just inherit it */
  max-width: calc(min(1200px, 100vw) - 2 * clamp(32px, 6vw, 88px));
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 40%), var(--card);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.35s ease;
}
/* hover deepens the shadow only — surface colour and position stay put */
.card:hover {
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.72);
}
.card .card-text {
  order: 2;
  min-width: 0;
  padding: 26px 34px 30px;
  display: flex;
  flex-direction: column;
  /* spacing is set per element so title + description group together and the
     metadata sits apart — a uniform gap made all three lines read as equals */
  gap: 0;
}
.card .thumb {
  order: 1;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  /* same plate colour as .thumb-plate so all three cards read alike */
  background: #35353a;
}
.card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
/* full-bleed thumb: scales from the centre and re-crops inside the frame */
.card:hover .thumb img { transform: scale(1.035); }
/* app screenshot floated on a plate, sitting on the bottom edge */
.card .thumb.thumb-plate {
  /* a step above the card body so the plate reads as its own surface */
  background: #35353a;
  aspect-ratio: auto;
  display: block;
  padding: 56px 72px 0;
}
.card .thumb.thumb-plate img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
  border-radius: 12px 12px 0 0;
}
/* the plated screenshot is an object with deliberate margins, so it grows from
   its seated bottom edge rather than the centre — keeps it planted on the plate */
.card:hover .thumb.thumb-plate img {
  transform: scale(1.022);
  transform-origin: bottom center;
}

@media (prefers-reduced-motion: reduce) {
  .card .thumb img { transition: none; }
  .card:hover .thumb img,
  .card:hover .thumb.thumb-plate img { transform: none; }
}
.card .thumb .placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
/* year on the left, surface + skills on the right */
.card .card-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: 0 0 16px;
}
.card .cl-tags { text-align: right; }
@media (max-width: 560px) {
  .card .card-label { flex-direction: column; gap: 4px; }
  .card .cl-tags { text-align: left; }
}
.card h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: #f2f2f5;
}
.card p.outcome {
  text-wrap: pretty;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
}
.card .card-meta {
  color: var(--ink-faint);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0;
}
.card .tags { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  background: rgba(255,255,255,0.03);
}

/* case study pages */
.cs-hero { padding: 100px 0 50px; }
.cs-hero .num { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.35em; text-transform: uppercase; }
.cs-hero h1 {
  text-wrap: balance;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 34px;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.cs-hero p.oneliner { color: var(--ink-soft); max-width: none; font-size: 20px; line-height: 1.6; }

.meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 44px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}
.meta h3 { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; margin-bottom: 6px; }
.meta > div { flex: 1 1 0; min-width: 0; }
.meta > div:nth-child(3) { flex: 1.7 1 0; }   /* scope needs the most room */
.meta > div:nth-child(4) { flex: 1.25 1 0; }  /* tools next */
.meta p { font-size: 15px; color: var(--ink); }
@media (max-width: 1000px) {
  .meta { flex-wrap: wrap; gap: 28px 40px; }
  .meta > div,
  .meta > div:nth-child(3),
  .meta > div:nth-child(4) { flex: 1 1 240px; }
}

.cs-section { margin-bottom: 130px; }
.cs-section h2 {
  font-size: 17px;
  letter-spacing: 0.01em;
  color: #B1D0FF;
  font-weight: 600;
  margin-bottom: 20px;
}
.cs-section p { text-wrap: pretty; max-width: 720px; margin-bottom: 20px; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.cs-section p.lede {
  text-wrap: balance;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.35;
  font-weight: 500;
  color: #f2f2f5;
  max-width: 820px;
  margin-bottom: 26px;
}
.cs-section p strong { color: #e6e6eb; font-weight: 600; }
.cs-list {
  list-style: none;
  max-width: 720px;
  margin: -6px 0 20px;
  padding: 0;
}
.cs-list li {
  text-wrap: pretty;
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.cs-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* vision diagram — phone media with anchored ingredient callouts */
.vision-diagram {
  width: 100%;
  max-width: none;
  position: relative;
  aspect-ratio: 1440 / 906;
  margin: 52px 0 40px;
  background: #141417;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
  overflow: hidden;
}
.vision-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 440px;
  aspect-ratio: 540 / 1040;
  width: auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0c;
  z-index: 1;
}
.vision-phone video, .vision-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* connector lines — start at the callout, land on the subject in frame */
.vline {
  position: absolute;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 2;
}
.vline::after {
  content: "";
  position: absolute;
  top: -2.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
}
.v-horse  { top: calc(50% - 120px); left: calc(50% - 250px); width: 170px; }
.v-jacket { top: calc(50% + 142px); left: calc(50% - 290px); width: 300px; }
.v-scene  { top: calc(50% - 192px);  left: calc(50% + 40px);  width: 210px; }
.v-lady   { top: calc(50% + 64px); left: calc(50% + 30px);  width: 260px; }
.v-horse::after, .v-jacket::after { right: -3px; }
.v-scene::after, .v-lady::after { left: -3px; }

/* callouts */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}
.chip img {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.chip strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f2f2f5;
  line-height: 1.3;
}
.chip span {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
  display: block;
  max-width: 120px;
}
.c-horse, .c-jacket { flex-direction: row-reverse; text-align: right; }
.c-horse span, .c-jacket span { margin-left: auto; }
.c-horse  { top: calc(50% - 168px); right: calc(50% + 250px); }
.c-jacket { top: calc(50% + 94px); right: calc(50% + 290px); }
.c-scene  { top: calc(50% - 240px);  left: calc(50% + 250px); }
.c-lady   { top: calc(50% + 16px); left: calc(50% + 290px); }

@media (max-width: 1360px) {
  .vision-diagram {
    position: static;
    width: 100%;
    margin-left: 0;
    height: auto;
    display: grid;
    grid-template-columns: 1fr minmax(0, 256px) 1fr;
    column-gap: 28px;
    row-gap: 40px;
    max-width: none;
    aspect-ratio: 1440 / 906;
    align-content: center;
    margin: 52px 0 40px;
    padding: 36px 24px;
    align-items: center;
    justify-items: center;
  }
  .vision-phone {
    position: static;
    transform: none;
    width: 100%;
    max-width: 256px;
    aspect-ratio: 540 / 1040;
    height: auto;
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .vline { display: none; }
  .chip {
    position: static;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .chip strong, .chip span { white-space: normal; }
  .chip img { width: 84px; height: 84px; }
  .c-horse  { grid-column: 1; grid-row: 1; align-self: end; }
  .c-jacket { grid-column: 1; grid-row: 2; align-self: start; }
  .c-scene  { grid-column: 3; grid-row: 1; align-self: end; }
  .c-lady   { grid-column: 3; grid-row: 2; align-self: start; }
}

@media (max-width: 700px) {
  .vision-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: auto;
    row-gap: 32px;
    column-gap: 20px;
    padding: 32px 20px;
  }
  .vision-phone { grid-column: 1 / -1; grid-row: auto; max-width: 240px; justify-self: center; }
  .c-horse, .c-jacket, .c-scene, .c-lady { grid-column: auto; grid-row: auto; align-self: start; }
  .chip img { width: 72px; height: 72px; }
}

/* scoping table — intro left, capability matrix right */
.scope-layout {
  display: block;
  margin: 36px 0 40px;
}
.scope-intro { max-width: 720px; margin-bottom: 44px; }
.cs-section .scope-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;
  margin-bottom: 18px;
}
.scope-table {
  width: 100%;
  max-width: none;
  background: #141417;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
  aspect-ratio: 1440 / 780;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 48px;
}
.sc-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  gap: 22px;
  padding: 18px 0;
  align-items: start;
}
.sc-head {
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}
.sc-label {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}
.sc-cell {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.sc-cell .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
}
.dot.g { background: radial-gradient(circle at 35% 30%, #5fdc6a, #16a02a); }
.dot.y { background: radial-gradient(circle at 35% 30%, #ffe07a, #f0b400); }
.dot.x { background: none; }
.dot.x::before,
.dot.x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2.5px;
  background: #e03b3b;
  border-radius: 2px;
}
.dot.x::before { transform: translate(-50%, -50%) rotate(45deg); }
.dot.x::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 900px) {
  .scope-intro { margin-bottom: 28px; }
  .scope-table { aspect-ratio: auto; padding: 20px 22px 24px; }
  .sc-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .sc-head { display: none; }
}

/* creator feedback — three equal blocks with numbered badges */
.feedback-row {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 40px;
  align-items: stretch;
  align-content: center;
  gap: 40px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.feedback-row.fb-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .feedback-row.fb-two { grid-template-columns: 1fr; } }
.fb {
  background: #1c1c20;
  border-radius: 16px;
  padding: 28px 26px 32px;
  height: 100%;
}
.fb-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #33333a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 18px;
}
.fb h3 {
  text-wrap: balance;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
}
.cs-section .fb p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: none;
}
@media (max-width: 820px) {
  .feedback-row {
    grid-template-columns: 1fr;
    gap: 28px;
    aspect-ratio: auto;
    padding: 28px 22px;
  }
}

/* control spectrum — gradient scale with three option cards */
.spectrum {
  width: 100%;
  max-width: none;
  margin: 52px 0 44px;
  padding: 0;
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spec-scale {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.spec-lo { color: #4b7bff; }
.spec-hi { color: #d34bff; }
.spec-bar {
  height: 2px;
  background: linear-gradient(90deg, #4b7bff, #d34bff);
  position: relative;
  margin-bottom: 40px;
}
.spec-bar::before,
.spec-bar::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid;
  border-right: 2px solid;
}
.spec-bar::before { left: 0; color: #4b7bff; transform: rotate(-135deg); }
.spec-bar::after { right: 0; color: #d34bff; transform: rotate(45deg); }
.spec-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}
.spec-card {
  position: relative;
  background: #1c1c20;
  border-radius: 16px;
  padding: 28px 26px 32px;
}
.spec-card h3 {
  text-wrap: balance;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 12px;
}
.cs-section .spec-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: none;
}
.spec-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  text-align: center;
  font-family: "Caveat", "Figma Hand", cursive;
  font-size: 21px;
  color: #d34bff;
}
@media (max-width: 900px) {
  .spectrum { padding: 0 0 34px; }
  .spec-cards { grid-template-columns: 1fr; gap: 18px; }
  .spec-note { position: static; display: block; margin-top: 10px; text-align: center; }
}

/* paired before/after clips on a shared plate */
.pair-row {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-content: center;
  gap: 0 40px;
  aspect-ratio: 1440 / 780;
  margin: 52px 0 40px;
  padding: 0 40px;
  background: #141417;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
}
.pair {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
}
.pair video,
.pair > img {
  align-self: end;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #101013;
}
/* dark UI screenshots sit on a dark plate, so their edges disappear. a soft
   shadow gives depth and a hairline ring redraws the edge — on dark-on-dark
   the shadow alone isn't enough to separate them. the phone pairs are
   excluded because those already carry their own device frame. */
.pair-row:not(.phone-pair) .pair > img,
.pair-row:not(.phone-pair) .pair > video {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.07);
}
.pair-label {
  text-align: center;
  align-self: end;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}
.pair figcaption {
  align-self: start;
  text-wrap: balance;
  text-align: center;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.pair figcaption strong { color: #ffffff; font-weight: 600; }

/* ── iPhone frame overlay ─────────────────────────────────────────
   The frame PNG is 995x2048 with a transparent screen cut out at
   left 4.121%, top 1.758%, width 91.759%, height 96.484%.
   The .phone wrapper sizes to the frame; the media is absolutely
   positioned into the screen rect, so it scales with the frame. */
.phone {
  position: relative;
  display: block;
  aspect-ratio: 995 / 2048;
  margin: 0 auto;
}
.phone > video,
.phone > img:not(.phone-bezel) {
  position: absolute;
  left: 3.7%;
  top: 1.4%;
  width: 92.6%;
  height: 97.2%;
  object-fit: cover;
  border-radius: 7.5% / 3.4%;
  background: #000;
  display: block;
}
.phone > video[controls] { z-index: 3; }
.phone .phone-bezel {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 0;
}

/* phone-pair rows now size the frame, not the raw clip */
.pair-row.phone-pair .phone { height: 74%; width: auto; }
/* clips that already have a device frame baked in */
.pair-row.phone-pair.no-frame video {
  display: block;
  width: auto;
  height: 82%;
  border-radius: 48px;
  overflow: hidden;
}
@media (max-width: 820px) {
  .pair-row.phone-pair.no-frame video { height: auto; width: 100%; max-width: 240px; margin: 0 auto; }
}
/* vibes: vision clips render bare (no device frame) */
.remix video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 924;
  object-fit: cover;
  border-radius: 14px;
  background: #101013;
}
@media (max-width: 820px) {
  .pair-row.phone-pair .phone { height: auto; width: 100%; max-width: 240px; }
}

/* phone-ratio clips on a shared plate */
.pair-row.phone-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 130px;
  aspect-ratio: 1440 / 906;
  padding: 0 40px;
}
.pair-row.phone-pair .pair {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
/* base .pair uses subgrid + align-self:start; in a flex column that pins the
   caption to the left edge, so re-center it and tighten the gap */
.pair-row.phone-pair figcaption {
  align-self: center;
  text-align: center;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .pair-row.phone-pair {
    flex-direction: column;
    aspect-ratio: auto;
    gap: 32px;
    padding: 32px 20px;
  }

}
@media (max-width: 820px) {
  .pair-row {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
    gap: 28px;
    padding: 28px 20px;
  }
  .pair { grid-template-rows: none; grid-row: auto; display: block; }
  .pair figcaption { font-size: 13px; margin-top: 12px; }
}

/* remix trio — three phone-ratio clips side by side */
.remix-row {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  aspect-ratio: 1440 / 906;
  margin: 52px 0 40px;
  padding: 0 24px;
  background: #141417;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
}
.remix { position: relative; margin: 0; width: 228px; }
.remix figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
@media (max-width: 720px) {
  .remix-row { aspect-ratio: auto; gap: 10px; padding: 28px 14px; }
  .remix { width: auto; flex: 1; }
  .remix figcaption { font-size: 12px; margin-top: 10px; }
}

/* slide figures — framed like polished plates on black */
/* text left, diagram right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 80px;
  margin: 8px 0 24px;
}
.split-text .lede { margin-bottom: 22px; }
.split-text p:last-child { margin-bottom: 0; }
.split-media img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media img { max-width: 560px; margin: 0 auto; }
}

figure.slide.bare {
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 24px 0 8px;
}
figure.slide.bare img { max-width: 880px; margin: 0 auto; }
figure.slide {
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
  background: #141417;
}
figure.slide img,
figure.slide video { display: block; width: 100%; }
figure.slide video, .pair video, .vision-phone video { background: #101013; }
video[data-poster] { background: #101013; }
/* keep native controls from breaking the rounded corners */
video::-webkit-media-controls-panel { border-radius: 0 0 12px 12px; }

/* note below media */
.cs-section .media-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 780px;
  margin: -14px auto 20px;
  text-align: center;
}
@media (max-width: 1080px) {
  .cs-section .media-note { font-size: 13px; }
}
.cs-section .media-note strong {
  font-weight: 600;
  color: inherit;
}
figure.slide .placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
figure.slide figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.08em;
}

/* impact numbers — chrome */
.impact {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  margin: 32px 0;
}
.impact .stat .n { font-size: 30px; letter-spacing: 0.08em; }
.impact .stat .l { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px; }

/* prev / next */
.cs-nav {
  display: flex;
  justify-content: space-between;
  padding: 48px 0 90px;
  border-top: 1px solid var(--line);
}
.cs-nav a { color: var(--ink-soft); text-decoration: none; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.cs-nav a:hover { color: #e6e6eb; }

/* about — centered avatar + bio */
.about-center {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 60px;
}
.about-center .avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 28px;
}
.about-center .contact-line { margin-top: 18px; }
.about-center .contact-line a {
  color: var(--ink-faint);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.about-center .contact-line a:hover { color: var(--ink); }
.about-center .dot { color: var(--ink-faint); margin: 0 10px; }

/* page intro — reuses .hero-links for identical type and hover */
.about-cta {
  text-align: center;
  /* equal air above and below — the first .tl-label's top margin is zeroed
     below so this padding is the whole gap on both sides */
  padding: 90px 0;
}
/* full container width, matching the work experience rows below */
.about-cta h2 { margin: 0; max-width: none; }

/* timeline — work experience */
.timeline { padding: 0 0 100px; }
/* the intro's padding already supplies the gap; Education keeps its 70px */
.timeline .tl-label:first-child { margin-top: 0; }
.tl-label {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  /* same blue as the LinkedIn / Email hover on the home page */
  color: #80B9FF;
  padding-bottom: 18px;
  margin-top: 70px;
  border-bottom: 1px solid var(--line);
}
/* two columns: who + when on the left, what on the right */
.tl-row {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
/* hierarchy inside the left column: org, then role, then when + where */
.tl-org h3 {
  font-size: 17px;
  font-weight: 600;
  color: #f2f2f5;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin-bottom: 6px;
}
.tl-org .tl-role {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 10px;
}
.tl-org .tl-when {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.tl-desc p {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.tl-desc p::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.tl-desc p:last-child { margin-bottom: 0; }

/* ── talks ──────────────────────────────────────────────────────── */
/* the page intro supplies the top air, same as About */
.talks { padding: 0 0 110px; }
.talk { margin-bottom: 110px; }
.talk:last-child { margin-bottom: 0; }

/* year left, place and date right — same rhythm as the project cards */
.talk-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.talk .tk-where { text-align: right; }
.talk h2 {
  text-wrap: balance;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #f2f2f5;
  margin: 0 0 26px;
}
.talk-desc {
  text-wrap: pretty;
  /* spans the full media width above it — a measure cap left it visibly
     narrower than the carousel and read as misaligned */
  max-width: none;
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.talk-desc strong { color: #e6e6eb; font-weight: 600; }
.talk-link-row { margin: 14px 0 0; }
.talk-link {
  font-size: 14px;
  color: #80B9FF;
  text-decoration: none;
  transition: opacity 0.2s;
}
.talk-link:hover { opacity: 0.72; }

/* carousel — arrows sit over the media, dots below */
.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  background: #141417;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
  /* one fixed frame — otherwise the plate resizes between slides of
     different aspect ratios and the page jumps under the cursor */
  aspect-ratio: 3 / 2;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cs-slide { flex: 0 0 100%; margin: 0; min-width: 0; height: 100%; }
.cs-slide img,
.cs-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* screenshots and slide captures can't be cropped without losing content —
   .fit letterboxes them inside the frame instead */
.cs-slide.fit img { object-fit: contain; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(6px);
  color: #f2f2f5;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
/* chevrons — stroked so they stay crisp at any size */
.carousel-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-btn:hover { background: rgba(10, 10, 12, 0.88); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel.is-single .carousel-btn,
.carousel.is-single .carousel-dots { display: none; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.carousel-dot.is-active { background: #80B9FF; opacity: 1; }

/* 16:9 responsive video embed */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #141417;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 560px) {
  /* the date and the place won't sit on one line at this tracking */
  .talk-label { flex-direction: column; align-items: flex-start; gap: 6px; }
  .talk .tk-right { align-items: flex-start; }
  .talk .tk-where { text-align: left; }
}
@media (max-width: 720px) {
  .talks { padding: 48px 0 80px; }
  .talk { margin-bottom: 72px; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

@media (max-width: 720px) {
  .tl-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .tl-label { margin-top: 48px; }
}

/* about (legacy grid) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 100px; }
.about-grid p { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.about-grid a { color: var(--ink); }
.exp { list-style: none; }
.exp li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.exp li span { color: var(--ink-faint); float: right; font-size: 11.5px; }

footer {
  padding: 40px 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: #e6e6eb; }
/* the credit reads as a sentence, not a label — normal case, tighter tracking */
footer .emboss {
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 12px;
}

/* ——— responsive ——— */

@media (max-width: 768px) {
  body {
    /* fixed backgrounds are janky/ignored on iOS */
    background-attachment: scroll;
  }
  .wrap { padding: 0 clamp(24px, 5vw, 40px); }
  nav { flex-wrap: wrap; gap: 12px 0; padding: 28px 0; }
  nav .links { display: flex; flex-wrap: wrap; gap: 10px 0; }
  nav .links a { margin-left: 20px; letter-spacing: 0.18em; }
  .hero { padding: 72px 0 60px; }
  .cs-hero { padding: 60px 0 40px; }
  .cards { gap: 28px; }
  .card { align-items: stretch; }
  .card .card-text { padding: 24px 20px 30px; }
  .card .thumb { width: 100%; }
  .card .thumb img { min-height: 0; }
  .card .thumb .placeholder { min-height: 0; }
  .cs-section { margin-bottom: 56px; }
  .meta { gap: 18px; margin-bottom: 48px; }
}

br.m { display: none; }
br.d { display: inline; }

@media (max-width: 640px) {
  body { font-size: 14px; }
  br.m { display: inline; }
  br.d { display: none; }
  .reveal { height: auto; width: min(84vw, 380px); }
  .edge-label.right { display: none; }
  .edge-label.left {
    position: static;
    transform: none;
    margin-top: 28px;
    order: 2;
    white-space: normal;
  }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }

  .card h2 { font-size: 17px; }
  .impact { gap: 16px; }
  .impact .stat .n { font-size: 24px; }
  .cs-nav { flex-wrap: wrap; gap: 12px 24px; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  figure.slide { margin: 24px 0; }
  figure.slide figcaption { padding: 10px 14px; }
}

@media (max-width: 400px) {
  nav .links a { margin-left: 14px; font-size: 11px; letter-spacing: 0.12em; }
  .hero h1 { letter-spacing: 0.08em; }
}

/* ── media grids on a shared plate ────────────────────────────────
   .quad-row is the 2x2 form (competitor audit, visual alts);
   .quad-four lays the same children out in a single row of four.
   Captions match .pair figcaption so all three case studies read
   the same. */
.quad-row {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 40px;
  margin: 52px 0 40px;
  padding: 40px;
  background: #141417;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
}
.quad-row.quad-four { grid-template-columns: repeat(4, 1fr); gap: 0 26px; align-items: end; }
.quad { min-width: 0; margin: 0; }
.quad img {
  display: block;
  width: 100%;
  /* required: the width/height attributes on these <img> tags act as
     presentational hints, so without this the height attribute wins and
     the image stretches */
  height: auto;
  border-radius: 10px;
  background: #101013;
}
.quad figcaption {
  text-wrap: balance;
  text-align: center;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .quad-row { padding: 26px; gap: 26px 26px; }
  .quad-row.quad-four { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 620px) {
  .quad-row, .quad-row.quad-four { grid-template-columns: 1fr; }
}
