/* =========================================================
   OROBRICK — premium interior remodeling
   Palette: warm neutrals · charcoal · soft gold · wood
   Type:    Fraunces (serif display) + Inter (sans body)
   ========================================================= */

:root {
  /* Surface tones */
  --bg:         #f3ede2;
  --bg-warm:    #ebe2d2;
  --bg-cream:   #f8f3ea;
  --bg-deep:    #1f1c1a;
  --bg-shadow:  #16140f;

  /* Ink */
  --ink:        #1f1c1a;
  --ink-soft:   #4a423b;
  --ink-mute:   #877a6a;
  --ink-line:   rgba(31, 28, 26, 0.12);

  /* Accents */
  --gold:       #b8956a;
  --gold-deep:  #8c6c44;
  --wood:       #a08060;
  --wood-deep:  #6b4f3a;
  --cream:      #f4ede0;
  --shadow-soft: 0 30px 80px -30px rgba(31, 28, 26, 0.25);
  --shadow-card: 0 1px 0 rgba(31,28,26,0.04), 0 24px 48px -24px rgba(31,28,26,0.18);

  /* Type */
  --f-display: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container:  1320px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(5rem, 10vw, 9rem);

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 90px; /* keep nav from covering anchor target */
  -webkit-text-size-adjust: 100%;
  background: var(--bg-deep);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Fluid WebGL background — sits behind every section.
   Dark sections render transparently so this shows through;
   cream sections stay opaque for text readability. */
.bg-fluid {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  display: block;
  opacity: 0; /* Hidden from view, but still renders for pageLiquid to use as texture */
}
body { background: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) so body doesn't become a scroll container
     which would break programmatic scrollTo */
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ----- Typography ----- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: currentColor; opacity: 0.5;
}
.eyebrow-light { color: rgba(244, 237, 224, 0.7); }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-sub {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.7;
}
.section-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 880px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all .35s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg-cream);
}
.btn-primary:hover {
  background: var(--gold-deep);
  color: #fff;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink-line);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(31,28,26,0.04);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-deep);
}
.btn-gold:hover { background: #cda77c; }

.btn-outline-light {
  border-color: rgba(244,237,224,0.4);
  color: var(--cream);
}
.btn-outline-light:hover {
  background: rgba(244,237,224,0.08);
  border-color: var(--cream);
}

.btn-full { width: 100%; }

/* ----- WhatsApp CTA button (in hero/CTA sections) ----- */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  gap: 0.5rem;
  font-weight: 600;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  box-shadow: 0 8px 32px -8px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}
.btn-whatsapp .wa-icon {
  flex-shrink: 0;
}

/* =========================================================
   FLOATING WHATSAPP BUBBLE — bottom-right, always visible
   Psychology: organic breathing pulse draws peripheral
   attention without being aggressive. Expanding label on
   hover reduces friction ("what does this do?"). Green =
   safety, go, connection — strongest CTA color after red.
   ========================================================= */
.wa-fab {
  position: fixed;
  bottom: clamp(1.2rem, 3vh, 2rem);
  right: clamp(1.2rem, 3vw, 2rem);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
  /* No outline on the container — icon handles focus */
}

.wa-fab-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow:
    0 4px 14px -4px rgba(37, 211, 102, 0.5),
    0 0 0 0 rgba(37, 211, 102, 0.3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  z-index: 2;
}
.wa-fab:hover .wa-fab-icon {
  transform: scale(1.1) rotate(-8deg);
  box-shadow:
    0 8px 28px -4px rgba(37, 211, 102, 0.55),
    0 0 0 8px rgba(37, 211, 102, 0.12);
}

