/* © Pautinka 2026. All rights reserved. */
:root {
  color-scheme: dark;
  --ink: #05080d;
  --panel: #0a101a;
  --panel-raised: #101927;
  --white: #f6f8ff;
  --muted: #a8b4c8;
  --soft: #73839c;
  --cyan: #67ceff;
  --violet: #ad8aff;
  --line: rgba(162, 193, 229, .16);
  --line-bright: rgba(103, 206, 255, .36);
  --header-height: 84px;
  --page-gutter: clamp(20px, 4vw, 68px);
  --ease: cubic-bezier(.2, .75, .25, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 0; color: var(--white); background: var(--ink); line-height: 1.65; }
body, button, input, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a, summary, input { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .45; }
a { color: var(--cyan); text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { color: #b8e8ff; }
button, a, summary { transition: color .2s, background .2s, border-color .2s, box-shadow .2s; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
img, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
figure, p, ol, ul { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
h1, h2, h3, p, li, a, button, summary, figcaption { overflow-wrap: anywhere; }
p, li { hyphens: auto; }
small { font-size: .78rem; }
code { padding: .12em .34em; border: 1px solid rgba(103, 206, 255, .14); border-radius: 4px; background: rgba(103, 206, 255, .065); color: #bceaff; font: .88em/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[hidden] { display: none !important; }
::selection { background: rgba(103, 206, 255, .3); color: white; }
.wide { width: calc(100% - var(--page-gutter) * 2); max-width: 1424px; margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 16px; padding: 12px 20px; background: var(--cyan); color: var(--ink); border-radius: 4px; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* The header stays quiet while the artwork and chapters carry the page. */
.site-header { position: sticky; z-index: 70; top: 0; display: flex; align-items: center; gap: 28px; min-height: var(--header-height); padding: 10px var(--page-gutter); border-bottom: 1px solid var(--line); background: rgba(5, 8, 13, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.studio-brand { display: block; flex: 0 0 130px; width: 130px; text-decoration: none; }
.studio-brand img { width: 130px; aspect-ratio: 2 / 1; object-fit: contain; }
.header-title { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 3px; padding-left: 26px; border-left: 1px solid var(--line); line-height: 1.4; }
.header-title { color: var(--white); text-decoration: none; }
.header-title strong { font-size: .8rem; font-weight: 600; }
.header-title small { color: var(--soft); font-size: .68rem; letter-spacing: .08em; }
.header-actions { display: flex; flex: 0 1 auto; align-items: center; gap: 9px; min-width: 0; margin-left: auto; }
.header-actions button, .language-menu summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: #ced8e6; font-size: .74rem; line-height: 1.35; }
.header-actions button:hover, .language-menu summary:hover { border-color: var(--line-bright); background: rgba(103, 206, 255, .055); color: white; }
.header-actions .menu-toggle { display: none; }
.motion-toggle[aria-pressed="false"] { color: var(--soft); }
.language-menu { position: relative; min-width: 0; }
.language-menu summary { list-style: none; max-width: 190px; text-align: center; }
.language-menu summary > span[aria-hidden] { display: none; }
.language-menu nav a > span { float: right; color: var(--cyan); }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: ''; width: 6px; height: 6px; flex: 0 0 6px; margin: -3px 1px 0 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); transition: transform .2s; }
.language-menu[open] summary { border-color: var(--line-bright); color: var(--cyan); background: #101a28; }
.language-menu[open] summary::after { transform: translateY(3px) rotate(225deg); }
.language-menu nav { position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; width: 216px; max-width: calc(100vw - 32px); max-height: 68vh; max-height: 68dvh; overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--line-bright); border-radius: 7px; background: #0b121e; box-shadow: 0 18px 70px #0009; }
.language-menu nav a { display: block; padding: 9px 12px; border-radius: 3px; text-decoration: none; color: var(--muted); font-size: .82rem; }
.language-menu nav a:hover, .language-menu nav a[aria-current], .language-menu nav a.active { background: rgba(103, 206, 255, .09); color: var(--cyan); }
.reading-progress { position: absolute; inset: auto 0 -1px; height: 2px; overflow: hidden; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px #67ceff80; transform: scaleX(0); transform-origin: left; transition: transform .15s linear; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 760px; min-height: min(940px, calc(100svh + 80px)); border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; z-index: -3; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #05080df5 0%, #05080de8 23%, #05080db0 48%, #05080d1a 78%), linear-gradient(0deg, #05080d 0%, #05080d00 32%, #05080d22 75%, #05080d80 100%); }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 28% 40%, rgba(31, 123, 179, .08), transparent 57%); pointer-events: none; }
.hero-grid { position: absolute; z-index: -2; inset: 0; opacity: .13; background-image: linear-gradient(rgba(103, 206, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 206, 255, .18) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(90deg, #0008, #0000 80%); -webkit-mask-image: linear-gradient(90deg, #0008, #0000 80%); animation: grid-drift 36s linear infinite; pointer-events: none; }
@keyframes grid-drift { to { background-position: 88px 88px; } }
.hero-inner { width: 100%; max-width: 1560px; margin: 0 auto; padding: clamp(56px, 7vw, 110px) var(--page-gutter) 128px; }
.hero-copy { max-width: 720px; }
.hero-identity { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.hero-identity img { flex: 0 0 90px; width: 90px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 22px #67ceff22); }
.eyebrow, .section-label { color: var(--cyan); font-size: .71rem; font-weight: 600; line-height: 1.7; letter-spacing: .13em; text-transform: uppercase; }
.hero-identity .eyebrow { max-width: 270px; }
.hero h1 { max-width: 740px; font-size: clamp(3.4rem, 6.6vw, 6.6rem); font-weight: 650; line-height: .99; letter-spacing: -.055em; text-wrap: balance; }
.hero h1 span { color: var(--cyan); }
.hero-tagline { max-width: 590px; margin-top: 26px; color: #e8e7fb; font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.38; letter-spacing: -.025em; text-wrap: balance; white-space: pre-line; }
.hero-intro { max-width: 560px; margin-top: 21px; color: #b4c1d5; font-size: 1rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 33px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 13px 21px; border: 1px solid var(--line-bright); border-radius: 5px; color: var(--white); font-size: .84rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; }
.button-primary { border-color: var(--cyan); background: var(--cyan); color: #06101a; box-shadow: 0 0 32px #67ceff15; }
.button-primary:hover { background: #a6e3ff; border-color: #a6e3ff; color: #06101a; box-shadow: 0 0 34px #67ceff33; }
.button-secondary { background: rgba(8, 14, 23, .65); border-color: rgba(190, 214, 240, .3); }
.button-secondary:hover { border-color: var(--cyan); background: rgba(103, 206, 255, .09); color: var(--cyan); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 30px; max-width: 620px; }
.hero-facts span { position: relative; color: var(--muted); font-size: .69rem; line-height: 1.6; }
.hero-facts span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px 0; background: var(--cyan); border-radius: 50%; }
.hero-caption { position: absolute; right: var(--page-gutter); bottom: 25px; max-width: min(360px, 55%); padding-left: 13px; border-left: 1px solid var(--line-bright); color: #8b9cb4; font-size: .65rem; line-height: 1.65; }

.overview { padding-block: 76px 58px; }
.overview-title { max-width: 940px; margin: 13px 0 35px; font-size: clamp(1.8rem, 3.1vw, 2.8rem); line-height: 1.2; }
.tool-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.tool-link { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 21px 18px 24px; background: #0a1019; text-decoration: none; color: var(--white); }
.tool-link::after { content: '↗'; position: absolute; top: 18px; right: 16px; color: var(--soft); font-size: .8rem; transition: color .2s, transform .2s; }
.tool-link:hover { z-index: 1; background: #101e2b; color: white; box-shadow: inset 0 -2px 0 var(--cyan); }
.tool-link:hover::after { color: var(--cyan); transform: translate(2px, -2px); }
.tool-number { color: var(--soft); font: .64rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-icon { display: flex; align-items: center; width: 42px; height: 48px; margin: 20px 0 12px; color: var(--cyan); font-size: 1.65rem; line-height: 1; }
.tool-icon svg { max-width: 32px; max-height: 32px; }
.tool-name { font-size: .88rem; font-weight: 600; line-height: 1.45; }
.tool-link small { display: block; margin-top: 8px; color: var(--muted); font-size: .69rem; line-height: 1.65; }
.routine { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(0, 1.8fr); gap: 20px 60px; align-items: center; padding: 0 0 66px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.routine .section-label { margin-bottom: 12px; color: var(--cyan); font-size: .65rem; }
.routine h2 { margin-bottom: 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.routine p { max-width: 430px; color: var(--muted); font-size: .87rem; line-height: 1.8; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 16px; list-style: none; padding: 0; counter-reset: flow; }
.flow li { position: relative; min-width: 0; padding-top: 4px; }
.flow li:not(:last-child)::after { content: ''; position: absolute; top: 23px; left: 49px; right: 0; height: 1px; background: linear-gradient(90deg, var(--line-bright), var(--line)); }
.flow li span { position: relative; z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; background: var(--ink); color: var(--cyan); font: .7rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.flow li:last-child span { color: var(--violet); border-color: rgba(173, 138, 255, .45); }
.flow strong { display: block; margin-top: 13px; font-size: .81rem; line-height: 1.55; font-weight: 500; }

/* The reading column has generous line spacing, with a separate place for caveats. */
.layout { display: flex; align-items: flex-start; gap: clamp(34px, 4.5vw, 74px); width: 100%; max-width: 1560px; margin: 0 auto; padding: 44px var(--page-gutter) 90px; }
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); flex: 0 0 250px; width: 250px; max-height: calc(100vh - var(--header-height) - 44px); max-height: calc(100dvh - var(--header-height) - 44px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #21364b transparent; padding: 0 18px 16px 0; }
.sidebar > .eyebrow { margin-bottom: 21px; font-size: .63rem; }
.search { margin-bottom: 24px; }
.search label { display: block; margin-bottom: 10px; color: var(--soft); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.search-field { display: flex; align-items: center; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: #0b111b; transition: border-color .2s; }
.search-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(103, 206, 255, .09); }
.search-field input { width: 100%; min-width: 0; padding: 11px 10px 11px 12px; border: 0; outline: 0; background: transparent; color: var(--white); font-size: .75rem; line-height: 1.5; }
.search-field input::placeholder { color: #7f91aa; opacity: 1; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button { flex: 0 0 30px; width: 30px; min-height: 35px; padding: 4px; border: 0; background: transparent; color: var(--soft); font-size: 1.1rem; }
.search-field button:hover { color: var(--cyan); }
.search > p, .search small { display: block; margin-top: 9px; color: var(--soft); font-size: .65rem; line-height: 1.7; }
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; align-items: baseline; gap: 11px; min-width: 0; padding: 8px 8px 8px 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: .74rem; line-height: 1.65; text-decoration: none; }
.toc a span { flex: 0 0 20px; color: var(--soft); font: .59rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.toc a b { min-width: 0; font-weight: 450; }
.toc a:hover { border-left-color: var(--cyan); background: rgba(103, 206, 255, .04); color: white; }
.toc a.active, .toc a[aria-current="true"], .toc a[aria-current="location"] { border-left-color: var(--cyan); background: linear-gradient(90deg, rgba(103, 206, 255, .09), transparent); color: var(--cyan); }
.toc a.active span, .toc a[aria-current="true"] span { color: var(--cyan); }
.sidebar-foot { margin-top: 27px; padding: 18px 10px 0; border-top: 1px solid var(--line); color: var(--soft); font-size: .66rem; line-height: 1.8; }
.sidebar-foot > * { display: block; margin-bottom: 9px; }
.sidebar-foot button { max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: inherit; line-height: inherit; text-align: left; }
.sidebar-foot button:hover { color: var(--cyan); }
.sidebar-foot a { color: var(--muted); text-decoration: none; }
.sidebar-foot a:hover { color: var(--cyan); }
#guide { flex: 1 1 0; min-width: 0; max-width: 1100px; }
.search-status { margin-bottom: 35px; padding: 18px 22px; border-left: 2px solid var(--cyan); background: #0c1722; color: #c0d9e8; font-size: .9rem; }
.guide-section + .guide-section { padding-top: 46px; border-top: 1px solid var(--line); }
.guide-section { position: relative; scroll-margin-top: calc(var(--header-height) + 28px); padding-bottom: 62px; }
.chapter-head { margin-bottom: 30px; }
.chapter-head .eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: .65rem; }
.chapter-number { color: var(--soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 400; }
.chapter-head h2 { max-width: 880px; font-size: clamp(1.9rem, 3.3vw, 3.2rem); line-height: 1.16; text-wrap: balance; }
.lead { max-width: 810px; margin-top: 19px; color: #b3bfd1; font-size: 1.03rem; line-height: 1.85; }
.illustration { margin-block: 0 34px; }
.media-trigger { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; border: 1px solid #203044; border-radius: 7px; background: #080e17; text-align: left; cursor: zoom-in; }
.media-trigger picture { width: 100%; }
.media-trigger img { width: 100%; max-height: 680px; object-fit: cover; transition: transform .7s var(--ease), filter .7s; }
.media-trigger:hover { border-color: var(--cyan); box-shadow: 0 0 32px #67ceff0c; }
.media-trigger:hover img { transform: scale(1.018); filter: brightness(1.045); }
.zoom-hint { position: absolute; right: 13px; bottom: 13px; max-width: calc(100% - 26px); padding: 5px 10px; border: 1px solid #ffffff26; border-radius: 4px; background: rgba(5, 8, 13, .85); backdrop-filter: blur(8px); color: #d6eafa; font-size: .62rem; line-height: 1.5; }
.illustration figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding: 11px 2px 0; color: var(--soft); font-size: .65rem; line-height: 1.75; }
.illustration figcaption strong, .illustration figcaption span:first-child { color: #a6b6cc; font-weight: 500; }
.chapter-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
.steps, .notes { min-width: 0; }
ol.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps h3, .notes h3 { margin-bottom: 18px; color: var(--soft); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.steps ol { list-style: none; padding: 0; counter-reset: steps; }
.steps li { position: relative; min-height: 30px; margin-bottom: 20px; padding-left: 38px; color: #d1d9e5; font-size: 1rem; line-height: 1.85; counter-increment: steps; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before { content: counter(steps, decimal-leading-zero); position: absolute; top: 2px; left: 0; display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid rgba(103, 206, 255, .23); border-radius: 50%; color: var(--cyan); font: .56rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.notes { padding-left: 24px; border-left: 1px solid var(--line); }
.notes p { margin-bottom: 17px; color: var(--muted); font-size: .94rem; line-height: 1.85; }
.notes p:last-child { margin-bottom: 0; }
.tip { display: flex; align-items: flex-start; gap: 14px; margin-top: 29px; padding: 18px 22px; border: 1px solid rgba(173, 138, 255, .16); border-left: 2px solid var(--violet); border-radius: 0 5px 5px 0; background: linear-gradient(90deg, rgba(173, 138, 255, .065), rgba(173, 138, 255, .018)); }
.tip > span { flex: 0 0 auto; color: var(--violet); font-size: 1rem; line-height: 1.8; }
.tip p { color: #c4badf; font-size: .94rem; line-height: 1.85; }
.chapter-divider { height: 1px; margin-top: 62px; background: linear-gradient(90deg, var(--line-bright), var(--line) 32%, transparent); }
.density-demo { margin-block: 28px 34px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(135deg, #0d1521, #080d15); }
.demo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 25px; margin-bottom: 18px; }
.demo-head > strong { flex: 1 1 100%; font-size: 1rem; font-weight: 550; line-height: 1.5; }
.demo-head > span { color: var(--cyan); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.demo-head h3 { font-size: 1rem; }
.demo-head p, .demo-head span { max-width: 560px; color: var(--muted); font-size: .76rem; }
.density-canvas { position: relative; min-width: 0; overflow: hidden; border-radius: 3px; background: #060b12; }
.density-canvas canvas { width: 100%; height: auto; min-height: 180px; }
.range-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; margin-top: 20px; }
.range-row label, .range-row span, .range-row output { color: var(--muted); font-size: .73rem; }
.range-row input[type="range"] { flex: 1 1 180px; width: 100%; min-width: 0; max-width: 100%; height: 5px; accent-color: var(--cyan); cursor: pointer; }
.faq-section { padding-top: 9px; margin-bottom: 62px; scroll-margin-top: calc(var(--header-height) + 28px); }
.faq-section > h2 { margin: 13px 0 30px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; padding: 20px 40px 20px 0; color: #e2e7f0; font-size: .9rem; font-weight: 500; line-height: 1.7; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; top: 19px; right: 7px; color: var(--cyan); font-size: 1.25rem; line-height: 1.4; font-weight: 300; }
.faq-list details[open] summary { color: var(--cyan); }
.faq-list details[open] summary::after { content: '−'; color: var(--violet); }
.faq-list summary:hover { color: var(--cyan); }
.faq-list details p { max-width: 790px; padding: 0 35px 23px 0; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.support-panel { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 23px 35px; padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(103, 206, 255, .23); border-radius: 6px; background: radial-gradient(ellipse at 100% 100%, #1d244c66, transparent 65%), #0b1420; }
.support-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px 35px; }
.support-panel > .eyebrow { grid-column: 1 / -1; color: var(--cyan); font-size: .65rem; }
.support-panel > p:not(.eyebrow) { grid-column: 1; }
.support-panel > .button { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.support-panel h2 { margin-bottom: 13px; font-size: 1.7rem; }
.support-panel p { max-width: 620px; color: var(--muted); font-size: .86rem; line-height: 1.85; }
.support-panel .button { max-width: 100%; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 30px var(--page-gutter) 34px; border-top: 1px solid var(--line); color: var(--soft); font-size: .68rem; line-height: 1.8; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer img { width: 100px; height: auto; }
.site-footer p { max-width: 600px; }
.back-top { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: grid; place-items: center; max-width: 160px; min-width: 42px; min-height: 42px; padding: 10px 13px; border: 1px solid var(--line-bright); border-radius: 5px; background: rgba(10, 18, 29, .92); backdrop-filter: blur(14px); color: var(--cyan); font-size: .7rem; line-height: 1.4; text-decoration: none; box-shadow: 0 5px 25px #0005; }
.back-top { opacity: 0; visibility: hidden; pointer-events: none; }
.back-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.back-top:hover { border-color: var(--cyan); background: #112333; color: white; }
body.media-open { overflow: hidden; }
#lightbox { width: min(1500px, calc(100vw - 48px)); max-width: 100%; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #2c4660; border-radius: 8px; background: #080e17; color: var(--white); box-shadow: 0 25px 100px #000c; }
#lightbox::backdrop { background: rgba(0, 3, 8, .91); backdrop-filter: blur(12px); }
.lightbox-inner { display: flex; min-width: 0; flex-direction: column; max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px); }
.lightbox-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.lightbox-toolbar > span { color: var(--soft); font: .7rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.lightbox-toolbar button { min-width: 38px; min-height: 36px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: #101b29; color: #cedaeb; font-size: .74rem; line-height: 1.4; }
.lightbox-toolbar button:hover { border-color: var(--cyan); color: var(--cyan); }
.lightbox-inner figure { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.lightbox-inner figure img { width: 100%; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); object-fit: contain; }
.lightbox-inner figcaption { padding: 14px 20px 17px; color: var(--muted); font-size: .72rem; line-height: 1.75; }
html[data-enhanced="true"] .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html[data-enhanced="true"] .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 1600px) {
  .hero-copy { max-width: 750px; }
  .hero-inner { padding-top: 110px; }
}
@media (max-width: 1200px) {
  .header-title { padding-left: 18px; }
  .site-header { gap: 20px; }
  .hero h1 { font-size: clamp(3.4rem, 7.2vw, 5.8rem); }
  .hero-copy { max-width: 650px; }
  .tool-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-link { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 16px; padding: 21px 21px 23px; }
  .tool-number { grid-column: 1 / -1; }
  .tool-icon { grid-row: 2 / 4; width: 38px; height: 38px; margin: 15px 0 0; }
  .tool-name { margin-top: 14px; }
  .tool-link small { grid-column: 2; margin-top: 5px; }
  .sidebar { flex-basis: 220px; width: 220px; }
  .chapter-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .notes { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .notes p { font-size: .94rem; }
}
@media (max-width: 960px) {
  .header-title { display: none; }
  .hero { min-height: 740px; }
  .hero-inner { padding-top: 65px; padding-bottom: 100px; }
  .hero-copy { max-width: 600px; }
  .hero-art img { object-position: 64% center; }
  .hero-art::after { background: linear-gradient(90deg, #05080df5, #05080dce 50%, #05080d4d), linear-gradient(0deg, #05080d, transparent 50%); }
  .routine { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .routine p { max-width: 680px; }
  .flow { max-width: 680px; }
  .layout { gap: 30px; }
  .sidebar { flex-basis: 190px; width: 190px; padding-right: 9px; }
  .toc a { font-size: .7rem; gap: 7px; }
  .toc a span { flex-basis: 17px; }
  .chapter-head h2 { font-size: 2.2rem; }
  .lead { font-size: .95rem; }
  .hero-caption { max-width: 300px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 24px; }
  .header-actions .menu-toggle { display: flex; }
  .site-header { gap: 12px; padding-block: 10px; }
  .studio-brand { flex-basis: 115px; width: 115px; }
  .studio-brand img { width: 115px; }
  .header-actions { gap: 7px; }
  .header-actions button, .language-menu summary { padding: 8px 10px; font-size: .68rem; }
  .language-menu summary { max-width: 145px; }
  .hero h1 { font-size: clamp(3.35rem, 9.3vw, 4.7rem); }
  .hero-intro { max-width: 520px; font-size: .95rem; }
  .hero-tagline { max-width: 490px; font-size: 1.4rem; }
  .hero-art img { object-position: 61% center; }
  .hero-art::after { background: linear-gradient(90deg, #05080df0, #05080dcb 58%, #05080d77), linear-gradient(0deg, #05080d, transparent 60%); }
  .hero-identity { gap: 17px; margin-bottom: 24px; }
  .hero-identity img { flex-basis: 72px; width: 72px; }
  .overview { padding-block: 52px 42px; }
  .overview-title { margin-bottom: 25px; }
  .tool-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routine { padding-bottom: 45px; margin-bottom: 0; }
  .layout { display: block; padding-top: 39px; padding-bottom: 65px; }
  .sidebar { position: fixed; z-index: 65; top: var(--header-height); bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; padding: 25px 24px 40px; border-right: 1px solid var(--line-bright); background: #080e17; box-shadow: 24px 0 70px #000a; transform: translateX(-110%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s; }
  body.menu-open { overflow: hidden; }
  body.menu-open .sidebar { transform: translateX(0); visibility: visible; }
  body.menu-open::after { content: ''; position: fixed; z-index: 60; inset: var(--header-height) 0 0; background: #0008; backdrop-filter: blur(3px); }
  body.menu-open .menu-toggle { border-color: var(--cyan); color: var(--cyan); background: #102337; }
  .toc a { padding-block: 10px; font-size: .8rem; }
  .toc a span { flex-basis: 22px; }
  .chapter-head h2 { font-size: clamp(1.9rem, 5.3vw, 2.65rem); }
  .chapter-body { gap: 26px; }
  .guide-section { padding-bottom: 45px; }
  .chapter-divider { margin-top: 45px; }
  .faq-section { margin-bottom: 42px; }
  .steps li { font-size: 1rem; }
  .notes p { font-size: .94rem; }
  .media-trigger { border-radius: 5px; }
  .tip { padding: 16px 17px; gap: 12px; }
  .site-footer { padding-right: 75px; }
}
@media (max-width: 480px) {
  :root { --page-gutter: 20px; }
  .site-header { gap: 7px; padding-inline: 14px; }
  .studio-brand { flex-basis: 90px; width: 90px; }
  .studio-brand img { width: 90px; }
  .header-actions { gap: 5px; }
  .header-actions button, .language-menu summary { min-height: 37px; padding: 7px 8px; font-size: .61rem; }
  .motion-toggle { max-width: 67px; }
  .language-menu summary { max-width: 105px; gap: 3px; }
  .language-menu summary::after { margin-left: 3px; }
  .hero { min-height: 770px; }
  .hero-inner { padding-top: 44px; padding-bottom: 105px; }
  .hero h1 { font-size: clamp(2.9rem, 12.5vw, 3.7rem); }
  .hero-identity img { width: 65px; flex-basis: 65px; }
  .hero-identity .eyebrow { font-size: .6rem; letter-spacing: .1em; }
  .hero-tagline { margin-top: 24px; font-size: 1.28rem; line-height: 1.45; }
  .hero-intro { font-size: .88rem; line-height: 1.85; }
  .hero-actions { gap: 10px; margin-top: 27px; }
  .hero-actions .button { flex: 1 1 140px; padding-inline: 13px; font-size: .77rem; }
  .hero-facts { gap: 8px 15px; margin-top: 25px; }
  .hero-facts span { font-size: .63rem; }
  .hero-caption { right: var(--page-gutter); left: var(--page-gutter); bottom: 20px; max-width: 100%; font-size: .59rem; }
  .tool-link { grid-template-columns: minmax(0, 1fr); padding: 17px 14px 19px; }
  .tool-icon { grid-row: auto; width: 33px; height: 33px; margin-top: 16px; }
  .tool-name { margin-top: 12px; font-size: .81rem; }
  .tool-link small { grid-column: 1; font-size: .64rem; }
  .tool-link::after { top: 14px; right: 12px; }
  .flow { gap: 10px; }
  .flow li span { width: 33px; height: 33px; }
  .flow li:not(:last-child)::after { top: 20px; left: 40px; }
  .flow strong { font-size: .71rem; }
  .chapter-head { margin-bottom: 23px; }
  .chapter-head h2 { font-size: 1.9rem; line-height: 1.2; }
  .chapter-head .eyebrow { gap: 8px; font-size: .59rem; }
  .lead { margin-top: 16px; font-size: .9rem; }
  .illustration { margin-bottom: 27px; }
  .illustration figcaption { font-size: .6rem; }
  .zoom-hint { bottom: 8px; right: 8px; padding: 4px 7px; font-size: .56rem; }
  .steps li { padding-left: 34px; font-size: 1rem; }
  .tip p { font-size: .94rem; }
  .density-demo { padding: 16px; }
  .density-canvas canvas { min-height: 150px; }
  .range-row { gap: 12px; }
  .faq-list summary { padding-block: 18px; font-size: .85rem; }
  .faq-list details p { padding-right: 12px; font-size: .95rem; }
  .support-panel { grid-template-columns: minmax(0, 1fr); padding: 25px 20px; }
  .support-panel > .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .support-panel h2 { font-size: 1.5rem; }
  .support-panel p { font-size: .82rem; }
  .back-top { right: 12px; bottom: 12px; max-width: 120px; min-width: 38px; min-height: 38px; padding: 8px 11px; font-size: .62rem; }
  #lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 5px; }
  .lightbox-inner { max-height: calc(100dvh - 20px); }
  .lightbox-toolbar { padding: 9px; gap: 6px; }
  .lightbox-toolbar button { min-width: 32px; padding: 7px 9px; font-size: .65rem; }
  .lightbox-inner figcaption { padding: 12px 14px; font-size: .65rem; }
}
body[data-motion="off"] *, body[data-motion="off"] *::before, body[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
body[data-motion="off"] .media-trigger:hover img { transform: none; }
html:has(body[data-motion="off"]) { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html[data-enhanced="true"] .reveal { opacity: 1; transform: none; }
  .media-trigger:hover img { transform: none; }
}
@media print {
  :root { color-scheme: light; font-size: 10pt; }
  html, body { width: auto; margin: 0; color: #171c25; background: white; }
  .site-header, .reading-progress, .skip-link, .sidebar, .hero-art, .hero-grid, .hero-caption, .hero-actions, .hero-facts, .overview, .routine, .density-demo, .back-top, #lightbox, .zoom-hint, .search-status { display: none !important; }
  .hero { min-height: 0; overflow: visible; border-bottom: 1px solid #bcc4cf; }
  .hero::after { display: none; }
  .hero-inner { max-width: none; padding: 0 0 20pt; }
  .hero-copy { max-width: none; }
  .hero-identity { margin-bottom: 10pt; }
  .hero-identity img { width: 48pt; flex-basis: 48pt; }
  .hero h1 { font-size: 36pt; line-height: 1.1; }
  .hero-tagline { max-width: none; font-size: 16pt; margin-top: 12pt; color: #263e59; }
  .hero-intro { max-width: none; margin-top: 10pt; color: #374151; font-size: 10pt; }
  .layout { display: block; max-width: none; padding: 24pt 0 0; }
  #guide { max-width: none; }
  .guide-section { padding-bottom: 20pt; }
  .chapter-head { break-after: avoid; margin-bottom: 12pt; }
  .chapter-head h2 { font-size: 22pt; }
  .lead { max-width: none; font-size: 10pt; color: #374151; margin-top: 9pt; }
  .eyebrow, .section-label { color: #17628a; }
  .chapter-body { display: block; }
  .steps li, .notes p, .tip p, .faq-list details p { color: #28313d; font-size: 9pt; line-height: 1.7; }
  .steps li { margin-bottom: 9pt; }
  .steps li::before { color: #17628a; border-color: #a6bcc9; }
  .notes { margin-top: 13pt; padding: 12pt 0 0; border-left: 0; border-top-color: #c8cfd6; }
  .notes p { margin-bottom: 8pt; }
  .tip { break-inside: avoid; margin-top: 14pt; padding: 10pt 13pt; background: #f4f2fa; border-color: #c8bcdf; }
  .illustration { break-inside: avoid; margin-bottom: 15pt; }
  .media-trigger { border-color: #b7c2cd; }
  .media-trigger img { max-height: 350pt; object-fit: contain; }
  .illustration figcaption, .illustration figcaption strong, .illustration figcaption span:first-child { color: #5b6575; font-size: 7pt; }
  .chapter-divider { margin-top: 22pt; background: #c8cfd6; }
  .faq-section { margin-bottom: 20pt; }
  .faq-list details { break-inside: avoid; border-color: #c8cfd6; }
  .faq-list summary { padding: 10pt 0; color: #171c25 !important; font-size: 10pt; }
  .faq-list summary::after { display: none; }
  .faq-list details p { display: block !important; padding: 0 0 10pt; }
  .faq-list details::details-content { content-visibility: visible; }
  .support-panel { break-inside: avoid; padding: 15pt; border-color: #bbc9d6; background: #f2f5f8; }
  .support-panel p { color: #374151; }
  .support-panel .button { color: #17628a; border-color: #99b9cb; background: transparent; }
  .site-footer { margin-top: 20pt; padding: 12pt 0 0; color: #5b6575; border-color: #c8cfd6; font-size: 7pt; }
  code { color: #194964; border-color: #d4dce2; background: #f1f4f6; }
  a { color: #17628a; }
  html[data-enhanced="true"] .reveal { opacity: 1; transform: none; }
  @page { margin: 16mm; }
}
