:root {
  --paper: #f6f4f0;
  --paper-2: #ede9f3;
  --ink: #1c1a19;
  --ink-2: #4e4b47;
  --ink-3: #76736d;
  --rule: rgba(28, 26, 25, 0.12);
  --rule-soft: rgba(28, 26, 25, 0.07);
  --warm: #d3c9be;
  --warm-deep: #a39687;
  --shadow: 0 28px 80px rgba(18, 16, 14, 0.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); font-family: var(--font); }
body {
  margin: 0;
  font-feature-settings: "ss01", "cv01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--warm-deep);
  outline-offset: 4px;
  border-radius: 12px;
}

a { color: inherit; text-underline-offset: 0.2em; }
img, canvas, video { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--warm-deep);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  background: rgba(246, 244, 240, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(163, 150, 135, 0.35);
  border-radius: 14px;
  background: rgba(163, 150, 135, 0.12);
  color: var(--warm-deep);
  font-weight: 900;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 0.92rem; letter-spacing: 0.01em; }
.brand small { color: var(--ink-3); font-size: 0.72rem; margin-top: 0.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.1rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(28, 26, 25, 0.07); }

.hero {
  position: relative;
  padding: clamp(6rem, 14vw, 11rem) clamp(1.5rem, 7vw, 10rem);
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.14) 70%, transparent 100%);
}

.hero-copy { position: relative; z-index: 1; max-width: 980px; }

.eyebrow, .section-kicker {
  color: var(--warm-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 1.4rem; display: block; }

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(3.1rem, 6.4vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.028em;
  max-width: 22ch;
}
h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.022em;
  max-width: 22ch;
}
h3 { margin: 0 0 0.6rem; font-size: clamp(1.15rem, 1.55vw, 1.4rem); line-height: 1.05; }

.lede {
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.9rem; }
.button, .ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.button:hover, .ghost-button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.secondary, .ghost-button { border: 1px solid var(--rule); color: var(--ink); background: rgba(28, 26, 25, 0.06); }
.ghost-button { cursor: pointer; font: inherit; font-size: 0.88rem; }
.ghost-button.full { width: 100%; justify-content: center; }

.section { padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 7vw, 10rem); }
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.62fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
  margin: 1.1rem 0 2.4rem;
}
.split-heading p { color: var(--ink-2); line-height: 1.6; font-size: 1.02rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}
.proof-card {
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: rgba(246, 244, 240, 0.72);
  padding: clamp(1.15rem, 2.1vw, 1.6rem);
  box-shadow: var(--shadow);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), background 280ms var(--ease), opacity 700ms linear;
}
.proof-card.reveal {
  opacity: 0;
  transform: translateY(14px);
}
.proof-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.proof-card:hover { transform: translateY(-4px); border-color: rgba(163, 150, 135, 0.42); background: rgba(246, 244, 240, 0.88); }
.proof-card p { color: var(--ink-2); line-height: 1.6; font-size: 0.98rem; }
.proof-card a, .footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--warm-deep);
  font-weight: 800;
  text-underline-offset: 0.22em;
  margin-top: auto;
}

.label {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.real-label { background: rgba(92, 110, 97, 0.1); color: #3f5448; border: 1px solid rgba(92, 110, 97, 0.24); }
.concept-label { background: rgba(163, 139, 122, 0.1); color: #7a614f; border: 1px solid rgba(163, 139, 122, 0.24); }
.built-label { background: rgba(109, 100, 92, 0.1); color: #4e4540; border: 1px solid rgba(109, 100, 92, 0.24); }

.atelier { background: linear-gradient(180deg, rgba(237, 233, 243, 0.72), rgba(246, 244, 240, 0.76)); }
.lab-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.lab-shell > div:first-child p { color: var(--ink-2); margin-top: 1.1rem; line-height: 1.62; max-width: 62ch; }
.lab-list { display: grid; gap: 0.9rem; }
.lab-list span { color: var(--warm-deep); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.lab-list article {
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: rgba(246, 244, 240, 0.72);
  padding: 1rem;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.56fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 5rem);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.closing p { max-width: 64ch; margin-top: 1rem; color: var(--ink-2); line-height: 1.6; }

.concept-panel, .detail-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(30, 27, 25, 0.34);
  backdrop-filter: blur(10px);
}
.concept-panel[hidden], .detail-panel[hidden] { display: none; }
.panel-card {
  position: relative;
  width: min(540px, 100%);
  border: 1px solid rgba(163, 150, 135, 0.28);
  border-radius: 24px;
  background: var(--paper);
  padding: clamp(1.35rem, 3.8vw, 2rem);
  box-shadow: var(--shadow);
}
.panel-card p { color: var(--ink-2); line-height: 1.6; max-width: 64ch; }
.panel-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(28, 26, 25, 0.05);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.panel-list { margin-top: 1.4rem; color: var(--ink-2); line-height: 1.55; }
.panel-list li { margin-top: 0.4rem; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding: 1.4rem clamp(1.5rem, 7vw, 10rem);
  color: var(--ink-3);
  font-size: 0.92rem;
}
.footer p { margin: 0; }

.guide-main { padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 7vw, 10rem); }
.guide-article { width: min(940px, 100%); margin: 0 auto; }
.guide-body { background: var(--paper); }
.guide-article h1 { max-width: 16ch; }
.guide-article section { border-top: 1px solid var(--rule); padding-top: 1.8rem; margin-top: 1.8rem; }
.guide-article code { background: rgba(28, 26, 25, 0.07); color: var(--warm-deep); padding: 0.1rem 0.28rem; border-radius: 6px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.pass-list { color: var(--ink-2); line-height: 1.6; max-width: 72ch; padding-left: 1.2rem; }
.pass-list li { margin-top: 0.5rem; }

@media (max-width: 980px) {
  .lab-shell, .closing, .split-heading { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .proof-card:hover { transform: none; }
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero { padding-top: 3.4rem; min-height: 80vh; }
  h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .proof-card { min-height: unset; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .proof-card.reveal { opacity: 1; transform: translateY(0); }
}