/* Breathing pulse rings */
.wa-fab-pulse {
  position: absolute;
  bottom: clamp(1.2rem, 3vh, 2rem);
  right: clamp(1.2rem, 3vw, 2rem);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.25);
  z-index: 799;
  pointer-events: none;
  animation: waPulse 3s ease-out infinite;
}
.wa-fab-pulse-2 {
  animation-delay: 1.5s;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.5; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Expanding label — hidden by default, slides out on hover */
.wa-fab-label {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #25D366;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border-radius: 999px 12px 12px 999px;
  box-shadow: 0 4px 18px -4px rgba(37, 211, 102, 0.4);
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  transition: all .35s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.wa-fab:hover .wa-fab-label {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* Subtle entrance animation — bubble floats in from below */
.wa-fab {
  animation: waFabIn 0.8s var(--ease) 2s both;
}
@keyframes waFabIn {
  from { transform: translateY(80px) scale(0.5); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Mobile: slightly smaller */
@media (max-width: 720px) {
  .wa-fab-icon { width: 52px; height: 52px; }
  .wa-fab-icon svg { width: 24px; height: 24px; }
  .wa-fab-pulse { width: 52px; height: 52px; }
  .wa-fab-label { display: none; } /* tap is obvious on mobile */
}

/* =========================================================
   PAGE-WIDE LIQUID POINTER TRAIL
   Full-viewport fixed WebGL canvas. Renders a colorless luminance
   wave field; `mix-blend-mode: soft-light` makes 0.5 grey neutral
   and lets peaks lighten / troughs darken whatever is underneath.
   ========================================================= */
.page-liquid {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000;
  pointer-events: none;
  display: block;
  mix-blend-mode: hard-light;
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  .page-liquid { display: none; }
}

/* Magnetic elements keep their smooth follow on hover */
[data-magnetic] {
  display: inline-flex;
  transition: transform 0.45s cubic-bezier(0.18, 0.99, 0.34, 1);
  will-change: transform;
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-deep);
  display: grid; place-items: center;
  color: var(--cream);
  transition: opacity .8s var(--ease-soft), visibility .8s var(--ease-soft);
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.loader-mark {
  font-family: var(--f-display);
  font-size: 2.4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.loader-text {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.18em;
}
.loader-bar {
  width: min(280px, 60vw);
  height: 1px;
  background: rgba(244,237,224,0.18);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: var(--gold);
  transition: width 1.2s var(--ease-soft);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: all .4s var(--ease);
  color: var(--cream);
  mix-blend-mode: difference;
}
.nav.is-solid {
  mix-blend-mode: normal;
  background: rgba(243, 237, 226, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--ink);
  border-bottom: 1px solid var(--ink-line);
  padding-block: 1rem;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}
.nav-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  font-size: 1.1rem;
  color: var(--gold);
}
.nav-links {
  display: flex; gap: 2rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  opacity: 0.78;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  transition: all .35s var(--ease);
}
.nav-cta:hover { background: currentColor; }
.nav.is-solid .nav-cta:hover { color: var(--bg-cream); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: transparent; /* WebGL fluid bg shows through during OROBRICK intro */
  color: var(--cream);
}

/* Full-bleed video — visible with smooth scroll-driven zoom.
   heroLiquid reads it as a WebGL texture for ripple displacement. */
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 1;
  will-change: transform, opacity;
  transform-origin: center center;
}
#heroVideo {
  pointer-events: none;
}
.hero-media-fallback { z-index: 0; }

/* WebGL liquid-displacement canvas — paints the rippled video over
   the hero. Same coordinate space and stacking as the original video. */
.hero-liquid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}
@media (hover: none), (pointer: coarse) {
  .hero-liquid { display: none; }
  /* On touch devices: show the video directly, hide the frame canvas */
  #heroVideo {
    display: block !important;
    visibility: visible;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  #heroFrameCanvas { display: none; }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(22,20,15,0.18) 0%, rgba(22,20,15,0.62) 70%),
    linear-gradient(180deg, rgba(22,20,15,0.35) 0%, rgba(22,20,15,0.55) 50%, rgba(22,20,15,0.75) 100%);
  pointer-events: none;
}

.hero-mark {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 1;
}

/* SVG text-cutout mask — covers the video with a dark scrim that has
   an OROBRICK-shaped hole. Scroll grows the text → bigger hole → more
   video revealed. Final scroll fades the whole mask away. */
.hero-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  display: block;
  will-change: opacity;
}
#maskText {
  /* Locked into the page font once Fraunces loads */
  font-kerning: normal;
}
.hero-mark-text {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3rem, 11vw, 9.5rem);
  letter-spacing: 0.02em;
  color: rgba(244, 237, 224, 0.96);
  text-shadow: 0 30px 80px rgba(0,0,0,0.5);
  white-space: nowrap;
  line-height: 1;
}

