/* ==========================================================================
   ARGI Studio - Design System & Stylesheet (Creative Studio Edition)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --bg-hero: #f6f1eb;
  --bg-body: #f7f7f5;
  --bg-card: #ffffff;
  --bg-subtle: #ede8e1;
  --bg-dark: #0c0d0e;
  --bg-dark-card: #141618;
  --bg-dark-card-border: rgba(255, 255, 255, 0.08);

  --text-primary: #121314;
  --text-secondary: #5e6063;
  --text-muted: #8b8f94;
  --text-white: #ffffff;
  --text-white-muted: rgba(255, 255, 255, 0.68);
  --text-white-subtle: rgba(255, 255, 255, 0.45);

  --accent-blue: #3062d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #e05342;
  --border-light: rgba(0, 0, 0, 0.09);
  --border-light-subtle: rgba(0, 0, 0, 0.05);

  /* Fonts: Instrument Serif & Inter */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Universal 5px Architectural Border Radius System */
  --container-max-width: 1200px;
  --container-padding: 2rem;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-btn: 5px;
  --radius-md: 5px;
  --radius-box: 5px;
  --radius-lg: 5px;
  --radius-xl: 5px;
  --radius-card: 5px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Global Resets & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 19, 20, 0.28) transparent;
}

/* --- CUSTOM STUDIO MINIMALIST SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(18, 19, 20, 0.22);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background-color var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 19, 20, 0.55);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: rgba(18, 19, 20, 0.85);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   EDITORIAL PAGE TRANSITION (SLIGHT CRISP FADE ON PAGE SWITCH)
   ========================================================================== */
@keyframes pageFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.page-wrapper {
  animation: pageFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity;
}

.page-wrapper.is-leaving {
  opacity: 0 !important;
  transition: opacity 0.16s ease !important;
  pointer-events: none;
}

/* --- Container & Utilities --- */
.container-medium {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ==========================================================================
   MINIMALIST STUDIO INTRO PRELOADER & DUAL SHUTTER REVEAL
   ========================================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
  background: transparent;
}

/* Dual Shutter Curtains (Splitting From Center) */
.preloader-curtain {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #0d0e0f;
  z-index: 1;
  transition: transform 0.85s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-curtain.curtain-top {
  top: 0;
  transform-origin: top center;
}

.preloader-curtain.curtain-bottom {
  bottom: 0;
  transform-origin: bottom center;
}

/* Preloader Content Layer (Centered Logo & Counter) */
.preloader-inner-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: opacity 0.4s ease, transform 0.45s ease;
}

.preloader-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
}

/* ASCII Box & Solid Logo Morph Container */
.preloader-ascii-box {
  position: relative;
  width: 280px;
  max-width: 82vw;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ascii-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  will-change: opacity, filter;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.preloader-solid-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  will-change: opacity, filter, transform;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.preloader-solid-logo.is-visible {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.45));
}

.preloader-logo-img {
  height: 90px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  display: block;
  filter: invert(1) brightness(2);
  user-select: none;
}

.preloader-counter-wrap {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.preloader-counter {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.preloader-percent {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 2px;
}

/* Exit Transition State (Curtain Split From Center) */
.site-preloader.is-loaded .preloader-inner-container {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.site-preloader.is-loaded .curtain-top {
  transform: translateY(-100%);
  transition-delay: 0.15s;
}

.site-preloader.is-loaded .curtain-bottom {
  transform: translateY(100%);
  transition-delay: 0.15s;
}

.site-preloader.is-loaded {
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 1s;
}

/* Page wrapper reveal */
.page-wrapper {
  opacity: 1;
  transition: opacity 0.5s ease 0.25s;
}

body:has(.site-preloader:not(.is-loaded)) .page-wrapper {
  opacity: 0;
}

body.site-ready .page-wrapper {
  opacity: 1;
}

/* --- TOP NAVBAR (CLEAN EDITORIAL FULL-WIDTH DOCK WITH SCROLLED WHITE BACKGROUND & STROKE) --- */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  padding: 1.25rem 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled State: Full-width Solid / Translucent White with Section Stroke */
.navbar-wrapper.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--container-max-width);
  width: calc(100% - 2rem);
  margin: 0 auto;
}

/* Left Brand with Logo (Unboxed) */
.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0.25rem 0;
  border: none;
  box-shadow: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: filter var(--transition-smooth), transform var(--transition-fast);
}

.nav-brand:hover {
  opacity: 0.8;
  transform: translateY(-0.5px);
}

.nav-brand:hover .nav-brand-logo {
  transform: scale(1.02);
}

/* Center Navigation Links (Unboxed - Perfectly Centered) */
.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: all var(--transition-smooth);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

/* Hover effect: Font changing to darker color */
.nav-link:hover {
  color: var(--text-primary);
  background: transparent;
}

/* Active Link State: Font darker color */
.nav-link.is-active {
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
  font-weight: 500;
}

.nav-link.is-external {
  opacity: 0.85;
}

/* Right Actions */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  font-size: 0.8125rem;
  padding: 0.42rem 0.95rem;
}

.nav-drawer-cta-wrap {
  display: none;
  width: 100%;
}

.nav-drawer-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus,
.nav-toggle:active {
  border: none;
  outline: none;
  box-shadow: none;
}

