/* ==========================================================================
   Harsh Portfolio — Editorial Project Page Stylesheet
   ========================================================================== */

/* --- 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 Layout --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  font-family: var(--font-body);
  font-size: 16px;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Parallax Scene Stage --- */
.parallax-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.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;
}

/* Match main portfolio overshoot for seamless parallax tracking */
.layer-bg,
.layer-screen {
  top: -5% !important;
  left: -5% !important;
  width: 110% !important;
  height: 110% !important;
}

/* Background canvas container */
.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Monitor Screen Stage & Viewport --- */
.monitor-screen-stage {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}

/* ==========================================================================
   Exit Projects Interactive Overlay
   Positioned over the top-left corner of the PC monitor frame (bezel area).
   Uses the same white-glow SVG polygon style as the main site interactive objects.
   ========================================================================== */
.pc-exit-btn {
  display: none !important;
}

.pc-exit-btn:focus {
  outline: none;
}

/* SVG fills the button area */
.pc-exit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Glow shape — same visual system as main site interactive objects */
.pc-exit-shape {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
  animation: pcExitPulse 2.4s infinite ease-in-out;
}

.pc-exit-btn:hover .pc-exit-shape,
.pc-exit-btn:focus .pc-exit-shape {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.3));
}

@keyframes pcExitPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255,255,255,0.25)); }
  50%       { filter: drop-shadow(0 0 10px rgba(255,255,255,0.55)); }
}

/* Tooltip label — shown on hover, tracks cursor via JS */
.pc-exit-tooltip-label {
  display: none; /* hidden — JS uses the main .interaction-tooltip system instead */
}

/* Hidden during the /projects page loading animation */
.pc-exit-btn.is-loading-hidden {
  pointer-events: none !important;
  opacity: 0 !important;
}


/* Exact monitor screen region inside BedroomToPc0562.avif (1920x1920)
   Display panel bounds (2026-11-24 render): x: 280px - 1670px (width 1390px), y: 540px - 1300px (height 760px)
   Aligns flush with the top bezel and rests directly on the bottom chin */
.monitor-content-viewport {
  position: absolute;
  left: 14.5833%;
  top: 28.125%;
  width: 72.3958%;
  height: 39.5833%;
  background-color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
  border-radius: 2px 2px 0 0;
}

body.is-loading .monitor-content-viewport,
.monitor-content-viewport.is-loading {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
}

body.is-loading .monitor-content-viewport::-webkit-scrollbar,
.monitor-content-viewport.is-loading::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

body.is-loading .editorial-container,
.monitor-content-viewport.is-loading .editorial-container {
  pointer-events: none !important;
  user-select: none !important;
}

.monitor-content-viewport::-webkit-scrollbar {
  width: 4px;
}

.monitor-content-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.monitor-content-viewport::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

.monitor-content-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* --- Editorial 12-Column Responsive Grid Layout --- */
.editorial-container {
  width: 100%;
  min-height: 100%;
  padding: clamp(1.2rem, 2.5vw, 2.2rem) clamp(1.4rem, 2.8vw, 2.6rem);
  background-color: #ffffff;
  box-sizing: border-box;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  column-gap: clamp(1.5rem, 2.5vw, 3rem);
  width: 100%;
  align-items: stretch;
  position: relative;
}

/* --- Left Editorial Hierarchical Navigation --- */
.editorial-nav {
  position: sticky;
  top: clamp(1.2rem, 2.5vw, 2.2rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 1.6vw, 1.6rem);
  padding-top: 0.35rem;
  user-select: none;
  z-index: 5;
}

.nav-categories-scroll {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 1.6vw, 1.6rem);
}

/* Subtle 1px Editorial Vertical Divider Line */
.editorial-nav::after {
  content: '';
  position: absolute;
  top: calc(-1 * clamp(1.2rem, 2.5vw, 2.2rem) - 0.35rem);
  bottom: -200vh;
  right: calc(-0.5 * clamp(1.5rem, 2.5vw, 3rem));
  width: 1px;
  background-color: rgba(0, 0, 0, 0.10);
  pointer-events: none;
}

/* Return to Room Link */
.nav-return-group {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777777;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-return-btn:hover {
  color: #000000;
  transform: translateX(-3px);
}

.nav-return-btn .return-arrow {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-return-btn:hover .return-arrow {
  transform: translateX(-2px);
}

.nav-category-group {
  display: flex;
  flex-direction: column;
}

.nav-category-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 1.05vw, 18px);
  color: #111111;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.nav-project-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(12px, 1.2vw, 18px); /* 12-18px Indentation */
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.nav-project-item {
  margin: 0;
  padding: 0;
}

.nav-project-btn {
  background: none;
  border: none;
  padding: 2px 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 0.9vw, 17px);
  color: #666666;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
  transition: color 0.2s ease, transform 0.2s ease;
  outline: none;
}

