/* Custom Properties / Variables - DARK MODE (default) */
:root {
  --color-dark-bg: #000000;
  --color-dark-bg-secondary: #222222;
  --color-accent-orange: #FF5722;
  --color-text-light: #F0F0F0;
  --color-text-subtle: #AAAAAA;
  --font-primary: 'Playfair Display', serif;
  --gradient-x: 40%;
  --gradient-y: 40%;
  --header-safe-top: env(safe-area-inset-top, 0px);
  --header-safe-right: env(safe-area-inset-right, 0px);
  --header-safe-left: env(safe-area-inset-left, 0px);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-dark-bg);
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--color-text-light);
  line-height: 1.6;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
  z-index: 1;
  text-transform: capitalize;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: none;
}


/* --------------------------------------
TORCH LIGHT EFFECT REMOVED
-------------------------------------- */
/* 
   Body background image is now fully visible 
   without any overlay obscuring it.
*/


a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-accent-orange);
}

.accent-color-bg {
  background-color: var(--color-accent-orange);
  color: var(--color-dark-bg);
  padding: 0 4px;
}

.orange-text {
  color: var(--color-accent-orange);
  font-weight: 600;
}

h2 {
  font-size: 2em;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--color-text-light);
  font-weight: 300;
  letter-spacing: 2px;
}

.info-label {
  text-transform: uppercase;
  font-size: 0.8em;
  color: var(--color-accent-orange);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.info-group p,
.info-group a {
  color: var(--color-text-light);
  display: block;
  margin-bottom: 5px;
}

.info-group a:hover {
  color: var(--color-text-subtle);
}

/* ======================================
HEADER
======================================
*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(20px + var(--header-safe-top)) 40px 20px;
  padding-left: calc(40px + var(--header-safe-left));
  padding-right: calc(40px + var(--header-safe-right));
  z-index: 100;
  font-weight: 400;
  background-color: transparent;
  text-transform: uppercase;
  box-sizing: border-box;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: none;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  min-width: 0; /* allow shrink on small screens */
}
header nav {
  flex-shrink: 0;
}

.header-logo-img {
  height: 96px;
  width: auto;
  max-width: min(540px, 90vw);
  min-width: 0;
  object-fit: contain;
  display: block;
}

/* Remove old accent-color-bg ref if present, or just leave it unused */

header nav a {
  margin-left: 40px;
  /* Wider spacing */
  letter-spacing: 1px;
  font-size: 0.75em;
  /* Smaller, cleaner */
  color: var(--color-text-subtle);
  transition: color 0.3s;
  font-family: 'Tenor Sans', sans-serif;
  /* Added Tenor Sans */
}

header nav a:hover {
  color: var(--color-text-light);
  /* Hover to white */
}

.nav-active {
  color: var(--color-text-light) !important;
  /* Active is white, not orange, for minimal look? Or stick to orange? Reference looks plain. I'll stick to text-light (white) for active for now, or subtle orange. Let's try white for "WORKS" etc. to be clean */
  /* color: var(--color-accent-orange) !important; */
}

/* ======================================
SECTIONS & LAYOUT (One Page Scroll)
======================================
*/
/* Container for the one-page scroll effect */
main {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.full-screen-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Ensure content doesn't spill */

  /* Initial State: Hidden and pushed down */
  opacity: 0;
  visibility: hidden;
  z-index: 0;

  /* Flex centering */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

/* --- Active State --- */
.full-screen-section.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
  transform: translateY(0%);
  /* When settling, we just want it to be there. The animation happens on the enter class. */
}

/* --- ANIMATION CLASSES --- */

/* SCROLL DOWN: Current section exits UP (Fast) */
.full-screen-section.exit-up {
  z-index: 5;
  animation: slideOutUp 0.8s cubic-bezier(0.5, 0, 1, 0.5) forwards;
  /* Easing OUT Fast */
}

/* SCROLL DOWN: Next section enters from BOTTOM (Smooth) */
.full-screen-section.enter-up {
  z-index: 10;
  visibility: visible;
  animation: slideInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  /* Soft Easing In */
}


/* SCROLL UP: Current section exits DOWN (Fast) */
.full-screen-section.exit-down {
  z-index: 5;
  animation: slideOutDown 0.8s cubic-bezier(0.5, 0, 1, 0.5) forwards;
}

/* SCROLL UP: Previous section enters from TOP (Smooth) */
.full-screen-section.enter-down {
  z-index: 10;
  visibility: visible;
  animation: slideInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}


/* --- KEYFRAMES --- */

@keyframes slideOutUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-40%);
    opacity: 0;
  }

  /* Parallax-ish exit */
}

@keyframes slideInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(40%);
    opacity: 0;
  }
}

@keyframes slideInDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ======================================
HERO SECTION (Lumina particle + logo overlay)
======================================
*/
#hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  background: transparent;
}

/* Lumina: canvas + panel + tagline container */
.hero-lumina-wrap {
  position: absolute;
  inset: 0;
  padding: 100px 24px 80px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

#hero #main-canvas {
  display: block;
  width: min(90vmin, 560px, calc(100vw - 48px));
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  z-index: 2;
}

.hero-lumina-tagline {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(7px, 1.8vw, 9px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 200;
  z-index: 10;
  white-space: nowrap;
}

/* Static hero logo: no particle hover UI */
.hero-lumina-hint,
.hero-lumina-cursor {
  display: none !important;
}

/* Legacy/global logo and tagline (e.g. other sections) */
.logo-container {
  display: block;
  z-index: 5;
}

.content-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  padding: 60px 200px 40px 180px;
  margin-left: -320px;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 350px;
  border-radius: 2px;
}

.hero-logo-img {
  width: 500px;
  max-width: 60vw;
  height: auto;
  display: block;
}

.tagline {
  font-size: 0.6em;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-weight: 300;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

/* Vertical line rule removed - consolidated globally */

/* Visual Cues (Dots and text) */
.visual-cue {
  position: absolute;
  color: var(--color-text-subtle);
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
}

.visual-cue span {
  color: var(--color-text-subtle);
  margin-right: 5px;
  font-size: 0.8em;
  vertical-align: middle;
}

/* Visual Cues Adjusted */
.shadow-cue {
  top: 30%;
  left: 20%;
}

.light-cue {
  bottom: 25%;
  right: 25%;
}

.segments-text {
  position: absolute;
  bottom: 30px;
  right: 40px;
  color: var(--color-text-subtle);
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid var(--color-text-subtle);
  padding-top: 5px;
}

/* ======================================
ABOUT SECTION (Restored Original)
======================================
*/
.about-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  /* Aligned left to match Works */
  padding: 0;
  /* Removed padding to let sidebar touch edge */
  position: absolute;
  /* Enforce absolute to match scroll system */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: var(--color-bg-dark);
  /* Ensure it has background if needed, or transparent */
}

.sidebar-text {
  position: relative;
  width: 140px;
  /* Increased from 100px for more gap */
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  /* Light gray line */
  box-sizing: border-box;
}

