/* =========================================================
   Renduo Enterprise · site.css
   Paper (light) is the default theme; night via [data-theme="dark"]
   ========================================================= */

:root {
  --paper: #F3EFE7;
  --paper-2: #EBE5D9;
  --surface: #FAF8F4;
  --ink: #15130F;
  --ink-2: #4B4740;
  --meta: #6B655B;
  --line: rgba(21, 19, 15, .12);
  --line-strong: rgba(21, 19, 15, .28);
  --bronze: #8C6A3C;
  --bronze-2: #B08D57;
  --dark: #1B1916;
  --dark-2: #262320;
  --on-dark: #EFE9DD;
  --on-dark-2: #B3ACA0;
  --line-dark: rgba(239, 233, 221, .14);
  --wa: #1F8F5A;
  --nav-bg: rgba(243, 239, 231, .86);
  --paper-0: rgba(243, 239, 231, 0);
  --paper-90: rgba(243, 239, 231, .9);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 1vw on phones; above phone width the page is a fixed 1440px canvas scaled with zoom, so 1 "vw" = 14.4px */
  --vw: 1vw;
  --maxw: 1280px;
  --pad: clamp(1.25rem, calc(4 * var(--vw)), 3.5rem);
  --gap: clamp(1.25rem, calc(3 * var(--vw)), 3rem);
  --r: 6px;
  --r-lg: 12px;
  --ease: cubic-bezier(.22, .7, .12, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1A1816;
  --surface: #181614;
  --ink: #EFE9DD;
  --ink-2: #B9B2A5;
  --meta: #958E82;
  --line: rgba(239, 233, 221, .12);
  --line-strong: rgba(239, 233, 221, .28);
  --bronze: #C9A66B;
  --bronze-2: #DEBB80;
  --dark: #0C0B0A;
  --dark-2: #171513;
  --nav-bg: rgba(18, 17, 16, .86);
  --paper-0: rgba(18, 17, 16, 0);
  --paper-90: rgba(18, 17, 16, .9);
  color-scheme: dark;
}

/* Fixed canvas: set by the inline head script when the viewport is wider than a phone */
html.is-scaled { --vw: 14.4px; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

/* 3% paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
[data-theme="dark"] body::before { mix-blend-mode: soft-light; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main { overflow-x: clip; transition: opacity .3s var(--ease), transform .3s var(--ease); }
body.is-leaving main { opacity: 0; transform: translateY(10px); }

::selection { background: var(--bronze); color: var(--paper); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.nw { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--r);
  font: 500 14px/1.2 var(--sans); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
.h1, .h2, .h3, .stat b, .hero-quote, .stage dt, .cta-strip h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.022em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
}
.h1 em, .h2 em, .h3 em, .hero-quote em, .cta-strip em {
  font-style: italic;
  font-weight: 400;
  color: var(--bronze);
}
.h1, .h2 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.h1 { font-size: clamp(2.6rem, calc(5.4 * var(--vw)), 4.5rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, calc(3.9 * var(--vw)), 3.25rem); line-height: 1.06; }
.h3 { font-size: clamp(1.35rem, calc(1.8 * var(--vw)), 1.6rem); line-height: 1.15; }

.lede {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.kicker, .mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .6875rem;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
}
.kicker { display: block; margin-bottom: 1.4rem; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(3rem, calc(4.5 * var(--vw)), 4rem); }   /* 64px on the 1440 canvas */
.section-tight { padding-block: clamp(2.5rem, calc(3.5 * var(--vw)), 3rem); }   /* 48px on the canvas */
.process { padding-block: 3rem; }
.band { background: var(--paper-2); }
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark .kicker, .band-dark .mono { color: var(--on-dark-2); }
.band-dark .h2 em { color: var(--bronze-2); }
.band-dark .lede { color: var(--on-dark-2); }
.rule { height: 1px; width: 100%; background: var(--line); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-sm { padding: .6rem 1rem; font-size: .875rem; }
.btn-block { display: flex; width: 100%; }
.band-dark .btn-primary { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.band-dark .btn-primary:hover { background: var(--bronze-2); border-color: var(--bronze-2); color: var(--dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: 2px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease), color .25s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; flex: none; transition: transform .35s var(--ease); }
.link-arrow:hover { background-size: 100% 1px, 100% 1px; }
.link-arrow:hover svg { transform: translateX(3px); }
.band-dark .link-arrow { color: var(--on-dark); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

/* ---------- Intro curtain ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  clip-path: inset(0 0 0 0);
  transition: clip-path .7s cubic-bezier(.76, 0, .24, 1);
}
html.no-intro .intro { display: none; }
html.intro-on body { overflow: hidden; }
.intro-core { display: grid; justify-items: center; gap: 1.6rem; }
/* The whole curtain plays inside ~1.1s (site.js lifts it then): the same wipe, rise and
   fill as before, each about half as long, so the hero is on screen well under 2s. */
.intro-logo {
  width: 210px;
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: introWipe .6s cubic-bezier(.76, 0, .24, 1) .05s forwards, introFocus .7s var(--ease) .05s forwards;
}
@keyframes introWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes introFocus { from { transform: scale(1.05); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.intro-line { overflow: hidden; font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--meta); }
.intro-line span { display: block; transform: translateY(120%); animation: introRise .5s cubic-bezier(.22, .7, .12, 1) .4s forwards; }
@keyframes introRise { to { transform: translateY(0); } }
.intro-foot {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vh, 56px);
  display: grid; justify-items: center; gap: 14px;
  opacity: 0;
  animation: introFade .4s var(--ease) .45s forwards;
}
@keyframes introFade { to { opacity: 1; } }
.intro-foot-text { font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--meta); }
.intro-bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 100%; background: var(--bronze); transform: scaleX(0); transform-origin: left; animation: introFill .8s var(--ease) .2s forwards; }
[data-theme="dark"] .intro-logo { filter: invert(1) hue-rotate(180deg); }   /* night mode: black artwork → paper-coloured */
@keyframes introFill { to { transform: scaleX(1); } }
/* exit: the curtain wipes upward, uncovering the hero underneath */
.intro.out { clip-path: inset(0 0 100% 0); }
.intro.out .intro-core, .intro.out .intro-foot { opacity: 0; transition: opacity .35s var(--ease); }
@media (max-width: 640px) { .intro-logo { width: 150px; } .intro-line { font-size: .625rem; } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 2.25rem; }
.brand { display: inline-flex; align-items: center; margin-right: auto; color: var(--ink); text-decoration: none; }
.logo { height: 45px; width: auto; }
[data-theme="dark"] .logo { filter: invert(1) hue-rotate(180deg); }   /* black artwork → paper-coloured at night */
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  display: inline-block;
  padding-block: .3rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .25s var(--ease), background-size .4s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background-size: 100% 1px; }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  padding: 0; border: 0; border-radius: var(--r);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background-color .25s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-burger { display: none; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-open { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 560px) {
  .nav-cta { display: none; }   /* the burger takes its place on phones */
}
@media (max-width: 640px) {
  .nav { height: 64px; }
  .logo { height: 42px; }
  .nav-burger { display: inline-grid; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--pad) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: .75rem 0;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.15rem;   /* was 1.6rem — "too big" on the phone (owner, 2026-10-12) */
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--ink);
    background: none;
  }
}

/* ---------- Frames & placeholders ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.ph img[data-parallax] { top: -6%; height: 112%; }
.ph-sm { border-radius: var(--r); }

/* ---------- Hero: full-bleed desk photo on the right, fading into paper on the left ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(540px, calc(48.5 * var(--vw)), 780px);
  padding-block: clamp(3rem, calc(6 * var(--vw)), 5rem);
}
.hero-bg {
  position: absolute;
  inset: -7% 0;
  overflow: hidden;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right 58%;
}
/* The photo's left half is a bare wall; this just blends it into the page paper */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* .hero-bg is 114% tall (parallax), so the visible band runs from ~6% to ~94% */
  background:
    linear-gradient(180deg, var(--paper) 6%, var(--paper-0) 13%, var(--paper-0) 87%, var(--paper) 94%),
    linear-gradient(90deg, var(--paper) 0%, var(--paper-90) 8%, var(--paper-0) 42%);
  pointer-events: none;
}
/* Night: the photos were shot on cream walls, so darken them more behind the text and lift the paragraph to full ink */
[data-theme="dark"] .hero-bg::after {
  background:
    linear-gradient(180deg, var(--paper) 6%, var(--paper-0) 13%, var(--paper-0) 87%, var(--paper) 94%),
    linear-gradient(90deg, var(--paper) 0%, var(--paper-90) 16%, rgba(18, 17, 16, .6) 44%, var(--paper-0) 64%),
    rgba(0, 0, 0, .2);
}
[data-theme="dark"] .hero-copy .lede { color: var(--ink); }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-brand { text-transform: none; letter-spacing: .04em; font-size: .9375rem; color: var(--ink); }
.hero-brand small { margin-left: .4rem; font-size: .6875rem; letter-spacing: .1em; color: var(--meta); }
.hero-copy { max-width: 40rem; }
.hero:not(.page-hero) .hero-copy { margin-top: calc(-2.5 * var(--vw)); }   /* sit the text a little above centre */
.hero-copy .h1 { margin-top: .25rem; }
.hero-copy .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 640px) {
  /* Phone (owner, 2026-10-12): the words sit ON the photo, not in a beige block above it.
     The picture is pulled up under the lower half of the copy; a paper scrim over its top
     keeps the headline readable while the desk and devices stay clear lower down. */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 1.5rem; padding-bottom: 0; }
  .hero-bg { order: 2; position: relative; inset: auto; height: auto; width: 100%; aspect-ratio: 4 / 5; margin-top: -8.5rem; }
  .hero-bg img { object-position: 64% 58%; }
  .hero-bg::after { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-90) 26%, var(--paper-0) 54%, var(--paper-0) 90%, var(--paper) 100%); }
  [data-theme="dark"] .hero-bg::after {
    background:
      linear-gradient(180deg, var(--paper) 0%, var(--paper-90) 26%, rgba(18, 17, 16, .45) 54%, var(--paper-0) 90%, var(--paper) 100%),
      rgba(0, 0, 0, .2);
  }
  .hero-copy { max-width: 40rem; }
  .hero:not(.page-hero) .hero-copy { margin-top: 0; }
  .hero-actions { margin-top: 1.5rem; }
}