.nav-project-btn:hover {
  color: #000000;
  transform: translateX(2px);
}

.nav-project-btn.active {
  color: #000000;
  font-weight: 700;
}

.project-name {
  /* Custom styles for project name text */
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.active-dot {
  font-size: 7px;
  color: #111111;
  line-height: 1;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
  width: 0;
  overflow: hidden;
  margin-right: -4px;
}

.nav-project-btn.active .active-dot {
  opacity: 1;
  transform: scale(1);
  width: auto;
  margin-right: 2px;
}

/* --- Main Editorial Content Area --- */
.editorial-main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.editorial-main-content.content-updating {
  opacity: 0;
  transform: translateY(4px);
}

/* ==========================================================================
   GluSight Dedicated Editorial Case Study Styles
   ========================================================================== */
.glusight-case-study {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 5.5vw, 6.5rem);
  width: 100%;
  padding-bottom: 4rem;
}

.cs-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vw, 2.4rem);
  width: 100%;
}

/* Section Header Tags & Typography */
.cs-tag-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.cs-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #111111;
}

.cs-tag {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888888;
  font-weight: 600;
}

.cs-rule,
.orange-accent-line {
  width: 44px;
  height: 3px;
  background-color: #ff7a18;
  margin: 0.75rem 0 1.2rem;
  border-radius: 1px;
}

.cs-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 5.8vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  color: #000000;
  letter-spacing: -0.03em;
  margin: 0.1rem 0;
}

.cs-section-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  color: #000000;
  letter-spacing: -0.02em;
}

.cs-hook-statement {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  color: #111111;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  max-width: 480px;
}

.cs-hook-attribution {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(17, 17, 17, 0.65);
}

.cs-hook-attribution-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
}

.cs-hook-attribution-link:hover {
  color: #111111;
  text-decoration: underline;
}

.cs-hook-attribution-link:focus-visible {
  color: #111111;
  outline: 2px solid #ff7a18;
  outline-offset: 3px;
  border-radius: 2px;
}

.cs-lead-text,
.cs-opportunity-intro,
.cs-solution-statement,
.cs-process-intro {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.65;
  color: #555555;
  max-width: 460px;
  font-weight: 400;
}

/* --- Case Study Intro: Independent Two-Column Spread --- */
.case-study-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  align-items: start;
  width: 100%;
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: clamp(2.8rem, 4.2vw, 4rem);
  min-width: 0;
}

.intro-overview-block {
  display: flex;
  flex-direction: column;
}

.intro-opportunity-block {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: clamp(1.8rem, 2.8vw, 2.5rem);
}

.cs-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.4rem;
  padding-top: 1.4rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-col .meta-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
}

.meta-col .meta-val {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
}

.intro-visual-block {
  width: 100%;
  position: relative;
}

.hero-image-wrap {
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: 20px;
  background-color: #f7f6f2;
}

.cs-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.opportunity-composition {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: clamp(1.6rem, 2.6vw, 3rem);
  row-gap: 2rem;
  align-items: start;
  width: 100%;
}

.sketchbook-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cs-sketch-img,
.cs-sketch-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  object-fit: cover;
}

.cs-figure-caption {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: #777777;
  line-height: 1.45;
}

.insights-editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.insights-group-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  color: #111111;
  letter-spacing: -0.02em;
}

.insight-entry {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 0.75rem;
}

.insight-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #888888;
}

.insight-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.insight-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: #555555;
  line-height: 1.5;
}

/* --- Section 03: The Process --- */
.process-header {
  display: flex;
  flex-direction: column;
  max-width: 520px;
}

.process-editorial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1rem, 1.8vw, 1.8rem);
  row-gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 780px; 
  margin: 0 auto;
}

.process-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ui-screen-frame {
  position: relative;
  max-width: 240px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 430 / 932;
  border-radius: clamp(14px, 1.4vw, 22px);
  overflow: hidden;
  background: #fdfdfd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-screen-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.process-caption {
  font-family: var(--font-body);
  font-size: 16px;
  color: #666666;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 0.2rem;
}

.screen-label {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.1px;
}

/* --- Section 04: The Solution --- */
.solution-header {
  display: flex;
  flex-direction: column;
  max-width: 560px;
}

/* .cs-solution-statement {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.65;
  color: #555555;
  max-width: 460px;
  font-weight: 400;
} */

.solution-composition {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  column-gap: clamp(1.8rem, 2.8vw, 3.5rem);
  row-gap: 2rem;
  align-items: start;
  width: 100%;
}

.solution-main-ui {
  display: flex;
  justify-content: center;
  background-color: #faf9f6;
  padding: 1.8rem 1.2rem;
  border-radius: 4px;
}

