:root {
  --bg: #faf9f7;
  --ink: #121212;
  --muted: #6a6a6a;
  --line: #e6e3de;
  --card: #ffffff;
  --accent: #ee5622;
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --text: 38rem;
  --media: 56rem;
  --topbar: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}

a:hover {
  text-decoration-color: var(--accent);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.875rem;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--text), 100% - 3rem);
  margin-inline: auto;
}

/* Password gate */

html:not(.is-unlocked) .skip,
html:not(.is-unlocked) .side-nav,
html:not(.is-unlocked) main,
html:not(.is-unlocked) .footer,
html:not(.is-unlocked) .deep-dive {
  display: none;
}

html.is-unlocked .gate {
  display: none;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  overflow: hidden;
  background: var(--bg);
  transition: opacity 0.45s ease;
}

html.is-unlocking .gate {
  opacity: 0;
  pointer-events: none;
}

html.is-revealing .side-nav,
html.is-revealing main,
html.is-revealing .footer {
  animation: gate-reveal 0.6s ease both;
}

@keyframes gate-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  html.is-revealing .side-nav,
  html.is-revealing main,
  html.is-revealing .footer {
    animation: none;
  }
}

.gate__form {
  display: contents;
}

.gate {
  --gate-mark: clamp(16rem, 30vw, 24rem);
}

.gate__mark {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--gate-mark);
  height: var(--gate-mark);
  margin: calc(var(--gate-mark) * -0.36) 0 0 calc(var(--gate-mark) * -0.46);
  animation: gate-spin 60s linear infinite;
}

.gate__blob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 125%;
  max-width: none;
  height: auto;
  opacity: 0.6;
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
    rotate(var(--turn));
}

.gate__blob:nth-child(1) {
  --turn: 0deg;
  --dx: -7%;
  --dy: -4%;
}

.gate__blob:nth-child(2) {
  --turn: 115deg;
  --dx: 7%;
  --dy: -2%;
}

.gate__blob:nth-child(3) {
  --turn: 235deg;
  --dx: 0%;
  --dy: 7%;
}
@keyframes gate-spin {
  to {
    transform: rotate(360deg);
  }
}

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

.gate__fields {
  position: relative;
  z-index: 1;
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  width: min(calc(var(--gate-mark) * 0.8), calc(100% - 2.5rem));
}

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

.gate__row {
  position: relative;
}

.gate__row input {
  width: 100%;
  height: 3.25rem;
  padding: 0 3.1rem 0 1.25rem;
  border: 1px solid #ddd9d4;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.gate__row input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.gate__row input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.gate__row button {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transform: translateY(-50%);
  cursor: pointer;
}

.gate__row button:hover {
  color: var(--accent);
}

.gate__row button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gate__error {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0.6rem 0 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--accent);
}

.gate__fields.is-invalid .gate__row input {
  border-color: var(--accent);
}

/* Top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar);
  padding-inline: 1.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

html.is-unlocked .topbar {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar a {
  text-decoration: none;
}

.topbar__name {
  display: flex;
  gap: 0.6rem;
  margin: 0;
}

html:not(.is-unlocked) .topbar__name:not(.topbar__name--gate),
html.is-unlocked .topbar__name--gate {
  display: none;
}

.topbar__name strong {
  font-weight: 600;
}

.topbar__name span,
.topbar__contact {
  color: var(--muted);
}

.topbar__contact:hover,
.topbar__name:hover span {
  color: var(--ink);
}

/* Side nav */

.side-nav {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: fixed;
  left: 1rem;
  top: 50%;
  z-index: 40;
  translate: 0 -50%;
  margin-inline: -1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 0.875rem;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease),
    margin-inline 0.3s var(--ease);
}

.side-nav.is-collapsed:not(.is-revealed) {
  margin-inline: -0.75rem;
  padding-inline: 0.75rem;
}

