@font-face {
  font-family: "Johnyvino Text";
  src: url("../assets/fonts/JohnyvinoText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Johnyvino Text";
  src: url("../assets/fonts/JohnyvinoText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Johnyvino Mono";
  src: url("../assets/fonts/JohnyvinoMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* === SURFACES === */
  --canvas: #09090b;
  --surface-soft: #0d0d0d;
  --surface-card: rgba(255, 255, 255, 0.05);
  --surface-elevated: rgba(255, 255, 255, 0.08);
  --surface-light: #f0f0f0;

  /* === BORDERS === */
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.18);

  /* === GLASS === */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-active: rgba(255, 255, 255, 0.1);

  /* === TEXT === */
  --text-primary: #ffffff; /* headlines, big text */
  --text-secondary: #e6e6e6; /* body paragraphs */
  --text-tertiary: #999999; /* captions, labels */
  /* Legacy aliases (do not use in new code) */
  --on-dark: var(--text-primary);
  --body-strong: var(--text-secondary);
  --body: #cccccc;
  --muted: var(--text-tertiary);
  --muted-soft: #666666;

  /* === OVERLAYS === */
  --overlay-light: rgba(0, 0, 0, 0.4);
  --overlay-medium: rgba(0, 0, 0, 0.6);
  --overlay-heavy: rgba(0, 0, 0, 0.8);

  /* === ACCENTS === */
  --link: #c3d9f3;
  --error: #ff4444;

  /* === FONTS === */
  --font-body:
    "Johnyvino Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  --font-mono: "Johnyvino Mono", ui-monospace, "SF Mono", monospace;

  /* === TYPE SCALE === (responsive overrides in media queries) */
  --type-display: 180px; /* hero text */
  --type-title: 56px; /* section h2 titles */
  --type-heading: 17px; /* card / feature titles */
  --type-body-lg: 24px; /* large paragraphs / testimonials */
  --type-body: 17px; /* default body */
  --type-caption: 13px; /* small uppercase labels */

  /* === WEIGHTS === */
  --weight-regular: 400;
  --weight-bold: 700;

  /* Legacy size aliases (kept for backwards compat — do not use in new code) */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 17px;
  --text-lg: 24px;
  --text-xl: 36px;
  --text-display: 48px;
  --text-hero: 120px;

  /* === SPACING === (8px base scale) */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 64px;
  --space-section: 120px;

  /* === LAYOUT === */
  --max-width: 1280px;
  --page-gutter: 48px;
  --content-width: calc(var(--max-width) - var(--page-gutter) * 2);
  --card-portrait-width: 209px;

  /* === RADIUS === */
  --radius-xs: 12px;
  --radius-md: 28px;
  --radius-lg: 36px;
  --radius-xl: 44px;
  --radius-pill: 9999px;

  /* === ELEVATION === (consolidated shadow scale) */
  --elevation-1: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
  --elevation-2: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  --elevation-3: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
  --elevation-4: 0 40px 120px -40px rgba(0, 0, 0, 0.6);

  /* === MOTION === */
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.6s;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Z-INDEX === */
  --z-base: 0;
  --z-above: 1;
  --z-content: 2;
  --z-overlay: 3;
  --z-header: 10;
  --z-nav: 100;
  --z-gate: 9999;
}

.project-card-visual,
.talk-card-visual,
.testimonial,
.human-card-visual,
.header-dropdown,
.video-player,
.btn-glass {
  mask-image: radial-gradient(white, black);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--on-dark);
  background: var(--canvas);
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* === TYPOGRAPHY DESIGN SYSTEM === */
/*
 * One source of truth for all text styles.
 * Sizes scale via --type-* tokens (see :root + media queries).
 * Colors swap via --on-dark, --body-strong, --muted (see light-mode.css).
 *
 * Use semantic .type-* classes for new code.
 * Legacy class names are kept as aliases.
 */

/* Display — hero text */
.display-xl,
.type-display {
  font-family: var(--font-body);
  font-size: var(--type-display);
  font-weight: var(--weight-regular);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}

/* Title — section h2 ("Thinker & Doer at Apple") */
.display-lg,
.type-title {
  font-family: var(--font-body);
  font-size: var(--type-title);
  font-weight: var(--weight-bold);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

/* Heading — card titles ("iOS 26 Visited Places") */
.display-sm,
.type-heading {
  font-family: var(--font-body);
  font-size: var(--type-heading);
  font-weight: var(--weight-bold);
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--on-dark);
}

/* Caption — small uppercase tags ("SPEAKING", "AFTER HOURS") */
.caption,
.type-caption {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  font-weight: var(--weight-regular);
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Body Large — paragraphs / testimonials */
.body-text,
.type-body-lg {
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: var(--weight-regular);
  line-height: 1.35;
  color: var(--on-dark);
}

/* Body — default body / card descriptions */
.body-strong,
.type-body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--on-dark);
}

.body-text em {
  font-style: italic;
}

/* ANIMATIONS */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* VIEW TRANSITIONS */

::view-transition-old(root) {
  animation: none;
  z-index: 1;
}

::view-transition-new(root) {
  animation: none;
  z-index: 2;
  mix-blend-mode: normal;
}

.mobile-only {
  display: none;
}

img,
video,
.project-card-visual,
.talk-card-visual,
.fullbleed-video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-enclosure {
  display: none !important;
}

video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* NAVIGATION - HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 var(--space-md);
  background: transparent;
  color: var(--on-dark);
  overflow: visible;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-menu-btn {
  position: relative;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: none;
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: var(--space-xs) var(--space-md);
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.header-menu-btn:hover {
  background: var(--glass-border);
}

.header-menu-btn:focus {
  outline: none;
}

.header-menu-btn:focus-visible,
.theme-toggle:focus-visible,
.btn-glass:focus-visible,
.btn-icon:focus-visible,
.email-display:focus-visible,
.header-dropdown-item:focus-visible {
  outline: 2px solid var(--link, #4a9eff);
  outline-offset: 2px;
}

.skip-nav {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-elevated, #000);
  color: var(--on-dark, #fff);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: top 0.2s ease;
}

.skip-nav:focus {
  top: var(--space-md);
  outline: 2px solid var(--link, #4a9eff);
  outline-offset: 2px;
}

.header-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
}

.theme-toggle {
  position: relative;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--on-dark);
  cursor: pointer;
  overflow: visible;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.theme-toggle:hover {
  opacity: 0.7;
}

.theme-toggle .icon-moon {
  display: none;
}

body.light-mode .theme-toggle .icon-sun {
  display: none;
}

body.light-mode .theme-toggle .icon-moon {
  display: block;
}

body.light-mode .theme-toggle {
  color: #000;
}

body.light-mode .theme-toggle:hover {
  opacity: 0.7;
}

.toggle-tooltip {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 50%;
  transform: translateX(50%) translateY(-4px);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--on-dark);
  background: var(--hairline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation:
    tooltip-appear 0.4s ease 2s forwards,
    tooltip-pulse 2s ease-in-out 2.4s infinite;
}

.toggle-tooltip.hidden {
  display: none;
}

body.light-mode .toggle-tooltip {
  color: #000;
  background: rgba(0, 0, 0, 0.08);
}

@keyframes tooltip-appear {
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }
}

@keyframes tooltip-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.header-dropdown {
  position: absolute;
  top: 100%;
  left: var(--space-md);
  min-width: 220px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid var(--glass-active);
  border-radius: 28px;
  padding: var(--space-sm);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.header-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.header-dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.header-dropdown-item:hover {
  background: var(--glass-hover);
  color: var(--on-dark);
}

/* SECTION HEADER (shared) */

.section-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  margin-bottom: 80px;
}

.section-header .caption {
  margin-bottom: var(--space-sm);
}

.section-header .display-lg {
  margin-bottom: var(--space-lg);
}

.section-body {
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: var(--weight-regular);
  line-height: 1.35;
  color: var(--body-strong);
  max-width: 640px;
  text-wrap: pretty;
}

.section-body a,
.display-lg a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}

.section-body a:hover,
.display-lg a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* BUTTONS */

.btn-glass {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 16px 36px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.btn-glass:hover {
  background: var(--glass-hover);
  border-color: var(--hairline-strong);
}

.btn-icon {
  width: 64px;
  height: 64px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-icon:hover {
  background: var(--glass-hover);
}

.btn-icon--sm {
  width: 44px;
  height: 44px;
}

.btn-icon svg {
  margin-left: 2px;
}

/* CARD BASE STYLES */

.project-card {
  width: 900px;
  flex-shrink: 0;
}

.project-card--wide {
  width: 900px;
}

.project-card--portrait {
  width: 240px;
}

.project-card--portrait .project-card-visual {
  width: 100%;
}

.project-card-visual {
  display: block;
  width: 100%;
  height: 520px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  position: relative;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  text-decoration: none;
}

.project-card-visual--dark {
  background: var(--surface-soft);
}

.project-card-visual--surface {
  background: var(--surface-elevated);
}

.project-card-visual img,
.project-card-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.project-card-info .display-sm {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--on-dark);
  margin-bottom: 0;
  display: inline;
}

.project-card-info .card-body {
  display: inline;
}

.card-body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  color: var(--body-strong);
}

/* Password gate */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--canvas);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  padding: 10vh var(--page-gutter) 4vh;
  gap: var(--space-xl);
}