.nav-toggle .line {
  display: block;
  width: 22px;
  height: 1.75px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

/* Dark Theme Overrides (when over Section 3 dark background and NOT scrolled) */
.navbar-wrapper.theme-dark:not(.is-scrolled) .nav-brand-logo {
  filter: invert(1) brightness(1.2);
}

.navbar-wrapper.theme-dark:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.65);
}

.navbar-wrapper.theme-dark:not(.is-scrolled) .nav-link:hover,
.navbar-wrapper.theme-dark:not(.is-scrolled) .nav-link.is-active {
  color: #ffffff;
}

.navbar-wrapper.theme-dark:not(.is-scrolled) .nav-cta {
  background-color: #ffffff;
  color: var(--text-primary);
}

.navbar-wrapper.theme-dark:not(.is-scrolled) .nav-toggle {
  border: none;
  background: transparent;
}

.navbar-wrapper.theme-dark:not(.is-scrolled) .nav-toggle .line {
  background-color: #ffffff;
}

/* When scrolled over dark theme, provide a high-contrast dark bar with matching divider stroke */
.navbar-wrapper.theme-dark.is-scrolled {
  background-color: rgba(12, 13, 14, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-wrapper.theme-dark.is-scrolled .nav-brand-logo {
  filter: invert(1) brightness(1.2);
}

.navbar-wrapper.theme-dark.is-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.65);
}

.navbar-wrapper.theme-dark.is-scrolled .nav-link:hover,
.navbar-wrapper.theme-dark.is-scrolled .nav-link.is-active {
  color: #ffffff;
}

.navbar-wrapper.theme-dark.is-scrolled .nav-cta {
  background-color: #ffffff;
  color: var(--text-primary);
}

.navbar-wrapper.theme-dark.is-scrolled .nav-toggle {
  border: none;
  background: transparent;
}

.navbar-wrapper.theme-dark.is-scrolled .nav-toggle .line {
  background-color: #ffffff;
}

/* --- ENHANCED BUTTONS & ANIMATIONS --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-radius: 5px;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(18, 19, 20, 0.12);
  z-index: 1;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn-primary:hover {
  background-color: #000000;
  transform: translateY(-2.5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(18, 19, 20, 0.22);
}

.btn-primary:hover::after {
  left: 140%;
}

.btn-primary:active {
  transform: translateY(-0.5px) scale(0.98);
}

.btn-animated {
  padding: 0.5rem 1.15rem;
  gap: 0.75rem;
}

.btn-large {
  font-size: 0.9375rem;
  padding: 0.6rem 1.35rem;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

.btn:hover .btn-arrow,
.nav-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-card);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-1.5px);
}

.btn-secondary-light {
  background-color: #ffffff;
  color: var(--text-primary);
}

.btn-secondary-light:hover {
  background-color: #f0f0ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary-solid {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary-solid:hover {
  background-color: #f5f5f3;
  transform: translateY(-1.5px);
}

/* --- Section Badge --- */
.section-badge-wrapper {
  margin-bottom: 2rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.badge-number {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--border-light);
}

.badge-label {
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.section-badge.is-light {
  color: var(--text-white-muted);
}

.section-badge.is-light .badge-number {
  color: var(--text-white);
}

.section-badge.is-light .badge-line {
  background-color: rgba(255, 255, 255, 0.2);
}

/* --- HERO SECTION (100VH FULL VIEWPORT WITH SHARP 0px RADIUS FLOATING CARDS) --- */
.section-hero {
  position: relative;
  background-color: var(--bg-hero);
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 var(--container-padding);
  overflow: hidden;
  box-sizing: border-box;
  transition: background-color 0.4s ease;
}

.hero-ascii-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Scattered Floating Gallery with Sharp 0px Edges */
.hero-floating-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.floating-card {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  user-select: none;
  border-radius: 0px !important;
}

.floating-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  background: #eee;
  position: relative;
}

.sharp-edge {
  border-radius: 0px !important;
}

.floating-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0px !important;
  transition: transform 0.5s ease;
}

.floating-card:hover {
  transform: scale(1.1) translateY(-6px) !important;
  z-index: 30 !important;
}

