/* ============================================================
   STARCHITECTURE Studio: monochrome build
   All colors derive from one gray ramp below. To re-theme,
   edit the tokens in :root: nothing else should hard-code
   a color. Many shades are provided deliberately for depth
   (bands, surfaces, lines, muted text, overlays).
   ============================================================ */

:root {
  /* ---- gray ramp (many shades for visual depth) ---- */
  --white:  #FFFFFF;
  --paper:  #F7F7F5;   /* page background */
  --g-75:   #F0F0ED;   /* alt bands */
  --g-100:  #EAEAE7;   /* soft surface */
  --g-150:  #E2E2DE;   /* hairlines on light */
  --g-200:  #D5D5D0;   /* strong lines */
  --g-300:  #B9B9B3;   /* disabled / ghost */
  --g-400:  #93938C;   /* muted text on light */
  --g-500:  #6F6F68;   /* body-muted text */
  --g-600:  #52524B;   /* emphasized text */
  --g-700:  #3B3B35;   /* dark surface accents */
  --g-800:  #2A2A25;   /* dark band */
  --g-900:  #191916;   /* footer / contact band */
  --ink:    #111110;   /* headings, primary buttons */

  /* ---- semantic aliases (change these to re-theme) ---- */
  --bg: var(--paper);
  --surface: var(--white);
  --line: var(--g-150);
  --line-strong: var(--g-200);
  --text: var(--ink);
  --text-body: var(--g-600);
  --text-muted: var(--g-400);
  --accent: #A97E2C;        /* accent words on light backgrounds */
  --accent-on-dark: #C9A24B;
  --hi: #B8923E;            /* progress bars, timeline dots, hovers */
  --overlay: rgba(20, 20, 18, 0.6);

  /* defined at the end of the token block so it overrides cleanly */

  /* ---- brand assets ---- */
  --logo: url("../images/logo_black.png");
  --logo-white: url("../images/logo_white.png");
  --logo-watermark-opacity: 0.06;   /* hero background logo strength */

  /* ---- shape & motion ---- */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 55px -26px rgba(17, 17, 16, 0.3);
  --shadow-deep: 0 42px 90px -40px rgba(17, 17, 16, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swift: cubic-bezier(0.77, 0, 0.175, 1);
  --container: 1240px;
  --header-h: 76px;
  --stack-top: 180px;   /* card-stack sticky offset; refined by JS */

  --font-body: 'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
/* plain label (no pill badge) used above section titles */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.eyebrow-invert { color: #171204; font-weight: 800; }

.accent { color: var(--accent); }
.hero-title .accent { font-weight: 700; }
.contact-title .accent { color: #4A3705; font-weight: 700; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-desc { color: var(--text-muted); font-size: 14px; max-width: 46ch; }

.section { padding: 100px 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head .section-desc { text-align: right; }

/* sticky section titles: the heading stays pinned under the navbar while the
   section's content scrolls on beneath it */
.section-head-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  margin-bottom: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}
.head-bg-alt { background: var(--paper); }
.head-bg-paper { background: var(--paper); }
.section-head-sticky ~ .feature-stack { margin-top: 12px; }
.section-head-sticky ~ .process-layout { margin-top: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: color-mix(in srgb, var(--hi) 82%, black); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-paper {
  background: var(--white);
  color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--hi) 35%, var(--g-150));
}
.btn-paper svg { color: var(--hi); }
.btn-paper:hover {
  background: var(--hi);
  border-color: var(--hi);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-paper:hover svg { color: var(--white); }
.btn-gold {
  background: #C9A24B;
  color: #171204;
  border: 2px solid #C9A24B;
}
.btn-gold svg { color: #171204; }
.btn-gold:hover { background: #E0BC6B; border-color: #E0BC6B; transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 10px; }
.btn-lg { padding: 17px 32px; }
.btn-xl { padding: 20px 38px; font-size: 12.5px; letter-spacing: 0.14em; }
.btn-xl svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-block { width: 100%; }
.btn-arrow { transition: transform 0.25s var(--ease-out); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.link-arrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.link-arrow:hover { opacity: 0.6; }

/* ---------- preloader ---------- */
body.is-loading { overflow: hidden; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { height: 74px; width: auto; margin: 0 auto 18px; opacity: 0.9; }
.preloader-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}
.preloader-name span { display: block; font-size: 9.5px; letter-spacing: 0.5em; color: var(--g-400); margin-top: 5px; }
.preloader-bar {
  width: 180px; height: 2px;
  background: var(--g-150);
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 99px;
}
.preloader-fill { height: 100%; width: 0; background: var(--ink); transition: width 0.4s ease; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--hi);
  z-index: 120;
  pointer-events: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
/* once scrolled, go fully opaque: content passing under a translucent header
   reads as a rendering glitch rather than depth */
.site-header.scrolled {
  background: var(--paper);
  backdrop-filter: none;
}
.site-header.scrolled { box-shadow: 0 12px 32px -20px rgba(17, 17, 16, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 0; }
.brand-logo { height: 42px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width 0.25s var(--ease-out);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: all 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: var(--overlay);
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
  z-index: 70;
}
.drawer-backdrop.show { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--g-900);
  color: var(--g-200);
  z-index: 80;
  padding: 84px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--g-200);
  font-size: 26px;
  line-height: 1;
  transition: all 0.2s ease;
}
.drawer-close:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  font-family: var(--font-display);
  font-size: 19px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.drawer-nav a:hover { color: var(--white); padding-left: 6px; }
.drawer-cta { align-self: flex-start; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 82% 20%, var(--g-75) 0%, transparent 70%),
    var(--paper);
  display: flex;
  flex-direction: column;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  width: 100%;
  min-height: calc(100dvh - var(--header-h));
  padding-top: 20px;
}
/* desktop only: reserves the strip-less hero's lower band so the building
   sits where it did when the meta bar still occupied that zone (mobile puts
   the building on top, and the padding pushed the watermark too low) */
@media (min-width: 901px) {
  .hero-grid { padding-bottom: 150px; }
}
.hero-watermark {
  position: absolute;
  left: -3%;
  top: 46%;
  transform: translateY(-50%);
  width: min(44vw, 580px);
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
}
body.is-ready .hero-watermark {
  opacity: var(--logo-watermark-opacity, 0.06);
  filter: blur(0);
  transition: opacity 1.3s ease 0.55s, filter 1.3s ease 0.55s;
}
.hero-building-wrap { position: relative; z-index: 2; align-self: end; }
.hero-building {
  width: min(100%, 620px);
  height: auto;
  filter: blur(16px) drop-shadow(0 40px 50px rgba(17, 17, 16, 0.18));
  transform: translateX(100vw);
  opacity: 0;
  will-change: transform, filter, opacity;
}
body.is-ready .hero-building {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0) drop-shadow(0 40px 50px rgba(17, 17, 16, 0.18));
  transition:
    transform 1.25s var(--ease-swift) 0.25s,
    opacity 0.9s ease 0.25s,
    filter 1.15s ease 0.25s;
}
.hero-copy { position: relative; z-index: 2; padding: 40px 0 48px; align-self: center; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 12ch;
}
.hero-sub { color: var(--text-body); font-size: 15px; max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero copy entrance (after preloader) */
.hero-copy > * { opacity: 0; transform: translateY(26px); }
body.is-ready .hero-copy > *:nth-child(1) { animation: heroRise 0.7s var(--ease-out) 0.35s both; }
body.is-ready .hero-copy > *:nth-child(2) { animation: heroRise 0.8s var(--ease-out) 0.46s both; }
body.is-ready .hero-copy > *:nth-child(3) { animation: heroRise 0.8s var(--ease-out) 0.6s both; }
body.is-ready .hero-copy > *:nth-child(4) { animation: heroRise 0.8s var(--ease-out) 0.74s both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* hero scenery: leaf photo hugging the right edge + drifting birds */
.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-tree {
  position: absolute;
  /* wide branch: trunk anchors off-screen top-right, foliage drapes down-left
     behind the house (rotated 180deg from source) */
  top: -70px;
  right: -90px;
  width: min(46vw, 680px);
  height: auto;
  max-width: none;
  transform: rotate(180deg);
  opacity: 0.6;
}
.hero-birds {
  position: absolute;
  z-index: 1; /* behind the house layer */
  /* upper-left of the house: above the roofline, at the left edge of the
     house column */
  top: clamp(64px, 13vh, 150px);
  left: 48%;
  width: clamp(180px, 20vw, 300px);
  pointer-events: none;
}

/* ============================================================
   2. PHILOSOPHY
   ============================================================ */
.philosophy { position: relative; overflow: clip; }
/* blueprint backdrop: 6% opacity, hugging the left on desktop and centered
   on mobile; masked to fade out at the top and bottom so it melts into the
   section seams */
.phil-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.phil-copy { max-width: 720px; }
.phil-title { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 16ch; }
.phil-text { color: var(--text-body); font-size: 15.5px; max-width: 56ch; margin: 22px 0 30px; }
.phil-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
}
.metric-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   3. SERVICES: horizontal hover / scroll accordion
   ============================================================ */
.services { padding-bottom: 100px; }
.services .section-head { margin-bottom: 12px; }
.svc-strip {
  display: flex;
  gap: 8px;
  height: min(74vh, 660px);
  margin-top: 12px;
  padding: 0 24px;
  width: 100%;
}
.svc-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--g-200);
  /* transition ONLY flex-grow: animating the flex shorthand re-applies
     basis/shrink mid-flight and makes the panels stutter when hovered
     in quick succession */
  transition: flex-grow 0.75s var(--ease-out);
  will-change: flex-grow;
}
.svc-panel.active { flex-grow: 3.4; }
.svc-panel img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.svc-panel.active img { transform: scale(1); }
/* ::before is the scrim: it must layer ABOVE the image but BELOW the text */
.svc-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(17, 17, 16, 0.30) 0%,
    rgba(17, 17, 16, 0.12) 32%,
    rgba(17, 17, 16, 0.52) 62%,
    rgba(17, 17, 16, 0.96) 100%);
}
.svc-num {
  position: absolute;
  z-index: 2;
  top: 22px; left: 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.4s ease;
}
.svc-panel.active .svc-num { color: var(--white); }
.svc-body {
  position: absolute;
  z-index: 2;
  left: 22px; right: 22px; bottom: 20px;
  color: var(--white);
}
.svc-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.25;
}
.svc-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.svc-desc-inner { min-height: 0; overflow: hidden; }
.svc-desc p { color: rgba(255, 255, 255, 0.82); font-size: 13px; line-height: 1.6; padding-top: 10px; max-width: 44ch; }
.svc-panel.active .svc-desc { grid-template-rows: 1fr; }
.svc-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.svc-hint::after { content: "→"; transition: transform 0.25s var(--ease-out); }
.svc-panel:hover .svc-hint::after { transform: translateX(4px); }
.svc-panel:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }

/* service detail modal (shares .cat-modal chrome) */
.svc-modal-panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(680px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease-out);
}
.svc-modal.show .svc-modal-panel { transform: translateY(0); }
.svc-close-offset { z-index: 2; }
.svc-modal-media { aspect-ratio: 16 / 8; overflow: hidden; }
.svc-modal-media img {
  width: 100%; height: 100%; object-fit: cover;
  /* rests slightly zoomed; settles to 1 as the modal opens (fast reset when closing) */
  transform: scale(1.07);
  transition: transform 0.3s var(--ease-out);
}
.svc-modal.show .svc-modal-media img {
  transform: scale(1);
  transition: transform 1s var(--ease-out) 0.12s;
}
.svc-modal-body { padding: clamp(22px, 3.2vw, 34px); }
.svc-modal-body .cat-modal-title { margin-bottom: 10px; }
/* entrance choreography: body children rise + fade in sequence while shown;
   the resting state keeps a short undelayed transition so closing stays snappy */
.svc-modal-body > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.svc-modal.show .svc-modal-body > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.svc-modal.show .svc-modal-body > *:nth-child(1) { transition-delay: 0.15s; }
.svc-modal.show .svc-modal-body > *:nth-child(2) { transition-delay: 0.22s; }
.svc-modal.show .svc-modal-body > *:nth-child(3) { transition-delay: 0.29s; }
.svc-modal.show .svc-modal-body > *:nth-child(4) { transition-delay: 0.36s; }
.svc-modal.show .svc-modal-body > *:nth-child(5) { transition-delay: 0.43s; }
.svc-modal.show .svc-modal-body > *:nth-child(6) { transition-delay: 0.5s; }
/* the CTA hugs its content instead of stretching full-width: a centered
   pill reads intentional, a block button reads unfinished */