.side-nav.is-collapsed,
.side-nav.is-revealed {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

.side-nav.is-hidden {
  display: none;
}

.side-nav__list {
  position: relative;
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav__list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0.9em;
  border-radius: 2px;
  background: var(--ink);
  transform: translateY(var(--marker-y, 0px));
  transition: transform 0.3s var(--ease);
  pointer-events: none;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: calc(1.5em + 0.5rem);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="true"] {
  color: var(--ink);
}

.nav-link[aria-current="true"] {
  font-weight: 600;
}

.nav-link__dash {
  flex: none;
  width: 3px;
  height: 0.9em;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.35;
}

.nav-link__label {
  max-width: 12rem;
  margin-left: 1rem;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.5;
  transition: max-width 0.3s var(--ease), margin-left 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.side-nav.is-collapsed:not(.is-revealed) .nav-link__label {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
}

@media (max-width: 1024px) {
  .side-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-nav,
  .side-nav__list::before,
  .nav-link__label {
    transition: none;
  }
}

/* Intro */

.intro {
  padding-top: calc(var(--topbar) + clamp(4rem, 12vh, 8rem));
}

.intro-mark {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 0 1rem;
}

.intro .intro-mark {
  margin-bottom: 8rem;
}

.intro-mark__blob {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  width: 74%;
  height: auto;
  transform-origin: 50% 50%;
}

.intro-mark__blob--pink {
  left: 58%;
  top: 58%;
  animation: intro-blob-pink 22s linear infinite;
}

.intro-mark__blob--gold {
  left: 42%;
  top: 50%;
  animation: intro-blob-gold 18s linear infinite;
}

.intro-mark__blob--line {
  left: 54%;
  top: 41%;
  animation: intro-blob-line 26s linear infinite;
}

@keyframes intro-blob-gold {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes intro-blob-pink {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes intro-blob-line {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
}

.lede {
  margin: 0 0 1rem;
  font-size: 1.1875rem;
}

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

.aside a {
  color: var(--ink);
}

/* Highlights */

.highlights {
  width: min(var(--media), 100% - 2rem);
  margin: clamp(3.5rem, 8vw, 5rem) auto 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  overscroll-behavior-x: contain;
  scrollbar-color: #cfcbc4 transparent;
  scrollbar-width: thin;
  --fade-start: 0%;
  --fade-end: 15%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--fade-start),
    #000 calc(100% - var(--fade-end)),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--fade-start),
    #000 calc(100% - var(--fade-end)),
    transparent
  );
  transition: --fade-start 0.3s ease, --fade-end 0.3s ease;
}

@property --fade-start {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --fade-end {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 15%;
}

.highlights.is-scrolled {
  --fade-start: 15%;
}

.highlights.is-at-end {
  --fade-end: 0%;
}

.highlights:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.highlights__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.55rem 0.25rem 2.5rem;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  flex: none;
  width: min(30rem, 78vw);
  scroll-snap-align: start;
  margin: 0;
  padding: 1.35rem 1.4rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 36px -20px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 20px 40px -21px rgba(0, 0, 0, 0.3);
}

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

  .highlight-card:hover {
    transform: none;
  }
}

.highlight-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

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

.highlight-card li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.975rem;
  line-height: 1.45;
}

.highlight-card a {
  color: inherit;
}

/* Project sections */

.project {
  padding-top: clamp(6rem, 14vw, 10rem);
}

.project__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
}

.project .wrap > p {
  margin: 0 0 1rem;
}

.store-badge {
  display: block;
  width: auto;
  height: 40px;
  margin-top: 0.35rem;
}

/* Role details */

