/* ==========================================================================
   Cove Landscape Design & Construction
   Design system: editorial, warm, restrained. Serif display + humanist sans.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #151a12;
  --forest: #293420;
  --forest-deep: #1a2316;
  --sage: #79a57e;
  --sage-ink: #4a7050;
  --sage-soft: #a9c6ac;
  --sand: #c9b99a;

  /* Surfaces */
  --linen: #f4f1ea;
  --linen-2: #ebe6db;
  --paper: #fcfbf8;

  /* Text */
  --text: var(--ink);
  --muted: #5f5c52;
  --on-dark: #f4f1ea;
  --on-dark-muted: rgba(244, 241, 234, 0.68);

  /* Lines */
  --line: rgba(21, 26, 18, 0.12);
  --line-strong: rgba(21, 26, 18, 0.28);
  --line-dark: rgba(244, 241, 234, 0.16);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 280ms;
  --dur-slow: 700ms;

  /* Layout */
  --container: 1360px;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 2px;
  --nav-h: 84px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(21, 26, 18, 0.05), 0 8px 24px -12px rgba(21, 26, 18, 0.18);
  --shadow-2: 0 2px 4px rgba(21, 26, 18, 0.06), 0 24px 48px -20px rgba(21, 26, 18, 0.28);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  background: var(--linen);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
  border-radius: 2px;
}
::selection { background: var(--sage); color: var(--ink); }

