/* ==========================================================================
   KAYANTARAN – YOUR GREEN NEST
   site.css · shared design system. Loaded by every page.
   Page-only styles belong in that page's own stylesheet (home.css, …).

   COMPONENT INDEX
   --------------------------------------------------------------------------
   01 Tokens            :root custom properties (palette, type, spacing, motion)
   02 Base              reset, body, links, focus, selection
   03 Layout            .container (--narrow, --wide) · .section (--sand, --dark,
                        --clay, --tight, --flush-top, --flush-bottom) ·
                        .grid (--center, --end, --tight) + .col-1…12 (from
                        900px), .col-md-1…12 (from 600px), .start-1…12 ·
                        .stack (--xs, --sm, --lg, --xl) · .section-head
   04 Type              .eyebrow (--rule) · .display · .h2 · .h3 · .lead ·
                        .prose · .text-soft
   05 Actions           .btn (--ghost, --sm) · .link-arrow (--back)
   06 Logo              .logo, .logo__mark, .logo__name, .logo__tag
   07 Header            .skip-link · .site-header (--on-dark) · .site-nav ·
                        .nav-toggle · .mobile-menu
   08 Footer            .site-footer
   09 Page hero         .page-hero (--wide) with __text, __actions, __media
   10 Media             .media (--arch, --portrait, --tall, --landscape,
                        --wide, --square) · .caption · .tag (--solid, --sage)
   11 Project card      .project-card (--feature)
   12 Before/after      .ba-slider
   13 Lightbox          a[data-lightbox] → .lightbox (built by site.js)
   14 Marquee           .marquee
   15 Stats             .stats > .stat
   16 Testimonial       .testimonial
   17 Process           .process (--columns) > .process-step
   18 CTA band          .cta-band
   19 Forms             .form · .form__row · .field (--error, --success) ·
                        .field__label · .field__input · .field__hint ·
                        .field__error · .form__message (--success, --error)
   20 Motion            .reveal (+ --i stagger) · .reveal--curtain ·
                        .enter · .enter--curtain
   21 Utilities         .visually-hidden · .rule · .on-dark · .grain

   Each component section below opens with a comment showing its markup.

   State classes set by site.js: html.js, html.is-locked, .is-visible,
   .is-scrolled, .is-hidden, .is-menu-open, .is-open, .is-ready, .is-dragging,
   .is-loading.

   Contact details: any element with data-contact="phone|email|whatsapp|
   instagram|address" is filled from assets/js/site-config.js. Write the real
   value and href in the HTML too, so it works without JavaScript:
     <a href="tel:+919028581646" data-contact="phone">+91 90285 81646</a>
   An empty value in site-config.js hides the item (its <li>, or the nearest
   [data-contact-item] wrapper). data-contact-label="…" keeps custom link text.

   Contrast rules: gold is for dark backgrounds and decorative hairlines only.
   On light backgrounds use --terracotta for large display type only, and
   --terracotta-ink / --sage-ink for small text and links.
   ========================================================================== */

@view-transition { navigation: auto; }


/* 01 TOKENS ================================================================ */

:root {
  /* Brand palette (fixed) */
  --clay: #3B1F10;
  --walnut: #3C2415;
  --deep: #1A0F08;
  --terracotta: #C4724A;
  --gold: #D4A853;
  --sage: #7A9E87;
  --sand: #F0E0C8;
  --offwhite: #FAF6F0;
  --charcoal: #2D2D2D;

  /* Derived, for contrast */
  --terracotta-ink: #9A4F2C;   /* small text and links on light */
  --sage-ink: #4F6F5B;         /* small text on light */
  --clay-soft: #6B5244;        /* secondary text on light, 6.7:1 on offwhite */
  --sand-tint: #F6EEE1;        /* pale band background */
  --error: #A3341F;

  /* Theme roles. Dark contexts (.section--dark, .cta-band, .site-footer,
     .on-dark) reassign these, and every component reads them. */
  --bg: var(--offwhite);
  --fg: var(--clay);
  --fg-soft: var(--clay-soft);
  --accent: var(--terracotta);        /* italic emphasis in large headings */
  --accent-ink: var(--terracotta-ink);/* links and small accents */
  --hairline: rgba(59, 31, 16, .16);
  --hairline-strong: rgba(59, 31, 16, .34);
  --hairline-gold: rgba(212, 168, 83, .75);
  --focus: var(--terracotta-ink);
  --btn-bg: var(--clay);
  --btn-fg: var(--offwhite);
  --btn-bg-hover: var(--terracotta-ink);
  --btn-fg-hover: var(--offwhite);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(3.25rem, 1.7rem + 6.6vw, 8.5rem);
  --fs-h2: clamp(2.375rem, 1.5rem + 3.6vw, 4.75rem);
  --fs-h3: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  --fs-body: clamp(1rem, .97rem + .14vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-eyebrow: .72rem;

  /* Space and layout */
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --container: 82.5rem;
  --grid-gap: clamp(1rem, 2vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 10rem);
  --header-h: 4.5rem;
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .9s;

  /* Film grain for dark sections */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 900px) {
  :root { --header-h: 5.75rem; }
}


/* 02 BASE ================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }
:where(ul, ol)[class] { margin: 0; padding: 0; list-style: none; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }

::selection { background: var(--sand); color: var(--clay); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
[tabindex="-1"]:focus-visible { outline: none; }


/* 03 LAYOUT ================================================================ */

/* .container: centred column with fluid side gutters. */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 52rem; }
.container--wide { --container: 100rem; }

