
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: var(--z-progress);
  background: transparent;
  pointer-events: none;
}

.progress__fill {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad-accent);
}

.btn {
  --btn-bg: var(--bg-raised);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.875rem;
  padding: 0.75rem var(--s-5);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.btn:hover { transform: translateY(-2px); border-color: var(--stroke-strong); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn--primary {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: var(--w-semibold);
}

.btn--primary:hover { box-shadow: var(--glow); }

.on-dark .btn--primary { border-color: var(--accent-lift); }

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.40) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.btn--primary:hover::after { transform: translateX(130%); }

.btn--lg { min-height: 3.5rem; padding: 1rem var(--s-6); font-size: var(--t-body); }

.arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-spring); }
a:hover .arrow, .btn:hover .arrow { transform: translateX(5px); }

.nav {
  position: fixed;
  top: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  width: min(100% - 2 * var(--s-4), var(--page-max));
  transition: top var(--dur-base) var(--ease-out);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.5rem 0.5rem 0.5rem var(--s-5);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.nav.is-stuck .nav__inner {
  background: var(--bg-glass-strong);
  border-color: var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-md);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1rem;
  font-weight: var(--w-semibold);
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav__dot {
  width: 10px; height: 10px;
  border-radius: var(--r-full);
  background: var(--grad-accent);
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent) 70%, transparent);
  animation: pulse 3.2s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

.nav__links { display: flex; align-items: center; gap: var(--s-1); }

.nav__link {
  padding: 0.625rem var(--s-4);
  border-radius: var(--r-full);
  font-size: var(--t-small);
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.nav__link:hover { color: var(--text); background: var(--bg-raised-2); }

@media (max-width: 46rem) {
  .nav__inner { padding: 0.375rem 0.375rem 0.375rem var(--s-4); }
  .nav__brand { font-size: 0.875rem; }
  .nav__link { padding: 0.5rem var(--s-2); font-size: var(--t-micro); }
  .nav__links .nav__link:not([href="about.html"]) { display: none; }
  .nav .btn { min-height: 2.25rem; padding: 0.5rem var(--s-4); font-size: var(--t-micro); }
}

.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px) saturate(120%);
  opacity: 0.55;
}

.aurora__blob {
  position: absolute;
  width: 48vw;
  aspect-ratio: 1;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform;
  animation: drift 26s var(--ease-in-out) infinite alternate;
}

.aurora__blob--1 { left: -6vw;  top: 2vh;  background: radial-gradient(circle at 40% 40%, var(--accent-3), transparent 64%); }
.aurora__blob--2 { right: -8vw; top: -6vh; background: radial-gradient(circle at 50% 50%, var(--accent), transparent 64%); animation-duration: 32s; animation-delay: -6s; opacity: 0.7; }
.aurora__blob--3 { left: 30vw;  top: 40vh; background: radial-gradient(circle at 50% 50%, var(--accent-3), transparent 68%); animation-duration: 38s; animation-delay: -14s; opacity: 0.6; }

.on-dark .aurora__blob { mix-blend-mode: screen; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, -5vh, 0) scale(1.18); }
}

.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 80% at 50% 0%, transparent 18%, var(--bg) 92%);
}

.hero {
  position: relative;
  min-height: min(100svh, max(56rem, 64svh));
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 5rem + 8vw, 10rem) var(--s-8);
  overflow: clip;
}

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  --bulb: 6rem;
  --tube: 2.375rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.5rem var(--s-5) 0.5rem calc(var(--bulb) + var(--s-4));
  border-radius: var(--r-full);
  background: var(--bg-glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  margin-bottom: calc(var(--s-6) + (var(--bulb) - var(--tube)) / 2);
}

@media (max-width: 34rem) {
  .hero__eyebrow { --bulb: 4.5rem; }
}

.hero__wave {
  font-size: 1rem;
  transform-origin: 70% 70%;
  animation: wave 2.4s var(--ease-in-out) 1.2s 3;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-10deg); }
}