.rotated-text {
  position: absolute;
  top: 30vh;
  /* Pushed down from 40px */
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center center;
  font-size: 3.5em;
  /* Reduced from 5em */
  /* Reduced from 5em */
  background: transparent;
  font-family: 'Tenor Sans', sans-serif;
  /* Kept Tenor Sans as requested */
  font-weight: 400;
  /* Thin look */
  color: #e0e0e0;
  /* Solid color matching other titles */
  -webkit-text-stroke: 0;
  /* Removed outline */
  margin: 0;
  letter-spacing: 5px;
  white-space: nowrap;
}

/* The content block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10rem;
  padding-right: 40px;
  padding-left: 80px;
  align-self: center;
  /* Vertical center logic */
}

.text-block {
  font-size: 0.9em;
  max-width: 400px;
  min-width: 0;
}

.text-block p {
  margin-bottom: 20px;
}

.key-concept {
  padding: 15px;
  border-left: 2px solid var(--color-accent-orange);
  background-color: var(--color-dark-bg-secondary);
  line-height: 1.8;
}

.process-title {
  font-size: 1.2em;
  /* text-transform: uppercase; Removed */
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--color-text-subtle);
}

/* Process Grid Updates */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* 3 Columns based on image layout */
  gap: 15px;
  max-width: 900px;
}

.grid-item {
  background-color: #222222a3;
  padding: 12px;
  position: relative;
  max-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: none;
}

/* Move accent bar to RIGHT side */
.grid-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  /* Not full height, floating bar style */
  width: 4px;
  background-color: var(--color-accent-orange);
}

/* Title Cell Styling (First block) */
.grid-item.title-cell {
  /* Inherits background-color from .grid-item now, so it looks like a box */
  justify-content: center;
  align-items: flex-start;
  /* Left align text */
  padding-left: 20px;
}

.grid-item.title-cell::after {
  display: none;
  /* No bar for title */
}

/* ======================================
TORCH EFFECT
======================================
*/
#torch {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  /* Increased to 250px */
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.8), transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  /* Changed from color-dodge to screen to fix white text issue */
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: left, top;
}

.title-cell h3 {
  font-size: 1.1em;
  /* text-transform: uppercase; Removed */
  letter-spacing: 1px;
  color: var(--color-text-light);
  line-height: 1.2;
  font-weight: 600;
}

/* Text Styling */
.grid-item .label {
  font-size: 0.6em;
  /* text-transform: uppercase; Removed */
  color: var(--color-text-subtle);
  margin-bottom: 5px;
  text-align: right;
  /* Align to bar */
}

.grid-item h4 {
  font-size: 1em;
  /* text-transform: uppercase; Removed */
  letter-spacing: 1px;
  font-weight: 400;
  /* Lighter weight */
  text-align: right;
  color: var(--color-text-light);
}


/* ======================================
WORKS SECTION
======================================
*/
/* Works Section styling adjustment */
.works-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background-color: transparent;
}

.works-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  width: 100%;
  height: 100%;
  max-width: none;
  position: relative;
  gap: 10rem;
}

/* Left Title Block */
.works-title-block {
  background-color: rgba(150, 150, 150, 0.4);
  /* Light gray section */
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 33.33%;
  height: 280px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
  padding-right: 50px;
  box-sizing: border-box;
}

/* Vertical Line through the block */
/* Vertical Line through the block */
.works-title-block::before {
  content: '';
  position: absolute;
  top: -55vh;
  bottom: 0;
  left: 140px;
  /* Aligned with About section sidebar line */
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  /* Slightly more visible on light gray */
  z-index: -1;
}

.vertical-works-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 3em;
  color: #e0e0e0;
  letter-spacing: 12px;
  font-family: 'Playfair Display', serif;
  /* Placeholder for Ivy Mode Thin */
  font-weight: 400;
  /* Regular weight as 'Thin' approximation */
  margin: 0;
  padding: 0;
  background: transparent;
  text-transform: uppercase;
}

/* Right Grid */
.works-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 25px;
  /* Increased gap to reduce card width */
  padding: 100px 50px 100px 20px;
  height: 100vh;
  box-sizing: border-box;
}

/* Initial State for Animation */
.work-card {
  background: rgba(28, 28, 32, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
  /* Remove underline from link */
  color: inherit;
  /* Inherit text color */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 30px;
  position: relative;
  overflow: hidden;

  /* Initial Hidden State */
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.works-section.active .work-card {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delays for Cards - INCREASED DELAY */
.works-section.active .work-card:nth-child(1) {
  transition-delay: 0.2s;
}

.works-section.active .work-card:nth-child(2) {
  transition-delay: 0.4s;
}

.works-section.active .work-card:nth-child(3) {
  transition-delay: 0.6s;
}

.works-section.active .work-card:nth-child(4) {
  transition-delay: 0.8s;
}

.works-section.active .work-card:nth-child(5) {
  transition-delay: 1.0s;
}

.works-section.active .work-card:nth-child(6) {
  transition-delay: 1.2s;
}

.work-card:hover {
  background: rgba(40, 40, 48, 0.45);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .work-card {
    background: rgb(50 50 50 / 90%);
  }
}

.card-content {
  text-align: right;
  position: relative;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  align-items: flex-end;
  align-items: flex-end;

  /* Initial Hidden State for Text */
  opacity: 0;
  transition: opacity 0.6s ease-out;
  /* Slow fade in */
}

/* Trigger content fade AFTER card appears - GENERIC FALLBACK */
.works-section.active .work-card .card-content {
  opacity: 1;
}

/* Specific Staggered Delays for Text (Sequence: All Tiles -> Then All Text) */
.works-section.active .work-card:nth-child(1) .card-content {
  transition-delay: 1s;
}

/* Starts after Tile 6 triggers */
.works-section.active .work-card:nth-child(2) .card-content {
  transition-delay: 1.1s;
}

.works-section.active .work-card:nth-child(3) .card-content {
  transition-delay: 1.2s;
}

.works-section.active .work-card:nth-child(4) .card-content {
  transition-delay: 1.3s;
}

.works-section.active .work-card:nth-child(5) .card-content {
  transition-delay: 1.4s;
}

.works-section.active .work-card:nth-child(6) .card-content {
  transition-delay: 1.5s;
}

.work-card:hover .card-content {
  transform: translateY(-5px);
  /* Slight lift on hover */
}

/* Orange Vertical Bar */
/* Orange Vertical Bar */
.vertical-line {
  position: absolute;
  right: 60px;
  /* Align to right of box */
  top: 50%;
  /* Start from MID of box as requested */
  height: 200vh;
  /* Extend beyond viewport bottom */
  width: 1px;
  background-color: var(--color-text-subtle);
  opacity: 0.5;
}

.work-accent {
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 2px;
  width: 3px;
  background-color: var(--color-accent-orange);
  transition: all 0.4s ease-out;
}

.work-card:hover .work-accent {
  top: -10px;
  /* Extend Up */
  bottom: -10px;
  /* Extend Down */
  /* Or just make it cover the new height */
}

.work-number {
  font-family: 'Tenor Sans', sans-serif;
  /* Kept Tenor Sans as requested */
  font-size: 5em;
  font-weight: 400;
  /* Tenor Sans usually looks better regular/400 */
  color: #fff;
  line-height: 0.8;
  display: block;
  margin-bottom: 5px;
  transition: color 0.3s;
}

.work-category {
  font-family: 'Playfair Display', serif;
  /* Ivy Mode Thin proxy */
  /* Kept Tenor Sans as requested */
  font-size: 0.9em;
  /* Slightly larger for the bold serif */
  color: #aaa;
  letter-spacing: 2px;
  font-weight: 400;
  /* Thin/Regular */
  /* Bold */
  text-transform: uppercase;
  transition: color 0.3s;
}

.work-card:hover .work-category {
  color: #fff;
  /* Brighten on hover */
}

/* Description Text */
.work-desc {
  font-family: 'Playfair Display', serif;
  font-size: 0.6em;
  color: #ccc;
  width: 180px;
  max-width: 100%;
  /* Fixed width for text block */
  line-height: 1.5;
  text-transform: none;

  /* Hiding state */
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  /* No margin when hidden */
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

.work-card:hover .work-desc {
  opacity: 1;
  max-height: 100px;
  /* Reveal */
  margin-top: 15px;
  /* Add space only on hover */
  transform: translateY(0);
}

/* Bespoke specifics removed as it now matches other cards */

/* ======================================
NEXT SECTION INDICATOR
======================================
*/
.next-section-indicator {
  position: absolute;
  bottom: 0px;
  left: 40px;
  /* Aligned with other left elements */
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
  padding-bottom: 40px;
  /* Space from bottom edge */
  cursor: pointer;
  /* Suggests clickability? Maybe add click-to-scroll later if user asks */
}

/* Orange Arrow Down */
.arrow-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--color-accent-orange);
  /* Or use a more styled arrow SVG if preferred, but CSS is lightweight */
  transform: translateY(2px);
  /* Vertical adjustment */
}

/* Alternative: Use a text char or icon if user wants "image" style. 
   "orange arrow showing down" - border-top creates a down triangle. */

.next-title {
  font-size: 0.7em;
  color: var(--color-text-subtle);
  letter-spacing: 2px;
  text-transform: none;
  font-weight: 500;
}

#hero .next-title {
  text-transform: uppercase;
}

/* Ensure Contact section alignment */
.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 100px;
  /* Reduced to save space */
  padding-bottom: 0;
  height: 100vh;
  box-sizing: border-box;
  gap: 20px;
  /* Tighter gap */
}