.phone-frame-mockup {
  max-width: 300px;
  width: 100%;
}

.solution-phone-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.08));
}

.solution-details-block {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.solution-detail-card {
  display: flex;
  gap: 1.2rem;
  align-items: start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 1.4rem;
}

.sensor-preview-wrap {
  width: 76px;
  flex-shrink: 0;
  background-color: #f5f4ee;
  border-radius: 3px;
  padding: 6px;
}

.sensor-disc-img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-text {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin: 0.2rem 0 0.35rem;
}

.detail-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: #555555;
  line-height: 1.55;
}

/* ==========================================================================
   GluSight Case Study — Remaining Sections Extension (A through F)
   ========================================================================== */

/* Section Spacing & Common Anchor */
.cs-anchor-target {
  position: relative;
  top: -20px;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
}

/* --- Section A: Design Opportunity (From Understanding to Anticipation) --- */
.cs-section-opportunity {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  width: 100%;
}

.opportunity-header {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}

.themes-flow-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.theme-entry {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: clamp(1.8rem, 3vw, 3.6rem);
  row-gap: 1.8rem;
  align-items: center;
  width: 100%;
  padding: clamp(1.4rem, 2vw, 2.2rem);
  background: #fafaf8;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.theme-entry.theme-reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.theme-text-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.theme-folio {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff7a18;
}

.theme-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0;
}

.theme-question {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  font-style: italic;
  font-weight: 500;
  color: #222222;
  line-height: 1.45;
  margin: 0.1rem 0 0.3rem;
  padding-left: 0.75rem;
  border-left: 2px solid #ff7a18;
}

.theme-desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

.theme-opportunity-pill {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(255, 122, 24, 0.25);
  border-left: 3px solid #ff7a18;
  border-radius: 6px;
}

.pill-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff7a18;
}

.pill-text {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.5;
  color: #222222;
  font-weight: 500;
}

.theme-visual-col {
  width: 100%;
}

.theme-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.theme-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.05));
  border-radius: 8px;
}

.theme-img-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: #888888;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

.theme-flow-connector {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -0.5rem 0;
  pointer-events: none;
}

.connector-svg {
  width: 100%;
  max-width: 600px;
  height: 60px;
}

/* --- Section B: Design Question (The Question That Guided My Design) --- */
.cs-section-question {
  width: 100%;
  padding: clamp(2rem, 3.5vw, 4rem) 0;
}

.question-callout-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
}

.hmw-quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 3.5vw, 3.5rem);
  background: #fafaf8;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.03);
  margin-top: 1rem;
}

.hmw-quote-mark {
  font-family: var(--font-heading);
  font-size: clamp(60px, 7vw, 100px);
  line-height: 0.6;
  color: #ff7a18;
  margin-bottom: 0.5rem;
  user-select: none;
}

.hmw-quote-text {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  color: #111111;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem 0;
  padding: 0;
  border: none;
}

.hmw-framing-desc {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: #666666;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.4rem;
}

/* --- Section C: Introducing GluSight --- */
.cs-section-concept {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 3rem);
  width: 100%;
}

.concept-header {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.cs-concept-lead {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  color: #111111;
  letter-spacing: -0.01em;
  margin: 0.2rem 0;
}

.concept-hero-display {
  width: 100%;
}

.concept-hero-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.concept-hero-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f4ee;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.concept-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.concept-figure-caption {
  font-family: var(--font-body);
  font-size: 14px;
  color: #777777;
  text-align: center;
  font-style: italic;
}

.concept-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
  width: 100%;
  padding-top: 0.5rem;
}

.concept-pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #fafaf8;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pillar-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ff7a18;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.pillar-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

/* --- Section D: Designing the Experience --- */
.cs-section-experience {
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 4vw, 4rem);
  width: 100%;
}

.experience-header {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.cs-experience-lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

.experience-subsections-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 5vw, 5.5rem);
  width: 100%;
}

.exp-spread {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: clamp(2rem, 3.5vw, 4.5rem);
  row-gap: 2rem;
  align-items: center;
  width: 100%;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.exp-spread:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-spread-reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.exp-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.exp-meta-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff7a18;
}

.exp-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0;
}

.exp-point-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(0, 0, 0, 0.08);
}

.exp-point-block:hover {
  border-left-color: #ff7a18;
}

.exp-point-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333333;
  margin: 0;
}

.exp-point-body {
  font-family: var(--font-body);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

.exp-visual-col {
  width: 100%;
  display: flex;
  justify-content: center;
}

.exp-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  max-width: 380px;
}

.exp-screen-mockup {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #fdfdfd;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-screen-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.exp-screen-mockup.phone-aspect-frame {
  aspect-ratio: 430 / 932;
}

.exp-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.exp-diagram-wrap {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafaf8;
}