/* Skip link */
.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display, h1, h2, .h-serif {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
h3 { font-family: var(--font-body); font-weight: 500; font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-dark .eyebrow, .on-deep .eyebrow { color: var(--on-dark-muted); }

.lede {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}
.on-dark .lede { color: var(--on-dark-muted); }
.copy p + p { margin-top: 1.25em; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.7); }
.on-dark { background: var(--forest); color: var(--on-dark); }
.on-deep { background: var(--forest-deep); color: var(--on-dark); }
.on-linen-2 { background: var(--linen-2); }

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 64px;
  }
  .section-head .lede { max-width: 42ch; padding-bottom: 10px; }
}
.section-head h2 { margin-top: 18px; max-width: 16ch; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .rule, .on-deep .rule { background: var(--line-dark); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--linen);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { background: var(--forest); border-color: var(--forest); }
.btn:active { background: var(--forest-deep); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.6875rem; }
.btn--light { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.link:hover { color: var(--sage-ink); }
.on-dark .link:hover, .on-deep .link:hover { color: var(--sage); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.text-link:hover { color: var(--sage-ink); border-color: currentColor; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--forest);
  color: var(--on-dark);
  transition: background-color 400ms var(--ease), color 400ms var(--ease), box-shadow 400ms var(--ease), transform 400ms var(--ease);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-dark);
}
.site-header.is-scrolled {
  background: rgba(41, 52, 32, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .nav a:not(.btn) { color: var(--on-dark-muted); }
.site-header .nav a:not(.btn):hover, .site-header .nav a[aria-current="true"] { color: var(--on-dark); }
.site-header.is-hidden.menu-open { transform: none; }

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; height: 44px; }
.brand img { height: 40px; width: auto; }

.nav { display: none; align-items: center; gap: 40px; }
.nav a:not(.btn) {
  position: relative;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 10px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 8px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 44px; min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.menu-toggle .bars { width: 26px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 340ms var(--ease), top 340ms var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 10.5px; }
.menu-open .menu-toggle .bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--forest);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  transition: clip-path 560ms var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu ul { display: grid; gap: 4px; margin-bottom: 40px; }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 9vw, 2.8rem);
  line-height: 1;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 560ms var(--ease-out), opacity 560ms var(--ease-out);
}
.mobile-menu li a small { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--sage); }
.mobile-menu.is-open li a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: 120ms; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 180ms; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 240ms; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 300ms; }
.mobile-menu__meta {
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}
.mobile-menu__meta a { color: var(--on-dark); }
.mobile-menu .btn { margin-top: 24px; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* --------------------------------------------------------------------------
   Hero — split panel, photography first
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  min-height: 100svh;
  padding-top: var(--nav-h);
  background: var(--linen);
}
.hero__panel {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px var(--gutter) 40px;
}
.hero__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 42ch; margin-top: 24px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; }
.hero__foot { margin: 0; border-top: 1px solid var(--line); }
.hero__foot div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}
.hero__foot div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__foot dt { color: var(--muted); }
.hero__foot dd { margin: 0; color: var(--text); }
.hero__media {
  order: 1;
  position: relative;
  min-height: 58svh;
  overflow: hidden;
  background: var(--linen-2);
}
.hero__media picture, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero__panel { order: 1; padding: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 64px) clamp(32px, 4vw, 56px) var(--gutter); }
  .hero__media { order: 2; min-height: 0; }
}
@media (min-width: 1200px) {
  .hero__panel { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { background: var(--linen); }
.about__grid { display: grid; gap: 56px; }
.about__text h2 { max-width: 16ch; margin-top: 18px; }
.about__text .copy { margin-top: 36px; max-width: 56ch; color: var(--muted); font-size: 1.0625rem; }
.about__text .copy p:first-child { color: var(--text); font-size: 1.125rem; line-height: 1.6; }
.about__figure { position: relative; }
.about__figure .frame {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--linen-2);
  border-radius: var(--radius);
}
.about__figure .frame picture { position: absolute; inset: 0; }
.about__figure .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(100%) contrast(1.02);
  transition: transform 1.2s var(--ease-out);
}
.about__figure:hover .frame img { transform: scale(1.03); }
.about__figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line-strong);
  z-index: -1;
  border-radius: var(--radius);
}
.principal {
  margin-top: 28px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-strong);
}
.principal h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.principal__role { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.creds { margin-top: 20px; display: grid; }
.creds li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.creds li:last-child { border-bottom: 0; }
.creds li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--sage-ink); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(56px, 8vw, 128px); align-items: start; }
  .about__text { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services { background: var(--linen-2); }
.services__grid {
  display: grid;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  position: relative;
  background: var(--linen-2);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 36px;
  min-height: 280px;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--dur) var(--ease);
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--forest);
  transform: translateY(101%);
  transition: transform 520ms var(--ease-out);
  z-index: -1;
}
.service:hover::before, .service:focus-within::before { transform: translateY(0); }
.service:hover, .service:focus-within { color: var(--on-dark); }
.service__top { display: flex; align-items: center; justify-content: flex-start; }
.service__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color var(--dur), background-color var(--dur);
}
.service__icon svg { width: 20px; height: 20px; }
.service:hover .service__icon { border-color: rgba(244,241,234,.3); background: rgba(244,241,234,.06); }
.service h3 { font-size: clamp(1.375rem, 1.7vw, 1.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; align-self: end; }
.service p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); max-width: 34ch; transition: color var(--dur); }
.service:hover p { color: var(--on-dark-muted); }
@media (max-width: 639px) {
  .service { min-height: 0; gap: 22px; padding: 26px 22px; grid-template-rows: auto auto auto; }
  .service h3 { font-size: 1.375rem; }
}
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Work / gallery — horizontal film strip
   -------------------------------------------------------------------------- */
.work { background: var(--linen); overflow: hidden; }
.work .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.strip-wrap {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  --strip-h: clamp(160px, 22vh, 190px);
  position: relative;
}
@media (min-width: 900px) { .strip-wrap { --strip-h: clamp(240px, 34vh, 360px); } }
.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-inline: var(--edge);
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) { .strip { gap: 16px; } }
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging .tile img { transition: none; }
.strip:focus-visible { outline: 2px solid var(--sage); outline-offset: -2px; }
.strip-item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; scroll-margin-left: var(--edge); display: flex; flex-direction: column; gap: 10px; }
.strip-item figcaption { font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--muted); }
.tile {
  position: relative;
  display: block;
  height: var(--strip-h);
  aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden;
  background: var(--linen-2);
  border-radius: var(--radius);
  cursor: inherit;
  -webkit-user-drag: none;
  user-select: none;
}
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; filter: saturate(0.94); transition: transform 1.2s var(--ease-out); pointer-events: none; }
.tile:hover img { transform: scale(1.03); }
.tile:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }

.strip-bar { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.strip-count { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip-count .strip-current { color: var(--text); }
.strip-track { flex: 1; height: 1px; background: var(--line); position: relative; }
.strip-progress { position: absolute; left: 0; top: -1px; height: 3px; width: 8%; background: var(--ink); transition: width 120ms linear, transform 120ms linear; }
.strip-arrows { display: none; gap: 8px; }
@media (min-width: 900px) { .strip-arrows { display: flex; } }
.arrow {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: background-color var(--dur), border-color var(--dur), color var(--dur), opacity var(--dur);
}
.arrow svg { width: 18px; height: 18px; }
.arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.arrow[disabled] { opacity: 0.3; pointer-events: none; }

.work__foot {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.work__foot p { font-size: 0.9375rem; color: var(--muted); max-width: 48ch; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(21, 26, 18, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-dark);
  opacity: 0; visibility: hidden;
  transition: opacity 320ms var(--ease), visibility 0s linear 320ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.lightbox__stage {
  position: relative;
  display: grid; place-items: center;
  padding: 0 clamp(16px, 8vw, 120px);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100svh - 190px);
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  transform: scale(0.97);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 320ms var(--ease);
}
.lightbox.is-open .lightbox__stage img.is-ready { transform: none; opacity: 1; }
.lightbox__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter) max(18px, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.lightbox__foot .caption { color: var(--on-dark-muted); font-size: 0.875rem; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark);
  transition: background-color var(--dur), border-color var(--dur), transform var(--dur);
}
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: rgba(244,241,234,.1); border-color: rgba(244,241,234,.4); }
.lb-btn:active { transform: scale(0.95); }
.lightbox__nav { display: flex; gap: 10px; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
}
.lightbox__arrow--prev { left: clamp(8px, 2vw, 32px); }
.lightbox__arrow--next { right: clamp(8px, 2vw, 32px); }
@media (max-width: 899px) { .lightbox__arrow { display: none; } }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.reviews { display: grid; border-top: 1px solid var(--line-dark); }
.review { display: flex; flex-direction: column; gap: 22px; padding: 32px 0; border-bottom: 1px solid var(--line-dark); }
.stars { display: inline-flex; gap: 5px; color: var(--sage); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.review blockquote { flex: 1; }
.review blockquote p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-dark);
  text-wrap: pretty;
  max-width: 44ch;
}
.review figcaption { display: grid; gap: 3px; font-size: 0.875rem; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.review figcaption strong { font-weight: 500; font-size: 1rem; }
.review figcaption span { color: var(--on-dark-muted); }
.review figcaption .project { color: var(--on-dark); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }
.review figcaption .source { font-size: 0.75rem; }
.review__rating { display: flex; align-items: center; gap: 12px; }
.g-mark { width: 18px; height: 18px; flex: 0 0 auto; }
@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 0; }
  .review { padding: 0 clamp(24px, 3vw, 48px) 0 0; border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .review + .review { padding-left: clamp(24px, 3vw, 48px); }
  .review:last-child { border-right: 0; padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--linen); }
.contact__grid { display: grid; gap: 56px; }
.contact__aside h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.contact__aside > p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.contact-list { margin-top: 40px; display: grid; }
.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--sage-ink);
}
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-list h4 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.contact-list p { line-height: 1.5; }
.contact-list p a { transition: color var(--dur); }
.contact-list p a:hover { color: var(--sage-ink); }
.contact-list small { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 2px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-2);
}
.form-card h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.form-card > p { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.form { margin-top: 36px; display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 720px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text); }
.field label .req { color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: rgba(95,92,82,.6); }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage-ink); background: var(--paper); box-shadow: 0 0 0 3px rgba(121,165,126,.22); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4462f; }
.field .error { display: none; font-size: 0.8125rem; color: #9a3a24; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: #b4462f; }
.form__submit { margin-top: 6px; }
.form__fine { font-size: 0.8125rem; color: var(--muted); text-align: center; line-height: 1.55; }
.form__fine a { text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur); }
.form__fine a:hover { color: var(--sage-ink); }
.form__status {
  display: none;
  align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  border-radius: 3px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form__status.is-visible { display: flex; }
.form__status--ok { background: rgba(121,165,126,.16); color: #2f4a34; border: 1px solid rgba(121,165,126,.4); }
.form__status--err { background: rgba(180,70,47,.1); color: #7e2e1c; border: 1px solid rgba(180,70,47,.35); }
.form__status svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 112px); align-items: start; }
  .contact__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; }