.contact-form-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center vertically now that we want it to fit */
  padding: 0;
  /* Removed overflow-y: auto to prevent scrollbar */
}

.contact-form {
  display: flex;
  flex-direction: column;
  padding: 0 40px;
  margin: auto 0;
  /* Centers vertically when space allows, safe scroll otherwise */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 20px;
  /* Reduced from 25px */
  margin-bottom: 20px;
  /* Reduced from 30px */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle border */
  background-color: var(--color-dark-bg-secondary);
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 1.1em;
  /* Slightly smaller to help fit */
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-orange);
  background-color: rgba(255, 255, 255, 0.05);
  /* Slightly lighter on focus */
}

.contact-form textarea {
  resize: none;
  /* Prevent resize causing scroll */
}

.submit-btn {
  background-color: var(--color-accent-orange);
  color: var(--color-dark-bg);
  border: none;
  padding: 15px 30px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s;
  align-self: center;
  max-width: 300px;
}

.submit-btn:hover {
  background-color: #e64a19;
}


/* ======================================
FOOTER (Inside Contact Section)
======================================
*/
.site-footer {
  background-color: var(--color-dark-bg-secondary);
  /* Keep distinct or make transparent? Reference had dark. I'll keep it distinct blocks or full width stripe at bottom. */
  width: 100%;
  padding: 20px 40px 10px;
  /* Compact footer padding */
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
  flex-shrink: 0;
  /* Don't shrink footer */
  position: relative;
}

.footer-content-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  /* Spread columns */
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

/* Removed .contact-info-block wrapper */

.info-group {
  flex: 1;
  min-width: 250px;
}