.exp-diagram-img {
  width: 100%;
  height: auto;
  display: block;
}

.exp-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: #888888;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* --- Section E: Interface Walkthrough --- */
.cs-section-walkthrough {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  width: 100%;
}

.walkthrough-header {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.cs-walkthrough-lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

.walkthrough-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 1.8rem);
  width: 100%;
  align-items: start;
}

.walkthrough-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fafaf8;
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.walkthrough-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.walkthrough-screen-box {
  width: 100%;
  aspect-ratio: 430 / 932;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.walkthrough-screen-box.walkthrough-hardware-box {
  aspect-ratio: 430 / 932;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f6f2;
}

.walkthrough-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.walkthrough-screen-img.walkthrough-hardware-img {
  object-fit: cover;
  object-position: center;
}

.walkthrough-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.walkthrough-step {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff7a18;
}

.walkthrough-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin: 0;
  line-height: 1.25;
}

.walkthrough-card-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: #555555;
  margin: 0;
}

/* --- Section F: Reflection (Looking Beyond Monitoring) --- */
.cs-section-reflection {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  width: 100%;
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.reflection-header {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.cs-reflection-lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

.reflection-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
  width: 100%;
  align-items: stretch;
}

.reflection-pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.5rem, 2.2vw, 2.2rem);
  background: #fafaf8;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid #ff7a18;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.pillar-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff7a18;
}

.pillar-heading {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  color: #111111;
  margin: 0;
}

.pillar-text {
  font-family: var(--font-body);
  font-size: clamp(14px, 0.95vw, 15.5px);
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

.reflection-future-list {
  margin: 0.2rem 0 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reflection-future-list li {
  font-family: var(--font-body);
  font-size: clamp(13.5px, 0.9vw, 15px);
  line-height: 1.55;
  color: #555555;
}

.reflection-future-list strong {
  color: #111111;
}

/* ==========================================================================
   GluSight Case Study — Layouts 01–07 Authentic Sections & App Architecture
   ========================================================================== */

/* --- 01 & 02: Personal Context & Transition (Reference Layout 02) --- */
.cs-subsection-heading {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem 0;
}

.context-visual-col {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cs-section-context {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.context-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: clamp(2rem, 3.5vw, 4rem);
  row-gap: 2rem;
  align-items: start;
  width: 100%;
}

.context-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.context-sub-block {
  margin-top: clamp(1.8rem, 2.5vw, 2.8rem);
  padding-top: clamp(1.4rem, 2vw, 2rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.cs-note-text {
  font-style: italic;
  color: #777777;
  font-size: clamp(15px, 0.95vw, 17px);
  margin-top: 0.2rem;
}

.cs-triptych-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.cs-triptych-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  object-fit: cover;
}

/* --- 03: Primary User Research & Persona Cards (Reference Layout 03) --- */
.cs-section-personas {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 2.8vw, 3rem);
  width: 100%;
}

.personas-header {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.persona-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2vw, 1.8rem);
  width: 100%;
  align-items: stretch;
}

.persona-card-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.persona-card-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.persona-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.persona-card-crop {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Screen-reader accessible transcript for persona cards */
.persona-sr-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 04: Clinical Context & CGM Value (Reference Layout 04) --- */
.cs-section-clinical {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  width: 100%;
}

.clinical-header {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

/* Component A: Integrated Top Banner */
.cgm-integrated-banner-wrap {
  width: 100%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cgm-integrated-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Component B: Research Content Spread */
.cgm-research-spread,
.cgm-clinical-spread {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  column-gap: clamp(2.5rem, 5vw, 6rem);
  row-gap: 2rem;
  align-items: center;
  width: 100%;
}

.cgm-research-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
}

.cgm-paper-title {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: #111111;
  letter-spacing: -0.015em;
  margin: 0 0 1rem 0;
}

.cgm-paper-source-wrap {
  display: inline-flex;
  flex-direction: column;
  align-self: flex-start;
  margin-bottom: 1.4rem;
}

.cgm-paper-source {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #444444;
  letter-spacing: 0.02em;
}

.cgm-paper-source-line {
  height: 2px;
  width: 100%;
  max-width: 200px;
  background: #ff7a18;
  margin-top: 5px;
  border-radius: 1px;
}

.cgm-paper-summary {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  color: #333333;
  margin: 0;
}

.cgm-illustration-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cgm-user-figure {
  margin: 0;
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.cgm-illustration-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* --- Research Paper Citation Cards (Used across Layouts 04, 05, 06) --- */
.cs-paper-card {
  position: relative;
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #ff7a18;
  border-radius: 8px;
  padding: clamp(1.2rem, 1.8vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-paper-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.paper-title {
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.01em;
}

.paper-source {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff7a18;
}

.paper-summary {
  font-family: var(--font-body);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

/* --- 05: Secondary Research & Alert Dynamics (Reference Layout 05 & 06) --- */
.cs-section-secondary-research {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.2vw, 3.5rem);
  width: 100%;
}

.secondary-header {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.secondary-doodles-figure {
  margin: 0;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}

.secondary-doodles-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.research-paper-row {
  width: 100%;
}

.research-spread-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.research-question-spread {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: clamp(2rem, 3.5vw, 4rem);
  row-gap: 2rem;
  align-items: center;
  width: 100%;
}

.research-question-text {
  display: flex;
  flex-direction: column;
}

.research-question-visual {
  display: flex;
  justify-content: center;
}

.question-man-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 360px;
}

.question-man-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.06));
}

.question-prompt-caption {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 700;
  color: #111111;
  font-style: italic;
  text-align: center;
}

/* --- 06: Synthesis & Pattern Discovery (Reference Layout 07) --- */
.cs-section-pattern {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pattern-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: clamp(2rem, 3.5vw, 4rem);
  row-gap: 2rem;
  align-items: center;
  width: 100%;
}

.pattern-text-col {
  display: flex;
  flex-direction: column;
}

.pattern-visual-col {
  display: flex;
  justify-content: center;
}

.pattern-woman-figure {
  margin: 0;
  width: 100%;
  max-width: 440px;
}

.pattern-woman-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.06));
}

/* ==========================================================================
   GLUSIGHT APP ARCHITECTURE (Section C.1)
   ========================================================================== */
.cs-section-architecture {
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 4vw, 4rem);
  width: 100%;
  padding-top: 1rem;
}