.floating-card:hover .floating-img-wrap {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.floating-card:hover .floating-img {
  transform: scale(1.08);
}

.floating-caption {
  display: none !important;
}

/* Precise Layout Placements */
.pos-tl-1 { top: 14%; left: 8%; width: 110px; height: 145px; }
.pos-tl-2 { top: 24%; left: 27%; width: 90px; height: 90px; }
.pos-tc { top: 17%; left: 49%; width: 85px; height: 115px; }
.pos-tr-1 { top: 22%; right: 25%; width: 95px; height: 95px; }
.pos-tr-2 { top: 12%; right: 8%; width: 100px; height: 130px; }
.pos-ml { top: 48%; left: 6%; width: 95px; height: 95px; }

.decorative-squiggle {
  position: absolute;
  bottom: -22px;
  left: -20px;
  width: 130px;
  height: 32px;
  pointer-events: none;
}

.pos-mr { top: 36%; right: 5%; width: 80px; height: 105px; }
.pos-bl-1 { bottom: 12%; left: 6%; width: 95px; height: 135px; }
.pos-bl-2 { bottom: 9%; left: 23%; width: 80px; height: 80px; }
.pos-bc { bottom: 13%; left: 42%; width: 90px; height: 90px; }
.pos-bcr { bottom: 11%; right: 28%; width: 90px; height: 115px; }
.pos-br { bottom: 9%; right: 9%; width: 115px; height: 155px; }

/* Center Aligned Headline Content */
.hero-center-content {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-heading-centered {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 7vw, 5.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-heading-centered .serif-accent {
  font-style: italic;
  font-weight: 400;
}

.hero-subcaption {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
}

.hero-cta-wrap-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scroll down prompt */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
  opacity: 0.7;
}

.scroll-mouse-icon {
  width: 20px;
  height: 30px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 3px;
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { transform: translate(-50%, 0); opacity: 1; }
  80% { transform: translate(-50%, 10px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* --- SECTION GENERAL --- */
.section {
  padding-top: 7rem;
  padding-bottom: 7rem;
  position: relative;
}

/* --- Continuous vertical dashed architectural boundary lines (Left & Right) --- */
.section:not(.section-datasets-dark)::before,
.section:not(.section-datasets-dark)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--border-light) 0px,
    var(--border-light) 4px,
    transparent 4px,
    transparent 10px
  );
  pointer-events: none;
  z-index: 2;
}

.section:not(.section-datasets-dark)::before {
  left: calc(50% - (var(--container-max-width) / 2) - 10px);
}

.section:not(.section-datasets-dark)::after {
  right: calc(50% - (var(--container-max-width) / 2) - 10px);
}

@media screen and (max-width: 1240px) {
  .section:not(.section-datasets-dark)::before {
    left: max(0px, calc(var(--container-padding) - 10px));
  }
  .section:not(.section-datasets-dark)::after {
    right: max(0px, calc(var(--container-padding) - 10px));
  }
}

@media screen and (max-width: 768px) {
  .section:not(.section-datasets-dark)::before,
  .section:not(.section-datasets-dark)::after {
    display: none; /* Hide vertical edge lines on mobile to avoid horizontal scrollbar overflows */
  }
}

/* --- Clean solid straight horizontal border dividing sections - Exact stroke and width between dashed lines --- */
.section-process,
.section-services,
.section-news,
.section-contact {
  border-top: none !important;
}

.section-process > .container-medium,
.section-services > .container-medium,
.section-news > .container-medium,
.section-contact > .container-medium {
  position: relative;
}

.section-process > .container-medium::before,
.section-services > .container-medium::before,
.section-news > .container-medium::before,
.section-contact > .container-medium::before {
  content: "";
  position: absolute;
  top: -7rem;
  left: -10px;
  right: -10px;
  width: calc(100% + 20px);
  height: 1px;
  background-color: var(--border-light);
  pointer-events: none;
  z-index: 3;
}

/* --- SECTION 1: MISSION --- */
.section-mission {
  padding-top: 6rem;
  background-color: var(--bg-body);
}

.mission-text-wrap {
  max-width: 1000px;
}

.editorial-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.editorial-heading em,
.editorial-heading i,
.editorial-heading .serif-accent,
.editorial-heading .text-secondary {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
}

.editorial-heading .text-primary {
  color: var(--text-primary);
}

/* --- SECTION 2: PROCESS --- */
.section-process {
  background-color: var(--bg-body);
}

.process-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 850px;
  color: var(--text-primary);
}

.section-title em,
.section-title i,
.section-title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
}

.process-viewer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.process-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.process-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.process-step-item:hover {
  background-color: rgba(255, 255, 255, 0.65);
}

.process-step-item.is-active {
  background-color: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.step-indicator {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 30px;
  transition: color var(--transition-fast);
}

.process-step-item.is-active .step-indicator {
  color: var(--text-primary);
  font-weight: 600;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.step-title em,
.step-title i,
.step-title .serif-accent {
  font-style: italic;
  color: var(--text-secondary);
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.process-visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border-radius: 5px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.process-art-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 5px;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-art-layer.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

/* ==========================================================================
   SECTION 3: SHARP 2-COLUMN EDITORIAL PORTFOLIO GALLERY & INDEX LIST (DARK THEME)
   ========================================================================== */
.section-datasets-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding-top: 8rem;
  padding-bottom: 5.5rem;
}

.datasets-intro-text {
  max-width: 950px;
  margin-bottom: 4.5rem;
}

.editorial-heading-dark {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.editorial-heading-dark em,
.editorial-heading-dark i,
.editorial-heading-dark .serif-accent,
.editorial-heading-dark .text-white-muted {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-white-muted);
}

.showcase-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.datasets-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 750px;
  color: var(--text-white);
}

.datasets-section-title em,
.datasets-section-title i,
.datasets-section-title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-white-muted);
}

/* View Switcher (Concentric R1 + D = R2: 5px button + 4px pad = 9px container) */
.portfolio-view-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
  border-radius: 9px;
  user-select: none;
}

.view-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-white-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.45rem 1.15rem;
  border-radius: 5px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.view-btn:hover:not(.is-active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.view-btn.is-active {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* 1. Sharp 2-Column Editorial Gallery */
.sharp-editorial-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 2.5rem;
  margin-bottom: 4.5rem;
}

.gallery-item-sharp {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   SOPHISTICATED STUDIO EDITORIAL GALLERY HOVER (QUIET LUXURY)
   ========================================================================== */
.gallery-item-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background: #111214;
  border-radius: 0px !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-sharp:hover .gallery-item-frame {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
}

.gallery-img-sharp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0px !important;
  transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-item-sharp:hover .gallery-img-sharp {
  transform: scale(1.035);
  filter: brightness(0.85) contrast(1.04);
}

/* Velvety Noir Editorial Overlay (60% Tint) */
.gallery-sharp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 10, 0.60);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 4;
}

