/* ─────────────────────────────────────────────────────────────
   STEADY HARDSCAPING & LANDSCAPING — Core Design System
   Inspired by Humaan (playful details) & Sondaven (cinematic architecture)
   North Vancouver, BC · MMXXVI
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'custom_40538';
  font-weight: 400;
  font-style: normal;
  src: url("https://c-p.rmcdn.net/custom-fonts/font-1576fb79-8af8-4c78-af70-3504e94db2b0.woff") format('woff');
}

:root {
  /* Color Palette - Premium Craftsman */
  --khaki: #BFA785;
  --brown: #5E4E3A;
  --sage: #5E6F60;
  --stone: #4A4D4A;
  --greige: #D9D2C9;
  --off-white: #FAF7F2;
  --ink: #1F211F;
  --ink-light: #2F312F;
  --accent: #BFA785;
  /* Khaki as warm accent */

  /* Borders & Lines */
  --line: rgba(31, 33, 31, 0.15);
  --line-soft: rgba(31, 33, 31, 0.08);
  --line-light: rgba(250, 247, 242, 0.15);

  /* Utilities */
  --shadow: 0 20px 50px rgba(31, 33, 31, 0.12);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 4px;
}

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

html,
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--off-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
}

/* Subtle grain overlay sitewide */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1   0 0 0 0 0.1   0 0 0 0 0.1   0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.75;
  mix-blend-mode: overlay;
  z-index: 9999;
}

.font-mono {
  font-family: 'IBM Plex Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::selection {
  background: var(--ink);
  color: var(--khaki);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--stone);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brown);
}

/* ── HEADER & NAVIGATION ─────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.6rem 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
  pointer-events: none;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header.on-dark {
  color: var(--off-white);
  background: rgba(31, 33, 31, 0.4);
  border-bottom-color: var(--line-light);
}

.header.on-light {
  color: var(--ink);
  background: rgba(250, 247, 242, 0.4);
  border-bottom-color: var(--line-soft);
}

.header * {
  pointer-events: auto;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo {
  display: flex;
  align-items: center;
  height: 2.2rem;
}

.logo svg {
  height: 100%;
  width: auto;
  display: block;
  overflow: visible;
  fill: currentColor;
}

.logo .letter {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: letter-appear 0.6s var(--ease) forwards;
}

.logo .letter-hitbox {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}

.logo .letter:nth-child(1) {
  animation-delay: 0.00s;
}

.logo .letter:nth-child(2) {
  animation-delay: 0.08s;
}

.logo .letter:nth-child(3) {
  animation-delay: 0.16s;
}

.logo .letter:nth-child(4) {
  animation-delay: 0.24s;
}

.logo .letter:nth-child(5) {
  animation-delay: 0.32s;
}

.logo .letter:nth-child(6) {
  animation-delay: 0.40s;
}

@keyframes letter-appear {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.logo-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  padding-left: 2px;
}

/* glitchy 'S' */
@keyframes s-glitch {

  0%,
  6% {
    transform: translate(0, 0) rotate(0);
  }

  6.5% {
    transform: translate(-2px, 1px) rotate(-1deg);
  }

  7.5% {
    transform: translate(1px, -2px) rotate(0.5deg);
  }

  8% {
    transform: translate(0, 0) rotate(0);
  }

  22%,
  22.4% {
    transform: translate(0, 0);
  }

  22.7% {
    transform: translate(2px, 0.5px) rotate(0.4deg);
  }

  23.2% {
    transform: translate(0, 0);
  }

  51.6% {
    transform: translate(-3px, 2px) rotate(-1.5deg) scaleX(1.02);
  }

  52% {
    transform: translate(1.5px, -1px) rotate(0.8deg) scaleX(0.98);
  }

  52.4% {
    transform: translate(0, 0) scaleX(1);
  }

  100% {
    transform: translate(0, 0);
  }
}

.letter-s-glitch {
  transform-origin: center;
  animation:
    letter-appear 0.6s var(--ease) both,
    s-glitch 9s 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.6rem;
}

.nav-links a {
  position: relative;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.2rem 0;
}

.nav-links a:hover {
  opacity: 0.65;
  transform: translateY(-1px);
}

