:root {
  --forest: #172c25;
  --deep: #11221c;
  --ink: #1b2f27;
  --muted: #43564c;
  --lime: #d9f36a;
  --paper: #f9faf5;
  --tint: #e9eee2;
  --line: #c9d2c5;
  --gutter: clamp(1.15rem, 5vw, 4.5rem);
  font: 1rem/1.6 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, p, h1, h2, h3, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.shell { max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 1.5rem; }

.skip {
  position: fixed;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .5rem .85rem;
  transform: translateY(-150%);
  background: var(--lime);
  color: var(--deep);
}

.skip:focus { transform: none; }
.header { border-bottom: 1px solid #ffffff25; background: var(--forest); color: var(--paper); }
.header-layout, .footer-layout { display: flex; align-items: center; gap: .8rem 2rem; }
.header-layout { min-height: 5.2rem; justify-content: space-between; padding-block: .8rem; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  font-size: clamp(1.35rem, 3vw, 1.63rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}

.brand > span:last-child { color: var(--lime); margin-left: .18em; }
.brand-mark { width: 1.65rem; height: 1.55rem; margin-right: .55rem; position: relative; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; }
.brand-mark::before {
  inset: 3px 4px auto 0;
  border-top: 2px solid var(--lime);
  transform: rotate(-24deg);
  transform-origin: right center;
}

.brand-mark::after {
  inset: .64rem 0 0 .11rem;
  border: 2px solid var(--lime);
  border-top: 0;
  border-radius: 0 0 .48rem .48rem;
}

.header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem clamp(.8rem, 2.7vw, 2.5rem); }
.header nav a, .footer a:not(.brand) { font-size: .94rem; font-weight: 600; text-decoration: none; }
.header nav a:hover, .footer a:not(.brand):hover { text-decoration: underline; }
.header-phone { font-size: .92rem; font-weight: 700; color: var(--lime); white-space: nowrap; text-decoration: none; }
.header-phone:hover { text-decoration: underline; }

.hero { background: var(--forest); color: var(--paper); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.4rem, 5vw, 5rem);
  align-items: center;
}

.label {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.label::before { content: ''; width: 1.4rem; height: 2px; background: currentColor; flex: none; }
.hero .label, h1 em { color: var(--lime); }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -.055em; }
h1 { margin-block: .22em .28em; max-width: 10ch; font-size: clamp(3.2rem, 6.6vw, 6.9rem); }
h1 em { font-style: normal; }
h2 { font-size: clamp(2.45rem, 4.45vw, 4.5rem); margin-block: .25em .36em; }
h3 { font-size: clamp(1.75rem, 3vw, 2.45rem); margin-bottom: .65rem; }
.hero-copy > p:not(.label) { max-width: 39ch; color: #e0eadf; font-size: clamp(1.05rem, 1.55vw, 1.25rem); }

.hero-actions, .draft-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .65rem 1.12rem;
  border: 0;
  border-radius: .24rem;
  font-weight: 750;
  text-decoration: none;
}

.button-lime { background: var(--lime); color: var(--deep); }
.button-lime:hover { background: #e7fa9a; }
.button-dark { background: var(--forest); color: var(--paper); }
.button-dark:hover { background: #2c4639; }
.button:focus-visible { outline-color: var(--ink); }
.button-lime:focus-visible { outline-color: var(--lime); }
.call-link { font-weight: 650; color: var(--paper); }
.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: .38rem;
  background: #31433a;
}

.hero-image {
  height: clamp(24rem, 38vw, 36rem);
  object-fit: cover;
  object-position: 55% 50%;
}

.protection, .contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding-block: clamp(3.6rem, 7vw, 7.5rem);
}

.protection figure img { height: auto; border-radius: .38rem; background: var(--tint); }
.protection figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.protection-copy > p:not(.label), .contact-intro, .section-intro > p { max-width: 51ch; color: var(--muted); }
.uses { margin-top: 1.35rem; }
.uses div { padding-block: .8rem; border-top: 1px solid var(--line); }
.uses dt { font-weight: 750; }
.uses dd { margin-top: .18rem; color: var(--muted); }

.project-section { padding-bottom: clamp(3.6rem, 7vw, 7.5rem); }
.project-section .section-intro { padding-top: clamp(1.75rem, 3vw, 2.8rem); border-top: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.5rem); margin-top: 1.5rem; }
.project-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: .38rem; background: #fff; }
.project-card img { height: auto; aspect-ratio: 1.85; object-fit: cover; background: var(--tint); }
.project-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.1rem, 2.5vw, 2.25rem); }
.project-copy p { color: var(--muted); }
.project-copy ul { margin: .85rem 0 1.25rem; padding-left: 1.25rem; }
.project-copy li + li { margin-top: .25rem; }
.project-copy .button { margin-top: auto; }
.project-copy :focus-visible { outline-offset: 3px; }

