/* ==========================================================================
   Artifact Futurism - shared mockup stylesheet
   steventrotter.com example pages. Created 2026-06-12.
   Canonical spec: ../Style Guide - Artifact Futurism.md
   ========================================================================== */

:root {
  --paper: #F4F1E9;
  --paper-raised: #FBF9F4;
  --putty: #E7E3D6;
  --rule: #D8D2C2;
  --ink: #1B1A17;
  --muted: #5F5B51;
  --accent: #784A9D;
  --accent-deep: #5C3879;
  --highlight: #D9A93C;
  --ochre: #D9A93C;
  --ochre-deep: #7A6210;
  --accent3: #2E8B7F;
  --accent3-deep: #1F5A52;

  /* extended palette - harvested from the Vesper Atlas AF reskin, 2026-06-14.
     Paper/ink/accent values above are unchanged; these only ADD slots. */
  --bg2: #ECE7D9;          /* tinted strip, one step deeper than putty */
  --border-hair: #E4DFD1;  /* faintest rule, below --rule */
  --text3: #7A756A;        /* lowest-priority labels (4.06:1 - large / non-essential only) */
  --violet-mid: #8A6BB0;   /* decorative purple (3.87:1 - fill / large only) */
  --indigo: #5A4F8A;       /* cool accent, body-text capable (6.37:1, AA) */
  --coral: #B5546E;        /* destructive / coral accent (fill or large text) */
  --status-green: #2E7D52; /* healthy / live - fill or large (4.46:1); pair with icon, never colour alone */
  --status-amber: #B07A1E; /* warning - fill or large (3.29:1); pair with icon */
  --status-red: #9E3B3B;   /* error / critical (5.92:1, AA as text) */
  --tint-violet: #ECE4F3;  /* soft fills - all carry --ink at AAA (13-15:1) */
  --tint-amber: #F7EED8;
  --tint-teal: #E3F0EC;
  --tint-coral: #F0DCE0;
  --heat-1: #E0D2EC;       /* sequential purple heatmap ramp */
  --heat-2: #C3A9DC;
  --heat-3: #9B72C0;
  --heat-4: #5C3879;
  --seg-1: #784A9D;        /* 10 muted slots for multi-series bars / charts (fills) */
  --seg-2: #2E8B7F;
  --seg-3: #C58A1E;
  --seg-4: #B5546E;
  --seg-5: #4A6B82;
  --seg-6: #6E8B5A;
  --seg-7: #8A6BB0;
  --seg-8: #B26A3C;
  --seg-9: #5A4F8A;
  --seg-10: #7E6A3A;

  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Lora", Georgia, serif;
  --ease-mech: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-weight: 300; line-height: 1.6; }
:where(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 99; }
.skip:focus { left: 16px; top: 16px; }

/* microlabel */
.label {
  font-family: var(--font-mono); font-size: 0.706rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.label--ink { color: var(--ink); }

/* DEC-01 ruler */
.ruler {
  height: 20px;
  background-image:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to right, var(--muted) 0 1px, transparent 1px 8px);
  background-size: 100% 20px, 100% 11px;
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
}

/* DEC-08 readout chip */
.chip-readout { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; font-family: var(--font-mono); font-size: 0.824rem; background: var(--paper-raised); color: var(--ink); }
.chip-readout b { font-weight: 500; padding: 4px 10px; }
.chip-readout span { padding: 4px 8px; border-left: 1.5px solid var(--ink); background: var(--putty); font-size: 0.706rem; display: flex; align-items: center; letter-spacing: 0.08em; }

