/* ==========================================================================
   Geetha Interiors — main stylesheet
   --------------------------------------------------------------------------
   1. Design tokens      5. Header, menu, footer     9. Motion
   2. Base               6. Homepage sections       10. Print
   3. Typography         7. Inner pages
   4. Layout & shared    8. Forms & contact
   Breakpoints (mobile first): 30rem / 48rem / 64rem / 80rem / 100rem
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  /* Colour */
  --color-primary: #1c1b19;          /* deep charcoal: dark sections, primary buttons */
  --color-primary-deep: #151412;     /* footer */
  --color-secondary: #f7f3ec;        /* ivory */
  --color-accent: #b08d5f;           /* bronze: fills and line work */
  --color-accent-light: #cdb087;     /* bronze for text on dark */
  --color-accent-strong: #7c5a32;    /* bronze for text on light (AA contrast) */
  --color-accent-soft: #e7dccb;      /* sand: CTA band, placeholders */
  --color-background: #f4efe7;       /* warm off-white page background */
  --color-surface: #fbf9f5;          /* lighter panels */
  --color-text: #23211e;
  --color-muted: #666058;
  --color-border: #d9d1c3;
  --color-on-dark: #f3eee5;
  --color-on-dark-muted: #b5ada0;
  --color-border-dark: rgba(243, 238, 229, 0.16);
  --brand-blue: #2f5487;             /* the logo's navy */
  --brand-coral: #f06c58;            /* the logo's coral */
  --brand-blue-text: #2f5487;        /* navy as used for text */
  --brand-coral-text: #e15a43;       /* coral deepened a little so text passes contrast on light backgrounds */
  --color-on-accent: #1c1b19;        /* text placed on the accent colour */
  --color-error: #9b2c1f;
  --color-success: #2f6044;

  /* Contextual aliases: flipped by .on-dark */
  --c-text: var(--color-text);
  --c-muted: var(--color-muted);
  --c-border: var(--color-border);
  --c-accent: var(--color-accent-strong);
  --c-focus: var(--color-accent-strong);

  /* Type: DM Sans for headings, Inter for text and interface, Manrope for the brand */
  --font-display: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Manrope", "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Scale. Each clamp() runs from a 390px phone, through a 768px tablet,
     to its desktop size at about 1150px and stays there.          phone  tablet  desktop */
  --scale-heading: 1;                /* editor: heading size, 0.8 to 1.3 */
  --scale-body: 1;                   /* editor: text size, 0.9 to 1.2 */
  --weight-display: 500;             /* h1, h2 */
  --weight-title: 600;               /* h3, h4 */
  --fs-h1: calc(clamp(2.5rem, 1.726rem + 3.175vw, 4rem) * var(--scale-heading));             /*  40     52      64  */
  --fs-h2: calc(clamp(2rem, 1.613rem + 1.587vw, 2.75rem) * var(--scale-heading));            /*  32     38      44  */
  --fs-h3: calc(clamp(1.4375rem, 1.244rem + 0.794vw, 1.75rem) * var(--scale-heading));       /*  23     26      28  */
  --fs-h4: calc(clamp(1.25rem, 1.185rem + 0.265vw, 1.375rem) * var(--scale-heading));        /*  20     21      22  */
  --fs-number: calc(clamp(2.5rem, 1.984rem + 2.116vw, 3.5rem) * var(--scale-heading));       /*  40     48      56  */
  --fs-lead: calc(clamp(1.0625rem, 0.998rem + 0.265vw, 1.1875rem) * var(--scale-body));   /*  17     18      19  */
  --fs-body: calc(clamp(1rem, 0.856rem + 0.301vw, 1.0625rem) * var(--scale-body));        /*  16     16      17  */
  --fs-body-sm: calc(0.9375rem * var(--scale-body));            /*  15: supporting text in cards and lists */
  --fs-small: 0.875rem;                                         /*  14: meta lines, form labels */
  --fs-caption: 0.8125rem;                                      /*  13: hints and notes */
  --fs-label: 0.75rem;                                          /*  12: uppercase labels */
  --fs-button: 0.9375rem;                                       /*  15 */
  --fs-nav: 0.9375rem;                                          /*  15 */

  /* Space */
  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 4.5rem);
  --container: 90rem;
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --header-h: 4.5rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-lux: cubic-bezier(0.76, 0, 0.24, 1);   /* slow in, slow out: menu, hamburger */
}

@media (min-width: 64rem) {
  :root { --header-h: 5.5rem; }
}

.on-dark {
  --c-text: var(--color-on-dark);
  --c-muted: var(--color-on-dark-muted);
  --c-border: var(--color-border-dark);
  --c-accent: var(--color-accent-light);
  --c-focus: var(--color-accent-light);
  color: var(--c-text);
}

/* Fallbacks with the web fonts' own metrics: while DM Sans and Inter load, text
   is set in Arial scaled to the same width and line box, so nothing moves when
   the real fonts arrive. */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 105.1%;
  ascent-override: 94.4%;
  descent-override: 29.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Pages without a full-height hero start below the fixed header */
body:not(.has-hero) main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

img, svg, picture, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}

::selection { background: var(--color-accent); color: var(--color-primary); }

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-on-dark);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 3. Typography ------------------------------------------------------------ */
/* Headings: weight carries the hierarchy. The two large sizes are medium,
   tightly tracked and tightly leaded; the two small sizes are semibold. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: var(--weight-display); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: var(--fs-h2); font-weight: var(--weight-display); line-height: 1.14; letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); font-weight: var(--weight-title); line-height: 1.25; letter-spacing: -0.014em; }
h4 { font-size: var(--fs-h4); font-weight: var(--weight-title); line-height: 1.3; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-text);
}

/* Small labels: the only uppercase text on the site */
.label,
.tag,
.ph__title,
.pillar__num,
.site-footer__heading,
.title-block dt,
.next-project__label,
.team__role,
.contact-list h3 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label { color: var(--c-accent); }

/* Large numerals: process steps and counters */
.process__num,
.next-steps li::before {
  font-family: var(--font-display);
  font-size: var(--fs-number);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}

small, .small { font-size: var(--fs-small); }