.nav-links a.active {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.nav-links a.active::before {
  content: '[';
  margin-right: 2px;
  opacity: 0.5;
}

.nav-links a.active::after {
  content: ']';
  margin-left: 2px;
  opacity: 0.5;
}

.header-right {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.contact-btn {
  border: 1px solid currentColor;
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  background: transparent;
  color: inherit;
  border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.contact-btn:hover {
  background: var(--ink);
  color: var(--off-white);
  border-color: var(--ink);
}

.header.on-dark .contact-btn:hover {
  background: var(--off-white);
  color: var(--ink);
  border-color: var(--off-white);
}

/* ── LAYOUT DECORATIONS ──────────────────────────────────── */
/* Corner architectural ticks (Sondaven style) */
.corner-tick {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--line);
  pointer-events: none;
  z-index: 3;
}

.on-dark .corner-tick {
  border-color: rgba(250, 247, 242, 0.25);
}

.corner-tick.tl {
  top: 2.4rem;
  left: 2.4rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-tick.tr {
  top: 2.4rem;
  right: 2.4rem;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-tick.bl {
  bottom: 2.4rem;
  left: 2.4rem;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-tick.br {
  bottom: 2.4rem;
  right: 2.4rem;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* Grid overlay helper */
.layout-grid {
  max-width: 1480px;
  margin: 0 auto;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

/* Eyebrow label */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.85;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

.on-dark .eyebrow {
  color: var(--greige);
}

/* Display headlines */
.display {
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0;
}

.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--khaki);
}

.display .stroke {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
}

/* Custom interactive pill button */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.pill:hover {
  background: var(--ink);
  color: var(--off-white);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.pill.on-dark:hover {
  background: var(--off-white);
  color: var(--ink);
  border-color: var(--off-white);
}

.pill .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.pill:hover .arrow {
  transform: translateX(4px);
}

/* ── STATUS BAR & GEOLOCATION ────────────────────────────── */
.status-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 2.4rem;
  display: flex;
  background: var(--ink);
  color: var(--off-white);
  padding: 0.5rem 1rem;
  gap: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  z-index: 90;
  border-radius: 2px;
  border: 1px solid rgba(250, 247, 242, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.status-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--khaki);
  align-self: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {

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

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.status-bar .label {
  color: #888;
}

.status-bar .value {
  color: var(--off-white);
}

.geo-stamp {
  position: fixed;
  bottom: 1.6rem;
  right: 2.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-align: right;
  z-index: 80;
  line-height: 1.6;
}

.geo-stamp .blink {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.5s infinite;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: width 0.18s, height 0.18s, background 0.18s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: width 0.25s, height 0.25s, border-color 0.25s, transform 0.08s linear;
}

.cursor-hover .cursor-dot {
  width: 0;
  height: 0;
}

.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--khaki);
}

@media (max-width: 900px) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ── TRANSITION REVEAL EFFECT ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

.reveal[data-delay="4"] {
  transition-delay: 0.4s;
}

/* ── SECTION CORE STRUCTURE ──────────────────────────────── */
.section {
  position: relative;
  padding: 8rem 2.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.section.on-dark {
  background-color: var(--ink);
  color: var(--off-white);
  border-bottom-color: var(--line-light);
}

.section.on-light {
  background-color: var(--off-white);
  color: var(--ink);
  border-bottom-color: var(--line-soft);
}

.section-pad {
  max-width: 1480px;
  margin: 0 auto;
}

/* ── SECTIONS & COMPONENTS STYLING ───────────────────────── */

/* 1. Landing Page / Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 780px;
  overflow: hidden;
  background: var(--off-white);
  color: var(--ink);
  display: flex;
  align-items: center;
}

/* Hero Background Columns */
/* Hero Background Columns */
.hero-bg-columns {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 50%;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
}

.hero-bg-col {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: visible;
  text-decoration: none;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-bg-col-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vh, 2.5rem) clamp(1rem, 2vw, 2rem);
  box-sizing: border-box;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dim non-hovered columns when container is hovered */
.hero-bg-columns:hover .hero-bg-col-inner {
  opacity: 0.6;
}

/* For non-hovered columns, fade out content and translate down to keep focus clean */
.hero-bg-columns:hover .hero-bg-col:not(:hover) .col-title-wrap,
.hero-bg-columns:hover .hero-bg-col:not(:hover) .col-explore {
  opacity: 0;
  transform: translateY(8px);
}

/* Expand hovered column and morph to square */
.hero-bg-col:hover {
  flex: 0 0 min(50vh, 80vw);
}

.hero-bg-col:hover .hero-bg-col-inner {
  height: min(50vh, 80vw);
  /* Perfect square equal to its width */
  border-radius: 12px;
  opacity: 1 !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Column Typography & Layout */
.col-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.col-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  opacity: 0.55;
  letter-spacing: 0.1em;
}

.col-title {
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  word-break: break-word;
  hyphens: auto;
}

.col-explore {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.6;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-bg-col:hover .col-explore {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-bg-col[data-col="1"] .hero-bg-col-inner,
.hero-bg-col[data-col="2"] .hero-bg-col-inner,
.hero-bg-col[data-col="3"] .hero-bg-col-inner,
.hero-bg-col[data-col="4"] .hero-bg-col-inner {
  color: var(--ink);
}

.hero-bg-col[data-col="5"] .hero-bg-col-inner {
  color: var(--off-white);
}

/* Hero Scrollable Canvas Viewport */
.hero-canvas-viewport {
  position: absolute;
  top: var(--canvas-shift, 0px);
  left: 0;
  width: 100%;
  height: calc(50% - var(--canvas-shift, 0px));
  overflow-x: auto;
  overflow-y: hidden;
  pointer-events: auto;
  z-index: 5;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  background-image: radial-gradient(rgba(31, 33, 31, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--off-white);
  transition: background-color 0.4s var(--ease),
    top 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-canvas-viewport::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

/* Grab to scroll cursor states */
.hero-canvas-viewport {
  cursor: grab;
}

.hero-canvas-viewport:active {
  cursor: grabbing;
}

.hero-canvas-track {
  display: flex;
  height: 100%;
  width: max-content;
  align-items: center;
  will-change: transform;
}

.hero-canvas-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 2.4rem clamp(2rem, 5vw, 6rem);
  box-sizing: border-box;
  border-right: 1px solid var(--line-soft);
  position: relative;
}

.hero-canvas-panel:last-child {
  border-right: none;
}

/* Panel Widths */
.panel-details {
  width: 100vw;
  flex-shrink: 0;
}

.panel-title {
  width: 100vw;
  flex-shrink: 0;
  align-items: center;
  text-align: center;
}

.panel-welcome {
  width: 100vw;
  flex-shrink: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.welcome-col {
  position: relative;
  height: 100%;
  border-right: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--off-white);
  transition: background-color 0.4s var(--ease);
}

.welcome-col:last-child {
  border-right: none;
}

.welcome-col .col-index {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.1em;
  color: var(--ink);
  transition: opacity 0.3s, color 0.3s;
  pointer-events: none;
}

.welcome-col:hover .col-index {
  opacity: 0.8;
}

.welcome-letter {
  font-family: 'custom_40538', sans-serif;
  line-height: 1;
  color: rgba(1, 1, 1, 1);
  transition: transform 0.1s ease-out, color 0.4s var(--ease);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1200px) {
  .welcome-letter {
    font-size: clamp(80px, 15vw, 200px) !important;
    letter-spacing: -6px !important;
  }
}

@media (max-width: 600px) {
  .welcome-letter {
    font-size: clamp(50px, 12vw, 100px) !important;
    letter-spacing: -3px !important;
  }
}

.welcome-instructions {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 10;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s;
  color: var(--ink);
}

.welcome-instructions-text {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.welcome-instructions-arrow {
  width: 14px;
  height: 14px;
  color: var(--ink);
  animation: welcome-arrow-bounce 1.5s infinite var(--ease);
}

@keyframes welcome-arrow-bounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-4px);
  }
}

/* Custom Cursor welcome hover reactions */
.cursor-welcome-hover .cursor-ring {
  border-radius: 0 !important;
  width: 48px;
  height: 48px;
  border-color: var(--ink);
}

.cursor-welcome-hover .cursor-dot {
  width: 0;
  height: 0;
  background: transparent;
}

/* Gallery Panel (Square cards) */
.panel-gallery {
  width: calc(min(50vh, 80vw) + 32px);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-right: 1px solid var(--line-soft);
  box-sizing: border-box;
}

.gallery-inner {
  position: relative;
  width: min(50vh - var(--canvas-shift, 0px), 80vw);
  height: min(50vh - var(--canvas-shift, 0px), 80vw);
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  z-index: 1;
}

.gallery-inner:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-info {
  position: relative;
  width: 100%;
  padding: clamp(1.2rem, 3vh, 2.5rem) clamp(1rem, 2vw, 2rem);
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(31, 33, 31, 0.85) 0%, rgba(31, 33, 31, 0) 100%);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.gallery-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  color: var(--khaki);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-title {
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Panel Details specific content styling */
.panel-details-inner {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
}

.panel-tag {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--khaki);
  font-weight: 600;
}

.panel-geo {
  display: flex;
  gap: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  opacity: 0.8;
}

.panel-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 48ch;
}

.panel-blueprint {
  width: 100%;
  max-width: 320px;
  margin-top: 0.5rem;
  color: var(--stone);
  opacity: 0.65;
  transition: opacity 0.3s;
}

.panel-blueprint:hover {
  opacity: 0.9;
}

/* Panel Welcome specific content styling */
.panel-welcome-inner {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0 auto;
}

.welcome-num {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--stone);
  opacity: 0.7;
}

.welcome-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.welcome-sub {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--stone);
  opacity: 0.8;
}

/* Scroll Left Floating Indicator */
.hero-scroll-indicator {
  position: absolute;
  left: clamp(2rem, 5vw, 6rem);
  top: 25%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.indicator-text {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--khaki);
  font-weight: 600;
}

.indicator-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--khaki);
  border-radius: 50%;
  animation: arrow-bounce-left 1.5s infinite var(--ease);
}

.indicator-arrow {
  width: 16px;
  height: 16px;
  color: var(--khaki);
}

@keyframes arrow-bounce-left {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-5px);
  }
}

