/*
  Shape system: cards & images 16px, inputs 10px, buttons and pills fully rounded.
  Z-index scale: header 10, scroll progress 11, skip link 20.
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f4f1;
  --text: #151a17;
  --muted: #4c5750;
  --line: #d3dbd4;
  --accent: #24543a;
  --accent-hover: #1b432e;
  --accent-contrast: #ffffff;
  --accent-soft: #dbe8de;
  --accent-deep: #173626;
  --shadow: 0 1px 2px rgb(36 84 58 / 0.06), 0 12px 32px -12px rgb(36 84 58 / 0.18);
  --error: #a3261b;
  --glow-green: transparent;
  --glow-brass: transparent;
  --pattern-ink: rgb(36 84 58 / 0.09);
  --grain-opacity: 0;

  --radius: 16px;
  --radius-input: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Onest Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(55rem 38rem at 88% -8%, var(--glow-green), transparent 62%),
    radial-gradient(42rem 32rem at -6% 38%, var(--glow-brass), transparent 64%),
    radial-gradient(60rem 40rem at 60% 115%, var(--glow-green), transparent 60%);
}

body::after {
  position: absolute;
  background: var(--pattern-ink);
  mask: url('/img/pattern-tools.svg') 0 0 / 480px 480px repeat;
  -webkit-mask: url('/img/pattern-tools.svg') 0 0 / 480px 480px repeat;
}

html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
    0 0 / 180px 180px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 999px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn .ph {
  font-size: 1.1em;
  transition: transform 0.3s var(--ease);
}

.btn:hover .ph-arrow-right {
  transform: translateX(3px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.16), transparent 55%),
    var(--accent);
  color: var(--accent-contrast);
  box-shadow:
    inset 0 1px 0.5px rgb(255 255 255 / 0.35),
    inset 0 -2px 6px rgb(0 0 0 / 0.18),
    0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.28) 50%, transparent 70%);
  translate: -110% 0;
  transition: translate 0.7s var(--ease);
}

.btn-primary:hover {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.16), transparent 55%),
    var(--accent-hover);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0.5px rgb(255 255 255 / 0.35),
    inset 0 -2px 6px rgb(0 0 0 / 0.18),
    0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn-primary:hover::after {
  translate: 110% 0;
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost:hover {
  --glass-bg: rgb(255 255 255 / 0.8);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* Liquid glass: frosted backdrop, bright rim, pointer-following specular light */

@property --glare {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.glass,
.header-inner::before {
  --glass-bg: rgb(255 255 255 / 0.5);
  --glass-rim: rgb(255 255 255 / 0.9);
  --glass-edge: rgb(21 52 36 / 0.1);
  --glass-shade: rgb(16 40 28 / 0.26);
  background:
    radial-gradient(circle at var(--gx, 30%) var(--gy, 0%), rgb(255 255 255 / calc(var(--glare) * 0.6)), transparent 55%),
    linear-gradient(165deg, rgb(255 255 255 / 0.4), transparent 55%),
    var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 1px var(--glass-rim),
    inset 0 -1px 1px rgb(255 255 255 / 0.3),
    inset 0 0 20px -6px rgb(255 255 255 / 0.85),
    0 1px 2px rgb(16 40 28 / 0.06),
    0 14px 34px -16px var(--glass-shade);
}

.glass {
  transition:
    --glare 0.45s var(--ease),
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.3s var(--ease);
}

.glass.is-lit {
  --glare: 1;
}

.lg-refract .glass-refract,
.lg-refract .header-inner::before {
  backdrop-filter: url(#liquid-glass) saturate(180%) brightness(1.03);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  padding-top: 10px;
  pointer-events: none;
}

.header-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  --glass-bg: rgb(255 255 255 / 0.55);
  transition: box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled .header-inner::before {
  --glass-shade: rgb(16 40 28 / 0.4);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 11;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #d8b46a));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: min(1200px, calc(100% - 2 * clamp(0.75rem, 3vw, 2rem)));
  padding-inline: 1.4rem 0.45rem;
  border-radius: 999px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand .brand-logo {
  height: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-inline: auto;
}

.main-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.75);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255), 0 2px 8px -4px rgb(16 40 28 / 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
}

.lang-switch button {
  min-width: 40px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.6);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255), 0 2px 8px -4px rgb(16 40 28 / 0.3);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  place-items: center;
}

