/* ==========================================================================
   Singh Dynamics — premium landscape studio
   Single committed visual world: deep forest ground, warm ivory light.
   Deliberately single-theme. Every colour is explicit so the page holds
   on any host background.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  /* Ground + surface */
  --soil:        #0C120E;   /* near-black, green bias */
  --forest:      #16291E;   /* deep forest green */
  --forest-lift: #1E3527;   /* raised forest panel */
  --ivory:       #F2EDE1;   /* warm ivory */
  --limestone:   #E3DCCB;   /* secondary warm surface */
  --charcoal:    #191A16;   /* charcoal black */

  /* Ink */
  --ink-on-dark:     #F2EDE1;
  --ink-on-dark-dim: #B6BFB4;
  --ink-on-light:     #191A16;
  --ink-on-light-dim: #5F645B;

  /* Neutral + accent */
  --stone:  #7C8079;        /* green-biased stone grey */
  --gold:   #A98A4B;        /* subtle metallic gold */
  --gold-lift: #C8AC72;

  /* Hairlines */
  --rule-dark:  rgba(242, 237, 225, 0.14);
  --rule-light: rgba(25, 26, 22, 0.14);

  /* Type */
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
  --step-2:  clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-3:  clamp(1.45rem, 1.3rem + 0.8vw, 1.95rem);
  --step-4:  clamp(1.75rem, 1.5rem + 1.2vw, 2.4rem);
  --step-5:  clamp(2rem, 1.65rem + 1.6vw, 2.9rem);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --band: clamp(3.25rem, 6vw, 6rem);
  --measure: 34rem;
  --max: 84rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--soil);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--soil);
  color: var(--ink-on-dark);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
  font-synthesis: none;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

/* Was the editorial serif. Now a plain working headline. */
.serif {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--gold-lift);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--gold); color: var(--soil); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ivory); color: var(--soil);
  padding: 0.7rem 1.1rem; font-size: var(--step--1);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Layout primitives ---------- */

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

.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(2.75rem, 5vw, 5rem); }

.band--light { background: var(--ivory); color: var(--ink-on-light); }
.band--limestone { background: var(--limestone); color: var(--ink-on-light); }
.band--forest { background: var(--forest); color: var(--ink-on-dark); }
.band--soil { background: var(--soil); color: var(--ink-on-dark); }

.band--light .dim, .band--limestone .dim { color: var(--ink-on-light-dim); }
.dim { color: var(--ink-on-dark-dim); }

.measure { max-width: var(--measure); }
.measure-wide { max-width: 48rem; }