.info-label {
  color: var(--color-accent-orange);
  font-size: 0.9em;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

.info-group p {
  margin-bottom: 5px;
  color: var(--color-text-subtle);
  font-size: 0.9em;
  line-height: 1.6;
}

.info-group a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.info-group a:hover {
  color: var(--color-accent-orange);
}

.copyright-text {
  font-size: 0.7em;
  color: var(--color-text-subtle);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ======================================
RESPONSIVENESS
======================================
*/
@media (max-width: 900px) {

  /* About Section */
  .about-section {
    grid-template-columns: 1fr;
    padding-left: 40px;
  }

  .rotated-text {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-right: 0;
  }

  .text-block {
    max-width: 100%;
  }

  /* Contact Form */
  .contact-form {
    padding: 0;
  }

  .submit-btn {
    align-self: stretch;
    max-width: 100%;
  }

  /* Footer responsiveness */
  .footer-content-grid {
    flex-direction: column;
    align-items: center;
    /* Center align on mobile? Or left? Reference usually lists. Let's start center but user gave specific block text. */
    text-align: center;
    gap: 40px;
  }

  .info-group {
    min-width: unset;
    max-width: 100%;
  }

  .info-group p,
  .info-group a {
    text-align: center;
  }
}

@media (max-width: 600px) {
  header {
    padding: 20px;
  }

  /* Nav visibility is controlled by the 767px mobile-menu rules; do not hide nav here */

  .full-screen-section {
    padding: 60px 20px;
  }

  .brand-name {
    font-size: 4em;
  }

  .contact-section {
    min-height: 60vh;
  }
}

/* ======================================
ANIMATION CLASSES (Easing Out Effect)
======================================
*/
/* 
   NOTE: Detailed animations for sections are now handled by 
   .enter-up / .exit-up classes in the SECTIONS & LAYOUT block.
   
   Specific internal elements can be animated here if needed
   when the parent has .is-visible
*/

.full-screen-section.is-visible .brand-name {
  animation: fadeInScale 1.5s ease-out forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ======================================
CUSTOM CURSOR
======================================
*/
/* Hide default cursor globally */
* {
  cursor: none !important;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  /* Inverts color for visibility */
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  will-change: left, top;
}

/* Hover state for links */
#custom-cursor.hovered {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 165, 0, 0.2);
  /* Orange tint */
  border-color: var(--color-accent-orange);
}

/* ======================================
CONTACT REDESIGN
======================================
*/
.contact-section {
  padding: 0 !important;
  /* Override full-screen-section padding */
}

/* Vertical Split Layout */
.contact-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 100px;
  box-sizing: border-box;
}

/* TOP AREA: Sidebar + Content */
.contact-upper-content {
  flex: 1 1 auto;
  min-height: min(60vh, 520px);
  display: flex;
  flex-direction: row;
  width: 100%;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-sidebar {
  width: 140px;
  height: 100%;
  /* Match upper content height */
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Reusing grid for the right side of upper content */
.contact-content-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  min-width: 0;
}


/* TESTIMONIALS SECTION */
.testimonials-section {
  flex: 0 0 auto;
  background-color: #2e2e2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials-header {
  font-size: 0.9em;
  letter-spacing: 4px;
  color: #666;
  margin-bottom: 20px;
  /* Reduced from 30px */
  font-weight: 400;
  text-transform: uppercase;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  max-width: 900px;
}

.testimonial-item {
  position: relative;
  padding-left: 50px;
}

.quote-icon {
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4em;
  color: var(--color-accent-orange);
  line-height: 1;
  font-family: serif;
  /* Classic quote style */
}

.testimonial-item p {
  font-size: 0.8em;
  line-height: 1.6;
  color: #ccc;
  font-style: italic;
  margin-bottom: 10px;
}

.client-name {
  font-size: 0.7em;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

/* LEFT COLUMN: INFO */
.contact-info-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.info-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 100%;
  max-width: 600px;
}

.info-item h4 {
  font-size: 0.7em;
  color: var(--color-text-subtle);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.info-item p {
  font-size: 0.8em;
  line-height: 1.6;
  color: var(--color-text-main);
  /* text-transform: uppercase; Removed to allow Title Case in Address */
}

/* RIGHT COLUMN: FORM */
.contact-form-panel {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #1a1a1a;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  margin-right: 50px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.form-header {
  font-family: inherit;
  font-size: 0.7em;
  color: #888;
  margin-top: 0;
  margin-bottom: 40px;
  line-height: 1.8;
  letter-spacing: 2px;
  max-width: 90%;
}

.contact-form-dark {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
}

.form-group {
  position: relative;
  background-color: #000000;
  /* Pure black inputs */
  padding: 18px 25px;
  /* Taller bars */
  border: none;
  /* No border for the 'cutout' look */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group:focus-within {
  /* No border change, maybe just subtle glow or nothing for strict minimalism */
  box-shadow: inset 0 0 0 1px #333;
}

.form-group label {
  display: block;
  font-size: 0.6em;
  color: #555;
  /* Muted label */
  margin-bottom: 5px;
  letter-spacing: 1.5px;
  font-weight: 700;
  /* text-transform: uppercase; Removed */
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1em;
  outline: none;
  font-weight: 400;
  letter-spacing: 1px;
}

.form-group textarea {
  resize: none;
  min-height: 100px;
  /* Big message box */
}

.submit-btn-dark {
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 25px;
  background: #000;
  border: none;
  color: #fff;
  font-family: inherit;
  letter-spacing: 4px;
  cursor: none;
  transition: background 0.3s;
  text-transform: uppercase;
  font-size: 0.8em;
  width: 100%;
  text-align: left;
  flex-shrink: 0;
  font-weight: 600;
}

.submit-btn-dark:hover {
  background: #fff;
  color: #000;
}

.site-footer-minimal {
  position: absolute;
  bottom: 30px;
  right: 50px;
  font-size: 0.6em;
  color: #444;
  letter-spacing: 2px;
}

/* ======================================
   NEW ABOUT US PAGE STYLES
   ======================================
*/

/* NEW ABOUT HERO - CAPTION STYLE */
.about-hero-caption-section {
  position: relative;
  margin-bottom: 120px;
  width: 100%;
}

.about-header-row {
  display: flex;
  justify-content: flex-end;
  /* Title to right */
  margin-bottom: 20px;
}

.about-header-row .big-section-title {
  margin-bottom: 0;
  font-size: 5em;
  /* Larger title as per image */
}

.about-hero-image-full img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  margin-bottom: 40px;
}

.about-caption-text {
  width: 100%;
  max-width: 1200px;
  /* No margin auto, left align or justify? Image shows left aligned usually or justified. */
}

.about-caption-text p {
  color: #b0b0b0;
  font-size: 0.9em;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.highlight-orange {
  color: var(--color-accent-orange);
  font-weight: 700;
}

/* RESPONSIVE UPDATES */
@media (max-width: 900px) {
  .about-header-row .big-section-title {
    font-size: 3em;
  }
}

/* OLD SPLIT STYLES (Kept for reference or transition) */
.about-hero-split {
  display: flex;
  gap: 60px;
  margin-bottom: 150px;
  align-items: flex-start;
}

/* DETAILS SPLIT SECTION */
.about-details-split {
  display: flex;
  gap: 80px;
  margin-bottom: 150px;
  align-items: stretch;
  /* Stretch to match heights */
  padding-top: 80px;
  /* Separation from Hero */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle divider */
}

.details-image-col {
  flex: 1.5;
  /* Give image more width to allow it to be taller while displaying full width */
  display: flex;
  flex-direction: column;
}

.image-wrapper-vertical {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  /* Blend with image background */
  display: flex;
  align-items: center;
  /* Center image vertically if gaps exist */
}

.image-wrapper-vertical img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Full image visible */
  object-position: center;
  filter: grayscale(100%) contrast(1.1);
}

.details-content-col {
  flex: 1;
  /* Text takes less width, pushing height up if needed, balancing the block */
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center text vertically vs image */
}

/* Reuse .info-block styles */

/* Responsive for Split Details */
@media (max-width: 900px) {
  .about-details-split {
    flex-direction: column;
  }

  .image-wrapper-vertical {
    height: 50vh;
  }
}

.about-image-col {
  flex: 1;
  position: sticky;
  /* Optional: keeps image in view if text is long */
  top: 150px;
}

.about-image-col img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  /* Matches the B&W look in design */
  border-radius: 2px;
}

.about-content-col {
  flex: 1;
  padding-top: 0;
}

.big-section-title {
  font-size: 4em;
  text-align: right;
  color: #e0e0e0;
  margin-bottom: 60px;
  letter-spacing: 5px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.info-block {
  margin-bottom: 60px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 30px;
}

.info-label {
  display: block;
  color: var(--color-accent-orange);
  /* Orange Label */
  font-size: 0.9em;
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.info-block p {
  color: #aeaeae;
  font-size: 0.95em;
  line-height: 1.8;
  margin-bottom: 15px;
  text-transform: uppercase;
  /* Design has uppercase text */
  letter-spacing: 0.5px;
}

.highlight-text {
  color: #fff;
  font-weight: 600;
}

/* PROCESS SECTION */
.process-section-wrapper {
  margin-bottom: 150px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  /* Full width */
  max-width: none;
  /* Remove barrier */
  margin: 0;
  /* Reset margins */
}

.process-item {
  display: flex;
  align-items: center;
  /* Vertically align box and text */
  gap: 60px;
  /* Increased gap for better spacing on wide screens */
  justify-content: center;
  /* Center the Title Box + Description group horizontally */
  margin-bottom: 20px;
  /* Spacing between rows */
}

.process-title-box {
  background-color: rgba(255, 255, 255, 0.2);
  /* Light gray transparent box */
  width: 250px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.process-title-box:hover {
  background-color: rgba(255, 102, 0, 0.2);
  /* Orange hints on hover */
}

.process-title-box h3 {
  margin: 0;
  color: var(--color-accent-orange);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.process-desc {
  max-width: 600px;
}

.process-desc p {
  color: #000;
  /* Changed to Black as requested */
  font-size: 0.9em;
  line-height: 1.6;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  /* Adding weight for readability against dark bg? Wait, if text is black on dark layout... */
  /* WARNING: Black text on dark background (#000 or #222) will be invisible. 
     The user asked for black text, implying the background might need to change for this section 
     OR they assume a white box/background.
     Since the user just said "text color... should be black", I will assume they might mean a light background context 
     OR they want the text block to have a background.
     However, standard "black on black" is bad. 
     I'll wrap the text description in a light box OR assume the whole row has a background.
     Actually, let's look at the image 3 again (Process). It appeared to have a dark background.
     If the user wants black text, maybe they want the CARD to be light?
     I will set the text to black. But to ensure visibility, I might need to clarify or adding a background.
     For now, I'll add a light background to the `.process-desc` or the row so it's readable, 
     otherwise I am blindly making it invisible.
     Let's try adding a light background to the description container itself.
  */
  background-color: rgba(255, 255, 255, 0.8);
  /* Light background for readability */
  padding: 15px;
  /* Padding for the background */
  border-radius: 2px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-hero-split {
    flex-direction: column;
  }

  .big-section-title {
    text-align: left;
    font-size: 3em;
    margin-top: 40px;
  }

  .process-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .process-title-box {
    width: 100%;
    height: 60px;
    justify-content: flex-start;
    padding-left: 20px;
  }
}

/* ======================================
   PROJECT DETAIL PAGE STYLES (SUBEX REFINED)
   ======================================
*/
.project-detail-body {
    background-color: #111;
    background-color: var(--color-dark-bg);
    overflow-y: auto;
    height: 100%;
  }

  .project-detail-container {
    display: flex;
    min-height: 100vh;
    padding: 100px 50px 50px 100px;
    position: relative;
    box-sizing: border-box;
  }

  /* Vertical LabelSidebar */
  .project-sidebar-label {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    width: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 60vh;
  }

  .project-sidebar-label span {
    display: block;
    transform: rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: -60px;
    font-size: 0.9em;
    letter-spacing: 5px;
    color: #666;
    text-transform: uppercase;
  }

  /* Main Content Area */
  .project-content-wrapper {
    flex: 1;
    margin-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 90vw;
    /* Fluid max-width */
    width: 100%;
    margin-right: auto;
    /* Ensure it doesn't stick weirdly if explicit width */
  }

  /* Header Row */
  .project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align bottom to match ref visual weight */
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  .project-title-col {
    flex: 1;
  }

  .project-title-large {
    font-size: clamp(3rem, 5vw, 8rem);
    /* Clamp font size: Min 3rem, Pref 5vw, Max 8rem */
    line-height: 0.9;
    color: #e0e0e0;
    margin: 0;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 2px;
  }

  .project-title-large .highlight-orange {
    font-weight: 700;
    color: #fff;
    /* Keep white for consistency with ref unless branding differs */
  }

  /* Metadata */
  .project-meta-col {
    display: flex;
    gap: 40px;
    padding-bottom: 10px;
  }

  .meta-item {
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--color-accent-orange);
    padding-left: 10px;
  }

  .meta-label {
    font-size: 0.7em;
    color: var(--color-accent-orange);
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 600;
  }

  .meta-value {
    font-size: 0.9em;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* Split Content with Gray Card */
  .project-split-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
  }

  .project-description-col {
    flex: 0.7;
    background-color: rgba(255, 255, 255, 0.15);
    /* The gray card background */
    padding: 40px;
    color: #ddd;
    font-size: 0.85em;
    line-height: 1.6;
    text-align: justify;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .project-description-col p {
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: none;
  }

  .project-visual-col {
    flex: 1.3;
    position: relative;
  }

  .project-visual-col > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Responsive - MOBILE (< 900px) */
  @media (max-width: 900px) {
    .project-detail-container {
      padding: 80px 30px;
    }

    .project-header-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 30px;
    }

    .project-title-large {
      font-size: 3rem;
      /* Fixed smaller size for mobile */
    }

    .project-split-layout {
      flex-direction: column;
    }

    .project-visual-col {
      width: 100%;
      height: 40vh;
      /* Shorter image on mobile */
    }

    .project-description-col {
      width: 100%;
      box-sizing: border-box;
      padding: 30px;
      /* Smaller padding */
    }

    .project-sidebar-label {
      display: none;
      /* Hide sidebar on mobile to prevent overlap */
    }

    .project-content-wrapper {
      margin-left: 0;
      /* Remove offset */
      max-width: 100%;
    }
  }

  /* DESKTOP TWEAKS (> 900px) */
  @media (min-width: 901px) {
    .project-content-wrapper {
      margin-left: 120px;
      /* Force more space from sidebar */
      max-width: 85vw;
      /* Prevent too wide */
    }

    .project-title-large {
      /* Ensure clamp works well */
      font-size: clamp(3rem, 5vw, 6rem);
    }
  }

  /* Top Logo Styles (Global) */
  .project-top-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
  }

  .project-top-logo span {
    color: var(--color-accent-orange);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
  }

  .logo-box {
    width: 25px;
    height: 25px;
    background-color: #fff;
    opacity: 0.8;
  }

  /* Updated Meta Item Layout (Global) */
  .project-meta-col {
    gap: 50px;
  }

  .meta-item {
    border-left: 2px solid var(--color-accent-orange);
    padding-left: 15px;
  }

  .meta-label {
    margin-bottom: 5px;
  }

  /* ==========================================================================
   MOBILE RESPONSIVENESS (Max Width 900px)
   ========================================================================== */
  @media screen and (max-width: 900px) {

    /* --- GLOBAL: enable native scroll --- */
    html {
      overflow-x: hidden !important;
      overflow-y: auto !important;
      height: auto !important;
      -webkit-overflow-scrolling: touch;
    }

    body {
      overflow-x: hidden !important;
      overflow-y: auto !important;
      height: auto !important;
      min-height: 100vh;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      background-attachment: scroll;
    }

    /* --- MAIN: allow content to stack and scroll --- */
    main {
      height: auto !important;
      min-height: 100vh;
      overflow: visible !important;
      position: relative;
    }

    /* --- SECTIONS: stack vertically instead of overlapping --- */
    .full-screen-section {
      position: relative !important;
      min-height: 100vh;
      height: auto !important;
      opacity: 1 !important;
      visibility: visible !important;
      overflow: visible;
      transform: none !important;
      animation: none !important;
    }
    .full-screen-section.exit-up,
    .full-screen-section.exit-down,
    .full-screen-section.enter-up,
    .full-screen-section.enter-down {
      animation: none !important;
    }

    /* --- HEADER --- */
    header {
      padding: 20px;
      padding-top: calc(20px + var(--header-safe-top));
      padding-left: calc(20px + var(--header-safe-left));
      padding-right: calc(20px + var(--header-safe-right));
      background-color: transparent;
    }

    header .logo .header-logo-img {
      height: 72px;
      max-width: min(400px, 78vw);
    }
    header nav a {
      margin-left: 15px;
      font-size: 0.7em;
    }

    /* --- HERO SECTION (Lumina + logo overlay) --- */
    #hero {
      position: relative;
      height: auto;
      min-height: 100vh;
      align-items: flex-start;
    }

    .hero-lumina-wrap {
      padding: 80px 16px 60px;
      padding-top: calc(80px + var(--header-safe-top));
    }

    #hero #main-canvas {
      width: min(92vmin, 560px, calc(100vw - 32px));
      max-width: 100%;
      height: auto;
      aspect-ratio: 1;
    }

    .next-section-indicator {
      left: calc(20px + var(--header-safe-left));
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }


    /* Hide decorative cues on mobile */
    .visual-cue,
    .segments-text,
    .vertical-line {
      display: none;
    }

    /* --- ABOUT SECTION --- */
    .about-section {
      position: relative;
      height: auto;
      flex-direction: column;
      padding: 48px 20px 56px;
      background-color: var(--color-dark-bg);
    }

    .sidebar-text {
      width: 100%;
      height: 60px;
      border-right: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 30px;
    }

    .rotated-text {
      position: static;
      transform: none;
      text-align: center;
      font-size: 3em;
      width: 100%;
      display: block;
      margin-top: 10px;
    }

    .about-grid {
      display: flex;
      flex-direction: column;
      gap: 40px;
      padding: 0;
    }

    .text-block {
      max-width: 100%;
    }

    .process-grid {
      grid-template-columns: 1fr;
      /* Stack vertically */
      max-width: 100%;
    }

    .grid-item {
      max-height: none;
      min-height: 100px;
    }

    .grid-item::after {
      display: none;
      /* Remove side bars on mobile */
    }

    /* --- WORKS SECTION --- */
    .works-section {
      position: relative;
      height: auto;
      background-color: var(--color-dark-bg);
      display: block;
      /* Override flex */
    }

    .works-container {
      display: flex;
      flex-direction: column;
      height: auto;
    }

    .works-title-block {
      position: relative;
      width: 100%;
      height: auto;
      min-height: 80px;
      bottom: auto;
      left: auto;
      justify-content: center;
      padding: 24px 20px 0;
      margin-bottom: 8px;
    }

    .works-title-block::before {
      display: none;
    }

    .vertical-works-title {
      writing-mode: horizontal-tb;
      transform: none;
      font-size: 2.5em;
    }

  .works-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 20px 32px;
    height: auto;
    gap: 20px;
    }

    .work-card {
      height: auto;
      min-height: 280px;
      opacity: 1 !important;
      transform: none !important;
    }

    .work-desc {
      width: 100%;
      max-width: 100%;
    }

    .card-content {
      opacity: 1 !important;
    }

    /* --- CONTACT SECTION --- */
    .contact-upper-content {
      flex-direction: column;
      flex: auto;
      /* Allow height to grow */
    }

    .contact-sidebar {
      width: 100%;
      height: 60px;
      border-right: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .contact-title {
      position: static;
      transform: none;
      font-size: 2.5em;
      /* Smaller title */
      text-align: center;
    }

    .contact-content-grid {
      display: flex;
      flex-direction: column;
    }

    .contact-info-panel,
    .contact-form-panel {
      width: 100%;
      padding: 32px 20px;
      margin-right: 0;
      border-left: none;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .info-grid-2x2 {
      grid-template-columns: 1fr;
      /* Stack info items */
      gap: 30px;
      text-align: center;
    }

    .info-item {
      align-items: center;
      /* Center align */
    }

    .info-item h4,
    .info-item p {
      text-align: center;
    }

    /* --- TESTIMONIALS SECTION --- */
    .testimonials-section {
      padding: 40px 20px 48px;
    }

    .testimonials-grid {
      display: flex;
      flex-direction: column;
      gap: 50px;
    }

    .testimonial-item {
      padding-left: 0;
      padding-top: 40px;
      /* Space for quote icon on top */
      text-align: center;
    }

    .quote-icon {
      left: 50%;
      transform: translateX(-50%);
      top: 0;
    }

  }

  /* =========================================
   Back Navigation (Global Premium Style)
   ========================================= */
  .back-nav {
    position: fixed;
    top: 120px;
    /* Moved down below potential top logos */
    left: 80px;
    /* Moved right into the gutter space */
    z-index: 1001;
    /* Ensure on top */
  }

  .back-nav a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    /* Increased opacity for visibility */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85em;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .back-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  @media (max-width: 900px) {
    .back-nav {
      top: 30px;
      /* Adjusted for mobile */
      left: 25px;
      /* Adjusted for mobile */
    }

    .back-nav a {
      padding: 8px 16px;
      font-size: 0.75em;
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      background: rgba(0, 0, 0, 0.4);
      /* Stronger contrast on mobile */
    }
  }
}

/* ======================================
   HERO PARTICLE ANIMATION STYLES
   ====================================== */
#main-canvas {
  display: block;
  cursor: crosshair;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  z-index: 2;
}

#panel {
  position: absolute;
  top: 100px;
  left: 40px;
  width: 248px;
  background: rgba(5, 8, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 18px 18px;
  z-index: 100;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.75);
}