.gallery-item-sharp:hover .gallery-sharp-overlay {
  opacity: 1;
}

/* Centered Luxury Editorial Badge (Minimalist Text & Underline) */
.explore-sharp-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(8px);
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1.5px solid #ffffff;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.explore-sharp-pill .pill-arrow {
  display: inline-block;
  font-size: 0.9rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-sharp:hover .explore-sharp-pill {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.gallery-item-sharp:hover .explore-sharp-pill .pill-arrow {
  transform: translate(3px, -3px);
}

/* Editorial Typography & Metadata */
.gallery-item-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.caption-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.project-id-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-white-subtle);
  transition: color 0.35s ease;
}

.gallery-item-sharp:hover .project-id-num {
  color: rgba(255, 255, 255, 0.85);
}

.caption-project-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #ffffff;
  transition: color 0.35s ease, transform 0.35s ease;
}

.caption-project-name em,
.caption-project-name i,
.caption-project-name .serif-accent {
  font-style: italic;
  color: var(--text-white-muted);
}

.gallery-item-sharp:hover .caption-project-name {
  color: #ffffff;
}

.caption-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.caption-discipline {
  font-size: 0.8125rem;
  color: var(--text-white-muted);
  font-weight: 500;
}

.caption-year {
  font-size: 0.75rem;
  color: var(--text-white-subtle);
  font-family: monospace;
}

/* 2. High-Fashion Editorial Index Table */
.portfolio-index-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 4.5rem;
}

.index-row-item {
  display: grid;
  grid-template-columns: 50px 1.5fr 1.5fr 1fr 80px 90px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition-fast), padding var(--transition-fast);
  cursor: pointer;
}

.index-row-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  padding-left: 1rem;
  padding-right: 1rem;
}

.col-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-white-subtle);
}

.col-client {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: #ffffff;
}

.col-client em,
.col-client i,
.col-client .serif-accent {
  font-style: italic;
  color: var(--text-white-muted);
}

.index-row-item:hover .col-client {
  font-family: var(--font-serif);
  font-style: italic;
  color: #60a5fa;
  font-size: 1.35rem;
}

.col-discipline {
  font-size: 0.875rem;
  color: var(--text-white-muted);
}

.col-location {
  font-size: 0.8125rem;
  color: var(--text-white-subtle);
}

.col-year {
  font-size: 0.8125rem;
  color: var(--text-white-subtle);
  font-family: monospace;
}

.col-link {
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 500;
  text-align: right;
}

/* Floating Hover Preview Portal for Index List */
.index-floating-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 250px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 2147483647;
  overflow: hidden;
  border: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  border-radius: 0 !important;
  background: #141618;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  will-change: transform, opacity;
}

.index-floating-preview.is-visible {
  opacity: 1;
  visibility: visible;
}

#indexPortalImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

/* Mobile & Tablet Only 'See More' Wrap (Hidden on Desktop by default) */
.portfolio-see-more-wrap {
  display: none !important;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

@media screen and (max-width: 991px) {
  .portfolio-see-more-wrap {
    display: flex !important;
  }
}

/* Datasets / Portfolio CTA Box */
.datasets-cta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-dark-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0;
}

.cta-box-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.cta-box-title em,
.cta-box-title i,
.cta-box-title .serif-accent {
  font-style: italic;
  color: var(--text-white-muted);
}

.cta-box-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-white-muted);
}

/* ==========================================================================
   SECTION 4: SERVICES (4 CORE DISCIPLINES)
   ========================================================================== */
.section-services {
  background-color: var(--bg-body);
}

.services-header-wrap {
  margin-bottom: 4rem;
  max-width: 850px;
}

/* --- SECTION 4: CAPABILITIES / SERVICES (STACKED EDITORIAL ROWS) --- */
.section-services {
  background-color: var(--bg-body);
  position: relative;
}

.services-header-wrap {
  margin-bottom: 3.5rem;
  max-width: 820px;
}

.services-intro-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.capabilities-editorial-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
}

.capability-row {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1.25fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), padding var(--transition-fast);
  position: relative;
}

.capability-row:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

.cap-col-title {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform var(--transition-smooth);
}

.capability-row:hover .cap-col-title {
  transform: translateX(6px);
}

.cap-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.65rem;
  color: var(--text-muted);
  line-height: 1;
}

.cap-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

.cap-col-desc {
  display: flex;
  flex-direction: column;
}

.cap-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.cap-col-deliverables {
  display: flex;
  flex-direction: column;
}

.cap-deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

