/* ==========================================================================
   PARALLEL 07 — INTERACTIVE SYSTEMS
   Core Stylesheet · Precision Celestial Architecture
   ========================================================================== */

/* Fonts load from one <link> in index.html (Cormorant Garamond, Plus Jakarta Sans, Space Grotesk) */

:root {
  --bg-obsidian: #040507;
  --text-primary: #FFFFFF;
  --text-secondary: #9093A0;
  --text-muted: #4B4E5A;
  --solar-orange: #FF5500;
  --solar-orange-glow: rgba(255, 85, 0, 0.45);
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-hover: rgba(255, 255, 255, 0.25);
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  overscroll-behavior: none;
  touch-action: none; /* the page never scrolls natively: main.js turns drags into the virtual scroll */
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   ACT 4 CELESTIAL BACKGROUND & BLOOM (WebGL2 Master Pass)
   ========================================================================== */

#act4 {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  display: block;
}

#act4glow {
  display: none !important;
}

/* ==========================================================================
   UNIFIED WEBGL 3D VIEWPORT
   ========================================================================== */

#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

#webgl-container.viewport-ready,
body.viewport-ready #webgl-container {
  opacity: 1;
}

#webgl-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}


/* ==========================================================================
   INTERACTIVE EMBLEM HITBOX (Direct Hover Only)
   ========================================================================== */

.emblem-hitbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 250px;
  z-index: 20;
  cursor: pointer;
  pointer-events: auto;
}

/* ==========================================================================
   ARCHITECTURAL SWISS HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2.2rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.48) 0%, rgba(6, 8, 12, 0.12) 65%, transparent 100%);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.viewport-ready,
body.viewport-ready .site-header {
  opacity: 1;
  pointer-events: auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-slashes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.brand-slashes .slash {
  display: inline-block;
  width: 3.5px;
  height: 15px;
  transform: skewX(-20deg);
  border-radius: 1px;
}

.brand-slashes .slash-orange {
  background-color: var(--solar-orange);
  box-shadow: 0 0 12px var(--solar-orange-glow);
}

.brand-slashes .slash-white {
  background-color: #FFFFFF;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 2px;
  transition: all 0.35s var(--ease-luxury);
}

.header-action .action-arrow {
  width: 9px;
  height: 9px;
  transition: transform 0.3s var(--ease-luxury), color 0.3s ease;
}

.header-action:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.15);
}

.header-action:hover .action-arrow {
  transform: translate(2px, -2px);
  color: var(--solar-orange);
}

/* Act 3 Solar Dawn Adaptive Header Action (Pure White Letters · Zero Shadow · Border On Hover) */
.header-action.inquiry-sun-mode {
  color: #FFFFFF;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: none;
  text-shadow: none;
}

.header-action.inquiry-sun-mode .action-arrow {
  color: var(--solar-orange);
  filter: none;
}

.header-action.inquiry-sun-mode:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.40);
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.20);
  transform: translateY(-1px);
}



/* ==========================================================================
   MINIMAL STATUS FOOTER
   ========================================================================== */

.hero-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 2.2rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  font-family: var(--font-display);
  font-size: 0.70rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  opacity: 1;
  pointer-events: none;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--solar-orange);
  box-shadow: 0 0 8px var(--solar-orange-glow);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.status-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.interaction-cue {
  letter-spacing: 0.20em;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 900px) {
  .site-header {
    padding: 1.5rem 1.8rem;
  }
  .hero-status-bar {
    padding: 1.5rem 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ACT 2: SOLAR TOTALITY EDITORIAL TYPOGRAPHY (Final 03 Calibrated)
   ========================================================================== */

.totality-hero-text {
  display: none;
}

.totality-text-inner {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, 18px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 1.5rem;
  transition: transform 0.7s var(--ease-luxury);
}

.totality-typography-img {
  width: min(660px, 48vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.22)) drop-shadow(0 0 50px rgba(255, 85, 0, 0.18));
}

/* ==========================================================================
   PERSISTENT CELESTIAL SCROLL PROMPT (Visible on Initial Page Load)
   ========================================================================== */

.scroll-prompt {
  position: fixed;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-prompt.viewport-ready,
body.viewport-ready .scroll-prompt {
  opacity: 1;
}

.scroll-prompt .prompt-text {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: rgba(185, 192, 210, 0.65);
  text-transform: uppercase;
  padding-left: 0.26em;
}

.scroll-prompt .prompt-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 85, 0, 0.85) 60%, transparent);
  animation: promptPulse 2.4s ease-in-out infinite;
}

