/* Essential Lawn Care
   Radius system: media and panels 28px, small surfaces 16px, inputs 14px,
   interactive controls full pill. One accent: leaf green from the logo. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --r-lg: 28px;
  --r-md: 16px;
  --r-sm: 14px;
  --pill: 999px;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 60px;
  --section: clamp(88px, 12vw, 168px);
}

/* dark: default */
:root,
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #070d0b;
  --bg-2: #0c1512;
  --bg-3: #12201b;
  --line: rgb(214 235 225 / 0.1);
  --line-2: rgb(214 235 225 / 0.18);
  --text: #eef4f0;
  --text-2: #a9bab2;
  --text-3: #7f928a;
  --accent: #34d3a0;
  --accent-2: #5fe3b8;
  --accent-ink: #04231a;
  --accent-soft: rgb(52 211 160 / 0.12);
  --glass: rgb(9 18 15 / 0.72);
  --shadow: 0 24px 60px -20px rgb(0 0 0 / 0.6);
  --dim: 0.42;
  --selection: rgb(52 211 160 / 0.3);
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #f3f6f4;
  --bg-2: #ffffff;
  --bg-3: #e7eeea;
  --line: rgb(11 40 30 / 0.1);
  --line-2: rgb(11 40 30 / 0.18);
  --text: #0b1612;
  --text-2: #3f514a;
  --text-3: #5a6b64;
  --accent: #007a5b;
  --accent-2: #00664c;
  --accent-ink: #ffffff;
  --accent-soft: rgb(0 122 91 / 0.1);
  --glass: rgb(243 246 244 / 0.78);
  --shadow: 0 24px 60px -24px rgb(16 52 40 / 0.28);
  --dim: 0.3;
  --selection: rgb(0 122 91 / 0.2);
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  transition: background-color 300ms ease, color 300ms ease;
}

::selection { background: var(--selection); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-2) transparent; caret-color: var(--accent); }

[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
img { background-size: cover; background-position: center; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 640; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.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: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }

/* theme-specific marks */
.mark--light { display: none; }
[data-theme='light'] .mark--light { display: block; }
[data-theme='light'] .mark--dark { display: none; }

/* ---------------------------------------------------------------- buttons */

.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 34px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 52px; padding: 0 28px; font-size: 17px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-2); }
  .btn--ghost:hover { border-color: var(--text-3); background: var(--accent-soft); }
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--accent-soft); border-color: var(--line-2); } }
.icon-btn .icon { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 560;
  text-decoration: none;
}
.link-arrow .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(3px); } .link-arrow--back:hover .icon { transform: translateX(-3px); } }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); } }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a, .nav__sheet nav a { color: var(--text-2); font-size: 14px; text-decoration: none; transition: color 160ms ease; }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav__phone:hover { color: var(--text); }
.nav__menu { display: none; }
.nav__menu .icon:last-child, [data-menu-open] .nav__menu .icon:first-child { display: none; }
[data-menu-open] .nav__menu .icon:last-child { display: block; }

[data-theme-toggle] .icon:last-child { display: none; }
[data-theme='light'] [data-theme-toggle] .icon:first-child { display: none; }
[data-theme='light'] [data-theme-toggle] .icon:last-child { display: block; }