.stack { display: flex; flex-direction: column; }
.stack-xs { gap: 0.5rem; }
.stack-s  { gap: 0.9rem; }
.stack-m  { gap: 1.5rem; }
.stack-l  { gap: 2.5rem; }
.stack-xl { gap: clamp(2.5rem, 5vw, 4.5rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.band--light .eyebrow, .band--limestone .eyebrow { color: #8A6F35; }

.rule { height: 1px; background: var(--rule-dark); border: 0; margin: 0; }
.band--light .rule, .band--limestone .rule { background: var(--rule-light); }

.lede { font-size: var(--step-1); line-height: 1.5; font-weight: 300; }

/* Editorial split: label column + content column, deliberately asymmetric */
.split {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 62rem) { .split { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.5rem;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color .45s cubic-bezier(.2,.7,.2,1),
              color .45s cubic-bezier(.2,.7,.2,1),
              border-color .45s cubic-bezier(.2,.7,.2,1);
}
.btn--solid { background: var(--ivory); border-color: var(--ivory); color: var(--soil); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--gold-lift); border-color: var(--gold-lift); color: var(--soil); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ivory); border-color: var(--ivory); color: var(--soil); }
.band--light .btn--solid, .band--limestone .btn--solid { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.band--light .btn--solid:hover, .band--limestone .btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--soil); }
.band--light .btn--ghost:hover, .band--limestone .btn--ghost:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

/* Understated text link with a rule that draws in */
.tlink {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 0.35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size .5s cubic-bezier(.2,.7,.2,1), color .3s;
}
@media (prefers-reduced-motion: no-preference) {
  .tlink { background-size: 2.2rem 1px; }
  .tlink:hover, .tlink:focus-visible { background-size: 100% 1px; }
}
.tlink .arw { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tlink:hover .arw { transform: translateX(0.35rem); }

/* ---------- Placeholder plates ----------
   Art-directed stand-ins. The concentric rings read as survey contour
   lines, which is how a site plan actually arrives. Every plate is one
   line to swap for a photograph: replace the element with <img>.
   ------------------------------------------------------------------ */

.plate {
  position: relative;
  overflow: hidden;
  background-color: var(--forest);
  isolation: isolate;
}
.plate::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(ellipse 130% 90% at 28% 72%,
      rgba(0,0,0,0) 0 26px, rgba(169,138,75,0.13) 26px 27px),
    radial-gradient(ellipse 90% 70% at 74% 18%, rgba(242,237,225,0.14), rgba(0,0,0,0) 62%),
    linear-gradient(168deg, #24402E 0%, #16291E 46%, #0B110D 100%);
  z-index: -2;
}
.plate::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(46deg,
    rgba(255,255,255,0.022) 0 1px, rgba(0,0,0,0) 1px 4px);
  z-index: -1;
}

.plate--b::before {
  background-image:
    repeating-radial-gradient(ellipse 100% 120% at 78% 30%,
      rgba(0,0,0,0) 0 20px, rgba(242,237,225,0.09) 20px 21px),
    radial-gradient(ellipse 70% 90% at 20% 80%, rgba(169,138,75,0.20), rgba(0,0,0,0) 65%),
    linear-gradient(20deg, #0B110D 0%, #1E3527 58%, #2C4936 100%);
}
.plate--c::before {
  background-image:
    repeating-radial-gradient(ellipse 150% 70% at 50% 100%,
      rgba(0,0,0,0) 0 32px, rgba(169,138,75,0.16) 32px 33px),
    linear-gradient(200deg, #3A4A3B 0%, #1B2620 55%, #0C120E 100%);
}
.plate--d::before {
  background-image:
    repeating-radial-gradient(ellipse 80% 140% at 12% 40%,
      rgba(0,0,0,0) 0 22px, rgba(124,128,121,0.22) 22px 23px),
    radial-gradient(ellipse 80% 60% at 88% 80%, rgba(242,237,225,0.10), rgba(0,0,0,0) 60%),
    linear-gradient(140deg, #2A2E29 0%, #14201A 60%, #0C120E 100%);
}
.plate--e::before {
  background-image:
    repeating-radial-gradient(ellipse 120% 100% at 62% 12%,
      rgba(0,0,0,0) 0 18px, rgba(169,138,75,0.11) 18px 19px),
    linear-gradient(10deg, #0C120E 0%, #16291E 40%, #46503C 100%);
}
.plate--f::before {
  background-image:
    repeating-radial-gradient(ellipse 200% 60% at 40% 46%,
      rgba(0,0,0,0) 0 24px, rgba(242,237,225,0.07) 24px 25px),
    radial-gradient(ellipse 50% 80% at 70% 60%, rgba(169,138,75,0.26), rgba(0,0,0,0) 70%),
    linear-gradient(255deg, #1A2E22 0%, #0C120E 70%);
}
.plate--stone::before {
  background-image:
    repeating-radial-gradient(ellipse 110% 90% at 34% 66%,
      rgba(0,0,0,0) 0 28px, rgba(25,26,22,0.10) 28px 29px),
    linear-gradient(160deg, #E3DCCB 0%, #C8C1AF 60%, #A7A395 100%);
}

.plate--4x5  { aspect-ratio: 4 / 5; }
.plate--3x2  { aspect-ratio: 3 / 2; }
.plate--1x1  { aspect-ratio: 1 / 1; }
.plate--16x9 { aspect-ratio: 16 / 9; }
.plate--tall { aspect-ratio: 2 / 3; }

/* The honest label. Visible, small, and gone the moment a photo lands. */
.plate__tag {
  position: absolute;
  left: 0; bottom: 0;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(12, 18, 14, 0.72);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--rule-dark);
  border-right: 1px solid var(--rule-dark);
  max-width: 100%;
}
.plate__tag::before {
  content: "";
  width: 0.4rem; height: 0.4rem; flex: none;
  background: var(--gold-lift);
  transform: rotate(45deg);
}
.plate--stone .plate__tag { color: var(--ivory); }

/* Real photographs. */
.mast__bg img, .hero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ph { width: 100%; height: auto; display: block; object-fit: cover; }
.ph--3x2 { aspect-ratio: 3 / 2; }

/* An empty photo slot, labelled so it is obvious what belongs there. */
.slot {
  position: absolute; top: 0; right: 0; z-index: 3;
  max-width: min(22rem, 70%);
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  background: rgba(12, 18, 14, 0.82);
  border-left: 2px solid var(--gold);
  color: var(--ivory);
  pointer-events: none;
}
.slot strong { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.slot span { font-size: 0.76rem; line-height: 1.4; color: var(--ink-on-dark-dim); }
.hero__media { outline: 2px dashed rgba(201, 172, 114, 0.35); outline-offset: -2px; }

/* Inline "needs confirming" marker for contact details etc. */
.tbc {
  font-style: normal;
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 1px;
}
.tbc__note {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.1rem 0.4rem;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.hdr {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 90;
  background: rgba(12, 18, 14, 0);
  border-bottom: 1px solid rgba(242, 237, 225, 0);
  transition: background-color .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
.hdr.is-stuck {
  background: rgba(12, 18, 14, 0.9);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--rule-dark);
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}
.mark {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--display);
  letter-spacing: 0.02em;
}
.mark__a { font-size: 1.22rem; font-weight: 600; }
.mark__b {
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__link {
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  position: relative;
  color: var(--ink-on-dark);
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--gold-lift);
  transition: width .45s cubic-bezier(.2,.7,.2,1);
}
.nav__link:hover::after, .nav__link:focus-visible::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--gold-lift); }
.nav__link[aria-current="page"]::after { width: 100%; background: var(--gold); }
.nav__cta {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--gold); border: 1px solid var(--gold); color: var(--soil);
  padding: 0.65rem 1.1rem;
  transition: background-color .4s, color .4s;
}
.nav__cta:hover, .nav__cta:focus-visible { background: var(--gold-lift); border-color: var(--gold-lift); }

.nav__tel {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__tel:hover { color: var(--gold-lift); }
.nav__tel .tbc__note { display: none; }

.burger {
  display: none;
  background: none; border: 1px solid var(--rule-dark);
  color: inherit; cursor: pointer;
  padding: 0.7rem 0.9rem;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}

@media (max-width: 68rem) {
  .nav { display: none; }
  .burger { display: inline-block; }
}

.mnav {
  border-top: 1px solid var(--rule-dark);
  background: rgba(12, 18, 14, 0.97);
  backdrop-filter: blur(14px);
}
.mnav__in { display: flex; flex-direction: column; padding-block: 1rem 2rem; }
.mnav a {
  font-size: var(--step-1);
  font-weight: 500;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.mnav a[aria-current="page"] { color: var(--gold-lift); }
.mnav .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ---------- Hero ----------
   .hero__media is a 16:9 slot. Drop an <img> inside it and it is done.
   ------------------------------------------------------------------ */

.hero { position: relative; background: var(--soil); }

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--forest);
}
.hero__media > img,
.hero__media > .plate { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,18,14,0.45) 0%,
              rgba(12,18,14,0.05) 40%, rgba(12,18,14,0.35) 100%);
  pointer-events: none;
}

.hero__in .eyebrow { color: var(--gold-lift); }
.hero h1, .hero .lede { text-shadow: 0 1px 24px rgba(12,18,14,0.55); }

.hero__in { padding-block: clamp(1.75rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem); }

.hero h1 { font-size: var(--step-5); max-width: 22ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink-on-dark-dim);
}

/* On a wide screen the photo sits behind the text. On a phone it sits above
   it, because a 16:9 frame is far too short to hold a headline at 390px. */
@media (min-width: 62rem) {
  .hero { display: grid; }
  .hero__media, .hero__in { grid-area: 1 / 1; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(12,18,14,0.58) 0%, rgba(12,18,14,0.20) 42%,
                  rgba(12,18,14,0) 66%),
      linear-gradient(180deg, rgba(12,18,14,0.22) 0%,
                  rgba(12,18,14,0.04) 28%, rgba(12,18,14,0.80) 100%);
  }
  .hero__in { align-self: end; z-index: 2; padding-block: 0 clamp(2.5rem, 4vw, 3.5rem); }
}