.text-link {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-underline-offset 0.3s var(--ease), color 0.3s;
}
.text-link:hover { text-underline-offset: 0.15em; color: var(--c-text); }

/* [BRACKETED PLACEHOLDERS] for details the business still needs to supply */
.tbd {
  padding: 0.05em 0.3em;
  background: rgba(176, 141, 95, 0.18);
  box-shadow: inset 0 0 0 1px rgba(176, 141, 95, 0.4);
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 4. Layout & shared components ------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--dark { background: var(--color-primary); }
.section--surface { background: var(--color-surface); }
.section--sand { background: var(--color-accent-soft); }
.section--flush-top { padding-top: 0; }
.section--case { padding-block: calc(var(--section) * 0.6); }
/* Two plain sections in a row share one gap, not two */
.section:not([class*="section--"]) + .section:not([class*="section--"]) { padding-top: 0; }

.section-head {
  display: grid;
  gap: 1.25rem 4rem;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.section-head__text { max-width: 30rem; color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.55; }
@media (min-width: 64rem) {
  .section-head { grid-template-columns: 7fr 5fr; align-items: end; }
  .section-head__text { justify-self: end; }
}
.section-foot { margin-top: clamp(2.5rem, 2rem + 2vw, 4.5rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.375rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.75rem; padding: 0.55rem 1.15rem; font-size: 0.875rem; }

.btn--solid { background: var(--color-primary); color: var(--color-on-dark); }
.btn--solid:hover { background: var(--color-accent-strong); }

.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { background: var(--color-on-dark); color: var(--color-primary); }

.btn--outline { border-color: currentColor; background: transparent; color: var(--color-text); }
.btn--outline:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-dark); }

.btn--ghost { border-color: rgba(243, 238, 229, 0.5); background: transparent; color: var(--color-on-dark); }
.btn--ghost:hover { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-primary); }

.btn .icon--wa { color: #1f9d55; }
.on-dark .btn .icon--wa, .btn--outline:hover .icon--wa { color: #25d366; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
@media (max-width: 29.99rem) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

.icon { flex: none; }

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
}

/* Image frames and placeholders
   A missing photograph is drawn as a labelled sheet with its required size,
   so nothing on the site pretends to be a real project image. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--color-accent-soft);
  container-type: inline-size;
}
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--10x7 { aspect-ratio: 10 / 7; }
.media--banner { aspect-ratio: 4 / 3; }
.media--fill { position: absolute; inset: 0; }
@media (min-width: 48rem) { .media--banner { aspect-ratio: 16 / 9; } }
@media (min-width: 64rem) { .media--banner { aspect-ratio: 2.2 / 1; } }

.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; transition: transform 1.2s var(--ease); }

.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.3rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-accent-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(124, 90, 50, 0.09) 13px 14px),
    var(--ph-tone, #e6dccd);
  transition: transform 1.2s var(--ease);
}
.ph::before {
  content: "";
  position: absolute;
  inset: clamp(0.5rem, 3cqi, 1.25rem);
  border: 1px solid rgba(124, 90, 50, 0.4);
  pointer-events: none;
}
.ph--b { --ph-tone: #ddd3c3; }
.ph--c { --ph-tone: #ebe4d8; }
.ph__dim { font-family: var(--font-display); font-size: clamp(1.375rem, 5cqi, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-text); }
.ph__file { font-size: var(--fs-label); color: var(--color-muted); overflow-wrap: anywhere; }

.on-dark .ph {
  color: var(--color-accent-light);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(205, 176, 135, 0.08) 13px 14px),
    #282623;
}
.on-dark .ph::before { border-color: rgba(205, 176, 135, 0.35); }
.on-dark .ph__dim { color: var(--color-on-dark); }
.on-dark .ph__file { color: var(--color-on-dark-muted); }

@container (max-width: 17rem) { .ph__file { display: none; } }
@container (max-width: 10rem) { .ph__title, .ph__dim { display: none; } }

/* Lists with a small square marker */
.check-list { display: grid; gap: 0.6rem 2rem; }
.check-list li { position: relative; padding-left: 1.25rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 5px; height: 5px;
  background: var(--color-accent);
}
@media (min-width: 30rem) { .check-list:not(.check-list--stack) { grid-template-columns: 1fr 1fr; } }
.check-list--stack li { padding-block: 0.7rem; border-bottom: 1px solid var(--c-border); }
.check-list--stack li::before { top: 1.5em; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); font-size: var(--fs-small); color: var(--c-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--c-border); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 0.25em; }
.breadcrumbs [aria-current] { color: var(--c-text); }

/* 5. Header, mobile menu, footer ------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(255 255 255 / 93%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;        /* phones: no rule, the header reads as part of the page */
  color: var(--color-text);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
@media (min-width: 48rem) { .site-header { border-bottom-color: var(--color-border); } }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }

/* Over the homepage hero, and while the menu is open or closing, the header is clear */
.has-hero .site-header:not(.is-scrolled),
.menu-open .site-header,
.menu-closing .site-header {
  --c-focus: var(--color-accent-light);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
  color: var(--color-on-dark);
}

/* On opening, the header waits for the panel to pass behind it before it turns
   light, so the logo and menu button never sit light-on-light. */
.menu-open .site-header {
  transition: background-color 0.3s var(--ease) 0.16s, border-color 0.3s var(--ease) 0.16s, color 0.3s var(--ease) 0.16s;
}

/* Logo. Two versions are supported: one for light backgrounds and one for dark
   (the header over the homepage hero, the open menu and the footer). */
.brand { display: inline-grid; align-items: center; justify-items: start; margin-right: auto; text-decoration: none; line-height: 1; }
/* The header carries a light-background and a dark-background version. Only one
   is ever rendered: the other has the HTML "hidden" attribute (set in the page
   and moved by the header script), so two logos cannot show together. */
.brand__logo { grid-area: 1 / 1; display: inline-flex; align-items: center; }
/* Once the page is scrolled the header logo sits a little smaller. It is scaled
   from its left edge, so the header keeps its height and nothing else moves. */
