﻿:root {
  --green: #2f6438;
  --green-dark: #244b2b;
  --green-soft: #d8e6d9;
  --ink: #1e251f;
  --muted: #627066;
  --line: #bfd0c0;
  --paper: #fbfcfa;
  --warm: #b9864f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

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

.sheet-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 32px 14px;
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--green);
  color: var(--green);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(10px);
  font-size: 1.05rem;
  line-height: 1.2;
}

.sheet-header span {
  white-space: nowrap;
}

.header-logo {
  width: 296px;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

main {
  overflow: clip;
}

.hero,
.principles,
.construction,
.scrolly,
.configurations,
.accessories,
.closing,
.realized {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
  padding: 52px 0 68px;
}

.hero-copy {
  border-left: 1px solid var(--green);
  padding-left: 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--green-dark);
  font-size: 4rem;
  line-height: 0.98;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 500;
}

h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.16rem;
  line-height: 1.18;
  font-weight: 500;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-copy p:last-child {
  max-width: 34rem;
  font-size: 1.28rem;
}

.hero-figure {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-figure img {
  width: 100%;
  filter: contrast(1.02);
}

.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 58px;
  align-items: center;
  padding: 70px 0 92px;
  border-top: 1px solid var(--line);
}

.principles-copy p {
  max-width: 38rem;
}

.material-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

figure {
  margin: 0;
}

.material-pair figure {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
}

.material-pair img {
  aspect-ratio: 1.25;
  object-fit: contain;
}

figcaption {
  margin-top: 12px;
  color: var(--green);
  font-size: 0.92rem;
  line-height: 1.35;
}

.construction {
  padding: 72px 0 88px;
  border-top: 1px solid var(--line);
}

.construction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.construction-grid figure {
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
}

.construction-grid img {
  width: 100%;
  height: 360px;
  object-fit: contain;
}

.scrolly {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
  padding: 60px 0 96px;
  border-top: 1px solid var(--line);
}

.sticky-visual {
  position: sticky;
  top: 104px;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(47, 100, 56, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(47, 100, 56, 0.07) 1px, transparent 1px),
    white;
  background-size: 48px 48px;
}

.sticky-number {
  margin: 0;
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1;
}

.sticky-visual img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  transition: opacity 180ms ease, transform 240ms ease;
}

.sticky-visual img.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.sticky-caption {
  margin: 0;
  color: var(--green-dark);
  font-size: 1rem;
  text-align: right;
}

.steps {
  display: grid;
  gap: 28px;
}

.step {
  min-height: 56svh;
  display: grid;
  align-content: center;
  padding: 44px 0 44px 28px;
  border-left: 1px solid var(--line);
  opacity: 0.52;
  transition: opacity 220ms ease, border-color 220ms ease;
}

.step.is-active {
  border-color: var(--green);
  opacity: 1;
}

.step-index,
.config-card span,
.accessory-grid span {
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1;
}

.step h2 {
  margin-top: 18px;
}

.step p {
  max-width: 34rem;
}

.step-mobile-image {
  display: none;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.configurations,
.accessories,
.closing,
.realized {
  padding: 76px 0 86px;
  border-top: 1px solid var(--line);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.config-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
}

.image-crop {
  overflow: hidden;
  display: grid;
  place-items: center;
}

.image-crop img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.config-card .image-crop {
  height: clamp(260px, 32vw, 360px);
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.accessory-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: end;
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
}

.accessory-grid .image-crop {
  grid-column: 1 / -1;
  width: 100%;
  height: 460px;
  padding: 12px 18px 22px;
  box-sizing: border-box;
}

.accessory-grid .image-crop img {
  object-fit: contain;
}

.accessory-grid h3 {
  align-self: center;
}

.closing {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
}

.closing-figure,
.realized figure {
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
}

.closing-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.realized {
  padding-bottom: 110px;
}

.realized .section-heading {
  max-width: 920px;
  margin-bottom: 30px;
}

.realized-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.realized img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.realized figcaption {
  margin-top: 12px;
  color: var(--green);
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 500;
}

.institutional-closing {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 44px 24px 56px;
  border-top: 1px solid var(--green);
  background: white;
}

.institutional-closing img {
  width: min(510px, 84vw);
}
@media (max-width: 980px) {
  .sheet-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px 18px;
    font-size: 0.9rem;
  }

  .sheet-header span:nth-child(4) {
    white-space: normal;
  }

  .header-logo {
    width: 248px;
  }

  .hero,
  .principles,
  .scrolly,
  .closing {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .scrolly {
    gap: 22px;
  }

  .sticky-visual {
    display: none;
  }

  .step {
    min-height: 0;
    padding: 28px 0 32px;
    border-left: 0;
    border-top: 1px solid var(--line);
    opacity: 1;
  }

  .step-mobile-image {
    display: block;
    width: 100%;
    max-height: 420px;
    margin-bottom: 18px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: white;
  }

  .config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sheet-header {
    position: static;
    grid-template-columns: 1fr;
    padding: 14px 20px;
  }

  .header-logo {
    grid-row: auto;
    width: 312px;
    max-height: 108px;
  }

  .sheet-header span {
    white-space: normal;
  }

  .hero,
  .principles,
  .construction,
  .scrolly,
  .configurations,
  .accessories,
  .closing,
  .realized {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy {
    padding-left: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  p,
  .hero-copy p:last-child {
    font-size: 1rem;
  }

  .material-pair,
  .construction-grid,
  .config-grid,
  .accessory-grid,
  .realized-grid {
    grid-template-columns: 1fr;
  }

  .config-card {
    min-height: 0;
  }

  .construction-grid img,
  .accessory-grid .image-crop {
    height: 240px;
  }

  .config-card .image-crop {
    height: clamp(300px, 76vw, 420px);
  }

  .accessory-grid article {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
