/* =========================================================
   Meredith Zeng — Portfolio
   ========================================================= */

:root {
  --bg-dark: #2b2b2b;
  --bg-dark-2: #1f1f1f;
  --bg-light: #f1f1f1;
  --text-light: #ffffff;
  --text-muted: #c9c9c9;
  --text-dark: #111111;
  --grad-pink: #ff5fa2;
  --grad-orange: #ff8a5b;
  --grad-yellow: #ffc14d;
  --gradient: linear-gradient(90deg, var(--grad-pink) 0%, var(--grad-orange) 55%, var(--grad-yellow) 100%);
  --nav-h: 80px;
  --maxw: 1280px;
}

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

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

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

/* Glacial Indifference — drop the .woff2 files into /fonts and they'll be picked up.
   Until then, Jost (Google Fonts) is used as a near-identical fallback. */
@font-face {
  font-family: 'Glacial Indifference';
  src: url('fonts/GlacialIndifference-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: url('fonts/GlacialIndifference-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Glacial Indifference', 'Jost', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============ Gradient text ============ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.huge {
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -2px;
}

/* Hidden SVG that hosts the displacement filter */
.glass-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ============ NAV — iOS Liquid Glass pill ============ */
.nav {
  position: fixed;
  top: 14px;
  left: 24px;
  right: 24px;
  height: 44px;
  z-index: 100;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 8px 24px rgba(0,0,0,0.18);
  isolation: isolate;
  overflow: visible;
}

/* Layer 1: the actual refraction — content behind the nav gets warped */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  backdrop-filter: url(#glass-distortion) blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
}

/* Layer 2: frosted blur + faint tint sitting on top of the refraction */
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
  z-index: 1;
  pointer-events: none;
}

.nav-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  color: var(--text-light);
  height: 20px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 100px;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 300;
  align-items: center;
}
.nav-links a,
.nav-item > a {
  color: var(--text-light);
  padding: 8px 0;
  position: relative;
  font-weight: 300;
  width: 86px;
  text-align: center;
  transition: font-weight 0.2s ease;
}
.nav-links a:hover,
.nav-item:hover > a {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.project-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: max-content;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
  box-shadow: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.project-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
}
.nav-projects:hover .project-menu,
.nav-projects:focus-within .project-menu,
.nav-projects.is-open .project-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.project-menu a {
  display: block;
  min-width: 236px;
  padding: 12px 20px;
  border-radius: 999px;
  color: rgba(255,255,255,0.94);
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: left;
  position: relative;
  isolation: isolate;
  background: transparent;
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(9px) scale(0.96);
  transition: transform 0.18s ease, font-weight 0.22s ease, color 0.18s ease;
}
.project-menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  backdrop-filter: url(#glass-distortion) blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 1;
  pointer-events: none;
}
.project-menu a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
  pointer-events: none;
  transition: background 0.24s ease;
}
.project-menu a span {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
  transition: color 0.22s ease, font-weight 0.26s ease;
}
.project-menu a span::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, #ff3f8f 0%, #ff7255 48%, #ffbd35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: opacity 0.24s ease;
}
.nav-projects:hover .project-menu a,
.nav-projects:focus-within .project-menu a,
.nav-projects.is-open .project-menu a {
  animation: menuPillIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.nav-projects:hover .project-menu a:nth-child(1),
.nav-projects:focus-within .project-menu a:nth-child(1),
.nav-projects.is-open .project-menu a:nth-child(1) { animation-delay: 0.00s; }
.nav-projects:hover .project-menu a:nth-child(2),
.nav-projects:focus-within .project-menu a:nth-child(2),
.nav-projects.is-open .project-menu a:nth-child(2) { animation-delay: 0.055s; }
.nav-projects:hover .project-menu a:nth-child(3),
.nav-projects:focus-within .project-menu a:nth-child(3),
.nav-projects.is-open .project-menu a:nth-child(3) { animation-delay: 0.11s; }
.nav-projects:hover .project-menu a:nth-child(4),
.nav-projects:focus-within .project-menu a:nth-child(4),
.nav-projects.is-open .project-menu a:nth-child(4) { animation-delay: 0.165s; }
.nav-projects:hover .project-menu a:nth-child(5),
.nav-projects:focus-within .project-menu a:nth-child(5),
.nav-projects.is-open .project-menu a:nth-child(5) { animation-delay: 0.22s; }
@keyframes menuPillIn {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.project-menu a:hover,
.project-menu a:focus-visible,
.project-menu a:active {
  transform: translateY(-1px);
  font-weight: 700;
  text-shadow: none;
}
.project-menu a:hover::before,
.project-menu a:focus-visible::before,
.project-menu a:active::before {
  opacity: 1;
}
.project-menu a:hover::after,
.project-menu a:focus-visible::after,
.project-menu a:active::after {
  background: linear-gradient(90deg, #ff3f8f 0%, #ff7255 50%, #ffbd35 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 1.5px;
  box-sizing: border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.project-menu a:hover span::before,
.project-menu a:focus-visible span::before,
.project-menu a:active span::before {
  opacity: 1;
}
.project-menu a:hover span,
.project-menu a:focus-visible span,
.project-menu a:active span {
  color: rgba(255,255,255,0);
  font-weight: 700;
  text-shadow: none;
}

/* Light-mode nav: triggered when scrolled over a light section */
.nav-links a { transition: color 0.3s ease, font-weight 0.2s ease; }
.logo img { transition: filter 0.3s ease; }
.nav.nav-light .nav-links a { color: #1a1a1a; }
.nav.nav-light .nav-links a:hover { color: transparent; }
.nav.nav-light .project-menu a { color: #1a1a1a; }
.nav.nav-light .project-menu a span {
  color: #1a1a1a;
  text-shadow: none;
}
.nav.nav-light .project-menu a:hover { color: transparent; }
.nav.nav-light .project-menu a:hover span,
.nav.nav-light .project-menu a:focus-visible span,
.nav.nav-light .project-menu a:active span {
  color: rgba(255,255,255,0);
}
.nav.nav-light .logo img { filter: invert(1); }
.nav.nav-light::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02)) !important;
}

/* ============ HOME ============ */
.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
  padding-top: 12vh;
  overflow: hidden;
}
.home-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(184,170,150,0.55) 0%, rgba(184,170,150,0.15) 35%, rgba(184,170,150,0) 60%),
    url('images/homepage.png') center center / cover no-repeat,
    #a89682;
  z-index: 0;
}
.home-content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding-top: var(--nav-h);
}
.home-content h1 {
  font-size: 38px;
  line-height: 1.25;
  max-width: 820px;
  margin-bottom: 36px;
  background: linear-gradient(
    90deg,
    var(--grad-pink),
    var(--grad-orange),
    var(--grad-yellow),
    var(--grad-orange),
    var(--grad-pink)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 5s linear infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}
.home-lead {
  max-width: 650px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  margin-bottom: 18px;
  text-align: justify;
}
.home-signature {
  margin-top: 56px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
}

@media (min-width: 1600px) {
  .home-content {
    margin-left: 7vw;
    margin-right: auto;
  }
  .home-content h1 {
    font-size: 48px;
    max-width: 980px;
  }
  .home-lead {
    max-width: 760px;
    font-size: 21px;
  }
  .home-signature {
    font-size: 21px;
  }
}

@media (min-width: 2200px) {
  .home-content {
    margin-left: 9vw;
  }
  .home-content h1 {
    font-size: 56px;
    max-width: 1120px;
  }
  .home-lead {
    max-width: 860px;
    font-size: 24px;
  }
  .home-signature {
    font-size: 24px;
  }
}

/* ============ ABOUT ============ */
.about {
  background: var(--bg-dark);
  padding-top: var(--nav-h);
}

.about-top {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 0;
  align-items: stretch;
  min-height: auto;
}

.about-photo {
  background: url('images/selfie.jpg') center top / cover no-repeat, #2a2a2a;
  filter: grayscale(100%);
  min-height: 460px;
  position: relative;
}

.about-info {
  padding: 60px 64px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  align-items: start;
}
.info-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.info-label {
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: fit-content;
}
.info-body p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.92); margin-bottom: 12px; }
.info-body p:last-child { margin-bottom: 0; }

.focus-list { list-style: disc inside; padding-left: 4px; }
.focus-list li { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,0.92); }
.focus-list li em { font-style: normal; }

.edu-title { font-weight: 700; font-size: 16px; color: var(--text-light); }
.edu-sub { font-size: 14px; color: rgba(255,255,255,0.85); }
.edu-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  margin: 22px 0;
}

/* ============ Work Experience ============ */
.about-bottom {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 100px 48px 120px;
}
.experience-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.experience-list { list-style: none; font-family: inherit; }
.experience-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 24px 0;
  align-items: start;
  font-family: inherit;
}
.exp-year {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  letter-spacing: 0.5px;
  padding-top: 2px;
}
.exp-role h4 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.exp-role p {
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  color: #555;
}

.experience-side {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 280px;
}
.resume-btn {
  display: inline-block;
  padding: 16px 56px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.25),
    0 6px 20px rgba(0,0,0,0.10);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.resume-btn span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  z-index: 1;
}
.resume-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.resume-btn:hover {
  background: rgba(255,255,255,0.55);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.3),
    0 10px 28px rgba(0,0,0,0.12);
}