/* .section: vertical rhythm for a page band.
   <section class="section section--sand"> … </section> */
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .55); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--sand { --bg: var(--sand-tint); background-color: var(--bg); }

/* Dark contexts. Anything inside reads the reassigned theme roles. */
.section--dark,
.section--clay,
.cta-band,
.site-footer,
.on-dark {
  --bg: var(--deep);
  --fg: var(--sand);
  --fg-soft: rgba(240, 224, 200, .72);
  --accent: var(--gold);
  --accent-ink: var(--gold);
  --hairline: rgba(240, 224, 200, .16);
  --hairline-strong: rgba(240, 224, 200, .36);
  --focus: var(--gold);
  --btn-bg: var(--gold);
  --btn-fg: var(--deep);
  --btn-bg-hover: var(--sand);
  --btn-fg-hover: var(--deep);
  background-color: var(--bg);
  color: var(--fg);
}
.section--clay,
.cta-band { --bg: var(--clay); }

/* Faint film grain on dark bands. Add .grain to any other dark block. */
.section--dark,
.section--clay,
.cta-band,
.site-footer,
.grain { position: relative; isolation: isolate; }
.section--dark::before,
.section--clay::before,
.cta-band::before,
.site-footer::before,
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: .07;
  pointer-events: none;
}

/* .grid: 12 columns. Children span all 12 until told otherwise.
   .col-md-N applies from 600px, .col-N and .start-N from 900px.
   <div class="grid"><div class="col-5">…</div><div class="col-6 start-7">…</div></div> */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(2rem, 4vw, 3.5rem);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }
.grid > .eyebrow { align-self: start; }
.grid--center { align-items: center; }
.grid--end { align-items: end; }
.grid--tight { row-gap: var(--grid-gap); }

@media (min-width: 600px) {
  .col-md-1 { grid-column: auto / span 1; }
  .col-md-2 { grid-column: auto / span 2; }
  .col-md-3 { grid-column: auto / span 3; }
  .col-md-4 { grid-column: auto / span 4; }
  .col-md-5 { grid-column: auto / span 5; }
  .col-md-6 { grid-column: auto / span 6; }
  .col-md-7 { grid-column: auto / span 7; }
  .col-md-8 { grid-column: auto / span 8; }
  .col-md-9 { grid-column: auto / span 9; }
  .col-md-10 { grid-column: auto / span 10; }
  .col-md-11 { grid-column: auto / span 11; }
  .col-md-12 { grid-column: auto / span 12; }
}
@media (min-width: 900px) {
  .col-1 { grid-column: auto / span 1; }
  .col-2 { grid-column: auto / span 2; }
  .col-3 { grid-column: auto / span 3; }
  .col-4 { grid-column: auto / span 4; }
  .col-5 { grid-column: auto / span 5; }
  .col-6 { grid-column: auto / span 6; }
  .col-7 { grid-column: auto / span 7; }
  .col-8 { grid-column: auto / span 8; }
  .col-9 { grid-column: auto / span 9; }
  .col-10 { grid-column: auto / span 10; }
  .col-11 { grid-column: auto / span 11; }
  .col-12 { grid-column: auto / span 12; }
  .start-1 { grid-column-start: 1; }
  .start-2 { grid-column-start: 2; }
  .start-3 { grid-column-start: 3; }
  .start-4 { grid-column-start: 4; }
  .start-5 { grid-column-start: 5; }
  .start-6 { grid-column-start: 6; }
  .start-7 { grid-column-start: 7; }
  .start-8 { grid-column-start: 8; }
  .start-9 { grid-column-start: 9; }
  .start-10 { grid-column-start: 10; }
  .start-11 { grid-column-start: 11; }
  .start-12 { grid-column-start: 12; }
}

/* .stack: even vertical spacing between direct children. */
.stack > * + * { margin-block-start: var(--stack, 1.5rem); }
.stack--xs { --stack: .5rem; }
.stack--sm { --stack: 1rem; }
.stack--lg { --stack: 2.5rem; }
.stack--xl { --stack: clamp(3rem, 6vw, 5rem); }

/* .section-head: the heading row that opens a section.
   <header class="section-head">
     <div><p class="eyebrow">…</p><h2 class="h2">… <em>…</em></h2></div>
     <p class="section-head__aside">optional short text or link</p>
   </header> */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head__aside { max-width: 26rem; color: var(--fg-soft); }


/* 04 TYPE ================================================================== */