@media (max-width: 768px) {
  .hero-canvas-panel {
    padding: 1.5rem;
  }

  .panel-details-inner,
  .panel-welcome-inner {
    max-width: 100%;
  }

  .welcome-heading {
    font-size: 1.8rem;
  }

  .hero-scroll-indicator {
    left: 1.5rem;
  }
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}

.hero-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 1.2rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .col-title {
    font-size: 0.8rem;
  }

  .col-num {
    font-size: 0.6rem;
  }

  .col-explore {
    display: none;
    /* Hide explore text inside square on mobile to prevent overflow */
  }

  .hero-bg-col-inner {
    padding: 0.8rem 0.5rem;
  }
}

/* Custom Cursor Column Hover Reactions: Morph to a Perfect Square */
.hover-col-1 .cursor-dot,
.hover-col-1 .cursor-ring {
  mix-blend-mode: normal;
  border-radius: 0 !important;
}

.hover-col-1 .cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
}

.hover-col-1 .cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
}

/* Column 4 (Excavation) and excavator hover zones turn into a small excavator */
.hover-col-4 .cursor-ring,
.cursor-excavator-hover .cursor-ring {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231F211F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 20v-5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v5'/%3E%3Crect x='17' y='14' width='4' height='4' rx='0.5'/%3E%3Crect x='12' y='20' width='16' height='4' rx='2'/%3E%3Ccircle cx='16' cy='22' r='0.8' fill='%231F211F'/%3E%3Ccircle cx='20' cy='22' r='0.8' fill='%231F211F'/%3E%3Ccircle cx='24' cy='22' r='0.8' fill='%231F211F'/%3E%3Cpath d='M14 14 C 11 9, 9 7, 6 7' stroke-width='2.5'/%3E%3Cpath d='M6 7 C 4 9, 2 11, 2 14' stroke-width='2'/%3E%3Cpath d='M2 14 C 1 17, 4 18, 5 15' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: normal;
  transition: width 0.25s, height 0.25s, transform 0.08s linear;
}

