/* ==========================================================================
   Sam Jafari — Personal Engineering Portfolio
   Apple-inspired design system: typography, calm spacing, restrained motion
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-new(root) {
  animation: vt-fade-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vt-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-4px); }
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-dark: #0a0a0d;
  --bg-dark-card: #15151a;
  --bg-dark-elevated: #1c1c22;

  /* Ink (WCAG AA+ contrast) */
  --ink: #1d1d1f;
  --ink-secondary: #424245;
  --ink-muted: #515154;
  --ink-dark: #f5f5f7;
  --ink-dark-secondary: #c7c7cc;
  --ink-dark-muted: #a1a1a6;

  /* Accent */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.09);
  --accent-dark: #2997ff;
  --accent-dark-soft: rgba(41, 151, 255, 0.14);

  /* Lines & depth */
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.11), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-dark: 0 24px 60px rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii & layout */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --container: 1120px;
  --header-h: 56px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.25, 0.9, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-reveal: 560ms;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

/* Focus states */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-dark :focus-visible {
  outline-color: var(--accent-dark);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-pill);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* Container */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 40px, 840px);
  margin-inline: auto;
}

/* Reading scroll progress bar */
.scroll-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent);
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.scroll-progress.is-active {
  opacity: 0.85;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: opacity var(--dur-fast) ease;
}

.brand:hover {
  opacity: 0.78;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-secondary);
  padding: 6px 2px;
  position: relative;
  transition: color var(--dur-fast) ease;
}

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

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-fast) ease;
}

.nav-toggle:hover {
  background: var(--bg-subtle);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  z-index: 95;
  box-shadow: var(--shadow-md);
}

.nav-drawer[data-open="true"] {
  display: block;
  animation: drawer-in 200ms var(--ease-out) both;
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] {
  background: var(--bg-subtle);
  color: var(--accent);
}

.mobile-swipe-hint {
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-align: center;
  margin: 0 0 12px;
}

.eevs-explorer .mobile-swipe-hint {
  color: var(--ink-dark-muted);
  margin: 0 0 10px;
}

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-dark .eyebrow {
  color: var(--accent-dark);
}

.eyebrow-muted {
  color: var(--ink-muted);
  font-weight: 500;
}

.display-title {
  margin: 0;
  font-size: clamp(2.45rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.036em;
  color: var(--ink);
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-dark .section-title {
  color: var(--ink-dark);
}

.section-lead {
  margin: 14px 0 0;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 60ch;
}

.section-dark .section-lead {
  color: var(--ink-dark-secondary);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.22);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #ebebef;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-inline: 14px;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.section-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink-dark);
  border-color: var(--border-dark);
}

.section-dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}

.text-link:hover {
  gap: 8px;
}

.section-dark .text-link {
  color: var(--accent-dark);
}

/* Badges & Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.section-dark .tag {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-dark-secondary);
  border-color: var(--border-dark);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30b750;
  flex: none;
}

.section-dark .status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-dark-secondary);
  border-color: var(--border-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: clamp(36px, 5.5vw, 72px) 0 clamp(48px, 6.5vw, 84px);
  background: radial-gradient(900px 520px at 85% 0%, rgba(0, 113, 227, 0.055), transparent 65%), var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.hero-positioning {
  margin: 14px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-intro {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 52ch;
}

.hero-availability {
  margin: 20px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.hero-social {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  font-weight: 500;
  transition: color var(--dur-fast) ease;
}

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

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.hero-visual-card:hover {
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.14);
}

.hero-visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.hero-visual-card:hover img {
  transform: scale(1.025);
}

.hero-visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
}

.hero-visual-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.hero-visual-caption span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section Spacing & Bands
   ========================================================================== */
.section {
  padding: clamp(56px, 7.5vw, 104px) 0;
}

.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--ink-dark);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* ==========================================================================
   Selected Engineering Work — Split Feature + Asymmetric Pair
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
  position: relative;
}