/* .eyebrow: small uppercase label. .eyebrow--rule adds a gold hairline. */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.eyebrow--rule { display: flex; align-items: center; gap: 1rem; }
.eyebrow--rule::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: var(--hairline-gold);
}

/* Headings. Put ONE italic word in <em> per heading. */
.display,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 300;
  text-wrap: balance;
  font-kerning: normal;
}
.display { font-size: var(--fs-display); line-height: .94; letter-spacing: -.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.015em; }
.h3 { font-size: var(--fs-h3); line-height: 1.14; font-weight: 400; letter-spacing: -.005em; }

.display em,
.h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.h3 em { font-style: italic; color: var(--accent-ink); }

/* .lead: intro paragraph. */
.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.55;
  max-width: 38rem;
  text-wrap: pretty;
}

.text-soft { color: var(--fg-soft); }

/* .prose: long-form text block. */
.prose { max-width: 40rem; text-wrap: pretty; }
.prose > * + * { margin-block-start: 1.25em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.14;
  margin-block-start: 2em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-block-start: 1.75em;
}
.prose h2 em, .prose h3 em { font-style: italic; color: var(--accent-ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; }
.prose a:hover { color: var(--fg); }
.prose strong { font-weight: 500; }
.prose ul, .prose ol { padding-inline-start: 1.25em; }
.prose li + li { margin-block-start: .5em; }
.prose li::marker { color: var(--accent-ink); }
.prose blockquote {
  padding-inline-start: 1.5rem;
  border-inline-start: 1px solid var(--hairline-gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
}


/* 05 ACTIONS =============================================================== */

/* .btn: primary action. Clay on light, gold inside dark contexts.
   <a class="btn" href="contact.html">Start a project</a>
   <a class="btn btn--ghost" href="projects.html">See our projects</a> */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.375rem;
  padding: .75rem 1.9rem;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
}
.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--fg);
}
.btn--ghost:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.btn--sm { min-height: 2.75rem; padding: .5rem 1.4rem; font-size: .72rem; }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* .link-arrow: text link with a hairline arrow that slides on hover.
   <a class="link-arrow" href="projects.html">All projects</a>
   .link-arrow--back flips the arrow to the left, for "Back to …" links. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding-block: .4rem;
  border-bottom: 1px solid var(--hairline-strong);
  color: var(--fg);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.link-arrow::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: .75rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h26.5M21.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h26.5M21.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .45s var(--ease-out);
}
.link-arrow:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.link-arrow:hover::after { transform: translateX(.4rem); }
.link-arrow--back { flex-direction: row-reverse; }
.link-arrow--back::after { transform: scaleX(-1); }
.link-arrow--back:hover::after { transform: scaleX(-1) translateX(.4rem); }


/* 06 LOGO ================================================================== */

/* <a class="logo" href="index.html" aria-label="Kayantaran – Your Green Nest, home">
     <svg class="logo__mark" …> … </svg>
     <span class="logo__text"><span class="logo__name">Kayantaran</span>
       <span class="logo__tag">Your Green Nest</span></span>
   </a> */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none;
}
.logo__mark { flex: none; width: 2.25rem; height: 2.25rem; overflow: visible; }
.logo__leaf { fill: var(--logo-leaf, var(--sage)); }
.logo__stem { fill: none; stroke: var(--logo-leaf, var(--sage)); stroke-width: 1.1; stroke-linecap: round; }
.logo__disc { fill: var(--logo-disc, var(--sand)); stroke: var(--logo-ring, var(--gold)); stroke-width: .7; }
.logo__dot { fill: var(--logo-dot, var(--sage-ink)); }
.logo__text { display: grid; gap: .32rem; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.logo__tag {
  font-family: var(--font-body);
  font-size: .5rem;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
@media (max-width: 420px) {
  .logo { gap: .55rem; }
  .logo__mark { width: 2rem; height: 2rem; }
  .logo__name { font-size: 1.12rem; letter-spacing: .16em; }
  .logo__tag { letter-spacing: .32em; }
}
@media (min-width: 900px) {
  .logo__mark { width: 2.6rem; height: 2.6rem; }
  .logo__name { font-size: 1.42rem; }
  .logo__tag { font-size: .53rem; }
}


/* 07 HEADER ================================================================ */

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 300;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--offwhite);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }

/* .site-header: fixed bar. Transparent at the top of the page, solid and
   blurred once scrolled (.is-scrolled), slides away on scroll down
   (.is-hidden). Add .site-header--on-dark on a page whose first section is
   dark, so the bar starts with light text. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--fg);
  view-transition-name: site-header;
  transition: transform .55s var(--ease), color .3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 240, .92);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-102%); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem clamp(1rem, 2.5vw, 2.5rem);
  height: var(--header-h);
  transition: height .4s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: calc(var(--header-h) - .75rem); }

.site-header--on-dark:not(.is-scrolled),
.site-header.is-menu-open {
  --fg: var(--sand);
  --fg-soft: rgba(240, 224, 200, .72);
  --hairline-strong: rgba(240, 224, 200, .36);
  --focus: var(--gold);
  --btn-bg: var(--gold);
  --btn-fg: var(--deep);
  --btn-bg-hover: var(--sand);
  --btn-fg-hover: var(--deep);
}
.site-header.is-menu-open { transform: none; }
.site-header.is-menu-open::before { opacity: 0; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.site-header__cta { flex: none; white-space: nowrap; }
.site-nav__list a {
  position: relative;
  display: block;
  padding-block: .6rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  inset: auto 0 .3rem 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current]::after { transform: scaleX(1); transform-origin: left center; }
.site-nav__list a[aria-current]::after { background: var(--accent); }

/* Menu toggle. Shown only when JavaScript is running and the bar is narrow. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  margin-right: -.25rem;
  padding: .25rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav-toggle__bars { position: relative; width: 1.75rem; height: .625rem; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out), bottom .45s var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: calc(50% - .5px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: calc(50% - .5px); transform: rotate(-45deg); }

@media (max-width: 899.98px) {
  .site-header__inner { column-gap: 1rem; }
  .site-header .logo { flex: none; }
  .js .nav-toggle { display: inline-flex; flex: none; }
  .js .site-nav,
  .js .site-header__cta { display: none; }
  /* Without JavaScript the full nav stays visible and wraps under the logo,
     and the bar sits in the page flow instead of floating over it. */
  html:not(.js) { --header-h: 0rem; }
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: .85rem; }
  html:not(.js) .site-nav { margin-left: 0; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; gap: .25rem 1.25rem; }
  html:not(.js) .site-header__cta { display: none; }
}

@media (max-width: 339.98px) {
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* .mobile-menu: full-screen menu, sibling of .site-header. Opened by
   .nav-toggle (site.js toggles [hidden] and .is-open). */
.mobile-menu {
  --bg: var(--deep);
  --fg: var(--sand);
  --fg-soft: rgba(240, 224, 200, .72);
  --accent: var(--gold);
  --accent-ink: var(--gold);
  --hairline: rgba(240, 224, 200, .16);
  --hairline-strong: rgba(240, 224, 200, .36);
  --focus: var(--gold);
  --btn-bg: var(--gold);
  --btn-fg: var(--deep);
  --btn-bg-hover: var(--sand);
  --btn-fg-hover: var(--deep);
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(26, 15, 8, .93), rgba(26, 15, 8, .93)),
    var(--grain) 0 0 / 220px 220px,
    var(--deep);
  color: var(--fg);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list { border-top: 1px solid var(--hairline); }
.mobile-menu__list li { border-bottom: 1px solid var(--hairline); }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: .55rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 11vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  text-decoration: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .6s var(--ease), transform .7s var(--ease-out), color .3s;
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; transform: none; }
.mobile-menu__list a:hover,
.mobile-menu__list a[aria-current] { color: var(--gold); font-style: italic; }
.mobile-menu__num {
  font-family: var(--font-body);
  font-size: .68rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--fg-soft);
}
.mobile-menu__foot { display: grid; gap: 1.75rem; margin-top: auto; }
.mobile-menu__foot .btn { justify-self: start; }
.mobile-menu__contact { display: grid; gap: .4rem; font-size: var(--fs-small); color: var(--fg-soft); }
.mobile-menu__contact a { text-decoration: none; }
.mobile-menu__contact a[href]:hover { color: var(--gold); }


/* 08 FOOTER ================================================================ */

