/* Genuine "Switzer Variable" & "Switzer Placeholder" @font-face declarations */
@font-face {
  font-family: "Switzer Variable";
  src: url("assets/fonts/Switzer-Variable.woff2") format("woff2"),
       url("https://cdn.fontshare.com/wf/HJHZ26OECMTXRH7JXPFC7EVIHDSLT2RA/LJRNLR7WCPF3PY3SZ7B2LHNUTQMFNCHL/4MCJYGQDIOOXHWSIIB2OYNDBEALJSOGN.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer Variable";
  src: url("assets/fonts/Switzer-Variable-Italic.woff2") format("woff2"),
       url("https://cdn.fontshare.com/wf/KDSQNRHYYJCWSLSNMQTKJOY7QNC2IBLM/HGYBIGJ4X7DYUETLTGW4BIVO3FCWLJUR/AFY5UJBPUVSDM77Q42DSHPT5JUNR7N4Y.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Switzer Placeholder";
  src: local("Arial");
  ascent-override: 96.65%;
  descent-override: 24.16%;
  line-gap-override: 8.85%;
  size-adjust: 102.43%;
}

:root {
  /* Light Theme (Architectural Paper White) */
  --bg: #ffffff;
  --bg-translucent: rgba(255, 255, 255, 0.94);
  --ink: #0f0f0f;
  --ink-secondary: #4f4f4f;
  --muted: #767676;
  --dimmed-nav: #d8d6d4;
  --surface: #f6f6f5;
  --outer-frame-bg: #efeeec;
  --border: rgba(15, 15, 15, 0.11);
  --dot-pill-bg: rgba(15, 15, 15, 0.06);
  color-scheme: light;

  /* Exact Framer Font Variables from https://aestha.framer.website */
  --framer-font-family: "Switzer Variable", "Switzer Placeholder", sans-serif;
  --framer-font-family-bold: "Switzer Variable", "Switzer Placeholder", sans-serif;
  --framer-font-family-bold-italic: "Switzer Variable", "Switzer Placeholder", sans-serif;
  --framer-font-family-italic: "Switzer Variable", "Switzer Placeholder", sans-serif;
  --font-sans: var(--framer-font-family);

  /* Exact Aestha Typographic Scale (Desktop 1440 / Tablet 810-1099 / Mobile <=640) */
  --size-h1: clamp(2.15rem, 3.33vw, 3rem);     /* 48px at 1440px */
  --size-cta: clamp(1.25rem, 2.22vw, 2rem);    /* 32px at 1440px */
  --size-nav: clamp(1rem, 1.39vw, 1.25rem);    /* 20px at 1440px */
  --size-body: clamp(0.875rem, 1.11vw, 1rem);  /* 16px at 1440px */
  --size-small: 0.875rem;                      /* 14px metadata */

  --pad: 32px;

  /* Motion Curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  /* Dark Theme (Architectural Basalt Gallery) */
  --bg: #111110;
  --bg-translucent: rgba(17, 17, 16, 0.94);
  --ink: #f3f2ef;
  --ink-secondary: #c2c0ba;
  --muted: #8a8882;
  --dimmed-nav: #4a4945;
  --surface: #1b1b19;
  --outer-frame-bg: #080807;
  --border: rgba(243, 242, 239, 0.14);
  --dot-pill-bg: rgba(243, 242, 239, 0.10);
  color-scheme: dark;
}

html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning .aestha-app-shell,
html.theme-transitioning .aestha-fixed-top,
html.theme-transitioning .aestha-fixed-bottom,
html.theme-transitioning .project-detail-left {
  transition: background-color 260ms var(--ease-out), color 240ms ease, border-color 240ms ease;
}

@media (max-width: 1099px) {
  :root {
    --pad: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
    --size-h1: 1.75rem;    /* 28px mobile H1 */
    --size-cta: 1.35rem;   /* 21.6px mobile CTA */
    --size-nav: 1rem;      /* 16px mobile nav */
    --size-body: 0.9375rem;/* 15px mobile body */
  }
}

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

/* Mobile-Native Baseline */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--framer-font-family);
  font-size: 16px;
  font-weight: 400;
  font-variation-settings: "wght" 350;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

strong,
b {
  font-family: var(--framer-font-family-bold);
  font-weight: 450;
  font-variation-settings: "wght" 450;
}

em,
i {
  font-family: var(--framer-font-family-italic);
  font-style: italic;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

figure {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button,
a,
[role="button"],
[role="tab"] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

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

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

/* ==========================================================================
   0. THEME (LIGHT / DARK) & VIEWPORT (WEB / MOBILE) PREVIEW SWITCHER
   ========================================================================== */
.viewport-mode-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-mode-pills,
.viewport-device-pills {
  display: inline-flex;
  background-color: var(--surface);
  padding: 3px;
  gap: 2px;
}

.viewport-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 12px;
  font-size: 12px;
  font-variation-settings: "wght" 400;
  color: var(--muted);
  transition: background-color 180ms var(--ease-out), color 180ms ease, transform 120ms var(--ease-out);
}

.viewport-mode-btn:active {
  transform: scale(0.96);
}

.viewport-mode-btn.is-active {
  background-color: var(--ink);
  color: var(--bg);
}

.theme-icon {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .viewport-device-pills {
    display: none;
  }

  .viewport-mode-bar {
    top: auto;
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    right: 12px;
  }

  .theme-btn-label {
    display: none;
  }

  .viewport-mode-btn {
    min-width: 28px;
    min-height: 28px;
    padding: 4px 7px;
    font-size: 11px;
  }
}

/* Desktop Mobile Preview Shell (When user clicks "Mobile" toggle on Desktop) */
body.is-mobile-preview {
  background-color: var(--outer-frame-bg);
  --pad: 16px;
  --size-h1: 1.7rem;
  --size-cta: 1.35rem;
  --size-nav: 1rem;
  --size-body: 0.9375rem;
}

body.is-mobile-preview .aestha-app-shell {
  width: 390px;
  max-width: 100%;
  min-height: 100dvh;
  margin-inline: auto;
  background-color: var(--bg);
  position: relative;
}

/* ==========================================================================
   1. AESTHA INVERTED DUAL-FIXED PERIMETER FRAME
      - Top-Left Fixed 48px Uppercase H1 Title (Clicks back to Home #/)
      - Bottom-Left Fixed Navigation (Projects, Studio, Contact)
   ========================================================================== */
.aestha-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  padding: calc(var(--pad) + env(safe-area-inset-top, 0px)) var(--pad) 12px;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

body.is-mobile-preview .aestha-fixed-top {
  left: calc(50% - 195px);
  width: 390px;
  background-color: var(--bg-translucent);
}

.aestha-h1-link {
  pointer-events: auto;
  display: inline-block;
  height: var(--size-h1);
  overflow: hidden;
  font-family: var(--framer-font-family);
  font-size: var(--size-h1);
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-feature-settings: "blwf" 1, "cv09" 1, "cv03" 1, "cv04" 1, "cv11" 1;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 120ms var(--ease-out);
}

.aestha-h1-link:active {
  transform: scale(0.98);
}

.aestha-h1-roller {
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease-out);
  will-change: transform;
}

.aestha-h1-roller > span {
  display: block;
  height: var(--size-h1);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .aestha-h1-link:hover .aestha-h1-roller {
    transform: translateY(-50%);
  }
}

.aestha-h1-year {
  font-size: var(--size-body);
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  margin-top: 2px;
  transition: opacity 240ms var(--ease-out);
}

.aestha-h1-year:empty {
  display: none;
}

/* Bottom-Left Fixed Navigation Bar */
.aestha-fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 70;
  padding: 12px var(--pad) calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: var(--bg-translucent);
}

