@font-face { font-family: Manrope; src: url('assets/fonts/manrope-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('assets/fonts/manrope-medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url('assets/fonts/manrope-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root {
  --snow: #f7f9fc; --ink: #202236; --muted: #4d5870; --blue: #1b4bd8;
  --ice: #e3eef8; --white: #fff; --line: #c7d6e8; --ease-out: cubic-bezier(.23, 1, .32, 1);
  color: var(--ink); background: var(--snow); font-family: Manrope, sans-serif;
  font-synthesis: none; scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.45; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { color: var(--white); background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(100% - 160px, 1280px); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 64px; font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
h2 { font-size: 36px; line-height: 1.3; letter-spacing: -.02em; }
p { color: var(--muted); }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 12px; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 24px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; color: var(--ink); font-size: 24px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; object-fit: contain; mix-blend-mode: multiply; }
nav { display: flex; gap: 40px; }
.site-header nav { flex-shrink: 0; }
nav a { color: var(--ink); font-size: 14px; text-decoration: none; }
.hero { padding-block: 48px; }
.hero-support { margin-top: 24px; max-width: 950px; }
.hero-audience { margin-top: 24px; max-width: 950px; font-size: 14px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 28px; border: 0; border-radius: 8px; background: var(--blue); color: var(--white); font: 500 16px/1.4 Manrope, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 180ms ease; }
.button:hover { text-decoration: underline; text-underline-offset: 4px; }
.button:active { transform: scale(.97); }
.email-link { font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.transformation { background: var(--ice); }
.route { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 16px; padding-block: 40px; }
.stage h2, .stage h3 { font-size: 22px; line-height: 1.4; letter-spacing: 0; }
.stage > p { margin-top: 24px; font-size: 14px; }
.route-connector { width: 24px; height: 12px; margin-top: 10px; overflow: visible; }
.route-connector path { fill: none; stroke: var(--blue); stroke-width: 1.5; }
.documents { display: flex; gap: 12px; margin-top: 24px; }
.document { display: flex; flex-direction: column; gap: 10px; width: 96px; min-height: 120px; padding: 16px; background: var(--white); border-radius: 8px; }
.document span { margin-bottom: 10px; color: var(--blue); font-size: 16px; }
.document i { display: block; height: 3px; background: var(--line); }
.document i:nth-child(3) { width: 75%; }
.document i:last-child { width: 86%; }
.method-list { display: grid; gap: 16px; margin: 24px 0 0; padding: 24px; background: var(--white); border-radius: 12px; list-style: none; font-size: 16px; }
.caption { font-size: 14px; line-height: 1.5; }
.service-legend { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding-block: 80px; }
.case-section { background: var(--white); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 48px; }
.case-copy > p { margin-top: 24px; max-width: 65ch; }
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 48px; }
.studio p + p { margin-top: 24px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 48px; }
.contact h2 { max-width: 20ch; }
.contact > div p { margin-block: 24px; }
form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 12px; }
label { font-size: 16px; font-weight: 500; }
input, textarea { display: block; width: 100%; min-width: 0; padding: 16px; border: 1px solid var(--muted); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 16px/1.5 Manrope, sans-serif; caret-color: var(--blue); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 128px; }
input:invalid:not(:placeholder-shown) { border-color: var(--blue); }
form .button { justify-self: start; min-width: 248px; }
.contact-status:empty { display: none; }
.contact-status { font-size: 14px; color: var(--ink); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .route-connector { animation: route-enter 700ms var(--ease-out); }
  @keyframes route-enter { from { opacity: .35; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 80px); }
  h1 { font-size: 56px; }
  .route { column-gap: 12px; }
  .document { width: 76px; padding: 12px; }
  .documents { gap: 8px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 48px); }
  .site-header { flex-wrap: wrap; gap: 24px; }
  .brand { font-size: 20px; }
  nav { gap: 24px; }
  .hero { padding-block: 32px 40px; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-support { font-size: 16px; }
  .hero-audience { margin-top: 16px; }
  .route { grid-template-columns: 1fr; gap: 40px; }
  .route-connector { display: none; }
  .documents { gap: 12px; }
  .document { width: 96px; padding: 16px; }
  .service-legend, .case-grid, .studio, .contact { grid-template-columns: 1fr; gap: 32px; }
  form .button { width: 100%; }
  .site-footer { flex-direction: column; gap: 12px; }
}
@media (max-width: 359px) {
  h1 { font-size: 35px; }
  .brand { font-size: 18px; }
  .documents { gap: 8px; }
  .document { width: 85px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The existing atlas becomes an interactive, single-pass demonstration. */
:root { --elevation-soft: 0 12px 32px rgba(32, 34, 54, .07); }
h1, h2 { text-wrap: balance; }
.site-header { position: sticky; top: 16px; z-index: 10; margin-top: 16px; padding: 16px 24px; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: var(--elevation-soft); backdrop-filter: blur(10px); }
.brand { font-size: 22px; }
nav a { position: relative; padding-block: 8px; }
nav a::after { position: absolute; content: ''; height: 2px; inset: auto 0 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease-out); }
nav a:focus-visible::after { transform: scaleX(1); }
.hero { padding-block: 64px 56px; }
.hero h1 { font-size: clamp(48px, 5vw, 72px); }
.hero-accent { color: var(--blue); white-space: nowrap; }
.hero-body { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.8fr); align-items: center; gap: 48px; margin-top: 24px; }
.hero-copy .hero-support { margin-top: 0; }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-support { max-width: 65ch; }
.hero .button { box-shadow: 0 8px 20px rgba(27,75,216,.16); }
.button { border-radius: 12px; }
.button:disabled { cursor: default; opacity: .7; transform: none; }
.transformation { width: min(calc(100% - 48px), 1360px); margin-inline: auto; border-radius: 24px; background: linear-gradient(125deg, var(--ice), var(--snow)); box-shadow: var(--elevation-soft); overflow: hidden; }
.transformation .container { width: calc(100% - 64px); }
.demo-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 40px; }
.demo-heading h2 { font-size: 32px; max-width: 22ch; }
.demo-heading p { font-size: 14px; margin-top: 12px; }
.quiet-button, .text-button { padding: 12px; border: 0; background: transparent; color: var(--blue); font: 500 14px/1.5 Manrope,sans-serif; cursor: pointer; }
.quiet-button:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.route { padding-block: 40px 24px; gap: 16px; grid-template-columns: minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr); }
.route-connector { width: 32px; opacity: .7; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.route-packet { fill: var(--blue); opacity: 0; }
.document:first-child { rotate: -3deg; }
.document:last-child { rotate: 3deg; }
[data-phase="input"] .stage-input h3, [data-phase="analysis"] .stage-analysis h3, [data-phase="output"] .stage-output h3 { color: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  [data-phase="input"] .route-connector:nth-of-type(1) .route-packet,
  [data-phase="analysis"] .route-connector:nth-of-type(2) .route-packet { animation: packet-travel 420ms var(--ease-out); }
  @keyframes packet-travel { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(102px); } }
}
.document { position: relative; flex: 1; min-width: 0; max-width: 96px; width: auto; min-height: 144px; box-shadow: 0 8px 24px rgba(32,34,54,.08); transition: transform 200ms var(--ease-out); }
.document small { color: var(--muted); font-size: 10px; margin-top: auto; overflow-wrap: anywhere; }
.method-list { min-height: 150px; box-shadow: 0 8px 24px rgba(32,34,54,.05); transition: transform 200ms var(--ease-out); }
.method-list li { position: relative; padding-left: 20px; }
.method-list li::before { content: ''; position: absolute; left: 0; top: .4em; width: 8px; height: 8px; border: 1px solid var(--blue); border-radius: 2px; }
[data-phase="input"] .document { transform: translateY(-6px); }
[data-phase="analysis"] .stage-analysis .method-list { transform: translateY(-6px); }
[data-phase="output"] .stage-output .method-list { transform: translateY(-6px); }
[data-phase="complete"] .route-connector { opacity: 1; }
[data-phase="complete"] .method-list li::before { background: var(--blue); }
.service-intro p { margin-top: 24px; max-width: 38ch; }
.service-option { padding-block: 24px; border-bottom: 1px solid var(--line); }
.service-option:first-child { padding-top: 0; }
.service-option summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; color: var(--ink); font-size: 24px; font-weight: 500; }
.service-option summary::-webkit-details-marker { display: none; }
.service-option summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.service-option[open] summary { color: var(--blue); }
.service-option[open] summary svg { transform: rotate(180deg); }
.service-option[data-pointer="true"] summary svg { transition: transform 200ms var(--ease-out); }
.service-body { padding-top: 20px; }
.service-body p { max-width: 55ch; }
.service-body .caption { margin-top: 16px; }
.case-grid { padding-block: 72px; align-items: center; }
.audit-viewer { min-width: 0; background: var(--snow); border-radius: 16px; box-shadow: 0 16px 40px rgba(32,34,54,.08); overflow: hidden; }
.viewer-heading { padding: 24px; font-size: 16px; background: var(--ice); }
.preview-controls { display: none; padding: 16px 24px 0; gap: 8px; }
.experience-ready .preview-controls { display: flex; }
.preview-button { padding: 10px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 14px/1.4 Manrope,sans-serif; cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.preview-button[aria-pressed="true"] { color: var(--white); background: var(--blue); }
.sample-panel { padding: 24px; min-height: 250px; }
.sample-file { display: flex; gap: 16px; align-items: center; }
.sample-file svg { width: 32px; height: 40px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.sample-file strong, .sample-file span { display: block; }
.sample-file span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.evidence-list { display: grid; gap: 16px; margin: 24px 0 0; font-size: 14px; }
.evidence-list div { display: flex; justify-content: space-between; gap: 16px; }
.evidence-list dt { color: var(--muted); }
.evidence-list dd { margin: 0; text-align: right; font-weight: 500; }
.evidence-pending { color: var(--blue); }
.sample-panel pre { margin: 0; font: 13px/1.8 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.report-title { font-weight: 700; font-size: 20px; }
.report-lines { display: grid; gap: 12px; padding-left: 20px; font-size: 14px; }
.viewer-footer { padding: 0 24px 24px; }
.viewer-footer .caption { font-size: 12px; }
.text-button { display: none; align-items: center; gap: 8px; padding: 16px 0 0; }
.experience-ready .text-button { display: inline-flex; }
.text-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.studio { padding-block: 64px; }
.contact { padding-block: 64px; }
.contact form { padding: 32px; border-radius: 16px; background: var(--white); box-shadow: var(--elevation-soft); }
.contact input, .contact textarea { background: var(--snow); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[id] { scroll-margin-top: 112px; }
html[data-keyboard="true"] { scroll-behavior: auto; }
html[data-keyboard="true"] .button, html[data-keyboard="true"] .preview-button { transition: none; }
html[data-keyboard="true"] #process-demo * { transition: none !important; animation: none !important; }
@media (hover: hover) and (pointer: fine) {
  nav a:hover::after { transform: scaleX(1); }
  .button:not(:disabled):hover { transform: translateY(-2px); text-decoration: none; }
  .document:hover { transform: translateY(-4px); }
  .service-option summary:hover { color: var(--blue); }
}
@media (max-width: 1100px) {
  .demo-heading { align-items: flex-start; }
  .documents { gap: 8px; }
  .document { padding: 12px; }
  .method-list { padding: 20px; font-size: 14px; }
  .service-legend { gap: 40px; }
}
@media (max-width: 760px) {
  .site-header { padding: 12px 16px; gap: 16px; top: 8px; margin-top: 8px; }
  .site-header > .brand, .site-header > nav { margin-inline: auto; }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 30px; }
  nav { gap: 20px; }
  nav a { font-size: 13px; padding-block: 4px; }
  .hero { padding-block: 36px 40px; }
  .hero h1 { font-size: 42px; }
  .hero-body { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { width: min(100%,300px); justify-self: center; }
  .transformation { width: calc(100% - 24px); border-radius: 16px; }
  .transformation .container { width: calc(100% - 40px); }
  .demo-heading { flex-direction: column; gap: 24px; padding-top: 28px; }
  .demo-heading h2 { font-size: 26px; }
  .route { grid-template-columns: 1fr; padding-top: 32px; }
  .document { padding: 14px; }
  .service-legend { grid-template-columns: 1fr; padding-block: 48px; gap: 32px; }
  .service-option summary { font-size: 20px; }
  .case-grid { padding-block: 48px; }
  .viewer-heading { padding: 20px; font-size: 15px; }
  .preview-controls { padding: 16px 16px 0; gap: 4px; }
  .preview-button { padding: 10px 12px; font-size: 13px; }
  .sample-panel { padding: 20px; }
  .evidence-list div { flex-direction: column; gap: 4px; }
  .evidence-list dd { text-align: left; }
  .viewer-footer { padding-inline: 20px; }
  .contact form { padding: 20px; }
  form .button { min-width: 0; }
  .studio, .contact { padding-block: 48px; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 35px; }
  .brand { font-size: 16px; gap: 8px; }
  .site-header { padding-inline: 12px; }
  nav { gap: 16px; }
  .document { padding: 10px; }
  .preview-button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .document, .method-list, .route-connector, .button, .service-option summary svg { transform: none !important; rotate: none !important; transition: none !important; animation: none !important; }
}

/* One continuous narrative; native sticky never intercepts the visitor's scroll. */
.crystal-story { --story-top: 96px; position: relative; }
.story-stage { position: relative; background: var(--snow); overflow: hidden; isolation: isolate; }
.story-enhanced .crystal-story { height: 320svh; }
.story-enhanced .story-stage { position: sticky; top: var(--story-top); height: calc(100svh - var(--story-top)); }
.story-arctic { position: absolute; inset: 0; background: #10283b; opacity: 0; pointer-events: none; }
.crystal-story .hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding-block: 32px; height: 100%; }
.crystal-story h1 { font-size: clamp(36px,4.2vw,60px); max-width: 14ch; }
.crystal-story .hero-copy { position: relative; z-index: 4; min-width: 0; }
.story-message { position: relative; min-height: 156px; margin-block: 24px; }
.crystal-story .hero-support { font-size: 16px; max-width: 47ch; }
.crystal-story .hero-audience { margin-top: 16px; max-width: 55ch; }
.story-reading { position: absolute; inset: 0; pointer-events: none; }
.story-panel { position: absolute; inset: 0; opacity: 0; }
.story-panel h2 { font-size: clamp(24px,2.5vw,34px); line-height: 1.15; margin-bottom: 16px; }
.story-panel p { font-size: 16px; max-width: 45ch; }
.crystal-story .hero-actions { margin-top: 0; flex-wrap: wrap; gap: 16px; }
.crystal-story .email-link { font-size: 14px; }
.crystal-story .hero-art { position: relative; margin: 0; width: 100%; height: min(480px,62svh); max-width: none; perspective: 1000px; justify-self: stretch; }
.crystal-sheet { position: absolute; left: 50%; top: 50%; width: min(85%,440px); aspect-ratio: 800/533; transform: translate(-50%,-50%); transform-origin: center; box-shadow: 4px 9px 16px rgba(25,60,103,.1); }
.crystal-sheet::before { content: ''; position: absolute; inset: 3%; pointer-events: none; background: linear-gradient(112deg,transparent 36%,rgba(255,255,255,.48) 49%,rgba(203,238,255,.12) 53%,transparent 64%); transform: translateX(var(--reflection-shift,0%)); clip-path: inset(0); opacity: .55; }
.crystal-sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
.crystal-sheet[data-sheet="0"] { transform: translate(-70%,-68%) rotate(-14deg); }
.crystal-sheet[data-sheet="1"] { transform: translate(-45%,-45%) rotate(8deg); }
.crystal-sheet[data-sheet="2"] { transform: translate(-28%,-24%) rotate(18deg); }
.sheet-circuit { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #2456b5; stroke-width: 1.8; opacity: .32; pointer-events: none; }
.sheet-circuit circle { fill: #79bde5; stroke-width: 1.2; }
.sheet-content { position: absolute; inset: 13% 11%; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0; isolation: isolate; }
.sheet-content::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center,rgba(244,250,255,.98) 0%,rgba(244,250,255,.96) 50%,rgba(231,244,253,.58) 72%,transparent 100%); }
.sheet-content p { color: var(--ink) !important; font-size: 18px; font-weight: 500; line-height: 1.45; }
.sheet-content p + p { font-size: 14px; font-weight: 400; }
.story-fox { position: absolute; top: 12%; left: 50%; width: 160px; height: 148px; opacity: 0; transform: translateX(-50%); z-index: 8; }
.story-fox img { width: 100%; height: 100%; object-fit: contain; }
.story-ice { position: absolute; inset: auto 0 0; width: 100%; height: 120px; opacity: 0; pointer-events: none; }
.data-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.data-snow span { position: absolute; color: var(--ice); opacity: 0; font: 11px/1 ui-monospace,monospace; }
.data-snow span:nth-child(3n) { font-size: 15px; }
.data-snow span:nth-child(4n) { font-size: 20px; }
.crystal-story[data-tone="dark"] h1, .crystal-story[data-tone="dark"] h2, .crystal-story[data-tone="dark"] .hero-accent { color: var(--snow); }
.crystal-story[data-tone="dark"] p { color: #bdcfdf; }
.crystal-story[data-tone="dark"] .email-link { color: var(--ice); }
.crystal-story[data-tone="dark"] .button { background: var(--ice); color: #10283b; box-shadow: none; }
.crystal-story[data-tone="dark"] :focus-visible { outline-color: var(--ice); }
.crystal-story[data-tone="dark"] .sheet-circuit { stroke: #a5ddff; }
.crystal-story[data-tone="dark"] .sheet-content p { color: #f4faff !important; }
.crystal-story[data-tone="dark"] .sheet-content::before { background: radial-gradient(ellipse at center,rgba(16,40,59,.98) 0%,rgba(16,40,59,.96) 50%,rgba(16,40,59,.58) 72%,transparent 100%); }
@media (prefers-reduced-motion: no-preference) {
  .story-enhanced .data-snow span { animation: story-snowfall 4500ms linear var(--snow-delay) infinite both; animation-play-state: paused; }
  #process-demo[data-motion="true"] .data-snow span { animation-play-state: running; }
  @keyframes story-snowfall { 0% { opacity: 0; transform: translate3d(0,-100px,0); } 20% { opacity: .28; } 80% { opacity: .18; } 100% { opacity: 0; transform: translate3d(var(--drift),320px,0); } }
}
@media (max-width: 760px) {
  .story-enhanced .crystal-story { height: 240svh; }
  .crystal-story .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(140px,1fr); align-items: start; gap: 12px; padding-block: 12px; }
  .crystal-story h1 { font-size: 34px; line-height: 1.08; max-width: 18ch; }
  .story-message { min-height: 114px; margin-block: 16px; }
  .crystal-story .hero-support { font-size: 14px; }
  .crystal-story .hero-audience { margin-top: 12px; font-size: 11px; }
  .story-panel h2 { font-size: 24px; margin-bottom: 12px; }
  .story-panel p { font-size: 14px; }
  .crystal-story .hero-actions { gap: 12px; }
  .crystal-story .hero-actions .button { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .crystal-story .email-link { font-size: 13px; text-align: center; }
  .crystal-story .hero-art { height: 100%; min-height: 180px; max-height: 300px; }
  .crystal-sheet { width: min(100%,340px); }
  .crystal-sheet[data-sheet="0"] { transform: translate(-65%,-68%) rotate(-10deg); }
  .crystal-sheet[data-sheet="1"] { transform: translate(-47%,-45%) rotate(6deg); }
  .crystal-sheet[data-sheet="2"] { transform: translate(-34%,-24%) rotate(13deg); }
  .sheet-content { inset: 9% 8%; gap: 8px; }
  .sheet-content p, .sheet-content p + p { font-size: 14px; line-height: 1.35; }
  .story-fox { width: 90px; height: 82px; top: 0; }
  .story-ice { height: 60px; }
}
@media (max-width: 359px) {
  .crystal-story h1 { font-size: 30px; }
  .story-message { min-height: 120px; }
  .sheet-content p, .sheet-content p + p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-enhanced .crystal-story { height: auto; }
  .story-enhanced .story-stage { position: relative; top: auto; height: auto; }
  .crystal-story .hero-art { height: 280px; }
  .story-reading { display: none; }
}


.site-header { isolation: isolate; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(115deg,#cde9fb66,transparent 35%,transparent 65%,#d9f1ff88); box-shadow: inset 0 0 0 1px #b9dcef, inset 0 5px 18px #d9f1ff66; transition: opacity 180ms ease; }
@media (hover: hover) and (pointer: fine) { .site-header:hover::before { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .site-header::before { transition: none; } }
.site-footer { align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; font: 700 18px/1.2 'Chakra Petch',Manrope,sans-serif; }
.footer-brand img { flex: none; }
.footer-copyright { max-width: 40ch; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .site-footer { align-items: flex-start; } .footer-brand { font-size: 16px; } }