.feature-split:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-split-media {
  overflow: hidden;
  background: #e9e9ed;
}

.feature-split-media picture,
.project-card-media picture,
.phone-screen picture,
.spotlight-media picture {
  width: 100%;
  height: 100%;
}

.feature-split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 520ms var(--ease-out);
}

.feature-split:hover .feature-split-media img {
  transform: scale(1.03);
}

.feature-split-body {
  padding: clamp(26px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.card-kicker {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0;
}

.section-dark .card-kicker {
  color: var(--ink-dark-muted);
}

.card-title {
  margin: 0;
  font-size: clamp(1.38rem, 2.2vw, 1.75rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-dark .card-title {
  color: var(--ink-dark);
}

.card-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.section-dark .card-desc {
  color: var(--ink-dark-secondary);
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bento-pair {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.section-dark .project-card {
  background: var(--bg-dark-card);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.section-dark .project-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.project-card-media {
  overflow: hidden;
  background: var(--bg-subtle);
  aspect-ratio: 16 / 10;
}

.section-dark .project-card-media {
  background: #0d0d11;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease-out);
}

.project-card-media.contain-media img {
  object-fit: contain;
  padding: 12px;
  background: #141418;
}

.project-card:hover .project-card-media img {
  transform: scale(1.03);
}

.project-card-body {
  padding: clamp(22px, 2.8vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Pravanda Founder & Native Products Showcase
   ========================================================================== */
.pravanda-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f5f5f7 0%, #ececf0 100%);
  border: 1px solid var(--border);
}

.phone-frame {
  width: min(248px, 78%);
  border-radius: 36px;
  padding: 9px;
  background: #1d1d1f;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 360ms var(--ease-out);
}

.product-card:hover .phone-frame {
  transform: translateY(-3px);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 1080 / 2348;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms var(--ease-out);
}

.screen-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.screen-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.screen-tab:hover {
  background: #ffffff;
  color: var(--ink);
}

.screen-tab[aria-selected="true"] {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.product-caption-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
}

.product-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Moonbase Leadership Spotlight
   ========================================================================== */
.spotlight-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(22px, 3.5vw, 42px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: var(--ink-dark);
}

.spotlight-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: #0c0f1a;
  max-height: 360px;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 42%;
}

/* ==========================================================================
   Experience Timeline & Evidence-Backed Skills
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 0.66fr);
  gap: 16px 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-period {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 0 0 4px;
}

.timeline-org {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.timeline-role {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.timeline-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.timeline-body + .timeline-body {
  margin-top: 10px;
}

.skills-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skill-group {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.skill-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.skill-group p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ==========================================================================
   About & Contact
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.about-media-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-photo-mirror img {
  object-position: center 54%;
}

.about-photo figcaption {
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  background: var(--bg);
}

.facts-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fact-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.fact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.fact-value {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.contact-panel {
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(145deg, #111115 0%, #1a1b22 100%);
  color: var(--ink-dark);
  box-shadow: var(--shadow-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-ext-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: var(--ink-dark);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.contact-ext-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.contact-ext-link span {
  font-size: 12px;
  color: var(--ink-dark-muted);
}

.copy-feedback {
  display: inline-block;
  font-size: 13px;
  color: #6ee794;
  min-height: 1.2em;
}

.email-stack {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
}

.email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.email-row:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.22);
}

.email-row-primary {
  background: rgba(0, 113, 227, 0.14);
  border-color: rgba(41, 151, 255, 0.34);
}

.email-row-primary:hover {
  background: rgba(0, 113, 227, 0.20);
  border-color: rgba(41, 151, 255, 0.48);
}

.email-row-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.email-row-link strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) ease;
}

.email-row-link span {
  font-size: 12.5px;
  color: var(--ink-dark-muted);
}

.email-row-link:hover strong {
  color: var(--accent-dark);
}

.email-copy-btn {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #f5f5f7;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.email-copy-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.email-copy-btn:active {
  transform: scale(0.96);
}

.email-copy-btn[data-copied="true"] {
  background: rgba(48, 183, 80, 0.22);
  border-color: rgba(110, 231, 148, 0.48);
  color: #98f5b1;
}

/* ==========================================================================
   Case Study Pages
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.case-hero {
  padding: clamp(32px, 5vw, 56px) 0 32px;
}

.case-title {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.034em;
  color: var(--ink);
}

.case-subtitle {
  margin: 14px 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 64ch;
}

.case-meta-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-meta-item dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin: 0 0 4px;
}

.case-meta-item dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.case-hero-media {
  margin: 28px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.case-hero-media.is-dark {
  background: #111116;
}

.case-hero-media.is-contain-hero img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #0d101b;
}

.case-hero-media.is-phones {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

/* Wide Apple-style 3-Phone Hero Showcase (never wraps 2-over-1 on desktop) */
.case-phones-breakout {
  width: min(100% - 40px, 1080px);
  margin: 28px auto 0;
  padding: clamp(32px, 4.5vw, 56px) clamp(20px, 3.5vw, 44px) clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: radial-gradient(760px 420px at 50% 0%, rgba(0, 113, 227, 0.065), transparent 70%),
              linear-gradient(180deg, #f5f5f7 0%, #ebebf0 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.phones-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 36px);
  align-items: end;
  max-width: 920px;
  margin-inline: auto;
}

.phone-trio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-trio-item.is-featured {
  transform: translateY(-14px);
}

.phone-frame-pro {
  position: relative;
  width: 100%;
  max-width: 268px;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(155deg, #2c2c30 0%, #161618 45%, #232327 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18),
              0 4px 14px rgba(0, 0, 0, 0.10),
              inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}

.phone-trio-item.is-featured .phone-frame-pro {
  max-width: 286px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.24),
              0 6px 18px rgba(0, 0, 0, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.phone-trio-item:not(.is-featured) .phone-frame-pro {
  transform: scale(0.95);
}

.phone-frame-pro:hover {
  transform: translateY(-4px) scale(1.015) !important;
}

.phone-frame-pro .zoom-trigger {
  border-radius: 31px;
  display: block;
}

.phone-frame-pro .phone-screen {
  border-radius: 31px;
}

.phone-trio-label {
  text-align: center;
}

.phone-trio-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.phone-trio-label span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Portrait Video Layouts (zero empty side pillarboxes, never crushes adjacent text) */
.video-split-card {
  margin: 28px 0;
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 38px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.video-split-card.is-ipad-split {
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
}

.video-portrait-shell {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0d11;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
  line-height: 0;
}

.video-portrait-shell video {
  width: 100%;
  height: auto;
  display: block;
  background: #0d0d11;
}

.video-split-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-split-info h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.video-split-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.video-portrait-grid {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.video-portrait-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.video-portrait-card .video-portrait-shell {
  width: 100%;
  max-width: 310px;
}

.video-portrait-card figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
  max-width: 34ch;
}

/* ==========================================================================
   EEVS — Apple-Silicon Style Interactive Architecture & Filter Visualizer
   ========================================================================== */
.eevs-home-stage {
  background: radial-gradient(640px 380px at 30% 20%, rgba(41, 151, 255, 0.14), transparent 65%),
              linear-gradient(160deg, #0b0d12 0%, #12151f 100%);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-dark);
  min-height: 360px;
}

.eevs-home-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dark-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eevs-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6ee794;
}

.eevs-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30b750;
  box-shadow: 0 0 10px rgba(48, 183, 80, 0.7);
}

.eevs-explorer {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(860px 440px at 50% 0%, rgba(41, 151, 255, 0.13), transparent 65%),
              #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  color: var(--ink-dark);
}

.eevs-explorer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.eevs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eevs-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-dark-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.eevs-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.eevs-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.eevs-svg-wrap {
  padding: clamp(18px, 3vw, 32px);
}

.eevs-svg {
  width: 100%;
  height: auto;
  display: block;
}

.eevs-node {
  transition: opacity 240ms ease, filter 240ms ease;
}

.eevs-node.is-dimmed {
  opacity: 0.28;
}

.eevs-node.is-active rect.node-box {
  stroke: #2997ff;
  stroke-width: 2;
}

.eevs-link {
  transition: opacity 240ms ease, stroke 240ms ease;
}

.eevs-link.is-dimmed {
  opacity: 0.15;
}

.eevs-link.is-active {
  stroke-dasharray: 6 6;
  animation: eevs-flow 1.4s linear infinite;
}

@keyframes eevs-flow {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}

.eevs-detail-panel {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 18px 28px;
  align-items: start;
}

.eevs-detail-panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #ffffff;
}

.eevs-detail-bus {
  margin: 4px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-dark);
}

.eevs-detail-panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-dark-secondary);
}

.eevs-detail-bound {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dark-muted);
}

.eevs-detail-bound strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dark-secondary);
  margin-bottom: 4px;
}

.eevs-spec-grid {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.eevs-spec-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.eevs-spec-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.eevs-spec-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 650;
  color: var(--ink);
}

.eevs-spec-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.eevs-filter-card {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0e1015;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-dark);
  box-shadow: var(--shadow-md);
}

.eevs-filter-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eevs-filter-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.eevs-filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.eevs-toggle-lbl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-dark-secondary);
  cursor: pointer;
}