.hover-col-4 .cursor-dot,
.cursor-excavator-hover .cursor-dot {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}

/* Column 5 (Maintenance) and maintenance hover zones turn into shears */
.hover-col-5 .cursor-ring,
.cursor-maintenance-hover .cursor-ring {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231F211F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%231F211F'/%3E%3Cpath d='M16 16L25 5c.5 1.5 0 4.5-9 11zM16 16L7 5c-.5 1.5 0 4.5 9 11zM16 16l-3.5 7.5'/%3E%3Ccircle cx='11' cy='26' r='3'/%3E%3Cpath d='M16 16l3.5 7.5'/%3E%3Ccircle cx='21' cy='26' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: normal;
  transition: width 0.25s, height 0.25s, transform 0.08s linear;
}

.hover-col-5 .cursor-dot,
.cursor-maintenance-hover .cursor-dot {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}

/* On dark backgrounds, use white stroke for the shears */
.hover-col-5 .cursor-ring,
.cursor-maintenance-hover-dark .cursor-ring {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23FAF7F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%23FAF7F2'/%3E%3Cpath d='M16 16L25 5c.5 1.5 0 4.5-9 11zM16 16L7 5c-.5 1.5 0 4.5 9 11zM16 16l-3.5 7.5'/%3E%3Ccircle cx='11' cy='26' r='3'/%3E%3Cpath d='M16 16l3.5 7.5'/%3E%3Ccircle cx='21' cy='26' r='3'/%3E%3C/svg%3E");
}

/* On dark backgrounds, use white stroke for the excavator */
.cursor-excavator-hover-dark .cursor-ring {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23FAF7F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 20v-5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v5'/%3E%3Crect x='17' y='14' width='4' height='4' rx='0.5'/%3E%3Crect x='12' y='20' width='16' height='4' rx='2'/%3E%3Ccircle cx='16' cy='22' r='0.8' fill='%23FAF7F2'/%3E%3Ccircle cx='20' cy='22' r='0.8' fill='%23FAF7F2'/%3E%3Ccircle cx='24' cy='22' r='0.8' fill='%23FAF7F2'/%3E%3Cpath d='M14 14 C 11 9, 9 7, 6 7' stroke-width='2.5'/%3E%3Cpath d='M6 7 C 4 9, 2 11, 2 14' stroke-width='2'/%3E%3Cpath d='M2 14 C 1 17, 4 18, 5 15' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Column 3 (Outdoor Living) and outdoor living hover zones turn into a small sitting person */
.hover-col-3 .cursor-ring,
.cursor-outdoor-living-hover .cursor-ring {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231F211F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21h6M7 21v6M11 21v6'/%3E%3Ccircle cx='11' cy='9' r='3'/%3E%3Cpath d='M11 12c-2 2-3 5-3 9h5v6'/%3E%3Cpath d='M11 14c2 0 4 1 6 3'/%3E%3Cpath d='M17 17h11M22 17l-4 10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: normal;
  transition: width 0.25s, height 0.25s, transform 0.08s linear;
}

.hover-col-3 .cursor-dot,
.cursor-outdoor-living-hover .cursor-dot {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}

/* On dark backgrounds, use white stroke for the sitting person */
.cursor-outdoor-living-hover-dark .cursor-ring {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23FAF7F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21h6M7 21v6M11 21v6'/%3E%3Ccircle cx='11' cy='9' r='3'/%3E%3Cpath d='M11 12c-2 2-3 5-3 9h5v6'/%3E%3Cpath d='M11 14c2 0 4 1 6 3'/%3E%3Cpath d='M17 17h11M22 17l-4 10'/%3E%3C/svg%3E");
}

/* Column 2 (Landscaping) and landscaping hover zones turn into a stylized tree */
.hover-col-2 .cursor-ring,
.cursor-landscaping-hover .cursor-ring {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231F211F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12c0-6 9-6 9-2'/%3E%3Cpath d='M11 10c0-6 10-6 10-2'/%3E%3Cpath d='M21 10c0-6 9-6 9 2'/%3E%3Cpath d='M2 12c0 6 9 6 9 2'/%3E%3Cpath d='M30 12c0 6-9 6-9 2'/%3E%3Cpath d='M5 2.5v3'/%3E%3Cpath d='M8 2.5v3'/%3E%3Cpath d='M14 2.5v3'/%3E%3Cpath d='M17 2.5v3'/%3E%3Cpath d='M24 2.5v3'/%3E%3Cpath d='M27 2.5v3'/%3E%3Cpath d='M11 14v12c0 3-3 4-9 4'/%3E%3Cpath d='M21 14v12c0 3 3 4 9 4'/%3E%3Cpath d='M8 18h6'/%3E%3Cpath d='M11 16v4'/%3E%3Cpath d='M14 13v3'/%3E%3Cpath d='M18 13v3'/%3E%3Cpath d='M14 21c0 3.5 4 3.5 4 0'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: normal;
  transition: width 0.25s, height 0.25s, transform 0.08s linear;
}

.hover-col-2 .cursor-dot,
.cursor-landscaping-hover .cursor-dot {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}

/* On dark backgrounds, use white stroke for the tree */
.cursor-landscaping-hover-dark .cursor-ring {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23FAF7F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12c0-6 9-6 9-2'/%3E%3Cpath d='M11 10c0-6 10-6 10-2'/%3E%3Cpath d='M21 10c0-6 9-6 9 2'/%3E%3Cpath d='M2 12c0 6 9 6 9 2'/%3E%3Cpath d='M30 12c0 6-9 6-9 2'/%3E%3Cpath d='M5 2.5v3'/%3E%3Cpath d='M8 2.5v3'/%3E%3Cpath d='M14 2.5v3'/%3E%3Cpath d='M17 2.5v3'/%3E%3Cpath d='M24 2.5v3'/%3E%3Cpath d='M27 2.5v3'/%3E%3Cpath d='M11 14v12c0 3-3 4-9 4'/%3E%3Cpath d='M21 14v12c0 3 3 4 9 4'/%3E%3Cpath d='M8 18h6'/%3E%3Cpath d='M11 16v4'/%3E%3Cpath d='M14 13v3'/%3E%3Cpath d='M18 13v3'/%3E%3Cpath d='M14 21c0 3.5 4 3.5 4 0'/%3E%3C/svg%3E");
}

/* ── 3D NEIGHBORHOOD BOARD STYLING ───────────────────────── */
.hero-board-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
}