/* links: ochre marker-stroke highlighter (organic brush, sweeps on) */
a.hl {
  color: var(--accent-deep);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  background-image: var(--hl-brush);
  background-repeat: no-repeat; background-size: 0% 90%; background-position: left center;
  padding: 0.04em 0.14em; margin: 0 -0.14em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-size 300ms var(--ease-mech), color 300ms var(--ease-mech);
}
a.hl:hover, a.hl:focus-visible { background-size: 100% 90%; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { a.hl { transition: none; } }
:root {
  --hl-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M2 12.4 C1.6 6 5.5 3 13 2.8 C39 0.9 62 3.9 85 2.4 C93.5 1.9 98.7 5 98.4 12 C98.9 18.8 93.5 21.4 86 21.5 C59 23.6 37 19.8 13.5 21.6 C6 22 1.7 18.8 2 12.4 Z' fill='%23F7E5A3'/%3E%3C/svg%3E");
}

/* header / nav */
header.site { border-bottom: 1px solid var(--rule); padding: 22px 0; background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.wordmark { font-weight: 500; font-size: 1.235rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
nav.main ul { list-style: none; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.882rem; }
nav.main .idx { font-family: var(--font-mono); font-size: 0.706rem; color: var(--muted); margin-right: 5px; vertical-align: 0.12em; }
nav.main a:hover { color: var(--accent-deep); }
nav.main a:hover .idx { color: var(--accent); }
nav.main a[aria-current="page"] .idx { color: var(--accent); }

/* hero */
.hero { padding: 96px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.824rem, 7vw, 4.235rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; max-width: 18ch; }
.hero .kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hero .sub { max-width: 52ch; margin-top: 24px; font-size: 1.118rem; }
.hero--compact { padding: 64px 0 40px; }

/* DEC-06 orbit (hero art) */
.par-layer { position: absolute; pointer-events: none; will-change: transform; }
.orbit-a { right: -60px; top: -30px; width: 380px; height: 380px; }
.orbit-a i { position: absolute; border-radius: 50%; }
.orbit-a .r1 { inset: 0; border: 1px solid var(--rule); }
.orbit-a .r2 { inset: 54px; border: 1.5px dotted var(--muted); }
.orbit-a .pl { position: absolute; border-radius: 50%; }
.orbit-a .pl-1 { width: 18px; height: 18px; background: var(--accent);  left: 10px; top: 261px; }  /* r1 ring, purple (lower-left, visible) */
.orbit-a .pl-2 { width: 13px; height: 13px; background: var(--ochre);   left: 48px; top: 184px; }  /* r2 ring, ochre (mid-left, visible) */
.orbit-a .pl-3 { width: 9px;  height: 9px;  background: var(--accent3); left: 22px; top: 91px; }   /* r1 ring, teal (upper-left, visible) */

/* hero highlighter marks - an organic marker stroke (SVG mask) wiped on with an angled chisel edge */
.mark { position: relative; isolation: isolate; white-space: nowrap; }
.mark::before {
  content: ""; position: absolute; z-index: -1;
  left: -0.16em; right: -0.18em; top: 0.16em; bottom: 0.02em;
  background: var(--mk, var(--highlight));
  -webkit-mask: var(--mk-shape) left center / 100% 100% no-repeat;
          mask: var(--mk-shape) left center / 100% 100% no-repeat;
  transform: rotate(-1.3deg);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 520ms cubic-bezier(0.42, 0.12, 0.18, 1);
  mix-blend-mode: multiply;
}
.mark:hover::before, .mark:focus-visible::before { clip-path: polygon(0 0, 106% 0, 99% 100%, 0 100%); }
/* the brush shape: a slightly wavy capsule with rounded chisel ends */
:root { --mk-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M2 12.4 C1.6 6 5.5 3 13 2.8 C39 0.9 62 3.9 85 2.4 C93.5 1.9 98.7 5 98.4 12 C98.9 18.8 93.5 21.4 86 21.5 C59 23.6 37 19.8 13.5 21.6 C6 22 1.7 18.8 2 12.4 Z' fill='%23000'/%3E%3C/svg%3E"); }
.mark--ochre { --mk: rgba(217, 169, 60, 0.62); }
.mark--purple { --mk: rgba(120, 74, 157, 0.46); }
.mark--teal { --mk: rgba(46, 139, 127, 0.52); }
@media (prefers-reduced-motion: reduce) { .mark::before { transition: none; } }

/* DEC-10..13 instrument decorations (inline SVG drives color via var()/currentColor) */
.dec-svg { display: inline-block; line-height: 0; }
.dec-svg svg { display: block; width: 100%; height: auto; }
@media (max-width: 980px) { .orbit-a { display: none; } }

/* sections */
section { padding: 56px 0; }
section.ruled { border-top: 1px solid var(--rule); }
section > .wrap > .label { display: block; margin-bottom: 32px; }
h2.sec { font-size: 2rem; font-weight: 700; line-height: 1.15; margin-bottom: 20px; }

/* buttons */
.btn {
  display: inline-block; font-family: var(--font-sans); font-weight: 500; font-size: 0.941rem;
  padding: 12px 24px; border-radius: 6px; cursor: pointer; min-height: 44px;
  border: 1.5px solid var(--ink); text-decoration: none; text-align: center;
  transition: background-color 150ms var(--ease-mech), color 150ms var(--ease-mech), border-color 150ms var(--ease-mech), transform 150ms var(--ease-mech);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--paper-raised); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper-raised); }
.btn--primary:active { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper-raised); }

/* cards + folder-tab cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform 150ms var(--ease-mech); }
a.card { text-decoration: none; color: inherit; }
a.card:hover, a.folder:hover { transform: translateY(-2px); }
.card .band { padding: 12px 18px; border-bottom: 1.5px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.card .band--ochre { background: var(--ochre); }
.card .band--putty { background: var(--putty); }
.card .band .label { color: var(--ink); }
.card .body { padding: 18px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.235rem; font-weight: 500; }
.card p { font-size: 0.941rem; color: var(--muted); }
.leader { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: 0.824rem; }
.leader .dots { flex: 1; border-bottom: 1.5px dotted var(--muted); transform: translateY(-4px); }

.folder { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; margin-top: 14px; transition: transform 150ms var(--ease-mech); }
.folder .tab {
  align-self: flex-start; position: relative; z-index: 1; margin-left: 14px; margin-bottom: -1.5px;
  font-family: var(--font-mono); font-size: 0.706rem; font-weight: 500; letter-spacing: 0.08em;
  background: var(--putty); border: 1.5px solid var(--ink); border-bottom: none;
  border-radius: 6px 6px 0 0; padding: 5px 12px 6px;
}
.folder .tab--ochre { background: var(--ochre); }
.folder .file { background: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 0 10px 10px 10px; overflow: hidden; display: flex; flex-direction: column; flex: 1; }
.folder .file img { aspect-ratio: 1; object-fit: cover; border-bottom: 1.5px solid var(--ink); }
.folder .meta { padding: 14px 16px; display: grid; gap: 6px; }
.folder .meta h3 { font-size: 1.059rem; font-weight: 500; }
.folder .meta .label { font-size: 0.647rem; }

/* dossier header */
.dossier { border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper-raised); padding: 22px 24px; display: grid; gap: 10px; max-width: 640px; }
.dossier .row { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); font-size: 0.824rem; }
.dossier .row .k { font-size: 0.706rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); min-width: 84px; text-transform: uppercase; }
.dossier .row .dots { flex: 1; border-bottom: 1.5px dotted var(--muted); transform: translateY(-4px); }
.dossier .row .v { text-align: right; }