/* Interior page header */
.mast {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 3.5vw, 2.75rem);
  overflow: hidden;
}
.mast__bg { position: absolute; inset: 0; z-index: 0; }
.mast__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,18,14,0.72), rgba(12,18,14,0.88));
}
.mast h1 { font-size: var(--step-4); max-width: 28ch; }
.mast__in { position: relative; z-index: 2; }

/* ---------- Feature rows (alternating editorial) ---------- */

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.feat--flip > :first-child { order: 2; }
@media (max-width: 62rem) {
  .feat { grid-template-columns: 1fr; gap: 1.75rem; }
  .feat--flip > :first-child { order: 0; }
}

/* ---------- Project index ---------- */

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 54rem) { .pgrid { grid-template-columns: 1fr; } }

.pcard { display: flex; flex-direction: column; gap: 1.1rem; }
.pcard__media { position: relative; overflow: hidden; }
.pcard__media .plate { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: no-preference) {
  .pcard:hover .pcard__media .plate, .pcard:focus-within .pcard__media .plate { transform: scale(1.02); }
}
.pcard h3 { font-size: var(--step-1); }
.pcard__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
  font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-on-dark-dim);
}
.band--light .pcard__meta, .band--limestone .pcard__meta { color: var(--ink-on-light-dim); }