.svc-modal-body > .btn { display: flex; width: fit-content; margin: 0 auto; }
.svc-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.svc-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}
.svc-modal-note { margin-top: 12px; font-size: 11.5px; color: var(--text-muted); text-align: center; }

/* service plans (BASIC / STANDARD / PREMIUM) */
.svc-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 6px;
}
.svc-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px 14px 14px;
}
.svc-plan.popular { border: 2px solid var(--hi); }
.svc-plan-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--hi);
  color: var(--white);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.svc-plan-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 10px;
}
.svc-plan ul { display: flex; flex-direction: column; gap: 7px; flex: 1; margin-bottom: 12px; }
.svc-plan li {
  position: relative;
  padding-left: 17px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-body);
}
.svc-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hi);
  font-weight: 700;
}
.svc-plan li:last-child {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-weight: 600;
  color: var(--text);
}
.svc-plan li:last-child::before { content: "⏱"; color: var(--text-muted); }
@media (max-width: 760px) {
  .svc-plans { grid-template-columns: 1fr; gap: 18px; }
  .svc-plan { padding: 16px; }
}

/* brand / footer text images (typetext lockup) */
.brand-text { height: 42px; width: auto; }
.footer-text { height: 42px; width: auto; }
.svc-grabber { display: none; }

/* mobile carousel chrome (created by JS, mobile-only): display:none outside
   the mobile media query so a mid-session resize to desktop never leaks
   them into the layout as unstyled text */
