:root {
  color-scheme: dark;
  --bg: #161310;
  --surface: #211d19;
  --surface-2: #2b2520;
  --paper: #f3eee4;
  --muted: #b9b0a5;
  --faint: #7f776e;
  --line: #3b342d;
  --clay: #c47b6a;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: auto; max-width: var(--max); margin-inline: max(20px, calc((100% - var(--max)) / 2)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 28%);
  background: color-mix(in srgb, var(--bg), transparent 7%);
  backdrop-filter: blur(16px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 176px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--paper); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.button.primary { background: var(--paper); color: #1a1713; border-color: var(--paper); }
.button.secondary { background: transparent; color: var(--paper); }
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.eyebrow { margin: 0 0 16px; color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero { padding: 108px 0 92px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 80px; align-items: center; }
.hero-grid > *, .section-intro > *, .identity > * { min-width: 0; }
h1, h2, h3 { margin-top: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(56px, 8vw, 108px); font-weight: 640; }
h2 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 66px); font-weight: 620; }
h3 { margin-bottom: 10px; font-size: 23px; }
.lede { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.availability { margin-top: 18px; color: var(--faint); font-size: 13px; }
.cabinet {
  position: relative;
  width: 100%;
  min-height: 560px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(150deg, #2b241e, #1b1815 70%);
  box-shadow: 0 34px 80px rgba(0,0,0,.33);
}
.cabinet::after { content: ""; position: absolute; inset: 14px; border: 1px solid #40372f; border-radius: 28px; pointer-events: none; }
.cabinet-head { display: flex; justify-content: space-between; margin: 15px 10px 22px; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.object-card { position: relative; z-index: 1; margin: 12px 0; padding: 22px; border-radius: 24px; background: var(--surface-2); }
.object-card.featured { min-height: 250px; display: flex; flex-direction: column; justify-content: end; background: radial-gradient(circle at 75% 16%, #60463b, transparent 34%), linear-gradient(140deg, #342a23, #211d19); }
.object-tag { width: max-content; margin-bottom: auto; padding: 6px 10px; border: 1px solid #59483e; border-radius: 99px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.object-title { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.035em; }
.object-meta { margin: 8px 0 0; color: var(--muted); }
.object-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-object { min-height: 132px; padding: 18px; border-radius: 20px; background: #27221e; }
.mini-object strong { display: block; margin-top: 34px; }
.mini-object span { color: var(--faint); font-size: 12px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 80px; margin-bottom: 54px; }
.section-intro h2 { font-size: clamp(34px, 3.7vw, 54px); }
.section-copy { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.feature-index { display: block; margin-bottom: 62px; color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.feature p { margin: 0; color: var(--muted); }
.app-preview { overflow: hidden; }
.screen-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.screen-card { display: flex; height: 100%; min-width: 0; flex-direction: column; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: 0 26px 64px rgba(0,0,0,.24); }
.screen-card.featured-screen { transform: none; }
.screen-card img { width: 100%; border-radius: 22px; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; background: #100e0c; }
.screen-card figcaption { display: grid; flex: 1; align-content: start; gap: 5px; padding: 18px 10px 12px; }
.screen-card figcaption strong { font-size: 18px; letter-spacing: -.02em; }
.screen-card figcaption span { color: var(--muted); font-size: 14px; }
.identity { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.identity-card { padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--paper); }
.identity-card.dark { background: var(--surface); }
.identity-card p { max-width: 500px; margin-bottom: 0; color: var(--muted); }
.status-pill { display: inline-flex; margin-bottom: 52px; padding: 7px 11px; border: 1px solid currentColor; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 28px; }
.principle > span { color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.principle p { margin: 0; color: var(--muted); }
.founder-note { background: var(--surface); color: var(--paper); }
.founder-note .eyebrow { color: var(--clay); }
.founder-note p { max-width: 780px; margin: 0; color: var(--muted); font-size: 20px; }
.founder-link { display: inline-flex; margin-top: 24px; color: var(--paper); font-size: 16px; font-weight: 750; text-underline-offset: 5px; }
.narrow-copy { max-width: 900px; }
.faq-list h3 { margin-bottom: 8px; }
.faq-list h3 + p { margin-top: 0; }
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.asset-card, .media-asset { min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; }
.asset-dark { background: var(--bg); }
.asset-light { background: var(--paper); color: #1a1713; }
.asset-preview { min-height: 260px; display: grid; place-items: center; padding: 48px; }
.lockup-preview img { width: min(100%, 360px); }
.mark-preview img { width: 96px; max-height: 96px; }
.wordmark-preview img { width: min(100%, 280px); }
.asset-info { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-top: 1px solid color-mix(in srgb, var(--line), transparent 18%); background: color-mix(in srgb, var(--surface), transparent 3%); color: var(--paper); }
.asset-info > div { min-width: 0; }
.asset-light .asset-info { background: #e9e3d8; color: #1a1713; border-color: #d7d0c4; }
.asset-info strong, .asset-info span { display: block; }
.asset-info span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.asset-light .asset-info span { color: #6d655c; }
.download-link { flex: 0 0 auto; text-decoration: none; font-size: 13px; font-weight: 750; }
.media-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 18px; align-items: start; }
.media-asset { background: var(--surface); }
.media-asset > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.media-asset.wide > img { aspect-ratio: 2 / 1; }
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.swatch { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 22px; }
.swatch span { font-weight: 650; }
.swatch strong { font-size: 12px; letter-spacing: .12em; }
.swatch.archive { background: #161310; color: #F3EEE4; }
.swatch.ivory { background: #F3EEE4; color: #1A1713; }
.swatch.clay { background: #C47B6A; color: #1A1713; }
.swatch.paper { background: #F4F0E8; color: #1A1713; }
.swatch.ink { background: #1A1713; color: #F3EEE4; }
.cta { padding: 100px 0; text-align: center; }
.cta p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.cta .actions { justify-content: center; }
.site-footer { padding: 40px 0 52px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.legal-hero { padding: 76px 0 44px; }
.legal-hero h1 { max-width: 900px; font-size: clamp(48px, 7vw, 84px); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 72px; padding-bottom: 110px; }
.legal-nav { position: sticky; top: 104px; align-self: start; display: grid; gap: 9px; color: var(--faint); font-size: 13px; }
.legal-nav a { text-decoration: none; }
.legal { color: var(--muted); }
.legal h2 { margin-top: 54px; color: var(--paper); font-size: 30px; letter-spacing: -.03em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 30px; color: var(--paper); font-size: 19px; letter-spacing: -.02em; }
.legal li { margin-bottom: 8px; }
.notice { margin: 24px 0 34px; padding: 18px 20px; border-left: 3px solid var(--clay); background: var(--surface); color: var(--muted); }
.steps { counter-reset: steps; display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.steps li { counter-increment: steps; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.steps li::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--clay); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--paper); }

@media (max-width: 860px) {
  .nav-links a:not(.button) { display: none; }
  .nav-links a[href="/about/"], .nav-links a[href="/faq/"] { display: inline-flex; }
  .brand img { width: 148px; }
  .hero { padding-top: 72px; }
  .hero-grid { display: block; }
  .hero-grid > :last-child { margin-top: 40px; }
  .section-intro, .identity, .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle:nth-child(odd) { border-right: 0; }
  .principle:nth-child(even) { padding-left: 0; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-asset.wide { grid-column: span 2; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .cabinet { min-height: 500px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: repeat(5, minmax(240px, 1fr)); overflow-x: auto; margin-inline: -20px; padding: 24px 20px 18px; scroll-snap-type: x mandatory; }
  .screen-card { scroll-snap-align: center; }
  .screen-card.featured-screen { transform: none; }
  .feature { min-height: auto; }
  .feature-index { margin-bottom: 34px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 520px) {
  .shell { width: auto; margin-inline: 14px; }
  .nav { min-height: 66px; }
  .brand img { width: 118px; }
  .nav-links { gap: 11px; font-size: 12px; }
  .nav-links .button { min-height: 40px; padding-inline: 14px; font-size: 12px; }
  .hero { padding: 58px 0 70px; }
  h1 { max-width: 100%; font-size: clamp(42px, 12.5vw, 50px); }
  h1, h2, h3, p { overflow-wrap: anywhere; }
  .cabinet { min-height: 460px; padding: 16px; border-radius: 30px; }
  .object-row { grid-template-columns: 1fr; }
  .mini-object { min-height: 98px; }
  .mini-object strong { margin-top: 18px; }
  .section { padding: 72px 0; }
  .screen-grid { grid-template-columns: repeat(5, minmax(78vw, 1fr)); margin-inline: -14px; padding-inline: 14px; }
  .asset-grid, .media-grid { grid-template-columns: 1fr; }
  .media-asset.wide { grid-column: auto; }
  .asset-preview { min-height: 220px; padding: 34px; }
  .asset-info { align-items: flex-start; flex-direction: column; gap: 12px; }
  .swatch-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { flex-direction: column; }
}

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