/* ============ PROJECTS ============ */
.projects {
  background: var(--bg-dark);
  padding: 80px 48px;
}
.project-block {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 0;
}
.section-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.2;
  padding-bottom: 0.08em;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  scroll-margin-top: 140px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.card {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-10px) scale(1.025);
  background: rgba(255,255,255,0.10);
  box-shadow:
    0 24px 50px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 40px rgba(255,95,162,0.18),
    0 0 60px rgba(255,193,77,0.10);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.card:hover::after { opacity: 1; }

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #444;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card-img,
.card:hover video.card-img,
.card:hover img.card-img {
  transform: scale(1.06);
}
video.card-img,
img.card-img {
  display: block;
  object-fit: cover;
}
.ph-label {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  color: #555;
  opacity: 0.85;
}

.grad-1 { background: linear-gradient(135deg, #f6c0d4 0%, #c1a4d4 40%, #6b9ad8 100%); }
.grad-2 { background: linear-gradient(135deg, #ff7ab5 0%, #d44a8e 100%); }
.grad-3 { background: linear-gradient(135deg, #2a4a3e 0%, #5a8a78 100%); }
.grad-4 { background: linear-gradient(135deg, #ffe9a6 0%, #b6dff0 50%, #f5b5d0 100%); }

.card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 18px 18px 4px;
}
.card .card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  padding: 0 18px;
  margin-bottom: 10px;
  min-height: 18px;
}
.card p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  padding: 0 18px 16px;
}
.read-more {
  display: inline-block;
  align-self: flex-start;
  margin: auto 18px 22px;
  padding: 9px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 4px 12px rgba(0,0,0,0.20);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.read-more span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  z-index: 1;
}
.read-more::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.read-more:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 6px 18px rgba(0,0,0,0.28);
}

/* ============ CONTACT ============ */
.contact {
  background: var(--bg-dark);
  padding: 120px 48px;
}
.contact-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.contact-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin: 24px 0 60px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 32px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 32px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.contact-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.contact-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--grad-pink);
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-value { font-size: 16px; color: var(--text-light); }
.contact-footer {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 56px;
}

/* 'Let's Connect' interactive pressure-text heading */
.connect-pressure {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 48px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  --connect-gradient: linear-gradient(90deg, #ff3f94 0%, #ff6f5f 48%, #ffb536 100%);
}
.connect-fallback {
  font-family: 'Roboto Flex', 'Glacial Indifference', sans-serif;
  font-size: clamp(68px, 10vw, 150px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--connect-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--grad-pink);
  transform-origin: center bottom;
  transition: transform 0.18s ease;
}
.connect-pressure:hover .connect-fallback {
  transform: scaleX(1.08) translateY(-4px);
}
.connect-pressure .text-pressure-title {
  font-family: 'Roboto Flex', 'Glacial Indifference', sans-serif;
  text-transform: uppercase;
  font-weight: 150;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.065em;
  text-align: center;
  user-select: none;
  white-space: nowrap;
  transform-origin: center top;
  line-height: 1;
  letter-spacing: 0;
  color: var(--grad-pink);
}
.connect-pressure .text-pressure-title span {
  display: inline-block;
  background: var(--connect-gradient);
  background-size: var(--pressure-gradient-width, 100%) 100%;
  background-position: var(--pressure-gradient-x, 0) center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--grad-pink);
  transform-origin: center bottom;
  font-weight: 150;
  will-change: transform, font-variation-settings;
  transition:
    font-variation-settings 0.02s linear,
    transform 0.03s linear;
}

.contact-grid.contact-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}
/* Location card is non-clickable (not a link), but still gets the hover lift */
.contact-card-static { cursor: default; }

/* Click-to-copy feedback (Email card) */
.copy-card .contact-label {
  transition: color 0.2s ease;
}
.copy-card.is-copied .contact-label {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* Let's Talk button — glass pill, matches site language */
.lets-talk-btn {
  margin-top: 32px;
  display: inline-block;
  padding: 16px 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 6px 20px rgba(0,0,0,0.25);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.lets-talk-btn span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  z-index: 1;
}
.lets-talk-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.lets-talk-btn:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(255,255,255,0.10),
    0 10px 30px rgba(0,0,0,0.30);
}

/* Let's Talk modal card */
.talk-modal { padding: 24px; }
.talk-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh;
  background: #181818;
  border-radius: 20px;
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow-y: auto;
}
.talk-header { display: flex; flex-direction: column; gap: 8px; }
.talk-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
}
.talk-title { font-size: 32px; font-weight: 700; letter-spacing: -1px; color: #fff; }
.talk-sub { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.5; }

.talk-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
}
.field input,
.field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-light);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--grad-pink);
  background: rgba(255,255,255,0.08);
}
.talk-submit {
  margin-top: 6px;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.talk-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255,95,162,0.30);
}
.talk-note {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-top: 2px;
}

/* ============ Resume Modal ============ */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: fadeIn 0.25s ease both;
}
.modal-card {
  position: relative;
  width: min(960px, 100%);
  height: min(92vh, 1200px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.25);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: flex;
  flex-direction: column;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #111;
  z-index: 2;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: #fff; transform: scale(1.05); }
.modal-pdf-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f5f5f5;
}
.modal-pdf {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #f5f5f5;
}
.resume-image-preview {
  display: none;
}
.modal-footer {
  flex: 0 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  background: #fafafa;
  border-top: 1px solid #ececec;
  font-size: 13px;
  font-family: inherit;
}
.modal-footer a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-footer a:hover { background: #efefef; color: #000; }
.modal-footer .modal-download {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}
.modal-footer .modal-download:hover {
  background: linear-gradient(90deg, rgba(255,95,162,0.12), rgba(255,193,77,0.12));
  -webkit-text-fill-color: initial;
  color: #c43b78;
}

/* =========================================================
   Project Detail Page
   ========================================================= */
.detail-page { background: var(--bg-dark); }

.detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px 80px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  letter-spacing: 0.5px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.2s ease; }
.breadcrumb a:hover {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.breadcrumb .current { color: rgba(255,255,255,0.4); }

/* Hero — full-width image with title overlay */
.detail-hero-full {
  position: relative;
  margin-bottom: 36px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}
.hero-image img,
.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  transform: scale(1.08);
  transform-origin: center;
}
/* Slow horizontal pan — opt-in via .hero-pan on .detail-hero-full */
@keyframes heroPan {
  0%, 100% { transform: scale(1.15) translateX(-3%); }
  50%      { transform: scale(1.15) translateX(3%); }
}
.detail-hero-full.hero-pan .hero-image img,
.detail-hero-full.hero-pan .hero-image video {
  animation: heroPan 28s ease-in-out infinite;
}
.detail-hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 48px 56px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
}

/* (Legacy two-column hero — kept for backward compatibility) */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.detail-hero-text { display: flex; flex-direction: column; gap: 18px; }
.eyebrow {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: fit-content;
}
.detail-title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 700;
}
.detail-subtitle {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  max-width: 1000px;
}
.detail-hero-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #111;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.detail-hero-media video,
.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta strip */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 36px;
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}
.meta-value { font-size: 15px; color: var(--text-light); font-weight: 400; }
.all-forms-meta {
  grid-template-columns: 0.95fr 1.55fr 0.75fr;
}
.all-forms-meta .meta-value {
  white-space: nowrap;
}
.all-forms-meta .meta-item:nth-child(2) {
  justify-self: center;
  align-items: flex-start;
  text-align: left;
}

/* Block — generic content section */
.detail-block { margin-bottom: 36px; }
.block-label {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: fit-content;
  margin: 0 0 10px 0;
  display: block;
}
.block-lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
}
.block-body {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  margin-bottom: 14px;
}
.block-quote {
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  padding-left: 22px;
  border-left: 2px solid;
  border-image: var(--gradient) 1;
}

/* Two-column layout for approach */
.detail-block.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}
.detail-block.two-col p:not(.block-label) {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  margin-bottom: 14px;
}
.col-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
/* When col-media has actual content:
   - container drops aspect-ratio so it stretches to text column height
   - image is absolutely positioned and sized via max-width/max-height,
     letting it scale to fit while preserving its natural aspect.
     Border-radius applied to the img sits on the real image, not the empty space. */
.col-media:has(> img),
.col-media:has(> video) {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
}
.col-media img,
.col-media video {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 14px;
}

/* Pair variant — 2 images side-by-side inside the right column.
   Uses .stack-cell wrappers so each image can be absolutely positioned
   inside its cell, letting the row span match the text column height. */
.col-media-stack {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}
/* Stretch variant for two-col so image column matches text column height */
.detail-block.two-col.two-col-stretch {
  align-items: stretch;
}
/* Side-by-side image pair that fills its column height */
.col-media-pair {
  display: flex;
  flex-direction: row;
  gap: 14px;
  height: 100%;
  min-height: 0;
}
.col-media-pair img,
.col-media-pair video {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* DIOR MAZE: keep the tablet GIF complete while matching the text-column height. */
.dior-maze-media {
  height: 100%;
  min-height: 0;
  background: transparent;
  overflow: visible;
}
.dior-maze-media img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.winter-approach-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.winter-approach-media img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.stack-cell {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  position: relative;
}
.stack-cell img,
.stack-cell video {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease;
}
/* Zoomable image affordance */
.stack-cell img[data-zoom],
[data-zoom] {
  cursor: zoom-in;
}
.stack-cell img[data-zoom]:hover {
  transform: scale(1.02);
}

/* Media placeholder — for slots without images yet */
.media-placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.03) 0,
      rgba(255,255,255,0.03) 14px,
      rgba(255,255,255,0.06) 14px,
      rgba(255,255,255,0.06) 28px);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  letter-spacing: 1px;
}

