/* ==========================================================================
   Hawaii Landscape Services
   One hand-written stylesheet, no framework.

   1. Tokens          6. Home
   2. Base            7. Inner pages
   3. Type & links    8. Estimate form
   4. Layout          9. Footer
   5. Header & nav   10. Utilities & motion
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* The brand green comes straight from the logo (#0f8342). It is kept for
     buttons and small accents; large dark surfaces use the deeper forest so
     the page does not shout. */
  --green:        #0f8342;
  --green-deep:   #0b6a35;
  --forest:       #133a2b;
  --forest-deep:  #0e2c21;
  --charcoal:     #1a1f1c;

  --ink:          #1d2320;
  --ink-soft:     #454d48;
  --muted:        #6b716c;
  --stone:        #a2a2a2;        /* the grey half of the old divider bar */

  --paper:        #faf8f3;
  --sand:         #f1ede3;
  --line:         #ddd7c9;
  --line-soft:    #e9e4d8;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap:    1240px;
  --gutter:  clamp(20px, 4.5vw, 56px);
  --section: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure { margin: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: #cfe3d6; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* 3. Type & links
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--green-deep);
}
.display--xl { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem); line-height: .98; }
.display--md { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
  flex: none;
}
.eyebrow--light { color: #cfe0d6; }
.eyebrow--light::before { background: #7fc59c; }

.lead {
  font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.subhead {
  margin: 2em 0 .9em;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons. Square-shouldered and quiet: a rectangle, small tracked capitals. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--green);
  border-radius: 1px;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 11.5px; }
.btn--ghost { background: transparent; color: var(--green-deep); }
.btn--ghost:hover { background: var(--green-deep); color: #fff; }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--forest); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--forest-deep); }

/* A text link with a rule that draws out on hover. Used beside buttons. */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-line::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.link-line:hover { color: var(--green-deep); }
.link-line:hover::after { width: 46px; }
.link-line--light { color: var(--paper); }
.link-line--light:hover { color: #fff; }

/* 4. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--sand { background: var(--sand); }
.section--flush { padding-block: 0; }
.section + .section--tight:not(.section--sand) { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.prose { max-width: 680px; color: var(--ink-soft); }
.prose .lead { color: var(--ink); margin-bottom: 1.2em; }

/* Lists set as ruled rows rather than bullets. */
.rule-list {
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.rule-list li {
  display: flex;
  flex-direction: column;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink);
}
.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 14px;
  height: 1px;
  background: var(--green);
}
.rule-list strong { font-weight: 600; }
.rule-list span { color: var(--muted); font-size: 15px; line-height: 1.55; }

.rule-list--numbered { counter-reset: rule; }
.rule-list--numbered li { padding-left: 46px; }
.rule-list--numbered li::before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  top: 15px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.3;
  color: var(--green-deep);
}

@media (min-width: 720px) {
  .rule-list--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
  }
}

/* 5. Header & nav
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--forest);
  color: #fff;
}
.skip-link:focus { top: 12px; }

.topbar {
  background: var(--forest-deep);
  color: #bcd2c4;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 8px;
}
.topbar__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px;
  border-radius: 50%;
  background: #6fae88;
  vertical-align: middle;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(250, 248, 243, .88); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(20, 30, 25, .5);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 92px;
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .site-header__bar { min-height: 74px; }

.brand { flex: none; display: block; }
/* The horizontal lockup is sized by height so it lines up with the nav. */
.brand img { width: auto; height: 54px; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 44px; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--green-deep); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--green-deep); }