.site-footer { padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem var(--grid-gap);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.site-footer__top > * { grid-column: 1 / -1; }
.site-footer__brand .logo { margin-bottom: 1.5rem; }
.site-footer__line { max-width: 22rem; color: var(--fg-soft); }
.site-footer .eyebrow { margin-bottom: 1.25rem; }
.site-footer__nav ul,
.site-footer__contact ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.site-footer__nav a:hover,
.site-footer__nav a[aria-current] { color: var(--gold); font-style: italic; }
.site-footer__contact li { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.site-footer__label {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.site-footer__contact li > :last-child { justify-self: start; }
.site-footer__contact a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer__contact a[href] { border-bottom: 1px solid var(--hairline-strong); transition: color .3s, border-color .3s; }
.site-footer__contact a[href]:hover { color: var(--gold); border-color: var(--gold); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: .8rem;
  color: var(--fg-soft);
}
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--gold); }
.site-footer__wordmark {
  margin-bottom: -.16em;
  font-family: var(--font-display);
  font-size: min(13.2vw, 12.1rem);
  font-weight: 300;
  line-height: .8;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(240, 224, 200, .07);
  user-select: none;
  pointer-events: none;
}
@media (min-width: 600px) {
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__nav { grid-column: span 5; }
  .site-footer__contact { grid-column: span 7; }
}
@media (min-width: 900px) {
  .site-footer__brand { grid-column: 1 / span 4; }
  .site-footer__nav { grid-column: 6 / span 2; }
  .site-footer__contact { grid-column: 8 / -1; }
}


/* 09 PAGE HERO ============================================================= */

/* .page-hero: the standard opening of every inner page.
   <section class="page-hero">
     <div class="container page-hero__inner">
       <div class="page-hero__text">
         <p class="eyebrow">Projects</p>
         <h1 class="display">Rooms we have <em>drawn</em>.</h1>
         <p class="lead">One or two sentences.</p>
       </div>
       <figure class="page-hero__media media media--arch">   (optional)
         <img src="…" alt="…" width="…" height="…" fetchpriority="high">
       </figure>
     </div>
   </section>
   .page-hero--wide puts the image full width under the text; pair it with
   .media--landscape or .media--wide. Text and image animate in on load with
   CSS only, so nothing here depends on JavaScript. */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 6.5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(2.5rem, 6vw, 4rem);
  align-items: end;
}
.page-hero__text,
.page-hero__media { grid-column: 1 / -1; min-width: 0; }
.page-hero__text > .eyebrow { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.page-hero__text > .lead { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero__text > .btn,
.page-hero__text > .link-arrow,
.page-hero__actions { margin-top: 2.25rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.page-hero__media { margin: 0; }
.page-hero__media.media--arch { max-width: 26rem; justify-self: end; width: 100%; }

@media (min-width: 900px) {
  .page-hero__text { grid-column: 1 / span 10; }
  .page-hero__inner:has(.page-hero__media) .page-hero__text { grid-column: 1 / span 7; }
  .page-hero__media { grid-column: 9 / -1; }
  .page-hero__media.media--arch { max-width: none; }
  .page-hero--wide .page-hero__inner:has(.page-hero__media) .page-hero__text { grid-column: 1 / span 10; }
  .page-hero--wide .page-hero__media { grid-column: 1 / -1; }
}
.page-hero--wide .page-hero__media { max-width: none; justify-self: stretch; }

.page-hero__text > * { animation: enter-rise 1s var(--ease-out) both; }
.page-hero__text > :nth-child(2) { animation-delay: .08s; }
.page-hero__text > :nth-child(3) { animation-delay: .16s; }
.page-hero__text > :nth-child(4) { animation-delay: .24s; }
.page-hero__text > :nth-child(n + 5) { animation-delay: .32s; }
.page-hero__media { animation: enter-curtain 1.4s var(--ease-out) .15s both; }


/* 10 MEDIA ================================================================= */

/* .media: image frame with a fixed aspect ratio and clipped overflow.
   <figure class="media media--arch"><img src="…" alt="…" width="…" height="…"></figure>
   Ratio modifiers: --portrait 3/4, --tall 2/3, --landscape 16/9, --wide 21/9,
   --square 1/1. Default is 4/3. Or set style="--ratio: 5/4".
   --arch rounds the top into a full arch and combines with any ratio. */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius);
  background: var(--sand);
}
.media > img,
.media > picture,
.media > picture > img,
.media > a,
.media > a > img,
.media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media img { transition: transform 1.4s var(--ease-out); }
.media--arch { --ratio: 3 / 4; border-radius: 999rem 999rem var(--radius) var(--radius); }
.media--portrait { --ratio: 3 / 4; }
.media--tall { --ratio: 2 / 3; }
.media--landscape { --ratio: 16 / 9; }
.media--wide { --ratio: 21 / 9; }
.media--square { --ratio: 1 / 1; }

a.media,
.media > a { cursor: pointer; }
a.media[data-lightbox],
.media > a[data-lightbox] { cursor: zoom-in; }
a.media:hover img,
.media > a:hover img,
a:hover > .media img { transform: scale(1.04); }
a.media:focus-visible { outline-offset: 5px; }

/* .caption: small line under an image. Say what the image is
   (photograph, 3D render, design concept). */
.caption {
  margin-top: .85rem;
  font-size: .8rem;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--fg-soft);
}

/* .tag: small pill. <span class="tag">Design concept</span>
   .tag--solid sits on photographs; .tag--sage marks completed work. */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .25rem .85rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--fg);
  font-size: .66rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--solid { border-color: transparent; background: var(--offwhite); color: var(--clay); }
.tag--sage { border-color: transparent; background: var(--sage-ink); color: var(--offwhite); }


/* 11 PROJECT CARD ========================================================== */

/* <article class="project-card">
     <div class="project-card__media media media--landscape">
       <img src="…" alt="…" width="…" height="…" loading="lazy" decoding="async">
       <span class="tag tag--solid project-card__tag">Design concept</span>
     </div>
     <div class="project-card__body">
       <h3 class="project-card__title"><a href="earth-and-light.html">Earth &amp; Light</a></h3>
       <p class="project-card__place">Noida</p>
       <p class="project-card__meta">Residence · 2025</p>
     </div>
   </article>
   The title link stretches over the whole card. Use .tag--sage for completed
   work. .project-card--feature enlarges the title. Any .media ratio works. */
