/* rebuildnative.com — one sheet, no script.
   Bricolage Grotesque for display, Hanken Grotesk for text; both OFL,
   self-hosted (fonts/OFL.txt). Both are cut down to what the page uses:
   Latin only, Bricolage pinned at opsz 72 and weights 600–800, Hanken at
   400–700 — 48 KB for the pair instead of 111. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/web/fonts/bricolage-grotesque.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/web/fonts/hanken-grotesk.woff2') format('woff2');
}

:root {
  --paper: #f4efe7;
  --paper-2: #ebe4d8;
  --card: #fbf9f5;
  --ink: #1d1b18;
  --ink-2: #37332d;
  --muted: #5d574e;
  --line: #ddd3c3;
  --accent: #a8421b;
  --accent-deep: #86330f;
  --studio: #d9d8dc;
  --sage: #7e9886;
  --night: #15181a;
  --night-2: #1e2326;
  --night-line: #2e3438;
  --night-ink: #f1ebe1;
  --night-muted: #b8b0a3;
  --night-accent: #e8a878;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .06), 0 14px 36px -16px rgba(29, 27, 24, .28);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }

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

h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--paper); }

/* ---- header ---- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }

.mark { width: 30px; height: 30px; flex: none; }
.m-top { fill: var(--accent); }
.m-left { fill: var(--ink); }
.m-right { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 2.4 2; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .5em .85em; border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav .pill { background: var(--ink); color: var(--paper); }
.nav .pill:hover { background: var(--accent); color: #fff; }
.wide-only { display: none; }
@media (min-width: 560px) { .wide-only { display: inline-block; } }

/* ---- shared ---- */

.eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1em;
}