.footer__cta {
  display: grid; gap: 28px;
  padding-block: clamp(56px, 8vw, 112px);
  border-bottom: 1px solid var(--line-dark);
}
.footer__cta h2 { max-width: 24ch; }
.footer__cta .lede { color: var(--on-dark-muted); max-width: 40ch; }
@media (min-width: 900px) {
  .footer__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
}
.footer__grid {
  display: grid; gap: 40px;
  padding-block: clamp(48px, 6vw, 80px);
}
.footer__brand img { height: 46px; width: auto; }
.footer__brand p { margin-top: 24px; max-width: 40ch; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.7; }
.footer__col h3 { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--on-dark-muted); margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--on-dark-muted); transition: color var(--dur); font-size: 0.9375rem; }
.footer__col a:hover { color: var(--on-dark); }
.footer__col li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--on-dark-muted); line-height: 1.5; }
.footer__col li svg { width: 15px; height: 15px; color: var(--sage); flex: 0 0 auto; margin-top: 4px; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 56px; }
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 28px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
  line-height: 1.6;
}
.footer__bottom a { color: var(--on-dark); transition: color var(--dur); }
.footer__bottom a:hover { color: var(--sage); }
.footer__bottom .legal { max-width: 78ch; }

/* --------------------------------------------------------------------------
   Privacy page
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 112px));
  padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.page-hero .back { display: flex; width: max-content; margin-bottom: 40px; color: var(--muted); }
.page-hero .back svg { width: 16px; height: 16px; }
.page-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); max-width: 14ch; }
.page-hero .meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 0.875rem; color: var(--muted); }
.page-hero .meta strong { font-weight: 500; color: var(--text); }
.article { display: grid; gap: 56px; padding-block: clamp(56px, 7vw, 104px); }
.article__toc { display: none; }
.article__body { max-width: 68ch; color: var(--muted); font-size: 1.0625rem; }
.article__body section + section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.article__body h2 { font-size: clamp(1.375rem, 1.8vw, 1.75rem); color: var(--text); margin-bottom: 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; }
.article__body h2 .n { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); }
.article__body h3 { font-size: 1.0625rem; color: var(--text); margin: 28px 0 10px; }
.article__body p + p { margin-top: 1em; }
.article__body ul { list-style: none; margin: 14px 0 18px; display: grid; gap: 8px; }
.article__body ul li { position: relative; padding-left: 22px; }
.article__body ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--sage-ink); }
.article__body .contact-box { margin-top: 20px; padding: 24px 28px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); display: grid; gap: 6px; color: var(--text); }
.article__body .contact-box strong { font-weight: 500; font-size: 1.125rem; margin-bottom: 6px; }
@media (min-width: 1024px) {
  .article { grid-template-columns: 260px minmax(0, 1fr); gap: 96px; }
  .article__toc { display: block; position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
  .article__toc h2 { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
  .article__toc ol { display: grid; gap: 2px; counter-reset: toc; }
  .article__toc a { display: flex; gap: 14px; padding: 7px 0; font-size: 0.875rem; color: var(--muted); transition: color var(--dur); }
  .article__toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--muted); margin-top: 3px; }
  .article__toc a:hover, .article__toc a.is-active { color: var(--text); }
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > :nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-in > :nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-in > :nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-in > :nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-in > :nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-in > :nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.is-in > :nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.is-in > :nth-child(8) { transition-delay: 420ms; }
.reveal-stagger.is-in > :nth-child(9) { transition-delay: 480ms; }
.reveal-stagger.is-in > :nth-child(n+10) { transition-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
