:root {
  --paper: #f7f5f0;
  --paper-warm: #efe7da;
  --ink: #18251f;
  --ink-muted: #526159;
  --forest: #174536;
  --forest-deep: #0f2f26;
  --moss: #2d7a5e;
  --ember: #d4603a;
  --ember-dark: #9f4128;
  --clay: #5f3428;
  --line: rgba(24, 37, 31, 0.16);
  --line-light: rgba(247, 245, 240, 0.22);
  --shadow: 0 24px 60px rgba(15, 47, 38, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(15, 47, 38, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.site-nav a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 1.5rem 3rem;
  color: #fff;
  background: var(--forest);
}

.hero-media,
.hero-media img,
.route-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center bottom;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 47, 38, 0.86), rgba(15, 47, 38, 0.52) 48%, rgba(15, 47, 38, 0.28)),
    linear-gradient(0deg, rgba(15, 47, 38, 0.8), rgba(15, 47, 38, 0.08) 44%);
}

.route-canvas {
  z-index: 1;
  opacity: 0.62;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ember);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6a17c;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 1.2rem;
  font-size: 5rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1.06;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.26rem;
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  color: #fff;
  background: var(--ember);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ember-dark);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.hero-status {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 3rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.hero-status span {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 47, 38, 0.54);
}

.section {
  padding: 5.5rem 1.5rem;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-paper {
  background: var(--paper);
}

.section-forest {
  background: var(--forest);
  color: #fff;
}

.section-clay {
  background: linear-gradient(180deg, var(--clay), #3d241f);
  color: #fff;
}

.section-contact {
  background: var(--forest-deep);
  color: #fff;
}

.section-copy p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-forest .section-copy p,
.section-clay .section-copy p,
.section-contact .section-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.product-layout,
.split-layout,
.studio-layout,
.hardware-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 3rem;
  align-items: center;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.fact-grid article,
.principle-card,
.approach-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 1rem;
}

.fact-grid strong,
.fact-grid span {
  display: block;
}

.fact-grid strong {
  margin-bottom: 0.45rem;
}

.fact-grid span,
.principle-card p,
.approach-item p {
  color: var(--ink-muted);
  line-height: 1.55;
}

.screen-feature,
.wide-shot,
.phone-feature,
.equipment-card {
  margin: 0;
}

.screen-feature img,
.wide-shot img,
.phone-feature img,
.equipment-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.screen-feature {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.screen-feature figcaption {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 0.8rem;
}

.principles {
  display: grid;
  gap: 0.9rem;
}

.principle-card {
  background: rgba(247, 245, 240, 0.08);
  border-color: var(--line-light);
}

.principle-card p {
  color: rgba(255, 255, 255, 0.75);
}

.phone-feature {
  max-width: 330px;
  justify-self: center;
}

.wide-shot {
  width: min(100%, var(--max));
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.hardware-layout {
  grid-template-columns: 0.78fr 1.22fr;
}

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

.equipment-card {
  background: rgba(247, 245, 240, 0.08);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
}

.equipment-card img {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.equipment-card figcaption {
  padding: 1rem;
}

.equipment-card strong,
.equipment-card span {
  display: block;
}

.equipment-card span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.approach-layout {
  display: grid;
  gap: 2rem;
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.approach-number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--ember);
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-layout h2 {
  max-width: 780px;
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  color: var(--ink-muted);
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .product-layout,
  .split-layout,
  .studio-layout,
  .hardware-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .fact-grid,
  .approach-list,
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 0.85rem;
  }

  .brand-name {
    max-width: 8rem;
    white-space: normal;
    line-height: 1.1;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 0 0.48rem;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 86svh;
    padding: 6.5rem 1rem 2rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

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

  .section {
    padding: 4rem 1rem;
  }

  .wide-shot {
    padding: 0 1rem;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 0.45rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