.password-gate[hidden] {
  display: none;
}

.password-gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-theme-toggle {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
}

.password-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  padding: 0;
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  margin-top: auto;
}

.gate-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.gate-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  white-space: nowrap;
  text-transform: uppercase;
}

.gate-time-period {
  font-size: 1em;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0;
  align-self: baseline;
}

.gate-location {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--muted);
  min-height: 1.2em;
  margin-top: var(--space-xs);
}

.password-avatar {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.password-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gate-name {
  font-family: var(--font-body);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-transform: none;
  margin: 0;
}

.gate-tagline {
  margin: 0;
  margin-top: calc(var(--space-xs) - var(--space-md));
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

.gate-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  margin: 0;
}

.gate-socials a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gate-socials a:hover {
  color: var(--on-dark);
}

.password-input {
  display: block;
  width: 280px;
  max-width: 100%;
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  letter-spacing: 4px;
  text-align: center;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 14px 24px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.password-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.password-input::placeholder {
  color: var(--muted-soft);
  letter-spacing: 2px;
  text-transform: none;
}

.password-error {
  margin-top: var(--space-md);
  color: var(--error);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-error.visible {
  opacity: 1;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--page-gutter);
  position: relative;
  overflow: hidden;
}

.gestalt-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: var(--z-above);
  text-align: center;
  padding-inline: var(--space-lg);
  width: 100%;
}

.hero-content .caption {
  margin-bottom: var(--space-lg);
}

.hero-content .display-xl {
  color: transparent;
  user-select: none;
  position: relative;
}

.hero-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  max-width: 100%;
  height: auto;
}