/* ============================================================
   4. PROJECTS: scroll-driven card stack
   ============================================================ */
.projects { background: var(--paper); overflow-anchor: none; padding-bottom: 24px; }
.feature-stack { margin-bottom: 0; }
/* the tail is an opaque cover sheet: as it scrolls up it hides the last
   card's trailing shadow instead of letting it smudge the section seam */
.fs-tail {
  /* the tail IS the last card's freeze: while it scrolls past, the card and
     the pinned title hold perfectly still, then exit together. Pure spacer:
     no background, no stacking — nothing overlaps the exiting card, whose
     tight shadow simply scrolls away over the section paper */
  height: min(34dvh, 320px);
}
/* projects container anchors the title once JS hands it to page flow; the
   JS also pins exact left/width/top from the stuck position (absolute
   coordinates are relative to the PADDING box, which would shove the flex
   row out of the container) and leaves a same-height spacer in the flow */
#proyek .container { position: relative; }
.section-head-sticky.head-released { position: absolute; z-index: 40; }
/* a card's stick-duration = the heights of everything below it inside the
   container; the item box itself only paces card arrivals */
.fs-item {
  position: sticky;
  top: var(--stack-top);
  height: calc(100dvh - var(--stack-top));
  display: flex;
  align-items: flex-start;
}
/* the last card paints ABOVE the tail sheet, so during the shared release
   it scrolls away naturally instead of being sliced by the rising paper */