#panel h3 {
  color: rgba(255, 255, 255, 0.35);
  font-size: 8.5px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 400;
}

.section-label {
  color: rgba(255, 255, 255, 0.18);
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 11px;
  font-weight: 400;
}

.ctrl-group {
  margin-bottom: 12px;
}

.ctrl-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.ctrl-label span:first-child {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 300;
}

.ctrl-val {
  color: rgba(100, 170, 255, 0.9);
  font-size: 11px;
  font-weight: 500;
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(100, 165, 255, 1);
  box-shadow: 0 0 8px rgba(100, 165, 255, 0.7);
  cursor: pointer;
  transition: transform 0.12s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 14px 0;
}

#reset-btn {
  width: 100%;
  margin-top: 13px;
  padding: 9px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

#reset-btn:hover {
  background: rgba(100, 165, 255, 0.1);
  border-color: rgba(100, 165, 255, 0.25);
  color: rgba(100, 165, 255, 0.8);
}

.tagline-animation {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  letter-spacing: 7px;
  text-transform: uppercase;
  font-weight: 200;
  z-index: 1;
  white-space: nowrap;
}

.logo-container {
  position: relative;
  width: 60vh;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ======================================
   FULL RESPONSIVE: MOBILE | TABLET | LAPTOP | DESKTOP
   ====================================== */

/* Touch devices: use default cursor, hide custom cursor & torch */
@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }
  #custom-cursor,
  #torch {
    display: none !important;
  }
}