.nav__item--sub > .nav__link { padding-right: 26px; }
.nav__item--sub > .nav__link::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(20, 30, 25, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav__item--sub:hover .nav__sub,
.nav__item--sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav__sub a {
  display: block;
  padding: 9px 22px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.nav__sub a:hover,
.nav__sub a[aria-current="page"] { background: var(--sand); color: var(--green-deep); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-phone {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone__label {
  margin-right: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-phone:hover { color: var(--green-deep); }

.nav-toggle,
.nav__mobile-extra { display: none; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
  /* Between the phone dropping out and the mobile menu taking over, the
     horizontal logo, five links and the button have to share ~900px. */
  .site-header__bar { gap: 20px; }
  .brand img { height: 46px; }
  .nav__link { padding-inline: 10px; }
  .nav__link::after { left: 10px; right: 10px; }
  .nav__item--sub > .nav__link { padding-right: 22px; }
  .nav__item--sub > .nav__link::before { right: 8px; }
}

@media (max-width: 980px) {
  .topbar { display: none; }
  /* backdrop-filter makes the header the containing block for position:fixed
     children, which would trap the menu panel inside a 76px bar. */
  .site-header { background: var(--paper); backdrop-filter: none; }
  .site-header__bar { min-height: 76px; gap: 16px; }
  .brand img { height: 42px; }
  .site-header.is-scrolled .brand img { height: 38px; }
  .site-header__actions { margin-left: auto; gap: 12px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 4px 0 10px;
    border: 0;
    background: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .3s var(--ease), background-color .2s;
  }
  .nav-toggle__bars { position: relative; order: 2; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    margin: 0;
    padding: 18px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--paper);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-header.is-scrolled .nav { inset: 76px 0 0 0; }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav__list { display: block; }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__link {
    padding: 16px 0;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
  }
  .nav__link::after,
  .nav__item--sub > .nav__link::before { display: none; }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 14px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__sub a { padding: 6px 0 6px 18px; color: var(--ink-soft); font-size: 16px; }
  .nav__sub a:hover { background: none; }
  .nav__mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 30px;
  }
  .nav__phone {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    text-decoration: none;
  }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 520px) {
  .site-header__actions .btn--sm { display: none; }
}

/* 6. Home
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(40px, 6vw, 88px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px clamp(40px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero__aside { padding-bottom: 8px; }
.hero__aside .lead { margin-bottom: 28px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
}

.hero__media {
  position: relative;
  max-width: calc(var(--wrap) + 2 * var(--gutter) + 240px);
  margin: 0 auto;
}
.hero__media img {
  width: 100%;
  height: clamp(300px, 36vw, 560px);
  object-fit: cover;
  object-position: center 40%;
}

/* A paper strip that sits across the bottom edge of the photograph. */
.hero__facts {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  display: flex;
  background: var(--paper);
  transform: translateY(50%);
}
.hero__facts span {
  padding: 20px 30px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  border-left: 1px solid var(--line);
}
.hero__facts span:first-child { border-left: 0; }
.hero__facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.service-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1.1fr) minmax(0, 1.6fr) 170px 40px;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .35s var(--ease);
}
.service-row__num {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--green-deep);
}
.service-row__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
}
.service-row__text { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.service-row__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.service-row__more {
  position: relative;
  justify-self: end;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: width .35s var(--ease), background-color .35s;
}
.service-row__more::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: var(--ink);
  transform: rotate(45deg);
}
.service-row:hover { color: var(--ink); background: linear-gradient(90deg, transparent, var(--sand) 12%, var(--sand) 88%, transparent); }
.service-row:hover .service-row__title { color: var(--green-deep); }
.service-row:hover .service-row__media img { transform: scale(1.05); filter: saturate(1); }
.service-row:hover .service-row__more { width: 38px; }