.nav__sheet {
  display: grid;
  gap: 24px;
  padding: 12px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.nav__sheet[hidden] { display: none; }
@media (min-width: 961px) { .nav__sheet { display: none; } }
.nav__sheet nav { display: grid; }
.nav__sheet nav a { padding: 14px 0; font-size: 22px; font-weight: 560; color: var(--text); border-bottom: 1px solid var(--line); }
.nav__sheet:not([hidden]) { animation: sheet-in 320ms var(--ease-drawer) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 960px) {
  .nav__links, .nav__phone { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__menu { display: inline-grid; }
}
@media (max-width: 420px) {
  .nav__actions .btn--sm { display: none; }
}

/* ---------------------------------------------------------------- hero + stage */

.hero { position: relative; }
.hero__copy { padding-top: clamp(56px, 9vw, 96px); text-align: center; }
.hero__title {
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 680;
}
.hero__sub {
  max-width: 34ch;
  margin: 22px auto 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  color: var(--text-2);
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.hero__title, .hero__sub, .hero__ctas { animation: hero-in 900ms var(--ease-out) both; }
.hero__sub { animation-delay: 80ms; }
.hero__ctas { animation-delay: 160ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

.stage { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.stage__sticky { position: relative; }
.stage__frame {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow);
}
.stage__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(4 10 8 / 0.62), rgb(4 10 8 / 0) 45%); pointer-events: none; }
.stage__caption {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(18px, 3.4vw, 40px);
  max-width: 24ch;
  color: #f2f7f4;
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.stage__toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--pill);
  background: rgb(10 20 16 / 0.55);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stage__toggle .icon-play, [data-paused] .stage__toggle .icon-pause { display: none; }
[data-paused] .stage__toggle .icon-play { display: block; }

/* Signature: the frame opens to full bleed as you scroll, then lets go. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    .stage:not(.stage--portrait) { height: 190vh; view-timeline: --stage block; }
    .stage:not(.stage--portrait) .stage__sticky { position: sticky; top: var(--nav-h); height: calc(100dvh - var(--nav-h)); display: grid; place-items: center; overflow: hidden; }
    .stage:not(.stage--portrait) .stage__frame {
      width: 100%;
      height: 100%;
      aspect-ratio: auto;
      border-radius: 0;
      box-shadow: none;
      animation: stage-open linear both;
      animation-timeline: --stage;
      animation-range: contain 0% contain 55%;
    }
    .stage:not(.stage--portrait) .stage__media { animation: stage-zoom linear both; animation-timeline: --stage; animation-range: contain 0% contain 100%; }
    .stage:not(.stage--portrait) .stage__caption { animation: caption-in linear both; animation-timeline: --stage; animation-range: contain 40% contain 70%; }
  }
}
/* Portrait media (phone video/photos): a tall frame over a blurred wash of
   itself. On scroll the frame rises into place and the wash fades up. */
.stage__aside { display: none; }
.stage__backdrop { display: none; }
.stage--portrait .stage__sticky { position: relative; display: grid; place-items: center; overflow: hidden; padding: clamp(20px, 4vw, 48px) 0; }
.stage--portrait .stage__frame { width: auto; height: min(78svh, calc((100vw - var(--gutter) * 2) * 16 / 9)); max-width: calc(100% - var(--gutter) * 2); aspect-ratio: 9 / 16; margin: 0; }
.stage--portrait .stage__backdrop {
  display: block;
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(44px) saturate(1.25) brightness(0.5);
  transform: scale(1.08);
}
@media (min-width: 761px) {
  .stage--portrait .stage__sticky { grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 72px); justify-items: stretch; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
  .stage--portrait .stage__frame { grid-column: 2; grid-row: 1; height: min(calc(100dvh - var(--nav-h) - 64px), 960px); max-width: none; }
  .stage--portrait .stage__caption { display: none; }
  .stage--portrait .stage__aside {
    display: block;
    position: relative;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin-bottom: 12%;
    color: #f2f7f4;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    font-weight: 640;
    letter-spacing: -0.035em;
    line-height: 1.12;
    max-width: 14ch;
    text-wrap: balance;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    .stage--portrait { height: 175vh; view-timeline: --stage block; }
    .stage--portrait .stage__sticky { position: sticky; top: var(--nav-h); height: calc(100dvh - var(--nav-h)); padding-block: 32px; }
    .stage--portrait .stage__frame { animation: portrait-rise linear both; animation-timeline: --stage; animation-range: contain 0% contain 45%; }
    .stage--portrait .stage__backdrop { animation: wash-in linear both; animation-timeline: --stage; animation-range: contain 0% contain 40%; }
    .stage--portrait .stage__aside { animation: caption-in linear both; animation-timeline: --stage; animation-range: contain 25% contain 55%; }
  }
}
@keyframes portrait-rise { from { transform: translateY(8%) scale(0.88); } to { transform: none; } }
@keyframes wash-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes stage-open {
  from { clip-path: inset(0 max(var(--gutter), calc((100% - var(--wrap)) / 2)) 22% round var(--r-lg)); }
  to { clip-path: inset(0 0 0 0 round 0); }
}
@keyframes stage-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes caption-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- statement */

.statement { padding: var(--section) 0 0; }
.statement__text {
  max-width: calc(1080px + var(--gutter) * 2);
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement { view-timeline: --statement block; }
    .statement__text span {
      animation: word-lit linear both;
      animation-timeline: --statement;
      animation-range: cover calc(18% + var(--p) * 34%) cover calc(24% + var(--p) * 34%);
    }
  }
}
@keyframes word-lit { from { opacity: var(--dim); } to { opacity: 1; } }

/* ---------------------------------------------------------------- sections */

.section { padding: var(--section) 0 0; }
.section--tight { padding-top: clamp(40px, 6vw, 72px); }
.section__title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.042em;
}
.section__title--sm { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-bottom: 28px; }
.section__lead { margin-top: 16px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--text-2); max-width: 46ch; }
.section__more { margin-top: 36px; }