@keyframes promptPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}

/* ==========================================================================
   ACT 3: STUDIO MANIFESTO & STEPPED DISCIPLINES (Frame 09 Exact Benchmark)
   ========================================================================== */

.disciplines-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.2rem, 5.5vh, 4.5rem) clamp(2rem, 4.5vw, 4.5rem) clamp(1.8rem, 3.5vh, 2.5rem);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.disciplines-container {
  width: 100%;
  max-width: 1260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.2rem, 2.6vh, 2.0rem);
  max-height: 100%;
}

/* Studio Authority Manifesto Header */
.disciplines-manifesto {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.1vh, 0.9rem);
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

.disciplines-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.disciplines-tag .tag-dash {
  width: 14px;
  height: 2px;
  background-color: var(--solar-orange);
  box-shadow: 0 0 8px var(--solar-orange-glow);
}

.disciplines-tag .tag-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--solar-orange);
  text-transform: uppercase;
}

.disciplines-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.disciplines-subline {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.0vw, 1.0rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(230, 232, 236, 0.72);
  max-width: 680px;
}

/* Stepped 3-Tier Architectural Cascade (Frame 09 Exact Cascade) */
.disciplines-stepped-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vh, 1.3rem);
  width: 100%;
  margin-top: 0.4rem;
}

.stepped-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: clamp(280px, 32%, 390px);
  cursor: pointer;
  will-change: transform;
}

.stepped-item.step-left {
  align-self: flex-start;
}

.stepped-item.step-center {
  align-self: center;
}

.stepped-item.step-right {
  align-self: flex-end;
}

.stepped-rule {
  width: 0%;
  height: 1.5px;
  background: var(--solar-orange);
  box-shadow: 0 0 10px var(--solar-orange-glow);
  position: relative;
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
  will-change: width;
}

.stepped-item:hover .stepped-rule {
  background: #FF6A1A;
  box-shadow: 0 0 18px rgba(255, 85, 0, 0.85);
}

.stepped-item:hover .stepped-content {
  transform: translateY(-3px) !important;
}

.stepped-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
  transition: transform 0.25s var(--ease-luxury);
}

.stepped-title-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stepped-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.stepped-slash {
  font-family: var(--font-display);
  font-size: 1.0rem;
  color: rgba(255, 255, 255, 0.4);
}

.stepped-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.stepped-desc {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 0.88vw, 0.88rem);
  font-weight: 400;
  line-height: 1.48;
  color: rgba(230, 232, 236, 0.68);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .disciplines-stepped-grid {
    gap: 1.0rem;
  }
  .stepped-item {
    width: 100% !important;
    align-self: flex-start !important;
  }
  .disciplines-section {
    padding: 3.5rem 1.8rem 2rem;
  }
}


/* ==========================================================================
   ACT 4: SELECTED WORK (Final 05 Master Benchmark)
   ========================================================================== */

.work-section {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  padding: 0 0 0 8.35vw;
  box-sizing: border-box;
}

.work-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-top: -2.5vh;
}