.role summary {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.35rem;
  border: 1px solid #9b9893;
  border-radius: 50%;
  color: #7d7a75;
  font-family: var(--serif);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.role summary::-webkit-details-marker {
  display: none;
}

.role summary:hover,
.role[open] summary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.role dl {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1.25rem;
  width: min(26rem, 100%);
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.25);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.role dt {
  color: var(--muted);
}

.role dd {
  margin: 0;
}

/* Media cards */

.shot {
  width: min(var(--media), 100% - 2rem);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(1rem, 4.5vw, 3.25rem);
  background: var(--tint, #ecebe8);
  border-radius: 18px;
  text-decoration: none;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 24px 50px -24px rgba(0, 0, 0, 0.45);
}

.shot--bleed .frame,
.frame--flush {
  padding: 0;
}

.shot--bleed .frame img,
.frame--flush img {
  border-radius: 0;
  box-shadow: none;
}

.shot--narrow .frame img {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.frame--stage {
  aspect-ratio: 1663 / 935;
  padding: 0;
  background: #222024 url("img/odin-pattern.webp") center / 100% 100% no-repeat;
  border-radius: 20px;
}

.frame--stage video,
.frame--stage canvas {
  position: absolute;
  left: 8.8%;
  top: 15.67%;
  width: 111%;
  height: 157.1%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
  border-radius: 24px;
  box-shadow: none;
}

/* Card that opens a deep dive */

.frame__open {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.frame__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.frame__hint {
  position: absolute;
  left: clamp(0.75rem, 2.5vw, 1.25rem);
  bottom: clamp(0.75rem, 2.5vw, 1.25rem);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.frame__open:hover .frame__hint,
.frame__open:focus-visible .frame__hint {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .frame__hint {
    opacity: 1;
    transform: none;
  }
}

/* Deep dive: a full-page white sheet the card grows into */

html.is-locked {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.deep-dive {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0);
  color: var(--ink);
  transition: background-color 0.35s ease;
}

.deep-dive::backdrop {
  background: transparent;
}

.deep-dive.is-open {
  background: #fff;
}

.deep-dive__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar);
  padding-inline: 1.5rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.deep-dive__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.deep-dive__count {
  position: absolute;
  top: calc(clamp(2.5rem, 6vw, 4.5rem) / 2);
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
}

.deep-dive__count[hidden] {
  display: none;
}

.deep-dive__close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.deep-dive__close:hover {
  background: #f1efec;
}

.deep-dive__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.deep-dive__body {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 10vw, 7rem);
}

.deep-dive__media,
.deep-dive__text {
  width: min(76rem, 100% - 2 * clamp(1.25rem, 11vw, 10rem));
  margin-inline: auto;
}

.deep-dive__body {
  container-type: inline-size;
}

.deep-dive__media {
  position: relative;
  display: grid;
}

.deep-dive__slide {
  grid-area: 1 / 1;
  min-width: 0;
}

.deep-dive__slide[hidden],
.deep-dive__text[hidden],
.deep-dive__text:empty {
  display: none;
}

.frame--vimeo {
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #111;
  border-radius: 20px;
}

.shot--bleed .frame--vimeo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.vimeo-bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1.75rem 0.9rem 0.7rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  border-radius: 0 0 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.frame--vimeo.is-ready:hover .vimeo-bar,
.frame--vimeo.is-ready:focus-within .vimeo-bar {
  opacity: 1;
  pointer-events: auto;
}

.vimeo-bar input {
  appearance: none;
  width: 100%;
  height: 1rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.vimeo-bar input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, 0.35) var(--p, 0%));
}

.vimeo-bar input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
}

