/* ==========================================================================
   Harsh Portfolio — Architectural Minimal Visual Theme
   ========================================================================== */

/* --- Typography Stack: GFS Didot (Headings) & Belleza (Body) --- */
:root {
  --font-heading: 'GFS Didot', 'Didot', 'Playfair Display', serif;
  --font-body: 'Belleza', 'Optima', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- CSS Reset & Global Specs --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #000000;
  background-image: url('Media/Entrance/Entrance0001.avif');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: var(--font-body);
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* --- Matthew Wagerfield Parallax Scene Stage --- */
.parallax-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  transform-origin: center center;
  transform: none !important;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Zoomed-in state triggered after sequence reveal */
.parallax-scene.zoomed-in {
  transform: none !important;
}

.parallax-layer {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  will-change: transform;
  transform-style: preserve-3d;
}

.parallax-layer>* {
  pointer-events: auto;
}

/* Background layer needs extra image around the viewport
   so parallax movement never reveals the edges */
.layer-bg {
  top: -5% !important;
  left: -5% !important;
  width: 110% !important;
  height: 110% !important;
}

.layer-backdrop {
  top: -5% !important;
  left: -5% !important;
  width: 110% !important;
  height: 110% !important;
}


.layer-bg .video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.layer-bg .bg-video {
  width: 100%;
  height: 100%;
}

/* Placeholder pictures behind the canvas, before the first frame is drawn. A first visit shows the
   Entrance; a later visit or reload shows only the room the page opens on (html[data-room], set before
   first paint in index.html). */
html[data-room],
html[data-room] body {
  background-image: none;
}
html[data-room] .video-wrapper { background-image: none; }
html[data-room="living"] .video-wrapper { background-image: url('Media/Living_Bedroom/LivingToBedroom0097.avif'); }
html[data-room="bedroom"] .video-wrapper { background-image: url('Media/Living_Bedroom/LivingToBedroom0144.avif'); }
html[data-room="kitchen"] .video-wrapper { background-image: url('Media/Living_Kitchen/LivingToKitchen0169.avif'); }
html[data-room="poolroom"] .video-wrapper { background-image: url('Media/Living_Pool/LivingToPool0218.avif'); }
html[data-room="office"] .video-wrapper { background-image: url('Media/Living_Office/LivingToOffice0267.avif'); }
html[data-room="pc"] .video-wrapper { background-image: url('Media/BedroomToPCScreen/BedroomToPc0562.avif'); }
/* Once the canvas has drawn its first frame the placeholder is out of date: never let it show through. */
html.canvas-live .video-wrapper { background-image: none !important; }
#kitchen-blog-stage:focus, #contact-modal:focus { outline: none; }

/* Living room grade: while the Living room text is showing, the room is a little darker with a soft
   vignette behind the text, so the headline reads against the bright window. Fades with the room text,
   so the walks keep their full brightness. */
.room-grade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: radial-gradient(ellipse 70% 90% at 12% 45%, rgba(60, 50, 40, 0.55) 0%, rgba(120, 110, 100, 0.25) 45%, rgba(255, 255, 255, 0) 75%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.layer-bg .bg-video { transition: filter 0.6s ease; }
body:has(.ui-container.room-living:not(.ui-hidden)) .room-grade { opacity: 1; }
body:has(.ui-container.room-living:not(.ui-hidden)) .layer-bg .bg-video { filter: brightness(0.82) contrast(1.05) saturate(0.96); }

/* "Loading" pill while a click waits for animation frames (script.js TransitionLoader). */
.transition-loader {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(16, 12, 10, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f3ece4;
  font-size: 16px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.transition-loader.is-visible { opacity: 1; transform: translate(-50%, 0); }
.transition-loader-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(243, 236, 228, 0.3);
  border-top-color: #ff7a18;
  animation: transition-loader-spin 0.8s linear infinite;
}
@keyframes transition-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .transition-loader-ring { animation-duration: 2.4s; } }
html.is-transition-loading,
html.is-transition-loading * { cursor: progress !important; }

/* --- Fullscreen Video Background --- */
.video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background-color: transparent;
  background-image: url('Media/Living_Bedroom/LivingToBedroom0097.avif');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transform-origin: center center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 2.4s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.8s ease;
  will-change: transform, opacity;
  z-index: 1;
}

.bg-video.active-video {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
  z-index: 2;
}

/* --- Freedom Text Intro Splash (Full Viewport Centered Overlay) --- */
.freedom-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.freedom-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.freedom-splash-text {
  color: #ffffff;
  line-height: 0;
  margin: 0;
  padding: 0;
}

/* The Harsh Pal mark (replaces the old "Freedom" wordmark on the loading screen) */
.site-mark {
  display: block;
  height: clamp(9rem, 30vh, 17rem);
  width: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

/* Minimal editorial loading indicator — sits naturally below the mark */
.freedom-loading-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  /* Delayed reveal so fast connections see nothing — only slow loads show it */
  pointer-events: none;
}

.freedom-loading-indicator.is-visible {
  opacity: 1;
}

.freedom-loading-indicator.is-fading-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.freedom-loading-label {
  font-family: var(--font-body, 'Belleza', sans-serif);
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.freedom-loading-percent {
  font-family: var(--font-body, 'Belleza', sans-serif);
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  min-width: 2.8ch;
}

.freedom-splash.fade-out {
  opacity: 0;
}


/* Hide Freedom Intro Splash immediately on initial paint when intro is already completed */
.intro-completed .freedom-splash,
.intro-completed #freedom-splash {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- Floating UI Overlay Container --- */
.ui-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
  transform: none !important;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.ui-container.ui-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ui-container.ui-hidden .about-main,
.ui-container.ui-hidden .living-main,
.ui-container.ui-hidden .bedroom-main,
.ui-container.ui-hidden .kitchen-main,
.ui-container.ui-hidden .pool-main,
.ui-container.ui-hidden .office-main,
.ui-container.ui-hidden .freedom-title,
.ui-container.ui-hidden .bottom-footer,
.ui-container.ui-hidden .top-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


.ui-container.revealed,
.ui-container.visible {
  pointer-events: none;
}

.ui-container.revealed .nav-bar,
.ui-container.visible .nav-bar,
.ui-container.revealed .nav-link,
.ui-container.visible .nav-link,
.ui-container.revealed .social-icon,
.ui-container.visible .social-icon,
.ui-container.revealed .about-main,
.ui-container.visible .about-main,
.ui-container.revealed .living-main,
.ui-container.visible .living-main,
.ui-container.revealed .explore-projects-btn,
.ui-container.visible .explore-projects-btn,
.ui-container.revealed.room-bedroom .bedroom-main,
.ui-container.visible.room-bedroom .bedroom-main,
.ui-container.revealed.room-kitchen .kitchen-main,
.ui-container.visible.room-kitchen .kitchen-main,
.ui-container.revealed.room-poolroom .pool-main,
.ui-container.visible.room-poolroom .pool-main,
.ui-container.revealed.room-office .office-main,
.ui-container.visible.room-office .office-main {
  pointer-events: auto;
}

/* --- Staggered Reveal Animations --- */
.stagger-1,
.stagger-2,
.stagger-3,
.stagger-4,
.stagger-5,
.stagger-6 {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.ui-container.revealed .stagger-1,
.ui-container.visible .stagger-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.ui-container.revealed .stagger-2,
.ui-container.visible .stagger-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.ui-container.revealed .stagger-3,
.ui-container.visible .stagger-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.ui-container.revealed .stagger-4,
.ui-container.visible .stagger-4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.36s;
}

.ui-container.revealed .stagger-5,
.ui-container.visible .stagger-5 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.44s;
}

.ui-container.revealed .stagger-6,
.ui-container.visible .stagger-6 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* --- Top Header Navigation --- */
.top-header {
  position: absolute;
  top: clamp(24px, 4vh, 42px);
  left: clamp(28px, 4vw, 55px);
  z-index: 25;
  transition: opacity .4s cubic-bezier(0.16, 1, 0.3, 1), transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-header.nav-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-10px) !important;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  opacity: 1;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 700;
  opacity: 1;
}

/* --- Top Right Editorial Title --- */
.freedom-title {
  position: absolute;
  top: clamp(20px, 3.5vh, 32px);
  right: clamp(28px, 4vw, 65px);
  z-index: 20;
  pointer-events: none !important;
}

.freedom-title h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.5vw, 60pt);
  font-weight: bold;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  pointer-events: none !important;
}

/* --- Main Home / Living Content Area (Centered Overlay) --- */
.about-main,
.living-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  max-width: 540px;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  box-sizing: border-box;
}

.about-block,
.living-block {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
}

/* --- Fullscreen 25% Opacity Black Backdrop Rectangle --- */
.fullscreen-backdrop-rect {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none !important;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.fullscreen-backdrop-rect.backdrop-hidden {
  opacity: 0 !important;
}

/* Ensure living-main / about-main only displays when in room-living and NOT ui-hidden */
.ui-container:not(.room-living) .about-main,
.ui-container:not(.room-living) .living-main,
.ui-container.projects-mode .about-main,
.ui-container.projects-mode .living-main,
.ui-container.ui-hidden .about-main,
.ui-container.ui-hidden .living-main {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  transition: none !important;
  transform: translate(-50%, calc(-50% - 12px)) !important;
}

.ui-container.room-living:not(.ui-hidden) .about-main,
.ui-container.room-living:not(.ui-hidden) .living-main {
  display: flex !important;
  visibility: visible !important;
}

.ui-container:not(.room-living) .bottom-footer,
.ui-container.projects-mode .bottom-footer,
.ui-container.ui-hidden .bottom-footer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  transition: none !important;
  transform: translateY(-12px) !important;
}

.ui-container.room-living:not(.ui-hidden) .bottom-footer {
  display: flex !important;
  visibility: visible !important;
}

.headline-wrapper {
  margin-bottom: 18px;
}

.main-headline {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.highlight-name {
  font-weight: 700;
}

.sub-headline {
  font-family: var(--font-body);
  font-size: 14pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin-bottom: 0;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}

/* --- Global Editorial Signature Accent Line --- */
.orange-accent-line {
  width: 64px;
  height: 3.5px;
  background-color: #ff7a18;
  margin-top: 18px;
  margin-bottom: 20px;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.35);
  flex-shrink: 0;
}

.tagline-wrapper {
  margin-top: 0;
}

