@font-face {
  font-family: "Plain";
  src: url("../fonts/Plain-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plain";
  src: url("../fonts/Plain-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plain";
  src: url("../fonts/Plain-Medium.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plain";
  src: url("../fonts/Plain-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5faff;
  --ink: #000e51;
  --border: #000e51;
  --chip: rgba(0, 14, 81, 0.1);
  --nav-float-inset: 32px;
  --nav-bar-h: 56px;
  --nav-h: calc(var(--nav-float-inset) + var(--nav-bar-h));
  --pad: 24px;
  --card-r: 12px;
  --pill-r: 80px;
  --font: "Plain", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1440px;
  --container-pad-top: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; overflow-x: hidden; }
body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-anchor: none;
  overflow-x: hidden;
}
a { color: inherit; }
.site-header {
  position: fixed;
  top: var(--nav-float-inset);
  left: var(--nav-float-inset);
  right: var(--nav-float-inset);
  z-index: 100;
  height: auto;
  background: transparent;
  pointer-events: none;
  overflow: visible;
}
.site-header__inner {
  pointer-events: auto;
  width: 100%;
  max-width: min(100%, var(--max-w));
  min-height: var(--nav-bar-h);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  border: 1px solid #000e51;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}
.site-header__inner:hover,
.site-header__inner:focus-within,
.site-header__inner:has(.nav-dropdown.is-open) {
  box-shadow: 0 4px 24px rgba(0, 14, 81, 0.08);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-width: 0;
}
.site-header__name { display: none; }
.site-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.text-link { text-decoration: none; }
.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-nav {
  display: flex;
  gap: 16px;
  font-size: 16px;
  letter-spacing: -0.02em;
  align-items: center;
}
.site-nav__label--long { display: none; }
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: inherit;
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  border: 1px solid #000e51;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 14, 81, 0.08);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
  --dropdown-inset: 16px;
}
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
}
.nav-dropdown__item:first-child {
  padding-top: 24px;
}
.nav-dropdown__item:last-child {
  padding-bottom: 24px;
}
.nav-dropdown__item + .nav-dropdown__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--dropdown-inset);
  right: var(--dropdown-inset);
  height: 1px;
  background: #000e51;
}
.nav-dropdown__label {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-dropdown__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-dropdown__icon img {
  width: 24px;
  height: 24px;
  display: block;
}
.nav-dropdown__item:hover .nav-dropdown__label,
.nav-dropdown__item:focus-visible .nav-dropdown__label {
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 640px) {
  .site-header__inner {
    position: static;
  }
  .nav-dropdown {
    position: static;
  }
  .nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 164px;
    min-width: 164px;
    max-width: 164px;
    --dropdown-inset: 24px;
  }
  .nav-dropdown__item {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 639px) {
  :root {
    --nav-float-inset: 24px;
  }
  .site-nav {
    gap: 16px;
  }
  .site-nav > .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 8px;
    margin: -12px -8px;
  }
  .nav-dropdown {
    position: static;
  }
  .nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 8px;
    margin: -12px -8px;
    -webkit-tap-highlight-color: transparent;
  }
  .site-nav .text-link:hover,
  .site-nav .text-link:focus-visible,
  .nav-dropdown__item:hover .nav-dropdown__label,
  .nav-dropdown__item:focus-visible .nav-dropdown__label {
    text-decoration: none;
  }
  .site-nav .text-link:active,
  .nav-dropdown__trigger:active,
  .nav-dropdown__item:active .nav-dropdown__label {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  /* Anchor to .site-header (fixed) so panel matches nav width, 8px below bar */
  .site-header__inner {
    position: static;
  }
  .nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
    border-radius: 12px;
    border: 1px solid #000e51;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 14, 81, 0.08);
    box-sizing: border-box;
    transform: translateY(-4px);
    --dropdown-inset: var(--pad);
  }
  .nav-dropdown.is-open .nav-dropdown__menu {
    transform: translateY(0);
  }
  .nav-dropdown__item {
    min-height: 48px;
    padding: 16px var(--pad);
    justify-content: space-between;
    border-radius: 0;
    -webkit-tap-highlight-color: rgba(0, 14, 81, 0.08);
  }
  .nav-dropdown__item:first-child {
    padding-top: 24px;
  }
  .nav-dropdown__item:last-child {
    padding-bottom: 24px;
  }
  .nav-dropdown__item:active {
    background: rgba(0, 14, 81, 0.06);
  }
}
.container {
  width: min(100%, 390px);
  max-width: 100%;
  margin: 0 auto;
  padding: var(--container-pad-top) var(--pad) 56px;
  min-width: 0;
}
.hero-title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.left-col__intro { display: grid; gap: 24px; width: 100%; margin-top: 24px; }
.left-col#about { scroll-margin-top: calc(var(--nav-h) + 12px); }
.timeline { margin-top: 80px; display: grid; gap: 72px; min-width: 0; width: 100%; }
.entry { display: grid; gap: 0; width: 100%; max-width: 100%; min-width: 0; }
.entry#resume { scroll-margin-top: calc(var(--nav-h) + 12px); }
.year {
  margin: 0;
  width: 132px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.entry-block { display: grid; gap: 24px; }
.role,
.desc {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.role a { text-decoration: underline; text-underline-offset: 2px; }
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--card-r);
  overflow: hidden;
  background: #fff;
  transition: opacity 0.12s ease-out, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-art {
  height: 180px;
  background: linear-gradient(180deg, #222, #000);
  overflow: hidden;
}
.project-art picture {
  display: block;
  width: 100%;
  height: 100%;
}
.project-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Flight Club PDP card: separate crops + focal points for mobile vs desktop art */
.project-art--fc-pdp .project-art__img--focus-fc-pdp-narrow {
  object-position: 50% 28%;
}
@media (min-width: 1100px) {
  .project-art--fc-pdp .project-art__img--focus-fc-pdp-narrow.project-art__img--focus-fc-pdp-wide {
    object-position: 48% 42%;
  }
}
.project-art--meta { background: linear-gradient(145deg, #f8f8f8, #ededed); }
/* Meta Ads card: focal on dynamic experiences card / table context */
.project-art--meta .project-art__img--focus-meta-narrow {
  object-position: 44% 32%;
}
@media (min-width: 1100px) {
  .project-art--meta .project-art__img--focus-meta-narrow.project-art__img--focus-meta-wide {
    object-position: 40% 45%;
  }
}
.project-art--acorns { background: linear-gradient(240deg, #4bc459 0%, #2fae8e 66%); }
.project-art--disney { background: linear-gradient(145deg, #1a1a4e 0%, #0d2847 55%, #061018 100%); }
.project-art--disney .project-art__img,
.project-art--acorns .project-art__img {
  object-position: 50% 35%;
}
/* Tablet/desktop: split card; art fills row height (picture or direct img). */
@media (min-width: 768px) {
  a.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  a.project-card .project-art {
    min-height: 200px;
    height: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  /* flex-basis: 0 — don't let tall image intrinsic size grow the card past the copy column */
  a.project-card .project-art picture,
  a.project-card .project-art > img {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
  }
  a.project-card .project-art img {
    object-fit: cover;
    display: block;
  }
  a.project-card .project-content {
    border-top: 0;
    border-left: 1px solid var(--border);
    padding: 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
.case-hero__media--disney {
  background: linear-gradient(145deg, #1a1a4e 0%, #0d2847 55%, #061018 100%);
}
.project-content {
  border-top: 1px solid var(--border);
  padding: 20px 24px 24px;
  display: grid;
  gap: 24px;
}
.project-main { display: grid; gap: 16px; }
.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 12px 4px;
  font-size: 12px;
  line-height: normal;
  font-weight: 600;
  letter-spacing: -0.24px;
  text-transform: none;
  white-space: nowrap;
}
.badge--vision { background: #e2edf8; color: #000e51; }
.project-title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.cta__text { display: inline; }
.cta:hover .cta__text,
.cta:focus-visible .cta__text,
a.project-card:hover .cta__text,
a.project-card:focus-visible .cta__text {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.cta .icon { border: 0; padding: 0; background: transparent; }
.chip,
.view-more-cta {
  width: 100%;
  min-height: 40px;
  border-radius: var(--pill-r);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.chip__icon,
.view-more-cta__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chip__icon img,
.view-more-cta__icon img,
.cta .icon img {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.cta .icon svg,
.view-more-cta__icon svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.view-more-cta__icon--less { display: none; }
.view-more-cta[aria-expanded="true"] .view-more-cta__icon--more { display: none; }
.view-more-cta[aria-expanded="true"] .view-more-cta__icon--less { display: inline-flex; }
.view-more-cta { background: var(--chip); transition: background-color 0.2s ease; }
.view-more-cta:hover,
.view-more-cta:focus-visible { background: rgba(0, 14, 81, 0.2); }
.view-more-cta__text { display: inline; }
.chip--outline {
  background: transparent;
  border: 1px solid var(--border);
  transition: background-color 0.2s ease;
}
.chip--outline:hover,
.chip--outline:focus-visible { background: rgba(0, 14, 81, 0.1); }
.project-extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s cubic-bezier(0.33, 1, 0.68, 1);
}
.project-extra.is-expanded { grid-template-rows: 1fr; }
.project-extra__inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.12s ease-out, transform 0.34s cubic-bezier(0.33, 1, 0.68, 1),
    padding-top 0.34s cubic-bezier(0.33, 1, 0.68, 1);
  padding-top: 0;
  pointer-events: none;
}
.project-extra.is-expanded .project-extra__inner {
  opacity: 1;
  transform: translateY(0);
  padding-top: 24px;
  pointer-events: auto;
  overflow: visible;
}
.about-expand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
.about-expand .project-extra { width: 100%; }
.about-expand .project-extra__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-expand .project-extra.is-expanded .project-extra__inner { padding-top: 0; }
.about-expand .project-extra.is-expanded + .view-more-cta { margin-top: 24px; }
.hover-option-lift .project-card:hover,
.hover-option-lift .project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 14, 81, 0.12);
}
.hover-option-glow .project-card:hover,
.hover-option-glow .project-card:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 14, 81, 0.14), 0 14px 28px rgba(0, 14, 81, 0.1);
  border-color: rgba(0, 14, 81, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .project-extra,
  .project-extra__inner,
  .project-card { transition: none; }
  .project-extra__inner { transform: none; }
  .hover-option-lift .project-card:hover,
  .hover-option-lift .project-card:focus-within { transform: none; box-shadow: none; }
  .hover-option-glow .project-card:hover,
  .hover-option-glow .project-card:focus-within { box-shadow: none; }
}
@media (max-width: 900px) {
  .left-col-slot { display: none; }
  .left-col {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    z-index: auto;
    backface-visibility: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (min-width: 640px) {
  .site-header__name { display: inline; }
}
@media (min-width: 640px) and (max-width: 900px) {
  :root {
    --pad: 44px;
    --container-pad-top: 56px;
    --nav-float-inset: 32px;
  }
  .container {
    width: min(100%, 720px);
    max-width: 720px;
    padding: var(--container-pad-top) var(--pad) 64px;
  }
  .site-header__inner { max-width: min(100%, 720px); }
  .hero-title { line-height: 1.2; letter-spacing: -0.045em; font-weight: 600; }
  .timeline { margin-top: 72px; gap: 64px; }
  .entry { width: 100%; max-width: none; }
  .project-stack { width: 75%; max-width: 100%; justify-self: start; }
  .entry-block > .project-card { width: 75%; max-width: 100%; justify-self: start; }
  .chip,
  .view-more-cta { width: 40%; max-width: 100%; justify-content: center; justify-self: start; }
}
@media (min-width: 768px) and (max-width: 900px) {
  :root { --pad: 48px; }
  .container {
    width: min(100%, 800px);
    max-width: 800px;
  }
  .site-header__inner { max-width: min(100%, 800px); }
}
@media (min-width: 901px) {
  :root {
    --container-pad-top: 80px;
    --main-pad-x: 64px;
    --col-gap: 48px;
    --nav-float-inset: 32px;
  }
  .site-header { left: var(--main-pad-x); right: var(--main-pad-x); }
  .site-header__inner { max-width: min(100%, var(--max-w)); padding: 12px 32px; }
  .site-nav { gap: 24px; }
  .site-nav__label--short { display: none; }
  .site-nav__label--long { display: inline; }
  .container {
    width: min(100%, var(--max-w));
    padding: var(--container-pad-top) var(--main-pad-x) 80px;
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: var(--col-gap);
    align-items: start;
  }
  .left-col-slot {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 1px;
    pointer-events: none;
    visibility: hidden;
  }
  .left-col {
    position: fixed;
    left: calc((100vw - min(100vw, var(--max-w))) / 2 + var(--main-pad-x));
    top: calc(var(--nav-h) + var(--container-pad-top));
    width: calc((min(100vw, var(--max-w)) - 2 * var(--main-pad-x) - var(--col-gap)) * 42 / 100);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backface-visibility: hidden;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow: visible;
  }
  .hero-title {
    margin: 0;
    width: 100%;
    font-size: 40px;
    line-height: 1.125;
    letter-spacing: -0.04em;
    font-weight: 600;
  }
  .timeline {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .entry {
    width: 100%;
    grid-template-columns: 166px minmax(0, 1fr);
    gap: 0;
    align-items: baseline;
  }
  .entry-block { min-width: 0; width: 100%; max-width: 100%; }
  .chip,
  .view-more-cta { width: fit-content; display: inline-flex; justify-content: flex-start; }
}

/* Case study pages: single column (override homepage grid .container) */
body.page-case-study main.container.container--case {
  display: block;
  grid-template-columns: none;
  gap: 0;
  width: min(100%, var(--max-w));
  max-width: 100%;
  padding-bottom: 80px;
}
.case-study { min-width: 0; width: 100%; }
.case-hero {
  margin: 0 0 48px;
  border-radius: var(--card-r);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
}
.case-hero__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #222, #000);
  overflow: hidden;
}
.case-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-hero__media--meta {
  background: linear-gradient(145deg, #f8f8f8, #ededed);
}
.case-hero__media--acorns {
  background: linear-gradient(240deg, #4bc459 0%, #2fae8e 66%);
}
.case-hero__text {
  padding: 24px;
  display: grid;
  gap: 12px;
}
.case-hero__meta {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0.85;
}
.case-hero__note {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0.85;
}
.case-hero__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.case-section {
  margin: 0 0 48px;
  display: grid;
  gap: 16px;
  min-width: 0;
}
.case-section:last-of-type { margin-bottom: 0; }
.case-section h2 {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.case-section h3.case-subhead,
.case-subhead {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.case-section h3.case-subhead--spaced,
.case-subhead--spaced {
  margin-top: 28px;
}
.case-section h3.case-subhead--loose,
.case-subhead--loose {
  margin-bottom: 16px;
}
.case-section .desc {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.case-section ul.case-list {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.case-section ul.case-list li { margin-bottom: 10px; }
.case-section ul.case-list li:last-child { margin-bottom: 0; }
.case-problem-split {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .case-problem-split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.case-consider-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .case-consider-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.case-consider-card {
  border: 1px solid var(--border);
  border-radius: var(--card-r);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case-consider-card__art {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #f6f6f6;
  overflow: hidden;
}
.case-consider-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-consider-card__body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
}
.case-consider-card__body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.case-consider-card__body p {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.case-grid-tight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.case-grid-tight .case-media {
  margin: 0;
}
.case-grid-tight .case-media img {
  width: 100%;
  height: auto;
}
.case-grid-explore {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.case-grid-explore .case-media {
  margin: 0;
}
.case-grid-explore .case-media img {
  width: 100%;
  height: auto;
}
.case-proto-frame {
  margin: 0;
  border-radius: var(--card-r);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fbfbfb;
}
.case-proto-frame img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
.case-media {
  margin: 0;
  border-radius: var(--card-r);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  min-width: 0;
}
.case-media img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
.case-media figcaption {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--border);
}
.case-split {
  display: grid;
  gap: 24px;
  align-items: start;
}
.case-split--3 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .case-split--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.case-metric {
  padding: 16px;
  border-radius: var(--card-r);
  border: 1px solid var(--border);
  background: #fff;
}
.case-metric__value {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.case-metric__label {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0.9;
}
.case-quote {
  margin: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--ink);
  background: rgba(0, 14, 81, 0.06);
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.case-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  opacity: 0.85;
}
.case-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 24px;
  min-width: 0;
}
.case-related h2 {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.case-related__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.case-related__nav a { text-decoration: underline; text-underline-offset: 2px; }
.case-related__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.case-related__grid a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.12s ease-out, transform 0.18s ease;
}
.case-related__grid a.project-card:hover,
.case-related__grid a.project-card:focus-visible {
  opacity: 0.92;
}
@media (min-width: 640px) {
  .case-hero__title { font-size: 36px; }
  .case-split {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .case-related__grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
@media (min-width: 901px) {
  body.page-case-study .container--case {
    padding: var(--container-pad-top) var(--main-pad-x) 80px;
  }
  .case-hero__title { font-size: 40px; }
}

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

html.is-project-locked #main {
  display: none;
}

html.is-project-locked .project-gate {
  display: flex;
}

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

.project-gate {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px var(--pad);
  min-height: calc(100vh - var(--nav-h));
  box-sizing: border-box;
}

.project-gate__inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.project-gate__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--ink);
}

.project-gate__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
}

.project-gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.project-gate__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-gate__field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 14, 81, 0.08);
}

.project-gate__form.is-error .project-gate__field {
  border-color: rgba(160, 72, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(160, 72, 58, 0.08);
}

.project-gate__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  outline: none;
}

.project-gate__input::placeholder {
  color: #aaa;
}

.project-gate__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.project-gate__submit img {
  display: block;
  width: 24px;
  height: 24px;
}

.project-gate__submit:hover,
.project-gate__submit:focus-visible {
  opacity: 0.72;
}

.project-gate__submit:active {
  transform: scale(0.96);
}

.project-gate__error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(140, 64, 52, 0.92);
  text-align: center;
}

/* Password setup page */
.password-setup {
  width: min(100%, 390px);
  max-width: 100%;
  margin: 0 auto;
  padding: var(--container-pad-top) var(--pad) 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.password-setup__intro {
  display: grid;
  gap: 12px;
}

.password-setup__intro h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.password-setup__intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(0, 14, 81, 0.72);
}

.password-setup__section {
  display: grid;
  gap: 16px;
}

.password-setup__section h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.password-setup__preview-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 14, 81, 0.6);
}

.password-setup__preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.password-setup__toggle {
  appearance: none;
  border: 1px solid rgba(0, 14, 81, 0.24);
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.password-setup__toggle:hover,
.password-setup__toggle:focus-visible {
  border-color: var(--ink);
  background: rgba(0, 14, 81, 0.04);
}

.password-setup__toggle.is-active {
  border-color: var(--ink);
  background: rgba(0, 14, 81, 0.08);
}

.password-setup__projects {
  display: grid;
  gap: 16px;
}

.password-setup__row {
  display: grid;
  gap: 8px;
}

.password-setup__row label {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.password-setup__row input[type="password"],
.password-setup__row input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 14, 81, 0.24);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.password-setup__row input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 14, 81, 0.08);
}

.password-setup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.password-setup__save {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.password-setup__save:hover,
.password-setup__save:focus-visible {
  opacity: 0.92;
}

.password-setup__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 14, 81, 0.72);
}

.password-setup__code {
  margin: 0;
  padding: 16px;
  border-radius: var(--card-r);
  border: 1px solid rgba(0, 14, 81, 0.12);
  background: rgba(0, 14, 81, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.password-setup .project-gate,
.project-gate--preview {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 48px 0;
  min-height: 360px;
  align-items: center;
}

@media (min-width: 640px) {
  .project-gate {
    padding: 48px 44px;
  }

  .project-gate__title {
    font-size: 36px;
  }

  .project-gate__desc {
    font-size: 18px;
  }

  .project-gate__input {
    font-size: 18px;
  }

  .password-setup {
    width: min(100%, 720px);
    padding-left: 44px;
    padding-right: 44px;
  }

  .password-setup__intro h1 {
    font-size: 32px;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .project-gate {
    padding-left: 44px;
    padding-right: 44px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .project-gate {
    padding-left: 48px;
    padding-right: 48px;
  }

  .password-setup {
    width: min(100%, 800px);
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 901px) {
  .project-gate {
    padding: 0 64px;
    min-height: calc(100vh - var(--nav-h));
  }

  .project-gate__inner {
    max-width: 720px;
    gap: 24px;
  }

  .project-gate__title {
    font-size: 44px;
    letter-spacing: -0.05em;
  }

  .project-gate__desc {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.02em;
  }

  .project-gate__form {
    max-width: 360px;
  }

  .project-gate__input {
    font-size: 20px;
  }

  .password-setup {
    width: min(100%, var(--max-w));
    padding: var(--container-pad-top) 64px 80px;
    gap: 64px;
  }

  .password-setup__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}