/* ---------- Service columns (home) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-strip { padding-top: clamp(2rem, calc(4 * var(--vw)), 3rem); }
.svc {
  display: grid;
  grid-template-rows: auto auto 1fr; /* icon, title, description */
  justify-items: center;
  gap: .85rem;
  padding: clamp(1.75rem, calc(3 * var(--vw)), 2.5rem) clamp(1.25rem, calc(2.5 * var(--vw)), 2rem);
  border-left: 1px solid var(--line);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: background-color .35s var(--ease);
}
.svc:nth-child(odd) { border-left: 0; }
/* Hover: the cell lifts into a white card (also used by the About values strip) */
.svc, .value {
  position: relative;
  transition: background-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), border-radius .35s var(--ease);
}
.svc:hover, .value:hover {
  z-index: 1;
  background: #fff;
  border-color: transparent;
  border-radius: 12px;
  transform: scale(1.05);
  box-shadow: 0 24px 48px -28px rgba(21, 19, 15, .35);
}
[data-theme="dark"] .svc:hover, [data-theme="dark"] .value:hover { background: var(--dark-2); }
.svc-icon {
  width: 48px; height: 48px;
  color: var(--bronze);
  stroke-width: 2.1;
  transition: color .3s var(--ease), transform .5s var(--ease);
}
.svc:hover .svc-icon { color: var(--bronze-2); transform: translateY(-3px); }
.svc .h3 { margin-top: .5rem; }
.svc p { max-width: 26ch; font-size: .9375rem; color: var(--ink-2); }
.svc:hover .link-arrow { background-size: 100% 1px, 100% 1px; }
.svc:hover .link-arrow svg { transform: translateX(3px); }
@media (min-width: 641px) {
  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc:nth-child(odd) { border-left: 1px solid var(--line); }
  .svc:first-child { border-left: 0; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { border-left: 0; border-top: 1px solid var(--line); }
  .svc:first-child { border-top: 0; }
}

/* ---------- Process (home) ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.process-copy .lede { max-width: 40ch; }
.process-copy .btn { margin-top: 2rem; }
.process-media { aspect-ratio: 16 / 9; }
.ph video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (min-width: 641px) {
  .process-grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, calc(4 * var(--vw)), 4.5rem); }
}

/* ---------- About (home): photo header + values strip (same look as the services strip) ---------- */
.about-hero { min-height: clamp(400px, calc(36 * var(--vw)), 560px); margin-top: clamp(2.5rem, calc(4 * var(--vw)), 3.5rem); }   /* breathing room below the hero photo */
.about-hero .lede { max-width: 38rem; }
.values-wrap { padding-block: clamp(2rem, calc(4 * var(--vw)), 3rem) clamp(2.5rem, calc(3.5 * var(--vw)), 3rem); }
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .5rem;
  padding: clamp(1.75rem, calc(3 * var(--vw)), 2.5rem) clamp(1.25rem, calc(2.5 * var(--vw)), 2rem);
  border-left: 1px solid var(--line);
  text-align: center;
}
.value:nth-child(odd) { border-left: 0; }
.value svg { width: 48px; height: 48px; margin-bottom: .85rem; color: var(--bronze); stroke-width: 1.35; }   /* 24-unit icons: 1.35 here ≈ the 2.1 on the 40-unit service icons */
.value b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, calc(1.8 * var(--vw)), 1.6rem);
  line-height: 1.15;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.value span { font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 641px) {
  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .value:nth-child(odd) { border-left: 1px solid var(--line); }
  .value:first-child { border-left: 0; }
}
@media (max-width: 640px) {
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Services in detail (home) ---------- */
.solutions-head { margin-bottom: clamp(2rem, calc(4 * var(--vw)), 3rem); text-align: center; }
.solutions-head .lede { max-width: none; margin-inline: auto; }
@media (min-width: 641px) {
  .solutions-head .h2 { white-space: nowrap; }   /* one line on the 1440 canvas */
}

/* ---------- CTA strip ---------- */
.cta-strip { border-top: 1px solid var(--line); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
  padding-block: clamp(2.5rem, calc(5 * var(--vw)), 4rem);
}
.cta-strip h2 { font-size: clamp(1.6rem, calc(2.6 * var(--vw)), 2.2rem); line-height: 1.1; }
.cta-strip p { margin-top: .4rem; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-top: clamp(1.5rem, calc(3 * var(--vw)), 3rem); padding-bottom: clamp(2.5rem, calc(5 * var(--vw)), 4rem); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.page-head-media { aspect-ratio: 16 / 9; }
.page-head-side { color: var(--ink-2); max-width: 38ch; font-size: .9375rem; }
@media (min-width: 641px) {
  .page-head-grid { grid-template-columns: 6fr 6fr; gap: clamp(2rem, calc(4 * var(--vw)), 4.5rem); }
  .page-head-media { aspect-ratio: 3 / 2; }
  .page-head-side { justify-self: end; align-self: end; padding-bottom: .5rem; }
}

/* ---------- Page hero (inner pages with a photo header) ---------- */
.page-hero { min-height: clamp(380px, calc(34 * var(--vw)), 540px); padding-block: clamp(2.5rem, calc(5 * var(--vw)), 4rem); }
.page-hero .hero-bg img { object-position: right center; }
.page-hero .kicker { color: var(--bronze); }
.page-hero .h1 { font-size: clamp(2.4rem, calc(4.6 * var(--vw)), 3.9rem); }
@media (max-width: 640px) {
  /* Same overlap as the home hero (owner, 2026-10-12): the About words run onto the
     reception photo instead of sitting in a beige block above a short strip of it. */
  .about-hero { min-height: 0; margin-top: 1.5rem; }
  /* Owner, 2026-10-13: the RD logo on the reception wall was cropped out on phones (the 4:5
     crop showed only the left two-thirds of the photo). A square frame anchored to the RIGHT
     edge keeps the whole reception — both plants, the laptops, the logo and the chair — and
     a shallower overlap keeps the last paragraph line clear of the logo. */
  /* Owner, 2026-10-13 (second pass): "move the image down a little, the words are covering it" —
     the overlap is now only the paper-coloured top of the frame, so the last paragraph line
     touches nothing in the photo; the picture itself begins right under the copy. */
  .page-hero .hero-bg { aspect-ratio: 1 / 1; margin-top: -2rem; }
  .page-hero .hero-bg img { object-position: right 60%; }
  .page-hero .hero-bg::after { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-90) 9%, var(--paper-0) 24%, var(--paper-0) 90%, var(--paper) 100%); }
  [data-theme="dark"] .page-hero .hero-bg::after {
    background:
      linear-gradient(180deg, var(--paper) 0%, var(--paper-90) 9%, rgba(18, 17, 16, .45) 24%, var(--paper-0) 90%, var(--paper) 100%),
      rgba(0, 0, 0, .2);
  }
  /* Owner, 2026-10-13: paragraph lines "in a straight vertical line" — flush on both sides on
     phones. Hyphenation keeps the word gaps even in the narrow column. */
  .lede { text-align: justify; text-wrap: pretty; -webkit-hyphens: auto; hyphens: auto; }
}

