:root {
  --ink: #18231f;
  --paper: #f4f0e7;
  --paper-bright: #fffdf8;
  --green: #17654c;
  --green-dark: #0c3d2e;
  --coral: #e25f42;
  --line: rgba(24, 35, 31, 0.2);
  --display: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 35, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 28px;
  font-family: var(--sans);
}
img, video { display: block; width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  color: white;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.site-header.scrolled { color: var(--ink); background: rgba(244, 240, 231, 0.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border: 1px solid currentColor; font-family: var(--display); font-size: 1.2rem; }
.site-nav { display: flex; gap: clamp(20px, 3vw, 48px); }
.site-nav a { position: relative; color: inherit; font-size: 0.78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; color: inherit; background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; }
.hero { position: relative; min-height: min(92vh, 920px); height: 760px; color: white; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(7, 28, 22, 0.88) 0%, rgba(7, 28, 22, 0.57) 46%, rgba(7, 28, 22, 0.1) 78%), linear-gradient(0deg, rgba(7, 28, 22, 0.45), transparent 40%); }
.hero-content { position: relative; z-index: 2; display: flex; min-height: 100%; width: min(90%, 1440px); margin: auto; padding-top: 12vh; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { margin: 0 0 18px; color: var(--coral); font-size: 0.76rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(5.5rem, 15vw, 13rem); font-weight: 400; line-height: 0.75; letter-spacing: 0; }
.hero-lead { max-width: 590px; margin: 38px 0 34px; font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.35; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; font-size: 0.77rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease; }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-primary { color: white; background: var(--coral); }
.button:hover { transform: translateY(-2px); }
.button-primary:hover { background: #c94b31; }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; right: 5vw; display: flex; align-items: center; gap: 10px; color: white; font-size: 0.7rem; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
.scroll-cue svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.section { position: relative; width: min(90%, 1380px); margin: auto; padding: clamp(90px, 12vw, 170px) 0; }
.section-heading { max-width: 880px; }
.section h2 { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 5.5vw, 5.8rem); font-weight: 400; line-height: 0.98; letter-spacing: 0; }
.section-number { position: absolute; top: 68px; right: 0; color: rgba(24, 35, 31, 0.1); font-family: var(--display); font-size: clamp(7rem, 17vw, 15rem); line-height: 1; }
.intro-section { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 80px; }
.intro-section .section-heading { grid-column: 1 / -1; }
.intro-copy { max-width: 680px; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.55; }
.intro-copy p:first-child { margin-top: 0; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--coral); font-size: 0.72rem; font-weight: 700; }
.facts dd { margin: 0; font-size: 0.9rem; font-weight: 700; }

.workflow-section { width: 100%; padding-left: 5%; padding-right: 5%; color: white; background: var(--green-dark); }
.workflow-section::before { content: ""; position: absolute; inset: 0; opacity: 0.08; background: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 22px 22px; }
.workflow-section > * { position: relative; width: min(100%, 1380px); margin-left: auto; margin-right: auto; }
.workflow-list { margin-top: 70px; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: minmax(70px, 0.3fr) 1fr; gap: 30px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.24); }
.workflow-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.24); }
.step-number { color: var(--coral); font-family: var(--display); font-size: 1.5rem; }
.workflow-list h3 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 400; }
.workflow-list p { max-width: 600px; margin: 0; color: rgba(255,255,255,0.7); line-height: 1.6; }

.gallery-grid { display: grid; gap: clamp(70px, 10vw, 140px); margin-top: 70px; }
.gallery-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); align-items: center; gap: clamp(36px, 6vw, 90px); }
.gallery-row-reverse { grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); }
.gallery-media { margin: 0; }
.gallery-media img { aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: #dce7e1; }
.gallery-copy { position: relative; max-width: 520px; }
.gallery-copy .eyebrow { margin-bottom: 14px; }
.gallery-copy h3 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; line-height: 1.05; }
.gallery-copy > p:last-child { margin: 0; color: rgba(24,35,31,0.72); font-size: 1.05rem; line-height: 1.7; }
.gallery-number { display: block; margin-bottom: 34px; color: var(--coral); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; }

.video-section { width: 100%; padding-left: 5%; padding-right: 5%; background: var(--paper-bright); }
.video-section > * { width: min(100%, 1380px); margin-left: auto; margin-right: auto; }
.video-section .section-heading { max-width: none; text-align: center; }
.video-frame { position: relative; margin-top: 70px; background: #091a15; }
.video-frame video { aspect-ratio: 16 / 9; object-fit: cover; }
.video-note { position: absolute; left: 22px; bottom: 22px; padding: 10px 14px; color: white; background: rgba(12, 61, 46, 0.88); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
.video-frame:has(video[src]), .video-frame.video-loaded { background: #091a15; }

.closing-section { text-align: center; }
.closing-section h2 { max-width: 1000px; margin: auto; }
.closing-copy { max-width: 730px; margin: 36px auto 0; color: rgba(24,35,31,0.68); line-height: 1.6; }
footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 34px 5%; color: white; background: var(--ink); font-size: 0.75rem; }
footer p { margin: 0; }
footer p:first-of-type { text-align: center; }
footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 20px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 64px; left: 0; width: 100%; display: none; padding: 22px 20px 30px; flex-direction: column; gap: 22px; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero { height: 680px; min-height: 88vh; }
  .hero-overlay { background: linear-gradient(0deg, rgba(7,28,22,0.9), rgba(7,28,22,0.18) 80%); }
  .hero-content { justify-content: flex-end; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(5rem, 30vw, 8rem); }
  .hero-lead { margin: 28px 0; font-size: 1.25rem; }
  .scroll-cue { right: 20px; }
  .section { width: calc(100% - 40px); padding: 90px 0; }
  .section h2 { font-size: clamp(2.3rem, 11vw, 3.8rem); }
  .section-number { top: 44px; }
  .intro-section { display: block; }
  .intro-copy { margin-top: 48px; }
  .facts { margin-top: 42px; }
  .workflow-section, .video-section { width: 100%; padding-left: 20px; padding-right: 20px; }
  .workflow-list { margin-top: 50px; }
  .workflow-list li { grid-template-columns: 48px 1fr; }
  .gallery-grid { gap: 72px; margin-top: 48px; }
  .gallery-row, .gallery-row-reverse { grid-template-columns: 1fr; gap: 30px; }
  .gallery-row-reverse .gallery-copy { order: 2; }
  .gallery-row-reverse .gallery-media { order: 1; }
  .gallery-copy { max-width: none; }
  .gallery-number { margin-bottom: 20px; }
  .video-frame { margin-top: 48px; }
  .video-note { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p:last-child { text-align: left; }
}