/* scroll reveals (content stays visible where unsupported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .reveal-clip { animation: clip-up linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes clip-up { from { clip-path: inset(18% 6% 0 6% round var(--r-lg)); transform: scale(0.96); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); transform: none; } }

/* ---------------------------------------------------------------- bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
  margin-top: 48px;
}
.bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.bento__cell--1 { grid-column: span 3; grid-row: span 2; min-height: 600px; }
.bento__cell--2 { grid-column: span 3; grid-row: span 2; min-height: 600px; }
.bento__cell--3 { grid-column: span 2; background: var(--accent-soft); border-color: transparent; }
.bento__cell--4 { grid-column: span 2; background: radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 60%), var(--bg-2); }
.bento__cell--5 { grid-column: span 2; }
.bento__cell--6 { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; min-height: 180px; background: linear-gradient(120deg, var(--bg-2), var(--bg-3)); }
.bento__cell--6 .bento__text { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
.bento__cell--6 .bento__icon { grid-row: span 2; margin: 0; }
.bento__media { position: absolute; inset: 0; z-index: -1; }
.bento__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.bento__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(5 12 9 / 0.86) 8%, rgb(5 12 9 / 0.1) 62%); }
.bento__cell:has(.bento__media) { color: #f2f7f4; border-color: transparent; }
.bento__cell:has(.bento__media) p { color: rgb(232 241 236 / 0.82); }
.bento__cell--6 .link-arrow { flex: none; }
@media (max-width: 640px) { .bento__cell--6 { flex-direction: column; align-items: flex-start; gap: 20px; } }
.bento__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); }
.bento__cell:has(.bento__media) .bento__icon { background: rgb(255 255 255 / 0.14); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bento__icon .icon { width: 22px; height: 22px; }
.bento__text h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.15; }
.bento__cell--1 .bento__text h3, .bento__cell--2 .bento__text h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.bento__media img { object-position: 50% 60%; }
.bento__text p { margin-top: 8px; color: var(--text-2); max-width: 44ch; }
@media (hover: hover) and (pointer: fine) { .bento__cell:hover .bento__media img { transform: scale(1.04); } }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--1, .bento__cell--2 { grid-column: span 1; grid-row: span 1; min-height: 520px; }
  .bento__cell--3, .bento__cell--4 { grid-column: span 1; }
  .bento__cell--5, .bento__cell--6 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell, .bento__cell--1, .bento__cell--2, .bento__cell--3, .bento__cell--4, .bento__cell--5, .bento__cell--6 { grid-column: auto; grid-row: auto; }
  .bento__cell--1, .bento__cell--2 { min-height: 460px; }
  .bento__cell--6 .bento__text { display: block; }
  .bento__cell--6 .bento__icon { margin-bottom: 18px; }
}

/* ---------------------------------------------------------------- feature split */

.feature__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-3); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__text > p { margin-top: 20px; font-size: 1.125rem; color: var(--text-2); max-width: 46ch; }
.feature__text .link-arrow { margin-top: 28px; }
@media (max-width: 860px) { .feature__grid { grid-template-columns: 1fr; } .feature__media { aspect-ratio: 4 / 5; } }