/* Key Focus grid */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.focus-item {
  padding: 28px 0 28px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.focus-num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 0.06em;
  display: block;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.focus-item p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
}
.nowrap-focus {
  white-space: nowrap;
}

/* Walkthrough single video, preserve natural aspect ratio */
.walkthrough-media {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
/* Modifier — no shadow / no background fill (for line-art diagrams etc) */
.walkthrough-media.no-shadow {
  background: transparent;
  box-shadow: none;
  max-width: 100%;
}

/* "View the Full Presentation" CTA — appended to Key Takeaway etc. */
.presentation-btn {
  margin-top: 24px;
}
.walkthrough-media video,
.walkthrough-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/8; }

/* Full-width flow diagram (DIOR Baby — single hand-designed flowchart) */
.flow-diagram {
  width: 100%;
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
}
.flow-diagram img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Image Zoom Modal — opens any image with [data-zoom] full-size
   ========================================================= */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  cursor: zoom-out;
}
.zoom-modal.is-open {
  display: flex;
  animation: fadeIn 0.25s ease both;
}
.zoom-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  cursor: default;
}
.zoom-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.zoom-close:hover {
  background: rgba(255,255,255,0.20);
  transform: scale(1.06);
}

/* =========================================================
   Big Idea masonry — 3 columns with explicit row spans so
   every column starts at the top AND ends at the bottom.
   Layout: col 1 [tall, tall] | col 2 [mid, mid, mid] | col 3 [tall, tall]
   Uses grid-auto-flow: column with 6 row units (tall = 3 rows, mid = 2 rows).
   ========================================================= */
.big-idea-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr;
  grid-template-rows: repeat(6, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  margin-top: 32px;
  min-height: 620px;
}
.big-idea-item {
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a;
}
.big-idea-item img,
.big-idea-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.big-idea-tall { grid-row: span 3; }
.big-idea-mid  { grid-row: span 2; }
.big-idea-caption {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: right;
  margin-top: 14px;
  font-style: italic;
}

@media (max-width: 860px) {
  .big-idea-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(8, 1fr);
    min-height: 720px;
  }
  .big-idea-tall { grid-row: span 4; }
  .big-idea-mid  { grid-row: span 3; }
}

/* Hero slow pan — drift the image horizontally to reveal a wide composition */
@keyframes heroPanLR {
  0%   { object-position: 0% center; }
  100% { object-position: 100% center; }
}
.detail-hero-full.hero-pan .hero-image img,
.detail-hero-full.hero-pan .hero-image video {
  transform: scale(1.04);
  animation: heroPanLR 18s ease-in-out infinite alternate;
}

/* Center the hero overlay block horizontally, but keep text left-aligned inside.
   Overlay sizes to its widest content (the subtitle), then centers via auto margin. */
.detail-hero-full.hero-centered .hero-overlay {
  text-align: left;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.detail-hero-full.hero-centered .detail-title,
.detail-hero-full.hero-centered .detail-subtitle {
  text-align: left;
  max-width: none;
}
.detail-hero-full.hero-centered .detail-subtitle {
  white-space: nowrap;
}
/* Wrap variant — allow subtitle to break onto two lines when it gets long */
.detail-hero-full.hero-centered.hero-wrap .hero-overlay {
  max-width: 760px;
}
.detail-hero-full.hero-centered.hero-wrap .detail-subtitle {
  white-space: normal;
  max-width: 720px;
  line-height: 1.4;
}

/* Loop / walkthrough variant — flat (no shadow), crop bottom whitespace */
.walkthrough-media.no-shadow {
  background: transparent;
  box-shadow: none;
  max-width: 100%;
  aspect-ratio: 16/7;
}
.walkthrough-media.no-shadow img,
.walkthrough-media.no-shadow video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Right-aligned button wrapper */
.btn-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

/* Natural-fit variant — show full image without cropping; rounded corners on actual image. */
.gallery.natural-fit,
.journey-strip.natural-fit {
  align-items: start;
}
.gallery.natural-fit .gallery-item {
  background: transparent;
  aspect-ratio: auto;
  overflow: visible;
}
.gallery.natural-fit .gallery-item img,
.gallery.natural-fit .gallery-item video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
/* Posters: each fills column width at natural height (Pinterest-style).
   All columns same width → equal horizontal gaps. Image is its own visible bound,
   so border-radius lands on the actual image edges. */
.journey-strip.natural-fit .journey-screen {
  background: transparent;
  overflow: visible;
  aspect-ratio: auto;
}
.journey-strip.natural-fit .journey-screen img,
.journey-strip.natural-fit .journey-screen video {
  position: relative;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
  display: block;
  border-radius: 4px;
}
/* Crop-bottom modifier — force 3:4 aspect, image fills container, bottom gets cropped */
.journey-strip.natural-fit .journey-screen.crop-bottom {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.journey-strip.natural-fit .journey-screen.crop-bottom img,
.journey-strip.natural-fit .journey-screen.crop-bottom video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Graphic Design: keep key visuals and posters on one consistent corner radius. */
.graphic-design-page .gallery-item,
.graphic-design-page .journey-screen,
.graphic-design-page .gallery-item img,
.graphic-design-page .gallery-item video,
.graphic-design-page .journey-screen img,
.graphic-design-page .journey-screen video {
  border-radius: 10px;
}
.graphic-design-page .kv-gallery .gallery-item {
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  border-radius: 15px;
}
.graphic-design-page .kv-gallery .gallery-item img,
.graphic-design-page .kv-gallery .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* =========================================================
   Usability + Value — text + 4 before/after phone screens
   (Nordstrom for All Forms detail page)
   ========================================================= */
.usability-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  margin-top: 24px;
  align-items: start;
}
.usability-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.usability-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.usability-heading {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}
.usability-section p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.usability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.usability-page-label {
  grid-column: span 2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.usability-pair {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.usability-screen {
  width: 100%;
  aspect-ratio: 9/19;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.usability-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.usability-label {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}
.usability-label.adopted {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.usability-label.cut {
  color: rgba(255,255,255,0.45);
}

@media (max-width: 860px) {
  .usability-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .usability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   Early Sketches — 5-card concept grid with adopted/cut states
   (Nordstrom for All Forms detail page)
   ========================================================= */
.sketches-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.sketch-card {
  padding: 22px 20px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.08);
}
.sketch-num {
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.sketch-status {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.sketch-rationale {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Adopted: brand gradient text, soft pink-orange tinted bg, gradient ring */
.sketch-adopted {
  background:
    linear-gradient(180deg, rgba(255,95,162,0.06), rgba(255,193,77,0.04));
  border: 1px solid transparent;
}
.sketch-adopted::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.sketch-adopted .sketch-num,
.sketch-adopted .sketch-status {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sketch-adopted .sketch-rationale {
  color: rgba(255,255,255,0.92);
}

/* Cut: muted, dimmed, plain border */
.sketch-cut {
  background: rgba(255,255,255,0.03);
  opacity: 0.7;
}
.sketch-cut .sketch-num {
  color: rgba(255,255,255,0.4);
}
.sketch-cut .sketch-status {
  color: rgba(255,255,255,0.55);
}
.sketch-cut .sketch-rationale {
  color: rgba(255,255,255,0.6);
}

@media (max-width: 860px) {
  .sketches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   Game Flow — 3-col numbered grid (DIOR Baby detail page)
   ========================================================= */
.game-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  margin-top: 24px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-screen {
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  min-height: auto;
}
.flow-screen img,
.flow-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flow-num {
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  display: block;
  margin-top: 6px;
}
.flow-caption {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.flow-caption strong {
  display: block;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 2px;
}

/* =========================================================
   Interaction Journey — 5-step phone strip (DIOR Spring)
   ========================================================= */
.journey-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 24px;
}
/* 6-column variant for DIOR Spring's full vending-to-cookie flow */
.journey-strip.journey-strip-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
.journey-strip.journey-strip-6 .journey-screen {
  border-radius: 10px;
}
/* Standalone iPhone 16 frame — apply directly on .journey-screen (any context) */
.journey-screen.phone-frame {
  background: #0a0a0a;
  border: 2px solid #1a1a1a;
  border-radius: 36px;
  padding: 6px;
  overflow: visible;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 12px 30px rgba(0,0,0,0.45);
  position: relative;
}
.journey-screen.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
}
.journey-screen.phone-frame > img,
.journey-screen.phone-frame > video {
  border-radius: 28px;
}
/* Vertical-scroll content inside a phone frame (for long landing pages).
   Absolutely positioned inside the phone-frame so its scroll area has
   a guaranteed height independent of % resolution against aspect-ratio. */
.journey-screen.phone-frame > .phone-scroll {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  right: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  background: #fff;
}
.phone-scroll::-webkit-scrollbar { width: 4px; }
.phone-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }
.phone-scroll::-webkit-scrollbar-track { background: transparent; }
.journey-screen.phone-frame > .phone-scroll > img,
.journey-screen.phone-frame > .phone-scroll > video {
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
  border-radius: 0;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: scrollCueFloat 1.2s ease-in-out infinite;
}
.scroll-cue-arrow {
  font-size: 15px;
  line-height: 1;
}
.journey-screen.phone-frame:hover .scroll-cue {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  animation-play-state: paused;
}
@keyframes scrollCueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* Center captions and labels under each focus-item (Ecolean Content System) */
.focus-grid.centered-captions .focus-item {
  text-align: center;
}
.focus-grid.centered-captions .focus-item .logo-label {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   On-site mosaic — left column has 2 stacked, middle and right each
   one tall image; container has a 16/9 aspect ratio so heights align.
   ========================================================= */
.onsite-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  aspect-ratio: 16/9;
  margin-top: 24px;
}
.onsite-mosaic img,
.onsite-mosaic video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.mosaic-tl    { grid-column: 1; grid-row: 1; }
.mosaic-bl    { grid-column: 1; grid-row: 2; object-position: center top; }
.mosaic-mid   { grid-column: 2; grid-row: 1 / 3; }
.mosaic-right { grid-column: 3; grid-row: 1 / 3; }
.mosaic-mobile-hero { display: none !important; }

@media (max-width: 720px) {
  .onsite-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    aspect-ratio: auto;
  }
  .mosaic-tl, .mosaic-bl, .mosaic-mid, .mosaic-right {
    grid-column: 1;
    grid-row: auto;
  }
}

/* =========================================================
   2/1/1 on-site gallery — 2 cols row 1, 1 full row 2, 1 full row 3
   ========================================================= */
.onsite-211 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.onsite-211 img,
.onsite-211 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  aspect-ratio: 16/10;
}
.onsite-211 .full {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}
@media (max-width: 720px) {
  .onsite-211 { grid-template-columns: 1fr; }
  .onsite-211 img, .onsite-211 video,
  .onsite-211 .full { aspect-ratio: 16/10; }
}

/* =========================================================
   Auto-rotating image carousel (3 or 4 images, smooth crossfade)
   ========================================================= */
.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}
.image-carousel img,
.image-carousel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.shine-concept-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.image-carousel.contain-carousel {
  background: transparent;
  overflow: visible;
}
.image-carousel.contain-carousel img,
.image-carousel.contain-carousel video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: initial;
  border-radius: 12px;
}
.image-carousel.carousel-3 img {
  animation: carouselFade3 12s infinite;
}
.image-carousel.carousel-3 img:nth-child(1) { animation-delay: 0s; }
.image-carousel.carousel-3 img:nth-child(2) { animation-delay: -8s; }
.image-carousel.carousel-3 img:nth-child(3) { animation-delay: -4s; }
@keyframes carouselFade3 {
  0%        { opacity: 0; }
  5%, 30%   { opacity: 1; }
  37%, 100% { opacity: 0; }
}
.image-carousel.carousel-4 img {
  animation: carouselFade4 16s infinite;
}
.image-carousel.carousel-4 img:nth-child(1) { animation-delay: 0s; }
.image-carousel.carousel-4 img:nth-child(2) { animation-delay: -12s; }
.image-carousel.carousel-4 img:nth-child(3) { animation-delay: -8s; }
.image-carousel.carousel-4 img:nth-child(4) { animation-delay: -4s; }
@keyframes carouselFade4 {
  0%        { opacity: 0; }
  3%, 22%   { opacity: 1; }
  28%, 100% { opacity: 0; }
}

/* =========================================================
   Shine Forest on-site mosaic — 3 cols × 4 rows
   Left: 2 stacked equal | Mid: small/big/small | Right: 2 stacked equal
   ========================================================= */
.shine-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  gap: 16px;
  aspect-ratio: 1/1;
  margin-top: 24px;
}
.shine-mosaic img,
.shine-mosaic video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.shine-1 { grid-column: 1; grid-row: 1 / 3; }
.shine-7 { grid-column: 1; grid-row: 3 / 5; }
.shine-3 { grid-column: 2; grid-row: 1; }
.shine-4 { grid-column: 2; grid-row: 2 / 4; }
.shine-6 { grid-column: 2; grid-row: 4; }
.shine-5 { grid-column: 3; grid-row: 1 / 3; }
.shine-2 { grid-column: 3; grid-row: 3 / 5; }

@media (max-width: 720px) {
  .shine-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
  }
  .shine-1, .shine-2, .shine-3, .shine-4, .shine-5, .shine-6, .shine-7 {
    grid-column: auto;
    grid-row: auto;
  }
  .shine-mosaic img { aspect-ratio: 4/5; }
}

/* =========================================================
   Pinterest-style masonry layout (CSS columns)
   ========================================================= */
.masonry-grid {
  column-count: 3;
  column-gap: 12px;
  margin-top: 24px;
}
.masonry-grid > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 12px;
  display: block;
  width: 100%;
}
.masonry-grid img,
.masonry-grid video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
@media (max-width: 860px) {
  .masonry-grid { column-count: 2; }
}

/* Vertically stacked image column (Ecolean Visual Content) — matches phone aspect.
   Each image lives in a cell; image is absolutely sized to its visible content
   so border-radius sits on the actual image edges (not the empty letterbox area). */
.visual-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  aspect-ratio: 9/19;
}
.visual-stack-cell {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
}
.visual-stack-cell img,
.visual-stack-cell video {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  display: block;
}