.architecture-header {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.cs-architecture-lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

/* 1. Three Core Screens Showcase */
.arch-screens-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2vw, 1.8rem);
  width: 100%;
  align-items: stretch;
}

.arch-screen-card {
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.arch-screen-media {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.arch-screen-img {
  max-height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.07));
}

.arch-screen-meta {
  padding: clamp(1.2rem, 1.8vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.arch-screen-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff7a18;
}

.arch-screen-name {
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 700;
  color: #111111;
  margin: 0;
  line-height: 1.3;
}

.arch-feature-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.arch-feature-list li {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: #555555;
  position: relative;
  padding-left: 1.1rem;
}

.arch-feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff7a18;
  font-size: 16px;
  line-height: 1;
}

.feat-label {
  font-weight: 700;
  color: #111111;
}

.arch-feature-list code {
  font-family: Consolas, monospace;
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 3px;
  color: #222222;
}

/* 2. Information Architecture & Navigation Breakdown */
.arch-ia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2vw, 1.8rem);
  width: 100%;
}

.ia-card {
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: clamp(1.4rem, 2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
}

.ia-icon-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ia-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #ff7a18;
}

.ia-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #888888;
}

.ia-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin: 0;
  letter-spacing: -0.01em;
}

.ia-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

.ia-desc strong {
  color: #111111;
}

/* 3. Primary User Journey & Flow Diagram */
.arch-userflow-container {
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: clamp(1.6rem, 2.8vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.userflow-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.userflow-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff7a18;
}

.userflow-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: #111111;
  margin: 0;
  letter-spacing: -0.015em;
}

.userflow-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: #666666;
  margin: 0;
}

.flow-diagram-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.flow-steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  min-width: 820px;
}

.flow-step-node {
  flex: 1;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-step-node:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 24, 0.4);
}

.flow-step-node.active-node {
  border-color: rgba(255, 122, 24, 0.5);
  background: #fffdf9;
}

.flow-step-node.alert-node {
  border-left: 3px solid #ff7a18;
}

.node-step-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff7a18;
}

.node-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin: 0;
  line-height: 1.25;
}

.node-desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: #666666;
  margin: 0;
  flex-grow: 1;
}

.node-tech {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #999999;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 0.45rem;
  margin-top: 0.25rem;
}

.flow-arrow-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #ff7a18;
  flex-shrink: 0;
  padding: 0 0.2rem;
  user-select: none;
}

/* Responsive updates for new sections */
@media (max-width: 960px) {
  .persona-cards-grid,
  .arch-screens-showcase,
  .arch-ia-grid {
    grid-template-columns: 1fr;
  }

  .context-split-grid,
  .cgm-research-spread,
  .cgm-clinical-spread,
  .research-question-spread,
  .pattern-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Responsive Breakpoints for Extension --- */
@media (max-width: 1100px) {
  .walkthrough-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 860px) {
  .theme-entry,
  .theme-entry.theme-reverse {
    grid-template-columns: 1fr;
  }

  .concept-pillars-grid,
  .reflection-pillars-grid {
    grid-template-columns: 1fr;
  }

  .exp-spread,
  .exp-spread-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .exp-visual-col {
    order: -1;
  }

  .theme-flow-connector {
    display: none;
  }
}

@media (max-width: 580px) {
  .walkthrough-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .hmw-quote-card {
    padding: 1.5rem;
  }
}


/* ==========================================================================
   Fallback Standard Project View Styles
   ========================================================================== */
.standard-project-view {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.6rem);
  width: 100%;
}