.about {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.about__figure {
  display: flex;
  flex-direction: column;
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1px solid var(--line);
}
.about__number {
  font-family: var(--serif);
  font-size: clamp(7rem, 4rem + 11vw, 13rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--forest);
}
.about__caption {
  max-width: 250px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.about__body .display { margin-bottom: 26px; }
.about__body > p { color: var(--ink-soft); max-width: 620px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--paper);
}

/* Seven photos: one tall anchor on the left, the rest in a quiet grid. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 15vw, 220px);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mosaic__item { overflow: hidden; background: var(--line-soft); }
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(4) { grid-row: span 2; }
.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.04); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.feature__media { min-height: 420px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body {
  align-self: center;
  max-width: 560px;
  padding: clamp(48px, 7vw, 100px) var(--gutter);
}
.feature__body .display { margin-bottom: 22px; }
.feature__body p { color: var(--ink-soft); margin-bottom: 26px; }

/* 7. Inner pages
   -------------------------------------------------------------------------- */

.page-hero { padding-top: clamp(28px, 4vw, 52px); }
.page-hero__inner { padding-bottom: clamp(32px, 4.5vw, 56px); }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--stone);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-deep); }

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px clamp(40px, 6vw, 96px);
  align-items: end;
}
.page-hero__grid .display { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem); line-height: 1; }
.page-hero__intro {
  margin: 0;
  padding-bottom: 6px;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.page-hero__media {
  max-width: calc(var(--wrap) + 2 * var(--gutter) + 240px);
  margin: 0 auto;
}
.page-hero__media img {
  width: 100%;
  height: clamp(200px, 26vw, 400px);
  object-fit: cover;
}

.note-card {
  position: sticky;
  top: 120px;
  padding: 34px 32px 30px;
  background: var(--sand);
  border-top: 3px solid var(--green);
}
.note-card .note-card__kicker {
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-card .note-card__big {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.note-card p { color: var(--ink-soft); font-size: 15.5px; }
.note-card .btn { width: 100%; margin-top: 22px; }
.note-card__phone {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
}
.note-card__phone:hover { color: var(--green-deep); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__item { overflow: hidden; aspect-ratio: 3 / 2; background: var(--line-soft); }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
/* Drawings are not photographs: show them whole, on paper. */
.gallery--plans .gallery__item { background: #fff; border: 1px solid var(--line); }
.gallery--plans .gallery__item img { object-fit: contain; padding: 10px; }
.gallery--plans .gallery__item:hover img { transform: none; }

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.related__card { display: block; color: var(--ink); text-decoration: none; }
.related__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.related__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}
.related__title::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.related__card:hover .related__media img { transform: scale(1.05); }
.related__card:hover .related__title { color: var(--green-deep); }
.related__card:hover .related__title::after { width: 36px; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.product:first-child { border-top: 0; padding-top: 0; }
.product__media { overflow: hidden; aspect-ratio: 3 / 2; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product--flip .product__media { order: 2; }
.product__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--green-deep);
}
.product__body .display { margin-bottom: 18px; }
.product__body p { color: var(--ink-soft); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-list { margin: 0; border-top: 1px solid var(--ink); }
.contact-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  padding-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin: 0; color: var(--ink); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--green-deep); }
.contact-list__big {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.contact__cta { margin-top: 36px; }
.contact__cta p { color: var(--ink-soft); margin-bottom: 16px; }
.contact__map {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: var(--line-soft);
}
.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.7) contrast(.98);
}

/* 8. Estimate form
   -------------------------------------------------------------------------- */

.estimate {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.estimate__aside .display { margin-bottom: 22px; }
.estimate__call {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.estimate__call p { margin-bottom: 6px; color: var(--muted); }
.estimate__small { margin-top: 14px; font-size: 13.5px; }

.estimate__panel {
  padding: clamp(28px, 4vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -48px rgba(20, 30, 25, .45);
}

.form-note { margin-bottom: 26px; font-size: 14px; color: var(--muted); }

.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field label,
.field legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.field__optional {
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.app-input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfc8b8;
  border-radius: 1px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;                 /* 16px stops iOS zooming into the field */
  line-height: 1.5;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea.app-input { resize: vertical; min-height: 0; }
.app-input::placeholder { color: #9a9f99; }
.app-input:hover { border-color: #b7b0a0; }
.app-input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 131, 66, .14);
}
.app-input[aria-invalid="true"] { border-color: #a8324a; background: #fdf6f7; }

.field__error {
  margin: 7px 0 0;
  font-size: 13.5px;
  color: #a8324a;
}

.choice-group[aria-invalid="true"] .choice span { border-color: #d8a3ae; }
.choice-group__options { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group__options--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Radios and checkboxes as bordered tiles; the real input stays in the
   accessibility tree and takes focus. */
.field .choice {
  position: relative;
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #cfc8b8;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.3;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice span::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid #a9a393;
  background: #fff;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice:hover span { border-color: #b7b0a0; }
.choice input:checked + span {
  border-color: var(--green);
  background: #eef5f0;
  color: var(--ink);
}
.choice input:checked + span::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px #fff;
}
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* -- Functional form states (Contact-Form-Runbook §10.2) -- */

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

.app-submit { min-width: 210px; margin-top: 6px; }
.app-submit .app-submit-busy { display: none; }
.app-submit.is-busy .app-submit-idle { display: none; }
.app-submit.is-busy .app-submit-busy { display: inline-flex; align-items: center; gap: 10px; }
.app-submit[disabled] { opacity: .85; cursor: progress; }

.app-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: app-spin .7s linear infinite;
}
@keyframes app-spin { to { transform: rotate(360deg); } }

.app-form.is-sending .app-input,
.app-form.is-sending .choice { opacity: .55; cursor: progress; }

.app-form-status { display: none; }
.app-form-status.is-visible {
  display: block;
  margin-bottom: 18px;
  padding: 14px 16px;
  font-size: 15px;
}
.app-form-status.is-sending { background: var(--sand); border-left: 3px solid var(--forest); }
.app-form-status.is-sending .app-spinner { border-color: rgba(19, 58, 43, .25); border-top-color: var(--forest); }
.app-form-status.is-error { background: #fdf1f3; border-left: 3px solid #a8324a; color: #7d2437; }
.app-status-line { display: flex; align-items: center; gap: 12px; }

.app-progress {
  display: block;
  height: 3px;
  margin-top: 12px;
  background: rgba(19, 58, 43, .14);
  overflow: hidden;
}
.app-progress::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--forest);
  animation: app-indeterminate 1.15s ease-in-out infinite;
}
@keyframes app-indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.app-complete { text-align: center; padding: clamp(24px, 5vw, 56px) clamp(8px, 3vw, 30px); }
.app-complete:focus { outline: none; }
.app-complete-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  animation: app-pop .35s cubic-bezier(.2, .8, .3, 1.2);
}
.app-complete-icon::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 15px;
  width: 13px;
  height: 26px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  animation: app-check .3s ease-out .16s backwards;
}
@keyframes app-pop   { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes app-check { from { opacity: 0; transform: rotate(45deg) scale(.5); } to { opacity: 1; transform: rotate(45deg) scale(1); } }

.app-complete-title {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
}
.app-complete p { max-width: 440px; margin: 0 auto 28px; color: var(--ink-soft); }

/* 8b. Blog (WordPress theme: blog/wp-content/themes/raneworks)
   -------------------------------------------------------------------------- */

/* Blog heroes have no panoramic photo, so they close with a rule instead. */
.page-hero--plain .page-hero__inner {
  position: relative;
  padding-bottom: clamp(36px, 5vw, 64px);
}
/* Rules drawn inside a .wrap sit on the content edge, not out in the gutter. */
.page-hero--plain .page-hero__inner::after,
.post-nav::before,
.site-footer__base::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}
.page-hero--plain .page-hero__inner::after { bottom: 0; }
.post-nav::before { top: 0; }
.site-footer__base::before { top: 0; background: #2e3531; }
.nowrap { white-space: nowrap; }
.section--blog { padding-top: clamp(40px, 5vw, 64px); }

.post-card { position: relative; }
.post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--line-soft);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding-top: 20px; }
.post-card__meta {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-card__meta span { margin: 0 6px; color: var(--stone); }
.post-card__title {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.25rem + .5vw, 1.7rem);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--green-deep); }
/* The whole card is clickable through the title link. */
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
  margin-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.post-card--featured .post-card__body { padding-top: 0; }
.post-card--featured .post-card__title {
  font-size: clamp(2rem, 1.4rem + 1.9vw, 3rem);
  line-height: 1.05;
  margin-bottom: 18px;
}
.post-card--featured .post-card__excerpt {
  -webkit-line-clamp: 4;
  margin-bottom: 22px;
  font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem);
}
.post-card--featured .link-line { position: relative; z-index: 1; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px);
}

.pager { margin-top: clamp(56px, 7vw, 88px); }
.pager ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.pager a:hover { border-color: var(--line); color: var(--green-deep); }
.pager .current { border-color: var(--ink); }
.pager .dots { color: var(--muted); }
.pager .prev, .pager .next { font-size: 14px; letter-spacing: .06em; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 560px;
}
.empty-state p { margin: 0; color: var(--ink-soft); }

/* Article */

.article__hero .page-hero__inner { padding-bottom: clamp(40px, 5vw, 64px); }
.article__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px clamp(40px, 6vw, 88px);
  align-items: center;
}
.article__hero-grid--text { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.article__title { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.8rem); line-height: 1.02; }
.article__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--line-soft); }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stone);
}