.site-header .brand__logo { transform-origin: left center; transition: transform 0.35s var(--ease); }
.site-header.is-scrolled .brand__logo { transform: scale(0.84); }
.brand__logo img { display: block; width: auto; height: 2.5rem; max-width: min(14rem, 52vw); object-fit: contain; object-position: left center; }
.brand__ph {
  display: grid;
  place-items: center;
  height: 2.5rem;
  padding-inline: 1.1rem;
  border: 1px dashed currentColor;
  font-family: var(--font-brand);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (min-width: 64rem) {
  .brand__logo img, .brand__ph { height: 3rem; }
}

.site-nav { display: none; }
.site-nav ul { display: flex; gap: clamp(1.1rem, 2.4vw, 2.75rem); }
.site-nav a {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.btn--header { background: var(--color-primary); color: var(--color-on-dark); }
.btn--header:hover { background: var(--color-accent-strong); }
.has-hero .site-header:not(.is-scrolled) .btn--header,
.menu-open .btn--header { background: var(--color-on-dark); color: var(--color-primary); }
.has-hero .site-header:not(.is-scrolled) .btn--header:hover { background: var(--color-accent); }
.site-header__cta { display: none; }
.cta-short { display: none; }

/* Hamburger: two lines that turn and meet in the middle to form the X.
   The same two lines animate both ways; nothing is swapped. */
.nav-toggle {
  position: relative;
  width: 2.75rem; height: 2.75rem;            /* 44 x 44 touch target */
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bar {
  position: absolute;
  left: 0.5rem; right: 0.5rem; top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.6s var(--ease-lux);
}
.nav-toggle__bar:nth-of-type(2) { transform: translateY(-4.5px) rotate(0deg); }
.nav-toggle__bar:nth-of-type(3) { transform: translateY(4.5px) rotate(0deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(2) { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(3) { transform: translateY(0) rotate(-45deg); }

/* Desktop navigation from 768px. Between 768 and 1024 the header is tighter:
   a shorter button label and a narrower logo keep everything on one line. */
@media (min-width: 48rem) {
  .site-nav { display: block; margin-right: clamp(0rem, 2vw, 2rem); }
  .site-header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand__logo img { max-width: 9.5rem; }
  .site-header__inner { gap: 1rem; }
  .site-nav { margin-right: 0; }
  .site-nav ul { gap: clamp(0.8rem, 1.9vw, 1.5rem); }
}
/* The narrowest desktop header (768 to 880px): slightly smaller links and logo */
@media (min-width: 48rem) and (max-width: 54.99rem) {
  .site-nav a { font-size: 0.875rem; }
  .brand__logo img { max-width: 8rem; }
  .site-header__cta { padding-inline: 0.85rem; }
}

/* Full-screen menu (phones).
   Opening: the panel is revealed from the top edge down, the page links rise
   in one after another, then the secondary information follows.
   Closing: the content leaves first, then the panel draws back up. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--color-primary);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-lux) 0.12s, visibility 0s linear 0.75s;
}
.menu-open .mobile-menu {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.85s var(--ease-lux) 0.06s, visibility 0s;
}
.menu-open body { overflow: hidden; }

.mobile-menu__inner {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 1.75rem;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding-block: clamp(1.25rem, 5vh, 3rem) 1.75rem;
}

/* Page links */
.mobile-menu__list { align-self: center; }
.mobile-menu__list li {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu__list li:nth-child(2) { --i: 1; }
.mobile-menu__list li:nth-child(3) { --i: 2; }
.mobile-menu__list li:nth-child(4) { --i: 3; }
.mobile-menu__list li:nth-child(5) { --i: 4; }
.mobile-menu__list li:nth-child(6) { --i: 5; }
.menu-open .mobile-menu__list li {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-lux), transform 0.7s var(--ease-lux);
  transition-delay: calc(0.3s + var(--i, 0) * 0.09s);
}
.mobile-menu__list a {
  display: inline-block;
  padding-block: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.55rem + 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.028em;
  text-decoration: none;
  transition: color 0.3s, transform 0.5s var(--ease-lux);
}
.mobile-menu__list a:hover, .mobile-menu__list a:focus-visible { transform: translateX(0.4rem); }
.mobile-menu__list a[aria-current="page"], .mobile-menu__list a.is-active { color: var(--color-accent-light); }

/* Secondary information, after the links */
.mobile-menu__services, .mobile-menu__foot {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.menu-open .mobile-menu__services, .menu-open .mobile-menu__foot {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-lux) 0.85s, transform 0.7s var(--ease-lux) 0.85s;
}
.menu-open .mobile-menu__foot { transition-delay: 0.95s; }
.mobile-menu__services { padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.mobile-menu__services ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin-top: 0.6rem; }
.mobile-menu__services a { display: block; padding-block: 0.4rem; color: var(--c-muted); font-size: var(--fs-small); text-decoration: none; }
.mobile-menu__services a:hover { color: var(--c-text); }
.mobile-menu__foot { display: grid; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.mobile-menu__contact { color: var(--c-muted); font-size: var(--fs-small); line-height: 1.9; }
.mobile-menu__contact a { color: var(--c-text); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
@media (max-width: 22.49rem) { .mobile-menu__services ul { grid-template-columns: 1fr; } }
@media (min-width: 48rem) { .mobile-menu { display: none; } }

/* Without JavaScript the menu button cannot work, so show the links inline */
.no-js .nav-toggle, .no-js .mobile-menu { display: none; }
.no-js .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 0.5rem; }
.no-js .site-nav { display: block; }
.no-js .site-nav ul { flex-wrap: wrap; gap: 0 1.25rem; }

/* Footer */
.site-footer { background: var(--color-primary-deep); padding-block: clamp(4rem, 3rem + 4vw, 7rem) 2rem; font-size: var(--fs-body-sm); }
.site-footer__grid { display: grid; gap: 3rem 2.5rem; }
.site-footer__about p { max-width: 24rem; margin-top: 1.5rem; color: var(--c-muted); }
.site-footer__heading { margin-bottom: 1.25rem; color: var(--c-accent); }
.site-footer__list { display: grid; gap: 0.2rem; }
.site-footer__list a, .site-footer__legal a, .site-footer__social a {
  display: inline-block;
  padding-block: 0.3rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.2rem) / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.site-footer__list a:hover, .site-footer__legal a:hover, .site-footer__social a:hover { background-size: 100% 1px; }
.site-footer__contact li { padding-block: 0.3rem; }
.site-footer__contact li a { padding-block: 0; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.5rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--fs-small);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1.5fr 0.8fr 1fr 1fr; gap: 4rem; } }

/* Floating WhatsApp button (tablet and desktop) */
.wa-float {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.25rem 0 1rem;
  background: var(--color-primary);
  border: 1px solid rgba(243, 238, 229, 0.28);
  color: var(--color-on-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(20, 19, 17, 0.22);
  transition: background-color 0.35s var(--ease);
}
.wa-float:hover { background: #2b2926; }
.wa-float .icon--wa { width: 22px; height: 22px; color: #25d366; }

/* Thumb-reach action bar (phones) */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-primary);
  border-top: 1px solid rgba(243, 238, 229, 0.16);
  transition: transform 0.45s var(--ease);
}
.js .mobile-bar:not(.is-visible) { transform: translateY(110%); }
.mobile-bar .btn { min-height: 3rem; padding-inline: 1rem; }
.btn--bar-wa { border-color: rgba(243, 238, 229, 0.4); color: var(--color-on-dark); }
.btn--bar-wa .icon--wa { color: #25d366; }
.menu-open .mobile-bar, .menu-open .wa-float { visibility: hidden; }

@media (max-width: 47.99rem) {
  .has-mobile-bar .wa-float { display: none; }
  .has-mobile-bar .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-float { padding: 0; width: 3.25rem; justify-content: center; }
}
@media (min-width: 48rem) { .mobile-bar { display: none; } }

/* 6. Homepage sections ----------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  /* Always the full height of the screen in use: dvh follows the visible area as
     phone browser bars show and hide; vh is the fallback for older browsers. */
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: var(--color-primary);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

/* Hero slider: full-screen photographs. The incoming one wipes across the
   outgoing one while easing back from a slight zoom. */
.hero__slide { position: absolute; inset: 0; z-index: 0; visibility: hidden; }
.hero__slide.is-prev { z-index: 1; visibility: visible; }
.hero__slide.is-active { z-index: 2; visibility: visible; }
.hero__slide picture, .hero__slide img { display: block; width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; }
.hero__media.has-slides .hero__art,
.hero__media.has-slides ~ .hero__foot .hero__note { display: none; }

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(21, 20, 18, 0.55) 0, transparent 9rem),
    linear-gradient(90deg, rgba(21, 20, 18, 0.9) 0%, rgba(21, 20, 18, 0.55) 48%, rgba(21, 20, 18, 0.1) 100%),
    linear-gradient(0deg, rgba(21, 20, 18, 0.7), transparent 45%);
}
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--color-accent); opacity: 0.4; }
@media (min-width: 64rem) {
  .hero__art { left: auto; right: 0; width: 48%; opacity: 0.85; }
}

.hero__inner { margin-top: auto; padding-block: clamp(2.5rem, 8vh, 6rem) clamp(2.5rem, 7vh, 5rem); }
.hero__title { max-width: 13em; margin-top: 1.25rem; }
.hero__lead { max-width: 34rem; margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.55; color: rgba(243, 238, 229, 0.86); }

.hero__foot { border-top: 1px solid var(--color-border-dark); }
.hero__foot-inner { display: flex; align-items: stretch; justify-content: space-between; gap: clamp(0.75rem, 3vw, 2rem); }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4rem;
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--c-muted);
}
.scroll-cue:hover { color: var(--c-text); }
.scroll-cue__line { position: relative; width: 1px; height: 2rem; background: rgba(243, 238, 229, 0.25); overflow: hidden; }
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 50%;
  background: var(--color-accent-light);
  animation: cue 2.4s var(--ease) infinite;
}
/* Slider controls: one numbered marker per photograph, with a line that fills
   while it is showing, and a pause button */