/* Hero */

.hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}

.hero-glow {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-glow span {
  position: absolute;
  width: clamp(280px, 40vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.hero-glow span:first-child {
  top: -10%;
  right: 5%;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero-glow span:last-child {
  bottom: -20%;
  left: -8%;
  background: color-mix(in srgb, #d8b46a 35%, transparent);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 .word {
  display: inline-block;
}

.hero-text {
  margin-top: 1.4rem;
  max-width: 50ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.hero-stage {
  --sy: 0;
  --mx: 0deg;
  --my: 0deg;
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  perspective: 1400px;
}

.hero-3d {
  position: relative;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--sy) * 22deg + var(--my)))
    rotateY(calc(-8deg + var(--mx)))
    translateZ(calc(var(--sy) * -160px));
  transition: transform 0.25s ease-out;
}

.hero-media {
  aspect-ratio: 6 / 7;
  max-height: min(72dvh, 640px);
  width: 100%;
  box-shadow: 0 40px 80px -30px rgb(10 30 20 / 0.45);
}

.hero-float {
  position: absolute;
  left: -16%;
  bottom: 7%;
  width: 38%;
  aspect-ratio: 3 / 4;
  border: 6px solid rgb(255 255 255 / 0.7);
  box-shadow:
    0 0 0 1px rgb(21 52 36 / 0.08),
    0 30px 60px -20px rgb(0 0 0 / 0.45);
  transform: translateZ(90px) translateY(calc(var(--sy) * -80px));
}

.hero-badge {
  position: absolute;
  top: 8%;
  right: -8%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  border-radius: 20px;
  --glass-bg: rgb(255 255 255 / 0.38);
  transform: translateZ(140px) translateY(calc(var(--sy) * -40px));
}

.hero-badge .ph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.2), transparent 60%), var(--accent);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.4);
  color: var(--accent-contrast);
  font-size: 1.2rem;
}

.hero-badge strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.hero-badge span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Marquee */