/* log metadata row */
.logmeta { font-family: var(--font-mono); font-size: 0.824rem; color: var(--muted); letter-spacing: 0.02em; }

/* plate frame (photography) */
.plate { background: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 10px; padding: 20px; }
.plate .plate-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.plate img { border: 1px solid var(--rule); }
.plate figcaption { margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-size: 0.882rem; color: var(--muted); }
.plates { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.plate--wide { grid-column: 1 / -1; }

/* design case-study detail - masonry of framed plates */
.case { column-count: 2; column-gap: 24px; max-width: 860px; margin: 0 auto; }
.case .plate { width: 100%; break-inside: avoid; margin: 0 0 24px; }
@media (max-width: 620px) { .case { column-count: 1; } }
.casenav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px auto 0; max-width: 860px; border-top: 1px solid var(--rule); padding-top: 22px; }
.casenav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.94rem; }
.casenav a:hover { color: var(--accent-deep); }
.casenav .nxt { text-align: right; }
.casenav .idx { font-family: var(--font-mono); font-size: 0.706rem; color: var(--muted); display: block; letter-spacing: 0.06em; margin-bottom: 2px; }

/* contact form */
.contact-form { display: grid; gap: 20px; }
.form-field { display: grid; gap: 7px; }
.form-field .flabel { font-family: var(--font-mono); font-size: 0.706rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 300; line-height: 1.5; color: var(--ink);
  background: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.contact-form input[type="text"]::placeholder, .contact-form input[type="email"]::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input[type="text"]:hover, .contact-form input[type="email"]:hover, .contact-form textarea:hover { border-color: var(--accent); }
.contact-form input[type="text"]:focus-visible, .contact-form input[type="email"]:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 168px; }
.contact-form .btn { justify-self: start; margin-top: 4px; }