.hero__controls { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.hero__dot, .hero__pause {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--color-on-dark-muted);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.3s;
}
.hero__dot:hover, .hero__pause:hover, .hero__dot[aria-current="true"] { color: var(--color-on-dark); }
.hero__dot-track { position: relative; width: 0; height: 1px; background: rgba(243, 238, 229, 0.3); overflow: hidden; transition: width 0.6s var(--ease); }
.hero__dot[aria-current="true"] .hero__dot-track { width: clamp(2rem, 5vw, 3.5rem); }
.hero__dot-fill { position: absolute; inset: 0; background: var(--color-accent-light); transform: scaleX(0); transform-origin: left; }
.hero__controls:not(.is-playing) .hero__dot[aria-current="true"] .hero__dot-fill { transform: none; }
.hero__pause { justify-content: center; width: 2.75rem; padding: 0; margin-left: 0.25rem; }
.hero__pause::before {
  content: "";
  width: 0.55rem; height: 0.7rem;
  border-inline: 2px solid currentColor;                  /* pause: two bars */
}
.hero__controls:not(.is-playing) .hero__pause::before {   /* play: a triangle */
  width: 0; height: 0;
  border-block: 0.4rem solid transparent;
  border-inline: 0.65rem solid currentColor;
  border-inline-end: 0;
}
@media (min-width: 64rem) { .hero__controls { margin-inline: auto 1.5rem; } }