.marquee {
  --skew: 0deg;
  overflow: hidden;
  padding-block: 1.1rem;
  background: var(--accent);
  color: var(--accent-contrast);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
  transform: skewX(var(--skew));
  transition: transform 0.3s ease-out;
  will-change: translate, transform;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding-inline: 1.5rem;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee-track span::after {
  content: '\2726';
  margin-left: 3rem;
  font-size: 0.8em;
  opacity: 0.6;
}

/* Showcase: a photo that rises like a laptop lid, then fans out into three */

.showcase {
  --open: 1;
  --spread: 1;
  --head: 0;
  --note: 1;
  --w: min(86vw, 96svh, 1180px);
  --ratio: 4 / 3;
  --side-w: 0.34;
  --side-x: 0.5;
  position: relative;
  color: var(--text);
}

.showcase-sticky {
  padding-block: clamp(4rem, 9vw, 7rem);
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.showcase-head .eyebrow {
  justify-content: center;
}

.showcase-head h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.showcase-stage {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 1rem;
  width: min(100%, 1180px);
}

.showcase-main {
  aspect-ratio: 4 / 3;
  box-shadow: 0 60px 120px -40px rgb(10 30 20 / 0.45);
}

.showcase-side {
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px -30px rgb(10 30 20 / 0.4);
}

.showcase-note {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .js .showcase {
    --open: 0;
    --spread: 0;
    --note: 0;
    height: 340vh;
  }

  .js .showcase-sticky {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100svh;
    padding: 0;
    overflow: hidden;
    perspective: 1400px;
    perspective-origin: 50% 35%;
  }

  .js .showcase-head {
    position: absolute;
    inset: calc(var(--header-h) + 7svh) 1rem auto;
    opacity: calc(1 - var(--head));
    transform: translateY(calc(var(--head) * -48px)) scale(calc(1 - var(--head) * 0.06));
    filter: blur(calc(var(--head) * 10px));
  }

  .js .showcase-stage {
    position: absolute;
    top: 54%;
    left: 50%;
    display: block;
    width: var(--w);
    aspect-ratio: var(--ratio);
    translate: -50% -50%;
    transform-style: preserve-3d;
  }

  .js .showcase-main {
    position: absolute;
    inset: 0;
    z-index: 2;
    aspect-ratio: auto;
    border-radius: calc(var(--radius) + (1 - var(--open)) * 10px);
    transform-origin: 50% 100%;
    transform:
      translateY(calc((1 - var(--open)) * -6svh - var(--spread) * var(--w) * 0.1))
      rotateX(calc((1 - var(--open)) * 62deg))
      scale(calc(0.56 + var(--open) * 0.44 - var(--spread) * 0.28));
    will-change: transform;
  }

  .js .showcase-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.32), transparent 45%);
    opacity: calc(1 - var(--open));
    pointer-events: none;
  }

  .js .showcase-side {
    --dir: -1;
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--w) * var(--side-w));
    margin: calc(var(--w) * var(--side-w) * -0.6667) 0 0 calc(var(--w) * var(--side-w) * -0.5);
    opacity: var(--spread);
    transform:
      translateX(calc(var(--dir) * var(--spread) * var(--w) * var(--side-x)))
      translateZ(calc(-320px + var(--spread) * 180px))
      rotateY(calc(var(--dir) * var(--spread) * -40deg));
    will-change: transform, opacity;
  }

  .js .showcase-side.is-right {
    --dir: 1;
  }

  .js .showcase-note {
    position: absolute;
    inset: auto 1rem 6svh;
    margin-inline: auto;
    opacity: var(--note);
    transform: translateY(calc((1 - var(--note)) * 28px));
  }
}

/* Immersive: an inset photo that grows to fill the screen, then a glass card slides in */

.immersive {
  --z: 1;
  --h: 0;
  --k: 1;
  position: relative;
}

.immersive-sticky {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.immersive-head .eyebrow {
  justify-content: center;
}

.immersive-head h2 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.immersive-media {
  width: min(100%, 1180px);
  aspect-ratio: 16 / 10;
  box-shadow: 0 60px 120px -40px rgb(10 30 20 / 0.45);
}

.immersive-card {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  max-width: 30rem;
  padding: 1.6rem;
  border-radius: 28px;
  text-align: left;
  font-size: 1.125rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .js .immersive {
    --z: 0;
    --k: 0;
    height: 300vh;
  }

  .js .immersive-sticky {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .js .immersive-head {
    position: absolute;
    inset: calc(var(--header-h) + 6svh) 1rem auto;
    z-index: 2;
    opacity: calc(1 - var(--h));
    transform: translateY(calc(var(--h) * -48px)) scale(calc(1 - var(--h) * 0.06));
    filter: blur(calc(var(--h) * 10px));
  }

  .js .immersive-media {
    position: absolute;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    clip-path: inset(
      calc((1 - var(--z)) * var(--top, 44svh)) calc((1 - var(--z)) * 18vw) calc((1 - var(--z)) * 7svh)
        round calc((1 - var(--z)) * 36px)
    );
    will-change: clip-path;
  }

  .js .immersive-media img {
    scale: calc(1.28 - var(--z) * 0.28);
  }

  .js .immersive-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(8 14 10 / 0.6), transparent 55%);
    opacity: var(--k);
    pointer-events: none;
  }

  .js .immersive-card {
    --glass-bg: rgb(12 22 16 / 0.28);
    --glass-rim: rgb(255 255 255 / 0.45);
    --glass-edge: rgb(255 255 255 / 0.2);
    --glass-shade: rgb(0 0 0 / 0.5);
    position: absolute;
    z-index: 2;
    left: clamp(1rem, 5vw, 4rem);
    bottom: clamp(1.5rem, 7svh, 4rem);
    color: #f3f6f4;
    opacity: var(--k);
    transform: translateY(calc((1 - var(--k)) * 48px)) scale(calc(0.96 + var(--k) * 0.04));
    pointer-events: none;
  }

  .js .immersive.show-card .immersive-card {
    pointer-events: auto;
  }
}

