:root {
  color-scheme: dark;
  --bg: #0d0e0f;
  --fg: #f7f4ee;
  --muted: #b8b4ad;
  --accent: #ecc271;
  --line: #34302a;
  --panel: #171614;
  --button: #edc473;
  --button-ink: #1e1508;
  --visual-border: #50422d;
  --visual-bg: #11100e;
  --visual-ink: #f2cc85;
  --visual-edge: #0d0d0dd9;
  --light-ink: block;
  --dark-ink: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f8f5ee;
    --fg: #201c17;
    --muted: #5a5146;
    --accent: #81551b;
    --line: #dcd1bf;
    --panel: #fffaf1;
    --visual-border: #d8c5ad;
    --visual-bg: #f4e5d3;
    --visual-ink: #654016;
    --visual-edge: #f9eedfd9;
    --light-ink: none;
    --dark-ink: block;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f5ee;
  --fg: #201c17;
  --muted: #5a5146;
  --accent: #81551b;
  --line: #dcd1bf;
  --panel: #fffaf1;
  --visual-border: #d8c5ad;
  --visual-bg: #f4e5d3;
  --visual-ink: #654016;
  --visual-edge: #f9eedfd9;
  --light-ink: none;
  --dark-ink: block;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 96px, 1376px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 95px; border-bottom: 1px solid var(--line); }
.brand { width: clamp(155px, 18vw, 244px); }
.logo { width: 100%; height: auto; }
.light-ink { display: var(--light-ink); }
.dark-ink { display: var(--dark-ink); }
.theme { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px 5px 12px; color: var(--muted); }
.theme select { padding: 4px; background: var(--bg); color: var(--fg); border: 0; font: inherit; font-size: .82rem; }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(24px, 5vw, 86px); padding-block: clamp(34px, 5vw, 78px); }
.intro { animation: arrive .7s ease-out both; }
.status, .eyebrow, .visual-top, .focus span, .site-footer > span:last-child {
  font: 600 .7rem/1.5 ui-monospace, monospace;
  letter-spacing: .15em;
}
.status { display: inline-flex; gap: 9px; align-items: center; margin: 0 0 clamp(24px, 4vw, 52px); padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); }
.status span, .signal { border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.status span { width: 6px; height: 6px; }
.eyebrow { color: var(--accent); margin: 0 0 12px; }
h1, h2 { margin: 0; letter-spacing: -.065em; line-height: 1; font-weight: 650; }
h1 { font-size: clamp(3.5rem, 7.2vw, 7.7rem); }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 38ch; margin: 25px 0 28px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.19rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; background: var(--button); color: var(--button-ink); font: 700 .9rem/1 system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s; }
.button:hover { background: #ffda8e; box-shadow: 0 0 22px #d899392e; }
.button:disabled { opacity: .65; cursor: wait; }
.visual { position: relative; isolation: isolate; margin: 0; min-width: 0; aspect-ratio: 1.27; overflow: hidden; border: 1px solid var(--visual-border); border-radius: 8px; background: var(--visual-bg); color: var(--visual-ink); }
.visual img { width: 100%; height: 100%; object-fit: cover; animation: resolve 1.1s ease-out both; }
.visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--visual-edge), transparent 20% 77%, var(--visual-edge)); }
.visual-top, .crosshair, .signal { position: absolute; z-index: 1; }
.visual-top { inset: 20px auto auto 20px; }
.crosshair { top: 14px; right: 20px; font: 1.4rem ui-monospace, monospace; }
.signal { color: var(--visual-ink); right: 22px; bottom: 22px; width: 6px; height: 6px; animation: pulse 3s ease-in-out 3; }
.focus { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; border-block: 1px solid var(--line); }
.focus li { display: flex; align-items: baseline; gap: 12px; padding: 21px 16px; font-weight: 600; }
.focus li + li { border-left: 1px solid var(--line); }
.focus span { color: var(--accent); white-space: nowrap; }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 86px); padding-block: clamp(52px, 7vw, 100px); }
.maintenance { display: flex; flex-direction: column; min-height: 100svh; }
.maintenance main { display: grid; align-content: center; flex: 1; }
.contact h2 { font-size: clamp(2.1rem, 4vw, 4.2rem); }
.contact p { color: var(--muted); }
.contact a { color: var(--accent); text-underline-offset: 4px; }
form, form label { display: grid; gap: 8px; min-width: 0; }
form { gap: 15px; }
form label { font-size: .9rem; font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
input, textarea { width: 100%; padding: 11px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; font: inherit; }
textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.form-actions p { margin: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 23px; font-size: .8rem; color: var(--muted); }
.footer-dot { color: var(--accent); margin-left: 6px; }
#analytics-choice { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
@keyframes resolve { from { opacity: .65; transform: scale(1.025); } }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .site-header { min-height: 76px; }
  .hero { grid-template-columns: 1fr; }
  .visual { aspect-ratio: 1.48; }
  h1 { font-size: clamp(3.4rem, 12vw, 6rem); }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .contact, .fields { grid-template-columns: 1fr; }
  .focus li { flex-direction: column; gap: 4px; padding: 13px 8px; font-size: .8rem; }
  .visual-top { left: 11px; font-size: .59rem; }
  .visual-top { top: 11px; }
  .crosshair { right: 11px; top: 6px; }
  .signal { right: 13px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