/* Narrow phones: the cue keeps its line and drops its words, so the slider controls fit */
@media (max-width: 23.99rem) {
  .scroll-cue__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.hero__types { display: none; }
.hero__types li { display: flex; border-left: 1px solid var(--color-border-dark); }
.hero__types a {
  display: flex;
  align-items: center;
  padding-inline: clamp(1.25rem, 2vw, 2.25rem);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s;
}
.hero__types a:hover { background: var(--color-on-dark); color: var(--color-primary); }
.hero__types li:last-child { border-right: 1px solid var(--color-border-dark); }
@media (min-width: 64rem) {
  .hero__types { display: flex; }
  .hero__foot-inner { padding-right: 10.5rem; }
}
.hero__note {
  padding: 0.5rem var(--gutter);
  border-top: 1px solid var(--color-border-dark);
  font-size: var(--fs-label);
  color: var(--color-on-dark-muted);
}
.hero__note .tbd { background: none; box-shadow: none; padding: 0; }

/* Short screens: the hero tightens so it still fills exactly one screen
   instead of running past the bottom edge. */
@media (max-height: 720px) and (max-width: 47.99rem) {
  .hero__inner { padding-block: 1.25rem; }
  .hero__title { font-size: 2.125rem; margin-top: 0.75rem; }
  .hero__lead { margin-top: 1rem; font-size: var(--fs-body-sm); line-height: 1.5; }
  .hero .btn-row { margin-top: 1.25rem; gap: 0.625rem; }
  .hero .btn { min-height: 3rem; }
  .hero .scroll-cue { min-height: 3.25rem; }
}
@media (max-height: 600px) and (max-width: 47.99rem) {
  .hero__lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}
@media (max-height: 680px) and (min-width: 48rem) {
  .hero__inner { padding-block: 1.5rem; }
  .hero__title { font-size: clamp(2.25rem, 7vh, 3rem); margin-top: 0.75rem; }
  .hero__lead { margin-top: 1rem; }
  .hero .btn-row { margin-top: 1.5rem; }
}
/* Phones held sideways */
@media (max-height: 480px) and (orientation: landscape) {
  .hero__inner { padding-block: 0.75rem 1rem; }
  .hero__title { max-width: none; font-size: 1.875rem; margin-top: 0.5rem; }
  .hero__lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 44rem; margin-top: 0.6rem; font-size: var(--fs-body-sm); line-height: 1.5; }
  .hero .btn-row { flex-direction: row; margin-top: 0.9rem; }
  .hero .btn-row .btn { width: auto; min-height: 2.75rem; }
  .hero .scroll-cue { min-height: 2.75rem; }
}

/* Introduction and trust strip */
/* Opening statement: heading face at the H3 size, regular weight. It stays a
   paragraph so the heading order on the page still runs h1, then h2. */
.intro__statement {
  max-width: 31em;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.014em;
}
.trust-strip {
  display: grid;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--color-text);
}
.trust-strip li { display: grid; gap: 0.35rem; padding-block: 1.5rem; border-bottom: 1px solid var(--color-border); color: var(--color-muted); font-size: var(--fs-body-sm); line-height: 1.55; }
.trust-strip__word { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--color-text); }
@media (min-width: 40rem) {
  .trust-strip { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 64rem) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .trust-strip li { padding: 1.75rem 2rem 0 0; border-bottom: 0; }
  .trust-strip li + li { padding-left: 2rem; border-left: 1px solid var(--color-border); }
}

/* About */
.about__grid { display: grid; gap: 2.5rem; }
/* About headline: a gradient in the logo's navy and coral. Without the
   clipped-background feature the text is simply navy. */
.about__title { color: var(--brand-blue-text); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .about__title {
    background: linear-gradient(90deg, var(--brand-blue-text) 0%, var(--brand-blue-text) 18%, var(--brand-coral-text) 50%, var(--brand-blue-text) 82%, var(--brand-blue-text) 100%) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.about__body > * + * { margin-top: 1.25rem; }
.about__body h2 + .lead { margin-top: 2rem; }
.about__body p { max-width: 36rem; }
.about__body .text-link { display: inline-block; margin-top: 2rem; }
@media (min-width: 48rem) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 8vw, 9rem); align-items: center; }
}
/* About photograph: on hover it eases closer and a fine inner frame settles in */
.about__media::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 3cqi, 1.25rem);
  z-index: 2;
  border: 1px solid rgba(243, 238, 229, 0.9);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .about__media:hover img, .about__media:hover .ph { transform: scale(1.05); }
  .about__media:hover::before { opacity: 1; transform: none; }
}
.about__why { margin-top: clamp(4rem, 3rem + 5vw, 8rem); }
.about__why-title { margin-bottom: clamp(1.75rem, 1.5rem + 1vw, 2.75rem); }

.pillars { display: grid; column-gap: clamp(2rem, 4vw, 4.5rem); }
.pillar { padding-block: 1.5rem 2rem; border-top: 1px solid var(--c-border); }
.pillar p { max-width: 26rem; margin-top: 0.5rem; color: var(--c-muted); font-size: var(--fs-body-sm); line-height: 1.6; }
.pillar__num { display: block; margin-bottom: 0.9rem; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.pillar__title { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
@media (min-width: 40rem) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* Services */
.service-grid { display: grid; }
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-block: 1.25rem;
  border-top: 1px solid var(--c-border);
}
.service-card .media { aspect-ratio: 1; }
.service-card__title { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
.service-card__title a { text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.service-card__body p { margin-top: 0.4rem; color: var(--c-muted); font-size: var(--fs-body-sm); line-height: 1.55; }
.service-card__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-accent);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 0.2rem;
  transition: background-size 0.45s var(--ease);
}
.service-card:hover .service-card__more,
.service-card:focus-within .service-card__more { background-size: 100% 1px; }
.service-card:hover .media img, .service-card:hover .ph { transform: scale(1.04); }
@media (min-width: 48rem) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem 2.5rem; }
  .service-card { display: block; padding: 0; border: 0; }
  .service-card .media { aspect-ratio: 4 / 3; margin-bottom: 1.5rem; }
  .service-card__title { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.014em; }
  .service-card__body p { margin-top: 0.6rem; font-size: var(--fs-body); line-height: 1.6; }
  .service-card__more { margin-top: 1.1rem; }
}
@media (min-width: 64rem) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 4.5rem 3rem; } }