.project-card { position: relative; display: block; container-type: inline-size; }
.project-card__media { margin: 0; }
.project-card__tag { position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.media--arch > .project-card__tag { top: auto; bottom: 1rem; }
.project-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem 1.5rem;
  align-items: baseline;
  padding-top: 1.1rem;
}
.project-card__title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.35rem + .9vw, 2.125rem);
  font-weight: 400;
  line-height: 1.1;
}
.project-card--feature .project-card__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); font-weight: 300; }
.project-card__title a { text-decoration: none; transition: color .35s var(--ease); }
.project-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.project-card__place { grid-column: 1; color: var(--fg-soft); font-size: .95rem; }
.project-card__meta {
  grid-column: 2;
  grid-row: 1;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-soft);
}
.project-card:hover .project-card__media img,
.project-card:focus-within .project-card__media img { transform: scale(1.04); }
.project-card:hover .project-card__title a { color: var(--accent-ink); }
.project-card__title a:focus-visible { outline: none; }
.project-card:has(.project-card__title a:focus-visible) .project-card__media {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
@container (max-width: 23rem) {
  .project-card__body { grid-template-columns: minmax(0, 1fr); }
  .project-card__meta { grid-column: 1; grid-row: auto; margin-top: .4rem; }
}


/* 12 BEFORE / AFTER ======================================================== */

/* <div class="ba-slider" data-ba-slider>
     <figure class="ba-slider__pane ba-slider__pane--before">
       <img src="before.jpg" alt="…" width="1200" height="675" loading="lazy" decoding="async">
       <figcaption class="ba-slider__label">As found</figcaption>
     </figure>
     <figure class="ba-slider__pane ba-slider__pane--after">
       <img src="after.jpg" alt="…" width="1200" height="675" loading="lazy" decoding="async">
       <figcaption class="ba-slider__label">As designed · 3D render</figcaption>
     </figure>
   </div>
   Both images should share one aspect ratio (default 16/9; override with
   style="--ratio: 4/3"). Optional data-start="35" sets the opening position.
   Without JavaScript the two figures simply stack. site.js adds .is-ready
   and the handle (role="slider"). Any number per page. */
.ba-slider { position: relative; display: grid; gap: var(--grid-gap); }
.ba-slider__pane { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--walnut); }
.ba-slider__pane img { width: 100%; aspect-ratio: var(--ratio, 16 / 9); object-fit: cover; }
.ba-slider__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(26, 15, 8, .78);
  color: var(--sand);
  font-size: .66rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-slider.is-ready {
  --pos: 50%;
  display: block;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--walnut);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.ba-slider.is-ready .ba-slider__pane { position: absolute; inset: 0; border-radius: 0; }
.ba-slider.is-ready .ba-slider__pane img { height: 100%; aspect-ratio: auto; pointer-events: none; -webkit-user-drag: none; }
.ba-slider.is-ready .ba-slider__pane--before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-slider.is-ready .ba-slider__pane--after .ba-slider__label { left: auto; right: 1rem; }

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 3rem;
  margin-left: -1.5rem;
  cursor: ew-resize;
  touch-action: none;
}
.ba-slider__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--gold);
}
.ba-slider__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 0 0 1px rgba(26, 15, 8, .25), 0 6px 18px rgba(26, 15, 8, .35);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease-out);
}
.ba-slider__grip svg { width: 1.375rem; height: 1.375rem; }
.ba-slider.is-dragging .ba-slider__grip,
.ba-slider__handle:hover .ba-slider__grip { transform: translate(-50%, -50%) scale(1.08); }
.ba-slider__handle:focus-visible { outline: none; }
.ba-slider__handle:focus-visible .ba-slider__grip {
  outline: 2px solid var(--offwhite);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(26, 15, 8, .65);
}
@media (max-width: 599.98px) {
  .ba-slider.is-ready { aspect-ratio: var(--ratio-sm, 4 / 3); }
  .ba-slider__label { bottom: .65rem; left: .65rem; padding: .35rem .65rem; font-size: .58rem; letter-spacing: .12em; }
  .ba-slider.is-ready .ba-slider__pane--after .ba-slider__label { right: .65rem; }
  .ba-slider__grip { width: 2.75rem; height: 2.75rem; }
}


/* 13 LIGHTBOX ============================================================== */

/* <a href="large.jpg" data-lightbox="group-name" data-caption="What it is.">
     <img src="small.jpg" alt="…" …>
   </a>
   Links that share a data-lightbox value form one gallery. site.js builds
   the overlay. Without JavaScript the link just opens the image. */
.lightbox {
  --fg: var(--sand);
  --fg-soft: rgba(240, 224, 200, .72);
  --focus: var(--gold);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(26, 15, 8, .96);
  color: var(--fg);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem var(--gutter);
}
.lightbox__counter { font-size: .72rem; font-weight: 500; letter-spacing: .2em; color: var(--fg-soft); }
.lightbox__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding-inline: var(--gutter);
  touch-action: pan-y pinch-zoom;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity .3s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