.hero-board-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  perspective: 1400px;
  perspective-origin: 50% 30%;
  transform-style: preserve-3d;
}

.neighborhood-board {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-30deg);
  transition: transform 0.15s ease-out;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  background: rgba(31, 33, 31, 0.55);
  border: 1px solid rgba(191, 167, 133, 0.25);
  border-radius: 6px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.lot {
  position: relative;
  transform-style: preserve-3d;
  height: 100%;
  width: 100%;
  cursor: pointer;
  translate: 0px;
  rotate: 0deg;
  scale: 1;
}

.lot-base {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(250, 247, 242, 0.12);
  border-radius: 4px;
  pointer-events: none;
  transform: translateZ(0);
}

.lot.active-work .lot-base {
  border-color: rgba(191, 167, 133, 0.35);
  border-style: solid;
}

.lot-shadow {
  position: absolute;
  inset: 4px;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(5px);
  border-radius: 4px;
  transform: translateZ(0);
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.lot:hover .lot-shadow,
.lot.active-hover .lot-shadow {
  opacity: 0.18;
  filter: blur(10px);
  transform: scale(0.9) translateZ(0);
}

.lot-prism {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.lot:hover .lot-prism,
.lot.active-hover .lot-prism {
  transform: translateZ(26px);
}

.lot-prism .face {
  position: absolute;
  backface-visibility: hidden;
}

.lot-prism .face.top {
  inset: 0;
  transform: translateZ(var(--lot-h));
  background: var(--top-bg, #363936);
  border: 1px solid rgba(250, 247, 242, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  border-radius: 2px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lot.active-work .lot-prism .face.top {
  border-color: rgba(191, 167, 133, 0.28);
  box-shadow: inset 0 0 6px rgba(191, 167, 133, 0.12);
}

.lot:hover.active-work .lot-prism .face.top,
.lot.active-hover.active-work .lot-prism .face.top {
  border-color: var(--khaki);
  box-shadow: inset 0 0 10px rgba(191, 167, 133, 0.25);
}

.lot-prism .face.front {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--lot-h);
  transform-origin: bottom;
  transform: rotateX(-90deg);
  background: var(--front-bg, #242624);
  border-left: 1px solid rgba(250, 247, 242, 0.04);
  border-right: 1px solid rgba(250, 247, 242, 0.04);
}

.lot-prism .face.side {
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--lot-h);
  transform-origin: right;
  transform: rotateY(90deg);
  background: var(--side-bg, #1c1e1c);
  border-top: 1px solid rgba(250, 247, 242, 0.04);
  border-bottom: 1px solid rgba(250, 247, 242, 0.04);
}

/* Tooltip Styles (3D Counter-Rotation) */
.lot-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 230px;
  padding: 1.1rem;
  background: rgba(31, 33, 31, 0.96);
  border: 1px solid var(--khaki);
  border-radius: 4px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.55);
  color: var(--off-white);
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  transform: translate(-50%, -10px) translateZ(calc(var(--lot-h) + 12px)) rotateZ(30deg) rotateX(-55deg) scale(0.8);
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
  backdrop-filter: blur(8px);
}

.lot:hover .lot-tooltip,
.lot.active-hover .lot-tooltip {
  opacity: 1;
  transform: translate(-50%, -10px) translateZ(calc(var(--lot-h) + 12px)) rotateZ(30deg) rotateX(-55deg) scale(1);
}

.lot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--khaki) transparent transparent transparent;
}

.tooltip-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
  color: var(--off-white);
}

.tooltip-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(191, 167, 133, 0.15);
  color: var(--khaki);
  padding: 1px 5px;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.lot.active-work .tooltip-tag {
  background: rgba(94, 111, 96, 0.2);
  color: #a4bfa6;
  border: 1px solid rgba(94, 111, 96, 0.35);
}

.tooltip-desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(250, 247, 242, 0.75);
}

/* Interior Top Face Detail styling */
.lot-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  color: rgba(250, 247, 242, 0.3);
  text-transform: uppercase;
}

.lot.active-work .lot-label {
  color: var(--khaki);
  opacity: 0.85;
}

.lot-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  align-self: flex-end;
  color: rgba(250, 247, 242, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lot.active-work .lot-badge {
  color: var(--off-white);
  opacity: 0.9;
}

.lot-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.15);
  position: absolute;
  top: 6px;
  right: 6px;
}