/* form controls: select, radio, checkbox, toggle */
select {
  appearance: none; -webkit-appearance: none; font-family: var(--font-sans); font-size: 1rem; font-weight: 300;
  color: var(--ink); background-color: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 8px;
  padding: 11px 42px 11px 14px; width: 100%; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%231B1A17' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
select:hover { border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
.field-group { display: grid; gap: 11px; }
.field-group legend { margin-bottom: 4px; padding: 0; }
.opt { display: flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 300; font-size: 0.95rem; color: var(--ink); cursor: pointer; }

input[type="radio"], input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 20px; height: 20px; margin: 0; padding: 0;
  border: 1.5px solid var(--ink); background: var(--paper-raised); display: inline-grid; place-content: center; cursor: pointer;
  transition: background-color 120ms var(--ease-mech), border-color 120ms var(--ease-mech);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 120ms var(--ease-mech); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:not(.toggle)::before { content: ""; width: 6px; height: 11px; border: solid var(--paper-raised); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-1px) scale(0); transition: transform 120ms var(--ease-mech); }
input[type="checkbox"]:not(.toggle):checked { background: var(--ink); border-color: var(--ink); }
input[type="checkbox"]:not(.toggle):checked::before { transform: rotate(45deg) translateY(-1px) scale(1); }

input[type="checkbox"].toggle {
  box-sizing: border-box; width: 46px; height: 26px; border-radius: 999px; background: var(--putty); border: 1.5px solid var(--ink);
  position: relative; display: inline-block; padding: 0; cursor: pointer;
  transition: background-color 150ms var(--ease-mech), border-color 150ms var(--ease-mech);
}
input[type="checkbox"].toggle::before { content: ""; position: absolute; top: 50%; left: 2.5px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); transition: left 170ms var(--ease-mech), background-color 170ms var(--ease-mech); }
input[type="checkbox"].toggle:checked { background: var(--ink); border-color: var(--ink); }
input[type="checkbox"].toggle:checked::before { left: 23.5px; background: var(--paper-raised); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { border: 1.5px solid var(--ink); border-radius: 10px; padding: 18px 22px 22px; background: var(--paper-raised); }
.stat--purple { background: var(--tint-violet); }
.stat--ochre  { background: var(--tint-amber); }
.stat--teal   { background: var(--tint-teal); }
.stat--coral  { background: var(--tint-coral); }
.stat .label { color: var(--ink); display: block; margin-bottom: 6px; }
.stat .num { font-size: clamp(2.6rem, 6vw, 4.7rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .unit { font-family: var(--font-mono); font-size: 0.765rem; }

/* prose register */
.prose { max-width: 65ch; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.824rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.prose p { font-family: var(--font-serif); font-size: 1.059rem; line-height: 1.7; margin-bottom: 18px; }
.prose .logmeta { display: block; margin-bottom: 28px; }

/* gallery (article) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 28px 0; }
.gallery img { border: 1.5px solid var(--ink); border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tags a { font-family: var(--font-mono); font-size: 0.706rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; border: 1px solid var(--muted); border-radius: 999px; padding: 5px 12px; transition: transform 150ms var(--ease-mech), background-color 150ms var(--ease-mech); }
.tags a:hover { transform: translateY(-2px); background: var(--putty); }

/* ink band CTA */
.ink-band { background: var(--ink); }
.ink-band a { display: block; text-align: center; color: var(--paper); font-weight: 500; font-size: 1.118rem; padding: 22px 16px; text-decoration: none; }
.ink-band a:hover { color: var(--ochre); }

/* reveals (gated by js-motion on <html>) */
.js-motion .reveal { opacity: 0; transform: translateY(14px); }
.js-motion .reveal.in { opacity: 1; transform: none; transition: opacity 350ms var(--ease-mech), transform 350ms var(--ease-mech); }

/* purple accent helpers */
.label .n { color: var(--accent); }
.wordmark img { height: 30px; width: auto; display: block; }
footer.site .wordmark img { height: 26px; }

/* folder tabs: neutral default, alternating ochre/purple on hover (home + design archive) */
.folder .tab { background: var(--putty); color: var(--ink); transition: background-color 150ms var(--ease-mech), color 150ms var(--ease-mech); }
.cards .folder:nth-child(3n+1):hover .tab, .archive .folder:nth-child(3n+1):hover .tab { background: var(--ochre); color: var(--ink); }
.cards .folder:nth-child(3n+2):hover .tab, .archive .folder:nth-child(3n+2):hover .tab { background: var(--accent); color: var(--paper-raised); }
.cards .folder:nth-child(3n):hover .tab, .archive .folder:nth-child(3n):hover .tab { background: var(--accent3-deep); color: var(--paper-raised); }
.folder .tab--accent { background: var(--accent); color: var(--paper-raised); }

/* DEC-02 dot grid */
.dec-dots { display: inline-grid; grid-template-columns: repeat(6, 10px); gap: 7px; }
.dec-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.dec-dots i.hot { background: var(--accent); }
.dec-dots i.hot2 { background: var(--accent3); }
.dec-dots i.off { background: transparent; border: 1.5px solid var(--rule); }

/* DEC-07 meridian divider (horizontal) */
.dec-meridian { position: relative; height: 1px; width: 100%; margin: 4px 0;
  background-image: linear-gradient(to right, var(--muted) 45%, transparent 45%); background-size: 7px 1px; background-repeat: repeat-x; }
.dec-meridian b { position: absolute; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.dec-meridian b.hot { background: var(--accent); width: 10px; height: 10px; top: -4.5px; }

/* DEC-09 constellation (contained blocks only) */
.dec-const { position: relative; }
.dec-const i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.dec-const i.hot { background: var(--accent); width: 4px; height: 4px; }
.dec-const i.hot2 { background: var(--accent3); width: 4px; height: 4px; }

/* DEC-05 registration marks around a framed element */
.regmark { position: relative; }
.regmark > svg { position: absolute; width: 12px; height: 12px; stroke: var(--muted); pointer-events: none; }
.regmark > svg.tl { top: -6px; left: -6px; }
.regmark > svg.tr { top: -6px; right: -6px; }
.regmark > svg.bl { bottom: -6px; left: -6px; }
.regmark > svg.br { bottom: -6px; right: -6px; }

/* footer */
footer.site { background: var(--ink); color: var(--paper); padding: 44px 0; margin-top: 64px; position: relative; overflow: hidden; }
footer.site > .wrap { position: relative; z-index: 1; }
.footer-orbit { position: absolute; right: -64px; bottom: -120px; width: 320px; height: 320px; opacity: 0.13; pointer-events: none; z-index: 0; }
.footer-orbit svg { display: block; width: 100%; height: 100%; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
footer.site .label { color: var(--paper); }
.footer-credit { flex-basis: 100%; text-align: right; font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper); opacity: 0.85; margin-top: 2px; }
.footer-credit .heart { color: #AE8FD6; font-style: normal; }
footer.site a { color: var(--paper); }
footer.site .chip-readout { border-color: var(--paper); background: transparent; color: var(--paper); }
footer.site .chip-readout span { border-color: var(--paper); background: transparent; }

/* footer: logo icon + badge centered, matched height */
footer.site .chip-readout { height: 32px; align-items: center; }
footer.site .wordmark img { height: 32px; }

/* nav tray - slide-in from right, desktop + mobile */
/* menu = a readout chip, echoing the logo pill + footer chip */
.menu-toggle { display: inline-flex; align-items: stretch; padding: 0; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--paper-raised); cursor: pointer; font-family: var(--font-mono); min-height: 38px; }
.menu-toggle .mt-label { display: flex; align-items: center; padding: 0 15px; font-size: 0.94rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); transition: background-color 150ms var(--ease-mech), color 150ms var(--ease-mech); }
.menu-toggle .mt-bars { display: flex; align-items: center; gap: 4px; padding: 0 12px; border-left: 1.5px solid var(--ink); background: var(--putty); transition: background-color 150ms var(--ease-mech); }
.menu-toggle .mt-bars i { width: 8px; height: 8px; background: var(--ink); display: block; }
.menu-toggle .mt-bars i:last-child { background: var(--accent); }
.menu-toggle:hover .mt-label { background: var(--ink); color: var(--paper-raised); }
.menu-toggle:hover .mt-bars { background: var(--ochre); }
.menu-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.menu-toggle[aria-expanded="true"] .mt-bars { background: var(--ochre); }
.tray-scrim { position: fixed; inset: 0; background: rgba(15,14,12,0.5); z-index: 90; opacity: 0; transition: opacity 200ms var(--ease-mech); }
.tray-scrim.open { opacity: 1; }
.tray { position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: var(--paper-raised); border-left: 1.5px solid var(--ink); z-index: 91; transform: translateX(101%); transition: transform 240ms var(--ease-mech); padding: 22px 26px; overflow-y: auto; }
.tray.open { transform: none; }
.tray-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.tray-close { background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); min-height: 44px; min-width: 44px; }
.tray ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tray a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.412rem; padding: 13px 6px; border-bottom: 1px solid var(--rule); }
.tray a .idx { font-family: var(--font-mono); font-size: 0.765rem; color: var(--muted); }
.tray a:hover, .tray a:focus-visible { color: var(--accent-deep); }
.tray a:hover .idx { color: var(--accent); }
.tray a[aria-current="page"] .idx { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .tray, .tray-scrim { transition: none; } }

/* survey masonry (photography) - framed plates, natural shapes, equal weight */
.survey { column-count: 3; column-gap: 20px; }
.survey .splate {
  break-inside: avoid; margin: 0 0 20px;
  background: var(--paper-raised); border: 1.5px solid var(--ink);
  border-radius: 10px; padding: 10px;
}
.survey .frame {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; font: inherit; color: inherit; text-align: left;
}
.survey .frame img { border: 1px solid var(--rule); border-radius: 2px; width: 100%; }
.survey .shead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.survey .shead .t { flex: 1; min-width: 0; }
.survey .shead .y { flex: none; }
.survey .glyph { flex: none; align-self: center; display: inline-flex; gap: 3px; }
.survey .glyph i { width: 7px; height: 7px; background: var(--ink); }
.survey .glyph i.p { background: var(--accent); }
.survey .frame:hover img { border-color: var(--accent); }
@media (max-width: 900px) { .survey { column-count: 2; } }
@media (max-width: 560px) { .survey { column-count: 1; } }

/* lightbox */
.lightbox { position: absolute; inset: 0; min-height: 100vh; display: none; }
.lightbox[open], .lightbox.is-open { display: block; }
.lb-scrim { position: fixed; inset: 0; background: rgba(15, 14, 12, 0.92); display: flex; align-items: center; justify-content: center; padding: 4vmin; z-index: 100; }
.lb-fig { max-width: min(1100px, 94vw); max-height: 92vh; display: flex; flex-direction: column; gap: 12px; }
.lb-fig img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border: 1px solid rgba(244,241,233,0.25); }
.lb-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lb-cap .t { color: var(--paper); }
.lb-cap .y { color: #B8B2A4; }
.lb-close { position: fixed; top: 16px; right: 18px; z-index: 101; background: none; border: 1.5px solid var(--paper); color: var(--paper); border-radius: 6px; min-height: 44px; padding: 8px 16px; cursor: pointer; font-family: var(--font-mono); font-size: 0.765rem; letter-spacing: 0.06em; }
.lb-close:hover { background: var(--paper); color: var(--ink); }

/* ==========================================================================
   Atlas harvest - components that emerged on the Vesper Atlas AF reskin
   (June 2026), generalized into the site system. Source provenance kept in
   the style guide. Tokens above drive all colour.
   ========================================================================== */

/* DEC-14 crop marks - 8 ink stubs (2 per corner) overshooting a frame */
.cropmarks { position: relative; }
.cropmarks::before {
  content: ""; position: absolute; inset: -7px; pointer-events: none; z-index: 2;
  background-image:
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 9px 1.5px, 9px 1.5px, 9px 1.5px, 9px 1.5px, 1.5px 9px, 1.5px 9px, 1.5px 9px, 1.5px 9px;
  background-position:
    left 0 top 7px, right 0 top 7px, left 0 bottom 7px, right 0 bottom 7px,
    left 7px top 0, right 7px top 0, left 7px bottom 0, right 7px bottom 0;
}

/* DEC-15 document watermark - faint corner stamp behind content */
.doc-watermark { position: absolute; right: -40px; bottom: -40px; width: 240px; height: 240px; z-index: 0; pointer-events: none; opacity: 0.06; }
.doc-watermark svg, .doc-watermark img { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .doc-watermark { width: 200px; height: 200px; right: -34px; bottom: -34px; } }
/* full-page variant: position: fixed; z-index: -1; hidden on overlay/onboarding surfaces. */

/* hatch fill - "pending / in progress" 45deg diagonal at 35% alpha over a track.
   Per-segment colour is set inline; pattern reusable on .segbar .todo and .progress .rest. */
.progress { height: 24px; border: 1.5px solid var(--ink); background: var(--paper-raised); display: flex; overflow: hidden; }
.progress .done { background: var(--coral); }
.progress .rest { flex: 1; } /* inline: repeating-linear-gradient(45deg, <colour 35%> 0 2px, transparent 2px 8px) */

/* segmented weighted progress bar - putty plate, drawn ink border, mono tick-track legend */
.segbar { display: flex; height: 62px; background: var(--putty); border: 1.5px solid var(--ink); overflow: hidden; }
.segbar .seg { position: relative; height: 100%; }
.segbar .seg + .seg { border-left: 1.5px solid var(--ink); }
.segbar .seg .fill { position: absolute; left: 0; top: 0; bottom: 0; }
.segbar .seg .todo { position: absolute; right: 0; top: 0; bottom: 0; } /* hatch set inline per segment colour */
.segtrack { display: flex; margin-top: 18px; }
.segtrack-item { min-width: 0; padding: 0 10px 0 9px; border-left: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--ink); white-space: nowrap; line-height: 1.5; }
.segtrack-item:first-child { border-left: none; padding-left: 0; }
.segtrack-item .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--ink); margin-right: 6px; }
.segtrack-item .nm { font-weight: 500; }
.segtrack-item .p { color: var(--muted); }