.editorial-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: clamp(0.8rem, 1.4vw, 1.2rem);
}

.editorial-section-label {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 20px);
  color: #666666;
  letter-spacing: 0.04em;
}

.editorial-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 54px);
  line-height: 1.05;
  color: #000000;
  letter-spacing: -0.02em;
}

.editorial-content-grid {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  column-gap: clamp(1.2rem, 2vw, 2.2rem);
  row-gap: 1.5rem;
  align-items: start;
}

.editorial-meta {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.2vw, 1.2rem);
  padding-top: 0.15rem;
}

.meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.75vw, 20px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888888;
}

.meta-value {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 500;
  color: #111111;
  line-height: 1.35;
}

.editorial-body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.4vw, 1.4rem);
}

.lead-paragraph {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.6;
  color: #111111;
}

.body-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 1.4vw, 1.4rem);
}

.body-paragraph {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  color: #333333;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 900px) {
  /* Prevent desktop parallax overshoot from displacing mobile viewport */
  .layer-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    transform-style: flat !important;
    margin: 0 !important;
    pointer-events: none !important;
  }

  /* Bedroom PC Monitor Stage: fits mobile/tablet viewport */
  .monitor-screen-stage {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }

  /* Responsive Project Window: Fullscreen on phones */
  .monitor-content-viewport {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Tablet view (769px-900px): optional contained modal */
  @media (min-width: 769px) and (min-height: 501px) {
    .monitor-screen-stage {
      padding: 16px !important;
    }
    .monitor-content-viewport {
      max-width: 760px !important;
      border-radius: 6px !important;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    }
  }

  .editorial-container {
    padding: 0 !important;
    min-height: 100% !important;
    width: 100% !important;
  }

  .editorial-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
  }

  /* Sticky Header Navigation & Horizontal Pill Strip */
  .editorial-nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 30 !important;
    padding: 0 !important;
    gap: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  .editorial-nav::after {
    display: none !important;
  }

  /* Return to Room Bar */
  .nav-return-group {
    padding: max(10px, env(safe-area-inset-top, 10px))
             max(16px, env(safe-area-inset-right, 16px))
             10px
             max(16px, env(safe-area-inset-left, 16px)) !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .nav-return-btn {
    min-height: 44px !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    -webkit-tap-highlight-color: transparent !important;
    color: #111111 !important;
  }

  .nav-return-btn:active {
    opacity: 0.65 !important;
  }

  /* Horizontal Scrollable Project Pills Strip */
  .nav-categories-scroll {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    background: #fafafa !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .nav-categories-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .nav-category-title {
    display: none !important;
  }

  .nav-category-group {
    display: contents !important;
  }

  .nav-project-list {
    display: contents !important;
  }

  .nav-project-item {
    list-style: none !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }

  .nav-project-btn {
    white-space: nowrap !important;
    font-size: 11.5px !important;
    padding: 6px 14px !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: 6px !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: background 0.2s ease, color 0.2s ease !important;
  }

  .nav-project-btn.active {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
  }

  .nav-project-btn.active .active-dot {
    color: #ff7a18 !important;
  }

  /* Main Editorial Content Pane */
  .editorial-main-content {
    padding: clamp(14px, 4vw, 24px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Single Column Layout Hierarchy */
  .case-study-intro {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.8rem !important;
  }

  .intro-content {
    display: contents !important;
  }

  .intro-overview-block {
    order: 1 !important;
  }

  .cs-hero-title {
    font-size: clamp(28px, 7vw, 42px) !important;
    line-height: 1.1 !important;
  }

  .cs-hook-statement {
    font-size: clamp(16px, 4.2vw, 20px) !important;
    line-height: 1.4 !important;
  }

  .cs-lead-text {
    font-size: clamp(14px, 3.8vw, 15.5px) !important;
    line-height: 1.6 !important;
  }

  .cs-meta-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .intro-visual-block {
    order: 2 !important;
    width: 100% !important;
  }

  .hero-image-wrap {
    height: auto !important;
    max-height: clamp(220px, 42vw, 360px) !important;
    aspect-ratio: 16/10 !important;
    width: 100% !important;
  }

  .intro-opportunity-block {
    order: 3 !important;
    border-top: none !important;
    padding-top: 0.5rem !important;
  }

  .opportunity-composition,
  .solution-composition,
  .process-editorial-gallery,
  .editorial-content-grid,
  .body-columns,
  .cabin-asymmetric-grid,
  .cabin-plan-grid,
  .cabin-dual-grid,
  .pr-asymmetric-grid,
  .pr-dual-grid {
    grid-template-columns: 1fr !important;
    gap: 1.6rem !important;
  }

  .poster-col-6,
  .poster-col-4 {
    grid-column: span 12 !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .monitor-screen-stage {
    padding: 0 !important;
  }

  .monitor-content-viewport {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .hero-image-wrap {
    max-height: 240px !important;
  }
}

/* --- Project Page Loading Intro Overlay (Inside Monitor Screen Panel) --- */
.project-loading-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  overflow: hidden;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Layer 1: Screen Wallpaper */
.loading-wallpaper-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #000000;
}

.loading-wallpaper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Layer 2: Black Transparent Film Overlay (Clearly visible dark tint over wallpaper) */
.loading-dark-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: filmFadeIn 0.4s ease-out 0.08s forwards;
}

@keyframes filmFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Layer 3: Loading / Introductory Text UI */
.loading-ui-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  animation: textFadeIn 0.45s ease-out 0.15s forwards;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-ui-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 1rem;
}

.loading-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.9vw, 20px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.4rem;
}

