/* Deva Paper, devapaper.com
   Static single page. Tokens first, then layout top to bottom.
   Radius rule: --r-sm for buttons, chips and small controls; --r-lg for tiles, images and the map. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  --bg: #f7f7f5;
  --surface: #fdfdfc;
  --surface-2: #eff1ec;
  --text: #16181a;
  --muted: #5b6169;
  --line: #e1e3df;

  --accent: #457c25;        /* AA on --surface and --bg for text and button fills */
  --accent-ink: #fdfdfc;    /* text on --accent */
  --brand: #6da844;         /* the logo green, decorative use only */
  --tint: rgba(109, 168, 68, 0.10);
  --tint-line: rgba(109, 168, 68, 0.28);
  --deep: #1c2916;          /* deep green-black, thermal tile */
  --deep-ink: #eef1ea;
  --danger: #b42318;        /* AA on --bg and --surface */

  --shadow: 0 1px 2px rgba(22, 24, 26, 0.04), 0 16px 40px -16px rgba(22, 24, 26, 0.14);
  --r-sm: 8px;
  --r-lg: 16px;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101211;
    --surface: #171a18;
    --surface-2: #151816;
    --text: #eceeeb;
    --muted: #a1a69f;
    --line: #272b28;

    --accent: #8fc862;
    --accent-ink: #101211;
    --tint: rgba(143, 200, 98, 0.12);
    --tint-line: rgba(143, 200, 98, 0.30);
    --deep: #14260f;
    --deep-ink: #e6ede0;
    --danger: #f97066;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}
.icon-lg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .container { width: min(100% - 3rem, 1200px); }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn:active { transform: translateY(0) scale(0.98); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { box-shadow: 0 8px 20px -10px var(--accent); }
  .btn-ghost:hover { border-color: var(--muted); }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img {
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
}
.site-nav ul a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav ul a:hover { color: var(--text); }
.nav-cta { height: 42px; padding: 0 18px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 1rem 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav ul a {
    display: block;
    padding: 14px 4px;
    font-size: 1.0625rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    height: 48px;
    justify-content: center;
    margin-top: 8px;
  }
}

/* Sections */

section { scroll-margin-top: var(--header-h); }

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}
.section-head p {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.25rem, 5.6vw + 0.75rem, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}
.hero-copy h1 { max-width: 15ch; }
.hero-copy p {
  margin-top: 22px;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .hero-media { aspect-ratio: 4 / 3; }
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* Products bento */

.products {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-feature { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(230px, auto);
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.tile p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 40ch;
}
@media (hover: hover) {
  .tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
}

/* Feature tile: a soft green glow and three offset sheets in the corner (pure CSS, no artwork) */
.tile-paper {
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 100% 100%, var(--tint) 0%, transparent 70%),
    var(--surface);
}
.tile-paper::before,
.tile-paper::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 13%;
  width: 17%;
  aspect-ratio: 1 / 1.3;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  /* a third sheet behind, drawn with the shadow stack */
  box-shadow:
    12px -12px 0 -1px var(--surface),
    12px -12px 0 0 color-mix(in srgb, var(--brand) 35%, transparent),
    var(--shadow);
  transform: rotate(-10deg);
  pointer-events: none;
}
.tile-paper::after {
  right: 5%;
  top: 20%;
  transform: rotate(-2deg);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 70%, transparent);
}
.tile-paper > * { position: relative; z-index: 1; }
@media (min-width: 600px) {
  .tile-paper h3,
  .tile-paper p { max-width: 30ch; }
}
@media (max-width: 599px) {
  .tile-paper::before,
  .tile-paper::after { display: none; }
}

.tile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  list-style: none;
}
.tile-list li {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--tint-line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.tile-dark {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--deep-ink);
}
.tile-dark p { color: color-mix(in srgb, var(--deep-ink) 74%, transparent); }

.tile-tint {
  background: var(--tint);
  border-color: var(--tint-line);
}

/* Facility: map and capabilities */