/* iPhone-style framed strip — narrower phones with mockup frame + smaller labels */
.journey-strip.phone-strip {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  gap: 36px;
}
.journey-strip.phone-strip .journey-screen {
  background: #0a0a0a;
  border: 2px solid #1a1a1a;
  border-radius: 36px;
  padding: 6px;
  overflow: visible;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 12px 30px rgba(0,0,0,0.45);
  position: relative;
}
/* Dynamic island */
.journey-strip.phone-strip .journey-screen::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
}
.journey-strip.phone-strip .journey-screen img,
.journey-strip.phone-strip .journey-screen video {
  border-radius: 28px;
}
.journey-strip.phone-strip .journey-num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  padding-bottom: 0.06em;
}
.journey-strip.phone-strip .journey-caption {
  font-size: 13px;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 10px;
}
.journey-screen {
  width: 100%;
  aspect-ratio: 9/19;
  border-radius: 22px;
  overflow: hidden;
  min-height: auto;
}
.journey-screen img,
.journey-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.journey-num {
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  display: block;
}
.journey-caption {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.80);
}
.journey-meta {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin-top: 2px;
}
.journey-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.2s ease;
}
.journey-link span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  z-index: 1;
}
.journey-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.journey-link:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

/* =========================================================
   Gurley Proof — Logo Inspiration tiles + Brand Film 2-col
   ========================================================= */
.col-media.logo-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
}
.col-media.logo-tile > img,
.col-media.logo-tile > video {
  border-radius: 6px;
}
.col-media.logo-tile-white {
  background: #ffffff;
  border-color: rgba(255,255,255,0.18);
}
.logo-label {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  display: block;
  margin-bottom: 10px;
}

.brand-film-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 36px;
  margin-top: 24px;
  align-items: stretch;
}
.brand-film-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-film-sublabel {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
}
.brand-film-video {
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  flex: 1 1 0;
}
.brand-film-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-film-storyboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  background: transparent;
}
.brand-film-storyboard img,
.brand-film-storyboard video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.brand-film-credits {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 28px;
  letter-spacing: 0.3px;
}

@media (max-width: 860px) {
  .brand-film-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   On-site Experience — asymmetric photo mosaic (DIOR Spring)
   1 large left + 2 stacked right
   ========================================================= */
.onsite-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  margin-top: 24px;
}
.onsite-item {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/10;
  min-height: auto;
  background: #111;
  position: relative;
}
.onsite-item img,
.onsite-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Large item spans both rows. Force aspect-ratio off, and absolute-position
   the video/img so it can't dictate its own height — the row span
   (2 small items + gap) sets the height. */