/* Projects */
.filters {
  display: flex;
  gap: 0 2rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters__btn {
  flex: none;
  min-height: 2.75rem;
  padding: 0.6rem 0;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.filters__btn:hover { color: var(--c-text); }
.filters__btn[aria-pressed="true"] { color: var(--c-text); border-color: var(--c-text); }
.filters__btn:focus-visible { outline-offset: -2px; }
.filters__empty { padding-block: 2rem; color: var(--c-muted); }
.no-js .filters { display: none; }

.project-grid { display: grid; gap: 3rem 2.5rem; }
@media (min-width: 48rem) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .project-grid { gap: 5rem clamp(3rem, 6vw, 7rem); }
  /* Staggered columns; flattened while a filter is active */
  .project-grid:not(.project-grid--flat):not(.is-filtered) .project-card:nth-child(even) { margin-top: 7rem; }
}
.project-card__link { display: block; text-decoration: none; }
.project-card__body { padding-top: 1.25rem; }
.project-card__title {
  display: inline;
  font-size: var(--fs-h3);
  line-height: 1.25;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.project-card__link:hover .project-card__title { background-size: 100% 1px; }
.project-card__link:hover .media img, .project-card__link:hover .ph { transform: scale(1.04); }
.project-card__meta { display: flex; flex-wrap: wrap; margin-top: 0.75rem; font-size: var(--fs-small); color: var(--c-muted); }
.project-card__meta div + div { margin-left: 0.9rem; padding-left: 0.9rem; border-left: 1px solid var(--c-border); }
.project-card__text { max-width: 32rem; margin-top: 0.6rem; color: var(--c-muted); font-size: var(--fs-body-sm); line-height: 1.6; }

/* Why choose us */
.why__grid { display: grid; gap: 3rem; }
.why__head p { max-width: 26rem; margin-top: 1.5rem; color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.55; }
.why__head .btn { margin-top: 2rem; }
.benefit { display: grid; gap: 0.5rem 3rem; padding-block: 1.75rem; border-top: 1px solid var(--c-border); }
.benefit:last-child { border-bottom: 1px solid var(--c-border); }
.benefit__title { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
.benefit p { color: var(--c-muted); }
@media (min-width: 48rem) { .benefit { grid-template-columns: 5fr 6fr; align-items: baseline; } }
@media (min-width: 64rem) {
  .why__grid { grid-template-columns: 5fr 7fr; gap: clamp(4rem, 7vw, 8rem); align-items: start; }
  .why__head { position: sticky; top: calc(var(--header-h) + 3rem); }
}

/* Process: steps sit on a dimension line */
/* A drawing-sheet grid fills the whole section and fades out towards the corners */
.process { position: relative; isolation: isolate; overflow: hidden; }
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(243, 238, 229, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 238, 229, 0.1) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.process__list { position: relative; display: grid; }
.process__step { position: relative; padding: 0 0 2.5rem 2.25rem; border-left: 1px solid var(--c-border); }
.process__step:last-child { padding-bottom: 0; }
.process__step::before {
  content: "";
  position: absolute;
  left: -4px; top: 0.9rem;
  width: 7px; height: 7px;
  background: var(--color-accent);
}
.process__num { display: block; color: var(--color-accent-light); }
.process__title { margin-top: 1rem; font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
.process__step p { max-width: 24rem; margin-top: 0.5rem; color: var(--c-muted); font-size: var(--fs-body-sm); line-height: 1.6; }
@media (min-width: 48rem) {
  .process__list { grid-template-columns: repeat(3, 1fr); row-gap: 3.5rem; }
  .process__step { padding: 2.25rem 1.75rem 0 0; border-left: 0; border-top: 1px solid var(--c-border); }
  .process__step::before { left: 0; top: -4px; }
}
@media (min-width: 80rem) {
  .process__list { grid-template-columns: repeat(6, 1fr); }
}

/* Testimonials */
.testimonial-grid { display: grid; gap: 2.5rem clamp(2rem, 4vw, 4.5rem); }
.testimonial { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--color-text); }
.testimonial .tag { position: absolute; right: 0; top: 1.6rem; }
.testimonial__stars { color: var(--color-accent-strong); letter-spacing: 0.2em; font-size: var(--fs-body-sm); }
.testimonial__quote { margin-top: 1.25rem; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; line-height: 1.45; letter-spacing: -0.01em; }
.testimonial figcaption { display: grid; gap: 0.1rem; margin-top: 1.75rem; }
.testimonial__name { font-weight: 600; }
.testimonial__meta { font-size: var(--fs-small); color: var(--c-muted); }
@media (min-width: 64rem) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq__grid { display: grid; gap: 2.5rem; }
.faq__head p { max-width: 24rem; margin-top: 1.5rem; color: var(--c-muted); }
.faq__list { border-top: 1px solid var(--color-text); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { text-wrap: pretty; font-size: var(--fs-h4); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; transition: color 0.3s; }
.faq__item summary:hover .faq__q { color: var(--c-accent); }
.faq__icon { position: relative; flex: none; width: 1rem; height: 1rem; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { max-width: 40rem; padding-bottom: 1.75rem; color: var(--c-muted); }
@media (min-width: 64rem) { .faq__grid { grid-template-columns: 4fr 8fr; gap: clamp(4rem, 7vw, 8rem); } }

/* Call to action */
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta__inner { display: grid; gap: 2rem; }
/* Homepage only: curved lines drifting slowly behind the closing call to action */
.cta__curves {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--color-accent-strong);
  stroke-width: 1;
  pointer-events: none;
}
.cta__curves g { opacity: 0.3; }
.cta__curves g + g { opacity: 0.16; }
/* The closing statement is an h2 set at the H1 size */
.cta__title { max-width: 13em; font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.028em; }
.cta__body p { max-width: 30rem; font-size: var(--fs-lead); line-height: 1.55; }
@media (min-width: 64rem) { .cta__inner { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: end; } }

/* 7. Inner pages ----------------------------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.page-hero__title { max-width: 15em; }
.page-hero__lead { max-width: 38rem; margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--c-muted); }
.page-hero--center { min-height: 60vh; display: grid; align-items: center; }

/* Label column + content column, separated by hairlines */
.split { display: grid; gap: 1rem 3rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-top: 1px solid var(--c-border); }
.split-list > .split:last-child { border-bottom: 1px solid var(--c-border); }
.split__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; letter-spacing: -0.014em; }
@media (min-width: 64rem) { .split { grid-template-columns: 4fr 8fr; } }

.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul { max-width: 40rem; }
.prose--legal { max-width: 46rem; }
.prose--legal h2 { margin-top: 2.75rem; font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.prose--legal a { color: var(--c-accent); }
.notice { padding: 1.25rem 1.5rem; border-left: 3px solid var(--color-accent); background: var(--color-accent-soft); font-size: var(--fs-body-sm); }
.notice code { font-size: 0.875em; }

/* Services index */
.service-row { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--c-border); }
.service-row__title a { text-decoration: none; }
.service-row__title a:hover { color: var(--c-accent); }
.service-row__body > * + * { margin-top: 1.5rem; }
.service-row__body .lead { max-width: 34rem; color: var(--c-muted); }
.service-row__body .text-link { display: inline-block; }
@media (min-width: 64rem) {
  .service-row { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 6vw, 7rem); align-items: center; }
  .service-row:nth-child(even) .media { order: 2; }
}

/* Service detail */
.features { display: grid; column-gap: clamp(2rem, 4vw, 4.5rem); }
.feature { padding-block: 1.5rem 2rem; border-top: 1px solid var(--c-border); }
.feature__title { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
.feature p { max-width: 26rem; margin-top: 0.5rem; color: var(--c-muted); }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .features { grid-template-columns: repeat(3, 1fr); } }

.approach { display: grid; gap: 3rem; }
.approach__body h2 { max-width: 14em; margin-bottom: 2rem; }
.approach__aside { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--c-border); background: var(--color-surface); }
.approach__aside h3 { margin-bottom: 0.75rem; font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
.approach__aside li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 64rem) { .approach { grid-template-columns: 7fr 4fr; gap: clamp(4rem, 7vw, 8rem); align-items: start; } }

.other-services { border-top: 1px solid var(--color-text); }
.other-services a {
  display: grid;
  gap: 0.25rem 3rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: padding-left 0.45s var(--ease), color 0.3s;
}
.other-services a:hover { padding-left: 1rem; color: var(--c-accent); }
.other-services__text { font-family: var(--font-body); font-size: var(--fs-body-sm); font-weight: 400; line-height: 1.6; letter-spacing: -0.006em; color: var(--c-muted); }
@media (min-width: 48rem) { .other-services a { grid-template-columns: 5fr 6fr; align-items: baseline; } }

/* Project case study */
.title-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
}
.title-block div { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--c-border); }
.title-block dt { color: var(--c-accent); }
.title-block dd { margin-top: 0.3rem; font-weight: 500; }
@media (min-width: 64rem) {
  .title-block { grid-template-columns: repeat(5, 1fr); }
  .title-block div { padding: 1.4rem 1.5rem; border-bottom: 0; border-left: 1px solid var(--c-border); }
  .title-block div:first-child { padding-left: 0; border-left: 0; }
}

