:root {
  color-scheme: light;
  --ink: #20231f;
  --ink-soft: #5e6259;
  --paper: #fbfcf8;
  --paper-deep: #eef4ed;
  --line: #cfd8c9;
  --forest: #285c47;
  --forest-2: #407963;
  --copper: #a06f2f;
  --clay: #e4d4bc;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(31, 35, 29, 0.14);
  --radius: 8px;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 86px;
  height: 32px;
  color: var(--copper);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  color: var(--copper);
  font: 800 1.55rem/1 var(--mono);
  letter-spacing: 0;
}

.site-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #11150f;
  color: var(--white);
}

#traceCanvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 17, 12, 0.92) 0%, rgba(14, 17, 12, 0.72) 45%, rgba(14, 17, 12, 0.32) 100%),
    linear-gradient(180deg, rgba(14, 17, 12, 0.4), rgba(14, 17, 12, 0.86));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 90px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font: 800 0.78rem/1.2 var(--mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d7a251;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 22px;
  font-size: 5.8rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: 4.2rem;
  line-height: 0.96;
}

h3 {
  margin-bottom: 10px;
  font: 800 1.15rem/1.2 var(--sans);
}

.hero-copy {
  width: min(900px, 100%);
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--forest);
  color: var(--white);
}

.button-primary:hover {
  background: #1f4d3a;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 56px);
}

.contact-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--forest);
  font-weight: 850;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font: 800 0.78rem/1.2 var(--mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  font: 500 1rem/1.4 var(--sans);
}

.contact-form textarea {
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--ink-soft);
  font: 800 0.82rem/1.4 var(--mono);
}

.form-status[data-state="success"] {
  color: var(--forest);
}

.form-status[data-state="error"] {
  color: #9a3d31;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer p {
  margin: 0;
  color: var(--copper);
  font: 850 1rem/1 var(--mono);
}

.site-footer nav {
  display: flex;
  gap: 22px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 3.25rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-inner {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions,
  .contact-methods {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-methods a {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