.pcard--lead { grid-column: 1 / -1; }
.pcard--lead h3 { font-size: var(--step-2); }

/* ---------- Services ---------- */

.svc { border-top: 1px solid var(--rule-light); }
.svc__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 20rem) minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--rule-light);
}
.svc__row h3 { font-size: var(--step-1); }
.svc__ix {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.2em; color: var(--gold);
  padding-top: 0.55rem;
}
.svc__spec {
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: var(--step--1); color: var(--ink-on-light-dim);
  font-variant-numeric: tabular-nums;
}
.svc__spec dt { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.64rem; color: var(--gold); }
.svc__spec dd { margin: 0 0 0.55rem; }
.svc__cta { padding-top: 0.35rem; }
@media (max-width: 74rem) {
  .svc__row { grid-template-columns: 3rem minmax(0, 1fr); }
  .svc__row > :nth-child(3) { grid-column: 2; }
  .svc__cta { grid-column: 2; }
}

/* What each service includes */
.incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.incl li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-top: 1px solid var(--rule-light);
  position: relative;
  font-size: var(--step-0);
}
.incl li:last-child { border-bottom: 1px solid var(--rule-light); }
.incl li::before {
  content: "";
  position: absolute; left: 0; top: 1.15rem;
  width: 0.45rem; height: 1px; background: var(--gold);
}