.gallery { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.75rem); }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: 1 / -1; }
}

.next-project { border-top: 1px solid var(--c-border); }
.next-project a { display: grid; gap: 0.5rem; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); text-decoration: none; }
.next-project__label { color: var(--c-accent); }
.next-project__name { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1.14; letter-spacing: -0.022em; transition: color 0.3s; }
.next-project a:hover .next-project__name { color: var(--c-accent); }

/* Team (shown once data/team.json has entries) */
.team { display: grid; gap: 3rem 2.5rem; }
.team__name { margin-top: 1.25rem; font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
.team__role { margin-top: 0.3rem; color: var(--c-accent); }
.team__member p:last-child { margin-top: 0.75rem; color: var(--c-muted); }
@media (min-width: 48rem) { .team { grid-template-columns: repeat(3, 1fr); } }

/* Sitemap */
.sitemap { display: grid; gap: 3rem; }
.sitemap__group h2 { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-text); font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.sitemap__group a { display: inline-block; padding-block: 0.35rem; text-decoration: none; }
.sitemap__group a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 0.25em; }
@media (min-width: 40rem) { .sitemap { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .sitemap { grid-template-columns: repeat(4, 1fr); } }

/* 8. Forms & contact ------------------------------------------------------- */
.contact__grid { display: grid; gap: 4rem; }
.contact__form h2, .contact__details h2 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.014em; }
.form__intro { margin-top: 0.5rem; color: var(--c-muted); font-size: var(--fs-small); }
@media (min-width: 64rem) { .contact__grid { grid-template-columns: 7fr 4fr; gap: clamp(4rem, 8vw, 9rem); align-items: start; } }