.onsite-item.large {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.onsite-item.large img,
.onsite-item.large video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer nav */
.detail-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.detail-nav-btn { padding: 14px 36px; font-size: 14px; }

/* Detail page responsive */
@media (max-width: 860px) {
  .detail { padding: 100px 24px 60px; }
  .detail-hero { grid-template-columns: 1fr; gap: 32px; }
  .detail-hero-full { min-height: 380px; border-radius: 12px; }
  .hero-overlay { padding: 28px 24px; }
  .meta-strip { grid-template-columns: repeat(2, 1fr); }
  .all-forms-meta { grid-template-columns: 1fr; }
  .all-forms-meta .meta-value { white-space: normal; }
  .detail-block.two-col { grid-template-columns: 1fr; gap: 32px; }
  .focus-grid { grid-template-columns: 1fr; }
  .nowrap-focus { white-space: normal; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 16/10; }
  .game-flow { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .journey-strip { grid-template-columns: repeat(2, 1fr); }
  .onsite-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .onsite-item.large { grid-row: auto; aspect-ratio: 4/3; }
  .detail-footer-nav { flex-direction: column; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { gap: 28px; font-size: 12px; letter-spacing: 1.5px; }
  .home { padding: 0 24px; }
  .about-top { grid-template-columns: 1fr; }
  .about-photo { min-height: 420px; }
  .about-info { padding: 40px 24px; }
  .info-row { grid-template-columns: 1fr; gap: 12px; }
  .about-bottom { padding: 60px 24px; }
  .experience-grid { grid-template-columns: 1fr; gap: 30px; }
  .experience-side { position: relative; top: 0; align-items: flex-start; text-align: left; gap: 40px; }
  .projects { padding: 40px 24px; }
  .cards { grid-template-columns: 1fr; }
  .contact { padding: 80px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .experience-list li { grid-template-columns: 100px 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 80px;
  }
  body {
    overflow-x: hidden;
  }
  .nav {
    top: 10px;
    left: 10px;
    right: 10px;
    height: 52px;
  }
  .nav-inner {
    padding: 0 14px;
    gap: 10px;
  }
  .logo {
    height: 16px;
  }
  .nav-links {
    margin-left: auto;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 1px;
    justify-content: flex-end;
  }
  .nav-links a,
  .nav-item > a {
    width: auto;
    min-width: 0;
    padding: 8px 0;
  }
  .nav-projects {
    position: static;
  }
  .project-menu {
    position: fixed;
    top: 72px;
    left: 50%;
    width: min(86vw, 320px);
    gap: 8px;
    transform: translateX(-50%) translateY(8px);
    z-index: 120;
  }
  .project-menu::before {
    display: none;
  }
  .nav-projects:hover .project-menu,
  .nav-projects:focus-within .project-menu,
  .nav-projects.is-open .project-menu {
    transform: translateX(-50%) translateY(0);
  }
  .project-menu a {
    width: 100%;
    min-width: 0;
    padding: 12px 18px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  .home {
    min-height: 100svh;
    padding: 96px 20px 46px;
    align-items: flex-end;
  }
  .home-bg {
    background:
      linear-gradient(180deg, rgba(37,37,37,0.04) 0%, rgba(37,37,37,0.52) 100%),
      linear-gradient(90deg, rgba(184,170,150,0.45) 0%, rgba(184,170,150,0.12) 44%, rgba(184,170,150,0) 72%),
      url('images/homepage.png') 56% center / cover no-repeat,
      #a89682;
  }
  .home-content {
    max-width: 100%;
    margin: 0;
    padding-top: 0;
  }
  .home-content h1 {
    font-size: 30px;
    line-height: 1.18;
    max-width: 330px;
    margin-bottom: 22px;
  }
  .home-lead {
    max-width: 330px;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 10px;
    text-align: left;
  }
  .home-signature {
    margin-top: 30px;
    font-size: 15px;
  }
  .contact {
    padding: 80px 20px;
  }
  .connect-pressure {
    min-height: 104px;
    margin-bottom: 32px;
  }
  .contact-grid,
  .contact-grid.contact-grid-3 {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 14px;
  }
  .contact-card {
    width: 100%;
    min-width: 0;
    padding: 22px 24px;
  }
  .contact-value {
    overflow-wrap: anywhere;
  }
  .lets-talk-btn {
    margin-top: 24px;
    padding: 14px 34px;
  }
}

@media (max-width: 390px) {
  .nav-inner {
    padding: 0 12px;
  }
  .nav-links {
    gap: 9px;
    font-size: 9.5px;
    letter-spacing: 0.8px;
  }
  .logo {
    height: 15px;
  }
  .home-content h1 {
    font-size: 28px;
    max-width: 300px;
  }
  .home-lead {
    max-width: 305px;
  }
}

/* =========================================================
   Mobile-only polish
   Keep desktop unchanged; all rules below are scoped to phone widths.
   ========================================================= */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 56px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a,
  .nav-item > a {
    width: 54px;
    min-width: 54px;
  }

  .nav-item > a {
    width: 64px;
    min-width: 64px;
  }

  .project-menu {
    width: min(76vw, 286px);
  }

  .project-menu a {
    width: 100% !important;
    min-width: 0 !important;
    display: block;
  }

  .section-title {
    scroll-margin-top: 72px;
  }

  .home {
    min-height: 100svh;
    padding: 92px 20px 46px;
    align-items: center;
  }

  .home-bg {
    background:
      linear-gradient(180deg, rgba(37,37,37,0.05) 0%, rgba(37,37,37,0.50) 100%),
      linear-gradient(90deg, rgba(184,170,150,0.45) 0%, rgba(184,170,150,0.12) 44%, rgba(184,170,150,0) 72%),
      url('images/homepage.png') 72% center / cover no-repeat,
      #a89682;
  }

  .home-content {
    transform: translateY(calc(12vh + 80px));
  }

  .about-photo {
    min-height: 320px;
    background: url('images/selfie.jpg') center top / 80% auto no-repeat, #2a2a2a;
  }

  .about-bottom {
    padding: 70px 20px 86px;
  }

  .experience-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .experience-side {
    display: contents;
  }

  .experience-list {
    order: 1;
  }

  .experience-side .huge {
    order: 0;
    font-size: 40px;
    line-height: 0.98;
  }

  .experience-side .resume-btn {
    order: 2;
    align-self: flex-start;
    padding: 11px 24px;
    font-size: 12px;
  }

  .experience-list li {
    grid-template-columns: 82px 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .exp-year,
  .exp-role p {
    font-size: 12px;
  }

  .exp-role h4 {
    font-size: 13px;
    letter-spacing: 0.6px;
  }

  .modal {
    padding: 74px 10px 12px;
    align-items: flex-start;
  }

  .modal-card {
    width: calc(100vw - 20px);
    height: calc(100svh - 92px);
    border-radius: 12px;
  }

  .modal-pdf {
    min-height: 0;
  }

  .modal-footer {
    padding: 9px 10px;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 11px;
  }

  .modal-footer a {
    padding: 6px 10px;
  }

  @media (orientation: portrait) {
    #resumeModal.modal {
      padding: 66px 14px 18px;
      align-items: center;
    }

    #resumeModal .modal-card {
      width: min(86vw, 360px);
      height: auto;
      max-height: calc(100svh - 92px);
      border-radius: 14px;
    }

    #resumeModal .modal-pdf-wrap {
      display: none;
    }

    #resumeModal .resume-image-preview {
      display: flex;
      flex: 0 0 auto;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      height: min(calc(86vw * 1.414), calc(100svh - 158px));
      max-height: calc(100svh - 158px);
      overflow-y: auto;
      overflow-x: hidden;
      padding: 8px;
      background: #f5f5f5;
      -webkit-overflow-scrolling: touch;
    }

    #resumeModal .resume-image-preview img {
      width: 100%;
      height: auto;
      display: block;
      flex: 0 0 auto;
      background: #fff;
      border-radius: 4px;
    }

    #resumeModal .modal-footer {
      min-height: 52px;
    }

    #resumeModal .modal-close {
      top: 10px;
      right: 10px;
      width: 34px;
      height: 34px;
    }
  }

  .detail {
    padding: 82px 20px 56px;
  }

  .breadcrumb {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .detail-hero-full {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
  }

  .hero-image img,
  .hero-image video {
    object-fit: cover;
    object-position: center;
    transform: none;
    background: transparent;
  }

  .hero-image img[src*="dior-women-hero"],
  .hero-image img[src*="dior-baby-hero"],
  .hero-image img[src*="dior-spring-hero"] {
    object-position: 42% center;
  }

  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]),
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]),
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) {
    width: calc(100% + 34px);
    margin-left: -17px;
    margin-right: -17px;
    border-radius: 10px;
    overflow: hidden;
    clip-path: inset(0 round 10px);
    background: #c9c699;
    padding: 1px;
  }

  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]) .hero-image,
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]) .hero-image,
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) .hero-image {
    inset: 1px;
    border-radius: 9px;
    overflow: hidden;
    background: #c9c699;
  }

  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]) .hero-image img,
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]) .hero-image img,
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) .hero-image img {
    border-radius: 9px;
  }

  .detail-hero-full.hero-pan .hero-image img,
  .detail-hero-full.hero-pan .hero-image video {
    transform: scale(1.04);
  }

  .hero-overlay {
    padding: 24px 20px;
    gap: 8px;
  }

  .detail-title {
    font-size: 34px;
    line-height: 1.06;
    letter-spacing: -0.8px;
  }

  .detail-subtitle {
    font-size: 14px;
    line-height: 1.45;
  }

  .meta-strip,
  .all-forms-meta {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 18px 0;
    margin-bottom: 30px;
  }

  .all-forms-meta .meta-item:nth-child(2),
  .meta-item {
    justify-self: stretch;
    align-items: flex-start;
    text-align: left;
  }

  .all-forms-meta .meta-value {
    white-space: normal;
  }

  .detail-block {
    margin-bottom: 30px;
  }

  .detail-block.two-col {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .block-label {
    font-size: 13px;
    letter-spacing: 2.4px;
    margin-bottom: 8px;
  }

  .block-lead,
  .block-body,
  .detail-block.two-col p:not(.block-label) {
    font-size: 15px;
    line-height: 1.62;
  }

  .col-media,
  .col-media:has(> img),
  .col-media:has(> video),
  .dior-maze-media,
  .winter-approach-media {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    position: relative;
  }

  .col-media img,
  .col-media video,
  .dior-maze-media img,
  .winter-approach-media img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
  }

  .col-media-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: auto;
  }

  .stack-cell {
    min-height: 0;
  }

  .stack-cell img,
  .stack-cell video {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
  }

  .col-media-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: auto;
  }

  .col-media-pair img,
  .col-media-pair video {
    height: auto;
    object-fit: contain;
    border-radius: 8px;
  }

  .shine-concept-media {
    height: auto;
    aspect-ratio: auto;
    border-radius: 8px;
    overflow: hidden;
  }

  .shine-concept-media .image-carousel {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
  }

  .shine-concept-media .image-carousel img {
    border-radius: 8px;
  }

  .focus-grid,
  .focus-grid[style] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .focus-item {
    padding: 16px 0;
  }

  .focus-num,
  .focus-item .focus-num[style] {
    font-size: 22px !important;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .focus-item p {
    font-size: 14px;
    line-height: 1.55;
  }

  .flow-diagram {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100%;
    border-radius: 8px;
  }

  .flow-diagram img {
    border-radius: 8px;
  }

  .journey-strip.journey-strip-6 {
    display: flex;
    grid-template-columns: none !important;
    overflow-x: auto;
    gap: 14px;
    padding: 0 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .journey-strip.journey-strip-6 .journey-step {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }

  .journey-strip.journey-strip-6 .journey-screen {
    aspect-ratio: 9 / 16;
    border-radius: 8px;
  }

  .product-tour-strip {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    gap: 10px;
    padding: 0 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-tour-strip .journey-step {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .product-tour-strip .journey-screen {
    max-width: 310px;
    margin: 0 auto;
  }

  .journey-link {
    align-self: center;
    width: auto;
    padding: 8px 14px;
    font-size: 11px;
  }

  .usability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    gap: 12px;
  }

  .usability-grid > :nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  .usability-grid > :nth-child(2) { grid-column: 1 / -1; grid-row: 3; }
  .usability-grid > :nth-child(3) { grid-column: 1; grid-row: 2; }
  .usability-grid > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .usability-grid > :nth-child(5) { grid-column: 1; grid-row: 4; }
  .usability-grid > :nth-child(6) { grid-column: 2; grid-row: 4; }

  .usability-page-label {
    grid-column: 1 / -1;
    font-size: 11px;
    text-align: center;
    padding-bottom: 6px;
  }

  .sketches-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sketch-card {
    border-radius: 12px;
    min-height: 108px;
  }

  .big-idea-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    gap: 14px;
    padding-bottom: 12px;
  }

  .big-idea-tall,
  .big-idea-mid {
    flex: 0 0 78%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .big-idea-caption,
  .btn-right {
    text-align: center;
    justify-content: center;
  }

  .presentation-btn,
  .detail-nav-btn {
    padding: 10px 16px;
    font-size: 11px;
    text-align: center;
  }

  .detail-footer-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
  }

  .detail-footer-nav .detail-nav-btn {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  .detail-footer-nav .detail-nav-btn span {
    display: block;
    line-height: 1.3;
  }

  .detail-footer-nav .detail-nav-btn {
    white-space: normal;
  }

  .detail-footer-nav .detail-nav-btn:first-child span {
    text-align: left;
  }

  .detail-footer-nav .detail-nav-btn:last-child span {
    text-align: right;
  }

  .detail-footer-nav .nav-kicker {
    display: block;
    text-align: center;
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 3px;
  }

  .detail-footer-nav .nav-title {
    display: block;
    line-height: 1.2;
  }

  .col-media.logo-tile {
    max-width: 190px;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 10px;
    padding: 14px;
  }

  .logo-label {
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
  }

  .focus-item:has(.logo-tile) {
    text-align: center;
  }

  .focus-item:has(.logo-tile) p {
    text-align: center;
  }

  .brand-film-grid {
    gap: 24px;
  }

  .brand-film-storyboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .brand-film-video {
    flex: none;
    aspect-ratio: auto;
    background: transparent;
    border-radius: 8px;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }

  .brand-film-video video {
    height: auto;
    object-fit: contain;
    border-radius: 8px;
  }

  .detail-block.two-col:has(.image-carousel.carousel-4) .col-media {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .detail-block.two-col:has(.image-carousel.carousel-4) .image-carousel {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
  }

  .onsite-mosaic {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    aspect-ratio: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .onsite-mosaic img,
  .onsite-mosaic video {
    flex: 0 0 82%;
    width: 82%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .onsite-mosaic .mosaic-mobile-hero {
    display: block !important;
    order: 1;
  }

  .onsite-mosaic .mosaic-tl { order: 2; }
  .onsite-mosaic .mosaic-mid { order: 3; }
  .onsite-mosaic .mosaic-right { order: 4; }
  .onsite-mosaic .mosaic-bl { order: 5; }

  .onsite-mosaic .mosaic-mobile-hero,
  .onsite-mosaic .mosaic-tl,
  .onsite-mosaic .mosaic-mid,
  .onsite-mosaic .mosaic-right {
    grid-column: auto;
    grid-row: auto;
  }

  .onsite-mosaic .mosaic-bl {
    flex-basis: 82%;
    width: 82%;
    grid-column: auto;
    grid-row: auto;
  }

  .onsite-mosaic .mosaic-bl {
    aspect-ratio: 3 / 2;
    object-position: center top;
  }

  .journey-strip:has(.phone-frame) {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    gap: 20px !important;
    max-width: 100%;
    padding: 0 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .journey-strip:has(.phone-frame) .journey-step {
    flex: 0 0 58%;
    scroll-snap-align: start;
  }

  .journey-strip:has(.phone-frame) .journey-screen,
  .journey-screen.phone-frame {
    border-radius: 24px;
    padding: 5px;
  }

  .journey-strip:has(.phone-frame) .journey-screen img,
  .journey-strip:has(.phone-frame) .journey-screen video,
  .journey-screen.phone-frame > img,
  .journey-screen.phone-frame > video {
    border-radius: 19px;
  }

  .focus-grid.centered-captions {
    display: flex;
    grid-template-columns: none !important;
    overflow-x: auto;
    gap: 18px !important;
    padding: 0 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .focus-grid.centered-captions .focus-item {
    flex: 0 0 70%;
    scroll-snap-align: start;
  }

  .focus-grid.centered-captions .journey-screen.phone-frame {
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }

  .visual-stack {
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }

  .shine-mosaic {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    aspect-ratio: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .shine-mosaic img,
  .shine-mosaic video {
    flex: 0 0 78%;
    width: 78%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .graphic-design-page .gallery-item,
  .graphic-design-page .journey-screen,
  .graphic-design-page .gallery-item img,
  .graphic-design-page .gallery-item video,
  .graphic-design-page .journey-screen img,
  .graphic-design-page .journey-screen video,
  .graphic-design-page .kv-gallery .gallery-item,
  .graphic-design-page .kv-gallery .gallery-item img,
  .graphic-design-page .kv-gallery .gallery-item video {
    border-radius: 6px;
  }
}

@media (max-width: 390px) {
  .nav-links {
    gap: 13px;
  }

  .nav-links a,
  .nav-item > a {
    width: 50px;
    min-width: 50px;
  }

  .nav-item > a {
    width: 60px;
    min-width: 60px;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 960px) {
  html {
    scroll-padding-top: 16px;
  }

  .home {
    min-height: 100vh;
    padding: 0 48px;
    padding-top: 12vh;
    align-items: center;
  }

  .home-bg {
    background:
      linear-gradient(90deg, rgba(184,170,150,0.55) 0%, rgba(184,170,150,0.15) 35%, rgba(184,170,150,0) 60%),
      url('images/homepage.png') center center / cover no-repeat,
      #a89682;
  }

  .home-content {
    max-width: min(var(--maxw), calc(100vw - 96px));
    margin: 0 auto;
    padding-top: var(--nav-h);
    transform: none;
  }

  .home-content h1 {
    font-size: 28px;
    line-height: 1.2;
    max-width: 650px;
    margin-bottom: 14px;
  }

  .home-lead {
    max-width: 560px;
    font-size: 12.5px;
    line-height: 1.34;
    margin-bottom: 8px;
    text-align: justify;
  }

  .home-signature {
    margin-top: 14px;
    font-size: 12.5px;
  }

  .projects {
    padding: 32px 16px 46px;
  }

  .project-block {
    padding: 28px 0;
  }

  .section-title {
    font-size: 38px;
    line-height: 1.08;
    margin-bottom: 18px;
    padding-bottom: 0.03em;
    scroll-margin-top: 74px;
  }

  .about-top,
  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .experience-side {
    position: sticky;
    top: 100px;
    order: 0;
    align-items: flex-start;
    text-align: left;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-block.two-col,
  .usability-block,
  .brand-film-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phone landscape = mini desktop.
   Keep portrait mobile untouched, but restore desktop-style proportions when the phone is rotated. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 960px) {
  html {
    scroll-padding-top: 74px;
  }

  .nav {
    top: 10px;
    left: 20px;
    right: 20px;
    height: 50px;
  }

  .nav-inner {
    padding: 0 20px;
    gap: 18px;
  }

  .logo {
    height: 17px;
  }

  .nav-links {
    margin-left: auto;
    gap: clamp(24px, 7vw, 64px);
    font-size: 10px;
    letter-spacing: 1.3px;
    justify-content: flex-end;
  }

  .nav-links a,
  .nav-item > a {
    width: auto;
    min-width: 0;
    padding: 8px 0;
  }

  .nav-projects {
    position: relative;
  }

  .project-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: min(42vw, 320px);
    transform: translateX(-50%) translateY(8px);
    gap: 8px;
  }

  .project-menu a {
    width: 100% !important;
    min-width: 0 !important;
    padding: 11px 18px;
    font-size: 10.5px;
    letter-spacing: 1.1px;
  }

  .home {
    min-height: 100vh;
    padding: 0 44px;
    padding-top: 10vh;
    align-items: center;
  }

  .home-bg {
    background:
      linear-gradient(90deg, rgba(184,170,150,0.55) 0%, rgba(184,170,150,0.15) 35%, rgba(184,170,150,0) 60%),
      url('images/homepage.png') center center / cover no-repeat,
      #a89682;
  }

  .home-content {
    max-width: min(var(--maxw), calc(100vw - 88px));
    margin: 0 auto;
    padding-top: var(--nav-h);
    transform: none;
  }

  .home-content h1 {
    font-size: clamp(23px, 3.1vw, 30px);
    line-height: 1.2;
    max-width: 690px;
    margin-bottom: 14px;
  }

  .home-lead {
    max-width: 430px;
    font-size: clamp(10.5px, 1.25vw, 12px);
    line-height: 1.35;
    margin-bottom: 8px;
    text-align: justify;
  }

  .home-signature {
    margin-top: 14px;
    font-size: clamp(10.5px, 1.25vw, 12px);
  }

  .about-top {
    grid-template-columns: minmax(210px, 0.7fr) minmax(380px, 1.3fr);
  }

  .about-photo {
    min-height: 300px;
    background: url('images/selfie.jpg') center center / cover no-repeat, #2a2a2a;
  }

  .about-info {
    padding: 38px 40px;
  }

  .info-row {
    grid-template-columns: 140px 1fr;
    gap: 24px;
  }

  .about-bottom {
    padding: 72px 42px 86px;
  }

  .experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: stretch;
  }

  .experience-side {
    display: flex;
    position: static;
    top: 92px;
    order: 0;
    align-items: flex-end;
    text-align: right;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
  }

  .experience-side .huge {
    order: initial;
    font-size: 48px;
    line-height: 0.98;
  }

  .experience-side .resume-btn {
    order: initial;
    align-self: flex-end;
    margin-bottom: 17px;
    padding: 12px 34px;
    font-size: 12px;
  }

  .experience-list {
    order: initial;
  }

  .experience-list li {
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding: 17px 0;
  }

  .projects {
    padding: 34px 24px 58px;
  }

  .project-block {
    max-width: min(var(--maxw), calc(100vw - 48px));
    padding: 30px 0;
  }

  .section-title {
    font-size: clamp(34px, 5.4vw, 48px);
    line-height: 1.08;
    margin-bottom: 20px;
    padding-bottom: 0.03em;
    scroll-margin-top: 74px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .card {
    border-radius: 8px;
  }

  .card-img {
    aspect-ratio: 16 / 9;
  }

  .card h3 {
    font-size: 13px;
    padding: 13px 13px 3px;
  }

  .card .card-sub {
    font-size: 11px;
    padding: 0 13px;
    margin-bottom: 7px;
    min-height: 15px;
  }

  .card p {
    font-size: 10.8px;
    line-height: 1.42;
    padding: 0 13px 12px;
  }

  .read-more {
    margin: auto 13px 14px;
    padding: 7px 18px;
    font-size: 10.5px;
  }

  .contact {
    min-height: 100vh;
    padding: 78px 38px 54px;
  }

  .connect-pressure {
    min-height: 96px;
    margin-bottom: 22px;
  }

  .contact-grid,
  .contact-grid.contact-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(var(--maxw), calc(100vw - 76px));
    gap: 14px;
  }

  .contact-card {
    padding: 18px 18px;
  }

  .contact-label {
    font-size: 10px;
  }

  .contact-value {
    font-size: 12px;
  }

  .lets-talk-btn {
    margin-top: 22px;
    padding: 11px 30px;
    font-size: 12px;
  }

  .detail {
    padding: 86px 36px 54px;
  }

  .breadcrumb {
    margin-bottom: 24px;
    font-size: 11px;
  }

  .detail-hero-full {
    min-height: 340px;
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .detail-title {
    font-size: clamp(34px, 5vw, 52px);
  }

  .detail-subtitle {
    font-size: 15px;
    max-width: 820px;
  }

  .meta-strip,
  .all-forms-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px;
    padding: 20px 0;
    margin-bottom: 34px;
  }

  .detail-block {
    margin-bottom: 34px;
  }

  .detail-block.two-col,
  .usability-block,
  .brand-film-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
  }

  .focus-grid,
  .focus-grid[style] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .journey-strip,
  .journey-strip.journey-strip-6 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 18px;
    padding: 0;
  }

  .journey-strip.journey-strip-6 .journey-step {
    flex: initial;
  }

  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]),
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]),
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) {
    background: #c9c699;
  }

  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]) .hero-image,
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]) .hero-image,
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) .hero-image {
    background: #c9c699;
  }

  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]) .hero-image img,
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]) .hero-image img,
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) .hero-image img {
    object-fit: contain;
    object-position: center center;
    transform: none;
  }

  .detail-hero-full:has(.hero-image img[src*="shine-forest-hero"]) .hero-image img {
    object-position: center top !important;
  }

  .journey-strip.journey-strip-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .product-tour-strip,
  .big-idea-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible;
    gap: 18px;
    padding: 0;
  }

  .detail-footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Phone landscape project reset: use one consistent desktop-scaled system for all project cards and project detail pages. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 960px) {
  .projects {
    padding: 56px 34px 70px;
  }

  .project-block {
    max-width: var(--maxw);
    padding: 44px 0;
  }

  .section-title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.2;
    margin-bottom: 40px;
    padding-bottom: 0.08em;
    letter-spacing: -1px;
    scroll-margin-top: 74px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .card {
    border-radius: 10px;
  }

  .card-img {
    aspect-ratio: 16 / 10;
  }

  .card h3 {
    font-size: 16px;
    padding: 18px 18px 4px;
  }

  .card .card-sub {
    font-size: 13px;
    padding: 0 18px;
    margin-bottom: 10px;
    min-height: 18px;
  }

  .card p {
    font-size: 13px;
    line-height: 1.55;
    padding: 0 18px 16px;
  }

  .read-more {
    margin: auto 18px 22px;
    padding: 9px 24px;
    font-size: 12px;
  }

  .detail {
    max-width: 1100px;
    padding: 92px 48px 72px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .detail-hero-full,
  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]),
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]),
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: clamp(300px, 72vh, 420px);
    aspect-ratio: auto;
    border-radius: 24px;
    padding: 0;
    background: #111;
    clip-path: none;
    overflow: hidden;
  }

  .hero-image,
  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]) .hero-image,
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]) .hero-image,
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) .hero-image {
    inset: 0;
    border-radius: inherit;
    background: transparent;
  }

  .hero-image img,
  .hero-image video,
  .detail-hero-full:has(.hero-image img[src*="dior-women-hero"]) .hero-image img,
  .detail-hero-full:has(.hero-image img[src*="dior-baby-hero"]) .hero-image img,
  .detail-hero-full:has(.hero-image img[src*="dior-spring-hero"]) .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transform: scale(1.08);
  }

  .detail-hero-full.hero-pan .hero-image img,
  .detail-hero-full.hero-pan .hero-image video {
    transform: scale(1.08);
  }

  .hero-overlay {
    padding: 48px 56px 32px;
    gap: 14px;
  }

  .detail-title {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.5px;
  }

  .detail-subtitle {
    font-size: 18px;
    line-height: 1.5;
    max-width: 1000px;
  }

  .meta-strip,
  .all-forms-meta {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    padding: 22px 0;
    margin-bottom: 36px;
  }

  .meta-label {
    font-size: 10px;
  }

  .meta-value {
    font-size: 12px;
  }

  .detail-block {
    margin-bottom: 36px;
  }

  .block-label {
    font-size: 12px;
    letter-spacing: 2.4px;
    margin-bottom: 8px;
  }

  .block-lead,
  .block-body,
  .detail-block.two-col p:not(.block-label) {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .detail-block.two-col,
  .usability-block,
  .brand-film-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .focus-grid,
  .focus-grid[style] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }

  .focus-num,
  .focus-item .focus-num[style] {
    font-size: 28px !important;
  }

  .focus-item p,
  .journey-caption,
  .journey-meta,
  .logo-label {
    font-size: 12px;
    line-height: 1.45;
  }

  .journey-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    overflow: visible;
    padding: 0;
  }

  .journey-strip.journey-strip-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
  }

  .journey-strip.journey-strip-6 .journey-step {
    flex: initial;
  }
}