/* Origin */

.origin {
  position: relative;
  padding: 0;
}

.origin-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-section) var(--page-gutter);
  text-align: center;
}

.origin-content .body-text {
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: var(--weight-regular);
  line-height: 1.35;
  letter-spacing: normal;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: var(--body-strong);
}

.origin-content .body-text:first-child {
  margin-top: 0;
}

.origin-content .body-text:last-child {
  margin-bottom: 0;
}

.signature {
  margin-top: var(--space-xxl);
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.signature-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.signature-svg .sig-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.signature.signing .sig-stroke {
  animation: drawSignature 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawSignature {
  to {
    stroke-dashoffset: 0;
  }
}

.signature-svg .sig-dot {
  opacity: 0;
}

.signature.signing .sig-dot {
  animation: dotAppear 0.15s ease forwards;
  animation-delay: 2.1s;
}

@keyframes dotAppear {
  to {
    opacity: 1;
  }
}

/* Scroll cards */

.apple-work,
.past-work {
  padding: var(--space-section) 0;
}

.apple-work .section-header,
.past-work .section-header {
  position: relative;
}

.scroll-nav {
  position: absolute;
  right: var(--page-gutter);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

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

.scroll-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
  padding: 0;
}

.scroll-nav-btn:hover:not(:disabled) {
  background: var(--surface-elevated);
  border-color: var(--hairline-strong);
  transform: scale(1.05);
}

.scroll-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.scroll-nav-progress {
  width: 80px;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-nav-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--on-dark);
  transform: scaleX(0.02);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

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

.past-work .project-card {
  width: 372px;
}

.past-work .project-card--wide {
  width: 776px;
}

.past-work .project-card-visual {
  height: 450px;
}

.scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: layout;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container:active {
  cursor: grabbing;
}

.scroll-track {
  display: flex;
  gap: var(--space-xl);
  padding: 0 var(--page-gutter);
  padding-left: max(
    var(--page-gutter),
    calc((100vw - var(--max-width)) / 2 + var(--page-gutter))
  );
  padding-right: max(
    var(--page-gutter),
    calc((100vw - var(--max-width)) / 2 + var(--page-gutter))
  );
  width: max-content;
}

.past-work .project-card--portrait {
  width: var(--card-portrait-width);
}

.past-work .project-card--portrait .project-card-visual {
  width: 100%;
  margin-bottom: var(--space-sm);
}

.past-work .project-card--portrait .project-card-info {
  max-width: var(--card-portrait-width);
}

.past-work .project-card--portrait .card-body {
  max-width: var(--card-portrait-width);
}

/* Interaction design */

.interaction-design {
  padding: var(--space-section) var(--page-gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.interaction-design .section-header {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.fullbleed-video-wrap {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 2px;
  border-radius: calc(var(--radius-xl) + 2px);
  transition:
    transform var(--duration-slow) var(--ease-bounce),
    box-shadow var(--duration-base) ease;
  transform-style: preserve-3d;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.04) 65%,
    rgba(255, 255, 255, 0.2) 85%,
    rgba(255, 255, 255, 0.35) 100%
  );
  box-shadow:
    0 30px 100px -20px rgba(0, 0, 0, 0.7),
    0 60px 140px -30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-12px);
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.fullbleed-video-wrap::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  border-radius: 80px;
  background: radial-gradient(
    ellipse at 50% 120%,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.fullbleed-video-wrap::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  border-radius: 1px;
  pointer-events: none;
  z-index: var(--z-overlay);
}

.fullbleed-video-wrap:hover {
  transform: translateY(-18px);
  box-shadow:
    0 40px 120px -20px rgba(0, 0, 0, 0.8),
    0 80px 160px -40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fullbleed-video {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  background: var(--surface-soft);
}

.fullbleed-video::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 30%
  );
  pointer-events: none;
  z-index: var(--z-content);
}

.fullbleed-video::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  z-index: var(--z-above);
}

.video-player {
  width: 100%;
  display: block;
  margin-bottom: -16px;
  background: var(--surface-card);
}

.video-cta {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.video-cta:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Talks */

.talks {
  padding: var(--space-section) var(--page-gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.talks .section-header {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.talks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-xl);
}

.talk-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition:
    transform var(--duration-slow) var(--ease-bounce),
    box-shadow var(--duration-base) ease;
  transform-style: preserve-3d;
}

.talk-card.is-tilting {
  box-shadow:
    var(--elevation-2),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.talk-card.is-tilting,
.human-card.is-tilting,
.fullbleed-video-wrap.is-tilting {
  will-change: transform;
}

.talk-card-visual {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  margin-bottom: 0;
  text-decoration: none;
  color: inherit;
}

.talk-card-visual--dark {
  background: var(--surface-soft);
}

.talk-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.talk-card-visual .btn-icon--sm {
  position: relative;
  z-index: var(--z-above);
}

.talk-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  padding-top: var(--space-xl);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  z-index: var(--z-content);
  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  isolation: isolate;
}

.talk-card-info .display-sm {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
  color: #fff;
}

.talk-card-info .caption {
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.talk-featured-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slideshow-img.active {
  opacity: 1;
}

.project-card-visual--outlook {
  aspect-ratio: 750/1080;
}

.project-card-visual--meae {
  aspect-ratio: 500/1080;
}

.card-play-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: var(--z-content);
}

.slideshow-bg-dark {
  background: var(--surface-soft);
}

.slideshow-bg-light {
  background: #ffffff;
}

.project-card-visual .img-inset {
  inset: auto;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  object-fit: contain;
}

.project-card-visual .img-ratings {
  inset: auto;
  top: 0;
  left: 40px;
  right: 40px;
  bottom: 40px;
  width: calc(100% - 80px);
  height: calc(100% - 40px);
  object-fit: contain;
}

.talk-card--featured {
  grid-column: 1;
  grid-row: span 2;
}

.talk-card--featured .talk-card-visual {
  aspect-ratio: 9/16;
  height: auto;
  min-height: unset;
}

.talk-card--featured .talk-card-info .caption {
  color: rgba(255, 255, 255, 0.7);
}

/* Reset button styles for clickable talk card */
button.talk-card-visual {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  outline-offset: 4px;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: var(--space-md);
}

.gallery-lightbox.is-open {
  display: flex;
  animation: galleryFadeIn 0.2s ease forwards;
}

.gallery-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex: 1 1 auto;
  min-height: 0;
  max-width: calc(100vw - 160px);
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-3);
  animation: galleryImgIn 0.25s ease forwards;
}