.eevs-toggle-lbl input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

.eevs-filter-canvas {
  width: 100%;
  height: 230px;
  display: block;
}

.eevs-filter-foot {
  padding: 12px 22px;
  font-size: 12.5px;
  color: var(--ink-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   DishPatch — Scroll-Driven 3D Exploded-to-Assembled Theater
   ========================================================================== */
.dp3d-scroll-track {
  position: relative;
  min-height: 245vh;
  background: #0b0d12;
  margin-top: 28px;
}

.dp3d-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.dp3d-shell {
  width: min(100% - 40px, 1140px);
  height: min(100%, 720px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0e1016;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-dark);
}

.dp3d-viewport {
  position: relative;
  background: radial-gradient(680px 440px at 50% 44%, rgba(41, 151, 255, 0.12), transparent 68%), #0e1016;
  min-height: 440px;
}

.dp3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.dp3d-viewport-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(14, 16, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dark-secondary);
  pointer-events: none;
}

.dp3d-drag-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(14, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: var(--ink-dark-muted);
  pointer-events: none;
}

.dp3d-reset-btn {
  position: absolute;
  bottom: 14px;
  right: 16px;
  appearance: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 22, 28, 0.84);
  color: var(--ink-dark-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.dp3d-reset-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dp3d-hud {
  padding: clamp(20px, 2.6vw, 30px);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: #12141b;
  color: var(--ink-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow-y: auto;
}

.dp3d-stage-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.dp3d-hud h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.dp3d-hud p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.56;
  color: var(--ink-dark-secondary);
}

.dp3d-layers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dp3d-layer-chip {
  appearance: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--ink-dark-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.dp3d-layer-chip:hover,
.dp3d-layer-chip[data-active="true"] {
  background: rgba(41, 151, 255, 0.14);
  border-color: rgba(41, 151, 255, 0.45);
  color: #ffffff;
}

.dp3d-layer-chip small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dark-muted);
}

.dp3d-controls {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp3d-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-dark-muted);
}