/* caution placard - date pill + hazard-striped tag (industrial overdue / warning) */
.due-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.78rem; background: var(--tint-amber); border: 1.5px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 5px 11px; }
.caution-tag { position: relative; font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.58rem; color: var(--ink); background: var(--ochre); border: 1.5px solid var(--ink); border-radius: 3px; padding: 2px 7px 2px 18px; margin-left: 6px; }
.caution-tag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 11px; background-image: repeating-linear-gradient(-45deg, var(--ink) 0 3px, var(--ochre) 3px 6px); border-right: 1.5px solid var(--ink); border-radius: 2px 0 0 2px; }

/* poll - hole-punch selector (the one allowed offset shadow) + thin tally bar */
.poll { display: grid; gap: 16px; max-width: 420px; }
.poll-opt { position: relative; padding-bottom: 14px; }
.poll-opt-row { display: flex; align-items: center; gap: 11px; padding: 4px 0; }
.poll-mark { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--rule); position: relative; }
.poll-opt.is-selected .poll-mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); }
.poll-label { flex: 1; }
.poll-pct { font-weight: 500; color: var(--ink); }
.poll-track { position: absolute; left: 0; right: 0; bottom: 4px; height: 7px; border-radius: 999px; background: var(--putty); border: 1px solid var(--rule); }
.poll-bar { position: absolute; left: 0; bottom: 4px; height: 7px; border-radius: 999px; z-index: 1; } /* width + colour inline */