.cap-deliverables-list li {
  line-height: 1.4;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.capability-row:hover .cap-deliverables-list li {
  color: var(--text-primary);
}

.services-cta-row {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.services-cta-text {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.services-cta-text em,
.services-cta-text i,
.services-cta-text .serif-accent {
  font-style: italic;
  color: var(--text-secondary);
}

/* --- SECTION 5: JOURNAL / NEWS (SIDE-LOOPING CONTINUOUS SLIDER) --- */
.section-news {
  background-color: var(--bg-body);
  overflow: hidden;
  position: relative;
}

.news-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.journal-nav-arrows {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.journal-arrow-btn {
  width: auto;
  height: auto;
  padding: 0.35rem;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: transform var(--transition-bounce), color var(--transition-fast), opacity var(--transition-fast);
}

.journal-arrow-btn:hover {
  background: transparent;
  color: var(--text-primary);
  border: none;
}

.journal-arrow-btn.prev:hover,
#journalPrevBtn:hover {
  transform: translateX(-4px);
}

.journal-arrow-btn.next:hover,
#journalNextBtn:hover {
  transform: translateX(4px);
}

.journal-arrow-btn:active {
  transform: scale(0.92);
}

.journal-slider-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 1rem 0 3rem 0;
}

.journal-slider-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-card {
  background: var(--bg-card);
  border-radius: 5px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-thumbnail-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #eee;
  border-radius: 0px !important;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px !important;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-img {
  transform: scale(1.04);
}

.news-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.news-headline {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  
  /* 2-line clamp with ellipsis for clean uniform card heights */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.25em * 2);
  word-break: break-word;
}

.news-headline em,
.news-headline i,
.news-headline .serif-accent {
  font-style: italic;
  color: var(--text-secondary);
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: auto;
}

.news-date {
  white-space: nowrap;
}

.news-dot {
  font-size: 0.6rem;
}

.news-tag {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: normal;
}

@media screen and (max-width: 991px) {
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 640px) {
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   INTERACTIVE CONTACT / COMMISSION WORKBENCH (STUDIO CAPACITY SPRINT MATRIX)
   ========================================================================== */
.section-contact {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.contact-workbench-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 3.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.workbench-glow-orb {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 241, 235, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.workbench-layout {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.workbench-main {
  width: 100%;
  box-sizing: border-box;
}

.workbench-title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.workbench-title em,
.workbench-title i,
.workbench-title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
}

.workbench-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Interactive Tag Pills */
.inquiry-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  min-width: 0;
  max-width: 100%;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  padding: 0.52rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
}

.tag-pill .tag-check {
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.tag-pill:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.tag-pill.is-selected {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tag-pill.is-selected .tag-check {
  opacity: 1;
  transform: scale(1);
}

/* Live Dynamic Inquiry Summary Bar */
.inquiry-summary-box {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.summary-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  min-width: 0;
  max-width: 100%;
}

.summary-label {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.summary-tags-preview {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.workbench-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.copy-email-btn {
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* Right Side: Studio Capacity & Sprint Roadmap Card */
.workbench-side-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.telemetry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.8125rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.telemetry-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.telemetry-freq {
  color: var(--text-white-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* --- REPLACED STUDIO CAPACITY SPRINT MATRIX WIDGET --- */
.studio-capacity-widget {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.capacity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.capacity-title {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-white-muted);
  white-space: nowrap;
}

.capacity-badge {
  color: #60a5fa;
  font-weight: 600;
  background: rgba(96, 165, 250, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sprint-slot-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sprint-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.sprint-name {
  color: #ffffff;
  font-weight: 500;
}

.sprint-availability {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  text-align: center;
}

.text-amber { color: #fbbf24; }
.text-green { color: #34d399; }

.sprint-progress-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 8px;
}

.slot-segment {
  border-radius: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slot-segment.is-filled {
  background: rgba(255, 255, 255, 0.22);
}

.slot-segment.is-filled:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slot-segment.is-open {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  animation: pulseOpenSlot 2s infinite ease-in-out alternate;
}

.slot-segment.is-open:hover {
  background: #60a5fa;
  transform: scaleY(1.2);
}

@keyframes pulseOpenSlot {
  0% { opacity: 0.75; transform: scaleY(0.95); }
  100% { opacity: 1; transform: scaleY(1.05); }
}

/* Telemetry Specs */
.telemetry-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.telemetry-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.spec-label {
  color: var(--text-white-muted);
}

.spec-value {
  font-weight: 500;
  color: #ffffff;
}

.spec-value.highlight {
  color: #60a5fa;
}

.telemetry-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.direct-call-badge {
  font-size: 0.8125rem;
  color: var(--text-white-muted);
}

.direct-call-badge strong {
  color: #ffffff;
}

/* ==========================================================================
   INTERACTIVE COMMISSION EMAIL BRIEF MODAL (HIGH-FASHION STUDIO POPUP)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 13, 14, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-light);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2.25rem 2.25rem 1.25rem;
  border-bottom: 1px solid var(--border-light-subtle);
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(48, 98, 212, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.modal-close-btn {
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

/* Modal Body */
.modal-body {
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-body);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  background: #ffffff;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(18, 19, 20, 0.08);
}

.form-textarea {
  resize: vertical;
  line-height: 1.5;
}

/* Modal Chips */
.modal-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modal-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
}

/* Generated Brief Box */
.preview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.brief-preview-box {
  background: #0f1011;
  color: #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.brief-pre-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* Modal Status Alerts */
.modal-status-box {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all var(--transition-fast);
}

.modal-status-box.is-success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.modal-status-box.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.modal-status-box.is-loading {
  background: rgba(48, 98, 212, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(48, 98, 212, 0.3);
}

.btn-animated.is-loading {
  opacity: 0.75;
  pointer-events: none;
  cursor: wait;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.25rem 2.25rem;
  border-top: 1px solid var(--border-light-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   CASE STUDY SHARE BAR
   ========================================================================== */
.cs-share-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.cs-share-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cs-share-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cs-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cs-share-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-1px);
}

.share-action-btn.share-instagram-btn:hover,
.cs-share-btn.cs-instagram-btn:hover {
  background: #E1306C;
  border-color: #E1306C;
  color: #ffffff;
}

/* ==========================================================================
   EDITORIAL CREATIVE FOOTER (CREATION OF ADAM ASCII, TOP SPLIT GRID & GIANT LOGO)
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--bg-body, #ffffff);
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
}

/* Creation of Adam Interactive ASCII Canvas Background */
.footer-ascii-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.footer-inner-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* 1. Top Split Grid: Left SVG Logo/Bio/Socials & Right Navigation/Selected Work */
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.65fr;
  gap: 4.5rem;
  align-items: start;
}

.footer-hero-block {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-brand-logo-wrap {
  margin-bottom: 0.25rem;
}

.footer-brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

[data-theme="dark"] .footer-brand-logo-img {
  filter: invert(1) brightness(2);
}

.footer-subheadline {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.social-circle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.social-circle-btn:hover {
  background: var(--text-primary);
  color: var(--bg-body, #ffffff);
  transform: translateY(-2px);
  border-color: var(--text-primary);
}

/* Right Column: Navigation & Selected Work */
.footer-links-group {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.footer-menu-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  line-height: 1.4;
}

.footer-menu-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* 2. Giant Editorial Headline Across Max Width (Instrument Serif Font - Center Aligned) */
.footer-giant-title-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 2.5rem 0 1.75rem 0;
  border-top: 1px solid var(--border-light-subtle, rgba(0, 0, 0, 0.08));
  border-bottom: 1px solid var(--border-light-subtle, rgba(0, 0, 0, 0.08));
  margin: 0.5rem 0;
  overflow: hidden;
}

.footer-giant-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.75rem, 7.2vw, 7.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
  width: 100%;
  text-align: center;
}

.footer-giant-title em {
  font-style: italic;
  font-family: inherit;
}

/* 3. Bottom Sub-Bar: Copyright & Location/Time */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legals {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.copyright-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.footer-utilities {
  display: flex;
  align-items: center;
}

.footer-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.location-clock {
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* --- PORTFOLIO SEE MORE & MOBILE BACK-TO-TOP BUTTONS --- */
.portfolio-see-more-wrap {
  display: none;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.btn-secondary-dark,
.btn-see-more {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  gap: 0.55rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-smooth);
}

.btn-secondary-dark:hover,
.btn-see-more:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-secondary-dark:active,
.btn-see-more:active {
  transform: translateY(0) scale(0.98);
  background: rgba(255, 255, 255, 0.2);
}

.see-more-arrow {
  transition: transform var(--transition-bounce);
}

.portfolio-see-more-wrap.is-expanded .see-more-arrow {
  transform: rotate(180deg);
}

/* Mobile & Tablet Floating Scroll Back to Top / Hero Button */
.mobile-scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 5px;
  background: rgba(18, 19, 20, 0.88);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  align-items: center;
  justify-content: center;
  z-index: 990;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition-smooth), transform var(--transition-bounce), background var(--transition-fast);
}

.mobile-scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-scroll-top-btn:active {
  transform: scale(0.92);
  background: #000000;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM (ALL VIEWPORTS & DEVICES)
   ========================================================================== */

/* Touch & Pointer Fine-Tuning */
@media (hover: none) and (pointer: coarse) {
  .index-floating-preview {
    display: none !important;
  }
}

/* 1. Large Laptops & Small Desktops (<= 1200px) */
@media screen and (max-width: 1200px) {
  .pos-tl-1 { top: 13%; left: 4%; width: 105px; height: 140px; }
  .pos-tr-2 { top: 11%; right: 4%; width: 100px; height: 130px; }
  .pos-bl-1 { bottom: 10%; left: 4%; width: 100px; height: 135px; }
  .pos-br { bottom: 8%; right: 4%; width: 115px; height: 155px; }
}

/* 2. Tablets & Small Laptops (<= 991px) */
@media screen and (max-width: 991px) {
  :root {
    --container-padding: 1.5rem;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Navbar Mobile Menu Drawer (Full width & seamlessly connected to header) */
  .navbar-wrapper.menu-open {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom-color: var(--border-light) !important;
  }

  .nav-pill {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    z-index: 999;
  }

  .navbar-wrapper.theme-dark .nav-pill {
    background: rgba(18, 20, 22, 0.98);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }

  .nav-pill.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.65rem 0;
    border-radius: 0;
    text-align: left;
    width: 100%;
    color: var(--text-secondary);
    display: block;
  }

  .nav-link:hover,
  .nav-link.is-active {
    color: var(--text-primary);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .nav-cta {
    display: none !important;
  }

  .nav-drawer-cta-wrap {
    display: flex;
    width: 100%;
    margin-top: 0.85rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border-light);
  }

  .nav-drawer-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    font-size: 0.9375rem;
    padding: 0.8rem 1.5rem;
  }

  /* Floating Up Arrow Button on Tablet */
  .mobile-scroll-top-btn {
    display: flex;
  }

  /* Hero Section: Prominent Editorial Headline & Bold Floating Cards */
  .section-hero {
    min-height: 100vh;
    height: 100dvh;
    padding-top: 4.5rem;
  }

  .hero-heading-centered {
    font-size: clamp(2.65rem, 6.2vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
  }

  .editorial-heading,
  .editorial-heading-dark,
  .section-title,
  .workbench-title {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.18;
  }

  .hero-subcaption {
    font-size: 0.9375rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
    text-transform: none;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
  }

  /* Floating hero cards on tablet - enlarged & tactile */
  .pos-tc, .pos-bc, .pos-tl-2, .pos-tr-1, .pos-bcr {
    display: none;
  }

  .pos-tl-1 { top: 9%; left: 3%; width: 125px; height: 165px; }
  .pos-tr-2 { top: 8%; right: 3%; width: 120px; height: 155px; }
  .pos-ml { top: 52%; left: 2%; width: 95px; height: 95px; }
  .pos-mr { top: 44%; right: 2%; width: 95px; height: 125px; }
  .pos-bl-1 { bottom: 8%; left: 3%; width: 120px; height: 160px; }
  .pos-bl-2 { display: none; }
  .pos-br { bottom: 7%; right: 3%; width: 130px; height: 170px; }

  /* Methodology / Process Grid */
  .process-viewer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-visual-stage {
    aspect-ratio: 16 / 10;
    max-height: 360px;
    border-radius: var(--radius-lg);
  }

  .process-steps-list {
    gap: 0.75rem;
  }

  .process-step-item {
    padding: 1rem 1.25rem;
  }

  /* Selected Work Portfolio: Limit to 3 by default on Tablet with See More */
  .showcase-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .sharp-editorial-gallery {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-bottom: 1.5rem;
  }

  .gallery-item-frame {
    aspect-ratio: 16 / 10;
  }

  .index-row-item {
    grid-template-columns: 36px 1.5fr 1.2fr 75px;
    gap: 1rem;
    padding: 1.35rem 0.5rem;
  }

  .col-location {
    display: none;
  }

  /* 3-Item Limit & Expansion on Tablet */
  .portfolio-see-more-wrap {
    display: flex;
  }

  .sharp-editorial-gallery .gallery-item-sharp:nth-child(n+4),
  .portfolio-index-table .index-row-item:nth-child(n+4) {
    display: none;
  }

  .sharp-editorial-gallery.is-expanded .gallery-item-sharp:nth-child(n+4) {
    display: block;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .portfolio-index-table.is-expanded .index-row-item:nth-child(n+4) {
    display: grid;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .datasets-cta-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.25rem;
  }

  .works-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Capabilities Editorial Rows (Tablet) */
  .capability-row {
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    padding: 2.25rem 0.5rem;
  }

  .cap-col-deliverables {
    grid-column: span 2;
    padding-top: 0.5rem;
  }

  .cap-deliverables-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem 1.5rem;
  }

  .services-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    text-align: center;
  }

  .services-cta-row .btn {
    width: 100%;
  }

  /* Journal / News */
  .news-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Contact Workbench */
  .workbench-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-workbench-card {
    padding: 2.75rem 2rem;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
  }

  /* Modal */
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. Small Tablets & Phones (<= 640px) */
@media screen and (max-width: 640px) {
  :root {
    --container-padding: 1.15rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Preloader Mobile */
  .preloader-inner-container {
    padding: 2.25rem 1.25rem;
  }

  .preloader-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.6875rem;
  }

  .preloader-brand-title {
    font-size: clamp(3.5rem, 16vw, 5rem);
  }

  .status-stream-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.95rem;
  }

  .counter-label {
    font-size: 0.6875rem;
  }

  /* Hero Section Mobile: Large Editorial Headline & Bold Floating Images */
  .section-hero {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-center-content {
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .hero-heading-centered {
    font-size: clamp(2.85rem, 11vw, 3.85rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
  }

  .hero-subcaption {
    font-size: 0.84375rem;
    letter-spacing: -0.01em;
    line-height: 1.45;
    text-transform: none;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
    max-width: 320px;
  }

  .btn-large {
    font-size: 0.875rem;
    padding: 0.55rem 1.15rem;
    width: 100%;
    max-width: 280px;
  }

  .hero-scroll-indicator {
    bottom: 1rem;
    font-size: 0.6875rem;
  }

  .scroll-mouse-icon {
    width: 16px;
    height: 24px;
  }

  /* Prominent corner photo stamps on mobile */
  .pos-ml, .pos-mr, .pos-bl-2, .pos-bcr, .pos-tl-2, .pos-tr-1, .pos-tc, .pos-bc {
    display: none !important;
  }

  .pos-tl-1 { width: 100px; height: 132px; top: 8%; left: 2%; opacity: 0.95; }
  .pos-tr-2 { width: 95px; height: 125px; top: 7%; right: 2%; opacity: 0.95; }
  .pos-bl-1 { width: 95px; height: 125px; bottom: 7%; left: 2%; opacity: 0.95; }
  .pos-br { width: 100px; height: 135px; bottom: 6%; right: 2%; opacity: 0.95; }
  .floating-caption { display: none !important; }

  /* Floating Up Arrow on Mobile */
  .mobile-scroll-top-btn {
    bottom: 1.25rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  /* Navbar */
  .navbar-wrapper {
    top: 0;
    padding: 0.85rem 0;
  }

  .nav-container {
    width: calc(100% - 1.5rem);
  }

  .nav-brand {
    padding: 0;
  }

  .nav-brand-logo {
    height: 26px;
  }

  .nav-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
  }

  /* Section Headings: Ethos preserved, other sections set to 32px */
  #mission .editorial-heading {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    line-height: 1.25;
  }

  .editorial-heading-dark,
  .section-title,
  .workbench-title,
  .datasets-section-title {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.015em;
  }

  .service-name {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  /* Methodology / Process */
  .process-visual-stage {
    aspect-ratio: 16 / 10;
    max-height: 240px;
    border-radius: var(--radius-md);
  }

  .step-title {
    font-size: 1.05rem;
  }

  .step-desc {
    font-size: 0.875rem;
  }

  .process-step-item {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }

  /* Selected Work */
  .sharp-editorial-gallery {
    gap: 2.75rem;
    margin-bottom: 3rem;
  }

  .gallery-item-frame {
    aspect-ratio: 16 / 11;
  }

  .gallery-item-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .caption-left {
    gap: 0.5rem;
  }

  .caption-project-name {
    font-size: 1.15rem;
  }

  .caption-right {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }

  /* Index Table on Mobile */
  .portfolio-index-table {
    margin-bottom: 3rem;
  }

  .index-row-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 0.75rem;
    padding: 1.15rem 0.25rem;
    align-items: baseline;
  }

  .col-num { font-size: 1.05rem; }
  .col-client { font-size: 1.05rem; grid-column: 2; }
  .col-discipline { display: none; }
  .col-location { display: none; }
  .col-year { display: none; }
  .col-link { font-size: 0.8125rem; text-align: right; grid-column: 3; }

  .datasets-cta-box {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .cta-box-title {
    font-size: 1.15rem;
  }

  .cta-box-desc {
    font-size: 0.875rem;
  }

  .works-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.5rem;
  }

  /* Capabilities Editorial Rows (Mobile) */
  .capability-row {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 2rem 0;
  }

  .cap-col-deliverables {
    grid-column: span 1;
    padding-top: 0.25rem;
  }

  .cap-deliverables-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .cap-name {
    font-size: 1.55rem;
  }

  .services-cta-row {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .services-cta-text {
    font-size: 0.95rem;
  }

  /* Journal */
  .news-headline {
    font-size: 1.125rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.25em * 2);
  }

  .news-body {
    padding: 1.15rem;
  }

  .news-meta {
    font-size: 0.75rem;
    gap: 0.25rem 0.45rem;
  }

  /* Contact Workbench Mobile Overflow Fix */
  .section-contact {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
    overflow: hidden;
  }

  .contact-workbench-card {
    padding: 1.5rem 1rem;
    border-radius: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .workbench-layout {
    gap: 1.75rem;
    width: 100%;
    max-width: 100%;
  }

  .workbench-title {
    word-break: break-word;
  }

  .workbench-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.35rem;
    word-break: break-word;
  }

  .inquiry-tags-grid {
    gap: 0.45rem;
    margin-bottom: 1.35rem;
    width: 100%;
  }

  .tag-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    max-width: 100%;
  }

  .inquiry-summary-box {
    padding: 1.15rem 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 1rem;
  }

  .summary-label {
    font-size: 0.75rem;
  }

  .summary-tags-preview {
    font-size: 0.9375rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .workbench-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
    box-sizing: border-box;
  }

  .workbench-actions-row .btn {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center;
    justify-content: center;
    font-size: 0.8125rem;
    padding: 0.75rem 0.85rem;
    box-sizing: border-box;
  }

  .workbench-actions-row .btn-text,
  #copyEmailText {
    word-break: break-word;
  }

  .workbench-side-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .telemetry-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
  }

  .telemetry-status-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
    white-space: normal;
  }

  .studio-capacity-widget {
    padding: 1rem 0.85rem;
    gap: 0.85rem;
  }

  .capacity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .capacity-title {
    font-size: 0.7rem;
  }

  .capacity-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    white-space: normal;
    text-align: left;
  }

  .sprint-slot-row {
    gap: 0.35rem;
  }

  .sprint-meta {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .sprint-name {
    font-size: 0.75rem;
  }

  .sprint-availability {
    font-size: 0.7rem;
    white-space: normal;
  }

  .telemetry-specs-list {
    gap: 0.65rem;
  }

  .telemetry-spec-row {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .direct-call-badge {
    font-size: 0.75rem;
    width: 100%;
    justify-content: center;
    padding: 0.45rem 0.75rem;
  }

  /* Footer */
  .site-footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .footer-inner-wrap {
    gap: 2.5rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-giant-wordmark {
    max-height: 120px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-legals {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-location-badge {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.75rem;
    padding: 0;
  }

  .location-clock {
    font-size: 0.75rem;
  }

  /* Modal */
  .modal-backdrop {
    padding: 0.65rem;
  }

  .modal-card {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }

  .modal-header {
    padding: 1.5rem 1.25rem 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
    gap: 1rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
  }

  .brief-preview-box {
    max-height: 150px;
    padding: 0.85rem;
  }

  .brief-pre-text {
    font-size: 0.75rem;
  }

  .modal-footer {
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-footer-left,
  .modal-footer-right {
    width: 100%;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* 4. Extra Small Mobile Phones (<= 380px) */
@media screen and (max-width: 380px) {
  .nav-cta {
    display: none;
  }

  .hero-heading-centered {
    font-size: 36px;
    line-height: 1.08;
  }

  .editorial-heading-dark,
  .section-title,
  .workbench-title,
  .datasets-section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .tag-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .footer-location-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .footer-location-badge .utility-dot {
    display: none;
  }
}

/* Universal Video Media Engine Styles */
video.gallery-img-sharp,
video.floating-img,
video.news-img,
video.index-portal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 0px !important;
}
