/* ==========================================================================
   Active Pockets — site styles
   Editorial, calm, warm-neutral. One accent, used sparingly.
   Layout lives here; copy lives in the HTML files. Edit words there.
   ========================================================================== */

:root {
  /* Palette — paper and ink, one clay accent */
  --paper: #f6f2ea;
  --paper-deep: #efe9dd;
  --ink: #1d1a16;
  --ink-soft: #5b544b;
  --line: #ddd5c7;
  --accent: #a84a26;

  /* Type — a confident serif for headlines, a clean workhorse for body,
     and a quiet monospace for the technical voice (nav, kickers, captions) */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 34rem;      /* comfortable reading width */
  --wide: 66rem;         /* page frame */
  --gutter: 1.25rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- type scale ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }

p { max-width: var(--measure); }
p + p { margin-top: 1em; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* ---- frame --------------------------------------------------------------- */

.frame {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: 4.5rem 0; }
@media (min-width: 48rem) {
  section { padding: 6.5rem 0; }
}

/* ---- the 97/3 rule — section divider motif ------------------------------- */
/* A thin line, 97 parts ink to 3 parts accent. The stance, drawn. */

.rule-973 {
  display: flex;
  gap: 6px;
  height: 2px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border: 0;
}
.rule-973::before {
  content: "";
  flex: 97;
  background: var(--line);
}
.rule-973::after {
  content: "";
  flex: 3;
  background: var(--accent);
}

/* The line draws itself as it enters view: the 97 draws slow,
   the 3 snaps in last. Static without JS, reduced motion, or print. */
@media (prefers-reduced-motion: no-preference) {
  .js .rule-973::before,
  .js .rule-973::after {
    transform: scaleX(0);
    transform-origin: left;
  }
  .js .rule-973::before { transition: transform 900ms cubic-bezier(0.4, 0, 0.2, 1); }
  .js .rule-973::after { transition: transform 180ms ease-out 950ms; }
  .js .rule-973.in::before,
  .js .rule-973.in::after { transform: scaleX(1); }
}

/* ---- the pen — a human hand on machine-set type ------------------------- */
/* One drawn mark per page, no more. Draws itself once after load. */

.mark-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mark-wrap > svg {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}
.pen path {
  stroke: var(--accent);
  fill: none;
  stroke-linecap: round;
}
.pen-circle {
  left: -0.35em; right: -0.3em; top: -0.18em; bottom: -0.14em;
  width: calc(100% + 0.65em); height: calc(100% + 0.32em);
}
.pen-circle path { stroke-width: 3.5; }
.pen-line {
  /* hugs the baseline: tight enough to clear the next line's ascenders
     when the marked phrase isn't on the headline's last line (mobile) */
  left: -0.05em; right: -0.05em; bottom: -0.18em;
  width: calc(100% + 0.1em); height: 0.3em;
}
.pen-line path { stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .js .pen path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js.drawn .pen path { stroke-dashoffset: 0; }
  .js.drawn .pen-circle path { transition: stroke-dashoffset 800ms ease-out 500ms; }
  .js.drawn .pen-line path { transition: stroke-dashoffset 420ms ease-out 1400ms; }
}

/* ---- nav ------------------------------------------------------------------ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mark-3 { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--ink); }

@media (max-width: 30rem) {
  .nav { flex-wrap: wrap; row-gap: 0.75rem; }
  .nav-right { gap: 1rem; }
  .nav .btn { font-size: 0.8125rem; padding: 0.55em 0.9em; }
  .nav-link { font-size: 0.875rem; }
}

/* ---- the one button ------------------------------------------------------- */

.btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8em 1.5em;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.btn:hover { background: var(--accent); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.nav .btn { padding: 0.6em 1.1em; font-size: 0.875rem; }

/* ---- hero ----------------------------------------------------------------- */

.hero { padding-top: 6rem; padding-bottom: 7rem; }
@media (min-width: 48rem) {
  .hero { padding-top: 9rem; padding-bottom: 10rem; }
}
.hero h1 { max-width: 26ch; font-size: clamp(2.25rem, 6vw, 3.4rem); }

/* Wide hero composition: the record sheet rides the right margin beside the
   headline, like a spec block in a print folio — same move as .margin-note.
   Below 64rem it stays stacked above the headline as before. The h1 cap
   (3.4rem) is sized so the hand-set two-line headline fits the left column. */
@media (min-width: 64rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 3rem; align-items: start; }
  .hero .record { grid-column: 2; grid-row: 1; margin-bottom: 0; margin-top: 0.9rem; }
  .hero .stamp-hide { grid-column: 1; grid-row: 1; }
  /* scale the headline with the narrower grid column so the two hand-set
     lines never re-wrap at the grid's lower widths */
  .hero h1 { font-size: clamp(2.6rem, 4vw, 3.4rem); }
}
.hero .subhead {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}
.hero .btn { margin-top: 2.5rem; }

/* ---- section furniture ----------------------------------------------------- */

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pull {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  max-width: 30ch;
}

/* ---- steps (how it works) --------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ---- two columns (for / not for) -------------------------------------------- */

.cols {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}
@media (min-width: 48rem) {
  .cols { grid-template-columns: 1fr 1fr; }
}
.cols ul { list-style: none; }
.cols li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  max-width: var(--measure);
}
.cols li:first-child { border-top: 1px solid var(--line); }