.lightbox.is-loading .lightbox__img { opacity: 0; }
.lightbox__caption {
  min-height: 3.5rem;
  padding: 1rem var(--gutter) 1.5rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  text-align: center;
  color: var(--fg-soft);
}
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(240, 224, 200, .3);
  border-radius: 50%;
  background: rgba(26, 15, 8, .55);
  color: var(--sand);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; }
.lightbox__prev,
.lightbox__next { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
@media (max-width: 599.98px) {
  .lightbox__stage { padding-inline: .5rem; }
  .lightbox__prev { left: .75rem; }
  .lightbox__next { right: .75rem; }
  .lightbox__btn { width: 2.75rem; height: 2.75rem; }
}


/* 14 MARQUEE =============================================================== */

/* <section class="marquee" aria-label="What we work on">
     <div class="marquee__track">
       <ul class="marquee__group"><li>Interiors</li><li>Architecture</li>…</ul>
       <ul class="marquee__group" aria-hidden="true"> …same items again… </ul>
     </div>
   </section>
   Write the list twice; the second copy makes the loop seamless.
   Speed: style="--marquee-duration: 50s". Pauses on hover. */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-block: 1px solid var(--hairline);
}
.marquee__track {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: marquee var(--marquee-duration, 44s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: space-around;
  min-width: 50%;
}
.marquee__group li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 3vw, 4.25rem);
  font-weight: 300;
  line-height: 1.1;
  white-space: nowrap;
}
.marquee__group li:nth-child(even) { font-style: italic; }
.marquee__group li::after {
  content: "";
  flex: none;
  width: .2em;
  height: .2em;
  margin-inline: clamp(1.5rem, 3.5vw, 3.5rem);
  border: 1px solid var(--accent);
  border-radius: 50%;
}
@keyframes marquee { to { transform: translateX(-50%); } }


/* 15 STATS ================================================================= */

/* <dl class="stats">
     <div class="stat"><dt class="stat__label">Studio founded</dt><dd class="stat__value">2020</dd></div>
   </dl> */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0 var(--grid-gap);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .75rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--hairline-strong);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 2.4rem + 5.6vw, 7.5rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
}
.stat__label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-soft);
}


/* 16 TESTIMONIAL =========================================================== */

/* <figure class="testimonial">
     <blockquote class="testimonial__quote"><p>Exact client words.</p></blockquote>
     <figcaption class="testimonial__by">
       <span class="testimonial__name">Sneha L.</span>
       <span class="testimonial__place">Rohini</span>
     </figcaption>
   </figure> */
.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0;
  padding-top: 3.9rem;
  border-top: 1px solid var(--hairline-strong);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: .9rem;
  left: -.04em;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  font-weight: 400;
  line-height: 1.32;
  text-wrap: pretty;
}
.testimonial__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-top: auto; }
.testimonial__name { font-weight: 500; }
.testimonial__place {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.testimonial__place::before { content: "·"; margin-right: .75rem; }


/* 17 PROCESS =============================================================== */

/* <ol class="process">
     <li class="process-step">
       <span class="process-step__num">01</span>
       <h3 class="process-step__title">Title, or <a href="…">a link</a></h3>
       <p class="process-step__text">One or two sentences.</p>
     </li>
   </ol>
   Rows by default: number, title, text across one line on wide screens.
   .process--columns sets the steps side by side instead. If the title holds
   a link, the whole row becomes clickable and gains an arrow. */
.process { counter-reset: step; border-bottom: 1px solid var(--hairline-strong); }
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .6rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--hairline-strong);
}
.process-step__num {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.2;
  color: var(--accent-ink);
  font-variant-numeric: lining-nums;
}
.process-step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.1;
}
.process-step__title a { text-decoration: none; transition: color .35s var(--ease); }
.process-step__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.process-step__text { max-width: 34rem; color: var(--fg-soft); }
.process-step:has(.process-step__title a) { padding-right: 3.25rem; }
.process-step:has(.process-step__title a)::after {
  content: "";
  position: absolute;
  top: clamp(2.2rem, 4vw, 3.3rem);
  right: 0;
  width: 1.75rem;
  height: .75rem;
  background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h26.5M21.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h26.5M21.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .45s var(--ease-out), background-color .35s var(--ease);
}
.process-step:hover .process-step__title a { color: var(--accent-ink); }
.process-step:has(.process-step__title a):hover::after { transform: translateX(.4rem); background: var(--accent-ink); }
.process-step__title a:focus-visible { outline: none; }
.process-step:has(.process-step__title a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (min-width: 720px) {
  .process:not(.process--columns) .process-step {
    grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--grid-gap);
    align-items: baseline;
  }
  .process--columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    column-gap: var(--grid-gap);
    border-bottom: 0;
  }
}


/* 18 CTA BAND ============================================================== */

/* <section class="cta-band">
     <div class="container cta-band__inner">
       <h2 class="display">Tell us about <em>your home</em>.</h2>
       <p class="lead">…</p>
       <a class="btn" href="contact.html">Start a project</a>
     </div>
   </section> */