.process { padding-block: clamp(3.5rem, 7vw, 6.5rem); background: var(--forest); color: var(--paper); }
.process .label { color: var(--lime); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem clamp(1rem, 2vw, 2rem);
  margin: 1.6rem 0 1.5rem;
  padding: 0;
  list-style-position: inside;
}

.process-steps li { border-top: 1px solid #769080; padding: .8rem 0 .4rem; }
.process-steps li::marker { color: var(--lime); font-weight: 750; }
.process-steps h3 { margin: .45rem 0 .35rem; font-size: clamp(1.3rem, 2vw, 1.8rem); }
.process-steps p { color: #e0eadf; }

.areas { background: var(--tint); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-intro { display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; align-items: end; }
.section-intro > p { padding-bottom: .55rem; }
.area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.area-grid li { min-height: 7rem; display: grid; align-content: start; gap: .35rem; padding: 1rem; border-top: 2px solid #627d6b; background: var(--paper); }
.area-grid li:first-child { background: var(--forest); color: var(--paper); border-color: var(--lime); }
.area-grid li span { font-size: .875rem; font-weight: 700; }
.area-grid li:first-child span { color: var(--lime); }
.area-grid li strong { font-size: 1.08rem; line-height: 1.3; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1.5rem clamp(2rem, 6vw, 6.5rem);
  align-items: start;
  padding-block: clamp(3.6rem, 7vw, 7.5rem);
}

.faq > div > p:not(.label) { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: .9rem 2rem .9rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 750;
  line-height: 1.4;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; pointer-events: none; position: absolute; right: .4rem; top: 1.15rem; width: .55rem; height: .55rem; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.faq-list details[open] summary::after { transform: translateY(.22rem) rotate(225deg); }
.faq-list summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.faq-list details p { padding: 0 1.5rem .95rem 0; color: var(--muted); }

.contact { align-items: start; }
main > .contact { border-top: 1px solid var(--line); }
address { display: grid; justify-items: start; gap: .35rem; margin-top: 1.6rem; font-style: normal; }
address p { margin-top: .65rem; }
.contact-phone { font-size: 1.35rem; font-weight: 750; }
.map-link { margin-top: .15rem; font-weight: 650; }
.estimate { padding: clamp(1.15rem, 3vw, 2rem); background: var(--tint); border: 1px solid var(--line); border-radius: .38rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .75rem; }
.form-grid .wide { grid-column: 1 / -1; }
.estimate label { display: block; font-size: .94rem; font-weight: 700; }
.estimate small { font-size: .875rem; font-weight: 400; color: var(--muted); }
.estimate input, .estimate select, .estimate textarea {
  display: block;
  width: 100%;
  min-height: 2.8rem;
  margin-top: .27rem;
  padding: .48rem .58rem;
  border: 1px solid #87978b;
  border-radius: .2rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}

.estimate textarea { resize: vertical; }
.form-hint { margin-block: .85rem; color: var(--muted); font-size: .875rem; }
.draft-actions { margin-block: 1rem; }
.text-button { padding: .35rem 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
#copy-status { margin-top: .35rem; font-size: .875rem; color: var(--muted); }
#edit-request { margin-top: .4rem; }
#draft-title:focus { outline: none; }

.footer { background: var(--deep); color: var(--paper); }
.footer-layout { justify-content: space-between; flex-wrap: wrap; min-height: 5.5rem; padding-block: 1rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }

@media (max-width: 60rem) {
  .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 45rem) {
  .header-layout { display: grid; grid-template-columns: 1fr auto; gap: .55rem .8rem; min-height: auto; }
  .header nav { grid-row: 2; grid-column: 1 / -1; }
  .header-phone { grid-row: 1; grid-column: 2; text-align: right; }
  .hero-layout, .protection, .project-grid, .contact, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-image { height: clamp(16rem, 69vw, 28rem); }
  .hero-layout { padding-bottom: var(--gutter); }
  .protection-copy { grid-row: 1; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 32rem) {
  .form-grid, .process-steps { grid-template-columns: minmax(0, 1fr); }
  .area-grid li { min-height: auto; padding: .8rem; }
  .footer-layout { column-gap: 1rem; }
  .footer nav { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }

  @keyframes arrive {
    from { opacity: .48; translate: 0 1rem; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes settle {
    from { scale: 1.055; }
    to { scale: 1; }
  }

  @keyframes rain {
    0% { opacity: 0; transform: translate(1.4rem, -2.35rem) skewX(-17deg); }
    35% { opacity: .58; }
    72% { opacity: .3; }
    100% { opacity: 0; transform: translate(-1.6rem, 3.25rem) skewX(-17deg); }
  }

  .hero-copy > *, .hero-visual { animation: arrive .7s var(--motion-ease) backwards; }
  .hero-copy > h1 { animation-delay: .08s; }
  .hero-copy > p:not(.label) { animation-delay: .16s; }
  .hero-actions { animation-delay: .24s; }
  .hero-visual { animation-delay: .14s; }
  .hero-image { animation: settle 1.15s var(--motion-ease) backwards; }
  .hero-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  .hero-rain::before {
    content: '';
    position: absolute;
    inset: -10%;
    --streak: linear-gradient(transparent, #e1f4dd);
    background:
      var(--streak) 15% 23% / 1px 1.2rem,
      var(--streak) 24% 54% / 1px 1.7rem,
      var(--streak) 36% 34% / 1px 1.9rem,
      var(--streak) 46% 65% / 1px 1.3rem,
      var(--streak) 55% 22% / 1px 2rem,
      var(--streak) 67% 47% / 1px 1.6rem,
      var(--streak) 78% 27% / 1px 1.5rem,
      var(--streak) 84% 69% / 1px 1.8rem;
    background-repeat: no-repeat;
    opacity: 0;
    animation: rain .85s .25s linear 4;
  }

  .is-revealing { animation: arrive .65s var(--reveal-delay, 0s) var(--motion-ease) backwards; }
  .is-revealing:focus-within { animation-duration: 0s; animation-delay: 0s; }
  .is-revealing:nth-child(2) { --reveal-delay: .06s; }
  .is-revealing:nth-child(3) { --reveal-delay: .12s; }
  .is-revealing:nth-child(4) { --reveal-delay: .18s; }
  .is-revealing:nth-child(5) { --reveal-delay: .24s; }

  .button { transition: background-color .18s ease, transform .2s var(--motion-ease), box-shadow .2s ease; }
  .button:active { transform: scale(.98); }
  .project-card { transition: transform .26s var(--motion-ease), box-shadow .26s ease; }
  .faq-list summary::after { transition: transform .26s var(--motion-ease); }
  #draft-panel:not([hidden]) { animation: arrive .35s var(--motion-ease); }

  @media (hover: hover) and (pointer: fine) {
    .button:hover { box-shadow: 0 .4rem .8rem #11221c30; transform: translateY(-2px); }
    .button:active { transform: scale(.98); }
    .project-card:hover { box-shadow: 0 .85rem 2rem #11221c19; transform: translateY(-4px); }
  }

  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .faq-list details::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      transition: block-size .3s var(--motion-ease), content-visibility .3s allow-discrete;
    }

    .faq-list details[open]::details-content { block-size: auto; }
  }

  @supports (animation-timeline: scroll()) {
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    html::before {
      content: '';
      position: fixed;
      inset: 0 0 auto;
      z-index: 3;
      height: 3px;
      background: var(--lime);
      pointer-events: none;
      transform-origin: left center;
      animation: reading-progress 1ms linear both;
      animation-timeline: scroll(root block);
    }
  }
}