/* Photos with graceful fallback while real project photos are missing */

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.photo.is-missing {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #2c6345, #173626);
}

.photo.is-missing img {
  display: none;
}

.photo-fallback {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  color: rgb(236 242 237 / 0.72);
  font-size: 0.875rem;
  font-weight: 500;
}

.photo-fallback .ph {
  font-size: 2.5rem;
}

/* Sections */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Services bento */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 1rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  border-radius: 24px;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.5), transparent 60%), rgb(255 255 255 / 0.5);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgb(21 52 36 / 0.09);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.95),
    inset 0 0 24px -8px rgb(255 255 255 / 0.9),
    0 14px 34px -20px rgb(16 40 28 / 0.3);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease);
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgb(255 255 255 / 0.45),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.tile.is-tilting {
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.95),
    inset 0 0 24px -8px rgb(255 255 255 / 0.9),
    0 30px 60px -28px rgb(10 30 20 / 0.5);
}

.tile.is-tilting::before {
  opacity: 1;
}

.tile-icon {
  transition: transform 0.5s var(--ease);
}

.tile:hover .tile-icon {
  transform: translateY(-4px) rotate(-8deg) scale(1.08);
}

.tile h3 {
  font-size: 1.15rem;
}

.tile p {
  color: var(--muted);
  font-size: 0.975rem;
}

.tile-icon {
  margin-bottom: auto;
  padding-bottom: 1.5rem;
  font-size: 1.9rem;
  color: var(--accent);
}

.tile-accent,
.tile-accent.is-tilting {
  background: linear-gradient(155deg, rgb(52 112 78 / 0.94), rgb(23 54 38 / 0.96));
  border-color: rgb(255 255 255 / 0.12);
  color: var(--accent-contrast);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.4),
    inset 0 0 28px -10px rgb(255 255 255 / 0.35),
    0 18px 40px -22px rgb(16 40 28 / 0.6);
}

.tile-accent p,
.tile-accent .tile-icon {
  color: color-mix(in srgb, var(--accent-contrast) 82%, transparent);
}

.tile-muted {
  background: linear-gradient(165deg, rgb(255 255 255 / 0.45), transparent 60%), rgb(219 232 222 / 0.6);
}

.tile-feature {
  padding: 0;
  justify-content: flex-end;
  border: 0;
  background: var(--accent-deep);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}

.tile-feature .photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
  z-index: -1;
}

.tile-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(10 20 14 / 0.5) 0%, transparent 55%);
  pointer-events: none;
}

.tile-feature .tile-body {
  display: grid;
  gap: 0.5rem;
  margin: 0.7rem;
  padding: 1.15rem 1.3rem 1.25rem;
  border-radius: 18px;
  color: #f1f5f2;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.14), transparent 60%), rgb(12 22 16 / 0.3);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow:
    inset 0 1px 0.5px rgb(255 255 255 / 0.4),
    inset 0 0 20px -8px rgb(255 255 255 / 0.3),
    0 10px 30px -14px rgb(0 0 0 / 0.5);
}

.tile-feature .tile-body p {
  color: rgb(241 245 242 / 0.84);
  max-width: 46ch;
}

.tile-feature:hover .photo img {
  transform: scale(1.04);
}

.tile-feature .photo.is-missing {
  place-items: start end;
  padding: 1.4rem;
}