.dp3d-slider {
  width: 100%;
  accent-color: var(--accent-dark);
  cursor: pointer;
}

.dp3d-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dp3d-preset-btn {
  appearance: none;
  padding: 7px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-dark-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.dp3d-preset-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.dp3d-preset-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Ultrasonic Scanner 3D Stage (wide breakout card with live telemetry HUD) */
.scan3d-wrap {
  width: min(100% - 40px, 1140px);
  margin: 28px auto 0;
}

.scan3d-wrap .dp3d-shell {
  width: 100%;
  height: 580px;
}

.scan3d-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scan3d-stat {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.scan3d-stat small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dark-muted);
  margin-bottom: 3px;
}

.scan3d-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 650;
  color: #ffffff;
}

.scan3d-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(48, 183, 80, 0.16);
  border: 1px solid rgba(110, 231, 148, 0.35);
  color: #7df09e;
  align-self: flex-start;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.scan3d-status-badge[data-hit="true"] {
  background: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 105, 97, 0.45);
  color: #ff8a80;
}

.case-prose {
  padding: clamp(32px, 5vw, 56px) 0;
}

.case-prose h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.case-prose h2:first-child {
  margin-top: 0;
}

.case-prose p,
.case-prose li {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-secondary);
  max-width: 68ch;
}