.section--article {
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

/* Post content comes out of the editor as plain HTML; style it by element.
   Headings arrive wrapped in <strong>, so weight is reset inside them. */
.article-body {
  max-width: 700px;
  min-width: 0;                    /* a grid item may not grow past its track */
  overflow-wrap: anywhere;         /* editor content has "____" divider lines */
  color: var(--ink-soft);
  font-size: 18.5px;
  line-height: 1.75;
}
.article-body > *:first-child { margin-top: 0; }
.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body blockquote,
.article-body figure { margin: 0 0 1.25em; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body h2,
.article-body h3,
.article-body h4 { color: var(--ink); }
.article-body h2 strong,
.article-body h3 strong,
.article-body h4 strong { font-weight: inherit; }
.article-body h2 {
  margin: 1.9em 0 .6em;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}
.article-body h3 {
  margin: 1.6em 0 .5em;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}
.article-body h4 {
  margin: 1.4em 0 .4em;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body ul,
.article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .45em; padding-left: .25em; }
.article-body ul li::marker { color: var(--green); }
.article-body ol li::marker { color: var(--green-deep); font-family: var(--serif); font-style: italic; font-size: 1.1em; }
.article-body a { color: var(--green-deep); text-decoration: underline; text-decoration-color: rgba(11, 106, 53, .35); }
.article-body a:hover { color: var(--ink); text-decoration-color: currentColor; }
.article-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.article-body blockquote {
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--green);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--ink);
}
.article-body img { height: auto; }
.article-body .wp-caption { max-width: 100%; }
.article-body .wp-caption-text,
.article-body figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article-body td,
.article-body th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.article-body .alignright { float: right; margin: .3em 0 1em 1.5em; }
.article-body .aligncenter { margin-inline: auto; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  position: relative;
  padding-block: clamp(36px, 5vw, 56px);
}
.post-nav__item { display: flex; flex-direction: column; gap: 6px; }
.post-nav__item--next { text-align: right; align-items: flex-end; }
.post-nav__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-nav a {
  max-width: 480px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.post-nav a:hover { color: var(--green-deep); }

/* Logged-in editors see WordPress's admin bar above the sticky header. */
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .post-card--featured,
  .article__hero-grid { grid-template-columns: 1fr; }
  .article__media { order: -1; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; align-items: flex-start; }
  .article-body { font-size: 17px; }
  .pager .prev, .pager .next { flex-basis: 100%; }
}

