/* anatoma.app — "blueprint" variant (site/blueprint/). A warm-dark drafting sheet: dashed construction arcs,
   registration targets, grainy isometric region tiles in the brand's wash families, mono annotations and outlined
   pills. Lime only where something is live. Built by Tools/build_site.py. One deliberate dark look. */
:root {
  color-scheme: dark;
  --bg: #1D1513;
  --white: #F3EFEC;
  --grey: #8F8682;
  --dim: #6E6561;
  --line: rgba(243, 239, 236, 0.3);
  --line-soft: rgba(243, 239, 236, 0.16);
  --lime: #D9F40F;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --frame: min(1180px, calc(100% - 48px));
  --film: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3.4' intercept='-1.45'/%3E%3CfeFuncG type='linear' slope='3.4' intercept='-1.45'/%3E%3CfeFuncB type='linear' slope='3.4' intercept='-1.45'/%3E%3CfeFuncA type='table' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--white); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Film grain: grey luminance noise over the whole sheet, nudged a few times a second like a projected print. */
body::after { content: ""; position: fixed; inset: -50%; z-index: 50; pointer-events: none; background: var(--film) 0 0 / 220px 220px; opacity: 0.09; }
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: film 0.9s steps(1) infinite; }
  @keyframes film { 0% { transform: translate(0, 0); } 12% { transform: translate(-6%, 4%); } 25% { transform: translate(5%, -7%); } 37% { transform: translate(-3%, 9%); }
    50% { transform: translate(8%, 2%); } 62% { transform: translate(-9%, -4%); } 75% { transform: translate(3%, 7%); } 87% { transform: translate(-5%, -8%); } }
}
h1, h2, h3, p, ol, ul, fieldset { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 span, h2 span { color: var(--grey); }
h2 { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.05; letter-spacing: -0.045em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 60; padding: 10px 16px; background: var(--white); color: var(--bg); border-radius: 999px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.mono { font: 400 12.5px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.dim { color: var(--dim); }
.tag { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font: 500 13.5px/1 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.tile { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: contrast(1.04) saturate(0.96); }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; font-weight: 500; background: var(--bg); }
.cta .apple { width: 18px; height: 18px; fill: currentColor; transform: translateY(-1px); }

/* Header */
.top { width: var(--frame); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.brand img { width: 136px; }
.top nav { display: flex; gap: 26px; }
.top nav a:hover { color: var(--white); }

/* The rails: two dashed verticals down the whole sheet. */
main { position: relative; width: var(--frame); margin: 0 auto; }
.rails { position: absolute; inset: 0 0 0 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--line) 0 14px, transparent 14px 26px) 4% 0 / 1px 100% no-repeat,
              repeating-linear-gradient(to bottom, var(--line) 0 14px, transparent 14px 26px) 96% 0 / 1px 100% no-repeat; }

/* 1. The sheet: construction arcs, five region tiles, the promise in a pill between two targets. */
.diagram { position: relative; width: 100%; aspect-ratio: 1000 / 1300; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines path, .lines circle, .lines rect { fill: none; stroke: var(--line); stroke-width: 1.2; }
.lines .dash { stroke-dasharray: 9 9; }
.lines .solid { stroke: var(--line-soft); }
.lines .pip { fill: #CFC8C4; stroke: none; }
.lines .target circle { stroke: var(--line); }
.lines .target rect.dash { stroke: var(--line-soft); stroke-dasharray: 3 4; }
.diagram h1 { position: absolute; left: 8%; top: 1.5%; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -0.05em; }
.note { position: absolute; max-width: 40ch; }
.n1 { left: 57%; top: 1.6%; }
.n2 { left: 55%; top: 90%; }
.sheet { padding-bottom: 90px; }
.node { position: absolute; width: 22%; }
.node .code { position: absolute; font: 400 9.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.node .tag { position: absolute; }
.node .tag.br { right: -36%; bottom: -14%; }
.node .tag.tr { right: -10%; top: -20%; }
.node .tag.tl { left: -6%; top: -20%; }
.a { left: 29.5%; top: 25%; } .a .code { right: 6%; top: -18px; }
.b { left: 66%; top: 31%; } .b .code { left: 30%; top: -18px; }
.c { left: 2.5%; top: 40%; } .c .code { right: 2%; bottom: -20px; }
.d { left: 20.5%; top: 75.5%; } .d .code { right: 4%; bottom: -20px; }
.e { left: 59.5%; top: 73.5%; } .e .code { right: 2%; bottom: -20px; }
.lone { position: absolute; left: 50%; top: 84%; transform: translateX(-50%); }
.pill { position: absolute; left: 50%; top: 55.4%; transform: translate(-50%, -50%); width: 29%; padding: 14px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  text-align: center; font-size: clamp(18px, 2vw, 30px); letter-spacing: -0.035em; white-space: nowrap; }
.cta-wrap { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); }
.tile, .tap img { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }

/* Sections below the sheet */
.sec { padding: 140px 8% 0; display: grid; gap: 56px; }
.sec-head { display: grid; gap: 18px; }
.sec-head .note { position: static; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { display: grid; gap: 18px; align-content: start; justify-items: start; padding: 0 28px; }
.col + .col, .test + .test { border-left: 1px dashed var(--line); }
.col:first-child, .test:first-child { padding-left: 0; }
.col p { font-size: 16px; color: var(--grey); line-height: 1.55; }

/* Live: a tile to tap or hold, the reading in large type. */
.test { display: grid; gap: 14px; align-content: start; justify-items: start; padding: 0 28px; }
.tap { position: relative; width: 100%; padding: 0; border: 0; border-radius: 22px; background: none; cursor: pointer; color: var(--white); font: inherit;
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  transition: transform 0.18s cubic-bezier(.34, 1.4, .5, 1); }
.tap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.tap-label { position: absolute; left: 14px; bottom: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(29, 21, 19, 0.75); border: 1px solid var(--line);
  font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.tap:active { transform: scale(0.97); }
.tap::after { content: ""; position: absolute; inset: -5px; border-radius: 26px; border: 2px solid var(--lime); opacity: 0; pointer-events: none; box-shadow: 0 0 30px rgba(217, 244, 15, 0.6); }
.reading { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.val { font: 500 64px/1 var(--sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.reading span { font: 400 12.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.test h3 { font-size: 26px; letter-spacing: -0.035em; }
.say { color: var(--grey); font-size: 15.5px; line-height: 1.55; min-height: 4.6em; }
#t-reflex[data-state="wait"] .tap img { filter: grayscale(1) brightness(0.45); }
#t-reflex[data-state="go"] .tap img { filter: grayscale(1) brightness(0.3); }
#t-reflex[data-state="go"] .tap::before { content: ""; position: absolute; inset: 0; border-radius: 22px; background: var(--lime); mix-blend-mode: normal; opacity: 0.92; }
#t-reflex[data-state="go"] .tap-label { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); background: none; border: 0; color: #1D1513; font: 600 40px/1 var(--sans); letter-spacing: -0.04em; text-transform: none; }
#t-breath[data-state="holding"] .tap { transform: scale(1.03); }
#t-breath[data-state="holding"] .tap::after { opacity: 1; }

/* Organs: a mono index of the 28 studios */
.index { list-style: none; padding: 0; columns: 4; column-gap: 28px; }
.index li { display: flex; gap: 14px; padding: 9px 0; break-inside: avoid; border-bottom: 1px dashed var(--line-soft); color: var(--white); font-size: 12.5px; }
.index span { color: var(--dim); }

/* Review */
.quiz { display: grid; gap: 20px; max-width: 720px; padding: 34px; border: 1px dashed var(--line); border-radius: 28px; }
.quiz fieldset { border: 0; padding: 0; display: grid; gap: 10px; }
.quiz legend { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.035em; margin-bottom: 16px; padding: 0; }
.quiz label { position: relative; display: flex; align-items: center; gap: 16px; padding: 13px 18px 13px 13px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 17px; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.quiz label:hover { border-color: rgba(243, 239, 236, 0.6); }
.k { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--grey); }
.quiz input { position: absolute; opacity: 0; pointer-events: none; }
.quiz label:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.quiz label:has(input:checked) .k { background: var(--white); color: var(--bg); border-color: var(--white); }
.quiz:has(input:checked) label:not(.right):has(input:checked) { color: var(--dim); text-decoration: line-through; }
.quiz:has(input:checked) label.right { background: var(--lime); border-color: var(--lime); color: #1D1513; box-shadow: 0 0 40px rgba(217, 244, 15, 0.35); }
.quiz:has(input:checked) label.right .k { border-color: #1D1513; color: #1D1513; background: transparent; }
.verdict { opacity: 0; transition: opacity 0.3s ease; color: var(--white); }
.quiz:has(input:checked) .verdict { opacity: 1; }

/* Price */
.price { justify-items: center; text-align: center; gap: 22px; }
.amount { font: 500 clamp(96px, 13vw, 200px)/0.9 var(--sans); letter-spacing: -0.06em; }
.price .mono { max-width: 60ch; }

.facts .col p { margin-top: 2px; }

.foot { width: var(--frame); margin: 140px auto 0; padding: 30px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px dashed var(--line); }
.foot-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--white); }
.foot .mono.dim { font-size: 11px; text-transform: none; letter-spacing: 0.02em; }

@media (prefers-reduced-motion: no-preference) {
  .lines .dash { animation: march 30s linear infinite; }
  .node .tile { animation: bob 8s ease-in-out infinite; }
  .b .tile { animation-delay: -2s; } .c .tile { animation-delay: -4s; } .d .tile { animation-delay: -6s; } .e .tile { animation-delay: -3s; }
  .tap.hit::after { animation: ripple 0.7s ease-out; }
  #t-pulse:not([data-state="beating"]) .tap.hit img { animation: thump 0.3s ease-out; }
  #t-pulse[data-state="beating"] .tap img { animation: heartbeat var(--beat, 0.83s) ease-out infinite; }
  #t-pulse[data-state="beating"] .tap::after { animation: ripple var(--beat, 0.83s) ease-out infinite; }
  #t-breath:not([data-state="holding"]) .tap img { animation: breathe 4.3s ease-in-out infinite; }
  #t-reflex[data-state="wait"] .tap-label { animation: hush 1.1s ease-in-out infinite alternate; }
  @keyframes march { to { stroke-dashoffset: -180; } }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
  @keyframes thump { 0% { transform: scale(1); } 35% { transform: scale(1.03); } 100% { transform: scale(1); } }
  @keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.035); } 24% { transform: scale(0.99); } 36% { transform: scale(1.02); } 50% { transform: scale(1); } }
  @keyframes breathe { 0%, 100% { transform: scale(0.985); } 45% { transform: scale(1.02); } }
  @keyframes hush { from { opacity: 1; } to { opacity: 0.45; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tablet and phone: the sheet unfolds into a column; the centre line stays. */
@media (max-width: 900px) {
  .rails { background: repeating-linear-gradient(to bottom, var(--line) 0 14px, transparent 14px 26px) 50% 0 / 1px 100% no-repeat; opacity: 0.6; }
  .diagram { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px 20px; padding: 30px 0 0; }
  .lines { display: none; }
  .diagram h1, .note, .node, .pill, .lone, .cta-wrap { position: static; transform: none; }
  .diagram h1, .note, .pill, .lone, .cta-wrap { grid-column: 1 / -1; }
  .diagram h1 { font-size: clamp(48px, 13vw, 72px); }
  .n1 { order: 1; } .a { order: 2; } .b { order: 3; } .c { order: 4; } .d { order: 5; } .e { order: 6; } .lone { order: 7; justify-self: center; }
  .pill { order: 8; width: auto; justify-self: center; font-size: 22px; padding: 14px 24px; white-space: normal; }
  .cta-wrap { order: 9; justify-self: center; } .n2 { order: 10; }
  .node { width: auto; position: relative; left: auto !important; top: auto !important; }
  .node .tag.br, .node .tag.tr, .node .tag.tl { left: 10px; right: auto; top: auto; bottom: -16px; }
  .node .code { top: -16px !important; bottom: auto !important; left: 2px !important; right: auto !important; }
  .sheet { padding-bottom: 0; }
  .sec { padding: 110px 0 0; }
  .cols { grid-template-columns: 1fr; gap: 48px; }
  .col, .test, .col:first-child, .test:first-child { padding: 0; border-left: 0 !important; }
  .test { max-width: 520px; }
  .index { columns: 2; }
}
@media (max-width: 600px) {
  :root { --frame: calc(100% - 32px); }
  .rails { display: none; }
  .top nav { display: none; }
  .diagram { gap: 52px 12px; }
  .tag { font-size: 11px; padding: 7px 11px; }
  .tile { border-radius: 16px; }
  .quiz { padding: 22px 16px; }
  .quiz label { font-size: 15.5px; }
  .index { columns: 1; }
  .val { font-size: 56px; }
}