/* iPhone landscape safety pass.
   This final layer prevents Safari text autosizing, preserves images, and avoids short-viewport cropping. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 13px;
  }

  section,
  .home,
  .about,
  .projects,
  .contact,
  .detail,
  .detail-page {
    height: auto;
    overflow: visible;
  }

  .home,
  .contact {
    min-height: 100svh;
  }

  .projects,
  .contact,
  .detail {
    padding-top: 76px;
  }

  .nav {
    height: 50px;
  }

  #resumeModal.modal {
    padding: 54px 22px 14px;
    align-items: center;
  }

  #resumeModal .modal-card {
    width: min(78vw, 640px);
    height: calc(100svh - 74px);
    border-radius: 14px;
  }

  #resumeModal .modal-pdf-wrap {
    display: none;
  }

  #resumeModal .resume-image-preview {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    background: #f5f5f5;
    -webkit-overflow-scrolling: touch;
  }

  #resumeModal .resume-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 4px;
  }

  #resumeModal .modal-footer {
    min-height: 44px;
    padding: 8px 12px;
  }

  .nav-links {
    font-size: clamp(9px, 1.15vw, 11px);
  }

  .project-menu {
    max-height: calc(100svh - 74px);
    overflow-y: auto;
  }

  .section-title {
    font-size: clamp(32px, 4.4vw, 44px);
    line-height: 1.12;
    margin-bottom: 24px;
  }

  .card h3 {
    font-size: clamp(13px, 1.65vw, 16px);
    line-height: 1.25;
  }

  .card .card-sub,
  .card p {
    font-size: clamp(11px, 1.35vw, 13px);
  }

  .read-more {
    font-size: clamp(10.5px, 1.25vw, 12px);
  }

  .detail-title {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
  }

  .detail-subtitle {
    font-size: clamp(13px, 1.7vw, 16px);
    line-height: 1.4;
  }

  .block-label {
    font-size: clamp(11px, 1.3vw, 12px);
  }

  .block-lead,
  .block-body,
  .detail-block.two-col p:not(.block-label),
  .meta-value,
  .focus-item p,
  .journey-caption,
  .journey-meta,
  .logo-label {
    font-size: clamp(11.5px, 1.35vw, 13px);
    line-height: 1.5;
  }

  .meta-label {
    font-size: clamp(9px, 1.1vw, 10px);
  }

  .focus-num,
  .focus-item .focus-num[style] {
    font-size: clamp(22px, 3vw, 28px) !important;
  }

  .home-bg,
  .hero-image,
  .hero-image img,
  .hero-image video,
  .card-img,
  img.card-img,
  video.card-img,
  .col-media,
  .col-media img,
  .col-media video,
  .image-carousel,
  .image-carousel img,
  .journey-screen,
  .journey-screen img,
  .journey-screen video,
  .gallery-item,
  .gallery-item img,
  .gallery-item video,
  .onsite-mosaic,
  .onsite-mosaic img,
  .onsite-mosaic video,
  .shine-mosaic,
  .shine-mosaic img,
  .shine-mosaic video {
    visibility: visible !important;
  }

  .hero-image,
  .hero-image img,
  .hero-image video,
  .card-img,
  img.card-img,
  video.card-img,
  .col-media img,
  .col-media video,
  .image-carousel img,
  .journey-screen img,
  .journey-screen video,
  .gallery-item img,
  .gallery-item video,
  .onsite-mosaic img,
  .onsite-mosaic video,
  .shine-mosaic img,
  .shine-mosaic video {
    display: block !important;
  }

  .mosaic-mobile-hero {
    display: block !important;
  }

  .detail-hero-full {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 8;
    overflow: hidden;
  }

  .detail-hero-full .hero-image {
    position: absolute;
    inset: 0;
  }

  .detail-hero-full .hero-image img,
  .detail-hero-full .hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
  }

  .detail-hero-full.hero-pan .hero-image img,
  .detail-hero-full.hero-pan .hero-image video {
    animation: none;
    transform: none;
  }

  .detail-block,
  .detail-block.two-col,
  .focus-grid,
  .gallery,
  .journey-strip,
  .product-tour-strip,
  .big-idea-grid,
  .onsite-mosaic,
  .shine-mosaic {
    overflow: visible;
  }
}

/* iPhone landscape component layout fixes. Keep these last so project-specific
   galleries do not collapse into portrait/mobile stacking. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  .onsite-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
    overflow: visible;
  }

  .onsite-item {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .onsite-item.large {
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }

  .onsite-item.large img,
  .onsite-item.large video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sketches-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .sketch-card {
    padding: 14px 12px;
    border-radius: 12px;
    gap: 8px;
  }

  .sketch-num {
    font-size: 20px;
  }

  .sketch-status {
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .sketch-rationale {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .product-tour-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px;
    overflow: visible;
    padding: 0;
  }

  .product-tour-strip .journey-step {
    flex: initial;
  }

  .usability-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
  }

  .usability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: 10px;
  }

  .usability-grid > :nth-child(1),
  .usability-grid > :nth-child(2),
  .usability-grid > :nth-child(3),
  .usability-grid > :nth-child(4),
  .usability-grid > :nth-child(5),
  .usability-grid > :nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }

  .usability-page-label {
    grid-column: span 2;
    font-size: 10px;
    text-align: left;
    padding-bottom: 6px;
  }

  .usability-screen {
    aspect-ratio: 9 / 19;
    border-radius: 10px;
    overflow: hidden;
  }

  .big-idea-grid {
    display: grid !important;
    grid-template-columns: 1.25fr 1fr 1.25fr !important;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 10px;
    min-height: min(620px, 145vw);
    overflow: visible;
  }

  .big-idea-item {
    display: block !important;
    overflow: hidden;
    border-radius: 8px;
  }

  .big-idea-tall {
    grid-row: span 3;
  }

  .big-idea-mid {
    grid-row: span 2;
  }

  .big-idea-item img,
  .big-idea-item video {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .onsite-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    aspect-ratio: 16 / 9;
    overflow: visible;
  }

  .onsite-mosaic img,
  .onsite-mosaic video {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .onsite-mosaic .mosaic-mobile-hero {
    display: none !important;
  }

  .onsite-mosaic .mosaic-tl {
    grid-column: 1;
    grid-row: 1;
  }

  .onsite-mosaic .mosaic-bl {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  .onsite-mosaic .mosaic-mid {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .onsite-mosaic .mosaic-right {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  /* About section: scale down as a mini-desktop block in iPhone landscape. */
  .about-top {
    grid-template-columns: minmax(180px, 0.62fr) minmax(420px, 1.38fr);
  }

  .about-photo {
    min-height: 250px;
  }

  .about-info {
    padding: 30px 36px;
  }

  .info-row {
    grid-template-columns: 112px 1fr;
    gap: 18px;
    padding: 18px 0;
  }

  .info-label {
    font-size: 11px;
    letter-spacing: 2.2px;
  }

  .info-body p,
  .focus-list li {
    font-size: 12px;
    line-height: 1.48;
  }

  .edu-title {
    font-size: 12.5px;
  }

  .edu-sub {
    font-size: 11.5px;
  }

  .edu-divider {
    margin: 12px 0;
  }

  /* Ecolean content system: equal media heights and consistent captions. */
  .focus-grid.centered-captions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 28px !important;
  }

  .focus-grid.centered-captions .focus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
  }

  .focus-grid.centered-captions .journey-screen.phone-frame,
  .focus-grid.centered-captions .visual-stack {
    aspect-ratio: auto;
    margin-bottom: 12px !important;
  }

  .focus-grid.centered-captions .journey-screen.phone-frame {
    width: clamp(118px, 13vw, 146px);
    max-width: none;
    height: clamp(224px, 58vh, 276px);
  }

  .focus-grid.centered-captions .visual-stack {
    width: clamp(190px, 22vw, 250px);
    max-width: none;
    height: clamp(224px, 58vh, 276px);
  }

  .focus-grid.centered-captions .journey-screen.phone-frame > img,
  .focus-grid.centered-captions .journey-screen.phone-frame > video,
  .focus-grid.centered-captions .journey-screen.phone-frame > .phone-scroll,
  .focus-grid.centered-captions .visual-stack {
    border-radius: 14px;
  }

  .focus-grid.centered-captions .journey-screen.phone-frame {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .focus-grid.centered-captions .journey-screen.phone-frame > .phone-scroll {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: auto;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
  }

  .focus-grid.centered-captions .journey-screen.phone-frame > .phone-scroll > img,
  .focus-grid.centered-captions .journey-screen.phone-frame > .phone-scroll > video {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: initial;
  }

  .focus-grid.centered-captions .visual-stack-cell img,
  .focus-grid.centered-captions .visual-stack-cell video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  .focus-grid.centered-captions .journey-screen.phone-frame > img,
  .focus-grid.centered-captions .journey-screen.phone-frame > video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .focus-grid.centered-captions .logo-label {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.2;
  }

  .focus-grid.centered-captions .focus-item p {
    min-height: 42px;
    font-size: 12px;
    line-height: 1.42;
  }

  /* Nordstrom x Barbie setup: force two clean columns. */
  .detail-block > .focus-grid[style*="repeat(2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 44px !important;
    align-items: start;
  }

  .detail-block > .focus-grid[style*="repeat(2"] .focus-item {
    min-width: 0;
    padding: 18px 0;
  }

  .detail-block > .focus-grid[style*="repeat(2"] .focus-num {
    display: block;
    font-size: 22px !important;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  /* Nordstrom for All Forms usability grid: lock labels and screens into the correct 4-column desktop order. */
  .usability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .usability-grid > :nth-child(1) {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
  }

  .usability-grid > :nth-child(2) {
    grid-column: 3 / 5 !important;
    grid-row: 1 !important;
  }

  .usability-grid > :nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .usability-grid > :nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .usability-grid > :nth-child(5) {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  .usability-grid > :nth-child(6) {
    grid-column: 4 !important;
    grid-row: 2 !important;
  }

  .usability-heading {
    font-size: 14px;
  }

  .usability-section p {
    font-size: 12px;
    line-height: 1.48;
  }

  .usability-label {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
}