/* Cycling words — small ambient labels in the bottom-left of the hero,
   outside the video stage so they don't compete with text baked into
   the Veo render. They read like film credits / chapter ticker. */
.hero-words {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(2rem, 6vh, 4rem);
  z-index: 4;
  pointer-events: none;
  width: max-content;
  height: 1.5em;
}
.hero-words::before {
  content: "Now revealing";
  display: block;
  font-family: var(--f-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.5);
  margin-bottom: 0.4rem;
}
.hero-word {
  position: absolute;
  top: 1.5rem;
  left: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  will-change: transform, opacity;
}
.hero-word.accent { color: var(--gold); font-style: italic; }

.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  opacity: 0;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 16ch;
}
.hero-sub {
  max-width: 56ch;
  color: rgba(244, 237, 224, 0.75);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 0.6rem;
}
.hero .btn-ghost {
  color: var(--cream);
  border-color: rgba(244,237,224,0.3);
}
.hero .btn-ghost:hover {
  background: rgba(244,237,224,0.08);
  border-color: var(--cream);
}

.hero-scroll {
  position: absolute; bottom: 1.6rem; right: var(--gutter);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244,237,224,0.55);
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(180deg, rgba(244,237,224,0.55), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 30%;
  background: var(--gold);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}

/* Splitting text reveals
   Chars are visible by default. Only hero/loader chars get the dramatic
   translateY(110%) reveal (their parents have masking via overflow). All
   other titles fade-in subtly via GSAP without large translation. */
.char { display: inline-block; }

.loader-text .char,
.hero-title .char,
.hero-mark-text .char {
  transform: translateY(110%);
  opacity: 0;
}
.is-loaded .loader-text .char,
.is-loaded .hero-title .char {
  animation: charIn .85s var(--ease) forwards;
  animation-delay: calc(var(--char-index) * 24ms + 200ms);
}
.is-loaded .hero-mark-text .char {
  animation: charIn 1.1s var(--ease) forwards;
  animation-delay: calc(var(--char-index) * 60ms + 300ms);
}
@keyframes charIn {
  to { transform: translateY(0); opacity: 1; }
}

/* Mask the dramatic reveal in hero/loader so chars don't leak below */
.loader-text,
.hero-title,
.hero-mark-text {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  line-height: 1.05;
}
.hero-title { display: block; }
.loader-text { display: inline-block; }

/* =========================================================
   2. SERVICES
   ========================================================= */
.services {
  padding-block: var(--section-y);
  background: var(--bg);
  position: relative;
  overflow: hidden; /* clip the horizontal carousel */
}

/* --- Inertia wheel carousel ---
   Horizontal strip of cards that can be grabbed, dragged, and flung
   with momentum physics. Cards tilt in 3D based on drag velocity. */
.services-grid {
  display: flex;
  gap: 1.5rem;
  padding: 2rem var(--gutter);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  perspective: 1200px;
  will-change: transform;
}
.services-grid.is-dragging {
  cursor: grabbing;
}

.service-card {
  position: relative;
  flex: 0 0 340px;
  min-height: 280px;
  padding: 2.4rem 1.8rem 2rem;
  background: var(--bg-cream);
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    box-shadow .6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .5s var(--ease);
  /* transform is controlled by JS for 3D tilt — don't transition it */
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(184,149,106,0.16), transparent 55%),
    linear-gradient(135deg, transparent 50%, rgba(184,149,106,0.10));
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  box-shadow:
    0 1px 0 rgba(31,28,26,0.04),
    0 30px 60px -20px rgba(31,28,26,0.22),
    0 0 0 1px rgba(184,149,106,0.35);
  border-color: rgba(184,149,106,0.45);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-card .service-icon {
  transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1), color .4s var(--ease);
}
.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.15);
  color: var(--gold-deep);
}
.service-card .service-num {
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.service-card:hover .service-num {
  transform: translateX(-4px);
  color: var(--gold-deep);
}

/* Edge fade — gradient masks on left/right so cards fade out at edges */
.services .container { position: relative; }
.services .container::before,
.services .container::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}
.services .container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.services .container::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.service-card-wide {
  flex: 0 0 520px;
}