.facility {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (prefers-color-scheme: dark) {
  .map-frame iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(0.9); }
}
.map-link {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.caps h2 { max-width: 16ch; }
.caps-list {
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.caps-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.caps-list h3 { font-size: 1.0625rem; }
.caps-list p {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Story */

.story {
  padding-block: clamp(4rem, 10vw, 8rem);
}
.narrow {
  max-width: 720px;
  padding-left: 24px;
  border-left: 3px solid var(--brand);
}
@media (min-width: 1024px) {
  .story .narrow { margin-left: calc((100% - 720px) * 0.42); }
}
.story h2 { font-size: clamp(2rem, 4vw, 3rem); }
.story p {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  max-width: 58ch;
}
.story p + p { color: var(--muted); }

/* Contact */

.contact {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: start;
  }
}
.contact-copy h2 { max-width: 16ch; }
.contact-copy p {
  margin: 16px 0 28px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.0625rem;
}
.contact-details > div {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.contact-details > div:last-child { border-bottom: 1px solid var(--line); }
.contact-details dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.contact-details dt .icon { color: var(--accent); }
.contact-details dd {
  margin-top: 6px;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.4;
}
.contact-details dd a {
  text-decoration: none;
  transition: color 0.2s;
}
.contact-details dd a:hover { color: var(--accent); }

/* Footer */

.site-footer {
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-row img {
  height: 22px;
  width: auto;
}

/* Motion: hero entry and scroll reveal.
   Hidden states only apply when JS has loaded (html.js) and motion is allowed. */

@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *,
  .js .hero-media {
    animation: rise 0.9s var(--ease-out) both;
  }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero-media { animation-delay: 0.12s; }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Quote modal */

.modal {
  width: min(100% - 2rem, 600px);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(16, 18, 17, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-card {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.45);
}
@media (min-width: 600px) {
  .modal-card { padding: 32px; }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-head h2 { font-size: 1.5rem; }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.modal-close .icon { width: 22px; height: 22px; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.form-intro {
  margin: 8px 0 22px;
  color: var(--muted);
  max-width: 48ch;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
}
.field .optional {
  margin-left: 4px;
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint);
}
.field.is-invalid input,
.field.is-invalid select { border-color: var(--danger); }
.field-error {
  display: none;
  font-size: 0.8125rem;
  color: var(--danger);
}
.field.is-invalid .field-error { display: block; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile { margin-top: 18px; min-height: 0; }
.turnstile:not(:empty) { min-height: 65px; }

.form-banner {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 0.9375rem;
}
.form-banner a { color: inherit; font-weight: 600; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.form-actions .btn { min-width: 160px; justify-content: center; }
@media (max-width: 559px) {
  .form-actions .btn { width: 100%; }
}
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.quote-done { padding: 8px 0 4px; }
.quote-done h3 { font-size: 1.25rem; }
.quote-done p { margin: 10px 0 22px; color: var(--muted); max-width: 44ch; }
.quote-done a { color: var(--text); }

/* Phones: more air between blocks, full-width actions, bottom-sheet modal */

@media (max-width: 599px) {
  .brand img { height: 28px; }

  .hero {
    padding-block: 2.75rem 3.5rem;
  }
  .hero-grid { gap: 36px; }
  .hero-copy p {
    margin-top: 18px;
    font-size: 1.0625rem;
  }
  .hero-actions {
    margin-top: 28px;
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    height: 52px;
  }
  .hero-media { aspect-ratio: 4 / 3; }

  .products,
  .facility,
  .contact { padding-block: 4rem; }
  .story { padding-block: 4.5rem; }

  .section-head { margin-bottom: 32px; }
  .section-head p { margin-top: 12px; }

  .bento { gap: 14px; }
  .tile {
    padding: 26px 22px 24px;
    gap: 10px;
  }
  .tile-list { margin-top: 6px; }

  .split { gap: 36px; }
  .map-frame { aspect-ratio: 1 / 1; }
  .caps-list { margin-top: 24px; }
  .caps-list li {
    grid-template-columns: 26px 1fr;
    gap: 14px;
    padding-block: 20px;
  }

  .narrow {
    padding-left: 18px;
    border-left-width: 3px;
  }
  .story p { margin-top: 16px; }

  .contact-grid { gap: 36px; }
  .contact-copy p { margin: 14px 0 24px; }
  .contact-copy .btn {
    width: 100%;
    justify-content: center;
    height: 52px;
  }
  .contact-details dd { font-size: 1.125rem; }

  .site-footer { padding-block: 32px calc(32px + env(safe-area-inset-bottom)); }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-row img { margin-bottom: 4px; }

  /* Quote modal becomes a bottom sheet */
  .modal {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    margin: auto 0 0;
  }
  .modal-card {
    max-height: 94dvh;
    padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: 0;
  }
  .modal-head h2 { font-size: 1.375rem; }
  .form-intro { margin: 6px 0 18px; }
  .form-grid { gap: 14px; }
  .form-actions { margin-top: 18px; }
  .form-actions .btn { height: 52px; }
}