.tagline {
  font-family: var(--font-body);
  font-size: 12.5pt;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

/* --- Bedroom / Projects Introduction Content Area --- */
.bedroom-main {
  position: absolute;
  top: 26%;
  left: clamp(32px, 8vw, 10%);
  z-index: 20;
  max-width: min(440px, calc(100vw - 64px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.8s;
}

.bedroom-block {
  position: relative;
  display: flex;
  flex-direction: column;
}

.bedroom-headline {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.bedroom-sub-headline {
  font-family: var(--font-body);
  font-size: 14pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  letter-spacing: 0.15px;
  margin-top: 14px;
  margin-bottom: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}

.bedroom-cta-wrapper {
  display: inline-block;
}

.explore-projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
}

.explore-projects-btn .btn-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.explore-projects-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.32), 0 0 16px rgba(255, 255, 255, 0.12);
}

.explore-projects-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.explore-projects-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.explore-projects-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

/* Visibility: only show bedroom-main when in room-bedroom and revealed/visible */
.ui-container.room-bedroom:not(.ui-hidden).revealed .bedroom-main,
.ui-container.room-bedroom:not(.ui-hidden).visible .bedroom-main,
.ui-container.room-bedroom:not(.ui-hidden) .bedroom-main {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  display: block !important;
}

.ui-container.room-bedroom:not(.ui-hidden) .bedroom-main .stagger-3,
.ui-container.room-bedroom:not(.ui-hidden) .bedroom-main .stagger-4 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.ui-container:not(.room-bedroom) .bedroom-main,
.ui-container.ui-hidden .bedroom-main {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  transition: none !important;
  transform: translateY(16px) !important;
}

.ui-container.room-bedroom:not(.ui-hidden) .bedroom-main {
  display: block !important;
}

/* --- Kitchen / Blog Introduction Content Area --- */
.kitchen-main {
  position: absolute;
  top: 26%;
  left: clamp(32px, 8vw, 10%);
  z-index: 20;
  max-width: min(440px, calc(100vw - 64px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.8s;
}

.kitchen-block {
  position: relative;
  display: flex;
  flex-direction: column;
}

.kitchen-headline {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.kitchen-sub-headline {
  font-family: var(--font-body);
  font-size: 14pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  letter-spacing: 0.15px;
  margin-top: 14px;
  margin-bottom: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}

.kitchen-descriptor-wrap {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}

.kitchen-descriptor {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  padding-left: 12px;
}

/* Visibility: only show kitchen-main when in room-kitchen and revealed/visible */
.ui-container.room-kitchen:not(.ui-hidden).revealed .kitchen-main,
.ui-container.room-kitchen:not(.ui-hidden).visible .kitchen-main,
.ui-container.room-kitchen:not(.ui-hidden) .kitchen-main {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  display: block !important;
}

.ui-container.room-kitchen:not(.ui-hidden) .kitchen-main .stagger-3,
.ui-container.room-kitchen:not(.ui-hidden) .kitchen-main .stagger-4 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.ui-container:not(.room-kitchen) .kitchen-main,
.ui-container.ui-hidden .kitchen-main {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  transition: none !important;
  transform: translateY(16px) !important;
}

.ui-container.room-kitchen:not(.ui-hidden) .kitchen-main {
  display: block !important;
}

/* --- Office / Contact Introduction Content Area --- */
.office-main {
  position: absolute;
  top: 26%;
  left: clamp(32px, 8vw, 10%);
  z-index: 20;
  max-width: min(440px, calc(100vw - 64px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.8s;
}

.office-block {
  position: relative;
  display: flex;
  flex-direction: column;
}

.office-headline {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.office-sub-headline {
  font-family: var(--font-body);
  font-size: 14pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  letter-spacing: 0.15px;
  margin-top: 14px;
  margin-bottom: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}

.office-cta-wrapper {
  display: inline-block;
}

/* Visibility: only show office-main when in room-office and revealed/visible */
.ui-container.room-office:not(.ui-hidden).revealed .office-main,
.ui-container.room-office:not(.ui-hidden).visible .office-main,
.ui-container.room-office:not(.ui-hidden) .office-main {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  display: block !important;
}

.ui-container.room-office:not(.ui-hidden) .office-main *,
.ui-container.room-office:not(.ui-hidden) .office-main .headline-wrapper,
.ui-container.room-office:not(.ui-hidden) .office-main .office-headline,
.ui-container.room-office:not(.ui-hidden) .office-main .office-sub-headline,
.ui-container.room-office:not(.ui-hidden) .office-main .orange-accent-line,
.ui-container.room-office:not(.ui-hidden) .office-main .office-cta-wrapper,
.ui-container.room-office:not(.ui-hidden) .office-main .contact-intro-btn,
.ui-container.room-office:not(.ui-hidden) .office-main .stagger-3,
.ui-container.room-office:not(.ui-hidden) .office-main .stagger-4 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ui-container:not(.room-office) .office-main,
.ui-container.ui-hidden .office-main {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  transition: none !important;
  transform: translateY(16px) !important;
}

.ui-container.room-office:not(.ui-hidden) .office-main {
  display: block !important;
}

/* --- Pool Room / About Me Content Area --- */
.pool-main {
  position: absolute;
  top: 22%;
  left: 10%;
  z-index: 20;
  max-width: 480px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.8s;
}

.pool-block {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pool-headline {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.pool-sub-headline {
  font-family: var(--font-body);
  font-size: 14pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  letter-spacing: 0.15px;
  margin-top: 14px;
  margin-bottom: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}

.pool-supporting-text {
  font-family: var(--font-body);
  font-size: 14pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  letter-spacing: 0.15px;
  margin-top: 2px;
  margin-bottom: 20px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}

.pool-descriptor-wrap {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}

.pool-descriptor {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  padding-left: 12px;
}

/* Visibility: only show pool-main when in room-poolroom and revealed/visible */
.ui-container.room-poolroom:not(.ui-hidden).revealed .pool-main,
.ui-container.room-poolroom:not(.ui-hidden).visible .pool-main,
.ui-container.room-poolroom:not(.ui-hidden) .pool-main {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  display: block !important;
}

.ui-container.room-poolroom:not(.ui-hidden) .pool-main .stagger-3,
.ui-container.room-poolroom:not(.ui-hidden) .pool-main .stagger-4 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.ui-container:not(.room-poolroom) .pool-main,
.ui-container.ui-hidden .pool-main {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  transition: none !important;
  transform: translateY(16px) !important;
}

.ui-container.room-poolroom:not(.ui-hidden) .pool-main {
  display: block !important;
}

/* --- Bottom Footer Elements --- */
.bottom-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 80px;
  z-index: 20;
}

.footer-center {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.powered-text {
  font-family: var(--font-body);
  font-size: 10pt;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.footer-socials {
  position: absolute;
  bottom: 24px;
  right: 55px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.icon-linkedin {
  background-color: transparent;
}

.icon-artstation {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Responsive Scaling & Adjustments --- */
@media (max-width: 1200px) {
  .freedom-title h1 {
    font-size: 60px;
  }

  .bedroom-main,
  .kitchen-main,
  .pool-main,
  .office-main {
    left: 8%;
    max-width: 380px;
  }

  .main-headline,
  .living-headline,
  .bedroom-headline,
  .kitchen-headline,
  .pool-headline,
  .office-headline {
    font-size: 38px;
  }

  .sub-headline,
  .living-sub-headline,
  .bedroom-sub-headline,
  .kitchen-sub-headline,
  .pool-sub-headline,
  .pool-supporting-text,
  .office-sub-headline {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  .top-header {
    left: max(14px, env(safe-area-inset-left, 14px));
    top: max(14px, env(safe-area-inset-top, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    width: auto;
    max-width: calc(100vw - 28px);
  }

  .nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-bar::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 13.5px;
    white-space: nowrap;
    padding: 8px 6px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
  }

  .freedom-title {
    right: 20px;
    top: max(16px, env(safe-area-inset-top, 16px));
    pointer-events: none !important;
  }

  .freedom-title h1 {
    font-size: clamp(26px, 5vw, 38px);
    pointer-events: none !important;
    opacity: 0.6;
  }

  .bedroom-main,
  .kitchen-main,
  .pool-main,
  .office-main {
    top: 20%;
    left: 8%;
    max-width: min(88vw, 360px);
  }

  .main-headline,
  .living-headline,
  .bedroom-headline,
  .kitchen-headline,
  .pool-headline,
  .office-headline {
    font-size: clamp(26px, 6.5vw, 34px);
    line-height: 1.22;
  }

  .sub-headline,
  .living-sub-headline,
  .bedroom-sub-headline,
  .kitchen-sub-headline,
  .pool-sub-headline,
  .pool-supporting-text,
  .office-sub-headline {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.5;
  }

  .explore-projects-btn,
  .kitchen-intro-btn,
  .contact-intro-btn {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 600px) {
  .top-header {
    left: max(12px, env(safe-area-inset-left, 12px));
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
  }

  .nav-bar {
    gap: 10px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 4px;
  }

  /* Watermark style on small phones to avoid obstructing header or headline */
  .freedom-title {
    top: auto;
    bottom: clamp(65px, 10vh, 90px);
    right: 18px;
    text-align: right;
  }

  .freedom-title h1 {
    font-size: 26px;
    opacity: 0.35;
  }

  .about-main,
  .living-main {
    max-width: 92%;
    top: 48%;
  }

  .bedroom-main,
  .kitchen-main,
  .pool-main,
  .office-main {
    top: 18%;
    left: 6%;
    max-width: 88%;
  }

  .main-headline,
  .living-headline,
  .bedroom-headline,
  .kitchen-headline,
  .pool-headline,
  .office-headline {
    font-size: clamp(24px, 6vw, 30px);
  }

  .sub-headline,
  .living-sub-headline,
  .bedroom-sub-headline,
  .kitchen-sub-headline,
  .pool-sub-headline,
  .pool-supporting-text,
  .office-sub-headline {
    font-size: 14.5px;
  }

  .bottom-footer {
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    height: auto;
  }

  .footer-center {
    display: none;
  }

  .footer-socials {
    right: 16px;
    bottom: 8px;
    gap: 10px;
  }

  .social-icon {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   Interactive Objects Architectural Framework Styles
   ========================================================================== */
.layer-interactive {
  top: -5% !important;
  left: -5% !important;
  width: 110% !important;
  height: 110% !important;
  pointer-events: none !important;
  z-index: 5;
}

.interactive-stage {
  position: absolute;
  pointer-events: none !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.interactive-object {
  position: absolute;
  pointer-events: none !important;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter, opacity;
  z-index: 6;
}

.interactive-object svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none !important;
}

/* ==========================================================================
   Architectural Interactables Idle Breathing Glow System
   Isolated, reusable component: Provides a soft, feathered, atmospheric
   luminous boundary across all interactive colliders while idle.
   ========================================================================== */
:root {
  /* Configurable Timing & Pulse Parameters */
  --interactable-glow-duration: 1.65s;     /* Breathing cycle: 1.5–1.8s */
  --interactable-glow-min-opacity: 0.32;   /* Min idle intensity: 30–35% */
  --interactable-glow-max-opacity: 0.68;   /* Max idle intensity: 65–70% */
  --interactable-glow-hover-opacity: 0.95; /* Hover intensity */

  /* Configurable Visual Aesthetics: Ambient Architectural Bloom */
  --interactable-glow-stroke: rgba(255, 255, 255, 0.92);  /* Luminous boundary stroke */
  --interactable-glow-stroke-width: 2px;                  /* Non-scaling edge width */
  --interactable-glow-fill: rgba(255, 255, 255, 0.06);    /* Soft interior bleed */
  --interactable-glow-blur: 1px;                          /* Feathered edge softness */
  --interactable-glow-bloom: rgba(255, 255, 255, 0.65);   /* Radiant ambient light */
}

/* Base Idle State: Soft feathered luminous edge breathing smoothly on all interactables */
.interactive-object .glow-shape {
  pointer-events: all !important;
  cursor: pointer !important;
  fill: var(--obj-fill, var(--interactable-glow-fill)) !important;
  stroke: var(--obj-stroke, var(--interactable-glow-stroke)) !important;
  stroke-width: var(--interactable-glow-stroke-width, 2px) !important;
  vector-effect: non-scaling-stroke;
  opacity: var(--interactable-glow-min-opacity);
  filter: blur(var(--interactable-glow-blur))
          drop-shadow(0 0 2px #ffffff)
          drop-shadow(0 0 6px var(--interactable-glow-bloom))
          drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
  animation: interactableIdleBreathe var(--interactable-glow-duration) ease-in-out infinite !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              stroke-width 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, filter;
}

/* Smooth sinusoidal idle breathing: 32% (dim) -> 68% (bright) -> 32% (dim) */
@keyframes interactableIdleBreathe {
  0%, 100% {
    opacity: var(--interactable-glow-min-opacity);
    filter: blur(var(--interactable-glow-blur))
            drop-shadow(0 0 2px #ffffff)
            drop-shadow(0 0 5px var(--interactable-glow-bloom))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  50% {
    opacity: var(--interactable-glow-max-opacity);
    filter: blur(calc(var(--interactable-glow-blur) + 0.4px))
            drop-shadow(0 0 3px #ffffff)
            drop-shadow(0 0 9px var(--interactable-glow-bloom))
            drop-shadow(0 0 18px rgba(255, 255, 255, 0.5));
  }
}

/* Hover & Active Glowing States: Soft ambient bloom intensifies without movement */
.interactive-object .glow-shape:hover,
.interactive-object .glow-shape.is-hovered,
.interactive-object .glow-shape:focus,
.interactive-object .glow-shape.is-active {
  animation: none !important;
  opacity: var(--interactable-glow-hover-opacity) !important;
  fill: var(--obj-fill, var(--interactable-glow-fill)) !important;
  stroke: var(--obj-stroke, var(--interactable-glow-stroke)) !important;
  stroke-width: calc(var(--interactable-glow-stroke-width, 2px) + 0.5px) !important;
  filter: blur(0.6px)
          drop-shadow(0 0 3px #ffffff)
          drop-shadow(0 0 8px var(--interactable-glow-bloom))
          drop-shadow(0 0 16px rgba(255, 255, 255, 0.6))
          drop-shadow(0 0 28px rgba(255, 255, 255, 0.35)) !important;
}

/* Disabled during room transitions or intro */
.interactive-disabled .interactive-object,
.interactive-disabled .glow-shape {
  pointer-events: none !important;
  opacity: 0 !important;
  animation: none !important;
}



/* Disabled during room transitions or intro */
.interactive-disabled,
.interactive-disabled .interactive-object,
.interactive-disabled .glow-shape,
.ui-container.ui-hidden ~ .layer-interactive .interactive-object {
  pointer-events: none !important;
  opacity: 0 !important;
}

.interactive-stage,
.interactive-object,
.interactive-object *,
.interactive-object svg,
.interactive-object .glow-shape {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.interactive-object:focus,
.interactive-object:focus-visible,
.interactive-object:active,
.interactive-object .glow-shape:focus,
.interactive-object .glow-shape:focus-visible,
.interactive-object .glow-shape:active {
  outline: none !important;
  box-shadow: none !important;
}

.interactive-debug-active .interactive-object .glow-shape {
  opacity: 1 !important;
  fill: rgba(255, 255, 255, 0.12) !important;
  stroke: rgba(255, 255, 255, 0.85) !important;
  stroke-width: 2.5px !important;
  stroke-dasharray: 6 4 !important;
  pointer-events: all !important;
  cursor: pointer;
  filter: blur(0.4px) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.interactive-debug-active .interactive-object .glow-shape:hover,
.interactive-debug-active .interactive-object .glow-shape.is-hovered {
  opacity: 1 !important;
  fill: rgba(255, 255, 255, 0.2) !important;
  stroke: #ffffff !important;
  stroke-width: 3px !important;
  stroke-dasharray: none !important;
  filter: blur(0.5px)
          drop-shadow(0 0 2px #ffffff)
          drop-shadow(0 0 6px rgba(255, 255, 255, 0.85))
          drop-shadow(0 0 16px rgba(255, 255, 255, 0.6))
          drop-shadow(0 0 30px rgba(255, 255, 255, 0.35)) !important;
}

.interactive-debug-label {
  position: absolute;
  top: -24px;
  left: 0;
  background: rgba(0, 0, 0, 0.88);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none !important;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 10;
}

/* ==========================================================================
   Cursor-Following Interaction Tooltip
   ========================================================================== */
.interaction-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.92);
  color: #ffffff;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.15s ease, visibility 0.15s ease;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
}

.interaction-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Contact Me Modal & Editorial Interface
   ========================================================================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.contact-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.contact-modal-container::-webkit-scrollbar {
  display: none;
}

.contact-modal-card {
  position: relative;
  background: rgba(18, 18, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 44px 48px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  user-select: text;
}

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

.contact-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.06);
}

.contact-modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

/* Header */
.contact-card-header {
  margin-bottom: 32px;
}

.contact-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-tag-num {
  color: #ffffff;
  font-weight: 600;
}

.contact-headline {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.contact-accent-line {
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 16px 0;
}

.contact-subhead {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 660px;
}

/* Two-Column Grid */
.contact-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

/* Column 1: Form */
.contact-form-column {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.3px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  user-select: text;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-input:focus,
.contact-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.contact-textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: flex-start;
  margin-top: 4px;
}

.contact-submit-btn .btn-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-submit-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.contact-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form-status {
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 22px;
  line-height: 1.4;
  margin-top: 4px;
}

/* Column 2: Direct Channels */
.contact-channels-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-channels-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-channel-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-channel-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.channel-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.channel-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.channel-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

.channel-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-channel-card:hover .channel-arrow {
  transform: translate(3px, -3px);
  color: #ffffff;
}

.contact-location-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.location-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  flex-shrink: 0;
}

/* Responsive Rules */
@media (max-width: 820px) {
  .contact-modal-card {
    padding: 32px 24px;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-headline {
    font-size: 32px;
  }
}

/* ==========================================================================
   Kitchen Blog Section & Interactive Culinary Stage
   ========================================================================== */

/* CTA in Kitchen Room */
.kitchen-cta-wrapper {
  margin-top: 1.2rem;
}

.kitchen-intro-btn {
  border-color: #ff7a18;
  color: #ff7a18;
}

.kitchen-intro-btn:hover {
  background: #ff7a18;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 122, 24, 0.35);
}

/* ==========================================================================
   Interactive Kitchen Blog Laboratory Stage
   Uses the same full-viewport canvas background & 1:1 coordinate stage
   architecture as the PC Screen section.
   ========================================================================== */

/* Full Viewport Modal Stage */
.kitchen-blog-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 250;
  display: block;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
  overflow: hidden;
  background-color: #000000;
}

.kitchen-blog-stage.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.kitchen-stage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* 1. Fullscreen Canvas Environment (Edge-to-Edge, matching PC Screen section) */
.kitchen-canvas-wrapper {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  pointer-events: none;
}

.kitchen-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 2. 1:1 Kitchen Coordinate Stage (Mapped to 1920x1920 KitchenScene.avif coordinates) */
.kitchen-scene-stage {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}

/* Kitchen Hood & Exit Mechanism */
.kitchen-hood-area {
  position: absolute;
  top: 0;
  left: 32%;
  width: 36%;
  height: 22%;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  cursor: pointer;
  pointer-events: auto;
}

.kitchen-hood-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(15, 17, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.kitchen-hood-exit-btn:hover {
  background: rgba(255, 122, 24, 0.9);
  color: #ffffff;
  border-color: #ff7a18;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 122, 24, 0.4);
}

.hood-exit-arrow {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.kitchen-hood-exit-btn:hover .hood-exit-arrow {
  transform: translateY(-2px);
}

/* ==========================================================================
   Floating Project Window (16:9 Aspect Ratio Desktop Frame)
   Reuses the visual design system of the PC Screen section's Project Window:
   - Outer frame locked to 16:9 aspect ratio, horizontally centered
   - Proportional responsive scaling with viewport clearance
   - Editorial white canvas (#ffffff) with subtle drop shadow
   - Header with category / folio hierarchy & close return button
   - Static Left & Right navigation sidebars (~14-15% width each)
   - Centered independently scrollable case study article (~70% width)
   ========================================================================== */
.floating-project-window {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  aspect-ratio: 16 / 9;
  width: min(84vw, calc((100vh - 145px) * (16 / 9)), 1240px);
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 135px);
  min-height: 280px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #111111;
  font-family: var(--font-body);
  pointer-events: auto;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.floating-project-window.is-retracting {
  transform: translate(-50%, -150%) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   KITCHEN BLOG MODAL & ILLUSTRATOR DETAILED ART-DIRECTED LAYOUT
   Strictly isolated and scoped to #kitchen-blog-stage to prevent any style leakage
   ========================================================================== */

/* Kitchen Blog Window: Desktop 16:9 Frame within 3D Kitchen Canvas */
.kitchen-blog-window {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  aspect-ratio: 16 / 9;
  width: min(84vw, calc((100vh - 145px) * (16 / 9)), 1260px);
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 135px);
  min-height: 280px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #111111;
  font-family: var(--font-body);
  pointer-events: auto;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.kitchen-blog-window.is-retracting {
  transform: translate(-50%, -150%) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

/* Editorial Top Header Bar (Matching Illustrator Artboard Header) */
.kb-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 3vw, 36px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  z-index: 10;
  flex-shrink: 0;
}

.kb-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666666;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.kb-return-btn:hover {
  color: #000000;
  transform: translateX(-3px);
}

.kb-return-btn .return-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.kb-header-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #111111;
  text-transform: uppercase;
}

.kb-header-sections {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kb-sec-tag {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #888888;
  text-transform: uppercase;
}

.kb-sec-val {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #ff7a18;
  background: rgba(255, 122, 24, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Scroll Area & Open Editorial Artboard Canvas */
.kb-window-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

/* Editorial Left and Right Rails matching Illustrator preview */
.kb-rail {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  z-index: 5;
  user-select: none;
  flex-shrink: 0;
}

.kb-rail-left {
  width: clamp(80px, 10vw, 130px);
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  padding: clamp(24px, 3.5vw, 40px) 16px;
  align-items: center;
}

.kb-rail-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.kb-rail-left .kb-rail-inner {
  align-items: center;
}

.kb-rail-tag-projects {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.02em;
  display: block;
}

.kb-rail-right {
  width: clamp(165px, 18vw, 225px);
  border-left: 1px solid rgba(0, 0, 0, 0.07);
  padding: clamp(24px, 3.5vw, 40px) clamp(16px, 2vw, 22px);
  align-items: flex-start;
}

.kb-rail-right .kb-rail-inner {
  align-items: flex-start;
}

.kb-rail-title {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.kb-rail-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.kb-rail-tab {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.35;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  background: transparent;
  border: none;
  padding: 2px 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  text-align: left;
  letter-spacing: 0.015em;
  gap: 6px;
  transition: color 0.2s ease, opacity 0.2s ease;
  outline: none;
}

.kb-rail-tab:hover {
  color: #000000;
}

.kb-rail-tab.active {
  color: #000000;
}

.kb-rail-tab .kb-tab-num {
  flex-shrink: 0;
  font-weight: 400;
  opacity: 0.75;
}

.kb-rail-tab.active .kb-tab-num {
  opacity: 1;
}

.kb-rail-tab .kb-tab-name {
  display: inline;
}

.kb-rail-tab.active .kb-tab-name {
  position: relative;
  display: inline;
  border-bottom: 2px solid #ff5500;
  padding-bottom: 1px;
}

@media (max-width: 900px) {
  .kb-rail-left {
    display: none;
  }
  .kb-rail-right {
    width: clamp(125px, 16vw, 155px);
    padding: 20px 12px;
  }
}

@media (max-width: 680px) {
  .kb-rail-right {
    display: none;
  }
  .kb-artboard-meta-strip {
    display: flex !important;
  }
}

.kitchen-content-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
  background: #ffffff;
}

.kitchen-content-scroll::-webkit-scrollbar {
  width: 5px;
}

.kitchen-content-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.kitchen-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
}

.kitchen-article-canvas {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 64px) clamp(24px, 4vw, 56px) 80px;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 84px);
  position: relative;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.kitchen-article-canvas *,
.kb-spread,
.kb-spread * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

.kitchen-article-canvas ::selection,
.kb-spread ::selection {
  background: rgba(255, 85, 0, 0.25) !important;
  color: #111111 !important;
}

/* Spreads / Artboard Sections */
.kb-spread {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  scroll-margin-top: 24px;
}

/* Artboard Meta Strip */
.kb-artboard-meta-strip {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 28px;
  border-bottom: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #888888;
  text-transform: uppercase;
}

.kb-artboard-meta-strip .kb-meta-left {
  color: #111111;
}

.kb-artboard-meta-strip .kb-meta-right {
  color: #ff5500;
}

/* Typography Hierarchy */
.kb-hero-heading {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #000000;
  margin: 0 0 14px;
}

.kb-heading {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 2.9vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #000000;
  margin: 0 0 12px;
}

.kb-center-text {
  text-align: center;
}

/* Orange Underline Bars (Matches Illustrator Design) */
.kb-orange-bar {
  height: 4px;
  background-color: #f26522;
  margin-bottom: 24px;
  border-radius: 0;
}

.kb-bar-hero { width: clamp(220px, 35vw, 400px); }
.kb-bar-balancing { width: 140px; }
.kb-bar-numbers { width: 160px; }
.kb-bar-experience { width: clamp(240px, 32vw, 360px); }
.kb-bar-language { width: clamp(240px, 32vw, 360px); }
.kb-bar-source { width: 68px; height: 3px; margin: 6px 0 14px; }
.kb-bar-answers { width: clamp(220px, 28vw, 320px); }
.kb-bar-fluctuations { width: clamp(240px, 30vw, 350px); }
.kb-bar-tell-us { width: 140px; }
.kb-bar-center { width: 180px; margin-left: auto; margin-right: auto; }
.kb-bar-theme { width: 110px; margin-bottom: 12px; }
.kb-bar-anticipation { width: clamp(200px, 26vw, 300px); }
.kb-bar-question { width: 180px; }
.kb-bar-glusight { width: 160px; }
.kb-bar-architecture { width: clamp(220px, 28vw, 320px); }
.kb-bar-glusight-exp { width: clamp(200px, 26vw, 300px); }
.kb-bar-reflection { width: 180px; }

/* Body & Lead Text */
.kb-lead-text {
  font-family: 'Belleza', 'Montserrat', sans-serif;
  font-size: clamp(16.5px, 1.25vw, 20px);
  line-height: 1.6;
  color: #222222;
  margin: 0;
}

.kb-body-text {
  font-family: 'Belleza', 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: #222222;
  margin: 0 0 14px;
}

.kb-note-text {
  color: #666666;
  font-style: italic;
}

/* Artboard 1 Hero Split */
.kb-hero-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 10px;
}

.kb-hero-img-wrap {
  width: 100%;
  overflow: hidden;
  box-shadow: none;
}

.kb-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Heading Accent Bars */
.kb-bar-hero { width: clamp(220px, 35vw, 400px); }
.kb-bar-glusight { width: 160px; }
.kb-bar-idea { width: clamp(200px, 26vw, 300px); }
.kb-bar-research { width: clamp(220px, 28vw, 320px); }
.kb-bar-future { width: clamp(220px, 28vw, 320px); }
.kb-bar-accent-sm { width: 44px; height: 2px; margin: 8px 0 16px; background: #f26522; }

/* Sub-heading & Sub-tag */
.kb-sub-heading {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  color: #111111;
  margin: 0 0 4px;
}

.kb-sub-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff7a18;
  margin-bottom: 6px;
  display: inline-block;
}

.kb-caption-sub {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #777777;
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}

/* SECTION 01 — THE HOOK */
.kb-section-hook .kb-hero-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  margin-top: 16px;
}

.kb-section-hook .kb-lead-text::first-letter {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: 3.2em;
  float: left;
  line-height: 0.8;
  margin: 6px 12px 0 0;
  color: #111111;
}

.kb-hero-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: none;
  box-shadow: none;
}

.kb-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* SECTION 02 — INTRODUCING GLUSIGHT */
.kb-system-hero-wrap {
  margin: 32px 0 40px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: clamp(20px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kb-system-hero-img {
  width: 100%;
  max-width: 820px;
  height: auto;
  object-fit: contain;
  display: block;
}

.kb-concept-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  margin: 32px 0 48px;
  padding-top: 0;
  border-top: none;
}

.kb-pillar-item {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.kb-pillar-item .kb-sub-heading {
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.kb-features-editorial {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 5vw, 60px);
  margin-top: 36px;
}

.kb-feature-editorial-item {
  background: transparent;
  border: none;
  border-top: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: none;
}

.kb-feature-editorial-item:hover {
  transform: none;
  box-shadow: none;
}

.kb-feature-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ff5500;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.kb-feature-name {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 400;
  color: #111111;
  margin: 0 0 10px;
  line-height: 1.25;
}

.kb-feature-asset-wrap {
  margin-top: 20px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
}

.kb-feature-asset-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.kb-feature-asset-img.svg-corridor {
  max-height: 160px;
}

/* SECTION 03 — FROM IDEA TO INTERFACE */
.kb-process-progression {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5.5vw, 68px);
  margin-top: 36px;
}

.kb-process-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.kb-process-row.kb-row-reverse {
  grid-template-columns: 1.2fr 1fr;
}

.kb-process-row.kb-row-reverse .kb-process-text-col {
  order: 2;
}

.kb-process-row.kb-row-reverse .kb-process-visual-col {
  order: 1;
}

.kb-process-step-num {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: 36px;
  color: #ff7a18;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.kb-process-asset-wrap {
  background: #fbfbfb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 14px;
  overflow: hidden;
}

.kb-process-asset-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

/* SECTION 04 — RESEARCH & INSIGHTS */
.kb-sub-block {
  margin-top: clamp(44px, 5.5vw, 68px);
}

.kb-banner-full-wrap {
  margin: 32px 0 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.kb-banner-full-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

/* Verified Papers: Authentic Newspaper Clippings (matching Reference/NewspaperClippings.jpg) */
.kb-papers-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 30px;
  margin: 36px 0 28px;
  padding: 12px 6px;
}

.kb-paper-item {
  position: relative;
  background: linear-gradient(172deg, #fcfbf7 0%, #f7f3e8 60%, #f2ece0 100%);
  padding: 26px 24px 28px;
  border: none;
  border-radius: 0;
  /* Authentic torn paper micro-serrations top and bottom matching Reference/NewspaperClippings.jpg */
  clip-path: polygon(
    0% 4px, 3% 1px, 6% 5px, 9% 2px, 12% 4px, 15% 1px, 18% 5px, 21% 2px, 
    24% 4px, 27% 1px, 30% 5px, 33% 2px, 36% 4px, 39% 1px, 42% 5px, 45% 2px, 
    48% 4px, 51% 1px, 54% 5px, 57% 2px, 60% 4px, 63% 1px, 66% 5px, 69% 2px, 
    72% 4px, 75% 1px, 78% 5px, 81% 2px, 84% 4px, 87% 1px, 90% 5px, 93% 2px, 
    96% 4px, 100% 2px,
    100% calc(100% - 3px), 97% calc(100% - 1px), 94% calc(100% - 5px), 91% calc(100% - 2px),
    88% calc(100% - 4px), 85% calc(100% - 1px), 82% calc(100% - 5px), 79% calc(100% - 2px),
    76% calc(100% - 4px), 73% calc(100% - 1px), 70% calc(100% - 5px), 67% calc(100% - 2px),
    64% calc(100% - 4px), 61% calc(100% - 1px), 58% calc(100% - 5px), 55% calc(100% - 2px),
    52% calc(100% - 4px), 49% calc(100% - 1px), 46% calc(100% - 5px), 43% calc(100% - 2px),
    40% calc(100% - 4px), 37% calc(100% - 1px), 34% calc(100% - 5px), 31% calc(100% - 2px),
    28% calc(100% - 4px), 25% calc(100% - 1px), 22% calc(100% - 5px), 19% calc(100% - 2px),
    16% calc(100% - 4px), 13% calc(100% - 1px), 10% calc(100% - 5px), 7% calc(100% - 2px),
    4% calc(100% - 4px), 0% calc(100% - 2px)
  );
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.05));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

/* Organic natural editorial desk tilt for authentic clipping feel */
.kb-paper-item:nth-child(1) {
  transform: rotate(-0.8deg);
}

.kb-paper-item:nth-child(2) {
  transform: rotate(1.1deg);
}

.kb-paper-item:nth-child(3) {
  transform: rotate(-0.6deg);
}

.kb-paper-item:nth-child(4) {
  transform: rotate(0.9deg);
}

.kb-paper-item:hover {
  transform: translateY(-3px) rotate(0deg);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.kb-paper-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kb-paper-journal {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555555;
}

.kb-paper-tag {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff5500;
  text-transform: uppercase;
  background: rgba(255, 85, 0, 0.08);
  padding: 2px 7px;
  border-radius: 2px;
}

.kb-paper-title {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  color: #111111;
  margin: 0 0 10px;
  line-height: 1.35;
}

.kb-paper-desc {
  font-family: 'Belleza', 'Montserrat', sans-serif;
  font-size: 13.5px;
  line-height: 1.58;
  color: #333333;
  margin: 0;
}

/* 04B: Primary Research */
.kb-triptych-wrap {
  display: none !important;
}

.kb-participants-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
  margin-top: 36px;
}

.kb-participant-card {
  background: transparent;
  border: none;
  border-top: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.kb-participant-photo-wrap {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  border: none;
  box-shadow: none;
}

.kb-participant-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-participant-name {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 400;
  color: #111111;
  margin: 0 0 8px;
}

.kb-participant-desc {
  font-family: 'Belleza', 'Montserrat', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
}

/* 04C: Key Insights (The Three Connected Themes matching Project DetailedLayout-08.png) */
.kb-themes-integrated-container {
  position: relative;
  width: 100%;
  margin: 32px auto 20px;
}

.kb-themes-canvas-art {
  width: 100%;
  height: auto;
  display: block;
}

.kb-theme-callout {
  position: absolute;
  width: 44%;
  display: flex;
  flex-direction: column;
  z-index: 5;
  pointer-events: auto;
}

.kb-theme-1-callout {
  top: 9%;
  left: 1%;
}

.kb-theme-2-callout {
  top: 41%;
  right: 1%;
}

.kb-theme-3-callout {
  top: 72%;
  left: 1%;
}

.kb-insight-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ff5500;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.kb-insight-title {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 400;
  color: #111111;
  margin: 0 0 10px;
  line-height: 1.25;
}

/* 04D: Connecting Research Bridge (Editorial Pull-Quote Spread) */
.kb-bridge-block {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 44px) 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
}

.kb-bridge-block .kb-sub-tag {
  color: #ff5500;
  letter-spacing: 0.16em;
  font-size: 10px;
  margin-bottom: 12px;
}

.kb-bridge-block .kb-sub-heading {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 14px;
}

.kb-bridge-lead {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
  color: #111111;
  font-style: italic;
  max-width: 820px;
  margin: 16px auto 0;
}

/* SECTION 05 — FUTURE PLANS & REFLECTION (Editorial Numbered Index) */
.kb-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-top: 36px;
}

.kb-plan-card {
  background: transparent;
  border: none;
  border-top: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: none;
}

.kb-plan-card:hover {
  transform: none;
  box-shadow: none;
}

.kb-plan-num {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  color: #ff5500;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.kb-plan-title {
  font-family: 'GFS Didot', 'Playfair Display', Georgia, serif;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400;
  color: #111111;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* Editorial Reflection Spread */
.kb-reflection-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(44px, 5.5vw, 68px);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.kb-reflection-asset-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kb-reflection-hardware-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

.kb-editorial-colophon {
  margin-top: 60px;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.kb-colophon-rule {
  width: 60px;
  height: 2px;
  background: #E5E7EB;
  margin: 0 auto;
}

.kb-colophon-quote {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.8vw, 20px);
  font-style: italic;
  color: #6B7280;
  max-width: 520px;
  margin: 0;
}

.kb-colophon-folio {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #9CA3AF;
  font-weight: 600;
}

/* Responsive Overrides for Kitchen Layout */
@media (max-width: 860px) {
  .kb-hero-split,
  .kb-concept-pillars,
  .kb-features-editorial,
  .kb-process-row,
  .kb-process-row.kb-row-reverse,
  .kb-participants-row,
  .kb-reflection-split {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .kb-papers-list {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .kb-themes-integrated-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .kb-theme-callout {
    position: static !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  .kb-process-row.kb-row-reverse .kb-process-text-col {
    order: 1 !important;
  }

  .kb-process-row.kb-row-reverse .kb-process-visual-col {
    order: 2 !important;
  }

  .kb-hero-heading {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .kb-heading {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .kb-plans-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Interactive Stove Control Dials Row
   Preserves the physical stove dials and their visual appearance.
   All floating cards, labels, and badges above them have been removed.
   ========================================================================== */
.stove-dials-row {
  display: none !important; /* Temporarily removed per user request */
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 18;
}

.stove-dial-pod {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  transition: transform 0.25s ease;
}

.stove-dial-pod:hover {
  transform: translate(-50%, -53%);
}

/* Exact coordinates matching the knobs on KitchenScene.avif */
.stove-dial-pod.dial-1 {
  left: 28%;
  top: 75.7%;
}

.stove-dial-pod.dial-2 {
  left: 39%;
  top: 75.7%;
}

.stove-dial-pod.dial-3 {
  left: 50%;
  top: 75.7%;
}

.stove-dial-pod.dial-4 {
  left: 61%;
  top: 75.7%;
}

.stove-dial-pod.dial-5 {
  left: 72%;
  top: 75.7%;
}

.dial-knob {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2d33 0%, #111215 75%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stove-dial-pod.active .dial-knob {
  border-color: #ff7a18;
  box-shadow: 0 0 16px rgba(255, 122, 24, 0.7), inset 0 0 6px rgba(255, 122, 24, 0.4);
}

.dial-indicator-needle {
  position: absolute;
  top: 4px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 12px;
  background: #ffffff;
  border-radius: 2px;
  transform-origin: 1.5px 18px;
  transform: rotate(var(--needle-rot, 0deg));
  transition: transform 0.1s linear, background 0.3s ease;
}

.stove-dial-pod.active .dial-indicator-needle {
  background: #ff7a18;
  box-shadow: 0 0 6px #ff7a18;
}

.dial-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.dial-tag {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.dial-name {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.1;
}

.stove-dial-pod.active .dial-tag,
.stove-dial-pod.active .dial-name {
  color: #ff7a18;
}

/* Kitchen Blog Mobile Responsive Optimization */
@media (max-width: 900px) {
  .floating-project-window {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    border: none !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .floating-project-window.is-retracting {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Tablet view (769px-900px): optional contained modal */
  @media (min-width: 769px) and (min-height: 501px) {
    .floating-project-window {
      top: max(16px, env(safe-area-inset-top, 16px)) !important;
      bottom: clamp(125px, 17vh, 150px) !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: calc(100vw - 32px) !important;
      max-width: 680px !important;
      height: auto !important;
      max-height: calc(100dvh - 140px) !important;
      border-radius: 6px !important;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    }
    .floating-project-window.is-retracting {
      transform: translateY(-130%) scale(0.85) !important;
    }
  }

  .kitchen-hood-area {
    display: none !important;
    pointer-events: none !important;
  }

  .window-top-bar,
  .window-header-bar {
    padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
    padding-left: max(16px, env(safe-area-inset-left, 16px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 16px)) !important;
    padding-bottom: 10px !important;
    min-height: 48px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
  }

  .window-folio-group,
  .window-folio-tag {
    font-size: 11px !important;
    max-width: calc(100% - 65px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .window-section-title-mini,
  .window-divider-slash {
    display: none !important;
  }

  .window-close-btn {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Body grid transforms into flex column */
  .case-study-intro,
  .opportunity-composition,
  .solution-composition {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .process-editorial-gallery {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .hero-image-wrap {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  .cs-hero-title {
    font-size: clamp(28px, 7vw, 42px) !important;
    line-height: 1.1 !important;
  }

  .cs-section-heading {
    font-size: clamp(22px, 5.5vw, 32px) !important;
    margin-bottom: 16px !important;
  }

  .content-body-scrollable {
    padding: 18px 14px !important;
  }

  .window-body-grid {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* Row 1: Project Selector Strip (Dishes) */
  .window-tab-projects {
    order: 1 !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #fafafa !important;
    padding: 6px 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-shrink: 0 !important;
  }

  .window-tab-projects::-webkit-scrollbar {
    display: none !important;
  }

  .window-tab-projects .tab-col-header {
    display: none !important;
  }

  .project-selector-list,
  .project-pick-list,
  .tab-project-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .project-selector-list li,
  .project-pick-item,
  .tab-project-item,
  .project-pick-list li,
  .tab-project-list li {
    list-style: none !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }

  .project-pick-btn,
  .tab-project-btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: #ffffff !important;
    color: #444444 !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .project-pick-btn.active,
  .tab-project-btn.active {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
  }

  .project-pick-btn.active .active-dot,
  .tab-project-btn.active .active-dot {
    color: #ff7a18 !important;
  }

  .project-discipline,
  .project-pick-desc,
  .tab-project-desc {
    display: none !important; /* Hide secondary desc on compact mobile pill */
  }

  /* Row 2: Section Navigation Strip (Process) */
  .window-tab-sections {
    order: 2 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    padding: 6px 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-shrink: 0 !important;
  }

  .window-tab-sections::-webkit-scrollbar {
    display: none !important;
  }

  .window-tab-sections .tab-col-header {
    display: none !important;
  }

  .section-nav-list,
  .tab-section-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .section-nav-item,
  .tab-section-item,
  .section-nav-list li,
  .tab-section-list li {
    list-style: none !important;
    display: flex !important;
    flex-shrink: 0 !important;
  }

  .section-tab-btn,
  .tab-section-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #f7f7f7 !important;
    color: #444444 !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .section-tab-btn.active,
  .tab-section-btn.active {
    background: #ff7a18 !important;
    color: #ffffff !important;
    border-color: #ff7a18 !important;
    font-weight: 600 !important;
  }

  .section-tab-btn.active .active-dot,
  .tab-section-btn.active .active-dot {
    color: #ffffff !important;
  }

  .tab-sub {
    display: none !important; /* Hide secondary sub-label on mobile pill */
  }

  /* Row 3: Main Editorial Reading Pane */
  .window-main-content,
  .window-content-pane {
    order: 3 !important;
    flex: 1 !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .content-heading {
    font-size: clamp(16px, 4.5vw, 19px) !important;
    margin: 4px 0 10px !important;
    line-height: 1.25 !important;
  }

  .content-body-scrollable p {
    font-size: clamp(12.5px, 3.4vw, 13.5px) !important;
    line-height: 1.55 !important;
    margin-bottom: 8px !important;
  }

  /* Physical Stove Dials */
  .stove-dials-row {
    bottom: 14px !important;
    gap: clamp(10px, 3.5vw, 22px) !important;
  }

  .dial-knob {
    width: 44px !important;
    height: 44px !important;
  }

  .dial-name {
    font-size: 9px !important;
  }
}

@media (max-width: 900px) and (orientation: landscape), (max-height: 500px) {
  .floating-project-window {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    border-radius: 0 !important;
  }

  .stove-dials-row {
    display: none !important;
  }
}
/* Lo-fi (text-only) version switch: fixed pill, bottom-left, every room */
.lofi-btn {
  position: fixed;
  left: 24px;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(24, 18, 14, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.lofi-btn:hover,
.lofi-btn:focus-visible {
  background: rgba(24, 18, 14, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  outline: none;
}
.lofi-btn:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.lofi-icon { flex: none; display: block; }
.lofi-label { line-height: 1; }
@media (max-width: 600px) {
  .lofi-btn { left: 14px; bottom: max(14px, env(safe-area-inset-bottom, 14px)); padding: 8px 14px 8px 11px; font-size: 12px; }
}


/* ---- Case study as paged slides: one section visible at a time ---- */
.kb-spread { display: none; }
.kb-spread.kb-page-active { display: flex; }
.kb-spread.kb-page-enter { animation: kbPageIn 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes kbPageIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kb-spread.kb-page-enter { animation: none; } }
.kitchen-article-canvas { padding-bottom: 96px; }
.kb-pager {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; z-index: 5;
  padding: 6px 8px; border-radius: 999px;
  background: rgba(24, 18, 14, 0.82); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.kb-pager-btn { white-space: nowrap;
  font: 700 11px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: transparent; border: 0; border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
}
.kb-pager-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.kb-pager-btn:disabled { opacity: 0.35; cursor: default; }
.kb-pager-count { font: 700 11px/1 var(--font-body); letter-spacing: 0.16em; min-width: 54px; text-align: center; }
@media (max-width: 600px) { .kb-pager { gap: 6px; bottom: 10px; } .kb-pager-btn { padding: 10px 12px; } }

/* ===== Kitchen Blog: project picker + visual stories ===== */
.kb-header-center { min-width: 0; flex: 1; display: flex; justify-content: center; padding: 0 12px; }
.kb-project-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 22px; width: 100%; }
.kb-project-tab {
  background: transparent; border: 0; cursor: pointer; text-align: left; padding: 2px 0; outline: none;
  font-family: 'GFS Didot', Georgia, serif; font-size: clamp(12px, 1vw, 14px); line-height: 1.3; letter-spacing: 0.015em;
  color: rgba(0, 0, 0, 0.45); transition: color .2s ease;
}
.kb-project-tab:hover { color: #000; }
.kb-project-tab.active { color: #000; border-bottom: 2px solid #ff5500; padding-bottom: 1px; }
@media (min-width: 901px) { .kb-rail-left { width: clamp(130px, 13vw, 175px); align-items: flex-start; } .kb-rail-left .kb-rail-inner { align-items: flex-start; } }
/* Small screens hide the left rail, so the picker moves into the header as a scrollable row (stories.js moves it) */
.kb-header-center.has-nav .kb-header-title { display: none; }
.kb-header-center.has-nav .kb-project-tabs { flex-direction: row; margin-top: 0; gap: 16px; overflow-x: auto; scrollbar-width: none; width: auto; }
.kb-header-center.has-nav .kb-project-tab { white-space: nowrap; font-size: 12px; }

.kb-story-main, .kb-rail-story { display: none; }
.kb-window-body.kb-mode-story #content-body-scrollable,
.kb-window-body.kb-mode-story .kb-rail-right:not(.kb-rail-story) { display: none; }
.kb-window-body.kb-mode-story .kb-story-main { display: block; }
.kb-window-body.kb-mode-story .kb-rail-story { display: flex; }

.kb-story-main { flex: 1; min-width: 0; position: relative; overflow: hidden; background: #fff; }
.kb-story-slide {
  position: absolute; inset: 0; padding: clamp(18px, 2.6vw, 34px) clamp(24px, 3.6vw, 52px) 78px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 52px); align-items: center;
}
.kb-story-slide[hidden] { display: none; }
.kb-st-visual { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.kb-st-visual img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 2px; box-shadow: 0 14px 34px rgba(30, 20, 10, 0.18); }
.kb-st-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; align-content: center; height: auto; max-height: 100%; }
.kb-st-mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: none; }

.kb-st-text { min-width: 0; display: flex; flex-direction: column; gap: clamp(6px, 1.1vh, 11px); max-height: 100%; }
.kb-st-eyebrow { font: 700 10.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #ff5500; }
.kb-st-title { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: clamp(22px, 3.2vh, 30px); line-height: 1.15; color: #000; }
.kb-st-kind { font: 700 9.5px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: #999; }
.kb-st-poem { display: flex; flex-direction: column; font-family: var(--font-heading); font-style: italic; font-size: clamp(14.5px, 2.15vh, 18.5px); line-height: 1.62; color: #222; padding-left: 14px; border-left: 2px solid #ff5500; }
.kb-st-story p { margin: 0 0 0.7em; font-family: var(--font-heading); font-size: clamp(14px, 2vh, 17px); line-height: 1.68; color: #222; }
.kb-st-story p:last-child { margin-bottom: 0; }
.kb-st-feel { font: 400 12px/1.4 var(--font-body); color: #666; }
.kb-st-feel b { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 9.5px; color: #ff5500; margin-right: 8px; }
.kb-st-meta { font: 700 9.5px/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: #888; }
.kb-st-note { font: italic 400 11px/1.5 var(--font-body); color: #888; }

.kb-rail-story .kb-rail-tabs { gap: clamp(6px, 1.2vh, 12px); max-height: 100%; overflow: hidden; }
.kb-st-tab { display: flex; gap: 6px; align-items: flex-start; text-align: left; background: transparent; border: 0; padding: 2px 0; cursor: pointer; outline: none;
  font-family: 'GFS Didot', Georgia, serif; font-size: clamp(11.5px, 1vw, 13.5px); line-height: 1.3; color: rgba(0,0,0,.45); transition: color .2s ease; }
.kb-st-tab:hover, .kb-st-tab.active { color: #000; }
.kb-st-tab.active { box-shadow: inset 2px 0 0 #ff5500; padding-left: 8px; margin-left: -8px; }
.kb-st-tab-num { flex-shrink: 0; opacity: .75; }

@media (min-width: 701px) { .kb-story-slide.kb-st-wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
@media (max-width: 700px) {
  .kb-header-bar { flex-wrap: wrap; row-gap: 6px; }
  .kb-header-center { order: 3; flex-basis: 100%; padding: 0; justify-content: flex-start; min-width: 0; }
  .kb-story-slide { grid-template-columns: 1fr; grid-template-rows: minmax(0, 40%) minmax(0, 1fr); gap: 14px; padding: 14px 20px 74px; align-items: start; }
  .kb-st-text { overflow-y: auto; max-height: 100%; }
  .kb-st-mosaic { grid-template-columns: repeat(3, 1fr); }
}

.kb-st-desc { margin: 0; font-family: var(--font-heading); font-size: clamp(14px, 2vh, 17px); line-height: 1.68; color: #222; max-width: 46ch; }

/* Kitchen Blog: full-screen window on desktop (a top-down view comes later) */
@media (min-width: 901px) {
  .kitchen-blog-window {
    position: fixed; inset: 0; left: 0; top: 0;
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; min-height: 0;
    aspect-ratio: auto; transform: none; border-radius: 0; box-shadow: none;
  }
  .kitchen-blog-window.is-retracting { transform: translateY(-100%); opacity: 0; }
}

/* Top-right corner: the Harsh Pal mark. The room name ("Harsh Pal", "Projects", ...) stays for screen readers only */
.freedom-title { top: clamp(18px, 3.2vh, 32px); right: clamp(28px, 4vw, 55px); }
.freedom-title h1 { margin: 0; line-height: 0; font-size: 0; text-shadow: none; opacity: 1; }
.corner-mark { display: block; height: clamp(44px, 6vh, 60px); width: auto; color: #fff; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35)); }
.room-title-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .freedom-title { top: max(12px, env(safe-area-inset-top, 12px)); bottom: auto; right: max(14px, env(safe-area-inset-right, 14px)); }
  .freedom-title h1 { font-size: 0; opacity: 1; }
  .corner-mark { height: 38px; }
  /* leave room on the right of the scrolling nav for the mark */
  .top-header { right: calc(max(14px, env(safe-area-inset-right, 14px)) + 50px); max-width: calc(100vw - 92px); }
}

/* ---- Process evidence: sketches + interviews ---- */
.kb-sketch-row{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0 8px}
.kb-sketch-fig{margin:0;display:flex;flex-direction:column;gap:10px}
.kb-sketch-img{width:100%;height:auto;display:block;border-radius:6px;border:1px solid rgba(0,0,0,.15);background:#fff}
.kb-int-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:18px}
.kb-int-card{border:1px solid rgba(0,0,0,.14);border-radius:8px;padding:18px 20px;background:rgba(255,255,255,.55)}
.kb-int-title{margin:0 0 10px;font-size:1.05rem;line-height:1.3}
.kb-int-quote{margin:0 0 10px;padding-left:12px;border-left:3px solid #ff6a2b;font-style:italic;line-height:1.5}
.kb-int-quote cite{display:block;margin-top:3px;font-style:normal;font-size:.8rem;opacity:.7}
.kb-int-note{margin:8px 0 0;font-size:.92rem;line-height:1.5;opacity:.85}
@media (max-width:800px){.kb-sketch-row,.kb-int-grid{grid-template-columns:1fr}.kb-sketch-img{max-width:360px}}

/* ---- Interview findings: clean hierarchy (overrides cards) ---- */
.kb-int-list{margin-top:22px;border-top:1px solid rgba(0,0,0,.18)}
.kb-int-row{display:grid;grid-template-columns:56px 1fr;gap:8px 20px;padding:26px 0;border-bottom:1px solid rgba(0,0,0,.12)}
.kb-int-num{font-size:.85rem;font-weight:600;letter-spacing:.08em;color:#ff6a2b;padding-top:6px}
.kb-int-title{margin:0 0 14px;font-size:1.35rem;line-height:1.3;font-weight:600}
.kb-int-quotes{display:flex;flex-direction:column;gap:14px}
.kb-int-quote{margin:0;padding:0;border:0}
.kb-int-quote p{margin:0;font-size:1.02rem;line-height:1.55;font-style:italic;opacity:.9}
.kb-int-quote cite{display:block;margin-top:4px;font-style:normal;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;opacity:.55}
.kb-int-context{margin:14px 0 0;font-size:.92rem;line-height:1.55;opacity:.75}
.kb-int-note{margin:16px 0 0;padding-top:12px;border-top:1px dashed rgba(0,0,0,.15);font-size:.95rem;line-height:1.55;opacity:1}
.kb-int-label{display:block;margin-bottom:3px;font-size:.68rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#ff6a2b}
@media (max-width:800px){.kb-int-row{grid-template-columns:1fr}.kb-int-title{font-size:1.2rem}}

/* concise research */
.kb-secondary-research-block .kb-banner-full-img{max-height:240px;width:100%;object-fit:cover}

/* ---- Interview findings: bento box ---- */
.kb-int-list{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-flow:dense;gap:16px;margin-top:22px;border-top:0}
.kb-int-row{display:flex;flex-direction:column;gap:0;padding:22px 24px;border:1px solid rgba(0,0,0,.12);border-radius:16px;background:#fff;grid-column:span 3;min-width:0}
.kb-int-row:nth-child(1){grid-row:span 2;background:#fff1e8;border-color:rgba(255,106,43,.35)}
.kb-int-row:nth-child(4){grid-column:span 4;background:#f4f2ee}
.kb-int-row:nth-child(5){grid-column:span 2}
.kb-int-num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-bottom:14px;padding:0;border-radius:50%;background:#ff6a2b;color:#fff;font-size:.78rem}
.kb-int-main{display:flex;flex-direction:column;flex:1}
.kb-int-title{font-size:1.15rem;margin-bottom:14px}
.kb-int-row:nth-child(1) .kb-int-title{font-size:1.5rem}
.kb-int-row:nth-child(1) .kb-int-quote p{font-size:1.1rem}
.kb-int-note{margin-top:auto;padding-top:12px}
.kb-int-quotes{margin-bottom:16px}
@media (max-width:800px){.kb-int-list{grid-template-columns:1fr}.kb-int-row,.kb-int-row:nth-child(n){grid-column:auto;grid-row:auto}.kb-int-row{padding:18px}}
.kb-int-context{margin-bottom:14px}

/* ---- Case study type floor: nothing below 16px ---- */
#kitchen-article-canvas .kb-body-text{font-size:18px !important;line-height:1.6}
#kitchen-article-canvas .kb-lead-text,#kitchen-article-canvas .kb-bridge-lead{font-size:20px !important;line-height:1.55}
#kitchen-article-canvas .kb-caption-sub,#kitchen-article-canvas .kb-int-context{font-size:16px !important;line-height:1.5}
#kitchen-article-canvas .kb-int-note{font-size:17px !important}
#kitchen-article-canvas .kb-int-quote p{font-size:18px !important}
#kitchen-article-canvas .kb-int-row:nth-child(1) .kb-int-quote p{font-size:20px !important}
#kitchen-article-canvas .kb-int-title{font-size:20px !important}
#kitchen-article-canvas .kb-int-row:nth-child(1) .kb-int-title{font-size:26px !important}
#kitchen-article-canvas .kb-int-num{font-size:16px !important;width:36px;height:36px}
#kitchen-article-canvas .kb-paper-title{font-size:18px !important}
#kitchen-article-canvas .kb-colophon-quote{font-size:18px !important}
#kitchen-article-canvas .kb-meta-left,#kitchen-article-canvas .kb-meta-right,
#kitchen-article-canvas .kb-feature-num,#kitchen-article-canvas .kb-insight-tag,
#kitchen-article-canvas .kb-paper-journal,#kitchen-article-canvas .kb-paper-tag,
#kitchen-article-canvas .kb-sub-tag,#kitchen-article-canvas .kb-int-label,
#kitchen-article-canvas .kb-int-quote cite,#kitchen-article-canvas .kb-colophon-folio{font-size:16px !important;letter-spacing:.05em}
@media (max-width:800px){
 #kitchen-article-canvas .kb-body-text{font-size:17px !important}
 #kitchen-article-canvas .kb-lead-text,#kitchen-article-canvas .kb-bridge-lead{font-size:18px !important}
 #kitchen-article-canvas .kb-int-quote p{font-size:17px !important}
 #kitchen-article-canvas .kb-int-row:nth-child(1) .kb-int-quote p{font-size:18px !important}
 #kitchen-article-canvas .kb-int-row:nth-child(1) .kb-int-title{font-size:22px !important}
}

/* ---- Case study window chrome: 16px floor ---- */
#kitchen-blog-stage .hood-exit-text,#kitchen-blog-stage .hood-exit-arrow,#kitchen-blog-stage .return-label,#kitchen-blog-stage .return-arrow,
#kitchen-blog-stage .kb-header-title,#kitchen-blog-stage .kb-sec-tag,#kitchen-blog-stage .kb-sec-val,#kitchen-blog-stage .kb-project-tab,
#kitchen-blog-stage .kb-pager-btn,#kitchen-blog-stage .kb-pager-count,#kitchen-blog-stage .kb-tab-num,#kitchen-blog-stage .kb-tab-name,
#kitchen-blog-stage .kb-rail-title{font-size:16px !important}
#kitchen-blog-stage .kb-project-tab{line-height:1.3;white-space:normal;text-align:left}
#kitchen-blog-stage .kb-pager-count{white-space:nowrap}
@media (max-width:900px){#kitchen-blog-stage .kb-project-tab{white-space:nowrap}
#kitchen-blog-stage .kb-pager{gap:10px;padding-left:16px;padding-right:16px}}

/* uniform grey text in interview cards */
#kitchen-article-canvas .kb-int-quote cite,#kitchen-article-canvas .kb-int-context{font-size:16px !important;line-height:1.5;letter-spacing:0 !important;text-transform:none !important;font-style:normal;opacity:.65}
#kitchen-article-canvas .kb-int-quote cite{margin-top:6px}

/* ==========================================================================
   Kitchen case study: marble-table mode (table.js) — desktop, GluSight only
   ========================================================================== */
.kb-table-scene, .kb-table-panel, .kb-jar-labels, .kb-jar-stage, .kb-tv-marker { display: none; }
#kitchen-blog-stage.kb-table-mode .kitchen-blog-window { background: #2a1d14; }
#kitchen-blog-stage.kb-table-mode .kb-table-scene { display: block; position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.kb-table-square { position: absolute; }
.kb-table-base, .kb-table-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.kb-table-frame { z-index: 3; }
.kb-table-obj { position: absolute; display: block; z-index: 2; transform-origin: 50% 50%; will-change: left, top, transform; user-select: none; }
.kb-table-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; overflow: visible; }
.kb-table-lines polyline { fill: none; stroke: #ff6a2b; stroke-width: .13; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.kb-table-lines polyline.is-on { opacity: .9; stroke-dashoffset: 0; transition: stroke-dashoffset .7s cubic-bezier(.65,0,.35,1), opacity .2s; }

/* Header floats over the scene */
#kitchen-blog-stage.kb-table-mode .kb-header-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 20; background: rgba(24, 17, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
#kitchen-blog-stage.kb-table-mode .kb-return-btn, #kitchen-blog-stage.kb-table-mode .kb-sec-tag { color: rgba(255,255,255,.75); }
#kitchen-blog-stage.kb-table-mode .kb-return-btn:hover { color: #fff; }
#kitchen-blog-stage.kb-table-mode .kb-header-title { display: none; }
#kitchen-blog-stage.kb-table-mode .kb-header-center.kb-table-nav .kb-project-tabs { display: flex; flex-direction: row; gap: 22px; margin: 0; padding: 0; border: 0; }
#kitchen-blog-stage.kb-table-mode .kb-header-center.kb-table-nav .kb-project-tab { color: rgba(255,255,255,.62); white-space: nowrap; padding: 2px 0; border-bottom-color: transparent; }
#kitchen-blog-stage.kb-table-mode .kb-header-center.kb-table-nav .kb-project-tab.active,
#kitchen-blog-stage.kb-table-mode .kb-header-center.kb-table-nav .kb-project-tab:hover { color: #fff; }
#kitchen-blog-stage.kb-table-mode .kb-header-center.kb-table-nav .kb-project-tab.active { border-bottom: 2px solid #ff7a18; }

/* Body is a transparent layer; the column, panels and rail are placed by table.js */
#kitchen-blog-stage.kb-table-mode .kb-window-body { position: absolute; inset: 0; background: transparent; z-index: 5; }
#kitchen-blog-stage.kb-table-mode .kb-rail-left,
#kitchen-blog-stage.kb-table-mode .kb-rail-story,
#kitchen-blog-stage.kb-table-mode .kb-pager,
#kitchen-blog-stage.kb-table-mode .kb-story-main { display: none !important; }
#kitchen-blog-stage.kb-table-mode .kitchen-content-scroll {
  position: fixed; flex: none; background: transparent; z-index: 6; padding: 0 14px 0 0;
  scrollbar-color: rgba(60, 40, 25, .35) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 36px), transparent 100%);
}
#kitchen-blog-stage.kb-table-mode .kitchen-content-scroll::-webkit-scrollbar-thumb { background: rgba(60, 40, 25, .35); }

/* All sections in one continuous scroll */
#kitchen-blog-stage.kb-table-mode .kb-spread { display: flex !important; animation: none !important; padding: 28px 0 56px !important; margin: 0 !important; min-height: 0 !important; height: auto !important; max-width: none !important; }
#kitchen-blog-stage.kb-table-mode .kb-spread[aria-hidden="true"] { visibility: visible; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; background: transparent !important; }

/* No panels behind the text */
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas *:not(img):not(.kb-orange-bar):not(.kb-int-num):not(.kb-bar-accent-sm) { background-color: transparent !important; background-image: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas { color: #1b140e; text-shadow: 0 0 1px rgba(255, 250, 244, .5), 0 0 16px rgba(255, 248, 240, .65); }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-body-text,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-lead-text { color: #1b140e; }

/* Visuals move out of the text into the side cards */
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-tv-src { display: none !important; }
#kitchen-blog-stage.kb-table-mode .kb-tv-marker { display: block; height: 0; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas [class*="-split"],
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-process-row,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-feature-editorial-item,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-reflection-grid,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas [class*="reflection-layout"] { display: block !important; grid-template-columns: none !important; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas [class*="-col"] { width: auto !important; max-width: none !important; flex: none !important; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-themes-integrated-container { display: block; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-theme-callout { position: static !important; width: auto !important; margin: 0 0 22px; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-list { grid-template-columns: 1fr 1fr; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-row,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-row:nth-child(n) { grid-column: auto; grid-row: auto; border-color: rgba(60, 40, 25, .25); }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-row:nth-child(1) { grid-column: 1 / -1; }

/* Side cards (fridge-magnet style) */
#kitchen-blog-stage.kb-table-mode .kb-table-panel { display: flex; position: fixed; z-index: 7; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
#kitchen-blog-stage.kb-table-mode .kb-table-panel.is-on { opacity: 1; transform: none; }
.kb-magnet-row { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; max-height: 100%; min-height: 0; flex: 1; }
.kb-magnet-row.is-stack .kb-magnet { margin: 0 -10px; }
.kb-magnet { margin: 0; padding: 8px 8px 10px; background: #fbf8f3; border-radius: 3px; box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.2); transform: rotate(var(--tilt, 0deg)); display: flex; flex-direction: column; max-height: 100%; min-height: 0; max-width: 100%; }
.kb-magnet img { display: block; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; flex: 1; }
.kb-magnet-row.is-stack .kb-magnet { flex: 0 1 auto; height: 100%; }
.kb-magnet-row.is-stack .kb-magnet img { height: 100%; width: auto; }
.kb-magnet figcaption { font-family: var(--font-body); font-size: 16px; line-height: 1.35; color: #3b3027; margin-top: 8px; max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-magnet-note { margin: 0; font-size: 16px; color: #f5ede3; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* Sections rail on the floor */
#kitchen-blog-stage.kb-table-mode .kb-rail-right[aria-label="Section Tabs"] { position: fixed; display: block !important; background: transparent; border: 0; padding: 0; z-index: 7; }
#kitchen-blog-stage.kb-table-mode .kb-rail-right[aria-label="Section Tabs"] .kb-rail-title { color: rgba(255,255,255,.7); margin-bottom: 10px; }
#kitchen-blog-stage.kb-table-mode .kb-rail-right[aria-label="Section Tabs"] .kb-rail-tab { color: rgba(255,255,255,.62); text-shadow: 0 1px 6px rgba(0,0,0,.55); text-align: left; }
#kitchen-blog-stage.kb-table-mode .kb-rail-right[aria-label="Section Tabs"] .kb-rail-tab.active,
#kitchen-blog-stage.kb-table-mode .kb-rail-right[aria-label="Section Tabs"] .kb-rail-tab:hover { color: #fff; }
#kitchen-blog-stage.kb-table-mode .kb-rail-right[aria-label="Section Tabs"] .kb-rail-tab .kb-tab-num,
#kitchen-blog-stage.kb-table-mode .kb-rail-right[aria-label="Section Tabs"] .kb-rail-tab .kb-tab-name { color: inherit !important; }
#kitchen-blog-stage.kb-table-mode .kb-rail-right.kb-rail-narrow .kb-rail-tab:not(.active) .kb-tab-name { display: none; }

/* Jars at the centre of the text */
#kitchen-blog-stage.kb-table-mode .kb-jar-stage { display: block; position: relative; }
.kb-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#kitchen-blog-stage.kb-table-mode .kb-jar-labels { display: block; position: fixed; inset: 0; z-index: 8; pointer-events: none; opacity: 0; }
#kitchen-blog-stage.kb-table-mode .kb-jar-labels.is-on { opacity: 1; animation: kbJarLabels .5s steps(4, end) both; }
@keyframes kbJarLabels { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kb-jar-label { position: absolute; text-align: center; color: #1b140e; text-shadow: 0 0 1px rgba(255,250,244,.6), 0 0 14px rgba(255,248,240,.8); }
.kb-jar-label-title { font-family: var(--font-heading); font-size: 22px; line-height: 1.2; margin-bottom: 6px; color: #b44a12; }
.kb-jar-label ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.35; }
.kb-jar-label li + li { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { #kitchen-blog-stage.kb-table-mode .kb-jar-labels.is-on { animation: none; } .kb-table-lines polyline.is-on { transition: none; } }

.kb-table-jar { filter: drop-shadow(-0.35vw 0.5vw 0.5vw rgba(40, 22, 10, .45)); }
.kb-magnet img { max-height: calc(var(--ph, 300px) - 82px); width: auto; }
.kb-magnet-row.is-stack .kb-magnet img { max-height: calc(var(--ph, 300px) - 60px); height: auto; }
.kb-magnet-row.is-stack .kb-magnet { height: auto; }
.kb-table-panel { overflow: visible; }
.kb-table-obj[hidden], .kb-table-frame[hidden] { display: none !important; }

/* ---- Table mode v2: dark film behind the text, light text, refined cards and connectors ---- */
.kb-table-film, .kb-table-top { display: none; }
#kitchen-blog-stage.kb-table-mode .kb-table-film {
  display: block; position: fixed; z-index: 5; pointer-events: none; border-radius: 6px;
  background: rgba(8, 6, 4, .58);
  -webkit-backdrop-filter: blur(3px) saturate(.9); backdrop-filter: blur(3px) saturate(.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 24px 60px rgba(0, 0, 0, .25);
}
#kitchen-blog-stage.kb-table-mode .kb-table-top { display: block; position: fixed; z-index: 7; pointer-events: none; }
#kitchen-blog-stage.kb-table-mode .kitchen-content-scroll { scrollbar-color: rgba(255, 255, 255, .28) transparent; }
#kitchen-blog-stage.kb-table-mode .kitchen-content-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas { color: #f3ede6; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-ink { color: #f3ede6 !important; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-body-text.kb-ink,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-context.kb-ink,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-caption-sub.kb-ink { color: rgba(243, 237, 230, .88) !important; }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas * { border-color: rgba(255, 255, 255, .16); }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-row,
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-row:nth-child(n) { border-color: rgba(255, 255, 255, .16); }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-row:nth-child(1) { border-color: rgba(255, 138, 61, .45); }
#kitchen-blog-stage.kb-table-mode #kitchen-article-canvas .kb-int-note { border-top-color: rgba(255, 255, 255, .18); }

/* Connectors: curved line with a dot at each end, drawn from the object to the card */
.kb-table-lines .kb-conn { opacity: 0; transition: opacity .25s ease; }
.kb-table-lines .kb-conn.is-on { opacity: 1; }
.kb-conn-path, .kb-conn-halo { fill: none; stroke-linecap: round; }
.kb-conn-halo { stroke: rgba(20, 12, 6, .35); stroke-width: .34; }
.kb-conn-path { stroke: #ff8a3d; stroke-width: .11; stroke-dasharray: 1; stroke-dashoffset: 1; }
.kb-conn.is-on .kb-conn-path { stroke-dashoffset: 0; transition: stroke-dashoffset .75s cubic-bezier(.65, 0, .35, 1); }
.kb-conn-start, .kb-conn-end { r: .32; fill: #ff8a3d; stroke: rgba(255, 245, 235, .9); stroke-width: .1; }
.kb-conn-start { r: .45; }
.kb-conn-end { opacity: 0; }
.kb-conn.is-on .kb-conn-end { opacity: 1; transition: opacity .2s ease .7s; }

/* Cards: clean matt, gentle tilt, drop in like a magnet */
#kitchen-blog-stage.kb-table-mode .kb-table-panel { justify-content: flex-start; transform: none; transition: opacity .25s ease; }
.kb-magnet-row { flex: none; gap: 0; }
.kb-magnet-row.is-stack .kb-magnet { margin: 0 -8px; }
.kb-magnet-row.is-stack .kb-magnet:nth-child(2) { z-index: 2; }
.kb-magnet { padding: 7px 7px 9px; background: #fbf8f3; border-radius: 4px; max-height: none; height: auto !important;
  box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 8px 18px rgba(0,0,0,.28), 0 22px 40px rgba(0,0,0,.18);
  transform: rotate(var(--tilt, 0deg)); }
.kb-magnet img { flex: none; max-width: none !important; max-height: none !important; border-radius: 2px; object-fit: cover; }
.kb-magnet-row.is-stack .kb-magnet img { height: auto; }
.kb-magnet figcaption { color: #3b3027; margin-top: 8px; text-shadow: none; }
.kb-magnet-note { margin: 12px 0 0; font-size: 16px; color: #f5ede3; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
#kitchen-blog-stage.kb-table-mode .kb-table-panel.is-on .kb-magnet { animation: kbMagnetIn .5s cubic-bezier(.2, .9, .3, 1.25) var(--delay, 0ms) both; }
@keyframes kbMagnetIn { from { opacity: 0; transform: translateY(-14px) rotate(calc(var(--tilt, 0deg) - 4deg)) scale(.97); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }

/* Jar labels sit on the film: light text */
.kb-jar-label { color: #f3ede6; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.kb-jar-label-title { color: #ff9a55; }
@media (prefers-reduced-motion: reduce) {
  #kitchen-blog-stage.kb-table-mode .kb-table-panel.is-on .kb-magnet { animation: none; }
  .kb-conn.is-on .kb-conn-path { transition: none; }
}

/* Film covers the entire screen, like the Home view */
#kitchen-blog-stage.kb-table-mode .kb-table-film { inset: 0; border-radius: 0; box-shadow: none; background: rgba(6, 4, 3, .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