/* ---------- Before / after slider ----------
   The range input IS the control, so it works with a mouse, a finger and the
   arrow keys, and screen readers announce it.
   ------------------------------------------------------------------ */

.ba { position: relative; }
.ba__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--forest);
  touch-action: pan-y;
}
@media (min-width: 48rem) { .ba__frame { aspect-ratio: 16 / 9; } }

.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__layer--after { clip-path: inset(0 0 0 var(--pos, 50%)); }

.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px; margin-left: -1px;
  background: var(--ivory);
  pointer-events: none;
  box-shadow: 0 0 18px rgba(12, 18, 14, 0.75);
}
.ba__handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 2.9rem; height: 2.9rem;
  transform: translate(-50%, -50%);
  border: 2px solid var(--ivory);
  border-radius: 50%;
  background: rgba(12, 18, 14, 0.4);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 18px rgba(12, 18, 14, 0.6);
}
.ba__handle::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 1.6rem; height: 1.6rem;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EDE1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 8 5.5 12l4 4'/%3E%3Cpath d='M14.5 8l4 4-4 4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.ba__pin {
  position: absolute; top: 0;
  z-index: 2;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(12, 18, 14, 0.78); color: var(--ivory);
  padding: 0.42rem 0.8rem;
  pointer-events: none;
}
.ba__pin--l { left: 0; }
.ba__pin--r { right: 0; }

/* The input covers the frame and is invisible, so the whole image is draggable */
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
  background: none;
  z-index: 3;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 3rem; height: 100%; }
.ba__range::-moz-range-thumb { width: 3rem; height: 100%; border: 0; opacity: 0; }
.ba__range:focus-visible ~ .ba__handle::after {
  border-color: var(--gold-lift); border-width: 3px;
}
.ba__hint {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--ink-on-dark-dim);
}
.band--light .ba__hint, .band--limestone .ba__hint { color: var(--ink-on-light-dim); }

/* ---------- Before / after, shown plainly side by side ---------- */

.bapair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule-dark); }
@media (max-width: 44rem) { .bapair { grid-template-columns: 1fr; } }
.bapair figure { margin: 0; position: relative; }
.bapair figcaption {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(12,18,14,0.78); color: var(--ivory);
  padding: 0.4rem 0.75rem;
}

.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 54rem) { .jobs { grid-template-columns: 1fr; } }
.job { display: flex; flex-direction: column; gap: 1rem; }
.job h3 { font-size: var(--step-1); }
.job__meta {
  font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-on-dark-dim);
}
.band--light .job__meta, .band--limestone .job__meta { color: var(--ink-on-light-dim); }

/* ---------- Quotes ---------- */

.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 62rem) { .qgrid { grid-template-columns: 1fr; } }
.quote { display: flex; flex-direction: column; gap: 1.1rem; }
.quote blockquote {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.55;
}
.quote figcaption {
  font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-on-dark-dim);
}
.band--light .quote figcaption { color: var(--ink-on-light-dim); }

/* ---------- Process (a real sequence, so it is numbered) ---------- */