.cta-band { padding-block: clamp(5rem, 11vw, 10.5rem); overflow: hidden; }
.cta-band__inner { position: relative; display: grid; justify-items: start; gap: clamp(1.5rem, 3vw, 2.5rem); }
.cta-band__inner > * { position: relative; }
.cta-band__inner::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(-1 * clamp(5rem, 11vw, 10.5rem) - 1px);
  width: clamp(12rem, 20vw, 18rem);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline-gold);
  border-bottom: 0;
  border-radius: 999rem 999rem 0 0;
  opacity: .5;
  pointer-events: none;
}
.cta-band .lead { max-width: 34rem; color: var(--fg-soft); }
@media (max-width: 899.98px) {
  .cta-band__inner::before { display: none; }
}


/* 19 FORMS ================================================================= */

/* <form class="form" novalidate>
     <div class="form__row">                      two fields side by side
       <div class="field">
         <label class="field__label" for="name">Your name</label>
         <input class="field__input" id="name" name="name" type="text" required>
         <p class="field__hint">Optional helper text.</p>
       </div>
       <div class="field field--error">
         <label class="field__label" for="email">Email</label>
         <input class="field__input" id="email" type="email" aria-invalid="true" aria-describedby="email-error">
         <p class="field__error" id="email-error">Please add an email address.</p>
       </div>
     </div>
     <div class="field"><label class="field__label" for="type">Project type</label>
       <select class="field__input" id="type">…</select></div>
     <div class="field"><label class="field__label" for="msg">Message</label>
       <textarea class="field__input" id="msg" rows="5"></textarea></div>
     <button class="btn" type="submit">Send</button>
     <p class="form__message form__message--success" role="status">Thank you. …</p>
   </form> */
.form { display: grid; gap: 1.75rem; max-width: 44rem; }
.form > .btn { justify-self: start; }
.form__row { display: grid; gap: 1.75rem var(--grid-gap); }
@media (min-width: 600px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { display: grid; gap: .5rem; min-width: 0; }
.field__label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field__input {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  background-color: transparent;
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field__input::placeholder { color: var(--fg-soft); opacity: .75; }
.field__input:hover { border-bottom-color: var(--fg); }
.field__input:focus,
.field__input:focus-visible {
  outline: none;
  border-bottom-color: var(--focus);
  box-shadow: 0 1px 0 0 var(--focus);
}
textarea.field__input { min-height: 8.5rem; resize: vertical; }
select.field__input {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233B1F10' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .25rem center;
  background-size: .75rem;
  cursor: pointer;
}
.field__hint { font-size: .82rem; color: var(--fg-soft); }
.field__error { font-size: .82rem; font-weight: 500; color: var(--error); }
.field--error .field__label { color: var(--error); }
.field--error .field__input,
.field__input[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field--success .field__input { border-bottom-color: var(--sage-ink); box-shadow: 0 1px 0 0 var(--sage-ink); }
.form__message {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--hairline-strong);
  background: var(--sand-tint);
  color: var(--clay);
}
.form__message--success { border-left-color: var(--sage-ink); }
.form__message--error { border-left-color: var(--error); color: var(--error); }
.form__message:empty { display: none; }


/* 20 MOTION ================================================================ */

/* .reveal: fades and rises when scrolled into view. site.js adds .is-visible.
   Stagger siblings with style="--i:1", "--i:2", …
   .reveal--curtain (on a .media or any image frame) wipes the image in with
   clip-path instead. The hidden state only exists under html.js, so content
   stays visible if JavaScript does not run.
   .enter: the same rise, played once on page load with CSS only. Use it for
   content at the very top of a page. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: opacity var(--dur) var(--ease), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .reveal--curtain { opacity: 1; transform: none; transition: background-color .2s linear 1.2s; }
.js .reveal--curtain:not(.is-visible) { background-color: transparent; }
.js .reveal--curtain > :not(.visually-hidden) {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal--curtain.is-visible > :not(.visually-hidden) { clip-path: inset(0 0 0 0); }
.js .reveal--curtain:not(.is-visible) img { transform: scale(1.14); }

.enter { animation: enter-rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.enter--curtain { animation: enter-curtain 1.4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }

@keyframes enter-rise {
  from { opacity: 0; transform: translate3d(0, 1.5rem, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes enter-curtain {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

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

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .reveal--curtain > :not(.visually-hidden) { opacity: 1; transform: none; clip-path: none; }
  .js .reveal--curtain:not(.is-visible) { background-color: var(--sand); }
  .js .reveal--curtain:not(.is-visible) img { transform: none; }
  .site-header.is-hidden { transform: none; }
  .marquee__track { width: auto; min-width: 0; animation: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: .5rem; min-width: 100%; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .mobile-menu__list a { opacity: 1; transform: none; }
}


/* 21 UTILITIES ============================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* .rule: gold hairline. <hr class="rule"> */
.rule { height: 1px; margin: 0; border: 0; background: var(--hairline-gold); }

@media print {
  .site-header, .mobile-menu, .lightbox, .skip-link { display: none !important; }
  .js .reveal, .js .reveal--curtain > :not(.visually-hidden) { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