.tile-bathroom {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-bathroom h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

.tile-tall {
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.svc-catalog {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.svc-catalog-title {
  padding-block: 1.6rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc-group {
  border-bottom: 1px solid var(--line);
}

.svc-group summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.15rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

.svc-group summary::-webkit-details-marker {
  display: none;
}

.svc-group summary:hover,
.svc-group[open] summary {
  color: var(--accent);
}

.svc-num {
  min-width: 2ch;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.svc-group summary .ph {
  margin-left: auto;
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
}

.svc-group[open] summary .ph {
  transform: rotate(45deg);
}

.svc-group ul {
  columns: 3 15rem;
  column-gap: 2rem;
  margin: 0;
  padding: 0 0 1.5rem calc(2ch + 1.25rem);
  list-style: none;
}

.svc-group li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  color: var(--muted);
  break-inside: avoid;
}

.svc-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Turnkey */

.turnkey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.turnkey-list-title {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.turnkey-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.turnkey-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.turnkey-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.turnkey-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.6rem;
  border-radius: 24px;
}

.turnkey-aside p {
  color: var(--muted);
}

/* Work gallery */

.work {
  position: relative;
  color: var(--text);
}

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.work-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.work-lead {
  margin-top: 1rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.125rem;
}

.work-cta {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.work-cta p {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 210px);
  grid-auto-flow: dense;
  gap: 0.9rem;
}

.work-item {
  position: relative;
  grid-row: span 2;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 24px 50px -28px rgb(10 30 20 / 0.45);
}

.work-item.is-wide {
  grid-column: span 2;
}

.work-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.work-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.work-item figcaption {
  position: absolute;
  inset: auto 0.6rem 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.14), transparent 60%), rgb(12 22 16 / 0.32);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.35);
  color: #eef3ef;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
  pointer-events: none;
}

.work-item:hover .work-open img,
.work-open:focus-visible img {
  transform: scale(1.05);
}

.work-item:hover figcaption,
.work-item:focus-within figcaption {
  opacity: 1;
  translate: none;
}

@media (hover: none) {
  .work-item figcaption {
    opacity: 1;
    translate: none;
  }
}

.work-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: var(--radius);
}

/* Reel: 3D cover flow driven by scroll */

.reel {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.reel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  margin-bottom: 1.25rem;
}

.reel-head .eyebrow {
  width: 100%;
  margin: 0;
}

.reel-head h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.reel-count {
  display: none;
  margin-left: auto;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.reel-track {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 1rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reel-card {
  flex: 0 0 min(72vw, 320px);
  scroll-snap-align: center;
}

.reel-card .photo {
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  box-shadow: 0 30px 60px -30px rgb(10 30 20 / 0.45);
}

.reel-card figure {
  position: relative;
  margin: 0;
}

.reel-card .photo {
  border-radius: 24px;
}

.reel-card figcaption {
  position: absolute;
  inset: auto 0.7rem 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.14), transparent 60%), rgb(12 22 16 / 0.32);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.35);
  color: #eef3ef;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.reel-bar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reel {
    --rp: 0;
    height: 420vh;
    margin-bottom: 0;
  }

  .js .reel-sticky {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    height: 100svh;
    padding-block: calc(var(--header-h) + 3svh) 5svh;
    overflow: hidden;
  }

  .js .reel-count {
    display: block;
  }

  .js .reel-track {
    --cw: min(66vw, 44svh, 430px);
    position: relative;
    display: block;
    padding: 0;
    overflow: visible;
    perspective: 1600px;
    transform-style: preserve-3d;
  }

  .js .reel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--cw);
    margin: calc(var(--cw) * -0.6667) 0 0 calc(var(--cw) * -0.5);
    opacity: calc(1.3 - var(--ad, 0) * 0.38);
    transform:
      translateX(calc(var(--tx, 0) * var(--cw)))
      translateZ(calc(var(--ad, 0) * -200px))
      rotateY(var(--ry, 0deg));
    will-change: transform, opacity;
  }

  .js .reel-card .photo {
    -webkit-box-reflect: below 10px linear-gradient(transparent 80%, rgb(255 255 255 / 0.12));
  }

  .js .reel-card img {
    filter: brightness(calc(1 - var(--ad, 0) * 0.22));
  }

  .js .reel-card figcaption {
    opacity: calc(1 - var(--ad, 0) * 2.5);
  }

  .js .reel-bar {
    display: block;
  }

  .reel-bar span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
  }

  .reel-bar span::after {
    content: '';
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(var(--rp));
  }

  .parallax img {
    scale: 1.14;
    translate: 0 calc(var(--py, 0) * 1%);
  }
}