.lot.active-work .lot-dot {
  background: var(--khaki);
  box-shadow: 0 0 8px var(--khaki);
  animation: pulse 2s infinite;
}

/* Responsive Scaling for Mobile Stack */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 8rem 0 6rem;
    display: block;
  }

  .hero-inner {
    padding: 0 1.6rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 8vw, 4.5rem);
    text-align: center;
  }

  .hero-foot {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-bg-col-content {
    bottom: 2rem;
  }

  .hero-meta {
    display: none;
    /* Hide vertical meta on mobile */
  }
}

/* 2. Services Grid Layout */
.services-section {
  background-color: var(--greige);
  padding: 8rem 2.4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.6rem;
  max-width: 1480px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s;
  box-shadow: 0 4px 20px rgba(31, 33, 31, 0.02);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  cursor: pointer;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: 1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  color: var(--off-white);
}

.service-card:hover::after {
  transform: scaleY(1);
}

.service-card>* {
  position: relative;
  z-index: 3;
}

.service-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.service-card .ttl {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

.service-card .desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.75;
  margin-top: 1rem;
}

.service-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.service-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  opacity: 0.7;
}

.service-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
}

.service-card:hover .foot {
  border-top-color: rgba(250, 247, 242, 0.15);
}

.service-card .foot .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card .foot .arr {
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}

.service-card:hover .foot .arr {
  transform: translateX(6px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   PROJECTS CATALOG (Horizontal Interactive Section)
   ───────────────────────────────────────────────────────────── */
.catalog-section {
  background-color: var(--off-white);
  padding: 8rem 2.4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
}

.catalog-header h3 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 0.5rem;
}

.catalog-instructions {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--stone);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.catalog-instructions::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--khaki);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.catalog-outer-wrap {
  margin: 0 -2.4rem;
  padding: 0 2.4rem;
  overflow: hidden;
}

.catalog-track {
  display: flex;
  gap: 2.5rem;
  padding: 2rem 0;
  overflow-x: auto;
  scroll-behavior: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
}

.catalog-track::-webkit-scrollbar {
  display: none;
}

.catalog-track:active {
  cursor: grabbing;
}

.catalog-card {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 30px rgba(31, 33, 31, 0.02);
}

.catalog-card:hover {
  transform: translateY(-8px);
  border-color: var(--khaki);
  box-shadow: var(--shadow);
}

.catalog-img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background-color: var(--greige);
}

.catalog-img {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  transform: scale(1.1) translateX(var(--parallax-x, 0px));
  will-change: transform;
  pointer-events: none;
}

.catalog-card:hover .catalog-img {
  transform: scale(1.18) translateX(var(--parallax-x, 0px));
}

.catalog-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.catalog-num {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--khaki);
  font-weight: 600;
}

.catalog-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.catalog-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--stone);
  opacity: 0.85;
}

.catalog-scroll-bar {
  width: 100%;
  height: 2px;
  background: var(--line-soft);
  margin-top: 3.5rem;
  position: relative;
  border-radius: 99px;
  cursor: pointer;
}

.catalog-scroll-progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 4px;
  width: 10%;
  background: var(--ink);
  border-radius: 99px;
  transition: width 0.05s ease-out, left 0.05s ease-out;
}

.catalog-scroll-bar:hover .catalog-scroll-progress {
  background: var(--khaki);
}

@media (max-width: 768px) {
  .catalog-card {
    flex: 0 0 320px;
  }

  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* 3. Pricing & Subscription Plans */
.pricing-section {
  background-color: var(--off-white);
  padding: 8rem 2.4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.price-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.price-card:hover {
  border-color: var(--brown);
  box-shadow: var(--shadow);
}

.price-card.featured {
  background: var(--ink);
  color: var(--off-white);
  border-color: transparent;
}

.price-card .badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--khaki);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
}

.price-card h4 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-card .desc {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.price-card .price {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 2rem 0;
  letter-spacing: -0.03em;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0;
}

.price-card .features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 2rem;
}

.price-card.featured .features {
  border-top-color: rgba(250, 247, 242, 0.15);
}

.price-card .features li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.price-card .features li::before {
  content: '✓';
  color: var(--khaki);
  font-weight: 800;
}

/* 4. Interactive Multi-Step Booking Form */
.booking-container {
  max-width: 840px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.booking-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--khaki);
}

.step-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.step-progress .bar {
  flex: 1;
  height: 4px;
  background: rgba(31, 33, 31, 0.08);
  border-radius: 2px;
  transition: background 0.4s var(--ease);
}

.step-progress .bar.active {
  background: var(--khaki);
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.form-subtitle {
  font-size: 1rem;
  color: var(--stone);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 1.8rem;
}

.input-group label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: var(--khaki);
  background: #fff;
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}

/* Service option card selectors */
.service-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-option-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.service-option-card:hover {
  border-color: var(--khaki);
  transform: translateY(-2px);
}

.service-option-card.selected {
  border-color: var(--khaki);
  background: rgba(191, 167, 133, 0.1);
}

.service-option-card .icon {
  font-size: 2.2rem;
  color: var(--brown);
}

.service-option-card h5 {
  font-size: 1rem;
  font-weight: 700;
}

.service-option-card p {
  font-size: 0.74rem;
  color: var(--stone);
  line-height: 1.4;
}