.gallery-lightbox-counter {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
  z-index: 2;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.gallery-lightbox-close {
  top: var(--space-md);
  right: var(--space-md);
}

.gallery-lightbox-nav {
  top: calc(50% - 110px);
}

.gallery-lightbox-prev {
  left: var(--space-md);
}
.gallery-lightbox-next {
  right: var(--space-md);
}

.gallery-lightbox-thumbs {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
  max-width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  flex: 0 0 auto;
  height: 54px;
  width: auto;
  min-width: 40px;
  border-radius: var(--radius-xs, 12px);
  overflow: hidden;
  padding: 0;
  background: var(--surface-card);
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  transition:
    opacity 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
  scroll-snap-align: center;
  position: relative;
}

.gallery-thumb img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: #fff;
}

body.gallery-open {
  overflow: hidden;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes galleryImgIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 734px) {
  .gallery-lightbox {
    padding: var(--space-sm);
  }
  .gallery-lightbox-figure {
    max-width: 100vw;
  }
  .gallery-lightbox-img {
    max-height: calc(100vh - 200px);
  }
  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .gallery-lightbox-prev {
    left: var(--space-xs);
  }
  .gallery-lightbox-next {
    right: var(--space-xs);
  }
  .gallery-thumb {
    height: 42px;
    min-width: 32px;
  }
}