.vimeo-bar input::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.vimeo-bar input::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.vimeo-bar input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.vimeo-bar input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.vimeo-bar__time {
  color: #fff;
  font: 500 0.75rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

.deep-dive__text.deep-dive__text--solo {
  grid-template-columns: minmax(0, 1fr);
}

.frame--turnkey {
  aspect-ratio: 1485 / 832;
  padding: 0;
  background-color: #efeeed;
  background-image: url("img/odin-grid.svg");
  background-repeat: repeat;
  border-radius: 20px;
}

.frame--turnkey img {
  position: absolute;
  left: 4%;
  top: 8.7%;
  width: 92%;
  height: auto;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.frame--sourcing,
.frame--optimizing {
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 2px solid #d7d7d7;
  border-radius: 20px;
  background: #000;
  box-shadow:
    10px 10px 25px rgba(0, 0, 0, 0.35),
    40px 40px 75px rgba(0, 0, 0, 0.25);
}

.frame--sourcing video,
.frame--optimizing video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--optimizing {
  border: 0;
  background: #222024;
}

.frame--optimizing video {
  position: absolute;
  top: 4.6%;
  left: 2.7%;
  width: 94.6%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.frame--drivers {
  aspect-ratio: 968 / 540;
  padding: 0;
  background: #232323;
  border-radius: 22px;
}

.frame--drivers img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(-50%);
}

.frame--fit {
  aspect-ratio: 1488 / 838;
  padding: 0;
  background: #d5d5d5;
  border-radius: 20px;
}

.frame--fit img {
  position: absolute;
  top: 4.06%;
  left: 5.65%;
  width: 88.98%;
  height: auto;
  border-radius: 0.6%;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 12px 28px -16px rgba(0, 0, 0, 0.45);
}

.frame--slop {
  aspect-ratio: 1280 / 716;
  padding: 0;
  overflow: hidden;
  background: #eee8e7;
  border-radius: 20px;
}

.frame--slop video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.frame--splash {
  aspect-ratio: 1877 / 1055.319;
  padding: 0;
  background: #222024;
  border-radius: 20px;
}

.frame--splash .splash__shot {
  position: absolute;
  overflow: hidden;
}

.frame--splash .splash__shot img {
  position: absolute;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: fill;
}

.splash__shot--times {
  left: 0;
  top: 0.015%;
  width: 35.749%;
  height: 103.476%;
}

.frame--splash .splash__shot--times img {
  left: -82.67%;
  top: -15.38%;
  width: 300.63%;
  height: 115.38%;
}

.splash__shot--king {
  left: 32.978%;
  top: 0.015%;
  width: 46.564%;
  height: 99.97%;
}

.frame--splash .splash__shot--king img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash__shot--lab {
  left: 34.736%;
  top: 56.396%;
  width: 44.06%;
  height: 44.252%;
}

.frame--splash .splash__shot--lab img {
  left: 0;
  top: 0;
  width: 100.6%;
  height: 100.21%;
}

.splash__shot--geekwire {
  left: 57.698%;
  top: 51.753%;
  width: 46.404%;
  height: 73.437%;
}

.frame--splash .splash__shot--geekwire img {
  left: -9.22%;
  top: 0;
  width: 109.25%;
  height: 100%;
}

.splash__shot--uro {
  left: 71.019%;
  top: -0.174%;
  width: 36.281%;
  height: 51.928%;
}

.frame--splash .splash__shot--uro img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--sketch {
  aspect-ratio: 1498 / 846;
  padding: 0;
  background: #eceae6;
  border-radius: 20px;
}

.frame--sketch img,
.frame--sketch video {
  position: absolute;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

.frame--sketch img.sketch__problem {
  left: 0;
  top: 0;
  width: 30.77%;
  height: 71.04%;
}

.frame--sketch video.sketch__board {
  left: 0;
  top: 71.04%;
  width: 30.77%;
  height: 28.96%;
}

.frame--sketch img.sketch__flow {
  left: 30.77%;
  top: 0;
  width: 36.18%;
  height: 100%;
}

.frame--sketch video.sketch__notebook {
  left: 66.95%;
  top: 0;
  width: 33.05%;
  height: 52.01%;
}

.frame--sketch img.sketch__menu {
  left: 66.95%;
  top: 52.01%;
  width: 33.05%;
  height: 47.99%;
  object-position: center top;
}

.frame--map {
  aspect-ratio: 1872 / 1048;
  padding: 0;
  background: #e2e2e2;
  border-radius: 20px;
}

.shot--bleed .frame.frame--case {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1663 / 935;
  height: auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: #e6e6e6;
  border-radius: 20px;
}

.frame--case .case {
  margin: 0;
  width: min(40.5rem, 100%);
  padding: 0;
  background: transparent;
}

.shot--bleed .frame--case .case__cover {
  width: 198px;
  border-radius: 0;
  box-shadow:
    0 8px 12px 6px rgba(0, 0, 0, 0.15),
    0 4px 4px rgba(0, 0, 0, 0.3);
}

.frame--map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.frame--uxr {
  aspect-ratio: 1488 / 834;
  padding: 0;
  background: #1c1c1c;
  border-radius: 20px;
}

.shot--bleed .frame--uxr video,
.shot--bleed .frame--uxr img {
  position: absolute;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: none;
  max-width: none;
}

.shot--bleed .frame--uxr video {
  left: 1.8%;
  top: 13.2%;
  width: 70.4%;
  height: 73.6%;
}

.shot--bleed .frame--uxr img.uxr__clinic {
  top: 0;
  right: 0;
  width: 26.2%;
  height: 48.8%;
  border-radius: 0 20px 14px 14px;
}

.shot--bleed .frame--uxr img.uxr__office {
  right: 0;
  bottom: 0;
  width: 26.2%;
  height: 49.4%;
  border-radius: 14px 14px 20px 0;
}

.deep-dive__arrow {
  --arrow: 96px;
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: var(--arrow);
  height: var(--arrow);
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
}

.deep-dive__arrow svg {
  width: 28px;
  height: 28px;
}

/* Centered in the gutter: halfway between the card edge and the viewport edge. */
.deep-dive__arrow--prev {
  left: calc((100% - 100cqw) / 4 - var(--arrow) / 2);
}

.deep-dive__arrow--next {
  right: calc((100% - 100cqw) / 4 - var(--arrow) / 2);
}

.deep-dive__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.deep-dive__arrow:hover:not(:disabled) {
  background: #f7f6f4;
}

.deep-dive__arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.deep-dive__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 999px) {
  .deep-dive__arrow {
    --arrow: 56px;
  }

  .deep-dive__arrow svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 760px) {
  .deep-dive__arrow {
    --arrow: 44px;
  }

  .deep-dive__arrow--prev {
    left: 0.75rem;
  }

  .deep-dive__arrow--next {
    right: 0.75rem;
  }
}

.deep-dive__media .frame,
.deep-dive__ghost .frame {
  box-shadow:
    0 10px 24px -6px rgba(0, 0, 0, 0.18),
    0 40px 80px -24px rgba(0, 0, 0, 0.3);
}

.deep-dive__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3.25rem);
  padding-inline: clamp(1rem, 6%, 4.5rem);
}