/* filter bar - drawn instrument strip of mono chips */
.filter-bar { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper-raised); padding: 8px 12px; }
.filter-chip { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em; border-radius: 6px; background: transparent; border: 1.5px solid transparent; color: var(--ink); padding: 7px 13px; cursor: pointer; }
.filter-chip:hover:not(.is-active) { color: var(--accent-deep); border-color: var(--rule); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-raised); }
.filter-sep { width: 1.5px; height: 22px; background: var(--rule); margin: 0 4px; }
.filter-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-left: 6px; }

/* dashboard parts - tinted stat tiles, dotted-leader records, flat milestone bar */
.dash-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.dash-stat { background: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 10px; padding: 16px 18px; }
.dash-stat.is-violet { background: var(--tint-violet); }
.dash-stat.is-amber { background: var(--tint-amber); }
.dash-stat.is-teal { background: var(--tint-teal); }
.dash-stat.is-coral { background: var(--tint-coral); }
.dash-stat .lbl { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
.dash-stat .val { font-weight: 700; font-size: 2.1rem; line-height: 1.1; margin: 0.1em 0; font-variant-numeric: tabular-nums; }
.dash-stat .meta { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.dash-records { margin-top: 16px; display: grid; gap: 0; max-width: 420px; }
.dash-rec { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.dash-rec .dots { flex: 1; border-bottom: 1.5px dotted var(--muted); transform: translateY(-4px); }
.dash-rec .v { font-weight: 700; color: var(--ink); }
.dash-milestone { margin-top: 16px; }
.dash-ms-bar { height: 12px; background: var(--putty); border: 1.5px solid var(--ink); overflow: hidden; }
.dash-ms-fill { height: 100%; background: var(--ochre); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Dark mode - warm-dim theme + the header theme toggle. Added 2026-06-16.
   The site is token-driven, so dark mode is mostly a re-declaration of the
   core tokens under [data-theme="dark"], plus a few targeted overrides for
   places where --ink was used as a dark *fill* (footer, bright chips) or a
   colour was hardcoded (select arrow, poll dot, marker blend mode).
   st.js sets data-theme to the RESOLVED theme (light|dark) and
   data-theme-pref to the user's choice (light|dark|auto); a no-flash inline
   script in each page <head> sets both before first paint. All dark values
   are WCAG-verified: body text 13.6:1, body links 9.0:1 (AAA).
   ========================================================================== */

:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

/* theme-change transition (only fires on toggle; initial theme is set pre-paint) */
body, header.site, footer.site, .tray, .card, .folder .file, .folder .tab,
.dossier, .plate, .splate, .stat, .dash-stat, .filter-bar, .menu-toggle,
.theme-toggle, .chip-readout, .btn, select,
.contact-form input, .contact-form textarea {
  transition: background-color 300ms var(--ease-mech), border-color 300ms var(--ease-mech), color 300ms var(--ease-mech);
}

/* --- the dark palette ----------------------------------------------------- */
[data-theme="dark"] {
  --paper: #1E1D19;        /* page bg - warm near-black, never #000 */
  --paper-raised: #27241F; /* cards, raised surfaces */
  --putty: #332F28;        /* chips, tabs, tracks */
  --rule: #3C3930;         /* hairline borders */
  --ink: #ECE7D9;          /* primary text (13.6:1 on paper) */
  --muted: #ABA493;        /* secondary text / metadata (6.8:1) */
  --accent: #B79AD6;       /* purple - fills / large (6.9:1) */
  --accent-deep: #CBB4E4;  /* purple as body-link text (9.0:1, AAA) */
  --highlight: #E6BE5A;
  --ochre: #E6BE5A;
  --ochre-deep: #E6BE5A;
  --accent3: #62C3B4;      /* teal (8.0:1) */
  --accent3-deep: #6FC6B6; /* teal as a tab-hover fill (dark text on it) */

  --bg2: #2A2823;
  --border-hair: #2F2C26;
  --text3: #8C8676;
  --violet-mid: #A487C9;
  --indigo: #9FB0E6;
  --coral: #D98099;
  --status-green: #6FBF8E;
  --status-amber: #D9A646;
  --status-red: #E08585;
  --tint-violet: #2A2433;  /* soft tint cards become deep tints; --ink stays AAA on them */
  --tint-amber: #322A1C;
  --tint-teal: #1E2E2A;
  --tint-coral: #322029;
  --heat-1: #322A40; --heat-2: #4A3D63; --heat-3: #6E579A; --heat-4: #9B72C0;
  --seg-5: #6E8BA6; --seg-9: #8076C0;
}

/* --- targeted dark overrides ---------------------------------------------- */

/* footer stays a deep band in both themes (don't follow the inverted tokens) */
[data-theme="dark"] footer.site { background: #16150F; }
[data-theme="dark"] footer.site,
[data-theme="dark"] footer.site .label,
[data-theme="dark"] footer.site a,
[data-theme="dark"] footer.site .footer-credit { color: #ECE7D9; }
[data-theme="dark"] footer.site .chip-readout { border-color: #ECE7D9; color: #ECE7D9; }
[data-theme="dark"] footer.site .chip-readout span { border-color: #ECE7D9; }

/* hero marker highlight: multiply hides on dark, switch to screen so it glows */
[data-theme="dark"] .mark::before { mix-blend-mode: screen; }
[data-theme="dark"] .mark--ochre { --mk: rgba(230, 190, 90, 0.55); }
[data-theme="dark"] .mark--purple { --mk: rgba(183, 154, 214, 0.50); }
[data-theme="dark"] .mark--teal { --mk: rgba(98, 195, 180, 0.50); }

/* link highlighter: hover text must stay dark on the light-yellow brush band */
[data-theme="dark"] a.hl:hover, [data-theme="dark"] a.hl:focus-visible { color: #1B1A17; }

/* select dropdown arrow - light stroke in dark */
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%23ECE7D9' stroke-width='2'/%3E%3C/svg%3E");
}

/* poll hole-punch dot was pure white; use the raised surface in dark */
[data-theme="dark"] .poll-mark { background: var(--paper-raised); }

/* monochrome SVG art (orbital graph, viewport panel, corner watermark) is baked
   with dark ink; reverse it out in dark mode so the lines read on the dark surface */
[data-theme="dark"] img[src$="atlas-orbital-graph.svg"],
[data-theme="dark"] img[src$="atlas-viewport.svg"] { filter: invert(0.92); }

/* bright-fill chips/tabs that pin their text to --ink need dark text in dark */
[data-theme="dark"] .folder:nth-child(3n+1):hover .tab,
[data-theme="dark"] .tab--ochre,
[data-theme="dark"] .card .band--ochre .label,
[data-theme="dark"] .caution-tag { color: #1B1A17; }

/* ==========================================================================
   Header controls: the theme toggle + menu, grouped on the right.
   ========================================================================== */
.header-controls { display: inline-flex; align-items: center; gap: 10px; }

/* theme toggle - a readout chip echoing the menu chip and the logo pill */
.theme-toggle { display: inline-flex; align-items: stretch; padding: 0; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--paper-raised); cursor: pointer; font-family: var(--font-mono); min-height: 38px; }
.theme-toggle .tt-label { display: flex; align-items: center; padding: 0 12px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); transition: background-color 150ms var(--ease-mech), color 150ms var(--ease-mech); }
.theme-toggle .tt-ind { display: flex; align-items: center; justify-content: center; padding: 0 10px; border-left: 1.5px solid var(--ink); background: var(--putty); color: var(--ink); transition: background-color 150ms var(--ease-mech), color 150ms var(--ease-mech); }
.theme-toggle .tt-ind svg { width: 15px; height: 15px; }
.theme-toggle .tt-ico { display: none; }
[data-theme-pref="light"] .theme-toggle .tt-ico--light,
[data-theme-pref="dark"] .theme-toggle .tt-ico--dark,
[data-theme-pref="auto"] .theme-toggle .tt-ico--auto { display: block; }
.theme-toggle:hover .tt-label { background: var(--ink); color: var(--paper-raised); }
.theme-toggle:hover .tt-ind { background: var(--ochre); color: #1B1A17; }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header logo swap: standard lockup in light, light-letter lockup in dark */
.wordmark img.logo-dark { display: none; }
[data-theme="dark"] .wordmark img.logo-light { display: none; }
[data-theme="dark"] .wordmark img.logo-dark { display: block; }


/* --- mobile header: keep logo + controls on one row, compact the controls -----
   The switcher and menu collapse to icon-only chips so they don't wrap under
   the logo. Accessible names are preserved (theme toggle via JS aria-label;
   menu via a visually-hidden label). */
@media (max-width: 600px) {
  header.site .wrap { flex-wrap: nowrap; gap: 10px; }
  .wordmark img { height: 26px; }
  .header-controls { gap: 8px; flex: none; }

  /* theme switcher -> just the state glyph */
  .theme-toggle .tt-label { display: none; }
  .theme-toggle .tt-ind { border-left: none; padding: 0 11px; }

  /* menu -> just the squares; hide the word but keep it for screen readers */
  .menu-toggle .mt-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .menu-toggle .mt-bars { border-left: none; padding: 0 13px; }
}