.hero__title { max-width: 22ch; margin-bottom: var(--s-6); }

.hero__lead {
  max-width: 55ch;
  font-size: var(--t-deck);
}

.hero__portrait {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: var(--bulb);
  aspect-ratio: 1;
  border-radius: var(--r-full);
  padding: 3px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent));
  box-shadow: var(--shadow-md);
}

.hero__portrait img {
  display: block;
  width: 100%; height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: var(--bg-raised);
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
  color: var(--text-faint);
}

.hero__cue-line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--stroke-strong), transparent);
  position: relative;
  overflow: hidden;
}

.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px; height: 12px;
  background: var(--accent);
  animation: cue 2.4s var(--ease-in-out) infinite;
}

@keyframes cue {
  0% { transform: translateY(-14px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(34px); opacity: 0; }
}

.marquee {
  position: relative;
  display: flex;
  gap: var(--s-6);
  padding-block: var(--s-5);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--s-6);
  flex: none;
  padding-right: var(--s-6);
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  white-space: nowrap;
  color: var(--text-dim);
  font-size: var(--t-small);
}

.marquee__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--grad-accent);
  flex: none;
}

@keyframes marquee { to { transform: translateX(-100%); } }

.marquee--skills .marquee__track { animation-duration: 72s; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { mask-image: none; flex-wrap: wrap; }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--stroke);
}

.section-head__title { max-width: 26ch; }

.projects {
  display: grid;
  gap: clamp(var(--s-7), 4vw, var(--s-9));
  margin-top: var(--s-8);
}

.project {
  position: relative;
  border-radius: var(--r-2xl);
  border: 2px solid var(--stroke);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 60%),
    var(--bg-raised);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}

.project:hover,
.project:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.project__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--s-5), 3vw, var(--s-8));
  padding: clamp(var(--s-5), 3vw, var(--s-8));
  align-items: center;
}

.project:nth-child(even) .project__media { order: -1; }

.project__body { min-width: 0; }

.project__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.project__index {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: var(--w-medium);
  letter-spacing: var(--track-label);
  padding: 0.375rem 0.625rem;
  border-radius: var(--r-sm);
  background: var(--grad-accent);
  color: var(--accent-ink);
}

.project__tag {
  padding: 0.375rem var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--text);
}

.project__title { margin-bottom: var(--s-4); max-width: 20ch; }

.project__title a {
  color: inherit;
  background-image: var(--grad-accent);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur-slow) var(--ease-out);
}

.project:hover .project__title a { background-size: 100% 2px; }

.project__summary { color: var(--text-dim); max-width: var(--measure-card); }

.project__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--stroke);
}

.stat__value {
  display: block;
  font-size: var(--t-stat);
  text-wrap: balance;
  font-weight: var(--w-black);
  letter-spacing: var(--track-mega);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: var(--s-2);
  max-width: 20ch;
  color: var(--text-faint);
  font-size: var(--t-micro);
  line-height: 1.35;
  letter-spacing: 0;
}

.project__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  font-size: var(--t-small);
  font-weight: var(--w-semibold);
  color: var(--text);
}

.project__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: color-mix(in oklab, var(--accent) 7%, var(--bg-raised-2));
  aspect-ratio: 4 / 3;
  border: 1px solid var(--stroke);
  transform-style: preserve-3d;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-xslow) var(--ease-out);
}

.project:hover .project__media img { transform: scale(1.03); }

.project__chip {
  position: absolute;
  left: var(--s-4); top: var(--s-4);
  padding: 0.375rem var(--s-3);
  border-radius: var(--r-full);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--stroke-strong);
  color: var(--text);
}

.project__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
}

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