/* ---------- Service cards (services page) ---------- */
.services-list { padding-top: clamp(1.25rem, calc(2.5 * var(--vw)), 2rem); }
.scard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(.75rem, calc(1.4 * var(--vw)), 1.1rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.scard + .scard { margin-top: 1.25rem; }
.scard-media { aspect-ratio: 16 / 9; border-radius: 10px; }
.scard:hover .scard-media img { transform: scale(1.04); }
.scard-copy { display: grid; align-content: center; gap: 1.1rem; padding: .25rem .5rem 1rem; }
.scard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.scard-no {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--bronze);
}
.scard-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, calc(2.8 * var(--vw)), 2.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}
.circle-link {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin-top: .35rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.circle-link svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.circle-link:hover { background: var(--ink); color: var(--paper); }
.circle-link:hover svg { transform: translateX(2px); }
.scard .scard-proof { max-width: none; font-family: var(--mono); font-size: .75rem; line-height: 1.6; letter-spacing: .04em; color: var(--meta); }
.scard-proof a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .25s var(--ease), color .25s var(--ease); }
.scard-proof a:hover { color: var(--bronze); border-color: var(--bronze); }
.scard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: .25rem; }
.scard-actions .link-arrow { white-space: nowrap; }
.demo-link { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.demo-link .circle-link { width: 42px; height: 42px; margin-top: 0; }
.demo-link:hover .circle-link { background: var(--ink); color: var(--paper); }
.demo-link:hover .circle-link svg { transform: translateX(2px); }
.demo-label { font-family: var(--sans); font-size: .9375rem; font-weight: 500; }
.demo-label small { margin-left: .5rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; color: var(--meta); }
.scard-price { display: flex; flex-wrap: wrap; gap: .9rem 2.25rem; margin: .35rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.scard-price div { display: grid; gap: .3rem; }
.scard-price dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--meta); }
.scard-price dd { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, calc(1.9 * var(--vw)), 1.85rem); line-height: 1.05; letter-spacing: -.01em; font-variation-settings: "opsz" 72; color: var(--ink); }
.scard-price dd small { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; color: var(--meta); margin-left: .25rem; }
.scard .scard-fine { max-width: 52ch; font-size: .8125rem; line-height: 1.55; color: var(--ink-2); }
.scard p { max-width: 46ch; color: var(--ink-2); }
.check-list { display: grid; gap: .55rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.check-list li { position: relative; padding-left: 1.8em; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 1.15em; height: 1.15em;
  background: var(--bronze);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 641px) {
  .scard { grid-template-columns: 1.08fr 1fr; gap: clamp(1.5rem, calc(3 * var(--vw)), 3rem); align-items: center; }
  .scard-media { aspect-ratio: 16 / 10; }
  .scard-copy { padding: 1rem clamp(.5rem, calc(2 * var(--vw)), 2rem) 1rem 0; }
}
.dash-list {
  display: grid;
  gap: .5rem;
  margin-top: 1.4rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.dash-list li { position: relative; padding-left: 1.6em; }
.dash-list li::before { content: "\2014"; position: absolute; left: 0; top: 0; color: var(--bronze); }

/* ---------- Work page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.chip {
  padding: .5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pcard { grid-column: span 2; color: inherit; text-decoration: none; }
.pcard.is-wide { grid-column: span 3; }
.pcard.is-hidden { display: none; }
.pcard .ph { aspect-ratio: 4 / 3; }
.pcard.is-wide .ph { aspect-ratio: 16 / 10; }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: .9rem; }
.pcard-name { font-size: .9375rem; font-weight: 500; }
.pcard-type { display: block; margin-top: .1rem; font-size: .8125rem; color: var(--meta); }
.pcard-arr {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.pcard-arr svg { width: 13px; height: 13px; }
.pcard:hover .pcard-arr { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translate(2px, -2px); }
.pcard-empty { display: none; padding: 3rem 0; text-align: center; color: var(--meta); }
.work-grid.is-empty + .pcard-empty { display: block; }
@media (max-width: 640px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .pcard { grid-column: span 1; }
  .pcard.is-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .pcard, .pcard.is-wide { grid-column: auto; }
}

/* ---------- About page ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature {
  display: grid;
  justify-items: center;
  gap: .8rem;
  padding: 1.75rem 1.25rem;
  border-left: 1px solid var(--line);
  text-align: center;
}
.feature:nth-child(odd) { border-left: 0; }
.feature svg { width: 28px; height: 28px; color: var(--ink); }
.feature span { font-size: .875rem; font-weight: 500; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
.stat { display: grid; gap: .35rem; padding: clamp(1.5rem, calc(3 * var(--vw)), 2.25rem) 1rem; background: var(--paper-2); text-align: center; }
.stat b { font-size: clamp(2rem, calc(3.6 * var(--vw)), 2.75rem); line-height: 1; color: var(--ink); }
.stat span { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--meta); }
@media (min-width: 641px) {
  .features, .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature:nth-child(odd) { border-left: 1px solid var(--line); }
  .feature:first-child { border-left: 0; }
}

.how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.how-head { margin-bottom: 0; }
@media (min-width: 641px) {
  .how-grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, calc(4 * var(--vw)), 4.5rem); }
  .how-head { position: sticky; top: 6.5rem; align-self: start; }
}
.stages { counter-reset: stage; }
.stage {
  display: grid;
  gap: .4rem;
  padding-block: 1.5rem 1.6rem;
  border-top: 1px solid var(--line-strong);
}
.stage:last-child { border-bottom: 1px solid var(--line-strong); }
.stage dt { font-size: 1.4rem; line-height: 1.2; }
.stage dt::before {
  counter-increment: stage;
  content: "0" counter(stage);
  display: block;
  margin-bottom: .4rem;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--bronze);
}
.stage dd { margin: 0; max-width: 44ch; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 641px) {
  .stage { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); column-gap: 2rem; align-items: start; }
}

/* ---------- Why choose us: four pill cards tethered to a centre figure ---------- */
.why {
  position: relative;
  overflow: hidden;
  padding-top: 1rem;   /* sits close under the service cards */
  background:
    radial-gradient(ellipse 60% 55% at 50% 60%, rgba(140, 106, 60, .09), transparent 70%),
    var(--paper);
}
.why-head { text-align: center; }
.why-kicker { display: inline-block; color: var(--bronze); }
.why-kicker::after { content: ""; display: block; width: 36px; height: 1px; margin: .7rem auto 0; background: var(--bronze); }
.why-head .h2 { white-space: nowrap; }
.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: clamp(2rem, calc(3.5 * var(--vw)), 3rem);
}
.why-col { display: grid; gap: clamp(2rem, calc(4 * var(--vw)), 4.5rem); }
.why-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem 1.1rem 1.1rem;
  border: 1px solid rgba(140, 106, 60, .18);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 14px 34px -24px rgba(21, 19, 15, .35);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.why-card:hover { border-color: rgba(140, 106, 60, .4); box-shadow: 0 22px 40px -24px rgba(21, 19, 15, .45); background: #fff; }
[data-theme="dark"] .why-card:hover { background: var(--dark-2); }
.why-icon {
  flex: none;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--bronze);
}
.why-icon svg { width: 30px; height: 30px; }
.why-text { display: grid; gap: .15rem; min-width: 0; }
.why-text b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.why-text span { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.why-figure {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 1000 / 1311;
}
.why-figure picture, .why-figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
}
.why-arch {
  position: absolute;
  left: 50%; bottom: 0;
  width: 112%;
  height: 78%;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(140, 106, 60, .14), rgba(140, 106, 60, .04));
}
/* Tethers: a dot on the card edge, an arc out to a dot beside the figure (desktop only) */
.why-card::before, .why-card::after { content: ""; position: absolute; display: none; pointer-events: none; }
.why-card::before { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); top: calc(50% - 3.5px); }
.why-card::after { width: 72px; height: 54px; border: 0 solid var(--bronze); }
.why-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(2rem, calc(3.5 * var(--vw)), 3rem);
  font-size: .9375rem;
  color: var(--ink-2);
  text-align: center;
}
.why-tag::before, .why-tag::after { content: ""; flex: none; width: 72px; height: 1px; background: var(--line-strong); }
@media (min-width: 641px) {
  .why-grid { grid-template-columns: 1.15fr 1fr 1.15fr; gap: clamp(1.5rem, calc(2.5 * var(--vw)), 3rem); }
  .why-figure { width: min(100%, 400px); }
  /* pills reach a little past the text column on the outside, so the figure keeps its size */
  .why-left { margin-left: -2.5rem; }
  .why-right { margin-right: -2.5rem; }
  .why-card { padding-right: 2rem; }
  /* top pills sit higher: open the gap, then lift the column so the bottom pills stay put */
  .why-col { gap: calc(clamp(2rem, calc(4 * var(--vw)), 4.5rem) + 3.5rem); position: relative; top: -1.75rem; }
  .why-card:nth-child(1)::after { width: 80px; height: 104px; }
  .why-left .why-card:nth-child(2) { margin-left: -2.5rem; margin-right: 2.5rem; }
  .why-right .why-card:nth-child(2) { margin-right: -2.5rem; margin-left: 2.5rem; }
  .why-card::before, .why-card::after { display: block; }
  .why-left .why-card::before { right: -3.5px; }
  .why-right .why-card::before { left: -3.5px; }
  /* arc = two borders + one rounded corner; the end dot is painted into that corner's opposite */
  .why-left .why-card::after { left: 100%; }
  .why-right .why-card::after { right: 100%; }
  .why-left .why-card:nth-child(1)::after { top: 50%; border-top-width: 1px; border-right-width: 1px; border-top-right-radius: 48px; background: radial-gradient(circle at 100% 100%, var(--bronze) 3px, transparent 4px); }
  .why-left .why-card:nth-child(2)::after { bottom: 50%; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 48px; background: radial-gradient(circle at 100% 0%, var(--bronze) 3px, transparent 4px); }
  .why-right .why-card:nth-child(1)::after { top: 50%; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 48px; background: radial-gradient(circle at 0% 100%, var(--bronze) 3px, transparent 4px); }
  .why-right .why-card:nth-child(2)::after { bottom: 50%; border-bottom-width: 1px; border-left-width: 1px; border-bottom-left-radius: 48px; background: radial-gradient(circle at 0% 0%, var(--bronze) 3px, transparent 4px); }
}
@media (max-width: 640px) {
  .why-head .h2 { white-space: normal; }
  .why-figure { order: -1; }
  .why-tag::before, .why-tag::after { width: 32px; }
}
/* Choreography start states (motion.js pops the pills in clockwise, then adds .is-on to draw each tether) */
html.motion .why-card, html.motion .why-figure { opacity: 0; }
html.motion .why-card::before { transition: transform .3s var(--ease); }
html.motion .why-card::after { transition: clip-path .7s var(--ease); }
html.motion .why-card:not(.is-on)::before { transform: scale(0); }
html.motion .why-left .why-card:nth-child(1):not(.is-on)::after { clip-path: inset(0 100% 100% 0); }
html.motion .why-left .why-card:nth-child(2):not(.is-on)::after { clip-path: inset(100% 100% 0 0); }
html.motion .why-right .why-card:nth-child(1):not(.is-on)::after { clip-path: inset(0 0 100% 100%); }
html.motion .why-right .why-card:nth-child(2):not(.is-on)::after { clip-path: inset(100% 0 0 100%); }
[data-theme="dark"] .why-card { border-color: rgba(201, 166, 107, .22); }
[data-theme="dark"] .why-arch { background: linear-gradient(180deg, rgba(201, 166, 107, .16), rgba(201, 166, 107, .04)); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
.contact-list { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; color: inherit; text-decoration: none; }
.contact-item svg { width: 24px; height: 24px; flex: none; margin-top: .15rem; color: var(--ink); transition: color .3s var(--ease); }
.contact-item:hover svg { color: var(--bronze); }
.contact-item b { display: block; font-weight: 500; }
.contact-item span { display: block; font-size: .8125rem; color: var(--meta); }
.form-card {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, calc(3 * var(--vw)), 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--meta);
}
.field input, .field select, .field textarea {
  width: 100%;
  margin: 0;
  padding: .8rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--meta); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(140, 106, 60, .18);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem; top: 50%;
  width: 7px; height: 7px;
  border-right: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 2.5rem; cursor: pointer; }