.loading-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 3.2vw, 56px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.05;
}

.loading-line-indicator {
  width: clamp(48px, 6vw, 84px);
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
  border-radius: 1px;
}

/* Progress bar is scaleX(0) initially until triggered when user arrives on screen */
.loading-line-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: #ffffff;
  transform-origin: left center;
  transform: scaleX(0);
}

.loading-line-bar.is-animating {
  animation: loadingProgress 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes loadingProgress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   Cabin in the Woods — Dedicated Editorial Showcase Styles
   ========================================================================== */

/* ==========================================================================
   12-Column Asymmetric Editorial Magazine Grid System
   ========================================================================== */

.editorial-article,
.editorial-case-study {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: clamp(4rem, 6.5vw, 7.5rem);
  padding-bottom: 6rem;
  animation: fadeInArticle 0.45s ease-out forwards;
}

/* --- The 12-Column Subgrid Container --- */
.editorial-spread {
  width: 100%;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.2rem, 2.2vw, 2.5rem);
  row-gap: clamp(1.5rem, 2.8vw, 3rem);
  align-items: start;
  width: 100%;
}

/* --- Column Span Definitions --- */
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* --- 01: Folio Tags & Typographic Hierarchy --- */
.editorial-folio-tag {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.folio-no {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ff7a18;
}

.folio-cat {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888888;
}

.editorial-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #111111;
  margin: 0.2rem 0 0.8rem;
}

.editorial-rule {
  width: 42px;
  height: 2.5px;
  background-color: #ff7a18;
  margin: 0.6rem 0 1.2rem;
  border-radius: 1px;
}

.editorial-hook {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.4vw, 23px);
  font-weight: 400;
  line-height: 1.35;
  color: #222222;
  font-style: italic;
  margin-bottom: 1.1rem;
}

.editorial-lead {
  font-family: var(--font-body);
  font-size: clamp(14.5px, 0.95vw, 16.5px);
  line-height: 1.65;
  color: #555555;
  margin-bottom: 1.8rem;
}

/* --- Metadata Grid with Fine Hairline Borders --- */
.editorial-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-item .meta-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888888;
}

.meta-item .meta-val {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
}

/* --- Visual Figures & Aspect Frames --- */
.editorial-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.editorial-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #f7f6f2;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-img-wrap:hover .editorial-img {
  transform: scale(1.02);
}

/* Micro-Macro Frame Proportions */
.frame-hero {
  height: 520px;
}

.frame-tall {
  aspect-ratio: 4 / 5;
  max-height: 600px;
}

.frame-square {
  aspect-ratio: 1 / 1;
}

.frame-landscape {
  aspect-ratio: 16 / 11;
}

.frame-widescreen {
  aspect-ratio: 16 / 9;
}

/* --- Captions with Folio Indexing --- */
.editorial-caption {
  margin-top: 0.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: #666666;
}

.caption-idx {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #888888;
  flex-shrink: 0;
}

.caption-desc {
  flex: 1;
}

/* --- 02: Offset Philosophy Pull Quote Spread --- */
.spread-statement {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: clamp(2rem, 3.5vw, 3.8rem) 0;
}

.statement-label-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.folio-indicator {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.folio-indicator .folio-no {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ff7a18;
}

.folio-indicator .folio-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #222222;
}

.editorial-hairline {
  width: 28px;
  height: 1.5px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 0.4rem 0 0.8rem;
}

.statement-subtext {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: #777777;
}

.editorial-large-quote {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: #111111;
  margin: 0;
  letter-spacing: -0.01em;
}