/* 5. Client Portal / Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1480px;
  margin: 0 auto;
}

.dashboard-panel {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(31, 33, 31, 0.01);
}

.dashboard-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.visit-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.calendar-day-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--stone);
  font-weight: 600;
  padding-bottom: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 0.4rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--off-white);
  transition: transform 0.2s;
}

.calendar-day.other-month {
  opacity: 0.35;
}

.calendar-day.scheduled {
  background: var(--khaki);
  color: var(--ink);
  font-weight: 700;
  border-color: var(--khaki);
}

.calendar-day.scheduled::after {
  content: '•';
  font-size: 0.8rem;
  align-self: center;
}

.calendar-day.completed {
  background: var(--sage);
  color: var(--off-white);
  border-color: var(--sage);
}

.calendar-day.today {
  border: 2px solid var(--brown);
}

.history-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.history-item:last-child {
  border-bottom: none;
}

.history-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.history-item .details h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.history-item .details .date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.history-item .details p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* Crew info layout */
.crew-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  background: var(--off-white);
  padding: 1rem;
  border-radius: var(--radius);
}

.crew-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--khaki);
}

.crew-details h6 {
  font-size: 0.9rem;
  font-weight: 700;
}

.crew-details p {
  font-size: 0.75rem;
  color: var(--stone);
}

/* 6. About Page - Service Map & Layouts */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  max-width: 1480px;
  margin: 0 auto;
}

.map-container {
  position: relative;
  background: var(--greige);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.map-overlay-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(31, 33, 31, 0.9);
  color: var(--off-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 247, 242, 0.1);
}

.map-overlay-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--khaki);
  margin-bottom: 0.4rem;
}

.map-overlay-card p {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.8;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.steady-footer {
  position: relative;
  background: var(--ink);
  color: var(--off-white);
  padding: 8rem 2.4rem 3rem;
  overflow: hidden;
}

.steady-footer .display {
  color: var(--off-white);
}

.steady-footer .stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--off-white);
}

.steady-footer .footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  font-size: 0.9rem;
}

.steady-footer h6 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--greige);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.steady-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.steady-footer a {
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.steady-footer a:hover {
  opacity: 1;
  color: var(--khaki);
}

.steady-footer .legal {
  margin-top: 5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.5);
}

/* ── RESPONSIVE ADAPTABILITY ─────────────────────────────── */
@media (max-width: 1024px) {

  .dashboard-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .header {
    padding: 1.2rem 1.6rem;
  }

  .section {
    padding: 6rem 1.6rem;
  }

  .nav-links {
    display: none;
  }

  .status-bar {
    left: 1.6rem;
    bottom: 1.5rem;
    font-size: 0.65rem;
  }

  .geo-stamp {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-column: span 12 !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .booking-container {
    padding: 2rem;
  }

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

/* ── SUB-SERVICES ROW EXPANSION (ALL COLUMNS) ───────────────── */
.hero-bg-col[data-col="1"] .hero-bg-col-inner,
.hero-bg-col[data-col="2"] .hero-bg-col-inner,
.hero-bg-col[data-col="3"] .hero-bg-col-inner,
.hero-bg-col[data-col="4"] .hero-bg-col-inner,
.hero-bg-col[data-col="5"] .hero-bg-col-inner {
  padding: 0 !important;
  overflow: hidden !important;
}

/* Default view (when collapsed or hovered before transition) */
.col-default-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vh, 2.5rem) clamp(1rem, 2vw, 2rem);
  box-sizing: border-box;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  z-index: 2;
  pointer-events: auto;
}

.hero-bg-col:hover .col-default-view {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

/* Sub-services list (stacked vertically as rows) */
.col-sub-services-list {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero-bg-col:hover .col-sub-services-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 3;
}

/* Individual rows */
.sub-service-row {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1.2rem, 2.5vw, 2.5rem);
  text-decoration: none;
  transition: flex 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Colors and text styles for the rows */
.sub-service-row:nth-child(1) {
  background-color: #F3E08A;
  color: var(--ink);
}

.sub-service-row:nth-child(2) {
  background-color: #6FB87C;
  color: var(--ink);
}

.sub-service-row:nth-child(3) {
  background-color: #88E297;
  color: var(--ink);
}

.sub-service-row:nth-child(4) {
  background-color: #BBAE8C;
  color: var(--ink);
}

.sub-service-row:nth-child(5) {
  background-color: #578384;
  color: var(--off-white);
}

.sub-service-row:nth-child(6) {
  background-color: #5E4E3A;
  color: var(--off-white);
}

.sub-service-row:nth-child(7) {
  background-color: #363936;
  color: var(--off-white);
}

.sub-service-row:nth-child(8) {
  background-color: #bfb5a2;
  color: var(--ink);
}

/* Dim unhovered rows when the list is hovered */
.col-sub-services-list:hover .sub-service-row {
  opacity: 0.6;
}

/* Expand the hovered row */
.col-sub-services-list .sub-service-row:hover {
  flex: 2.2;
  opacity: 1;
}

/* Sub-service inner elements */
.sub-service-content {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
}

.sub-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.68rem, 1.2vw, 0.85rem);
  opacity: 0.65;
}