@media (max-width: 62rem) {
  .project__grid { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__media { order: 0; }
  .project__media { order: -1; }
}

.practice { border-top: 1px solid var(--stroke); }

.practice-lead {
  margin-top: var(--s-6);
  display: grid;
  row-gap: var(--s-4);
}

.practice-lead p {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--t-lead-wide);
  line-height: var(--lh-relaxed);
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--s-5), 2.5vw, var(--s-6));
  margin-top: var(--s-8);
}

.practice-card {
  display: flex;
  flex-direction: column;
  padding: clamp(var(--s-5), 2.5vw, var(--s-6));
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.practice-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.practice-card:hover .practice-card__title { color: var(--accent-2); }
.practice-card:hover .arrow { transform: translateX(var(--s-1)); }

.practice-card__title {
  font-size: var(--t-lead);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-snug);
  transition: color var(--dur-base) var(--ease-out);
}

.practice-card__desc {
  margin-top: var(--s-3);
  color: var(--text-dim);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
}

.practice-card__stat {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--stroke);
}

.practice-card__value {
  font-size: var(--t-stat);
  font-weight: var(--w-black);
  letter-spacing: var(--track-mega);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.practice-card__unit {
  color: var(--text-dim);
  font-size: var(--t-small);
  line-height: 1.35;
}

.practice-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-5);
  color: var(--accent-2);
  font-size: var(--t-small);
  font-weight: var(--w-semibold);
}

@media (max-width: 860px) {
  .practice-grid { grid-template-columns: minmax(0, 1fr); }
}

.cta {
  position: relative;
  background: var(--bg);
  overflow: clip;
  padding-block: clamp(5rem, 3rem + 9vw, 9rem) var(--s-7);
  border-top: 1px solid var(--stroke);
}

.cta__inner { position: relative; z-index: 1; }

.cta__title { max-width: 20ch; margin-bottom: var(--s-6); }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

.cta__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

.cta__line {
  display: inline-block;
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-display);
  color: var(--text);
  background-image: var(--grad-accent-text);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 0.15em;
  transition: background-size var(--dur-slow) var(--ease-out);
}

.cta__line:hover { background-size: 100% 6px; }

.cta__line--email { font-size: var(--t-display-2); }
.cta__line--phone { font-size: var(--t-display-3); }

.cta__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-10);
  padding-top: var(--s-5);
  border-top: 1px solid var(--stroke);
  color: var(--text-faint);
  font-size: var(--t-micro);
}

.link-underline {
  color: var(--text);
  background-image: var(--grad-accent-text);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size var(--dur-base) var(--ease-out);
}

.link-underline:hover { background-size: 100% 2px; }

.case-hero {
  position: relative;
  min-height: min(100svh, max(56rem, 64svh));
  display: flex;
  align-items: center;
  overflow: clip;
  padding-block: clamp(6.5rem, 5rem + 7vw, 9rem) var(--s-7);
}

.case-hero__inner { position: relative; z-index: 1; width: 100%; }

.case-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  margin-bottom: var(--s-5);
  margin-inline-start: calc(-1 * var(--s-3));
  padding-inline: var(--s-3);
  font-size: var(--t-small);
  color: var(--text-dim);
}

.case-back:hover { color: var(--text); }
.case-back__glyph { transition: transform var(--dur-base) var(--ease-spring); }
.case-back:hover .case-back__glyph { transform: translateX(-4px); }

.case-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.375rem var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--text);
}

.case-hero__title { max-width: 24ch; margin-top: var(--s-5); }
.case-hero__deck {
  max-width: 42ch;
  margin-top: var(--s-5);
  font-size: var(--t-deck);
  color: var(--text-dim);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--stroke);
}

.case-meta dd {
  margin: var(--s-2) 0 0;
  font-size: var(--t-small);
  color: var(--text);
}