.form { display: grid; gap: 1.75rem; margin-top: 2.25rem; }
.form__row { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.field label { display: block; margin-bottom: 0.4rem; font-size: var(--fs-small); font-weight: 600; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #a69d8d;
  border-radius: 0;
  background: var(--color-surface);
  font-size: 1rem;   /* 16px keeps iOS from zooming on focus */
  line-height: 1.4;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-text); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 2px var(--color-accent-strong);
}
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field__hint { margin-top: 0.4rem; font-size: var(--fs-caption); color: var(--c-muted); }
.field__error { margin-top: 0.4rem; font-size: var(--fs-caption); font-weight: 600; color: var(--color-error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.form__note { max-width: 22rem; font-size: var(--fs-caption); color: var(--c-muted); }
.form__status { padding: 1rem 1.25rem; border-left: 3px solid var(--color-success); background: var(--color-surface); font-weight: 500; }
.form__status[data-state="error"] { border-color: var(--color-error); }

.contact-list { margin-top: 1.5rem; border-top: 1px solid var(--color-text); }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--c-border); }
.contact-list .icon { margin-top: 0.2rem; color: var(--c-accent); }
.contact-list h3 { color: var(--c-muted); }
.contact-list p { margin-top: 0.15rem; }
.contact-list a:not(.text-link) { text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.map { position: relative; margin-top: 2rem; aspect-ratio: 4 / 3; background: var(--color-accent-soft); container-type: inline-size; }
.map iframe { width: 100%; height: 100%; border: 0; }

.next-steps { display: grid; gap: 2rem clamp(2rem, 4vw, 4.5rem); counter-reset: step; }
.next-steps li { counter-increment: step; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.next-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1rem; color: var(--color-accent-strong); }
.next-steps h3 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
.next-steps p { max-width: 24rem; margin-top: 0.5rem; color: var(--c-muted); }
@media (min-width: 48rem) { .next-steps { grid-template-columns: repeat(3, 1fr); } }

/* 9. Motion ---------------------------------------------------------------- */
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(200%); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes drift { to { transform: translateX(-1200px); } }
@keyframes logo-in { from { opacity: 0; } }
@keyframes brand-flow { to { background-position: 200% 0; } }
@keyframes title-reveal {
  from { clip-path: inset(0 0 100% 0); transform: translateY(0.45em); }
  to { clip-path: inset(-0.2em); transform: none; }
}
@keyframes title-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes slide-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes slide-wipe-back { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes slide-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes slide-progress { to { transform: scaleX(1); } }

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

  /* The one orchestrated moment: the hero drawing lines itself in on load */
  .hero__art path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.8s var(--ease) forwards;
  }
  .hero__art path:nth-child(n + 2) { animation-delay: 0.25s; }
  .hero__art path:nth-child(n + 6) { animation-delay: 0.6s; }
  .hero__art path:nth-child(n + 11) { animation-delay: 0.95s; }
  .hero__art path:nth-child(n + 20) { animation-delay: 1.3s; }
  .hero__art path:nth-child(n + 23) { animation-delay: 1.6s; }

  .hero__inner > * { animation: rise 1s var(--ease) both; }
  .hero__inner > :nth-child(2) { animation-delay: 0.1s; }
  .hero__inner > :nth-child(3) { animation-delay: 0.2s; }
  .hero__inner > :nth-child(4) { animation-delay: 0.3s; }

  /* The logo version that has just been switched in fades up */
  .site-header .brand__logo { animation: logo-in 0.35s var(--ease) both; }

  /* Hero headline: it is unveiled upward from behind a mask, then a single band
     of bronze light passes across the letters and leaves them as they were. */
  .hero__inner > .hero__title { animation: title-reveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero__inner > .hero__title {
      background: linear-gradient(100deg, var(--color-on-dark) 0 42%, var(--color-accent-light) 50%, var(--color-on-dark) 58% 100%) 100% 0 / 300% 100% no-repeat;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: title-reveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both, title-sheen 2.4s ease-in-out 1.2s both;
    }
  }

  /* Hero slider. The first photograph is simply there when the page opens;
     every change after that is a wipe, with the photograph easing out of a zoom. */
  .hero__slide.is-active:not(.is-first) { animation: slide-wipe 1.4s cubic-bezier(0.77, 0, 0.18, 1) both; }
  .is-reverse .hero__slide.is-active:not(.is-first) { animation-name: slide-wipe-back; }
  .hero__slide.is-active img { animation: slide-settle 7.5s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .hero__controls.is-playing .hero__dot[aria-current="true"] .hero__dot-fill { animation: slide-progress var(--slide-time, 6s) linear both; }

  /* About headline: the coral band travels through the navy and loops without a
     seam; it runs only while the headline is on screen */
  .about__title { animation: brand-flow 9s linear infinite paused; }
  .about__title.is-in-view, .no-js .about__title { animation-play-state: running; }

  /* Curved lines behind the homepage call to action: each layer drifts one full
     wave length and loops; they run only while the section is on screen */
  .cta__curves g { animation: drift 80s linear infinite paused; }
  .cta__curves g + g { animation-duration: 130s; animation-direction: reverse; }
  .cta__curves.is-in-view g, .no-js .cta__curves g { animation-play-state: running; }

  /* Section entrance effects, chosen per section in the editor (data-motion).
     The section's background stays put; its content moves in as it is scrolled to. */
  .js [data-motion] > .container {
    opacity: 0;
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  }
  .js [data-motion="none"] > .container,
  .js [data-motion="stagger"] > .container { opacity: 1; }
  .js [data-motion="fade-up"] > .container { transform: translateY(3rem); }
  .js [data-motion="slide-left"] > .container { transform: translateX(-4rem); }
  .js [data-motion="slide-right"] > .container { transform: translateX(4rem); }
  .js [data-motion="zoom"] > .container { transform: scale(0.95); }
  .js [data-motion="stagger"] > .container > * {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js [data-motion="stagger"] > .container > :nth-child(2) { transition-delay: 0.12s; }
  .js [data-motion="stagger"] > .container > :nth-child(3) { transition-delay: 0.24s; }
  .js [data-motion="stagger"] > .container > :nth-child(4) { transition-delay: 0.36s; }
  .js [data-motion="stagger"] > .container > :nth-child(n + 5) { transition-delay: 0.48s; }
  .js [data-motion].is-visible > .container,
  .js [data-motion="stagger"].is-visible > .container > * { opacity: 1; transform: none; }
  /* "No motion": the section's own built-in reveals are switched off too */
  .js [data-motion="none"] .reveal { opacity: 1; transform: none; transition: none; }
  .js [data-motion="none"] .media.reveal > * { clip-path: none; transition: none; }

  /* Scroll reveals: text fades up, images unveil from the top edge */
  .js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  /* The clip sits on the frame's content, not the frame: a fully clipped
     element has no visible area, so the observer would never see it arrive. */
  .js .media.reveal { opacity: 1; transform: none; }
  .js .media.reveal > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease), transform 1.2s var(--ease); }
  .js .media.reveal.is-visible > * { clip-path: inset(0); }
}

@media (forced-colors: active) {
  .hero__inner > .hero__title, .about__title { background: none; -webkit-text-fill-color: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .scroll-cue__line::after { animation: none; }
}

/* 10. Print ---------------------------------------------------------------- */
@media print {
  .site-header, .mobile-menu, .wa-float, .mobile-bar, .filters, .cta, .hero__foot { display: none !important; }
  body { background: #fff; color: #000; }
  body:not(.has-hero) main { padding-top: 0; }
  .hero { min-height: 0; background: #fff; color: #000; }
  .hero__inner > .hero__title, .about__title { background: none; -webkit-text-fill-color: currentColor; }
  .section { padding-block: 2rem; }
  .js .reveal { opacity: 1; transform: none; }
  .js .media.reveal > * { clip-path: none; }
}