.section-title { font-size: clamp(2rem, 3.4vw + .8rem, 3.4rem); font-weight: 700; margin-bottom: .45em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7em 1.35em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.more { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.more::after { content: " \2192"; }

figure { margin: 0; }
figcaption { display: grid; gap: 1px; padding-top: 10px; line-height: 1.35; }
figcaption strong { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
figcaption span { color: var(--muted); font-size: .92rem; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

/* ---- hero ---- */

.hero {
  display: grid; gap: 40px; align-items: center;
  padding-top: clamp(20px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 112px);
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}

.hero h1 { font-size: clamp(2.7rem, 5vw + .7rem, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--accent); }

.lead { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); color: var(--ink-2); max-width: 36em; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 2.2em; }

.facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 36px; }
.facts li { display: grid; line-height: 1.2; }
.facts strong { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.facts span { color: var(--muted); font-size: .95rem; }

.hero-art { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }

.tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 10px; bottom: 10px; display: block; padding: 6px 12px;
  border-radius: 999px; background: rgba(251, 249, 245, .92); color: var(--ink);
  font-size: .82rem; font-weight: 700; line-height: 1.3;
}
.tile figcaption span { color: var(--accent); font-size: inherit; }

.t0 { grid-row: 1 / 3; min-height: 100%; background: radial-gradient(110% 80% at 50% 30%, #fff5ec 0%, #f7dfcb 62%, #efc9ad 100%); }
.t0 img { position: absolute; inset: 0; object-fit: contain; padding: 8% 6% 16%; }
.t1 { background: radial-gradient(120% 90% at 50% 20%, #fffaf1 0%, #efe3cf 70%, #e4d4bb 100%); aspect-ratio: 4 / 3; }
.t1 img { object-fit: contain; padding: 6% 6% 16%; }
.t2 { background: radial-gradient(120% 90% at 50% 25%, #dfe8df 0%, #b9cbbd 65%, #9fb6a6 100%); aspect-ratio: 4 / 3; }
.t2 img { object-fit: contain; padding: 4% 5% 16%; }
@media (max-width: 559px) {
  .tile figcaption { left: 8px; bottom: 8px; padding: 4px 10px; font-size: .75rem; }
  .tile figcaption span { display: none; }
}

/* ---- what we make ---- */

.make { padding-block: clamp(56px, 7vw, 96px); background: var(--card); border-block: 1px solid var(--line); }

.zig { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 22px; }

.zig-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .zig-card { width: min(100%, 880px); grid-template-columns: 1.05fr 1fr; }
  .zig-card:nth-child(odd) { margin-right: auto; }
  .zig-card:nth-child(even) { margin-left: auto; }
  .zig-card:nth-child(even) .zig-art { order: 2; }
}

.zig-art { margin: 0; position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.k-scene .zig-art { background: #fff; }
.k-scene .zig-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.k-object .zig-art { background: radial-gradient(110% 90% at 50% 30%, #fffaf2 0%, #f3e8d6 65%, #e7d7bf 100%); aspect-ratio: 4 / 3; }
.k-object .zig-art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.k-sheet .zig-art { background: #efe6d6; min-height: 0; }
.k-sheet .zig-art picture { display: block; width: 100%; }
.k-sheet .zig-art img { width: 100%; height: auto; }
@media (min-width: 720px) {
  .zig-card.k-sheet { grid-template-columns: 1fr; }
  .zig-card.k-sheet:nth-child(even) .zig-art { order: 0; }
  .k-sheet .zig-text { padding-top: clamp(20px, 3vw, 32px); }
}
.k-phone .zig-art { background: radial-gradient(120% 90% at 50% 20%, #e6f3ef 0%, #bfdcd6 60%, #9cc6c0 100%); padding: 28px 16px; }
.k-phone .zig-art img { width: auto; height: 380px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(20, 40, 38, .28)); }
@media (max-width: 719px) { .k-phone .zig-art img { height: 320px; } }

.zig-text { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.zig-num { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: .02em; color: var(--accent); margin-bottom: .6em; }
.zig-text h3 { font-size: clamp(1.45rem, 1.2vw + 1rem, 1.9rem); margin-bottom: .45em; }
.zig-text p:last-child { color: var(--muted); margin: 0; }

/* ---- projects ---- */

.project { padding-block: clamp(64px, 9vw, 128px); }

.project-head { max-width: 44em; margin-bottom: 36px; }
.project-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; }

.companions { grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (min-width: 640px) { .companions { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .companions { grid-template-columns: repeat(6, 1fr); } }
.companions img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: contain; padding: 6%; border: 1px solid var(--line); background: radial-gradient(100% 90% at 50% 30%, #ffffff 0%, #f3eee6 70%, #e9e1d4 100%); }
@media (max-width: 639px) { .companions figcaption span { display: none; } }

.warm { background: var(--paper-2); }

.split { display: grid; gap: 32px; align-items: center; margin-bottom: 40px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.1fr; gap: 56px; } .split .project-head { margin-bottom: 0; } }

.shot img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.buildings { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .buildings { grid-template-columns: repeat(4, 1fr); } }
.buildings img {
  aspect-ratio: 1; object-fit: contain; padding: 8%;
  border-radius: var(--radius); background: radial-gradient(110% 90% at 50% 25%, #fffaf2 0%, #f3e8d6 65%, #e7d7bf 100%);
  border: 1px solid var(--line);
}

.night { background: var(--night); color: var(--night-ink); }
.night .eyebrow { color: var(--night-accent); }
.night .project-head p:not(.eyebrow) { color: var(--night-muted); }
.night figcaption span { color: var(--night-muted); }
.night .shot img { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
.night :focus-visible { outline-color: var(--night-accent); }
.shot figcaption { padding-top: 12px; }

.faction { margin-top: 44px; }
.faction-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 1.6rem; margin-bottom: 16px; }
.faction-name span { font-family: var(--text); font-weight: 600; font-size: .95rem; letter-spacing: 0; color: var(--night-muted); }

.tanks { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .tanks { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.tanks img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 5%;
  border-radius: var(--radius); border: 1px solid var(--night-line);
  background: radial-gradient(110% 90% at 50% 35%, #2c3337 0%, #1d2225 70%, #181c1e 100%);
}
.f-Sunhearth .tanks img { background: radial-gradient(110% 90% at 50% 35%, #3b3129 0%, #221e1b 70%, #1a1816 100%); }
.f-Mossglade .tanks img { background: radial-gradient(110% 90% at 50% 35%, #2a3a30 0%, #1c2520 70%, #171d19 100%); }
.f-Moonveil .tanks img { background: radial-gradient(110% 90% at 50% 35%, #302d45 0%, #1f1d2b 70%, #191822 100%); }

/* ---- process ---- */

.process { padding-block: clamp(64px, 9vw, 128px); }

.steps { list-style: none; counter-reset: step; margin: 1.4em 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 600px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px;
  font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; color: var(--accent); line-height: 1;
}
.steps h3 { font-size: 1.3rem; margin-bottom: .45em; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---- mssgs ---- */

.mssgs { padding-bottom: clamp(64px, 9vw, 128px); }

.mssgs-card {
  display: grid; gap: 28px; align-items: center;
  background: var(--ink); color: var(--night-ink); border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
}
@media (min-width: 900px) { .mssgs-card { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.mssgs-card .eyebrow { color: var(--night-accent); }
.mssgs-card p { color: var(--night-muted); font-size: 1.1rem; max-width: 34em; }
.mssgs-card p strong { color: var(--night-ink); }

.mssgs-act { display: grid; gap: 14px; }
.search {
  display: flex; align-items: center; gap: 12px; margin: 0;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 999px;
  padding: 14px 20px; color: var(--night-ink); font-weight: 600; font-size: 1.1rem;
}
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--night-accent); stroke-width: 2.2; stroke-linecap: round; flex: none; }

/* ---- footer ---- */

.foot { border-top: 1px solid var(--line); padding-block: 32px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot .brand { font-size: 1.05rem; }
.foot .mark { width: 24px; height: 24px; }
.small { color: var(--muted); font-size: .92rem; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 10px 0; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---- 404 ---- */

.lost { padding-block: clamp(64px, 12vw, 160px); min-height: 60vh; }
.lost h1 { font-size: clamp(2.4rem, 5vw + .6rem, 4.6rem); font-weight: 800; margin-bottom: .4em; }