/* --- 04: Full-Bleed Cinematic Film Banner --- */
.cabin-film-card {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background-color: #0b0b0b;
  min-height: 260px;
  display: flex;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.cabin-film-bg-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.film-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.85);
  transform: scale(1.02);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.film-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.cabin-film-trigger {
  position: relative;
  z-index: 2;
  width: 100%;
  background: transparent;
  border: none;
  padding: clamp(2rem, 3.5vw, 3.2rem);
  text-align: left;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.film-trigger-content {
  max-width: 600px;
}

.film-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.film-num {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #e0ded9;
  font-style: italic;
}

.film-duration {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.film-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.film-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.film-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.film-play-icon {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.cabin-film-card:hover .film-bg-img {
  transform: scale(1.06);
  filter: brightness(0.48) saturate(0.95);
}

.cabin-film-card:hover .film-action-link {
  border-bottom-color: #ffffff;
  gap: 0.85rem;
}

.cabin-film-card:hover .film-play-icon {
  transform: translateX(3px);
}

/* --- Dynamic Motion Turntable Player --- */
.editorial-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background-color: #0b0b0b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.editorial-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background-color: #0b0b0b;
}

/* --- 06: Editorial Colophon & Outro --- */
.editorial-colophon {
  width: 100%;
  padding: clamp(3rem, 5vw, 5rem) 1rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
  text-align: center;
}

.colophon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.colophon-rule {
  width: 36px;
  height: 2px;
  background-color: #ff7a18;
  margin-bottom: 1.5rem;
}

.colophon-quote {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.8vw, 26px);
  font-style: italic;
  color: #222222;
  margin-bottom: 1rem;
}

.colophon-folio {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999999;
}

/* --- Responsive 12-Column Subgrid Breakpoints --- */
@media (max-width: 960px) {
  .grid-12 {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }

  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 {
    width: 100%;
  }

  .frame-hero {
    height: 380px;
  }
}

/* ==========================================================================
   Fullscreen Cinematic Video Experience Overlay Modal
   ========================================================================== */

.cinematic-video-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 1.2s;
}

.cinematic-video-modal.is-active-stage {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

/* Black Curtain Fade (Slowly darkens and brightens the entire screen) */
.cinematic-black-curtain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.1s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity;
}

.cinematic-video-modal.is-screen-black .cinematic-black-curtain {
  opacity: 1;
}

/* Video Stage Container (Slowly emerges and dissolves against black backdrop) */
.cinematic-video-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  background-color: transparent;
  transition: opacity 1.0s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity;
}

.cinematic-video-modal.is-video-visible .cinematic-video-container {
  opacity: 1;
}

/* Video Player — Fullscreen Aspect Contained */
.cinematic-video-player {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  background-color: #000000;
  display: block;
  outline: none;
  border: none;
}

/* Discreet Close / Return Button */
.cinematic-close-btn {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  opacity: 0.7;
}

.cinematic-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.cinematic-close-btn .close-icon {
  font-size: 16px;
  line-height: 1;
}

/* --- Responsive Breakpoints for Showcases --- */
@media (max-width: 900px) {
  .cabin-asymmetric-grid,
  .cabin-plan-grid,
  .cabin-dual-grid,
  .pr-asymmetric-grid,
  .pr-dual-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cabin-close-btn {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
  }
}


/* ==========================================================================
   Shared Interaction Tooltip (used by Exit Projects button)
   Mirrors the main site .interaction-tooltip for visual consistency
   ========================================================================== */
.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;
}

/* --- Poster Specific Frames & Layouts --- */
.frame-poster {
  aspect-ratio: 1 / 1.414;
  height: auto;
  max-height: 680px;
}

.frame-poster .editorial-img {
  object-fit: contain;
  background-color: #f0eee9;
}

.spread-poster-duo {
  row-gap: 2.5rem;
}

.spread-poster-trio {
  row-gap: 2.5rem;
}

.poster-col-6 {
  grid-column: span 6;
}

.poster-col-4 {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .poster-col-6,
  .poster-col-4 {
    grid-column: span 12;
  }
}

/* --- GluSight Bedroom Concise Overview: Blog Callout Card --- */
.spread-blog-link {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.blog-callout-card {
  background: #fdfaf6;
  border: 1px solid rgba(242, 101, 34, 0.22);
  border-left: 4px solid #f26522;
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-callout-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f26522;
}

.blog-callout-heading {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  color: #111111;
  line-height: 1.25;
  margin: 0;
}

.blog-callout-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
  max-width: 720px;
}

.blog-callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 22px;
  background: #111111;
  color: #ffffff;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.blog-callout-btn:hover {
  background: #f26522;
  color: #ffffff;
  transform: translateX(3px);
}

.blog-callout-btn .btn-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.blog-callout-btn:hover .btn-arrow {
  transform: translateX(4px);
}