.fs-item.fs-last { z-index: 3; }
.fs-item.fs-last .fs-card { box-shadow: 0 20px 44px -36px rgba(17, 17, 16, 0.5); }
.fs-card {
  position: relative;
  width: 100%;
  height: min(66dvh, 660px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--g-800);
  cursor: pointer;
  box-shadow: var(--shadow-deep);
  /* no will-change here: a promoted layer inside the sticky stack mispaints
     in Chromium (layout sticks correctly, paint lags at the flow position) */
}
.fs-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.09);
  transition: transform 5.5s ease-out;
}
.fs-card.active img { transform: scale(1); }
.fs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 16, 0.22) 0%, rgba(17, 17, 16, 0.05) 45%, rgba(17, 17, 16, 0.82) 100%);
}
.fs-info {
  position: absolute;
  left: clamp(20px, 3.4vw, 44px);
  right: clamp(20px, 3.4vw, 44px);
  bottom: clamp(20px, 3vw, 38px);
  z-index: 2;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.fs-info > div { opacity: 0; transform: translateY(22px); }
.fs-card.active .fs-info > div { animation: heroRise 0.75s var(--ease-out) 0.2s both; }
.fs-card.active .fs-info > div:nth-child(2) { animation-delay: 0.38s; }
.fs-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 10px;
}
.fs-sub { color: rgba(255, 255, 255, 0.82); font-size: 14px; max-width: 52ch; }
.fs-meta {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.fs-meta .fs-cta {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
}

/* category modal */
.cat-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.cat-modal.show { opacity: 1; visibility: visible; }
.cat-modal-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(1060px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  padding: clamp(24px, 3.4vw, 40px);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease-out);
}
.cat-modal.show .cat-modal-panel { transform: translateY(0); }
/* zero-height sticky wrapper: pins the close button to the sheet's visible
   top edge while the content scrolls, without displacing any flow */
.close-float {
  position: sticky;
  top: 0;
  float: right;
  width: 100%;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.close-float .cat-modal-close { position: absolute; top: 18px; right: 18px; pointer-events: auto; }
.cat-modal-close {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  transition: all 0.2s ease;
}
.cat-modal-close:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cat-modal-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cat-modal-desc { color: var(--text-muted); font-size: 13.5px; max-width: 60ch; margin-bottom: 26px; }
.cat-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-thumb { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.cat-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.cat-thumb:hover img { transform: scale(1.06); }
.cat-thumb figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(17, 17, 16, 0.85));
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.cat-modal-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  grid-column: 1 / -1;
}

/* ============================================================
   5. PROCESS: Alur Pemesanan (scroll-driven timeline)
   ============================================================ */
.process { background: var(--paper); }
.process-layout {
  --tl-pad: 56px;
  --tl-rail-x: 13px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.process-side { position: sticky; top: calc(var(--header-h) + 132px); }
.process-side-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.process-side-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  margin-left: -4px;
}
.process-side-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-body);
  margin: 8px 0 24px;
  min-height: 1.4em;
}
.process-side-bar { height: 3px; background: var(--g-150); border-radius: 99px; overflow: hidden; }
.process-side-fill { height: 100%; width: 0; background: var(--hi); }
.process-timeline { position: relative; padding-left: var(--tl-pad); }
.process-rail, .process-fill {
  position: absolute;
  left: var(--tl-rail-x);
  width: 2px;
  border-radius: 99px;
}
.process-rail { top: 10px; bottom: 10px; background: var(--g-150); }
.process-fill { top: 10px; height: 0; background: var(--hi); }
.tl-step { position: relative; padding-bottom: clamp(150px, 38vh, 380px); opacity: 0.25; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s var(--ease-out); }
.tl-step:last-child { padding-bottom: 8vh; }
.tl-step::before {
  content: "";
  position: absolute;
  left: calc(var(--tl-rail-x) - var(--tl-pad) - 7px);
  top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--g-300);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.tl-step.reached { opacity: 1; transform: translateY(0); }