/* Mobile menu button (shown on small screens) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-light);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- MOBILE (default for smallest) ----- */
@media (max-width: 479px) {
  header {
    padding: 16px 20px;
  }
  header .logo .header-logo-img {
    height: 60px;
    max-width: min(340px, 82vw);
  }
  .hero-logo-img {
    max-width: 85%;
  }
  .content-overlay {
    padding: 60px 20px 30px 20px;
  }
  .tagline {
    font-size: 0.55em;
    letter-spacing: 2px;
  }
  .full-screen-section {
    padding: 24px 20px;
  }
  .next-section-indicator {
    left: 20px;
    padding-bottom: 20px;
  }
  .next-title {
    font-size: 0.6em;
  }
  .works-grid {
    padding: 0 20px 28px;
    gap: 16px;
  }
  .work-card {
    padding: 20px;
    min-height: 220px;
  }
  .work-number {
    font-size: 3.5em;
  }
  .work-category {
    font-size: 0.75em;
  }
  .contact-container {
    padding-top: 88px;
  }
  .contact-form-panel,
  .contact-info-panel {
    padding: 28px 20px;
    margin-right: 0;
  }
  .form-header {
    font-size: 0.65em;
    margin-bottom: 24px;
  }
  .form-group {
    padding: 14px 18px;
  }
  .testimonials-section {
    padding: 24px 20px;
  }
  .testimonials-grid {
    gap: 32px;
  }
  .testimonial-item {
    padding-left: 0;
    padding-top: 36px;
  }
  .quote-icon {
    font-size: 3em;
  }
  .about-grid {
    padding-left: 0;
    padding-right: 0;
    gap: 28px;
  }
  .about-section {
    padding: 40px 20px 48px;
  }
  .process-grid {
    gap: 10px;
  }
  .grid-item {
    padding: 10px;
  }
  .site-footer-minimal {
    bottom: 20px;
    right: 20px;
    font-size: 0.55em;
  }
}

