/* Stavhaus — Dayos system.
   Brutalist editorial showroom on warm gray. Oversized uppercase condensed
   display at 0.9 leading, flat surfaces, zero shadows. Depth comes from
   surface contrast: canvas -> white card -> black block. Mint and yellow
   are accents on small elements only, never large fills. */

:root {
  --black:   #000000;
  --white:   #ffffff;
  --canvas:  #e5e5e5;
  --mist:    #f3f3f3;
  --ash:     #c6c6c6;
  --smoke:   #979797;
  --slate:   #444444;
  --graphite:#2f2f2f;
  --mint:    #d1ffca;
  --volt:    #fff100;

  --cond: "Archivo Condensed", "Barlow Condensed", Oswald, Impact, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --edge: clamp(20px, 4vw, 40px);
  --gap: clamp(56px, 8vw, 96px);

  --r-btn: 8px;
  --r-card: 32px;
  --r-large: 64px;
  --r-pill: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--canvas);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--edge); }
.section { padding-block: var(--gap); }
.narrow { max-width: 42rem; }

/* ---------- Type: the display does all the emotional work ---------- */

h1, h2, h3 { font-weight: 700; }

.display {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.h-lg {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
/* Secondary heading: neo-grotesque at 450, still uppercase */
.h {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h-sm {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h-30 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

p { color: var(--slate); }
p + p { margin-top: 1em; }
.lead { font-size: 20px; line-height: 1.2; color: var(--black); letter-spacing: -0.01em; }
.sm { font-size: 14px; line-height: 1.3; letter-spacing: -0.011em; }

/* Mono labels: technical annotation */
.eyebrow, .mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--slate);
}
.mono { color: var(--smoke); }

/* Mint tag, the signature accent */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint);
  color: var(--black);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--black); flex: none; }

.stat b { display: block; font-family: var(--cond); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 0.9; letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--slate); }

hr.rule { border: 0; border-top: 1px solid var(--ash); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black);
  color: var(--white);
  border: 0;
  border-radius: var(--r-btn);
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  transition: opacity .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { opacity: .84; }
.btn:active { transform: translateY(1px); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--slate);
  border: 1.5px solid var(--slate);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 16px; font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-dark:hover { background: var(--slate); color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 0 12px;
  color: var(--slate);
  font-size: 16px; font-weight: 500;
  transition: color .2s var(--ease);
}
.btn-ghost:hover { color: var(--black); }
.btn-ghost[aria-current="page"] { color: var(--black); }

/* ---------- Nav: floating white pill ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  height: 6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--edge);
  background: var(--canvas);
}
.nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cond); font-weight: 700;
  font-size: 24px; letter-spacing: -0.03em; text-transform: uppercase;
}
.nav .brand-mark { display: block; flex: none; width: 22px; height: 22px; }
.nav .brand-word { line-height: 1; }
.nav-links {
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  border-radius: 48px;
  padding: 8px 8px 8px 16px;
}
.nav-links .btn { padding: 11px 18px; font-size: 15px; }
@media (max-width: 780px) {
  .nav { height: 5rem; }
  .nav-links .hide-sm { display: none; }
  .nav-links { padding: 6px; }
}

/* ---------- Hero: massive headline left, object right ---------- */

/* Split: headline left, the object right. Source order puts media first,
   so ordering is done here rather than in the markup. */
.hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) var(--edge) var(--gap);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero-in { order: 1; position: relative; z-index: 1; min-width: 0; }
.hero-media { order: 2; margin-top: 0; align-self: stretch; }
.float-card { order: 3; grid-column: 1 / -1; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: 3; }
  .float-card { order: 4; }
}
.hero .display { max-width: 12ch; overflow-wrap: break-word; }
.hero .lead { margin-top: 24px; max-width: 34rem; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .badge { margin-bottom: 24px; }

/* The atmospheric render sits in a black block, top corners domed */
.hero-media {
  border-radius: var(--r-large);
  overflow: hidden;
  background: var(--black);
}
.hero-media img { width: 100%; height: 100%; min-height: clamp(300px, 52vh, 520px); object-fit: cover; }

.float-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 24px;
  margin-top: 24px;
  max-width: 34rem;
}
.float-card .mono { display: block; margin-bottom: 8px; }

/* ---------- Surfaces: flat, contrast only ---------- */

.card { background: var(--white); border-radius: var(--r-card); padding: 24px; }
.card-lg { padding: clamp(24px, 3vw, 40px); }
.card-accent {
  background: var(--black); color: var(--white);
  border-radius: var(--r-card); padding: 24px;
}
.card-accent p { color: var(--smoke); }
.card-accent .eyebrow { color: var(--mint); }

.panel {
  background: var(--black); color: var(--white);
  border-radius: var(--r-large);
  padding: clamp(32px, 5vw, 64px);
}
.panel p { color: var(--smoke); }
.panel .eyebrow { color: var(--mint); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Materials schedule ---------- */

.spec { display: grid; gap: 0; border-top: 1px solid var(--ash); }
.spec-row {
  display: grid; grid-template-columns: 14rem 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--ash); align-items: baseline;
}
.spec-row dt {
  font-family: var(--mono); font-size: 12px; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--black);
}
.spec-row dd { margin: 0; color: var(--slate); max-width: 54ch; }
@media (max-width: 720px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
}

/* ---------- Images ---------- */

figure.plate { background: var(--white); border-radius: var(--r-card); padding: 24px; overflow: hidden; }
figure.plate img { width: 100%; height: auto; border-radius: 12px; }
figcaption { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: -0.03em; text-transform: uppercase; color: var(--smoke); }