.proc { display: grid; gap: 0; }
.proc__step {
  display: grid;
  grid-template-columns: minmax(0, 3.5rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.6rem);
  border-top: 1px solid var(--rule-dark);
  align-items: baseline;
}
.proc__step:last-child { border-bottom: 1px solid var(--rule-dark); }
.proc__n {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.proc__step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
@media (max-width: 48rem) {
  .proc__step { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Principles / value grid ---------- */

.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (max-width: 62rem) { .vgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .vgrid { grid-template-columns: 1fr; } }
.vitem { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1.2rem; border-top: 1px solid var(--rule-dark); }
.band--light .vitem, .band--limestone .vitem { border-top-color: var(--rule-light); }
.vitem h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 500; letter-spacing: 0; line-height: 1.3; }

/* ---------- Specs table (project detail) ---------- */

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.75rem 2.5rem; }
.specs div { display: flex; flex-direction: column; gap: 0.35rem; border-top: 1px solid var(--rule-dark); padding-top: 0.9rem; }
.band--light .specs div { border-top-color: var(--rule-light); }
.specs dt { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.specs dd { margin: 0; font-size: var(--step-0); font-variant-numeric: tabular-nums; }

/* ---------- Singh Websites (the technological cousin) ---------- */

.tech {
  background:
    linear-gradient(rgba(12,18,14,0.94), rgba(12,18,14,0.94)),
    repeating-linear-gradient(0deg, rgba(169,138,75,0.10) 0 1px, rgba(0,0,0,0) 1px 3.5rem),
    repeating-linear-gradient(90deg, rgba(169,138,75,0.10) 0 1px, rgba(0,0,0,0) 1px 3.5rem);
  color: var(--ink-on-dark);
}
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
@media (max-width: 62rem) { .tgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .tgrid { grid-template-columns: 1fr; } }
.titem {
  background: rgba(12,18,14,0.6);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background-color .5s;
}
.titem:hover { background: rgba(30, 53, 39, 0.75); }
.titem h3 { font-family: var(--sans); font-size: var(--step-0); font-weight: 500; letter-spacing: 0.02em; line-height: 1.35; }
.titem__k {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.22em; color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---------- Form ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; }
@media (max-width: 54rem) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.field .hint { font-size: var(--step--1); color: var(--ink-on-dark-dim); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--ink-on-dark);
  background: rgba(242,237,225,0.045);
  border: 0;
  border-bottom: 1px solid var(--rule-dark);
  padding: 0.85rem 0.9rem;
  width: 100%;
  transition: border-color .35s, background-color .35s;
  border-radius: 0;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, rgba(0,0,0,0) 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, rgba(0,0,0,0) 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.8rem) 1.35rem;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field select option { background: var(--forest); color: var(--ivory); }
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--stone); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-lift);
  background: rgba(242,237,225,0.075);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--gold-lift); outline-offset: 2px;
}
.field .err { font-size: var(--step--1); color: #E4A87A; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--rule-dark);
  padding: 0.65rem 1rem;
  color: var(--ink-on-dark);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.radio-row label:hover { border-color: var(--stone); }
.radio-row input { accent-color: var(--gold-lift); width: auto; }
.radio-row input:checked + span { color: var(--gold-lift); }

.confirm {
  border: 1px solid var(--gold);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  background: rgba(169,138,75,0.07);
}
.confirm h2 { font-size: var(--step-2); }
.confirm__sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.1rem 2rem; }
.confirm__sum div { display: flex; flex-direction: column; gap: 0.25rem; }
.confirm__sum dt { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.confirm__sum dd { margin: 0; }

.notice {
  border-left: 2px solid var(--gold);
  padding: 0.9rem 0 0.9rem 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-on-dark-dim);
  background: rgba(169,138,75,0.06);
}
.band--light .notice, .band--limestone .notice { color: var(--ink-on-light-dim); }

/* ---------- Footer ---------- */

.ftr { background: var(--charcoal); color: var(--ink-on-dark); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (max-width: 62rem) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .ftr__top { grid-template-columns: 1fr; } }
.ftr h2 { font-size: var(--step-1); }
.ftr__col { display: flex; flex-direction: column; gap: 0.6rem; }
.ftr__col h3 { font-family: var(--sans); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.ftr__col a:hover { color: var(--gold-lift); }
.ftr__bot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--step--1);
  color: var(--ink-on-dark-dim);
}

/* ---------- Reveal on scroll ----------
   Applied by JS only to elements below the first screen, so nothing
   meant to be read is hidden in the first frame.
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="pending"] {
    opacity: 0;
    transform: translateY(0.9rem);
  }
  [data-reveal="in"] {
    opacity: 1;
    transform: none;
    transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1);
  }
}