.case-section { border-top: 1px solid var(--stroke); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.case-section__grid {
  display: grid;
  grid-template-columns: minmax(0, clamp(16rem, 18vw, 26rem)) minmax(0, 1fr);
  gap: clamp(var(--s-5), 4vw, var(--s-8));
}

.case-section__aside { position: sticky; top: 7rem; align-self: start; }
.case-section__num { display: block; color: var(--text-faint); }
.case-section__title { margin-top: var(--s-3); }

.case-section__body {
  min-width: 0;
  font-size: var(--t-body-case);
  line-height: var(--lh-relaxed);
}

.case-section__body .prose { max-width: var(--measure-case); }
.case-section__body .prose p + p { margin-top: var(--s-5); }

.case-section__body .prose strong { color: var(--text); font-weight: var(--w-semibold); }

.case-section__body .case-list + .prose { margin-top: var(--s-6); }

@media (max-width: 62rem) {
  .case-section__grid { grid-template-columns: 1fr; }
  .case-section__aside { position: static; }
}

.pull-quote {
  max-width: var(--measure-case);
  padding-left: var(--s-5);
  border-left: 3px solid var(--accent);
  margin-bottom: var(--s-6);
}

.pull-quote blockquote p {
  font-size: var(--t-display-3);
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-display);
  color: var(--text);
}

.pull-quote figcaption { margin-top: var(--s-4); font-size: var(--t-small); color: var(--text-faint); }

.case-list { display: grid; gap: var(--s-4); margin-top: var(--s-5); max-width: var(--measure-case); list-style: none; }

.case-list li { position: relative; padding-left: var(--s-5); color: var(--text-dim); }

.case-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--grad-accent);
}

.case-list strong { color: var(--text); font-weight: var(--w-semibold); }

.stat-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--measure-case);
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 60%),
    var(--bg-raised);
}

@media (max-width: 30rem) {
  .stat-band { grid-template-columns: 1fr; }
}

.stat-pill {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-7);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-full);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(120% 160% at 100% 0%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 60%),
    var(--bg-raised);
}

.stat-pill__value {
  font-size: var(--t-stat);
  font-weight: var(--w-black);
  letter-spacing: var(--track-mega);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-pill__unit {
  color: var(--text-dim);
  font-size: var(--t-small);
  line-height: 1.35;
}

@media (max-width: 30rem) {
  .stat-pill {
    display: flex;
    border-radius: var(--r-xl);
    padding: var(--s-5);
  }
}

.shots-head {
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid var(--stroke);
  max-width: var(--measure-case);
  display: grid;
  gap: var(--s-2);
}

.shots-head__name {
  font-size: var(--t-body-case);
  font-weight: var(--w-semibold);
  line-height: 1.3;
  color: var(--text);
}

.shots-head--first { margin-top: var(--s-6); padding-top: 0; border-top: 0; }

.shots { display: grid; gap: var(--shots-gap); margin-top: var(--s-6); }

.shots-head + .shots { margin-top: var(--s-5); }

.shots-group { margin-top: var(--s-8); }
.shots-group .prose + .shots { margin-top: var(--s-5); }

.case-section__body .shots-group .prose {
  max-width: var(--measure-case-wide);
  font-size: var(--t-body-lead);
}

.shots--pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.shots--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 40rem) {
  .shots--trio { grid-template-columns: 1fr; }
}

.shots--solo {
  grid-template-columns: minmax(0, calc((100% - var(--shots-gap)) / 2));
  justify-content: center;
}
@media (max-width: 40rem) {
  .shots--solo { grid-template-columns: 1fr; }
}

.shot__frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--accent) 7%, var(--bg-raised-2));
  box-shadow: var(--shadow-sm);
}

.shot__frame--device,
.shot__frame--bare {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.shot__frame img, .shot__frame svg { display: block; width: 100%; height: auto; }

.shot figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-micro);
  line-height: 1.45;
  color: var(--text-faint);
}

.shot figcaption b { color: var(--text-dim); font-weight: var(--w-semibold); }

.case-note {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px dashed var(--stroke-strong);
  background: var(--bg-raised);
  color: var(--text-dim);
  font-size: var(--t-small);
}