/* Lightbox */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6rem);
  border: 0;
  background: transparent;
  color: #eef3ef;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgb(6 10 8 / 0.92);
  backdrop-filter: blur(6px);
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.9);
}

.lightbox-caption {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
  font-size: 0.95rem;
  color: rgb(238 243 239 / 0.8);
}

.lightbox-count {
  font-variant-numeric: tabular-nums;
  color: rgb(238 243 239 / 0.55);
  white-space: nowrap;
}

.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  --glass-bg: rgb(20 28 23 / 0.35);
  --glass-rim: rgb(255 255 255 / 0.35);
  --glass-edge: rgb(255 255 255 / 0.18);
  --glass-shade: rgb(0 0 0 / 0.6);
  color: #eef3ef;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-btn:hover {
  --glass-bg: rgb(60 80 68 / 0.5);
  --glass-edge: rgb(255 255 255 / 0.35);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  translate: 0 -50%;
}

.lightbox-prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox-next {
  right: clamp(0.5rem, 2vw, 1.5rem);
}

/* Story */

.story {
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  border-block: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.story-media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.story-media .photo {
  aspect-ratio: 9 / 11;
}

.story-intro {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 2.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.timeline::after {
  content: '';
  position: absolute;
  left: 20.5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--accent);
  transform-origin: 50% 0;
  transform: scaleY(var(--tp, 0));
}

.timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  --glass-bg: rgb(255 255 255 / 0.7);
  color: var(--accent);
  font-size: 1.2rem;
}

.timeline-icon.is-current {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.22), transparent 60%), var(--accent);
  border-color: transparent;
  color: var(--accent-contrast);
}

.timeline h3 {
  font-size: 1.15rem;
  padding-top: 0.55rem;
}

.timeline p {
  margin-top: 0.4rem;
  color: var(--muted);
  max-width: 56ch;
}

/* Values */

.values-quote {
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.values-quote p {
  max-width: 24ch;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.values-quote .word {
  opacity: calc(0.14 + 0.86 * clamp(0, var(--hp, 1) * var(--n, 1) - var(--w, 0), 1));
}

.values-quote p::before {
  content: '\201C';
  color: var(--accent);
}

.values-quote p::after {
  content: '\201D';
  color: var(--accent);
}

.values-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-list li {
  padding: 0.25rem 1.5rem 0.5rem;
  border-left: 1px solid var(--line);
}

.values-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.values-list .ph {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.7), transparent 65%), rgb(219 232 222 / 0.65);
  backdrop-filter: blur(12px) saturate(170%);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgb(21 52 36 / 0.08);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255),
    inset 0 0 14px -4px rgb(255 255 255 / 0.9),
    0 10px 24px -14px rgb(16 40 28 / 0.4);
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}

.values-list li:hover .ph {
  transform: translateY(-4px) rotate(-6deg);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.22), transparent 60%), var(--accent);
  color: var(--accent-contrast);
}

.values-list h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.values-list p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */

.contact {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.contact-goal {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
}

.contact-details dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-details dt .ph {
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-details a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}

.contact-details a:hover {
  background-size: 100% 1px;
}

.map-card {
  position: relative;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 8px;
  border-radius: 32px;
  --glass-bg: rgb(255 255 255 / 0.4);
}

.map-frame {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 480px);
  border: 0;
  border-radius: 25px;
}