.plate-wide {
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  border-radius: 0; padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 64px);
}

.still {
  position: relative; min-height: 60vh;
  display: flex; align-items: flex-end;
  overflow: hidden; border-radius: var(--r-large);
  background: var(--black);
}
.still > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.still::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.92) 6%, rgba(0,0,0,.1) 62%); }
.still-txt { position: relative; z-index: 2; padding: clamp(24px, 4vw, 48px); max-width: 46rem; color: var(--white); }
.still-txt .h { color: var(--white); }
.still-txt .mono { color: var(--ash); }

.slot {
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
}

/* ---------- Model rows ---------- */

.model {
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--ash);
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(20px, 4vw, 56px); align-items: start;
}
.model:first-of-type { border-top: 1px solid var(--ash); }
@media (max-width: 860px) { .model { grid-template-columns: 1fr; gap: 16px; } }
.model .name {
  font-family: var(--cond); font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase;
}
.model .who { margin-top: 12px; }
.model-spec { margin-top: 20px; display: flex; gap: 24px; flex-wrap: wrap; }
.model-spec span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: -0.03em; text-transform: uppercase; color: var(--smoke); margin-bottom: 4px; }
.model-spec b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.model-story .open { font-size: 20px; line-height: 1.2; color: var(--black); font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Interior page heads ---------- */

.page-head { padding-block: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 40px); }
.page-head .display { max-width: 16ch; }

/* ---------- Assembly, scroll scrubbed ---------- */

.build { position: relative; height: 460vh; background: var(--black); }
.build-pin {
  position: sticky; top: 0; height: 100dvh;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center;
  gap: clamp(24px, 5vw, 64px);
  max-width: var(--max); margin: 0 auto; padding-inline: var(--edge);
  color: var(--white);
}
.build-pin .eyebrow { color: var(--mint); }
.build-pin p { color: var(--smoke); }
.build-pin h3 { color: var(--white); }
@media (max-width: 900px) { .build { height: 400vh; } .build-pin { grid-template-columns: 1fr; align-content: center; gap: 28px; } }
.build-stage svg { width: 100%; height: auto; display: block; }

.bm { opacity: 0; transition: opacity .65s var(--ease), transform .9s var(--ease); }
.bm.on { opacity: 1; transform: none !important; }
.bm-1 { transform: translate(-46px, 26px); }
.bm-2 { transform: translate(56px, -18px); }
.bm-3 { transform: translate(0, 56px); }
.bm-4 { transform: translate(62px, 34px); }
.bm-5 { transform: translate(-34px, -52px); }
.bj { opacity: 0; transition: opacity .45s var(--ease) .3s; }
.bj.on { opacity: 1; }

.build-steps { position: relative; min-height: 19rem; padding-bottom: 46px; }
.bs { position: absolute; inset: 0; opacity: 0; transform: translateY(12px);
      transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.bs.on { opacity: 1; transform: none; pointer-events: auto; }
.bs h3 { margin-top: 12px; }
.bs p { margin-top: 14px; max-width: 32rem; }
.bs .m2 { margin-top: 18px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: -0.03em; color: var(--mint); }

.build-track { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; width: 100%; max-width: 22rem; }
.build-track i { flex: 1; height: 3px; background: rgba(255,255,255,0.18); overflow: hidden; }
.build-track i::after { content:""; display:block; height:100%; width:0; background: var(--volt); transition: width .4s var(--ease); }
.build-track i.on::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .build { height: auto; }
  .build-pin { position: static; height: auto; padding-block: var(--gap); }
  .bm, .bj { opacity: 1; transform: none; }
  .bs { position: static; opacity: 1; transform: none; }
  .bs + .bs { margin-top: 36px; }
}

/* ---------- Forms ---------- */

.form { max-width: 34rem; }
.form-body { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: -0.03em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px;
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--ash);
  border-radius: var(--r-btn);
  padding: 14px 16px;
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--smoke); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field small { font-size: 14px; color: var(--smoke); }
.field .err { display: none; font-size: 14px; color: var(--black); background: var(--volt); padding: 2px 8px; border-radius: 4px; justify-self: start; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--black); }

.form-status { display: none; background: var(--mint); border-radius: var(--r-card); padding: 24px; }
.form-status.show { display: block; }
.form-status p { color: var(--black); }

/* Honeypot: off-screen, not display:none, so bots fill it and people never see it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 16px; font-size: 14px; color: var(--black); background: var(--volt); padding: 8px 12px; border-radius: 6px; }

/* ---------- Footer: compact dark band ---------- */

.foot { background: var(--black); color: var(--white); border-radius: var(--r-large) var(--r-large) 0 0; padding: var(--gap) var(--edge) 40px; }
.foot-in { max-width: var(--max); margin: 0 auto; }
.foot .h-lg { color: var(--white); }
.foot-nav { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.16); }
@media (max-width: 700px) { .foot-nav { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }
.foot-nav .eyebrow { color: var(--mint); }
.foot-nav ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.foot-nav a { font-size: 14px; color: var(--ash); transition: color .2s var(--ease); }
.foot-nav a:hover { color: var(--white); }
.foot-links { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: -0.03em; text-transform: uppercase; color: var(--smoke); }

/* Email gets the voltage highlight */
.foot-nav a[href^="mailto"] { background: var(--volt); color: var(--black); padding: 2px 8px; border-radius: 4px; }
.foot-nav a[href^="mailto"]:hover { color: var(--black); }

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .r { opacity: 0; transform: translateY(16px); }
  .js .r.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
}