.work-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.work-headline {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: clamp(5.4rem, 9.2vw, 10.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.0;
  color: #FBF6EE;
  margin: 0 0 clamp(2.0rem, 3.2vw, 3.6rem) 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
}

.work-subline {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 1.75vw, 2.05rem);
  font-weight: 400;
  line-height: 1.40;
  color: rgba(242, 238, 230, 0.90);
  max-width: 900px;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.desktop-br {
  display: inline;
}

@media (max-width: 900px) {
  .work-section {
    padding: 0 2.0rem;
  }
  .work-headline {
    font-size: clamp(3.0rem, 10.0vw, 4.5rem);
    white-space: normal;
    margin-bottom: 3.5vh;
  }
  .work-subline {
    font-size: 1.05rem;
  }
  .desktop-br {
    display: none;
  }
}

/* ==========================================================================
   Showcase caption
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Landscape: kind + name + line top-left, tags + link bottom-left. Portrait: main.js sets `top` just under the front card. */
.sc-caption {
  position: fixed;
  left: 3.5rem;
  top: calc(5.4rem + 0.5vh);
  z-index: 5;
  pointer-events: none;
  max-width: min(36rem, 34vw);
}

.sc-kind {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  opacity: 0;
}

.sc-kind .tag-dash {
  width: 14px;
  height: 2px;
  background-color: var(--solar-orange);
}

.sc-kind-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--solar-orange);
  text-transform: uppercase;
}

.sc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.2vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.0;
  color: #FBF6EE;
  margin: 0 0 0.9rem 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(18px);
}

.sc-line {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(242, 238, 230, 0.86);
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(18px);
}

.sc-meta {
  position: fixed;
  left: 3.5rem;
  bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  opacity: 0;
}

.sc-tags {
  display: flex;
  list-style: none;
  gap: 0;
}

.sc-tags li {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 218, 228, 0.78);
  white-space: nowrap;
}

.sc-tags li + li::before {
  content: '·';
  margin: 0 0.7rem;
  color: var(--solar-orange);
}

.sc-status {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--solar-orange);
}

.sc-status[hidden],
.sc-link[hidden] {
  display: none;
}

.sc-link {
  pointer-events: none;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  margin-left: -0.2rem;
}

/* Portrait (phones): everything stacks under the card */
@media (max-aspect-ratio: 9/10) {
  .sc-caption {
    left: 1.6rem;
    right: 1.6rem;
    max-width: none;
  }
  .sc-kind {
    margin-bottom: 0.6rem;
  }
  .sc-name {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
    margin-bottom: 0.6rem;
    white-space: normal;
  }
  .sc-line {
    font-size: 0.95rem;
    max-width: 30rem;
  }
  .sc-meta {
    position: static;
    margin-top: 1.1rem;
    gap: 0.9rem 1.2rem;
  }
  .sc-tags li {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }
  .sc-tags li + li::before {
    margin: 0 0.5rem;
  }
  .sc-link {
    min-height: 44px;
    padding: 0.8rem 1.1rem;
  }
}

/* ==========================================================================
   CONTACT (end of the page)
   ========================================================================== */

.contact-section {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 3.5rem calc(3rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(90deg, rgba(4, 5, 7, 0.88) 0%, rgba(4, 5, 7, 0.62) 46%, rgba(4, 5, 7, 0.15) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 38rem;
  width: 100%;
}

.contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #FBF6EE;
}

.contact-subline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.12rem);
  line-height: 1.55;
  color: rgba(242, 238, 230, 0.82);
  max-width: 30rem;
}

.contact-cta {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.32);
  margin: 0.6rem 0 0.8rem -0.1rem;
  min-height: 44px;
}

.contact-rows {
  width: 100%;
  border-bottom: 1px solid var(--hairline);
}

.contact-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: baseline;
  padding: 0.95rem 0;
  border-top: 1px solid var(--hairline);
}

.contact-row dt {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-row dd {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #FFFFFF;
}

.contact-row a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 85, 0, 0.6);
  padding-bottom: 1px;
}

.contact-row a:hover {
  border-bottom-color: var(--solar-orange);
}

.contact-foot {
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

@media (max-width: 900px), (max-aspect-ratio: 9/10) {
  .contact-section {
    align-items: flex-end;
    padding: 5rem 1.6rem calc(2.4rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(0deg, rgba(4, 5, 7, 0.92) 0%, rgba(4, 5, 7, 0.7) 55%, rgba(4, 5, 7, 0.2) 100%);
  }
  .contact-headline {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
  .contact-row {
    grid-template-columns: 6.5rem 1fr;
    padding: 0.85rem 0;
  }
}