.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--accent); margin-top: 3px; }

/* ---------------------------------------------------------------- rail */

.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.rail-controls { display: flex; gap: 8px; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 520px);
  gap: 20px;
  margin-top: 40px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline-offset: -2px; }

.project-card { display: block; text-decoration: none; }
.project-card__media { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.project-card__text { padding: 18px 4px 0; }
.project-card__text h3 { font-size: 1.375rem; letter-spacing: -0.03em; }
.project-card__text p { margin-top: 4px; color: var(--text-3); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .project-card:hover .project-card__media img { transform: scale(1.04); } }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px) 24px; }
.project-grid .project-card__media { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- mosaic */

.mosaic { columns: 4 240px; column-gap: 16px; margin-top: 40px; }
.mosaic--home .mosaic__item:nth-child(n + 9) { display: none; }
.mosaic__item { break-inside: avoid; margin: 0 0 16px; }
.mosaic__item[hidden] { display: none; }
.mosaic__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.mosaic__btn img { width: 100%; transition: transform 700ms var(--ease-out), opacity 300ms ease; }
.mosaic__item:nth-child(3n + 2) .mosaic__btn img { aspect-ratio: 3 / 4; object-fit: cover; }
.mosaic__item figcaption { padding: 10px 2px 0; color: var(--text-3); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .mosaic__btn:hover img { transform: scale(1.03); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters button { min-height: 36px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--pill); background: transparent; color: var(--text-2); font-size: 14px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------------------------------------------------------------- service area marquee */

.areas { padding: var(--section) 0 0; overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee__track { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.marquee__track li {
  padding-right: 0.9em;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee__track li::after { content: '/'; padding-left: 0.9em; color: var(--accent); opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .marquee { animation: marquee 60s linear infinite; }
  .areas:hover .marquee { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- quote / cta */

.cta { padding-bottom: var(--section); }
.cta__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.cta__text > p { margin-top: 20px; font-size: 1.125rem; color: var(--text-2); max-width: 40ch; }
.cta__text { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 4px; }
.cta__text .contact-line:first-of-type { margin-top: 28px; }
.page-hero + .section .cta__text .contact-line:first-of-type { margin-top: 0; }
.cta__form { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } .cta__text { position: static; } }

.contact-line { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 1.25rem; font-weight: 560; letter-spacing: -0.02em; text-decoration: none; }
.contact-line .icon { color: var(--accent); width: 22px; height: 22px; }
.contact-line--static { font-size: 1rem; font-weight: 400; color: var(--text-2); align-items: flex-start; }

.quote { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 14px; font-weight: 560; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid='true'] { border-color: #ff8a7a; }
[data-theme='light'] .field [aria-invalid='true'] { border-color: #c2382a; }
.field__help { font-size: 14px; color: var(--text-3); }
.field__error { font-size: 14px; color: #ff9b8c; min-height: 0; }
[data-theme='light'] .field__error { color: #b3301f; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.quote__alt { color: var(--text-3); font-size: 15px; }
.quote__alt a { color: var(--text); }
.quote__status { font-size: 15px; color: var(--text-2); }
.quote__status:empty { display: none; }
.quote__status[data-state='ok'] { color: var(--accent); }
.quote__status[data-state='error'] { color: #ff9b8c; }
[data-theme='light'] .quote__status[data-state='error'] { color: #b3301f; }
.quote.is-sent .field, .quote.is-sent .field-row, .quote.is-sent .quote__actions { display: none; }
.quote.is-sent .quote__status { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); animation: rise 500ms var(--ease-out) both; }
.btn.is-loading .btn__label { filter: blur(2px); opacity: 0.6; transition: filter 200ms ease, opacity 200ms ease; }

/* ---------------------------------------------------------------- page heroes + bands */

.page-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(16px, 3vw, 32px); }
.page-hero__title { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 680; }
.page-hero__sub { margin-top: 20px; max-width: 48ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--text-2); }
.page-hero--center { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.page-hero--center .page-hero__sub { margin-inline: auto; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: 14px; color: var(--text-2); text-decoration: none; transition: color 160ms ease, border-color 160ms ease; }
.jump a:hover { color: var(--text); border-color: var(--text-3); }

.band { padding-bottom: var(--section); }
.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--bg-2);
  border: 1px solid var(--line);
}
.band__inner h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.1; }

/* ---------------------------------------------------------------- services page */

.svc-list { display: grid; gap: clamp(72px, 10vw, 140px); padding-top: clamp(40px, 6vw, 72px); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; scroll-margin-top: calc(var(--nav-h) + 24px); }
.svc:nth-child(even) .svc__media { order: 2; }
.svc { grid-template-columns: 0.85fr 1fr; }
.svc__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 760px; background: var(--bg-3); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); }
.svc__icon .icon { width: 24px; height: 24px; }
.svc__text h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.08; }
.svc__text > p { margin-top: 16px; color: var(--text-2); font-size: 1.0625rem; max-width: 50ch; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) .svc__media { order: 0; } }

.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 1.1875rem; font-weight: 560; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--text-3); transition: transform 240ms var(--ease-out); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { padding: 0 0 24px; color: var(--text-2); max-width: 62ch; }
.faq__item[open] p { animation: rise 320ms var(--ease-out) both; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }
.faq { padding-bottom: 0; }

/* ---------------------------------------------------------------- project page */

.project__top { display: grid; grid-template-columns: 1fr minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: clamp(40px, 7vw, 88px); }
.project__head { padding-bottom: 8px; }
.project__head .link-arrow { margin-bottom: 28px; }
.project__meta { margin-top: 16px; color: var(--text-3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { padding: 6px 14px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; }
.tags--plain li { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); }
.project__cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; max-height: 82vh; background: var(--bg-3); }
@media (max-width: 860px) { .project__top { grid-template-columns: 1fr; } .project__cover { aspect-ratio: 4 / 5; } }
.project__cover img { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding-top: clamp(40px, 6vw, 72px); }
.prose { max-width: calc(68ch + var(--gutter) * 2); }
.prose p { font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); }
.prose p + p { margin-top: 1.1em; }
.feature__text.prose { max-width: none; }
.feature__text.prose p { margin-top: 16px; }
.note { padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--text) !important; font-size: 15px !important; margin-bottom: 24px; }
.empty { color: var(--text-2); }

/* ---------------------------------------------------------------- about */

.principles__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.principle { grid-column: span 2; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.principle--wide { grid-column: span 3; }
.principle:nth-child(2) { background: var(--accent-soft); border-color: transparent; }
.principle__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); }
.principle:nth-child(2) .principle__icon { background: var(--bg); }
.principle h3 { font-size: 1.375rem; letter-spacing: -0.03em; }
.principle p { margin-top: 8px; color: var(--text-2); }
@media (max-width: 860px) { .principles__grid { grid-template-columns: 1fr; } .principle, .principle--wide { grid-column: auto; } }