.map-chip {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: calc(100% - 2.5rem);
  padding: 0.6rem;
  border-radius: 999px;
  --glass-bg: rgb(255 255 255 / 0.62);
}

.map-pin {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.22), transparent 60%), var(--accent);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.4);
  color: var(--accent-contrast);
  font-size: 1.3rem;
}

.map-address {
  display: grid;
  line-height: 1.3;
  min-width: 0;
}

.map-address strong {
  font-size: 0.975rem;
}

.map-address span {
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 32px;
  --glass-bg: rgb(255 255 255 / 0.45);
}

.contact-form h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 0.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(21 52 36 / 0.18);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.6);
  box-shadow: inset 0 1px 3px rgb(16 40 28 / 0.08);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.select-wrap {
  position: relative;
}

.phone-wrap {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
}

.phone-wrap input {
  padding-left: 2.6rem;
}

.select-wrap select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field-help {
  margin-top: -0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.field .field-help {
  margin-top: 0;
}

.field-error {
  font-size: 0.875rem;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-input);
  font-size: 0.95rem;
}

.form-status .ph {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-status.is-success {
  background: var(--accent-soft);
  color: var(--text);
}

.form-status.is-success .ph {
  color: var(--accent);
}

.form-status.is-error {
  background: color-mix(in srgb, var(--error) 12%, transparent);
  color: var(--text);
}

.form-status.is-error .ph {
  color: var(--error);
}

/* Footer */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.footer-phone .ph {
  color: var(--accent);
}

.footer-phone:hover {
  color: var(--accent);
}

.footer-tagline {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 44ch;
}

.footer-legal {
  font-size: 0.875rem;
  color: var(--muted);
}

/* 404 */

.nf-title {
  margin-top: 3rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.nf-sub {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .depth {
    transform:
      perspective(1200px)
      rotateX(calc(var(--rx, 0deg) + var(--my, 0deg)))
      rotateY(var(--mx, 0deg))
      translateZ(var(--tz, 0px));
    transition: transform 0.2s ease-out;
    will-change: transform;
  }

  .js .reveal {
    opacity: 0;
    translate: 0 48px;
    scale: 0.94;
    filter: blur(6px);
    transition:
      opacity 0.9s var(--ease),
      translate 0.9s var(--ease),
      scale 0.9s var(--ease),
      filter 0.9s var(--ease),
      transform 0.2s ease-out;
    transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms),
      calc(var(--i, 0) * 80ms), 0s;
  }

  .js .reveal.is-visible {
    opacity: 1;
    translate: none;
    scale: none;
    filter: none;
  }

  .values-list,
  .timeline {
    perspective: 1000px;
  }

  .js .values-list .reveal,
  .js .timeline .reveal {
    rotate: x -55deg;
    transform-origin: 50% 0;
    transition-property: opacity, translate, scale, filter, rotate;
  }

  .js .values-list .reveal.is-visible,
  .js .timeline .reveal.is-visible {
    rotate: none;
  }

  .hero-copy > * {
    animation: rise 1s var(--ease) both;
  }

  .hero-copy > h1 {
    animation: none;
  }

  .hero h1 .word {
    animation: word-in 1.1s var(--ease) both;
    animation-delay: calc(80ms + var(--w) * 65ms);
  }

  .js .values-quote p {
    --hp: 0;
  }

  .js .zoom-in {
    scale: calc(0.86 + var(--v, 1) * 0.14);
    opacity: calc(0.15 + var(--v, 1) * 0.85);
  }

  .js .zoom-in img {
    scale: calc(1.3 - var(--v, 1) * 0.3);
  }

  .hero-stage {
    animation: swing-in 1.4s var(--ease) both;
  }

  .hero-media img {
    animation: settle 2.4s var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 60ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 180ms;
  }

  .hero-stage {
    animation-delay: 150ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .marquee-track,
  .hero-glow span {
    animation: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.5em) scale(0.96);
    filter: blur(12px);
  }
}

@keyframes swing-in {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-35deg) rotateX(12deg) translateZ(-200px);
  }
}