/* ---- faq ---------------------------------------------------------------------- */

.faq { max-width: var(--measure); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--serif);
  font-size: 1.125rem;
  padding: 1.125rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--sans);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-soft); }

/* ---- deep sections (tinted) --------------------------------------------------- */

.tinted { background: var(--paper-deep); }

/* ---- final cta ------------------------------------------------------------------ */

.cta-final { text-align: left; }
.cta-final .btn { margin-top: 2rem; }

/* ---- footer ----------------------------------------------------------------------- */

footer {
  padding: 3rem 0 4rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
footer p { max-width: none; }
footer .foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.75rem;
}

/* ---- look book plates -------------------------------------------------------------- */

.plates {
  display: grid;
  gap: 3.5rem;
  margin-top: 3rem;
}
@media (min-width: 48rem) {
  .plates { grid-template-columns: 1fr 1fr; gap: 4rem 3rem; }
}

.plate { max-width: none; }

/* The image slot: an art-directed placeholder, never fake gloss.
   The caption inside describes exactly what real photo goes here. */
.plate-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, var(--paper-deep) 0%, #e6ddcc 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.plate-img.tall { aspect-ratio: 3 / 4; }
.plate-img::before {
  /* the 3% — a small accent tick in the corner of every plate */
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.25rem;
  height: 2px;
  background: var(--accent);
}
.plate-img .todo {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
}
.plate-img .todo strong {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.625rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Artifact plates — designed typographic objects standing in for nothing:
   these ARE the content until (and alongside) real photography. */
.plate-img.artifact {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.filetree {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}
.filetree b { color: var(--ink); font-weight: 500; }

.mini-page {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 1.1rem 1rem;
  width: min(15rem, 90%);
}
.mini-page .mini-title {
  font-family: var(--serif);
  font-size: 0.9375rem;
  margin-bottom: 0.6rem;
}
.mini-page .mini-line {
  font-size: 0.625rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 0.4rem 0;
  max-width: none;
  margin: 0;
}
.mini-page .mini-line b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.mark-plate { flex-direction: column; gap: 1.25rem; }
.mark-plate .proportion {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1;
  margin: 0;
}
.mark-plate .p97 { font-size: 4.5rem; }
.mark-plate .psep { font-size: 2rem; color: var(--ink-soft); margin: 0 0.15em; }
.mark-plate .p3 { font-size: 1.75rem; color: var(--accent); }
.mark-plate .proportion-rule {
  display: flex;
  gap: 4px;
  height: 2px;
  width: 70%;
}
.mark-plate .proportion-rule i { flex: 97; background: var(--ink); }
.mark-plate .proportion-rule b { flex: 3; background: var(--accent); }

.mini-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 0.9rem 0.85rem;
  width: min(11rem, 92%);
}
.mini-card .card-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.mini-card .card-q {
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  margin: 0;
  max-width: none;
}

.plate figcaption { margin-top: 0.875rem; }
.plate .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}
.plate .cap {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.group-head { margin-top: 4.5rem; }
.group-head:first-of-type { margin-top: 0; }
.group-head p { color: var(--ink-soft); margin-top: 0.5rem; }

/* the sides — tighter closing strip */
.sides { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 48rem) {
  .sides { grid-template-columns: repeat(4, 1fr); }
}
.sides .plate-img { aspect-ratio: 1 / 1; padding: 0.75rem; }
.sides .plate-img .todo { font-size: 0.75rem; }

/* ---- booking page --------------------------------------------------------------------- */

.book-wrap {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}
@media (min-width: 48rem) {
  .book-wrap { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.scheduler-slot {
  border: 1px dashed var(--line);
  background: var(--paper-deep);
  padding: 2.5rem 1.5rem;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.book-form { display: grid; gap: 1.25rem; align-content: start; }
.book-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7em 0.85em;
}
.book-form input:focus-visible,
.book-form select:focus-visible,
.book-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.book-form textarea { resize: vertical; min-height: 5.5rem; }

/* ---- reveal (progressive enhancement; content visible without JS) ------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* Print: never let the reveal effect hide content on paper */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   The archive layer — chrome bar, record sheet, margin notes, ball canvas,
   grain. All of it decorates a page that works without it.
   ========================================================================== */

/* ---- chrome bar (replaces the nav) ---- */
.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 242, 234, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.chrome-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.chrome a { text-decoration: none; }
.chrome-mark { color: var(--ink); font-weight: 500; white-space: nowrap; }
.chrome-mark:hover { color: var(--accent); }
.chrome-clock { color: var(--ink-soft); white-space: nowrap; }
.chrome-clock span { color: var(--ink); }
.chrome-spacer { flex: 1; }
.chrome-link { color: var(--ink-soft); white-space: nowrap; }
.chrome-link:hover { color: var(--accent); }
.chrome-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.45em 0.85em;
  border-radius: 2px;
}
.chrome-cta:hover { background: var(--accent); }
body.has-chrome { padding-top: 2.4rem; }
@media (max-width: 46rem) {
  .chrome-inner { gap: 0.9rem; padding: 0.55rem 0.9rem; }
  .chrome-clock.chrome-date { display: none; }
  .chrome-link.chrome-look { display: none; }
}
@media (max-width: 30rem) {
  .chrome-clock { display: none; }
}

/* ---- record sheet (the stamped intro block) ---- */
.record {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  max-width: 26rem;
  margin-bottom: 3.5rem;
}
.rec-row {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}
.rec-row:first-child { border-top: 1px dashed var(--line); }
.rec-k { color: var(--accent); min-width: 5rem; }
.rec-v { color: var(--ink); text-transform: uppercase; }

/* wider variant for record sheets used mid-page (the "in build" bench) */
.record.record-wide { max-width: var(--measure); margin: 2rem 0 0; }

/* the run card on the booking page — a record sheet inside .scheduler-slot */
.record.record-run { max-width: none; margin: 0.75rem 0; }
.record.record-run .rec-k { min-width: 4.5rem; }

/* the Cal.com inline embed under the run card */
.cal-embed { margin-top: 2.5rem; min-height: 32rem; }

/* ---- boot: content below the record holds until the stamp lands ---- */
.fx-boot .stamp-hide { opacity: 0; transform: translateY(10px); }
.fx-done .stamp-hide {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease 120ms, transform 600ms ease 120ms;
}

/* ---- numbered margin notes ---- */
.note-ref {
  font-family: var(--mono);
  font-size: 0.55em;
  color: var(--accent);
  vertical-align: super;
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.noted { position: relative; }
.margin-note {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: var(--measure);
}
.margin-note b {
  color: var(--accent);
  font-weight: 500;
  margin-right: 0.5em;
}
@media (min-width: 64rem) {
  .margin-note {
    position: absolute;
    left: calc(var(--measure) + 4.5rem);
    top: 0.25em;
    width: 15rem;
    margin-top: 0;
  }
}

/* ---- the ball canvas: fixed, silent, above content, under the chrome ---- */
#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ---- the goal's reward: a pen circle drawn around the CTA ---- */
.js .pen-goal path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: none; }
.js.drawn .pen-goal path { stroke-dashoffset: 1; transition: none; }
.js.drawn .goal-scored .pen-goal path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms ease-out 150ms;
}

/* ---- the desktop: the OS at a glance ---------------------------------
   A small demo desktop with a Finder of plain files. Windows open,
   stack, drag, and close. On phones they stack in flow instead. */
.desktop {
  position: relative;
  min-height: 34rem;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(29, 26, 22, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--paper-deep);
  overflow: hidden;
}
.desktop-mini { min-height: 27rem; }

.mac-window {
  position: absolute;
  width: min(21rem, 88%);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(29, 26, 22, 0.13);
  overflow: hidden;
}
.mw-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.mw-bar:active { cursor: grabbing; }
.mw-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  flex-shrink: 0;
}
.mw-dot-close { background: #cf6a4f; cursor: pointer; }
.mw-dot-min { background: #d9b35e; }
.mw-dot-max { background: #89a97b; }
.mw-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding-right: 2rem; /* visually balance the dots */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mw-body { padding: 0.9rem 1rem; }

/* finder */
.finder-list { list-style: none; font-family: var(--mono); font-size: 0.75rem; margin: 0; }
.finder-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px dashed var(--line);
}
.finder-list li:last-child { border-bottom: 0; }
.finder-list .f-ico { width: 1rem; text-align: center; color: var(--accent); flex-shrink: 0; }
.finder-list .f-name { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-list .f-count {
  font-size: 0.625rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.05rem 0.5rem;
  color: var(--ink-soft);
}
.finder-list li.f-open { cursor: pointer; }
.finder-list li.f-open:hover .f-name,
.finder-list li.f-open:focus-visible .f-name { color: var(--accent); }

/* documents inside windows */
.doc { font-size: 0.78125rem; line-height: 1.6; }
.doc h4 { font-family: var(--serif); font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.doc p { max-width: none; }
.doc-line { border-top: 1px solid var(--line); padding: 0.45rem 0; }
.doc-line b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

/* redaction — client files stay client files */
.redact-row {
  height: 0.7rem;
  background: var(--ink-soft);
  opacity: 0.16;
  border-radius: 2px;
  margin: 0.55rem 0;
  filter: blur(2px);
}
.redact-row.short { width: 62%; }
.redact-stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.3rem 0.6rem;
  transform: rotate(-3deg);
  margin-top: 0.6rem;
}

/* phones: windows stack in flow, no dragging */
@media (max-width: 48rem) {
  .desktop, .desktop-mini { min-height: 0; padding: 1rem; overflow: visible; }
  .mac-window {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100%;
    margin-bottom: 1rem;
  }
  .mac-window:last-child { margin-bottom: 0; }
  .mw-bar { cursor: default; touch-action: auto; }
}

/* ---- film grain ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
@media print {
  body::after { display: none; }
  #fx-canvas { display: none; }
  .chrome { position: static; }
}

/* ---- accessibility ------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5em 1em;
}
.skip-link:focus { left: 0; z-index: 10; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