.service-num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}
.service-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.6rem;
  line-height: 1;
}
.service-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}
.service-card-wide h3 { font-size: 1.7rem; }

/* =========================================================
   3. PROCESS — glowing step-by-step timeline
   ========================================================= */
.process {
  padding-block: var(--section-y);
  background: var(--bg-warm);
  overflow: hidden;
  position: relative;
}
.process-track {
  position: relative;
  margin-top: 3rem;
}

/* --- Rail: the connecting line between dots --- */
.process-rail {
  position: absolute;
  top: 28px;
  left: calc(var(--gutter) + 9px);
  right: calc(var(--gutter) + 9px);
  height: 2px;
  background: rgba(31, 28, 26, 0.08);
  z-index: 1;
  border-radius: 1px;
}
/* Gold fill that grows with scroll progress */
.process-rail-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform-origin: left;
  border-radius: 1px;
  position: relative;
}
/* Glowing orb that travels along the rail's leading edge */
.process-rail-fill::after {
  content: "";
  position: absolute;
  right: -6px; top: -5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 8px 2px rgba(184, 149, 106, 0.6),
    0 0 24px 6px rgba(184, 149, 106, 0.3),
    0 0 48px 12px rgba(184, 149, 106, 0.1);
  transition: opacity .3s;
}

/* --- Steps grid --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

/* --- Individual step --- */
.process-step {
  display: flex; flex-direction: column;
  gap: 0.8rem;
  padding-top: 52px; /* space for dot above */
  position: relative;
  cursor: default;
  transition: transform .5s var(--ease);
}
.process-step:hover {
  transform: translateY(-4px);
}

/* --- Dot: sits on the rail line --- */
.process-dot {
  position: absolute;
  top: 20px; left: 0;
  width: 18px; height: 18px;
  background: var(--bg-warm);
  border: 2px solid rgba(31, 28, 26, 0.15);
  border-radius: 50%;
  z-index: 3;
  transition: all .5s var(--ease);
}
/* Active state: gold with glow */
.process-step.is-active .process-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow:
    0 0 0 6px rgba(184, 149, 106, 0.15),
    0 0 16px 4px rgba(184, 149, 106, 0.25),
    0 0 32px 8px rgba(184, 149, 106, 0.08);
}
/* Pulse ring on active dot */
.process-step.is-active .process-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.3);
  animation: dotPulse 2.5s ease-out infinite;
}
@keyframes dotPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* --- Step content: fades in when active --- */
.process-step-num {
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 0.6rem;
  transition: color .5s var(--ease);
}
.process-step.is-active .process-step-num {
  color: var(--gold-deep);
}
.process-step h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  transition: color .5s var(--ease), opacity .5s var(--ease);
  opacity: 0.5;
}
.process-step.is-active h3 {
  opacity: 1;
  color: var(--ink);
}
.process-step p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: opacity .5s var(--ease);
  opacity: 0.35;
}
.process-step.is-active p {
  opacity: 1;
}

/* =========================================================
   4. WHY OROBRICK
   ========================================================= */
.why {
  padding-block: var(--section-y);
  background: rgba(22, 20, 15, 0.55); /* translucent so WebGL bg shows through */
  color: var(--cream);
  position: relative;
}
.why::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(184,149,106,0.1), transparent 60%);
  pointer-events: none;
}
.why .eyebrow { color: rgba(244,237,224,0.6); }
.why .section-title { color: var(--cream); }
.why .section-sub { color: rgba(244,237,224,0.7); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244,237,224,0.12);
}
.why-item {
  padding: 2rem 1.5rem;
  background: var(--bg-deep);
  transition: background .35s var(--ease);
}
.why-item:hover { background: var(--bg-shadow); }
.why-num {
  font-family: var(--f-display);
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}
.why-item h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0.8rem 0 0.6rem;
}
.why-item p {
  color: rgba(244,237,224,0.65);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =========================================================
   5. GALLERY
   ========================================================= */
.gallery {
  padding-block: var(--section-y);
  background: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  grid-auto-flow: dense; /* backfill empty cells caused by mixed span items */
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-cream);
  cursor: pointer;
  transition: transform .5s var(--ease);
}
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }
.gallery-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: saturate(0.95) contrast(1.02);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.04);
}