@keyframes settle {
  from {
    transform: scale(1.18);
  }
}

@keyframes marquee {
  to {
    translate: -50% 0;
  }
}

@keyframes drift {
  to {
    transform: translate(-12%, 14%) scale(1.15);
  }
}

/* Responsive */

@media (max-width: 1100px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-bathroom {
    grid-row: span 1;
    min-height: 340px;
  }

  .values-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .values-list li:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .turnkey-layout {
    grid-template-columns: 1fr;
  }

  .turnkey-aside {
    position: static;
  }

  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 0.75rem;
    border-radius: 26px;
    background: linear-gradient(165deg, rgb(255 255 255 / 0.5), transparent 60%), rgb(255 255 255 / 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgb(21 52 36 / 0.1);
    box-shadow:
      inset 0 1px 1px rgb(255 255 255 / 0.95),
      0 24px 50px -20px rgb(16 40 28 / 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: 50% 0;
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .main-nav a {
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    color: var(--text);
    border-radius: 0;
  }

  .main-nav a:hover {
    background: none;
    box-shadow: none;
    color: var(--accent);
  }

  .main-nav a + a {
    border-top: 1px solid rgb(21 52 36 / 0.1);
  }

  .header-actions {
    margin-left: auto;
  }

  .header-inner {
    padding-left: 1.2rem;
  }

  .js .immersive-media {
    clip-path: inset(
      calc((1 - var(--z)) * var(--top, 42svh)) calc((1 - var(--z)) * 5vw) calc((1 - var(--z)) * 8svh)
        round calc((1 - var(--z)) * 28px)
    );
  }

  .js .immersive-card {
    right: clamp(1rem, 5vw, 4rem);
  }

  .hero-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    max-width: none;
    justify-self: stretch;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .hero-float {
    left: auto;
    right: 4%;
    bottom: -8%;
    width: 30%;
  }

  .hero-badge {
    top: auto;
    right: auto;
    left: 4%;
    bottom: 6%;
  }

  .story-media {
    position: static;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 28vw, 220px);
  }

  .showcase {
    --w: min(90vw, 96svh);
    --side-x: 0.42;
  }

  @media (prefers-reduced-motion: no-preference) {
    .js .showcase {
      height: 300vh;
    }

    .js .reel {
      height: 380vh;
    }
  }

  .story-media .photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .brand-name {
    display: none;
  }

  .brand .brand-logo {
    height: 18px;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .tile-bathroom,
  .tile-tall,
  .tile-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .tile-feature {
    min-height: 300px;
  }

  .tile {
    min-height: 200px;
  }

  .values-list {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .values-list li {
    padding: 0 0 0 1.25rem;
    border-left: 1px solid var(--line);
  }

  .values-list li:first-child,
  .values-list li:nth-child(4) {
    padding-left: 1.25rem;
    border-left: 1px solid var(--line);
  }

  .map-frame {
    height: 420px;
  }

  .map-chip {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    flex-wrap: wrap;
    max-width: none;
    padding: 0.75rem;
    border-radius: 24px;
  }

  .map-chip .btn {
    flex: 1 1 100%;
  }

  .showcase {
    --ratio: 4 / 5;
    --side-w: 0.44;
    --side-x: 0.44;
  }

  .work-grid {
    gap: 0.6rem;
    grid-auto-rows: 42vw;
  }

  .work-item.is-wide {
    grid-row: span 1;
  }

  .work-cta,
  .work-cta .btn {
    width: 100%;
  }

  .lightbox {
    padding-inline: 0.75rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    translate: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-float {
    width: 34%;
    border-width: 4px;
  }

  .hero-badge {
    padding: 0.6rem 0.8rem;
  }
}
