:root {
  --ground: #0b0c0a;
  --panel: #11120f;
  --panel-2: #171812;
  --line: #34372f;
  --ink: #e6e6e0;
  --muted: #9b9d92;
  --amber: #f0ad3d;
  --amber-dark: #b0761e;
  --paper: #e9e3d5;
  --paper-ink: #181916;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(240, 173, 61, .08), transparent 25rem),
    var(--ground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(calc(100% - max(40px, env(safe-area-inset-left) + env(safe-area-inset-right))), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(52, 55, 47, .8);
  background: rgba(11, 12, 10, .88);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand span { font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.brand b { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--amber); }

.hero { min-height: 76vh; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 7vw; padding: 86px 0 72px; }
.eyebrow, .kicker { color: var(--amber); font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.03em; }
h1 { max-width: 780px; font-size: clamp(52px, 8vw, 110px); font-weight: 760; }
h1 em { color: var(--amber); font-style: normal; }
.lead { max-width: 620px; margin: 28px 0 0; color: #c5c6bd; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--amber); background: var(--amber); color: #10110e; text-decoration: none; font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button:hover { filter: brightness(1.08); }

.camera-card { position: relative; border: 1px solid var(--line); background: #080906; padding: 18px; box-shadow: 18px 18px 0 rgba(240, 173, 61, .05); }
.camera-card::before, .camera-card::after { content: ""; position: absolute; width: 42px; height: 42px; border-color: var(--amber); pointer-events: none; }
.camera-card::before { top: 9px; left: 9px; border-top: 1px solid; border-left: 1px solid; }
.camera-card::after { right: 9px; bottom: 9px; border-right: 1px solid; border-bottom: 1px solid; }
.camera-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.camera-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 13px; color: var(--muted); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.dot { color: var(--amber); }

.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-bottom: 48px; }
.section h2 { max-width: 760px; font-size: clamp(36px, 5vw, 68px); }
.section-intro { margin: 0; color: var(--muted); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { min-height: 260px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17, 18, 15, .64); }
.feature .index { color: var(--amber); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature h3 { margin-top: 64px; font-size: 24px; }
.feature p { margin: 14px 0 0; color: var(--muted); }
.paper-band { background: var(--paper); color: var(--paper-ink); }
.paper-band .section { border-color: rgba(24,25,22,.22); }
.paper-band .kicker { color: #87570e; }
.paper-band .section-intro { color: #55574f; }
.paper-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.paper-card { min-height: 280px; padding: 28px; border: 1px solid rgba(24,25,22,.25); background: rgba(255,255,255,.18); display: flex; flex-direction: column; justify-content: space-between; }
.paper-card strong { font-size: 26px; line-height: 1.15; }
.paper-card span { font: 700 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }

.page-hero { padding: 92px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(48px, 7vw, 86px); }
.page-hero .lead { max-width: 760px; }
.content-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 72px; padding: 72px 0 110px; }
.side-nav { position: sticky; top: 104px; align-self: start; display: grid; gap: 10px; }
.side-nav a { color: var(--muted); text-decoration: none; font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.side-nav a:hover { color: var(--amber); }
.prose section { padding: 0 0 56px; scroll-margin-top: 112px; }
.prose h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: #c5c6bd; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--amber); text-underline-offset: 4px; }
.notice { padding: 22px; border-left: 3px solid var(--amber); background: var(--panel); color: #c5c6bd; }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--amber); font-family: ui-monospace, monospace; }
details[open] summary::after { content: "−"; }
details p { margin-top: 0; padding-bottom: 20px; }

.site-footer { padding: 38px 0 46px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.footer-row p { margin: 0; font: 600 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

@media (max-width: 820px) {
  .nav-links a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .camera-card { width: min(100%, 520px); }
  .section-head, .content-layout { grid-template-columns: 1fr; }
  .feature-grid, .paper-cards { grid-template-columns: 1fr; }
  .feature { min-height: 220px; }
  .side-nav { position: static; grid-template-columns: repeat(2, 1fr); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .page-hero { padding-top: 72px; }
  .content-layout { gap: 42px; }
}
@media (max-width: 520px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .brand span { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; }
  .hero { padding-top: 48px; }
  .section { padding: 70px 0; }
  .section-head { gap: 18px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .side-nav { grid-template-columns: 1fr; gap: 14px; }
  .actions, .button { width: 100%; }
  .camera-card { padding: 12px; box-shadow: 10px 10px 0 rgba(240, 173, 61, .05); }
  .feature, .paper-card { min-height: auto; }
  .feature h3 { margin-top: 40px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .nav-links { gap: 8px; }
  h1 { font-size: 44px; }
}

@media (orientation: landscape) and (max-height: 540px) {
  .hero { min-height: auto; padding-top: 46px; }
  .camera-card { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