.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  transform: translateY(20%);
  opacity: 0;
  transition: all .5s var(--ease);
}
.gallery-item:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}
.gallery-item figcaption span {
  font-family: var(--f-display);
  font-size: 1.15rem;
}
.gallery-item figcaption small {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

/* =========================================================
   6. ABOUT
   ========================================================= */
.about {
  padding-block: var(--section-y);
  background: var(--bg-cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-tag {
  position: absolute;
  left: 1.4rem; bottom: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--bg-cream);
  border-radius: 14px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.about-tag span {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--ink);
}
.about-tag small {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.about-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 1.5rem 0;
}
.about-bullets li {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-soft);
}
.about-bullets li:last-child { border-bottom: 1px solid var(--ink-line); }
.about-bullets li span { color: var(--gold); font-size: 1.1rem; }

/* =========================================================
   7. CTA
   ========================================================= */
.cta {
  padding-block: clamp(5rem, 9vw, 8rem);
  background: rgba(22, 20, 15, 0.55); /* translucent so WebGL bg shows through */
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184,149,106,0.22), transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(160,128,96,0.18), transparent 55%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative; z-index: 2;
}
.cta-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 1.5rem auto 1.25rem;
  max-width: 18ch;
}
.cta-sub {
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  color: rgba(244,237,224,0.7);
  font-size: 1.05rem;
}
.cta-buttons {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem;
}

/* =========================================================
   8. CONTACT — full-bleed immersive section
   Worker image fills the entire background. Content floats
   on top with glassmorphism cards against the dark overlay.
   ========================================================= */
.contact {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 8vw, 7rem);
  overflow: hidden;
  color: var(--cream);
}

/* --- Full-page worker background --- */
.contact-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.contact-bg-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 105%;
  width: auto;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.35;
  mix-blend-mode: luminosity;
  filter: contrast(1.1);
  pointer-events: none;
}
.contact-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(22,20,15,0.92) 0%, rgba(22,20,15,0.75) 50%, rgba(22,20,15,0.55) 100%),
    radial-gradient(ellipse at 80% 90%, rgba(184,149,106,0.12), transparent 50%);
  z-index: 1;
}