.case-prose ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.case-prose li + li {
  margin-top: 8px;
}

.callout-note {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--accent);
  max-width: 68ch;
}

.callout-note strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}

.callout-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

/* Zoomable figures & gallery */
.zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.zoom-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 24, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.92;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.zoom-trigger:hover .zoom-badge {
  opacity: 1;
  transform: scale(1.03);
}

.figure-caption {
  padding: 13px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
  flex: 1;
}

.case-hero-media.is-dark .figure-caption {
  background: #17171c;
  color: var(--ink-dark-muted);
  border-top-color: var(--border-dark);
}

.gallery-grid {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.gallery-card.is-contain img {
  object-fit: contain;
  background: #131318;
  padding: 10px;
}

.gallery-card.is-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f0f0f3;
}

.gallery-card .zoom-trigger:hover img {
  transform: scale(1.025);
}

.video-figure {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0d11;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.video-stage {
  display: flex;
  justify-content: center;
  background: #0d0d11;
}

.video-stage video {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  background: #0d0d11;
}

.case-next-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.next-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  min-width: 240px;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), background var(--dur-fast) ease;
}

.next-link-card:hover {
  border-color: var(--border-strong);
  background: #efeff2;
  transform: translateY(-2px);
}

.next-link-card small {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.next-link-card strong {
  font-size: 15.5px;
  color: var(--ink);
}

/* ==========================================================================
   Resume Page — Embedded Scrollable Document Sheet
   ========================================================================== */
.resume-stage {
  padding: 12px 0 clamp(56px, 7vw, 96px);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.resume-sheet {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 56px);
  color: var(--ink);
}

.resume-doc-head {
  padding-bottom: 22px;
  border-bottom: 1.5px solid var(--ink);
}

.resume-doc-name {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.resume-doc-tagline {
  margin: 8px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.resume-doc-meta {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
  color: var(--ink-muted);
}

.resume-doc-meta a {
  color: var(--accent);
  font-weight: 500;
}

.resume-doc-meta a:hover {
  text-decoration: underline;
}

.resume-doc-section {
  margin-top: 28px;
}

.resume-doc-section-title {
  margin: 0 0 14px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.resume-entry + .resume-entry {
  margin-top: 20px;
}

.resume-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}

.resume-entry-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}

.resume-entry-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.resume-entry-sub {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.resume-bullets {
  margin: 8px 0 0;
  padding-left: 19px;
}

.resume-bullets li {
  font-size: 14.8px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.resume-bullets li + li {
  margin-top: 6px;
}

.resume-skills-list {
  margin: 0;
  padding-left: 19px;
}

.resume-skills-list li {
  font-size: 14.8px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.resume-skills-list li + li {
  margin-top: 6px;
}

.resume-skills-list strong {
  color: var(--ink);
}

.resume-download-bar {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.resume-download-bar h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.resume-download-bar p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Native <dialog> Lightbox
   ========================================================================== */
dialog.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(94vw, 1280px);
  max-height: 92vh;
  width: auto;
  overflow: visible;
  margin: auto;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out),
              display 220ms allow-discrete, overlay 220ms allow-discrete;
}

dialog.lightbox[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  dialog.lightbox[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}

dialog.lightbox::backdrop {
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 220ms ease, display 220ms allow-discrete, overlay 220ms allow-discrete;
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink-dark);
}

.lightbox-counter {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-dark-muted);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  padding: 14px;
  background: #0c0c0f;
}

.lightbox-stage img {
  max-width: min(88vw, 1200px);
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  margin: 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dark-secondary);
  background: #141418;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-secondary);
  transition: color var(--dur-fast) ease;
}

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

/* ==========================================================================
   Scroll Entrance Motion System
   ========================================================================== */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}

.js-ready [data-reveal="visible"] {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.js-ready [data-reveal-delay="1"] { transition-delay: 70ms; }
.js-ready [data-reveal-delay="2"] { transition-delay: 140ms; }
.js-ready [data-reveal-delay="3"] { transition-delay: 210ms; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .feature-split,
  .pravanda-banner,
  .spotlight-card,
  .about-grid,
  .contact-grid,
  .eevs-detail-panel {
    grid-template-columns: 1fr;
  }

  .dp3d-scroll-track {
    min-height: auto;
    padding: 24px 0;
  }

  .dp3d-sticky {
    position: static;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .dp3d-shell,
  .scan3d-wrap .dp3d-shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .dp3d-viewport {
    height: 440px;
    min-height: 360px;
  }

  .dp3d-hud {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .feature-split-media img {
    min-height: 240px;
    max-height: 380px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .case-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
  }

  .hero {
    padding: 28px 0 44px;
  }

  .display-title {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }

  .hero-availability {
    display: flex;
    border-radius: 14px;
    align-items: flex-start;
    padding: 10px 14px;
    line-height: 1.45;
  }

  .hero-availability .status-dot {
    margin-top: 6px;
  }

  .hero-social {
    gap: 12px 18px;
  }

  .section {
    padding: 48px 0;
  }

  .bento-pair,
  .product-grid,
  .gallery-grid,
  .contact-links-grid,
  .facts-strip,
  .video-split-card,
  .video-split-card.is-ipad-split,
  .video-portrait-grid,
  .eevs-spec-grid {
    grid-template-columns: 1fr;
  }

  .video-split-card {
    padding: 18px;
    gap: 18px;
  }

  .video-split-card .video-portrait-shell {
    max-width: 310px;
    margin-inline: auto;
  }

  .video-portrait-card {
    padding: 16px;
  }

  /* Apple-style horizontal scroll-snap phone carousel on mobile */
  .case-phones-breakout {
    padding: 24px 12px 22px;
  }

  .mobile-swipe-hint {
    display: block;
  }

  .phones-trio {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 14px 14px;
    margin-inline: -4px;
    align-items: stretch;
    scrollbar-width: none;
  }

  .phones-trio::-webkit-scrollbar {
    display: none;
  }

  .phone-trio-item {
    flex: 0 0 76%;
    max-width: 268px;
    scroll-snap-align: center;
  }

  .phone-trio-item.is-featured {
    transform: none;
    order: -1;
  }

  .phone-trio-item:not(.is-featured) .phone-frame-pro {
    transform: none;
  }

  .phone-frame-pro,
  .phone-trio-item.is-featured .phone-frame-pro {
    max-width: 100%;
    border-radius: 34px;
    padding: 8px;
  }

  .phone-frame-pro .zoom-trigger,
  .phone-frame-pro .phone-screen {
    border-radius: 26px;
  }

  /* EEVS mobile: horizontal pill bar + pannable full-legibility diagram */
  .eevs-home-stage {
    min-height: auto;
    padding: 18px 16px;
  }

  .eevs-explorer-bar {
    padding: 14px 16px;
    gap: 10px;
  }

  .eevs-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .eevs-tabs::-webkit-scrollbar {
    display: none;
  }

  .eevs-tab {
    flex: none;
    white-space: nowrap;
    min-height: 36px;
  }

  .eevs-svg-wrap {
    padding: 14px 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .eevs-explorer .eevs-svg {
    min-width: 620px;
  }

  .eevs-detail-panel {
    padding: 16px 18px 20px;
  }

  .eevs-filter-head {
    padding: 16px;
  }

  .eevs-filter-toggles {
    gap: 10px 14px;
  }

  .eevs-filter-canvas {
    height: 200px;
  }

  /* 3D viewports compact & uncluttered on mobile */
  .dp3d-viewport {
    height: 350px;
    min-height: 320px;
  }

  .dp3d-viewport-badge {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    font-size: 10.5px;
    padding: 5px 10px;
  }

  .dp3d-drag-hint {
    bottom: 12px;
    left: 12px;
    font-size: 11px;
    padding: 4px 9px;
  }

  .dp3d-reset-btn {
    bottom: 11px;
    right: 12px;
    font-size: 11px;
    padding: 5px 10px;
  }

  .dp3d-hud {
    padding: 18px 16px 20px;
  }

  .dp3d-layer-chip {
    min-height: 44px;
    padding: 10px 12px;
  }

  .dp3d-preset-btn {
    min-height: 40px;
  }

  .scan3d-wrap {
    width: min(100% - 32px, var(--container));
  }

  /* Experience, About, Contact, Resume & Navigation mobile polish */
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .about-media-grid {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    aspect-ratio: 4 / 3;
  }

  .about-photo-mirror img {
    aspect-ratio: 3 / 4;
    object-position: center 54%;
  }

  .phone-frame {
    width: min(260px, 84%);
  }

  .screen-tab {
    min-height: 36px;
    padding: 7px 13px;
  }

  .contact-panel {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .email-row {
    padding: 11px 12px 11px 14px;
    gap: 10px;
  }

  .email-row-link strong {
    font-size: 14px;
  }

  .email-copy-btn {
    min-height: 36px;
    padding: 7px 12px;
  }

  .resume-sheet {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .resume-doc-meta {
    gap: 6px 10px;
    font-size: 13.5px;
  }

  .resume-download-bar {
    padding: 20px 18px;
  }

  .case-hero {
    padding: 24px 0 22px;
  }

  .case-meta-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-next-nav {
    flex-direction: column;
  }

  .next-link-card {
    min-width: 0;
    width: 100%;
    text-align: left !important;
    margin-left: 0 !important;
  }

  .container,
  .container-narrow,
  .case-phones-breakout {
    width: min(100% - 28px, var(--container));
  }

  /* Lightbox mobile sizing */
  dialog.lightbox {
    max-width: 96vw;
  }

  .lightbox-toolbar {
    padding: 10px 12px;
  }

  .lightbox-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .lightbox-stage {
    padding: 10px;
  }

  .lightbox-stage img {
    max-width: 92vw;
    max-height: 62vh;
  }

  .site-footer {
    padding: 28px 0 36px;
  }

  .footer-links {
    gap: 10px 16px;
  }
}

@media (max-width: 520px) {
  .hero-visual-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero .btn-row .btn,
  .contact-panel .btn-row .btn,
  .resume-download-bar .btn-row .btn,
  .spotlight-card .btn-row .btn {
    width: 100%;
    min-height: 46px;
  }

  .product-card,
  .pravanda-banner,
  .spotlight-card {
    padding: 20px 18px;
  }

  .feature-split-body,
  .project-card-body {
    padding: 20px 18px;
  }

  .dp3d-viewport {
    height: 315px;
  }

  .dp3d-viewport-badge span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Reduced Motion Preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dp3d-scroll-track {
    min-height: auto;
    padding: 24px 0;
  }

  .dp3d-sticky {
    position: static;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .eevs-link.is-active {
    animation: none !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