.next-case { border-top: 1px solid var(--stroke); padding-block: var(--s-8); }

.next-case__link { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.next-case__title {
  margin-top: var(--s-3);
  color: var(--text);
  background-image: var(--grad-accent);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur-slow) var(--ease-out);
}

.next-case__link:hover .next-case__title { background-size: 100% 2px; }

.next-case__glyph { font-size: var(--t-display-3); color: var(--accent); flex: none; }

.chrome-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg);
}

.chrome-frame__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg-raised-2));
}

.chrome-frame__dot {
  width: 9px; height: 9px;
  border-radius: var(--r-full);
  background: var(--stroke-strong);
  flex: none;
}

.chrome-frame__url {
  margin-left: var(--s-2);
  padding: 2px var(--s-3);
  border-radius: var(--r-full);
  background: var(--bg-raised);
  border: 1px solid var(--stroke);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-frame__body { display: block; }
.chrome-frame__body img { display: block; width: 100%; height: auto; }

.case-hero__device {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--accent) 7%, var(--bg-raised-2));
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  padding-top: clamp(var(--s-4), 5%, var(--s-6));
}

.case-hero__device img {
  display: block;
  width: min(52%, 24rem);
  height: auto;
  margin-inline: auto;
}

@media (max-width: 40rem) {
  .case-hero__device { aspect-ratio: 1 / 1; }
  .case-hero__device img { width: min(74%, 21rem); }
}

.case-hero__device--bare {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  aspect-ratio: auto;
  padding-top: 0;
  display: flex;
  justify-content: center;
}

.case-hero__device--bare img {
  width: auto;
  height: var(--case-hero-phone-h);
  max-width: 100%;
  filter: var(--drop-shadow-lg);
}

@media (max-width: 62rem) {
  .case-hero__device--bare img { height: auto; width: min(58%, 18rem); }
}

.case-hero__cap {
  margin-top: var(--s-3);
  font-size: var(--t-micro);
  line-height: 1.45;
  color: var(--text-faint);
}
.case-hero__cap b { color: var(--text-dim); font-weight: var(--w-semibold); }

.case-hero--split .case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(var(--s-5), 2.2vw, var(--s-7));
  align-items: center;
}

.case-hero--split .case-hero__grid:has(.case-hero__device--bare) {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
}

.case-hero--split .case-hero__grid:has(.about-portrait) {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
}

.about-portrait { max-width: 26rem; margin-inline: auto; }

.case-hero--split .case-hero__title { max-width: 18ch; }
.case-hero--split .case-hero__deck { max-width: 50ch; }

.case-hero--split .case-hero__media {
  transition: transform var(--dur-slow) var(--ease-out);
}
.case-hero--split .case-hero__media:hover { transform: scale(1.01); }

.case-hero--split .case-meta {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin-top: var(--s-9);
  gap: 0;
}
.case-hero--split .case-meta > div {
  padding-inline: var(--s-5);
  border-left: 1px solid var(--stroke);
}
.case-hero--split .case-meta > div:first-child { padding-left: 0; border-left: 0; }

.case-hero--split .case-hero__grid .case-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--s-7);
  column-gap: var(--s-6);
  row-gap: var(--s-5);
  padding-top: 0;
  border-top: 0;
}

.case-hero--split .case-hero__grid .case-meta > div {
  padding-inline: 0;
  padding-top: var(--s-3);
  border-left: 0;
  border-top: 1px solid var(--stroke);
}

@media (max-width: 40rem) {
  .case-hero--split .case-hero__grid .case-meta { grid-template-columns: 1fr; }
}