/* --- Content grid --- */
.contact-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* --- Left: headline + quick-reach --- */
.contact-intro {
  padding-top: 2rem;
}
.contact-headline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 1rem 0 1.5rem;
}
.contact-tagline {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  color: rgba(244, 237, 224, 0.7);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

/* WhatsApp prominent button */
.contact-wa-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 16px;
  color: #fff;
  transition: all .4s var(--ease);
  margin-bottom: 1.5rem;
}
.contact-wa-btn:hover {
  background: #25D366;
  border-color: #25D366;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -8px rgba(37, 211, 102, 0.4);
  color: #fff;
}
.contact-wa-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: #25D366;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform .4s var(--ease);
}
.contact-wa-btn:hover .contact-wa-icon {
  transform: scale(1.1) rotate(-6deg);
}
.contact-wa-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-wa-text strong {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-wa-text small {
  font-size: 0.78rem;
  color: rgba(244, 237, 224, 0.55);
  letter-spacing: 0.02em;
}

/* Email + hours chips */
.contact-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: rgba(244, 237, 224, 0.06);
  border: 1px solid rgba(244, 237, 224, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(244, 237, 224, 0.7);
  transition: all .3s var(--ease);
}
a.contact-chip:hover {
  background: rgba(244, 237, 224, 0.12);
  border-color: rgba(244, 237, 224, 0.25);
  color: var(--cream);
}

/* --- Right: glassmorphism form card --- */
.contact-form {
  background: rgba(244, 237, 224, 0.06);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(244, 237, 224, 0.1);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-radius: 24px;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow:
    0 2px 0 rgba(244,237,224,0.04),
    0 32px 64px -16px rgba(0,0,0,0.5);
}
.contact-form-head {
  margin-bottom: 0.5rem;
}
.contact-form-head h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.contact-form-head p {
  font-size: 0.88rem;
  color: rgba(244, 237, 224, 0.55);
}

/* Override field styles for dark context */
.contact .field label {
  color: rgba(244, 237, 224, 0.5);
}
.contact .field input,
.contact .field textarea,
.contact .field select {
  background: rgba(244, 237, 224, 0.06);
  border-color: rgba(244, 237, 224, 0.12);
  color: var(--cream);
}
.contact .field input::placeholder,
.contact .field textarea::placeholder {
  color: rgba(244, 237, 224, 0.3);
}
.contact .field input:focus,
.contact .field textarea:focus,
.contact .field select:focus {
  border-color: var(--gold);
  background: rgba(244, 237, 224, 0.1);
}
.contact .select-arrow { color: rgba(244, 237, 224, 0.4); }
.contact .form-status { color: var(--gold); }

/* --- Contact section entrance animations ---
   Override [data-reveal] so we control child stagger ourselves */
.contact .contact-intro[data-reveal],
.contact .contact-form[data-reveal] {
  opacity: 1;
  transform: none;
}
.contact-intro .eyebrow,
.contact-intro .contact-headline,
.contact-intro .contact-tagline,
.contact-wa-btn,
.contact-meta-row,
.contact-form {
  opacity: 0;
  transform: translateY(40px);
}
.contact-intro.is-in .eyebrow {
  animation: contactSlideIn 0.8s var(--ease) 0s forwards;
}
.contact-intro.is-in .contact-headline {
  animation: contactSlideIn 0.9s var(--ease) 0.1s forwards;
}
.contact-intro.is-in .contact-tagline {
  animation: contactSlideIn 0.9s var(--ease) 0.25s forwards;
}
.contact-intro.is-in .contact-wa-btn {
  animation: contactSlideIn 0.8s var(--ease) 0.4s forwards;
}
.contact-intro.is-in .contact-meta-row {
  animation: contactSlideIn 0.8s var(--ease) 0.55s forwards;
}
.contact-form.is-in {
  animation: contactFormIn 1s var(--ease) 0.3s forwards;
}

@keyframes contactSlideIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes contactFormIn {
  from { opacity: 0; transform: translateY(50px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* WhatsApp button shimmer — subtle gold light sweep on idle */
.contact-wa-btn {
  position: relative;
  overflow: hidden;
}
.contact-wa-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: waShimmer 4s ease-in-out 2s infinite;
}
@keyframes waShimmer {
  0%   { left: -100%; }
  40%  { left: 150%; }
  100% { left: 150%; }
}

/* Form card subtle border glow on hover */
.contact-form {
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.contact-form:hover {
  border-color: rgba(184, 149, 106, 0.25);
  box-shadow:
    0 2px 0 rgba(244,237,224,0.04),
    0 32px 64px -16px rgba(0,0,0,0.5),
    0 0 0 1px rgba(184, 149, 106, 0.15);
}

/* Field defaults (used by contact form + any future forms) */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; cursor: pointer; padding-right: 2.4rem; }
.select-arrow {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--ink-mute);
}

.form-status {
  font-size: 0.88rem;
  color: var(--gold-deep);
  min-height: 1.2em;
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: rgba(13, 11, 7, 0.78);
  color: rgba(244,237,224,0.75);
  padding: clamp(3rem, 5vw, 5rem) 0 1.5rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244,237,224,0.1);
}
.footer-brand {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.footer-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.footer-tag {
  font-family: var(--f-display);
  font-style: italic;
  color: rgba(244,237,224,0.55);
}
.footer-col h4 {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.footer-col a,
.footer-col p {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: rgba(244,237,224,0.6);
}
.footer-col a:hover { color: var(--gold); }

.footer-bar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(244,237,224,0.5);
}

/* =========================================================
   REVEAL ANIMATION HOOK (used by JS)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .service-card { flex: 0 0 300px; min-height: 240px; }
  .service-card-wide { flex: 0 0 420px; }
  .process-steps { grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 2rem 1.5rem; }
  .process-rail { display: none; }
  .process-step h3, .process-step p { opacity: 1; }
  .process-step-num { color: var(--ink-mute); }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-wide { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-hero { grid-template-columns: 1fr; }
  .contact-bg-img { height: 80%; opacity: 0.2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* --- Nav: bigger tap targets, safe area, scrollable menu --- */
  .nav {
    padding: 1rem var(--gutter);
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .nav-links {
    position: fixed; inset: 64px 0 0 0;
    flex-direction: column; justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    background: var(--bg-cream);
    color: var(--ink);
    border-top: 1px solid var(--ink-line);
    transform: translateY(-110%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 1rem;
    opacity: 1;
  }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    width: 44px; height: 44px; /* 44px minimum for mobile tap target */
  }
  .nav.is-solid + main .hero-content { padding-bottom: 4rem; }

  /* --- Hero --- */
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-content { padding-bottom: max(3rem, env(safe-area-inset-bottom)); }
  .hero-words { display: none; } /* too cramped on mobile */
  .hero-scroll { display: none; }

  /* --- Services carousel --- */
  .service-card { flex: 0 0 clamp(240px, 80vw, 300px); min-height: 220px; }
  .service-card-wide { flex: 0 0 clamp(240px, 80vw, 300px); }
  .services .container::before,
  .services .container::after { width: 40px; }

  /* --- Process: vertical layout with left line --- */
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
  .process-step {
    padding-top: 0;
    padding-left: 36px;
    border-left: 2px solid var(--ink-line);
    margin-left: 8px;
  }
  .process-step.is-active { border-left-color: var(--gold); }
  .process-dot { top: 4px; left: -10px; width: 16px; height: 16px; }
  .process-step h3, .process-step p { opacity: 1; }

  /* --- Gallery --- */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(200px, 55vw, 280px);
  }
  .gallery-item-wide, .gallery-item-tall { grid-row: auto; grid-column: auto; }

  /* --- Why --- */
  .why-list { grid-template-columns: 1fr; }

  /* --- Contact --- */
  .contact-bg-img { height: 45%; opacity: 0.12; }
  .contact-headline { font-size: clamp(2rem, 7vw, 3rem); }
  .contact-wa-btn { flex-direction: column; text-align: center; gap: 0.6rem; }
  .contact-meta-row { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: clamp(1.2rem, 4vw, 2rem); }

  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; }

  /* --- WhatsApp bubble: safe area --- */
  .wa-fab {
    bottom: max(1.2rem, env(safe-area-inset-bottom));
  }
  .wa-fab-pulse {
    bottom: max(1.2rem, env(safe-area-inset-bottom));
  }
}

/* --- Ultra-small screens (iPhone SE, older phones) --- */
@media (max-width: 380px) {
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 0.9rem; }
  .btn { padding: 0.85rem 1.2rem; font-size: 0.88rem; }
  .service-card { flex: 0 0 85vw; }
  .contact-form { padding: 1rem; }
  .contact-form .field input,
  .contact-form .field textarea,
  .contact-form .field select { padding: 0.8rem 0.9rem; font-size: 0.95rem; }
}

/* =========================================================
   SAFE AREA SUPPORT (notched phones)
   ========================================================= */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* =========================================================
   TOUCH DEVICES — increase tap targets
   ========================================================= */
@media (hover: none) {
  .nav-links a { padding: 0.75rem 0; min-height: 44px; }
  .btn { min-height: 48px; }
  /* Disable WhatsApp pulse to save battery */
  .wa-fab-pulse { animation: none; opacity: 0; }
}

/* =========================================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .wa-fab-pulse { animation: none; }
}