.tl-step.reached::before {
  background: var(--hi);
  border-color: var(--hi);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--hi) 18%, transparent);
}
.process-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  display: block;
}
.tl-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tl-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; max-width: 62ch; }

/* ============================================================
   6. FAQ
   ============================================================ */
.faq { background: var(--paper); }
.faq-container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-intro .btn { margin-top: 28px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
/* accent bar lights up on the opened card */
.acc-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--hi);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.acc-item.open::before { transform: scaleY(1); }
@media (hover: hover) {
  .acc-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
}
.acc-item.open { border-color: color-mix(in srgb, var(--hi) 40%, var(--line)); box-shadow: var(--shadow-soft); }
.acc-head {
  width: 100%;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 20px 20px 20px 24px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}
/* hover-dim only for real pointers: on touch, tap-triggers a sticky hover
   that would leave the opened question permanently greyed out */
@media (hover: hover) {
  .acc-head:hover { color: var(--text-muted); }
}
.acc-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.28s ease;
}
.acc-item.open .acc-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: rotate(45deg);
}
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { min-height: 0; overflow: hidden; }
.acc-inner p { padding: 0 24px 22px 24px; font-size: 13.5px; color: var(--text-body); line-height: 1.7; }

/* ============================================================
   7. CONTACT: gold band, dark text; CTA card inverts to ink
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
/* grid items must be allowed to shrink below content min-width (the WhatsApp
   button is nowrap) or the track overflows the viewport on mobile */