/* Testimonials */

.kind-words {
  padding: var(--space-section) var(--page-gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.kind-words .section-header {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.testimonial {
  margin: 0;
  padding: var(--space-xl);
  border-top: none;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial footer {
  margin-top: auto;
  text-align: left;
}

.testimonial .body-text {
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: var(--weight-regular);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.testimonial footer cite {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  font-style: normal;
  display: block;
  overflow-wrap: anywhere;
}

/* About */

.the-human {
  padding: var(--space-section) var(--page-gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.the-human .section-header {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.human-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.human-card {
  display: block;
  text-decoration: none;
  color: var(--on-dark);
  transition:
    transform var(--duration-slow) var(--ease-bounce),
    box-shadow var(--duration-base) ease;
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}

.human-card.is-tilting {
  box-shadow: var(--elevation-2);
}

.human-card-visual {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.human-card--tall .human-card-visual {
  aspect-ratio: 2/3;
}

.human-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.human-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  padding-top: var(--space-xl);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  z-index: var(--z-content);
  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  isolation: isolate;
}

.human-card-info .display-sm {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
  color: #fff;
}

.human-card-info .caption {
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact */

.the-close {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-section) var(--page-gutter);
  position: relative;
}

.close-content {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.close-content .caption {
  margin-bottom: var(--space-md);
}

.email-display {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-lg) var(--space-xl);
  display: block;
  margin: 0 auto var(--space-md);
  transition: opacity 0.3s ease;
}

.email-display:hover {
  opacity: 0.7;
}

.copy-status.copied {
  color: var(--on-dark);
}

.close-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 var(--page-gutter) var(--space-xl);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted-soft);
}

.footer-copy-symbol {
  display: inline-block;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: -0.08em;
}

/* 3D tilt card overlays */

.fullbleed-video-wrap.is-tilting {
  box-shadow: var(--elevation-4);
}

/* Desktop+ */

@media (min-width: 1024px) {
  :root {
    --type-body-lg: 36px;
  }

  .origin-content .body-text {
    line-height: 1.1;
  }

  .section-body {
    line-height: 1.1;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding: 0 var(--page-gutter);
  }

  .header-logo {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .header-dropdown {
    left: 48px;
  }
}

/* Tablet */

@media (max-width: 1024px) {
  :root {
    --type-display: 96px;
    --type-title: 42px;
  }

  .email-display {
    font-size: 36px;
  }

  .talks-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    align-items: start;
  }

  .talk-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .talk-card--featured .talk-card-visual {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .talk-card-visual {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial--featured {
    grid-column: span 2;
  }
}

/* Tablet mid — scroll-nav arrows drop below section text and left-align
   once the viewport is too narrow to keep them side-by-side with the body copy. */

@media (max-width: 960px) {
  .apple-work .scroll-nav,
  .past-work .scroll-nav {
    position: static;
    margin-top: var(--space-md);
    justify-content: flex-start;
  }
}

/* Mobile */

@media (max-width: 734px) {
  :root {
    --space-section: 80px;
    --page-gutter: 24px;
    --type-display: 60px;
    --type-title: 32px;
    --type-body-lg: 22px;
  }

  .hero {
    padding: var(--space-section) var(--page-gutter);
  }


  .scroll-track {
    gap: var(--space-md);
  }

  .apple-work,
  .past-work {
    max-width: 100%;
    overflow-x: clip;
  }

  .apple-work .scroll-container,
  .past-work .scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .apple-work .scroll-container::-webkit-scrollbar,
  .past-work .scroll-container::-webkit-scrollbar {
    display: none;
  }

  .apple-work .scroll-track,
  .past-work .scroll-track {
    display: flex;
    gap: var(--space-xl);
    width: max-content;
    padding: 0 var(--page-gutter);
  }

  .apple-work .project-card,
  .apple-work .project-card--wide,
  .apple-work .project-card--portrait,
  .past-work .project-card,
  .past-work .project-card--wide,
  .past-work .project-card--portrait {
    width: 75vw;
    flex-shrink: 0;
  }

  .apple-work .project-card-visual,
  .past-work .project-card-visual {
    height: 480px;
    margin-bottom: var(--space-lg);
    border: none;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .project-card-visual--outlook,
  .project-card-visual--meae {
    aspect-ratio: unset;
    width: 100%;
    height: 480px;
  }

  .apple-work .project-card-info,
  .past-work .project-card-info,
  .past-work .project-card--portrait .project-card-info {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .past-work .project-card--portrait .card-body {
    max-width: 100%;
  }

  .project-card-visual .img-ratings {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-card-visual .img-inset {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .apple-work .card-body,
  .past-work .card-body {
    display: inline;
  }

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

  .talk-card--featured {
    grid-column: span 2;
  }

  .talk-card--featured .talk-card-visual {
    aspect-ratio: 16/9;
    height: auto;
  }

  .talk-card-visual {
    aspect-ratio: 3/4;
    height: auto;
  }

  .talk-card--featured .talk-card-info .display-sm {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .talk-card-info .caption {
    display: none;
  }

  .testimonials,
  .talks-grid,
  .human-cards {
    gap: var(--space-lg);
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial--featured {
    grid-column: span 2;
  }

  .kind-words {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .testimonial {
    width: auto;
    min-height: auto;
    padding: var(--space-lg);
  }

  .testimonial .body-text {
    font-size: 18px;
  }

  .human-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .human-card--featured {
    grid-column: span 2;
  }

  .human-card--featured .human-card-visual {
    aspect-ratio: 16/9;
  }

  .the-close {
    padding: var(--space-section) var(--page-gutter);
  }

  .email-display {
    font-size: var(--text-lg);
    letter-spacing: 2px;
    padding: var(--space-md) var(--space-lg);
  }

  .close-content .caption {
    font-size: var(--text-sm);
  }

  .footer-links {
    gap: var(--space-md);
  }

  .fullbleed-video-wrap {
    border-radius: calc(var(--radius-md) + 2px);
  }

  .fullbleed-video {
    border-radius: var(--radius-md);
  }

  .video-cta {
    font-size: var(--text-xs);
    letter-spacing: 1.5px;
    padding: 10px 20px;
    bottom: 20px;
  }

  .header-dropdown,
  .toggle-tooltip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-dropdown {
    background: var(--canvas);
  }
}

body.light-mode .section-body a,
body.light-mode .display-lg a {
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .section-body a:hover,
body.light-mode .display-lg a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.5);
}

body.light-mode {
  --canvas: #f2f2f2;
  --surface-soft: #f5f5f5;
  --surface-card: rgba(0, 0, 0, 0.03);
  --surface-elevated: rgba(0, 0, 0, 0.05);
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-strong: rgba(0, 0, 0, 0.15);
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-hover: rgba(0, 0, 0, 0.05);
  --glass-active: rgba(0, 0, 0, 0.08);
  --overlay-light: rgba(0, 0, 0, 0.15);
  --overlay-medium: rgba(0, 0, 0, 0.3);
  --overlay-heavy: rgba(0, 0, 0, 0.5);
  /* Semantic text tokens */
  --text-primary: #000000;
  --text-secondary: #1a1a1a;
  --text-tertiary: #666666;
  /* Legacy aliases */
  --on-dark: #000000;
  --body: #333333;
  --body-strong: #1a1a1a;
  --muted: #666666;
  --muted-soft: #999999;
  --link: #0066cc;
  background: #f2f2f2;
  color: #333333;
}

body.light-mode .site-header.scrolled {
  background: rgba(242, 242, 242, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

body.light-mode .header-logo {
  color: #000;
}

body.light-mode .header-menu-btn {
  color: #000;
}

body.light-mode .header-menu-btn svg path {
  stroke: #000;
}

body.light-mode .header-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .header-dropdown-item {
  color: #333;
}

body.light-mode .header-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode img {
  filter: none;
}

body.light-mode .hero-bg img {
  filter: none;
}

body.light-mode .signature-svg {
  color: #000;
}

body.light-mode .gestalt-canvas {
  opacity: 0.85;
}

body.light-mode .fullbleed-video-wrap {
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.06) 20%,
    rgba(0, 0, 0, 0.02) 40%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.03) 65%,
    rgba(0, 0, 0, 0.08) 85%,
    rgba(0, 0, 0, 0.12) 100%
  );
  box-shadow:
    0 30px 100px -20px rgba(0, 0, 0, 0.12),
    0 60px 140px -30px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.light-mode .fullbleed-video-wrap::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
}

body.light-mode .fullbleed-video {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

body.light-mode .fullbleed-video::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 30%
  );
}

body.light-mode .fullbleed-video::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
}

body.light-mode .video-cta {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #fff;
}

body.light-mode .video-cta:hover {
  background: rgba(0, 0, 0, 0.6);
}

body.light-mode .password-gate {
  background: var(--canvas);
}

body.light-mode .password-input {
  color: #000;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-mode .password-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .password-avatar {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.light-mode .gate-time,
body.light-mode .gate-name {
  color: #000;
}

body.light-mode .gate-location,
body.light-mode .gate-tagline {
  color: rgba(0, 0, 0, 0.55);
}

body.light-mode .gate-socials a {
  color: rgba(0, 0, 0, 0.55);
}

body.light-mode .gate-socials a:hover {
  color: #000;
}