.deep-dive__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.deep-dive__copy p,
.deep-dive__copy ol,
.deep-dive__copy ul {
  max-width: var(--text);
  margin: 0 0 1rem;
}

.deep-dive__copy ol,
.deep-dive__copy ul {
  padding-left: 1.25rem;
}

.deep-dive__copy li + li {
  margin-top: 0.75rem;
}

.deep-dive__copy h3 {
  margin: 1.5rem 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
}

.deep-dive__meta {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

.deep-dive__meta dt {
  color: var(--muted);
}

.deep-dive__meta dd {
  margin: 0 0 1rem;
}

.deep-dive__bar,
.deep-dive__text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.deep-dive.is-open .deep-dive__bar,
.deep-dive.is-open .deep-dive__text {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease 0.18s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}

.deep-dive__ghost {
  position: fixed;
  z-index: 3;
  margin: 0;
  pointer-events: none;
  transform-origin: center center;
}

.deep-dive__story {
  width: min(76rem, 100% - 2 * clamp(1.25rem, 11vw, 10rem));
  margin: clamp(3.5rem, 9vw, 6.5rem) auto 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.deep-dive.is-open .deep-dive__story {
  opacity: 1;
  transition: opacity 0.4s ease 0.3s;
}

.story + .story {
  margin-top: clamp(3.5rem, 9vw, 6.5rem);
}

.deep-dive__story.case-study {
  margin-top: 0;
}

.case-study__head {
  margin: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem);
}

.case-study .case-study__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink);
}