body.is-mobile-preview .aestha-fixed-bottom {
  left: calc(50% - 195px);
  width: 390px;
  gap: 20px;
}

.aestha-bottom-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--framer-font-family);
  font-size: var(--size-nav);
  font-weight: 400;
  font-variation-settings: "wght" 400;
  line-height: 1.25;
  color: var(--ink);
  transition: color 200ms ease, font-variation-settings 200ms ease, transform 120ms var(--ease-out);
}

.aestha-bottom-link:active {
  transform: scale(0.96);
}

.aestha-bottom-link.is-active {
  color: var(--dimmed-nav);
}

@media (hover: hover) and (pointer: fine) {
  .aestha-bottom-link:hover {
    color: var(--ink-secondary);
    font-variation-settings: "wght" 450;
  }
  .aestha-bottom-link.is-active:hover {
    color: var(--muted);
  }
}

/* ==========================================================================
   2. SPA VIEW CONTAINER & PAGE-TO-PAGE TRANSITIONS
   ========================================================================== */
.aestha-view {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.aestha-view.is-mounted {
  display: block;
}

.aestha-view.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   3. VIEW 1: HOME (#/) — Single-Viewport 100dvh Living Archive Filmstrip
   ========================================================================== */
.home-alt2-stage {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: calc(74px + env(safe-area-inset-top, 0px)) var(--pad) calc(72px + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(16px, 2.6vh, 32px);
  overflow: hidden;
}

.alt2-header-band {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.alt2-statement {
  margin: 0;
  max-width: 560px;
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  line-height: 1.42;
  color: var(--ink-secondary);
}

.alt2-statement strong {
  font-family: var(--framer-font-family-bold);
  font-weight: 450;
  font-variation-settings: "wght" 450;
  color: var(--ink);
}

.alt2-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.alt2-fact-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alt2-fact-val,
.alt2-directory-link {
  font-size: var(--size-small);
  color: var(--ink-secondary);
  line-height: 1.3;
}

.alt2-directory-link {
  color: var(--ink);
  font-variation-settings: "wght" 450;
}

.alt2-filmstrip {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  align-items: stretch;
}

.alt2-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: flex-grow 420ms var(--ease-out), opacity 300ms ease;
}

.alt2-filmstrip:has(.alt2-card:hover) .alt2-card:not(:hover) {
  opacity: 0.45;
}

.alt2-card:hover {
  flex: 2.2 1 0;
}

.alt2-card-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-color: var(--surface);
}

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

.alt2-card:hover .alt2-card-media img {
  transform: scale(1);
}

.alt2-card-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
}

.alt2-card-num,
.alt2-card-year {
  color: var(--muted);
  font-size: 0.75rem;
}

.alt2-card-year {
  margin-left: auto;
}

.alt2-card-name {
  color: var(--ink);
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ==========================================================================
   4. VIEW 2: PROJECTS DIRECTORY (#/projects)
      - Single-Viewport 100dvh Split Directory
   ========================================================================== */
.projects-index-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: var(--pad);
  display: grid;
  grid-template-columns: 1fr 44.2vw;
  gap: var(--pad);
  align-items: center;
  overflow: hidden;
}

.projects-index-list-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.projects-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
}

.projects-index-item {
  display: flex;
  justify-content: flex-end;
}

.projects-index-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  min-height: 38px;
  padding-block: 4px;
  font-size: var(--size-body);
  color: var(--ink-secondary);
  text-align: right;
  white-space: nowrap;
  transition: color 180ms ease, transform 120ms var(--ease-out);
}

