@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2-variations"),
       url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #f2efe8;
  --paper-deep: #e9e4d9;
  --ink: #0f1c18;
  --muted: #56615c;
  --faint: #7d8681;
  --spruce: #1d4a3c;
  --spruce-deep: #143529;
  --rule: rgb(15 28 24 / 0.13);

  --gutter: clamp(20px, 4.4vw, 72px);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 82% 46%, rgb(255 255 255 / 0.55), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3.2vh, 32px) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 6px;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand__mark rect { fill: var(--spruce); }
.brand__mark path { fill: var(--paper); }

.brand__word {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 1px;
}

.bar__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.bar__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spruce);
  box-shadow: 0 0 0 3px rgb(29 74 60 / 0.14);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
}

.hero__rosette {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: calc(var(--gutter) * -1 - 6vw);
  width: min(118vh, 64vw);
  height: auto;
  aspect-ratio: 1;
  translate: 0 -50%;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.hero__body {
  width: 100%;
  max-width: 47rem;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spruce);
}
.eyebrow i {
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

h1 {
  margin-top: clamp(14px, 2.6vh, 28px);
  font-size: clamp(2rem, min(5.2vw, 7.6vh), 4.6rem);
  line-height: 1.02;
  font-weight: 560;
  font-stretch: 92%;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lede {
  margin-top: clamp(14px, 2.6vh, 26px);
  max-width: 36rem;
  font-size: clamp(15px, min(1.35vw, 2.3vh), 19px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(20px, 4vh, 40px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--spruce);
  color: var(--paper);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 10px 24px -14px rgb(20 53 41 / 0.7);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  rotate: 45deg;
  margin-left: -2px;
  transition: translate 0.2s ease;
}
.button:hover { background: var(--spruce-deep); }
.button:hover::after { translate: 2px 0; }

.cta__mail {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  color: var(--ink);
}
.cta__mail:hover { color: var(--spruce); }

a:focus-visible {
  outline: 2px solid var(--spruce);
  outline-offset: 4px;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 3vw, 48px);
  margin-top: clamp(28px, 6.4vh, 72px);
  max-width: 44rem;
}
.pillars li {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.pillars h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.pillars p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Footer */

.foot {
  display: flex;
  align-items: baseline;
  gap: 8px 28px;
  margin: 0 var(--gutter);
  padding: clamp(14px, 2.6vh, 24px) 0;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.45;
  color: var(--faint);
}
.foot__legal { color: var(--muted); }
.foot__copy { margin-left: auto; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero__rosette { animation: turn 420s linear infinite; }
  @keyframes turn { to { rotate: 360deg; } }
}

@media (min-width: 1600px) and (min-height: 860px) {
  .hero__body { max-width: min(60rem, 52vw); }
  h1 { font-size: clamp(4.6rem, min(4.6vw, 7.8vh), 6rem); }
  .lede { max-width: 40rem; font-size: 20px; }
  .pillars { max-width: 52rem; }
  .pillars h2 { font-size: 15px; }
  .pillars p { font-size: 14.5px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__word { font-size: 16px; }
}

/* Portrait tablets */
@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) and (min-height: 860px) {
  h1 { font-size: min(7vw, 5.4vh); }
  .hero__rosette { top: auto; bottom: -6vh; right: -34vw; width: 100vw; translate: 0 0; opacity: 0.16; }
}

/* Mid widths: footer wraps to two rows */
@media (max-width: 1100px) {
  .foot { flex-wrap: wrap; }
  .foot__legal { flex-basis: 100%; }
  .foot__copy { margin-left: auto; }
}

/* Phones, portrait */
@media (max-width: 640px) {
  .bar__status { font-size: 12px; }
  .brand__word { font-size: 14px; letter-spacing: 0.18em; }
  .brand__mark { width: 28px; height: 28px; }

  .hero { align-items: flex-start; padding-top: clamp(4px, 1.6vh, 32px); }
  .eyebrow { font-size: 11px; letter-spacing: 0.07em; gap: 4px 9px; flex-wrap: nowrap; white-space: nowrap; }
  .eyebrow i { width: 12px; }
  h1 { margin-top: clamp(12px, 2vh, 20px); }
  .lede { margin-top: clamp(12px, 2vh, 20px); }
  .cta { margin-top: clamp(18px, 3vh, 28px); }
  .hero__rosette {
    top: 0;
    right: -46vw;
    width: 108vw;
    translate: 0 -12%;
    opacity: 0.16;
  }

  h1 { font-size: clamp(1.85rem, min(9vw, 5.2vh), 2.6rem); line-height: 1.04; }
  .lede { font-size: 15px; }
  .cta { gap: 12px 20px; }
  .button { min-height: 46px; padding: 0 20px; }

  .pillars { grid-template-columns: 1fr; gap: 14px; margin-top: clamp(20px, 4vh, 36px); }
  .pillars li { padding-top: 12px; }
  .pillars p { font-size: 13px; }

  .foot { display: block; font-size: 10.5px; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
  .foot p { display: inline; }
  .foot__legal::after { content: " "; }
  .foot__marks::after { content: " "; }
  .foot__copy { display: block; margin-top: 4px; }
}

@media (max-width: 379px) {
  .eyebrow { flex-direction: column; align-items: flex-start; }
  .eyebrow i { display: none; }
}

/* Short viewports: drop the capability notes before anything clips */
@media (max-height: 700px) {
  .pillars { display: none; }
}
@media (max-height: 700px) and (min-width: 641px) {
  h1 { font-size: clamp(1.75rem, min(5vw, 8.4vh), 3.6rem); }
}

/* Landscape phones */
@media (max-height: 480px) {
  .bar { padding-top: 10px; padding-bottom: 10px; }
  .hero { align-items: center; }
  h1 { margin-top: 10px; font-size: clamp(1.5rem, 7.4vh, 2.2rem); }
  .lede { margin-top: 10px; font-size: 14px; max-width: 34rem; }
  .cta { margin-top: 14px; }
  .button { min-height: 42px; }
  .foot { padding: 8px 0; font-size: 10.5px; flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .foot__legal { flex-basis: auto; }
  .hero__rosette { width: min(120vh, 60vw); right: -10vw; top: 50%; translate: 0 -50%; }
}