.case-study__title {
  margin: 0;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.case-study .case-study__role {
  margin: 0.65rem 0 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.case-study__lead,
.case-study__phase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: start;
}

.case-study__phase {
  grid-template-columns: minmax(17.5rem, 566fr) minmax(0, 1244fr);
  gap: clamp(1.5rem, 4.5vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.case-study__phases {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.case-study__phases .case-study__phase:first-child {
  margin-top: 0;
}

.case-study__phases-progress,
.case-study__phases-live {
  display: none;
}

/* Phases stay centered and swap in place. The track is the scroll distance. */
.case-study__phases.is-pinned {
  height: calc(var(--stage-h) + var(--steps) * 62vh);
}

.case-study__phases.is-pinned .case-study__phases-stage {
  position: sticky;
  top: var(--pin-top);
  display: grid;
  align-items: center;
}

.case-study__phases.is-pinned .case-study__phase {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.case-study__phases.is-pinned .case-study__phase.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.case-study__phases.is-pinned .case-study__phases-progress {
  display: flex;
  grid-row: 2;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
}

.case-study__phases-progress span {
  width: 1.75rem;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}

.case-study__phases-progress span.is-active {
  background: var(--ink);
}

.case-study__phases.is-pinned .case-study__phases-live {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.case-study h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.case-study p {
  margin: 0 0 1rem;
}

.case-study__video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #111;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 24px 50px -24px rgba(0, 0, 0, 0.45);
}

.case-study__still {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.case-study__quote {
  max-width: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.case-study__quote p {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.case-study__quote footer {
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.case-study__goal {
  margin-top: clamp(6.5rem, 14vw, 11rem);
  margin-bottom: clamp(5.5rem, 12vw, 9rem);
  text-align: center;
}

.case-study .case-study__kicker {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.case-study .case-study__hmw {
  max-width: 52rem;
  margin: 0 auto;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}


.case-study__input {
  margin-bottom: 1rem;
}

.case-study__notes,
.case-study__split ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study__notes li + li {
  margin-top: 0.75rem;
}

.case-study__notes--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}

.case-study__notes--row li + li {
  margin-top: 0;
}

.case-study__split li + li {
  margin-top: 0.25rem;
}

.case-study__split ul {
  padding-left: 1.4rem;
  list-style: disc;
}

.case-study__winner,
.case-study__radial {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  border-radius: 18px;
  box-shadow: none;
}

.case-study__winner {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #eee;
}

.case-study__winner .case-study__video {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.case-study__radial {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
  background: #e2e2e4;
  overflow: hidden;
}

.case-study__radial h3 {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.case-study__radial img {
  display: block;
  width: calc(100% - 48px);
  height: auto;
  margin-inline: 24px;
}

.case-study__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-inline: clamp(1.5rem, 4vw, 3.25rem);
}

.case-study__split p {
  margin: 0;
}

.case-study__figure {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
}

.case-study__figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .case-study__lead,
  .case-study__phase,
  .case-study__split {
    grid-template-columns: 1fr;
  }
}

.story__title {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  padding-inline: clamp(1rem, 6%, 4.5rem);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.story__shot {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 18px;
  background: #eee;
}

.story__shot + .story__shot {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.story__shot--dark {
  background: #1e1e1e;
}

.story__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.story__compare .story__shot + .story__shot {
  margin-top: 0;
}

.story__phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
  margin: 0;
}

.story__phones--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story__phones > figure {
  margin: 0;
  min-width: 0;
}

.story__compare img,
.story__phones img {
  width: min(100%, 16rem);
  margin-inline: auto;
}

.story__shot img.is-before,
.story__compare img,
.story__phones img {
  border-radius: 1.75rem;
}

.story__shot figcaption {
  margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.story__shot--dark figcaption {
  color: #a8a8a8;
}

.story__shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .deep-dive__text {
    grid-template-columns: 1fr;
  }

  .story__phones--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .deep-dive,
  .deep-dive__bar,
  .deep-dive__text,
  .deep-dive__story,
  .deep-dive.is-open .deep-dive__bar,
  .deep-dive.is-open .deep-dive__text,
  .deep-dive.is-open .deep-dive__story {
    transition: none;
  }
}

.frame--coordinote {
  aspect-ratio: 1663 / 935;
  padding: 0;
  background: #340056;
  container-type: inline-size;
}

.frame--coordinote > img {
  border-radius: 0;
  box-shadow: none;
}

.frame--coordinote .coord__blob {
  position: absolute;
  top: 5.78%;
  right: -10.16%;
  bottom: -186.2%;
  left: -31.57%;
  width: auto;
  height: auto;
  max-width: none;
}

/* Side phones start staggered (as in Figma) and line up with the map as the card settles. */
.frame--coordinote .coord__phone {
  --spread: calc(1 - var(--focus, 0));
  position: absolute;
  top: 8.61%;
  width: 21.41%;
  height: auto;
  border-radius: 8.43% / 3.89%;
}

.frame--coordinote .coord__phone--map {
  left: 39.3%;
  box-shadow: 0.04cqw 0.81cqw 1.26cqw rgba(0, 0, 0, 0.12);
}

.frame--coordinote .coord__phone--note {
  --shift: translateY(calc(var(--spread) * -18.61%));
  left: 11.61%;
}

.frame--coordinote .coord__phone--notes {
  --shift: translateY(calc(var(--spread) * 36.9%));
  left: 66.93%;
}

.frame--coordinote > img {
  transform: var(--shift, none);
}

.frame--pyrus {
  aspect-ratio: 1663 / 935;
  padding: 0;
  background: #fff;
  container-type: size;
}

.frame--pyrus .pyrus__wash {
  position: absolute;
  left: -6.92%;
  top: -10.8%;
  width: 109.44%;
  height: 121.71%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.frame--pyrus .pyrus__label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 8.9%;
  width: max-content;
  max-width: 70%;
  margin: 0;
  translate: -50% 0;
  font-family: var(--serif);
  font-size: 1.44cqw;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  color: #111;
  animation: pyrus-label 15.6s linear infinite both;
  animation-delay: calc(var(--i) * 3.9s - 0.9s);
}

.frame--pyrus .pyrus__panel {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 54%;
  width: auto;
  height: 64cqh;
  max-width: 72cqw;
  border-radius: 0;
  box-shadow: none;
  translate: -50% -50%;
  transform-origin: center center;
  animation: pyrus-step 15.6s linear infinite both;
  animation-delay: calc(var(--i) * 3.9s - 0.9s);
}

@keyframes pyrus-step {
  0% {
    transform: translateX(46%) scale(0.5);
    opacity: 0;
    z-index: 3;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  5.77%,
  24.9% {
    transform: none;
    opacity: 1;
    z-index: 3;
  }
  25% {
    transform: none;
    opacity: 1;
    z-index: 1;
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }
  30.77% {
    transform: translateX(-42%);
    opacity: 0;
    z-index: 1;
  }
  30.9%,
  100% {
    transform: translateX(46%) scale(0.5);
    opacity: 0;
    z-index: 1;
  }
}

@keyframes pyrus-label {
  0%,
  4%,
  27%,
  100% { opacity: 0; }
  5.77%,
  25% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .frame--pyrus .pyrus__panel,
  .frame--pyrus .pyrus__label {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .frame--pyrus .is-lead {
    opacity: 1;
  }
}

.frame--preptrack {
  aspect-ratio: 1663 / 935;
  padding: 0;
  background: #ececec;
  border-radius: 20px;
  container-type: inline-size;
}

.pt {
  position: absolute;
  inset: 0;
}

.pt__wash {
  position: absolute;
  left: 36.92%;
  top: 0;
  width: 64.4%;
  height: 100%;
  overflow: hidden;
}

.frame--preptrack .pt__wash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.pt__label {
  position: absolute;
  z-index: 2;
  top: 8.9%;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.44cqw;
  line-height: 1;
  transform: translateX(-50%);
}

.pt__label--past {
  left: 18.34%;
  color: #111;
}

.pt__label--update {
  left: 69.15%;
  color: #111;
}

.shot--bleed .frame--preptrack .pt__past,
.shot--bleed .frame--preptrack .pt__update {
  position: absolute;
  top: 20.11%;
  z-index: 1;
  width: 23.45%;
  height: 79.89%;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.2cqw;
  box-shadow: 0 0.96cqw 1.92cqw -0.48cqw rgba(12, 12, 13, 0.4);
}

.pt__past {
  left: 6.62%;
}

.pt__update--risk {
  left: 44.5%;
}

.pt__update--safe {
  left: 70.36%;
}

.deck .shot .frame.frame--preptrack img {
  transform: none;
}

a.frame img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.frame:hover img {
  transform: scale(1.015);
}

.play {
  position: absolute;
  z-index: 1;
  left: clamp(0.75rem, 2.5vw, 1.25rem);
  bottom: clamp(0.75rem, 2.5vw, 1.25rem);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  border-style: solid;
  border-width: 0.48rem 0 0.48rem 0.75rem;
  border-color: transparent transparent transparent var(--ink);
  transform: translate(-50%, -50%);
}

a.frame:hover .play {
  transform: scale(1.08);
}

.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: min(var(--text), 100%);
  margin: 1rem auto 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Case study card */

.case {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  width: min(40.5rem, 100% - 2rem);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 44px;
  background: #ececec;
  border-radius: 24px;
}

.case__cover {
  flex: none;
  width: 198px;
  height: auto;
  box-shadow:
    0 8px 12px 6px rgba(0, 0, 0, 0.15),
    0 4px 4px rgba(0, 0, 0, 0.3);
}

.case__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  font-size: 18px;
  line-height: 1.6;
}

.case__body p {
  margin: 0;
}

.case__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.case__eyebrow {
  font-family: var(--sans);
  font-size: 0.775rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.case__title {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.case__body a:not(.case__go) {
  color: inherit;
}

.case__go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cac4d0;
  border-radius: 50%;
  background: transparent;
  color: #49454f;
  cursor: pointer;
  transition: background 0.15s ease;
}

.case__go:hover {
  background: rgba(73, 69, 79, 0.08);
}

.case__go:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .case {
    flex-direction: column;
    gap: 28px;
    padding: 28px;
  }

  .case__cover {
    width: min(198px, 60%);
  }
}

.shot figcaption strong {
  font-weight: 600;
}

.shot figcaption span {
  color: var(--muted);
}

/* Reveal on scroll */

@media (prefers-reduced-motion: no-preference) {
  .js:not(.deck) .shot .frame {
    opacity: 0;
    transform: translateY(48px) rotate(-1.6deg) scale(0.985);
    transition:
      opacity 0.7s ease,
      transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js:not(.deck) .shot.is-in .frame {
    opacity: 1;
    transform: none;
  }
}

/* Scroll-scrubbed card motion, same ranges as srcurran.com */
@media (min-width: 961px) and (min-height: 801px) and (prefers-reduced-motion: no-preference) {
  .deck .shot {
    transform: translateX(var(--x, 0px)) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
    transform-origin: center center;
    will-change: transform;
  }

  .deck .shot .frame {
    --elev: calc(0.3 + 0.7 * var(--focus, 1));
    box-shadow:
      0 calc(var(--elev) * 16px) calc(var(--elev) * 40px) rgba(10, 10, 10, calc(var(--elev) * 0.12)),
      0 calc(var(--elev) * 4px) calc(var(--elev) * 10px) rgba(10, 10, 10, calc(var(--elev) * 0.08));
  }

  .deck .shot .frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: var(--bg);
    opacity: var(--dim, 0);
    pointer-events: none;
  }

  .deck .shot .frame img,
  .deck .shot .frame video {
    transform: translateY(calc(var(--parallax, 0) * 1%)) scale(calc(1 / var(--scale, 1)));
    transform-origin: center center;
    transition: none;
  }

  .deck .shot .frame--coordinote > img {
    transform: var(--shift, none);
  }

  .deck a.frame:hover img {
    transform: translateY(calc(var(--parallax, 0) * 1%)) scale(calc(1.015 / var(--scale, 1)));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .highlights {
    scroll-snap-type: none;
  }
}

/* Peer quotes */

.kind-words {
  padding-top: clamp(6rem, 14vw, 9rem);
}

.kind-words h3 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(var(--media), 100% - 2rem);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.quotes blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  height: 100%;
  margin: 0;
  padding: 1.5rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.quotes p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.quotes cite {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--muted);
}

@media (max-width: 720px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact {
  padding-top: clamp(7rem, 16vw, 11rem);
}

.contact h2 {
  margin: 0 0 2rem;
}

.contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
}

.contact__list li {
  border-top: 1px solid var(--line);
}

.contact__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact__list a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.125rem;
  text-decoration: none;
}

.contact__list a::after {
  content: " ↗";
  color: var(--muted);
}

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

.footer {
  padding: 4rem 0 3rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}