.projects-index-link:active {
  transform: scale(0.98);
}

.projects-index-prefix {
  color: var(--muted);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.projects-index-name {
  font-size: var(--size-body);
  font-weight: 400;
  transition: color 180ms ease;
}

.projects-index-link::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background-color: var(--dot-pill-bg);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease, transform 240ms var(--ease-out);
  pointer-events: none;
}

.projects-index-link.is-active {
  color: var(--ink);
}

.projects-index-link.is-active .projects-index-prefix {
  opacity: 1;
  transform: translateX(0);
}

.projects-index-link.is-active::after {
  opacity: 1;
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .projects-index-link:hover {
    color: var(--ink);
  }
  .projects-index-link:hover .projects-index-prefix {
    opacity: 1;
    transform: translateX(0);
  }
  .projects-index-link:hover::after {
    opacity: 1;
    transform: scale(1);
  }
}

.projects-index-preview {
  position: relative;
  width: 100%;
  height: calc(100dvh - (var(--pad) * 2));
  overflow: hidden;
  background-color: var(--surface);
  touch-action: pan-y;
}

.projects-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 420ms var(--ease-out), transform 550ms var(--ease-out);
  pointer-events: none;
}

.projects-preview-img.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Mobile Preview Action Bar (Hidden on desktop, shown in Mobile View) */
.mobile-preview-bar {
  display: none;
}