/* ----- Very small screens ----- */
@media (max-width: 360px) {
  header {
    padding: 14px 12px;
    padding-top: calc(14px + var(--header-safe-top));
    padding-left: calc(12px + var(--header-safe-left));
    padding-right: calc(12px + var(--header-safe-right));
  }
  header .logo .header-logo-img {
    height: 52px;
    max-width: min(260px, 78vw);
  }
  .hero-lumina-wrap {
    padding: 60px 12px 48px;
    padding-top: calc(60px + var(--header-safe-top));
  }
  .works-grid {
    padding: 0 12px 24px;
    gap: 14px;
  }
  .work-card {
    padding: 16px;
    min-height: 200px;
  }
  .work-number {
    font-size: 3em;
  }
  .contact-container {
    padding-top: 80px;
  }
  .contact-form-panel,
  .contact-info-panel {
    padding: 20px 14px;
  }
  .contact-form-dark {
    gap: 14px;
  }
  .form-group {
    padding: 12px 14px;
  }
  .submit-btn-dark {
    padding: 18px;
  }
  .testimonials-section {
    padding: 20px 14px;
  }
  .testimonials-grid {
    gap: 24px;
  }
  .site-footer-minimal {
    bottom: 12px;
    right: 12px;
    font-size: 0.5em;
  }
}

/* ----- MOBILE (landscape / larger phones) ----- */
@media (min-width: 480px) and (max-width: 767px) {
  header {
    padding: 20px 24px;
  }
  .content-overlay {
    padding: 70px 28px 36px 28px;
  }
  .full-screen-section {
    padding: 32px 24px;
  }
  .next-section-indicator {
    left: 24px;
    padding-bottom: 24px;
  }
  .works-grid {
    padding: 0 24px 32px;
    gap: 16px;
  }
  .work-card {
    min-height: 260px;
  }
  .work-number {
    font-size: 4em;
  }
  .contact-form-panel,
  .contact-info-panel {
    padding: 32px 24px;
  }
  .info-grid-2x2 {
    gap: 28px;
  }
}