.field select option { background: var(--paper); color: var(--ink); }
.form-note { margin-top: -.3rem; text-transform: none; letter-spacing: .02em; }
@media (min-width: 641px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, calc(4 * var(--vw)), 4.5rem); }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.footer { background: var(--paper-2); padding-block: clamp(3rem, calc(6 * var(--vw)), 4.5rem) 2rem; font-size: .9375rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.footer .logo { height: 68px; margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; font-size: .9375rem; }
.footer h4 { margin-bottom: 1rem; font-family: var(--mono); font-weight: 400; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--meta); }
.footer ul { display: grid; gap: .5rem; }
.footer a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.footer a:hover { background-size: 100% 1px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--meta);
}
@media (min-width: 641px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--gap); }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, calc(2.5 * var(--vw)), 1.75rem);
  bottom: clamp(1rem, calc(2.5 * var(--vw)), 1.75rem);
  z-index: 80;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45);
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.wa-float:hover { background: var(--wa); color: #fff; }
.wa-float svg { width: 21px; height: 21px; }

/* ---------- Video stage: a service card's arrow grows the card's picture into a full-screen player ---------- */
html.stage-open, html.stage-open body { overflow: hidden; }
.stage { position: fixed; inset: 0; z-index: 110; }   /* over the grain (90) and the WhatsApp button (80), under the intro curtain (120) */
.stage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.stage.is-open .stage-backdrop { opacity: 1; }
.stage-frame {
  position: absolute;   /* left / top / width / height are set by site.js: it starts on the card's picture and ends centred */
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
}
.stage-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.stage-cap {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.stage-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid rgba(239, 233, 221, .35);
  border-radius: 50%;
  background: rgba(12, 11, 10, .5);
  color: var(--on-dark);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.stage-close:hover { background: var(--on-dark); color: var(--dark); }
.stage-close svg { width: 18px; height: 18px; }
/* opening: caption and close arrive once the frame has nearly landed; closing: they leave at once */
.stage.is-open .stage-cap, .stage.is-open .stage-close { opacity: 1; transform: none; transition-delay: .4s, .4s, 0s, 0s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .track { scroll-behavior: auto; }
}

/* ---------- Motion contract: initial states only while html.motion is set ---------- */
html.motion [data-reveal] { opacity: 0; }
html.motion [data-reveal-group] > * { opacity: 0; }
html.motion [data-clip] { clip-path: inset(0 0 100% 0); }
html.motion [data-clip="x"] { clip-path: inset(0 100% 0 0); }
html.motion [data-rule] { transform: scaleX(0); transform-origin: left center; }
html.motion [data-split] { visibility: hidden; }
html.motion [data-draw] { opacity: 0; }