/* ==========================================================================
   5. VIEW 3: INDIVIDUAL PROJECT DETAIL (#/projects/<slug>)
   ========================================================================== */
.project-detail-layout {
  position: relative;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1fr 44.2vw;
  gap: var(--pad);
  align-items: start;
}

.project-detail-left {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 88px;
  padding-right: clamp(16px, 3vw, 48px);
}

.project-meta-swap-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.project-spec-layer {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 32px;
  column-gap: 24px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.project-detail-left.is-at-bottom .project-spec-layer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

.spec-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: var(--size-body);
  color: var(--muted);
}

.spec-value {
  font-size: var(--size-body);
  color: var(--ink-secondary);
  line-height: 1.45;
  margin: 0;
}

.project-interactive-extra {
  grid-column: 1 / -1;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acoustic-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acoustic-pill {
  min-height: 36px;
  padding: 6px 12px;
  font-size: var(--size-small);
  background-color: var(--surface);
  color: var(--ink-secondary);
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}

.acoustic-pill:hover,
.acoustic-pill.is-playing {
  background-color: var(--ink);
  color: var(--bg);
}

.acoustic-pill:active {
  transform: scale(0.96);
}

.acoustic-note-status {
  font-size: var(--size-small);
  color: var(--muted);
}

/* Layer B: In-Place "See next project" Swap Layer */
.project-next-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(8px);
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 24px;
  align-items: baseline;
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms var(--ease-out), transform 340ms var(--ease-out);
}

.project-detail-left.is-at-bottom .project-next-layer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}

.project-next-link {
  font-size: var(--size-body);
  font-weight: 500;
  font-variation-settings: "wght" 450;
  color: var(--ink);
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-next-link:hover {
    color: var(--ink-secondary);
  }
}

/* Right Scrolling Vertical Gallery */
.project-detail-gallery {
  padding-block: var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--pad);
}

.gallery-photo-frame {
  width: 100%;
  overflow: hidden;
  background-color: var(--surface);
  cursor: zoom-in;
}

.gallery-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-photo-frame:hover img {
    transform: scale(1.025);
  }
}

.gallery-next-preview {
  position: relative;
  width: 100%;
  height: calc(100dvh - (var(--pad) * 2));
  overflow: hidden;
  background-color: var(--surface);
  cursor: pointer;
  margin-top: 8vh;
}

.gallery-next-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-next-preview:hover img {
    transform: scale(1.03);
  }
}

/* ==========================================================================
   6. VIEW 4: STUDIO & CV (#/studio) — Locked 100dvh Single-Viewport
   ========================================================================== */
.studio-mobile-tabs {
  display: none;
}

.studio-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1.05fr 29vw;
  gap: clamp(16px, 2.2vw, 32px);
  align-items: stretch;
  overflow: hidden;
}

.studio-zone-left {
  padding-top: 58px;
  padding-bottom: 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  max-width: 520px;
  min-height: 0;
}

.studio-narrative {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(0.8125rem, 1.02vw, 0.9375rem);
  line-height: 1.38;
}

.studio-narrative p {
  margin: 0;
}

.studio-lead-text {
  color: var(--ink-secondary);
}

.studio-muted-text {
  color: var(--muted);
}

.studio-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-profile-avatar {
  width: 54px;
  height: 54px;
  object-fit: cover;
  cursor: zoom-in;
  flex-shrink: 0;
}

.studio-skills-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.studio-skill-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.studio-skill-heading {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 2px 0;
  font-weight: 400;
}

.studio-tech-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink-secondary);
}

.studio-dots {
  display: inline-flex;
  gap: 4px;
}

.studio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ink-secondary);
}

.studio-dot--off {
  background-color: var(--dimmed-nav);
}

.studio-zone-center {
  padding-top: 54px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(6px, 1.1vh, 12px);
  min-height: 0;
}

.studio-roster-group {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.55vh, 6px);
}