/* ----- TABLET ----- */
@media (min-width: 768px) and (max-width: 1023px) {
  header {
    padding: 24px 32px;
  }
  header nav a {
    margin-left: 28px;
    font-size: 0.72em;
  }
  .content-overlay {
    padding: 60px 40px 40px 32px;
    margin-left: 0;
    min-height: 300px;
  }
  .hero-logo-img {
    width: 380px;
    max-width: 50vw;
  }
  .tagline {
    font-size: 0.58em;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-left: 50px;
    padding-right: 40px;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 100%;
  }
  .works-container {
    gap: 4rem;
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 40px 32px 60px;
    gap: 20px;
  }
  .works-title-block {
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 24px 32px 0;
    position: relative;
    bottom: auto;
    left: auto;
    justify-content: center;
  }
  .works-container {
    padding: 0;
  }
  .vertical-works-title {
    font-size: 2.5em;
    letter-spacing: 8px;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .contact-content-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-panel,
  .contact-info-panel {
    padding: 40px 32px;
    margin-right: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .info-grid-2x2 {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .testimonials-grid {
    gap: 50px;
    grid-template-columns: 1fr;
  }
}

/* ----- LAPTOP ----- */
@media (min-width: 1024px) and (max-width: 1439px) {
  header {
    padding: 28px 36px;
  }
  header nav a {
    margin-left: 32px;
  }
  .content-overlay {
    padding: 50px 48px 40px 40px;
    margin-left: 0;
    min-height: 320px;
  }
  .hero-logo-img {
    width: 420px;
    max-width: 55vw;
  }
  .about-grid {
    gap: 6rem;
    padding-left: 60px;
    padding-right: 50px;
  }
  .process-grid {
    max-width: 800px;
  }
  .works-container {
    gap: 6rem;
  }
  .works-grid {
    padding: 80px 40px 80px 24px;
    gap: 22px;
  }
  .contact-form-panel,
  .contact-info-panel {
    padding: 50px 40px;
    margin-right: 0;
  }
  .info-grid-2x2 {
    gap: 50px;
  }
}

/* ----- DESKTOP (large) ----- */
@media (min-width: 1440px) {
  .content-overlay {
    padding: 60px 220px 40px 200px;
    margin-left: -340px;
    min-height: 380px;
  }
  .hero-logo-img {
    width: 520px;
  }
  .about-grid {
    gap: 12rem;
    padding-left: 90px;
    padding-right: 50px;
  }
  .process-grid {
    max-width: 950px;
  }
  .works-container {
    gap: 12rem;
  }
  .works-grid {
    padding: 100px 60px 100px 30px;
    gap: 28px;
  }
  .works-title-block {
    width: 33.33%;
    height: 280px;
    padding-right: 50px;
  }
}

/* Show hamburger, hide nav links on small screens */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    margin: -4px -4px -4px 0;
  }
  header nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    padding: max(80px, calc(24px + env(safe-area-inset-top))) calc(24px + env(safe-area-inset-right)) 40px 24px;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease, visibility 0.35s;
    visibility: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 99;
  }
  header nav.open {
    transform: translateX(0);
    visibility: visible;
  }
  header nav a {
    margin-left: 0;
    font-size: 1em;
    letter-spacing: 3px;
    padding: 12px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet and up: hide hamburger, show normal nav */
@media (min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* ======================================
   ABOUT / WORKS / PROJECT PAGES - RESPONSIVE
   ====================================== */
@media (max-width: 1023px) {
  .page-container {
    padding: 80px 28px 50px 28px !important;
  }
  .page-title {
    font-size: 2.2em !important;
  }
  .text-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .strength-card {
    padding: 22px !important;
  }
  .founders-section {
    flex-direction: column !important;
    gap: 48px !important;
    padding-left: 20px !important;
    margin-bottom: 60px !important;
  }
  .founder-image-container {
    width: 100% !important;
    height: 400px !important;
    margin-left: 0 !important;
  }
  .founder-identity-box {
    left: 20px !important;
    right: 20px !important;
    min-width: auto !important;
    max-width: none !important;
  }
  .founder-name {
    font-size: 1.5em !important;
  }
  .founder-bio {
    width: 100% !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
  }
  .accordion-container {
    flex-direction: column !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60vh !important;
    bottom: 24px !important;
    padding: 0 16px 0 16px !important;
  }
  .accordion-panel {
    min-height: 120px !important;
  }
  .works-title-block {
    position: relative !important;
    width: 100% !important;
    height: 80px !important;
    bottom: auto !important;
    left: auto !important;
    top: 0 !important;
    justify-content: center !important;
    padding-right: 0 !important;
  }
  .works-title-block h1 {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    font-size: 1.3rem !important;
  }
}

@media (max-width: 767px) {
  .page-container {
    padding: 70px 20px 40px 20px !important;
  }
  .page-title {
    font-size: 1.8em !important;
  }
  .section-block {
    margin-bottom: 60px !important;
  }
  .strengths-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .founder-image-container {
    height: 320px !important;
  }
  .founder-identity-box {
    padding: 22px !important;
    bottom: 24px !important;
    left: 16px !important;
    right: 16px !important;
  }
  .founder-name {
    font-size: 1.35em !important;
  }
  .panel-content {
    font-size: 0.85em !important;
  }
}

@media (max-width: 479px) {
  .page-container {
    padding: 60px 16px 32px 16px !important;
  }
  .page-title {
    font-size: 1.5em !important;
  }
  .founder-image-container {
    height: 280px !important;
  }
  .founder-identity-box {
    padding: 18px !important;
  }
  .project-detail-container {
    padding: 70px 20px 40px 20px !important;
  }
  .project-title-large {
    font-size: 2rem !important;
  }
}

/* ======================================
   STANDALONE PAGES: WORKS, ABOUT, PROJECT DETAIL - FULL RESPONSIVE
   ====================================== */

/* Works page: ensure scroll and container on small screens */
@media (max-width: 900px) {
  .works-page-container {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto;
  }
}

@media (max-width: 767px) {
  .works-page-container {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .accordion-panel {
    min-height: 280px;
    height: 280px;
  }
  .panel-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .panel-title {
    font-size: 1.1em;
  }
}

@media (max-width: 479px) {
  .works-title-block {
    height: 72px;
    padding: 16px;
  }
  .works-title-block h1 {
    font-size: 1.6em;
  }
  .accordion-panel {
    min-height: 240px;
    height: 240px;
  }
}

@media (max-width: 360px) {
  .accordion-panel {
    min-height: 200px;
    height: 200px;
  }
}

/* About page: full responsive */
@media (max-width: 768px) {
  .page-container {
    padding: 90px 24px 50px !important;
  }
  .about-hero-caption-section {
    margin-bottom: 48px;
  }
  .about-hero-image-full img {
    margin-bottom: 24px;
  }
  .about-caption-text p {
    font-size: 0.85em;
  }
  .about-details-split {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    padding-top: 48px;
  }
  .details-image-col {
    order: 1;
  }
  .details-content-col {
    order: 2;
  }
  .image-wrapper-vertical {
    height: 45vh;
    min-height: 280px;
  }
  .big-section-title {
    font-size: 2.5em;
    margin-bottom: 32px;
    text-align: left;
  }
  .info-block {
    margin-bottom: 40px;
    padding-left: 20px;
  }
  .process-section-wrapper {
    margin-bottom: 80px;
  }
  .process-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .process-title-box {
    width: 100%;
    height: 56px;
    padding-left: 16px;
    justify-content: flex-start;
  }
  .process-desc {
    max-width: 100%;
    padding: 12px;
  }
  .contact-mini {
    flex-direction: column;
    gap: 32px;
    padding-top: 48px;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 80px 16px 40px !important;
  }
  .about-header-row .big-section-title {
    font-size: 2em;
  }
  .about-caption-text p {
    font-size: 0.8em;
  }
  .image-wrapper-vertical {
    height: 35vh;
    min-height: 220px;
  }
  .big-section-title {
    font-size: 2em;
  }
  .info-block p {
    font-size: 0.9em;
  }
  .process-title-box h3 {
    font-size: 0.9em;
  }
  .process-desc p {
    font-size: 0.85em;
  }
}

@media (max-width: 360px) {
  .page-container {
    padding: 72px 12px 32px !important;
  }
  .big-section-title {
    font-size: 1.75em;
  }
  .info-block {
    padding-left: 14px;
    margin-bottom: 28px;
  }
}

/* Project detail pages: full responsive */
@media (max-width: 768px) {
  .project-detail-container {
    padding: 88px 24px 40px 24px !important;
    flex-direction: column;
  }
  .project-sidebar-label {
    display: none !important;
  }
  .project-content-wrapper {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 0;
  }
  .project-header-row {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-bottom: 32px;
  }
  .project-title-large {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  }
  .project-meta-col {
    flex-wrap: wrap;
    gap: 24px;
  }
  .project-split-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .project-description-col {
    padding: 24px !important;
    font-size: 0.8em;
  }
  .project-visual-col {
    min-height: 280px;
  }
  .project-visual-col > img {
    width: 100%;
    height: auto;
    min-height: 240px;
    object-fit: cover;
  }
  .project-top-logo {
    top: 16px;
    left: 16px;
  }
  .project-top-logo span {
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .project-detail-container {
    padding: 80px 16px 32px 16px !important;
  }
  .project-title-large {
    font-size: 1.5rem !important;
  }
  .project-meta-col {
    gap: 16px;
  }
  .meta-item {
    min-width: 0;
  }
  .meta-value,
  .meta-label {
    font-size: 0.8em;
  }
  .project-description-col {
    padding: 18px !important;
    font-size: 0.75em;
  }
  .project-visual-col {
    min-height: 220px;
  }
  .back-nav {
    left: 16px;
    top: 80px;
  }
}

@media (max-width: 360px) {
  .project-detail-container {
    padding: 72px 12px 24px 12px !important;
  }
  .project-title-large {
    font-size: 1.35rem !important;
  }
  .project-description-col {
    padding: 14px !important;
  }
}

/* Category pages (Commercial, Residential, etc.): full responsive */
@media (max-width: 900px) {
  body:has(.commercial-page-container) {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    background-attachment: scroll;
  }
  .commercial-page-container {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto;
  }
  .left-sidebar {
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .title-block {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    bottom: auto !important;
    left: auto !important;
    padding: 24px;
    justify-content: center;
  }
  .title-block h1 {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 1.75em !important;
  }
  .right-grid {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-height: none !important;
    padding: 24px 20px 40px;
    align-items: stretch;
  }
  .right-grid > .project-link,
  .right-grid > .project-image {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 280px;
  }
  .right-grid > a.project-link {
    height: auto;
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .title-block h1 {
    font-size: 1.4em !important;
    letter-spacing: 4px;
  }
  .right-grid {
    padding: 16px 16px 32px;
    gap: 16px;
  }
  .right-grid > .project-link,
  .right-grid > .project-image {
    min-height: 220px;
  }
}

/* ======================================
   SITE-WIDE RESPONSIVE — grids, overflow, touch
   ====================================== */

.commercial-page-container,
.works-page-container {
  box-sizing: border-box;
  max-width: 100%;
}

/* Prevent fr tracks from overflowing grid; beats single-class rules in page <style> */
.project-detail-body .project-header-row {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.project-detail-body .project-split-layout {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.project-detail-body .project-header-row > *,
.project-detail-body .project-split-layout > * {
  min-width: 0;
}

/* Tablet only — below 901px, each page’s own @media rules set padding */
@media (max-width: 1024px) and (min-width: 901px) {
  .project-detail-body .project-detail-container {
    padding: 92px 32px 44px 48px;
  }

  .project-detail-body .project-content-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .back-nav a {
    min-height: 44px;
    padding: 10px 18px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}