.contact-grid > *, .phil-grid > *, .faq-container > *, .process-layout > * { min-width: 0; }
.contact {
  background: linear-gradient(160deg, #D9B25E 0%, #C9A24B 45%, #B8923E 100%);
  color: #171204;
  padding: clamp(72px, 9vw, 110px) 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
/* grid items must be allowed to shrink below content min-width (the WhatsApp
   button is nowrap) or the track overflows the viewport on mobile */
.contact-grid > *, .faq-container > *, .process-layout > * { min-width: 0; }
.contact-title { color: #171204; font-weight: 600; }
.contact-title .accent { color: #4A3705; font-weight: 700; }
.contact-desc { color: rgba(23, 18, 4, 0.78); font-weight: 500; font-size: 14.5px; max-width: 46ch; margin: 16px 0 30px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border: 1px solid rgba(23, 18, 4, 0.35);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171204;
}
.contact-ico svg { width: 18px; height: 18px; }
.contact-list strong { display: block; font-size: 13px; font-weight: 800; color: #171204; }
.contact-list a, .contact-list span { color: rgba(23, 18, 4, 0.78); font-weight: 500; font-size: 13px; }
.contact-list a:hover { color: #171204; }
.contact-socials { display: flex; gap: 10px; margin-top: 30px; }
.contact-socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(23, 18, 4, 0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #171204;
  transition: all 0.22s ease;
}
.contact-socials a:hover { background: #171204; border-color: #171204; color: #C9A24B; }

.contact-cta {
  background: #171204;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 3.6vw, 46px);
  box-shadow: 0 42px 90px -40px rgba(23, 18, 4, 0.65);
  text-align: center;
}
.contact-cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--white);
  margin-bottom: 10px;
}
.contact-cta-desc { color: rgba(255, 255, 255, 0.66); font-size: 13.5px; max-width: 40ch; margin: 0 auto 28px; }
.contact-cta .btn-paper {
  background: #C9A24B;
  color: #171204;
  border-color: #C9A24B;
}
.contact-cta .btn-paper svg { color: #171204; }
.contact-cta .btn-paper:hover { background: #E0BC6B; border-color: #E0BC6B; color: #171204; }
.contact-cta .btn-xl { width: 100%; }
@media (max-width: 760px) {
  .contact-cta .btn-xl { white-space: normal; padding: 16px 22px; }
  .contact-cta-title { font-size: 1.35rem; }
}
.contact-cta-note { margin-top: 16px; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }

/* ---------- footer ---------- */
.footer { background: var(--g-900); color: var(--g-400); padding-top: 70px; }
.footer > .container { padding-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-grid > * { min-width: 0; }
.footer-lockup { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.footer-logo { height: 60px; width: auto; }
.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-tag { font-size: 12.5px; max-width: 34ch; }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--g-200);
  transition: all 0.22s ease;
}
.footer-socials a:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.footer-col h4 {
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-hours { font-size: 13px; }
.news-form { display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 6px; margin-top: 14px; }
.news-form input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 0;
}
.news-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.news-form button { background: none; border: 0; color: var(--white); font-size: 18px; transition: transform 0.2s ease; }
.news-form button:hover { transform: translateX(4px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px 0;
  font-size: 11.5px;
  color: var(--g-500);
}

/* ---------- floating actions ---------- */
.float-actions { position: fixed; right: 22px; bottom: 22px; z-index: 65; display: flex; flex-direction: column; gap: 12px; }

.wa-float {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px -12px rgba(17, 17, 16, 0.55);
  transition: transform 0.22s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 27px; height: 27px; }

/* PhotoSwipe tweaks: caption pill + hairline icon color to match theme */
.st-caption {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  color: var(--g-100);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  background: rgba(17, 17, 16, 0.6);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  max-width: 86vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border-left: 3px solid var(--g-400);
  box-shadow: var(--shadow-deep);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out); }
.reveal[data-reveal="left"] { transform: translateX(-46px); }
.reveal[data-reveal="right"] { transform: translateX(46px); }
.reveal.in, .reveal.in[data-reveal] { opacity: 1; transform: translate(0, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-container { grid-template-columns: 1fr; }
  .section-head .section-desc { text-align: left; }
  .svc-strip { height: min(64vh, 560px); }
  .process-layout { grid-template-columns: 1fr; gap: 30px; }
  .process-side { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; align-items: start; padding-top: 8px; }
  .hero-building-wrap { order: -1; padding-top: 12px; }
  .hero-building { width: min(100%, 480px); }
  .hero-watermark {
    width: 95vw;
    max-width: none;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  body.is-ready .hero-watermark { opacity: 0.04; }
  .hero-tree { top: -34px; right: -60px; width: 92vw; opacity: 0.6; }
  .phil-bg { object-position: center center; }
  .hero-birds { top: 30px; left: 7%; width: 34vw; opacity: 0.9; }
  .hero-copy { padding: 8px 0 34px; }
  .hero-title { max-width: none; }
  .fs-item { height: calc(100dvh - var(--stack-top)); }
  .fs-card { height: min(64dvh, 560px); }
  .fs-info { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fs-meta { text-align: left; }
  .phil-metrics { gap: 20px; margin-top: 44px; padding-top: 30px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .header-actions .btn { display: none; }
  .process-layout { --tl-pad: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .cat-modal { padding: 14px; }
  .cat-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-modal-grid .cat-thumb { min-width: 0; }
  .phil-metrics { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .metric-value { font-size: 1.9rem; }
  .metric-label { font-size: 9.5px; letter-spacing: 0.12em; }

  /* services: 3D tilt deck. Cards scroll flat (no sticky) but live in a
     perspective scene: --p (signed position vs viewport center, from the
     rAF loop) tips each card back/forward while --c (closeness) scales it
     up and lifts it on Z; the number counter-drifts. Tap opens the sheet */
  .svc-strip {
    flex-direction: column;
    height: auto;
    gap: 22px;
    padding: 0 16px;
    perspective: 1400px;
    perspective-origin: 50% 40%;
  }
  .svc-panel {
    flex: none;
    height: min(50dvh, 420px);
    transform:
      rotateX(calc(var(--p, 0) * 9deg))
      translateZ(calc(var(--c, 1) * 26px))
      scale(calc(0.9 + 0.1 * var(--c, 1)));
    transform-origin: center center;
    box-shadow: 0 24px 50px -30px rgba(17, 17, 16, calc(0.35 + 0.3 * var(--c, 1)));
  }
  .svc-panel.active { flex: none; }
  .svc-panel.active .svc-desc { grid-template-rows: 0fr; }
  .svc-panel::before { opacity: calc(0.7 + 0.3 * var(--c, 1)); }
  .svc-num {
    top: 14px; left: 20px; font-size: 15px;
    transform: translateY(calc(var(--p, 0) * -14px));
    opacity: calc(0.45 + 0.55 * var(--c, 1));
  }
  .svc-body { left: 20px; right: 20px; bottom: 16px; }
  .svc-hint { margin-top: 10px; }


  /* popups become native-feeling bottom sheets (services + project gallery) */
  .sheet { align-items: flex-end; padding: 0; }
  .sheet .cat-modal-close {
    top: 12px;
    right: 14px;
    background: rgba(23, 18, 4, 0.5);
    border-color: transparent;
    color: #fff;
    /* pops in once the sheet has landed; explicit transition list keeps the
       background/border/color hover intact and closing undelayed */
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out),
      background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .sheet.show .cat-modal-close {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.35s var(--ease-out) 0.35s, transform 0.35s var(--ease-out) 0.35s,
      background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .sheet .svc-modal-panel,
  .sheet .cat-modal-panel {
    width: 100%;
    max-height: 88dvh;
    border-radius: 26px 26px 0 0;
    transform: translateY(100%);
    /* springy overshoot: the sheet lands with a subtle native bounce */
    transition: transform 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.08);
    animation: none;
  }
  .sheet.show .svc-modal-panel,
  .sheet.show .cat-modal-panel { transform: translateY(0); }
  .sheet .cat-modal-panel { padding: 0 20px 30px; }
  .sheet .cat-modal-panel .eyebrow { margin-top: 38px; }
  .svc-grabber {
    display: block;
    position: absolute;
    top: 10px; left: 50%;
    /* widened at rest, squashes down as the sheet settles (translate composed) */
    transform: translateX(-50%) scaleX(1.6);
    transition: transform 0.25s var(--ease-out);
    width: 44px; height: 5px;
    border-radius: 99px;
    background: var(--g-200);
    z-index: 2;
  }
  .sheet.show .svc-grabber {
    transform: translateX(-50%) scaleX(1);
    transition: transform 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.08) 0.35s;
  }
  .svc-modal-media { aspect-ratio: 16 / 8.4; margin-top: 6px; }
  .svc-modal-body { padding: 20px 22px 28px; }
  /* sheet content starts once the sheet has mostly traveled (~0.55s trip) */
  .svc-modal.show .svc-modal-body > *:nth-child(1) { transition-delay: 0.25s; }
  .svc-modal.show .svc-modal-body > *:nth-child(2) { transition-delay: 0.33s; }
  .svc-modal.show .svc-modal-body > *:nth-child(3) { transition-delay: 0.41s; }
  .svc-modal.show .svc-modal-body > *:nth-child(4) { transition-delay: 0.49s; }
  .svc-modal.show .svc-modal-body > *:nth-child(5) { transition-delay: 0.58s; }
  .svc-modal.show .svc-modal-body > *:nth-child(6) { transition-delay: 0.67s; }

  /* timeline ~30% shorter on mobile: less dead scroll between steps */
  .tl-step { padding-bottom: clamp(110px, 26vh, 250px); }
  .tl-step:last-child { padding-bottom: 5vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-building { transform: translateX(0); }
  .hero-copy > * { opacity: 1; transform: none; }
  .svc-modal-media img { transform: none; }
  .svc-modal-body > * { opacity: 1; transform: none; }
  .svc-modal .cat-modal-close { opacity: 1; transform: none; }
  .svc-grabber { transform: translateX(-50%); }
}