.studio-roster-pair {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.studio-roster-name {
  font-size: clamp(0.8125rem, 0.98vw, 0.9375rem);
  color: var(--ink-secondary);
  line-height: 1.28;
}

.studio-roster-role {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.28;
}

.studio-zone-right {
  width: 100%;
  height: calc(100dvh - (var(--pad) * 2));
  overflow: hidden;
  background-color: var(--surface);
}

.studio-zone-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   7. VIEW 5: CONTACT (#/contact) — Single-Viewport 100dvh Contact Sheet
   ========================================================================== */
.contact-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.contact-top-row {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: var(--pad);
  align-items: start;
}

.contact-widescreen-frame {
  grid-column: 2 / 3;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 58vh;
  overflow: hidden;
  background-color: var(--surface);
}

.contact-widescreen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-bottom-strip {
  display: grid;
  grid-template-columns: 34% 1fr auto;
  gap: var(--pad);
  align-items: end;
  padding-bottom: 64px;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--size-body);
  line-height: 1.4;
}

.contact-col--muted {
  color: var(--muted);
}

.contact-col--right {
  align-items: flex-end;
  text-align: right;
}

.contact-link {
  color: var(--ink);
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-link:hover {
    color: var(--muted);
  }
}

/* ==========================================================================
   8. FULL-SCREEN LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(15, 15, 15, 0.96);
  color: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__top,
.lightbox__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-block: 16px;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 76svh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__btn {
  min-height: 44px;
  padding: 8px 16px;
  background-color: #ffffff;
  color: var(--ink);
  font-size: var(--size-small);
  font-weight: 500;
}

/* ==========================================================================
   9. DEDICATED MOBILE VIEW ARCHITECTURE (<= 640px AND body.is-mobile-preview)
      Every transition from the Web version works smoothly on Mobile!
   ========================================================================== */

/* Shared Mobile Rules for both body.is-mobile-preview and @media (max-width: 640px) */
body.is-mobile-preview .home-alt2-stage {
  padding-top: 64px;
  padding-bottom: 66px;
  gap: 14px;
}

body.is-mobile-preview .alt2-header-band {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.is-mobile-preview .alt2-statement {
  font-size: 0.875rem;
}

body.is-mobile-preview .alt2-facts {
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

body.is-mobile-preview .alt2-facts .alt2-fact-pair:nth-child(1) {
  display: none;
}

body.is-mobile-preview .alt2-filmstrip {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 10px;
}

body.is-mobile-preview .alt2-filmstrip::-webkit-scrollbar {
  display: none;
}

body.is-mobile-preview .alt2-card {
  flex: 0 0 76%;
  scroll-snap-align: start;
}

body.is-mobile-preview .alt2-card:hover {
  flex: 0 0 76%;
}

/* Mobile View 2: Projects Directory (#/projects) — 100dvh Split Showcase + Tap Crossfade */
body.is-mobile-preview .projects-index-stage {
  grid-template-columns: 1fr;
  grid-template-rows: 44dvh 1fr;
  padding-top: 62px;
  padding-bottom: 60px;
  gap: 14px;
  height: 100dvh;
  overflow: hidden;
}

body.is-mobile-preview .projects-index-preview {
  order: -1;
  height: 100%;
}

body.is-mobile-preview .mobile-preview-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 10px 14px;
  background-color: var(--bg-translucent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.is-mobile-preview .mobile-preview-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

body.is-mobile-preview .mobile-preview-open {
  font-size: 0.875rem;
  font-variation-settings: "wght" 450;
  color: var(--ink);
  padding: 6px 12px;
  background-color: var(--surface);
}

body.is-mobile-preview .projects-index-list-wrap {
  align-items: flex-start;
  justify-content: stretch;
}

body.is-mobile-preview .projects-index-list {
  max-width: 100%;
}

body.is-mobile-preview .projects-index-item {
  justify-content: space-between;
}

body.is-mobile-preview .projects-index-link {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  flex-direction: row-reverse;
  text-align: left;
  padding-inline: 4px;
}

body.is-mobile-preview .projects-index-prefix {
  opacity: 0.45;
  transform: none;
  font-size: 0.8125rem;
}

body.is-mobile-preview .projects-index-link.is-active .projects-index-prefix {
  opacity: 1;
}

/* Mobile View 3: Individual Project Detail — Sticky Top Spec Bar with In-Place "See next project" Morph! */
body.is-mobile-preview .project-detail-layout {
  grid-template-columns: 1fr;
  padding-top: 56px;
  padding-bottom: 72px;
  gap: 16px;
}

body.is-mobile-preview .project-detail-left {
  position: sticky;
  top: 52px;
  height: auto;
  z-index: 35;
  background-color: var(--bg-translucent);
  padding: 12px 0 14px;
  justify-content: flex-start;
}

body.is-mobile-preview .project-spec-layer {
  grid-template-columns: 1fr 1fr;
  row-gap: 10px;
  column-gap: 14px;
}

body.is-mobile-preview .spec-block--concept-label {
  display: none;
}

body.is-mobile-preview .spec-block--concept-body {
  grid-column: 1 / -1;
}

body.is-mobile-preview .spec-label,
body.is-mobile-preview .spec-value {
  font-size: 0.8125rem;
  line-height: 1.35;
}

body.is-mobile-preview .project-next-layer {
  grid-template-columns: auto 1fr;
  column-gap: 16px;
}

body.is-mobile-preview .gallery-next-preview {
  height: 64dvh;
  margin-top: 4vh;
}

/* Mobile View 4: Studio & CV (#/studio) — Locked 100dvh No-Scroll with Animated 3-Tab Switcher! */
body.is-mobile-preview .studio-stage {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  padding-top: 60px;
  padding-bottom: 60px;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  gap: 12px;
}

body.is-mobile-preview .studio-mobile-tabs {
  display: flex;
  gap: 6px;
  background-color: var(--surface);
  padding: 4px;
}

body.is-mobile-preview .studio-mobile-tab {
  flex: 1;
  min-height: 36px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  transition: background-color 200ms var(--ease-out), color 200ms ease, transform 120ms var(--ease-out);
}

body.is-mobile-preview .studio-mobile-tab:active {
  transform: scale(0.97);
}

body.is-mobile-preview .studio-mobile-tab.is-active {
  background-color: var(--ink);
  color: var(--bg);
}

body.is-mobile-preview .studio-zone-left,
body.is-mobile-preview .studio-zone-center,
body.is-mobile-preview .studio-zone-right {
  display: none;
  padding-top: 4px;
  padding-bottom: 8px;
  height: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}

body.is-mobile-preview .studio-zone-left.is-mobile-tab-active,
body.is-mobile-preview .studio-zone-center.is-mobile-tab-active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

body.is-mobile-preview .studio-zone-right.is-mobile-tab-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile View 5: Contact (#/contact) — Locked 100dvh No-Scroll Contact Sheet */
body.is-mobile-preview .contact-stage {
  height: 100dvh;
  max-height: 100dvh;
  padding-top: 64px;
  padding-bottom: 68px;
  overflow: hidden;
  justify-content: space-between;
  gap: 16px;
}

body.is-mobile-preview .contact-top-row {
  grid-template-columns: 1fr;
}

body.is-mobile-preview .contact-widescreen-frame {
  grid-column: 1 / -1;
  max-height: 36dvh;
}

body.is-mobile-preview .contact-bottom-strip {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 0;
}

body.is-mobile-preview .contact-col--muted {
  grid-column: 1 / -1;
}

body.is-mobile-preview .contact-col--right {
  align-items: flex-end;
  text-align: right;
}

/* Real Mobile Devices (<= 640px) automatically apply the exact same Mobile View rules */
@media (max-width: 640px) {
  .aestha-fixed-top {
    width: 100%;
    background-color: var(--bg-translucent);
  }

  .aestha-fixed-bottom {
    width: 100%;
    gap: 14px;
  }

  .home-alt2-stage {
    padding-top: 64px;
    padding-bottom: 66px;
    gap: 14px;
  }

  .alt2-header-band {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .alt2-statement {
    font-size: 0.875rem;
  }

  .alt2-facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .alt2-facts .alt2-fact-pair:nth-child(1) {
    display: none;
  }

  .alt2-filmstrip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 10px;
  }

  .alt2-filmstrip::-webkit-scrollbar {
    display: none;
  }

  .alt2-card {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }

  .alt2-card:hover {
    flex: 0 0 76%;
  }

  .projects-index-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 44dvh 1fr;
    padding-top: 62px;
    padding-bottom: 60px;
    gap: 14px;
    height: 100dvh;
    overflow: hidden;
  }

  .projects-index-preview {
    order: -1;
    height: 100%;
  }

  .mobile-preview-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    padding: 10px 14px;
    background-color: var(--bg-translucent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-preview-meta {
    font-size: 0.8125rem;
    color: var(--muted);
  }

  .mobile-preview-open {
    font-size: 0.875rem;
    font-variation-settings: "wght" 450;
    color: var(--ink);
    padding: 6px 12px;
    background-color: var(--surface);
  }

  .projects-index-list-wrap {
    align-items: flex-start;
    justify-content: stretch;
  }

  .projects-index-list {
    max-width: 100%;
  }

  .projects-index-item {
    justify-content: space-between;
  }

  .projects-index-link {
    width: 100%;
    min-height: 42px;
    justify-content: space-between;
    flex-direction: row-reverse;
    text-align: left;
    padding-inline: 4px;
  }

  .projects-index-prefix {
    opacity: 0.45;
    transform: none;
    font-size: 0.8125rem;
  }

  .projects-index-link.is-active .projects-index-prefix {
    opacity: 1;
  }

  .project-detail-layout {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 72px;
    gap: 16px;
  }

  .project-detail-left {
    position: sticky;
    top: 52px;
    height: auto;
    z-index: 35;
    background-color: var(--bg-translucent);
    padding: 12px 0 14px;
    justify-content: flex-start;
  }

  .project-spec-layer {
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    column-gap: 14px;
  }

  .spec-block--concept-label {
    display: none;
  }

  .spec-block--concept-body {
    grid-column: 1 / -1;
  }

  .spec-label,
  .spec-value {
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .project-next-layer {
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }

  .gallery-next-preview {
    height: 64dvh;
    margin-top: 4vh;
  }

  .studio-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding-top: 60px;
    padding-bottom: 60px;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    gap: 12px;
  }

  .studio-mobile-tabs {
    display: flex;
    gap: 6px;
    background-color: var(--surface);
    padding: 4px;
  }

  .studio-mobile-tab {
    flex: 1;
    min-height: 36px;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: center;
    transition: background-color 200ms var(--ease-out), color 200ms ease, transform 120ms var(--ease-out);
  }

  .studio-mobile-tab.is-active {
    background-color: var(--ink);
    color: var(--bg);
  }

  .studio-zone-left,
  .studio-zone-center,
  .studio-zone-right {
    display: none;
    padding-top: 4px;
    padding-bottom: 8px;
    height: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
  }

  .studio-zone-left.is-mobile-tab-active,
  .studio-zone-center.is-mobile-tab-active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .studio-zone-right.is-mobile-tab-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .contact-stage {
    height: 100dvh;
    max-height: 100dvh;
    padding-top: 64px;
    padding-bottom: 68px;
    overflow: hidden;
    justify-content: space-between;
    gap: 16px;
  }

  .contact-top-row {
    grid-template-columns: 1fr;
  }

  .contact-widescreen-frame {
    grid-column: 1 / -1;
    max-height: 36dvh;
  }

  .contact-bottom-strip {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: 0;
  }

  .contact-col--muted {
    grid-column: 1 / -1;
  }
}

/* Tablet Breakpoint (641px–1024px) — Prevents cramped facts/filmstrip/Studio columns */
@media (min-width: 641px) and (max-width: 1024px) {
  .alt2-header-band {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .alt2-filmstrip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 14px;
  }

  .alt2-filmstrip::-webkit-scrollbar {
    display: none;
  }

  .alt2-card {
    flex: 0 0 38%;
    scroll-snap-align: start;
  }

  .alt2-card:hover {
    flex: 0 0 42%;
  }

  .studio-stage {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .studio-zone-right {
    display: none;
  }

  .studio-zone-left,
  .studio-zone-center {
    padding-top: 64px;
    padding-bottom: 58px;
  }

  .studio-roster-name {
    font-size: 0.875rem;
  }
}