@media (max-width: 62rem) {
  .case-hero--split .case-hero__grid { grid-template-columns: 1fr; }
  .case-hero--split .case-hero__grid:has(.case-hero__device--bare),
  .case-hero--split .case-hero__grid:has(.about-portrait) {
    grid-template-columns: 1fr;
  }
  .case-hero--split .case-hero__grid > div:first-child:has(> .case-meta) {
    display: contents;
  }
  .case-hero--split .case-hero__grid > div > .case-meta {
    order: 1;
    margin-top: var(--s-6);
  }
  .case-hero--split .case-hero__grid:has(> div > .case-meta) .case-hero__title,
  .case-hero--split .case-hero__grid:has(> div > .case-meta) .case-hero__deck {
    margin-top: 0;
  }
  .case-hero--split .case-hero__grid:has(> div > .case-meta) .case-hero__cat {
    justify-self: start;
  }
  .case-hero--split .case-hero__title { max-width: 28ch; }
  .case-hero--split .case-hero__deck { max-width: 40ch; }
  .case-hero--split .case-hero__media { transform: none; margin-top: var(--s-6); }
  .case-hero--split .case-meta > div { padding-inline: 0; border-left: 0; }
}

.proto-embed {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  aspect-ratio: 9 / 17;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 10px solid var(--text);
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg), var(--glow);
}

.proto-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.proto-embed--wide {
  max-width: none;
  aspect-ratio: auto;
  height: var(--proto-h);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.proto-embed--wide iframe { background: transparent; }

.proto-embed--wide .proto-embed__cover {
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--bg-raised-2);
}
.proto-embed--wide .proto-embed__cover:hover { background: var(--bg-raised); }

.proto-block:has(.proto-embed--wide) { container-type: inline-size; }

@media (max-width: 34rem) {
  .proto-block:has(.proto-embed--wide) { padding-inline: var(--s-2); }
}

@container (max-width: 758px) {
  .proto-embed--wide { height: var(--proto-h-5); }
}
@container (max-width: 658px) {
  .proto-embed--wide { height: var(--proto-h-4); }
}
@container (max-width: 558px) {
  .proto-embed--wide { height: var(--proto-h-3); }
}
@container (max-width: 438px) {
  .proto-embed--wide { height: var(--proto-h-2); }
}
@container (max-width: 338px) {
  .proto-embed--wide { height: var(--proto-h-1); }
}

.proto-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  padding: 0.3rem var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.proto-flag__pip {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--positive);
  animation: pulse 2.4s var(--ease-in-out) infinite;
  flex: none;
}

.proto-embed__cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--s-3);
  padding: var(--s-6);
  border: 0;
  font: inherit;
  text-align: center;
  color: var(--text);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(3px);
  cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-out);
}
.proto-embed__cover:hover { background: var(--bg-glass); }
.proto-embed.is-live .proto-embed__cover { opacity: 0; pointer-events: none; }

.proto-embed__play {
  width: 3.25rem; height: 3.25rem;
  margin-inline: auto;
  border-radius: var(--r-full);
  background: var(--grad-accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: var(--t-body);
  box-shadow: var(--glow);
}

.proto-embed__label { font-weight: var(--w-semibold); }
.proto-embed__sub { font-size: var(--t-micro); color: var(--text-dim); }

.proto-embed--pending { border-style: dashed; border-color: var(--stroke-strong); border-width: 3px; }
.proto-embed--pending .proto-embed__cover { background: var(--bg-raised); cursor: default; }
.proto-embed--pending .proto-embed__play { background: var(--bg-raised-2); color: var(--text-faint); box-shadow: none; }

.proto-open { margin-top: var(--s-3); text-align: center; }
.proto-open a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding-inline: var(--s-3); font-size: var(--t-micro); color: var(--text-dim); }
.proto-open a:hover { color: var(--text); }

.proto-block {
  margin-top: var(--s-6);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 62%),
    var(--bg-raised);
  text-align: center;
}

.proto-block > figcaption {
  margin-inline: auto;
  margin-top: var(--s-4);
  font-size: var(--t-small);
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .proto-flag__pip { animation: none; }
  .case-hero--split .case-hero__media { transition: none; }
}
