/* Mankato Landscapers — shared styles */

:root {
  --spruce: #1e3b2f;
  --spruce-deep: #132a20;
  --spruce-soft: #2c5242;
  --kasota: #d6bc8a;
  --kasota-light: #ece0c6;
  --kasota-dark: #8a6d3b;
  --paper: #f3f2ec;
  --white: #ffffff;
  --ink: #18221d;
  --granite: #5b635d;
  --line: #dddbd1;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--spruce-deep);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--spruce); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

.kicker {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--kasota-dark);
  margin-bottom: 1rem;
}
.lede { font-size: var(--step-1); color: var(--granite); max-width: 60ch; line-height: 1.6; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 760px; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
}
@media (max-width: 720px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: var(--radius-sm);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease-out);
}
.btn--primary { background: var(--spruce); color: var(--white); }
.btn--primary:hover { background: var(--spruce-deep); }
.btn--stone { background: var(--kasota); color: var(--spruce-deep); }
.btn--stone:hover { background: var(--kasota-light); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline { border-color: var(--spruce); color: var(--spruce); }
.btn--outline:hover { background: var(--spruce); color: var(--white); }

.text-link {
  font-weight: 600; color: var(--spruce); text-decoration: underline;
  text-decoration-color: var(--kasota); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link { transition: text-decoration-color .2s, text-underline-offset .2s var(--ease-out); }
.text-link:hover { text-decoration-color: var(--spruce); text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243,242,236,.92); backdrop-filter: blur(10px); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 88px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 210px; height: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { white-space: nowrap; text-decoration: none; font-weight: 500; color: var(--ink); padding-block: .5rem; }
.nav a:not(.btn) { transition: color .2s; }
.nav a:not(.btn):hover { color: var(--kasota-dark); }
.nav a[aria-current="page"] { color: var(--kasota-dark); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 170px; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 0; cursor: pointer; color: var(--spruce-deep); border-radius: var(--radius-sm);
  }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem; background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a:not(.btn) { display: block; padding: .9rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero (home) ---------- */
.hero { padding-top: .5rem; }
.hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: clamp(560px, 78vh, 820px);
  display: flex; align-items: flex-end;
  padding: clamp(16px, 4vw, 56px);
  background: var(--spruce-deep);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-panel {
  position: relative; max-width: 580px;
  background: rgba(19, 42, 32, .9);
  color: var(--white);
  border-radius: 18px;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  display: grid; gap: 1.5rem;
}
.hero-panel .kicker { color: var(--kasota); margin: 0; }
.hero-panel h1 { color: var(--white); font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem); }
.hero-panel p { font-size: var(--step-1); color: rgba(255,255,255,.85); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: .25rem; }
.hero-award {
  position: absolute; top: clamp(16px, 3vw, 36px); right: clamp(16px, 3vw, 36px);
  width: clamp(76px, 8vw, 104px);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
@media (max-width: 600px) {
  .hero-frame { min-height: 0; padding: 10px; padding-top: 170px; }
  .hero-bg { object-position: 70% 0; }
  .hero-panel { padding: 1.5rem; gap: 1.1rem; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-panel { animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  .hero-bg { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Trust row ---------- */
.trust { padding-block: 2rem 0; }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.trust li { display: flex; align-items: center; gap: .75rem; color: var(--granite); font-weight: 500; }
.trust svg { flex-shrink: 0; color: var(--spruce-soft); }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Service overview (home) ---------- */
.svc-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr;
}
.svc-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end;
  color: var(--white); text-decoration: none; background: var(--spruce);
}
.svc-card:first-child { grid-row: span 2; min-height: 620px; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,24,18,.85) 0%, rgba(10,24,18,.2) 55%, transparent 80%); }
.svc-card .svc-body { position: relative; z-index: 1; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; gap: .5rem; max-width: 520px; }
.svc-card h3 { color: var(--white); }
.svc-card p { color: rgba(255,255,255,.85); }
.svc-card:hover img, .svc-card:focus-visible img { transform: scale(1.03); }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .svc-card:first-child { grid-row: auto; min-height: 380px; }
}

.svc-more {
  margin-top: 1.25rem; background: var(--white); border-radius: var(--radius-md);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.svc-more a {
  display: grid; gap: .25rem; padding: 1.5rem 1.75rem; text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.svc-more a:nth-child(3n) { border-right: 0; }
.svc-more a:nth-last-child(-n+3) { border-bottom: 0; }
.svc-more strong { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--spruce-deep); letter-spacing: -.01em; }
.svc-more span { color: var(--granite); font-size: .95rem; }
.svc-more a { transition: background-color .25s; }
.svc-more strong { transition: color .2s; }
.svc-more a:hover { background-color: #faf9f5; }
.svc-more a:hover strong { color: var(--kasota-dark); }
@media (max-width: 860px) {
  .svc-more { grid-template-columns: 1fr; }
  .svc-more a { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .svc-more a:last-child { border-bottom: 0 !important; }
}

/* ---------- Process ---------- */
.process { background: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 1rem + 4vw, 4.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.process ol { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: step; }
.process li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; counter-increment: step; }
.process li::before {
  content: counter(step);
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--kasota-light); color: var(--spruce-deep);
  font: 600 1.25rem/1 var(--font-display);
}
.process li strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--spruce-deep); margin-bottom: .25rem; padding-top: .55rem; }
.process li p { color: var(--granite); }
.process figure { margin: 0; }
.process figure img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.process figcaption { margin-top: .75rem; color: var(--granite); font-size: var(--step--1); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.25rem; }
.work-item { margin: 0; }
.work-item a, .work-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-md); overflow: hidden; }
.work-item img { width: 100%; aspect-ratio: 5/4; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-item a:hover img, .work-item button:hover img,
.work-item a:focus-visible img, .work-item button:focus-visible img { transform: scale(1.03); }
.work-item figcaption { margin-top: .85rem; display: grid; gap: .15rem; }
.work-item figcaption span { font-size: var(--step--1); color: var(--kasota-dark); font-weight: 600; }
.work-item figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--spruce-deep); letter-spacing: -.01em; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review {
  background: var(--white); border-radius: var(--radius-md); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem; margin: 0;
}
.review blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; flex: 1; }
.review figcaption { font-weight: 600; color: var(--spruce-deep); }
.review figcaption span { display: block; font-weight: 400; color: var(--granite); font-size: var(--step--1); }
.stars { display: flex; gap: 3px; color: var(--kasota-dark); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

.reviews-wall { columns: 3 320px; column-gap: 1.25rem; }
.reviews-wall .review { break-inside: avoid; margin-bottom: 1.25rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 960px; }
.faq details { background: var(--white); border-radius: var(--radius-md); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  font: 600 var(--step-1)/1.3 var(--font-display); color: var(--spruce-deep); letter-spacing: -.01em;
}
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--spruce-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--spruce);
  transform: translate(-50%, -50%); transition: transform .25s;
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details > div { padding: 0 1.75rem 1.75rem; color: var(--granite); max-width: 70ch; }
.faq details > div p + p { margin-top: .75rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--spruce); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: end;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.cta-band p { color: rgba(255,255,255,.82); font-size: var(--step-1); margin-top: 1.25rem; max-width: 44ch; }
.cta-band .cta-actions { display: grid; gap: .875rem; justify-items: start; }
.cta-band .cta-phone { font: 600 var(--step-2)/1 var(--font-display); color: var(--kasota); text-decoration: none; letter-spacing: -.01em; }
.cta-band .cta-phone small { display: block; font: 400 var(--step--1)/1.4 var(--font-body); color: rgba(255,255,255,.7); margin-bottom: .4rem; letter-spacing: 0; }
.cta-band .tree {
  position: absolute; right: -40px; top: -30px; width: 340px; opacity: .07; pointer-events: none;
  filter: invert(1);
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-intro h1 { max-width: 18ch; }
.page-intro .lede { margin-top: 1.5rem; }

/* ---------- Services page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.jump a {
  text-decoration: none; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: .95rem; font-weight: 500;
}
.jump a { transition: border-color .2s, background-color .2s; }
.jump a:hover { border-color: var(--spruce); }

.svc-block {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(12px, 1.5vw, 20px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4.5rem); align-items: center;
  scroll-margin-top: 110px;
}
.svc-block + .svc-block { margin-top: 1.25rem; }
.svc-block > img { width: 100%; height: 100%; min-height: 360px; max-height: 560px; object-fit: cover; border-radius: var(--radius-md); }
.svc-block:nth-of-type(even) > img { order: 2; }
.svc-copy { padding: clamp(1rem, .5rem + 2vw, 2.5rem) clamp(.75rem, .5rem + 1vw, 1.5rem); display: grid; gap: 1.25rem; align-content: center; }
.svc-copy > p { color: var(--granite); font-size: 1.1rem; }
.svc-copy h4 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0; color: var(--kasota-dark); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; }
.checks li::before {
  content: ""; width: 1.1rem; height: 1.1rem; margin-top: .25rem; border-radius: 50%;
  background: var(--kasota-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e3b2f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.svc-copy .text-link { justify-self: start; }
@media (max-width: 860px) {
  .svc-block { grid-template-columns: 1fr; }
  .svc-block > img, .svc-block:nth-of-type(even) > img { order: 0; min-height: 0; aspect-ratio: 4/3; }
}

/* Tree nursery — the type-led block */
.nursery {
  background: var(--spruce-deep); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(2rem, 1rem + 4vw, 5rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
  margin-block: 1.25rem; scroll-margin-top: 110px;
}
.nursery .big {
  font: 700 clamp(6rem, 3rem + 13vw, 15rem)/.8 var(--font-display);
  letter-spacing: -.06em; color: var(--kasota);
}
.nursery .big small { display: block; font: 500 var(--step-1)/1.3 var(--font-body); letter-spacing: 0; color: rgba(255,255,255,.75); margin-top: 1.25rem; }
.nursery h2 { color: var(--white); }
.nursery p { color: rgba(255,255,255,.82); margin-top: 1.25rem; max-width: 56ch; font-size: 1.1rem; }
.nursery ul { margin: 1.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.nursery li { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .4rem .9rem; font-size: .95rem; }
@media (max-width: 860px) { .nursery { grid-template-columns: 1fr; } }

/* ---------- Work page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button {
  font: 500 .95rem/1 var(--font-body); padding: .75rem 1.1rem; min-height: 44px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.filters button { transition: border-color .2s, background-color .2s, color .2s; }
.filters button:hover { border-color: var(--spruce); }
.filters button[aria-pressed="true"] { background: var(--spruce); color: var(--white); border-color: var(--spruce); }
.filters .count { opacity: .6; margin-left: .35rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-flow: dense; }
.gallery .work-item.tall { grid-row: span 2; display: flex; flex-direction: column; }
.gallery .work-item.tall button { flex: 1; min-height: 0; }
.gallery .work-item.tall img { height: 100%; aspect-ratio: auto; }
.gallery .work-item figcaption { margin-top: .6rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery .work-item.tall { grid-row: auto; } .gallery .work-item.tall img { aspect-ratio: 4/5; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 22, 17, .94);
  display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 64px 1fr auto; align-items: center;
  padding: 1rem; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: var(--white);
}
.lightbox:not([open]) { display: none; }
.lightbox img { grid-column: 2; grid-row: 2; max-width: 100%; max-height: 100%; margin: auto; border-radius: 8px; object-fit: contain; min-height: 0; }
.lightbox .lb-cap { grid-column: 1 / -1; grid-row: 3; text-align: center; padding: .75rem; color: rgba(255,255,255,.8); }
.lightbox button {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06); color: var(--white); cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.16); }
.lightbox .lb-close { grid-column: 3; grid-row: 1; justify-self: end; }
.lightbox .lb-prev { grid-column: 1; grid-row: 2; }
.lightbox .lb-next { grid-column: 3; grid-row: 2; justify-self: end; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 64px 1fr auto auto; }
  .lightbox img { grid-column: 1 / -1; }
  .lightbox .lb-close { grid-column: 2; }
  .lightbox .lb-prev { grid-row: 4; grid-column: 1; justify-self: end; margin-right: .5rem; }
  .lightbox .lb-next { grid-row: 4; grid-column: 2; justify-self: start; margin-left: .5rem; }
}

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.about-hero h1 { max-width: 12ch; }
.about-hero .lede { margin-top: 1.5rem; }
.about-hero .lede + p { margin-top: 1.25rem; color: var(--granite); max-width: 60ch; }
.about-hero .btn { margin-top: 2rem; }
.about-hero img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } .about-hero img { aspect-ratio: 4/3; } }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 2rem; align-items: center;
  border-block: 1px solid var(--line); padding-block: 2.75rem;
}
.facts div strong { display: block; font: 600 clamp(2.75rem, 2rem + 2.5vw, 4rem)/1 var(--font-display); color: var(--spruce-deep); letter-spacing: -.04em; }
.facts div span { display: block; color: var(--granite); margin-top: .5rem; }
.facts img { width: 110px; border-radius: 6px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.value { background: var(--white); border-radius: var(--radius-md); padding: 2rem; display: grid; gap: .75rem; align-content: start; }
.value svg { color: var(--kasota-dark); }
.value h3 { font-size: 1.4rem; }
.value p { color: var(--granite); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.crew { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.crew img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.crew p { color: var(--granite); margin-top: 1.25rem; max-width: 56ch; font-size: 1.1rem; }
@media (max-width: 860px) { .crew { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-card { background: var(--white); border-radius: var(--radius-md); padding: 1.5rem 1.75rem; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.contact-card .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--kasota-light); color: var(--spruce); display: grid; place-items: center; }
.contact-card small { display: block; color: var(--granite); font-size: var(--step--1); }
.contact-card a, .contact-card address { font-style: normal; font-weight: 600; font-size: 1.15rem; color: var(--spruce-deep); text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; text-decoration-color: var(--kasota); text-underline-offset: 4px; }
.map { border: 0; width: 100%; height: 300px; border-radius: var(--radius-md); filter: grayscale(.35); }

.form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3rem); display: grid; gap: 1.25rem; }
.form h2 { font-size: var(--step-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .form legend { font-weight: 600; font-size: .95rem; color: var(--spruce-deep); }
.field label .opt { font-weight: 400; color: var(--granite); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  padding: .85rem 1rem; min-height: 52px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--spruce); background: var(--white); box-shadow: 0 0 0 3px rgba(30,59,47,.15); }
.field .hint { color: var(--granite); font-size: var(--step--1); }
.field.has-error input, .field.has-error textarea { border-color: #a4402a; }
.field .error { color: #a4402a; font-size: var(--step--1); font-weight: 500; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { transition: background-color .2s, border-color .2s, color .2s; display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .95rem; background: var(--paper); }
.chips input:checked + span { background: var(--spruce); border-color: var(--spruce); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--kasota-dark); outline-offset: 2px; }
.form-note { background: var(--kasota-light); border-radius: var(--radius-sm); padding: 1rem 1.25rem; color: var(--spruce-deep); }
.form-note[hidden] { display: none; }
.form .btn { justify-self: start; }

.careers { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.careers p { color: var(--granite); margin-top: 1rem; max-width: 60ch; }
@media (max-width: 760px) { .careers { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--spruce-deep); color: rgba(255,255,255,.78); margin-top: var(--section); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid .brand img { width: 230px; filter: invert(1); opacity: .95; }
.footer-grid p { margin-top: 1.25rem; max-width: 34ch; }
.footer-grid h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--kasota); letter-spacing: 0; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-grid a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-grid address { font-style: normal; display: grid; gap: .6rem; }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--step--1); color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* ---------- Motion ----------
   Everything below only runs when the visitor hasn't asked for reduced motion.
   Scroll reveals are gated on .has-reveal, which main.js adds, so nothing is
   hidden if the script doesn't run. */
@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveals (main.js tags elements and adds .is-in on entry) */
  /* Hiding is instant; only the reveal is transitioned */
  .has-reveal .rv { opacity: 0; transform: translate3d(0, 18px, 0); }
  .has-reveal .rv-img { opacity: 0; clip-path: inset(5% 3% round var(--radius-md)); }
  .has-reveal .rv.is-in { transition: opacity .55s var(--ease-out), transform .6s var(--ease-out); }
  .has-reveal .rv-img.is-in { transition: opacity .5s var(--ease-out), clip-path .8s var(--ease-out); }
  .has-reveal .crew > .rv-img { clip-path: inset(5% 3% round var(--radius-lg)); }
  .has-reveal .rv.is-in { opacity: 1; transform: none; }
  .has-reveal .rv-img.is-in { opacity: 1; clip-path: inset(0 round var(--radius-md)); }
  .has-reveal .crew > .rv-img.is-in { clip-path: inset(0 round var(--radius-lg)); }

  /* Inner-page intros play once on load, like the home hero */
  .page-intro > *, .about-hero > div > *, .contact-grid > *, .filters {
    animation: rise-sm .6s var(--ease-out) both;
  }
  .page-intro > :nth-child(2), .about-hero > div > :nth-child(2) { animation-delay: .07s; }
  .page-intro > :nth-child(3), .about-hero > div > :nth-child(3) { animation-delay: .14s; }
  .page-intro > :nth-child(4), .about-hero > div > :nth-child(4) { animation-delay: .21s; }
  .contact-grid > :nth-child(1), .filters { animation-delay: .2s; }
  .contact-grid > :nth-child(2) { animation-delay: .28s; }
  .about-hero > img { animation: unclip .9s var(--ease-out) .12s both; }

  /* Button lift: small, only on devices that really hover */
  @media (hover: hover) {
    .btn:hover { transform: translateY(-1px); }
    .btn--primary:hover, .btn--stone:hover { box-shadow: 0 10px 20px -12px rgba(19, 42, 32, .6); }
    .btn:active { transform: none; transition-duration: .05s; }
  }

  /* Lightbox opens with a short fade */
  .lightbox[open] { animation: fade-in .25s ease-out; }

  /* FAQ answers open smoothly where the browser supports animating to auto */
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: hidden;
      transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* Subtle parallax on the home hero photo and the CTA tree mark.
     Pure CSS scroll timelines: no scroll listeners, and browsers without
     support simply show the static version. */
  @supports (animation-timeline: view()) {
    /* Timelines live on the clipping containers: their overflow:hidden would
       otherwise become the scroller the images track */
    .hero-frame { view-timeline: --hero-view; }
    .cta-band { view-timeline: --cta-view; }
    .hero-bg {
      inset: -32px 0; height: calc(100% + 64px);
      animation: settle 1.6s var(--ease-out) both, drift-down linear both;
      animation-timeline: auto, --hero-view;
      animation-range: normal, exit 0% exit 100%;
    }
    .cta-band .tree {
      animation: drift-tree linear both;
      animation-timeline: --cta-view;
    }
  }
}

@keyframes rise-sm { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes unclip {
  from { opacity: 0; clip-path: inset(5% 3% round var(--radius-lg)); }
  to { opacity: 1; clip-path: inset(0 round var(--radius-lg)); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift-down { from { translate: 0 0; } to { translate: 0 32px; } }
@keyframes drift-tree { from { translate: 0 -24px; } to { translate: 0 24px; } }