.sub-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sub-arrow {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.sub-service-row:hover .sub-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Custom Square Cursor Hover State on Sub-services */
.cursor-sub-service-hover .cursor-ring {
  width: 48px !important;
  height: 48px !important;
  border-width: 2px !important;
  border-color: var(--ink) !important;
}

.cursor-sub-service-hover .cursor-dot {
  width: 4px !important;
  height: 4px !important;
  background: var(--ink) !important;
}

/* Invert cursor to white when hovering dark rows */
.cursor-sub-service-hover-dark .cursor-ring {
  border-color: var(--off-white) !important;
}

.cursor-sub-service-hover-dark .cursor-dot {
  background: var(--off-white) !important;
}

@media (max-width: 768px) {
  .sub-service-row {
    padding: 0 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE RESPONSIVENESS OVERRIDES & IMPROVEMENTS
   ───────────────────────────────────────────────────────────── */

/* Mobile Hamburger Button Styles */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 99px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}

/* Hamburger transition to 'X' when open */
.mobile-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 33, 31, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 2rem;
}

.mobile-nav-links a {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--off-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu-overlay.is-open .mobile-nav-links a {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger transition delays for menu links */
.mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(1) { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s, opacity 0.4s ease 0.1s; }
.mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(2) { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s, opacity 0.4s ease 0.15s; }
.mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(3) { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s, opacity 0.4s ease 0.2s; }
.mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(4) { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s, opacity 0.4s ease 0.25s; }
.mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(5) { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s, opacity 0.4s ease 0.3s; }
.mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(6) { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s, opacity 0.4s ease 0.35s; }

.mobile-nav-links a:hover {
  color: var(--khaki);
  transform: scale(1.05);
}

.mobile-nav-links a.active {
  color: var(--khaki);
}

.mobile-nav-links a.active::before {
  content: '[';
  margin-right: 6px;
  opacity: 0.5;
}

.mobile-nav-links a.active::after {
  content: ']';
  margin-left: 6px;
  opacity: 0.5;
}

/* Prevent body scrolling when mobile menu is active */
body.mobile-menu-active {
  overflow: hidden;
}

/* Media query to expose hamburger and handle responsive overrides */
@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: flex;
    margin-top: 0.6rem;
  }
}

/* ── Hero Layout Restructuring (Mobile size <= 768px) ────── */
@media (max-width: 768px) {
  .hero {
    height: auto !important;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    padding-top: 80px !important; /* Offset for fixed header */
    padding-bottom: 0 !important;
  }

  .hero-canvas-viewport {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 52vh !important; /* 52% of viewport height for canvas */
    flex-shrink: 0 !important;
    border-bottom: 1px solid var(--line-soft) !important;
  }

  .hero-bg-columns {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border-top: none !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
  }

  .hero-bg-col {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 80px !important;
    border-bottom: 1px solid var(--line-soft) !important;
    border-right: none !important;
    transition: background-color 0.4s var(--ease) !important;
  }

  .hero-bg-col:last-child {
    border-bottom: none !important;
  }

  .hero-bg-col-inner {
    position: relative !important;
    height: auto !important;
    min-height: 80px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    transition: min-height 0.4s var(--ease) !important;
  }

  /* Default collapsed state for rows on mobile */
  .col-default-view {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.2rem 1.6rem !important;
    width: 100% !important;
    height: 80px !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .col-title-wrap {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.8rem !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .col-title {
    font-size: 1.25rem !important;
  }

  .col-icon-wrap {
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    opacity: 0.8 !important;
  }

  .col-icon-wrap svg {
    width: 100% !important;
    height: 100% !important;
  }

  /* Redefine 'Explore' on mobile as a plus/minus rotate toggle indicator */
  .col-explore {
    display: block !important;
    font-size: 0.9rem !important;
    opacity: 0.6 !important;
    margin: 0 !important;
    transition: transform 0.4s var(--ease) !important;
    transform-origin: center !important;
  }
  
  .col-explore::before {
    content: '+';
    font-weight: bold;
  }

  .col-explore {
    font-size: 1.2rem !important;
    font-family: inherit !important;
  }

  /* Sub-services list accordion on mobile */
  .col-sub-services-list {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 0;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    transition: height 0.4s var(--ease), opacity 0.4s var(--ease) !important;
    background: rgba(31, 33, 31, 0.03) !important;
  }

  /* Expanded accordion overrides */
  .hero-bg-col.is-active .col-sub-services-list {
    opacity: 1 !important;
    pointer-events: auto !important;
    border-top: 1px solid rgba(31, 33, 31, 0.08) !important;
  }

  .hero-bg-col.is-active .col-explore {
    transform: rotate(45deg) !important; /* turns '+' into 'x' */
  }

  .sub-service-row {
    flex: none !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1.6rem !important;
    border-bottom: 1px solid rgba(31, 33, 31, 0.06) !important;
    width: 100% !important;
  }

  .sub-service-row:last-child {
    border-bottom: none !important;
  }

  .sub-service-row:hover {
    flex: none !important;
  }

  .sub-title {
    font-size: 1rem !important;
  }

  .sub-arrow {
    opacity: 0.6 !important;
    transform: none !important;
  }

  /* Adjust instructions text positioning */
  .welcome-instructions {
    bottom: 1rem !important;
  }
}

/* ── Content Grid Responsiveness (Ethos & Testimonials) ──── */
.ethos-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.ethos-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 900px) {
  .ethos-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ethos-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

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

/* ── Dashboard & Calendar Mobile Tweeks ──────────────────── */
@media (max-width: 600px) {
  .visit-calendar {
    gap: 0.25rem !important;
  }

  .calendar-day {
    padding: 0.25rem 0.15rem !important;
    font-size: 0.72rem !important;
  }

  .history-item {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .history-item img {
    width: 100% !important;
    height: 160px !important;
  }

  /* Hide status bar on small viewports */
  .status-bar {
    display: none !important;
  }
}