/* 9. Footer
   -------------------------------------------------------------------------- */

.cta { background: var(--forest); color: #dfe9e3; }
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(40px, 6vw, 96px);
  align-items: end;
  padding-block: clamp(56px, 7vw, 96px);
}
.cta__title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
}
.cta__body p { margin-bottom: 26px; color: #c7d8ce; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

.site-footer {
  background: var(--charcoal);
  color: #aeb5b0;
  font-size: 15px;
  line-height: 1.65;
}
.site-footer a { color: #dfe4e0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr 1.2fr;
  gap: 40px clamp(28px, 4vw, 60px);
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: 220px; margin-bottom: 22px; }
.site-footer__heading {
  margin-bottom: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7f8983;
}
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: 6px; }
.site-footer__address { font-style: normal; margin-bottom: 12px; }
.site-footer__address strong { color: #dfe4e0; font-weight: 600; }
.site-footer__phone { font-family: var(--serif); font-size: 24px; font-weight: 600; }

.signup {
  display: flex;
  margin-top: 16px;
  border-bottom: 1px solid #4a534e;
  transition: border-color .2s;
}
.signup:focus-within { border-color: #7fc59c; }
.signup__input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}
.signup__input::placeholder { color: #7f8983; }
.signup__input:focus { outline: none; }
.signup__button {
  padding: 0 0 0 16px;
  border: 0;
  background: none;
  color: #dfe4e0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.signup__button:hover { color: #7fc59c; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  position: relative;
  padding-block: 26px 34px;
  font-size: 13px;
  color: #7f8983;
}
.site-footer__base p { max-width: 720px; margin: 0; }
.raneworks img { width: 150px; opacity: .8; transition: opacity .2s; }
.raneworks:hover img { opacity: 1; }

/* 10. Utilities, responsive & motion
   -------------------------------------------------------------------------- */

.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;
}

@media (max-width: 1080px) {
  .service-row { grid-template-columns: 48px minmax(0, 1fr) 150px 30px; }
  .service-row__text { grid-column: 2 / 3; grid-row: 2; }
  .service-row__media { grid-column: 3; grid-row: 1 / span 2; }
  .service-row__more { grid-column: 4; grid-row: 1 / span 2; }
  .service-row { row-gap: 8px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero__grid,
  .page-hero__grid,
  .split,
  .about,
  .contact,
  .estimate,
  .cta__inner { grid-template-columns: minmax(0, 1fr); }

  .hero__facts {
    position: static;
    transform: none;
    flex-wrap: wrap;
    margin: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .hero__facts span { flex: 1 1 30%; padding: 16px 14px; }
  .hero__facts span:first-child { padding-left: 0; }

  .note-card { position: static; }

  .about__figure { border-left: 0; padding-left: 0; }

  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 9; }

  .product,
  .product--flip { grid-template-columns: 1fr; }
  .product--flip .product__media { order: 0; }

  .related { grid-template-columns: 1fr; }
  .related__card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
  .related__title { padding: 0 0 10px; font-size: 22px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic__item:nth-child(4) { grid-row: span 1; }
  .mosaic__item:nth-child(8) { grid-column: span 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .service-row {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 6px 14px;
    padding: 22px 0;
  }
  .service-row__num { font-size: 18px; }
  .service-row__media { display: none; }
  .service-row__text { grid-column: 2; }
  .service-row__more { grid-column: 3; }
  .hero__facts span { flex-basis: 100%; padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero__facts span:first-child { border-top: 0; }
  .hero__facts strong { display: inline; margin-right: 6px; font-size: 22px; }
  .field-row,
  .choice-group__options--grid { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .app-submit { width: 100%; }
  .topbar__inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .app-spinner { animation-duration: 2.4s; }
  .app-progress::after { animation-duration: 3s; }
  .app-complete-icon, .app-complete-icon::after { animation: none; }
}

@media print {
  .topbar, .site-header, .cta, .site-footer, .nav-toggle { display: none; }
}