/* ---------------------------------------------------------------- footer */

.footer { margin-top: 0; padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--text-2); font-size: 15px; }
.footer__h { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.footer__list li:empty { display: none; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--text); text-decoration: underline; }
.footer__area { color: var(--text-2); font-size: 15px; }
.footer__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: auto; } }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(4 8 7 / 0.94);
  color: #fff;
  opacity: 0;
  transition: opacity 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.lightbox[open] { opacity: 1; display: grid; place-items: center; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 72px; }
.lightbox__figure img { max-width: min(100%, 1600px); max-height: calc(100dvh - 160px); width: auto; border-radius: var(--r-md); object-fit: contain; transition: transform 280ms var(--ease-out), opacity 200ms ease; }
.lightbox[open] .lightbox__figure img { animation: lb-in 280ms var(--ease-out) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } }
.lightbox__figure figcaption { color: rgb(255 255 255 / 0.78); font-size: 15px; }
.lightbox .icon-btn { position: absolute; color: #fff; border-color: rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.06); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lightbox__figure { padding: 64px 12px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: none; } }

/* ---------------------------------------------------------------- mobile tuning */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .stage:not(.stage--portrait) .stage__frame { aspect-ratio: 4 / 5; }
  .hero__title br { display: none; }
  .rail-controls { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
