/* Frame Labs Studio prototype: the home page over the paper scene (/proto/, /en/proto/).
   The interface is cut card, not torn paper: this site's cream paper, ink text, 2 px corners, a fine grain drawn here in
   CSS (an SVG noise tile, no file), lit from the upper left like the scene, and a soft two-layer shadow. One accent:
   Frame Labs teal #2D5F5D (the green look, the default since the roll-out of 2026-11-23; html.look-autumn, ?look=autumn,
   brings back the clinic-site vermilion with the autumn sky and stills). The fonts are the page's own Noto Sans KR subsets, set in
   each page's head by tools/proto/build_fonts.py (FL Sans, weights 400 and 600).
   site.css: tokens, the scene, the hero, the sheets, the buttons, the footer. page.css: the bar, the menu, the chip, the
   motion button, utilities. The DOM contract the engine reads is in handoff/proto/PORT.md. */
@font-face { font-family: "FL Fallback"; src: local("Malgun Gothic"), local("MalgunGothic"); size-adjust: 92%; }

/* the page is paper only: a browser's forced dark mode would turn the ink light on light cards */
:root {
  color-scheme: only light;
  --ground: #FAF7F2;       /* the page round the scene (Studio --ground) */
  --paper: #FFFDF9;        /* the card (Studio --paper) */
  --sky-low: #EEEFE6;      /* the scene's floor colour until the sky is drawn */
  --ink: #231F1C;          /* headings */
  --text: #3E3833;         /* body: 10.9:1 on the card */
  --muted: #645C54;        /* small notes: 6.4:1 on the card */
  --accent: #2D5F5D;       /* Frame Labs teal: white on it is 7.2:1 (#244E4C hovered and pressed: 9.3:1) */
  --accent-down: #2D5F5D;  /* teal as text on the card: 7.1:1; on the page's ground 6.8:1 */
  --dusk: 0;               /* 0 afternoon -> 1 dusk, set by the engine on #scene */
  --font: "FL Sans", "FL Fallback", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  /* the card's grain: fine noise in the ink's colour at about 5 %, tiled at 180 px */
  --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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
  /* the light on a card's face: from the upper left, the lower right a shade warmer */
  --face: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 46%, rgba(110, 80, 50, .045));
  /* the cut edge: a lit top-left edge and a shaded bottom-right one, one pixel each */
  --edge: inset 1px 1px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(35, 31, 28, .08);
  /* two shadows: the contact shadow under the card, and the soft one it casts down and to the right */
  --lift: 1px 2px 3px rgba(35, 31, 28, .16), 8px 20px 36px -14px rgba(35, 31, 28, .34);
  --lift-small: 1px 1px 2px rgba(35, 31, 28, .18), 3px 8px 16px -8px rgba(35, 31, 28, .32);
  --ease-paper: cubic-bezier(.2, .7, .2, 1);
  --t-press: 120ms;
  --t-state: 200ms;
  --t-enter: 600ms;
  --bar-h: 64px;
  --deckle: 0px;           /* read by js/page.js: the bar's edge below its height (cut card: none) */
}
@media (max-width: 760px) { :root { --bar-h: 56px; } }
/* the autumn look (the clinic-site colours the scene was first painted in): only with ?look=autumn (html.look-autumn,
   set by the head script before first paint and kept for the tab; ?look=green goes back), linked from nowhere. Its
   plates and stills are in art/, the green look's in art-green/ (tools/green/recolour.py) */
html.look-autumn {
  --accent: #C8361D;
  --accent-down: #B22A17;
  --sky-low: #F3E6D0;
}
html.look-autumn #scene .sky .day { background: linear-gradient(180deg, #D9E2E6 0%, #E7E6DE 38%, #F2E7D4 68%, #F3E2C6 100%); }
html.look-autumn #scene .sky .dusk { background: linear-gradient(180deg, #7F8FA3 0%, #A3AEBB 40%, #C9C3BD 68%, #E8C9A6 100%); }
html.look-autumn #scene .sky .sun { background: radial-gradient(closest-side, rgba(255, 240, 210, .7), rgba(255, 232, 190, .28) 55%, rgba(255, 228, 180, 0) 100%); }
html.look-autumn #scene.nogl { background-image: url(../art/still-desk.webp); }
html.look-autumn #scene:not([data-scene])::after { background-image: url(../art/still-desk.webp); }
@media (max-aspect-ratio: 3899/5000) {
  html.look-autumn #scene:not([data-scene])::after { background-image: url(../art/still-phone.webp); }
}
html.look-autumn .hero-in::before { background: radial-gradient(closest-side, rgba(250, 245, 236, .8), rgba(250, 245, 236, .45) 60%, rgba(250, 245, 236, 0)); }
html.look-autumn .btn.gam { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .25), inset -1px -1px 0 rgba(60, 10, 0, .18), var(--lift-small); }
html.look-autumn .btn.gam:hover, html.look-autumn .btn.gam:active { --accent: #C8361D; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding: 92px 0 0; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.75 var(--font); word-break: keep-all; overflow-wrap: break-word; }
html[lang="en"] body { word-break: normal; }
a { color: inherit; }
img { display: block; }

/* ---------- the scene: the sky in CSS behind the transparent WebGL canvas (js/scene-gl.js) ----------
   The scene's height: the large viewport, never less than the box fixed elements are laid out in, nor than the
   engine's floor on a touch-first device (--scene-min), so a phone's bars coming and going never re-frame it. */
#scene { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: max(100lvh, 100%); z-index: 0; overflow: hidden; background: var(--sky-low); }
@supports (height: 1lvh) { #scene { height: max(100lvh, 100%, var(--scene-min, 0px)); } }
#scene .sky, #scene .sky i { position: absolute; inset: 0; }
/* early-summer morning: pale aqua high, cream low; dusk a deep blue-green over a gold horizon (the autumn sky: the
   html.look-autumn block above). The engine draws its own sky in GL from these gradients */
#scene .sky .day { background: linear-gradient(180deg, #CDE2E4 0%, #E0EBE9 38%, #EDF0E7 68%, #F2EEE0 100%); }
#scene .sky .dusk { background: linear-gradient(180deg, #376D70 0%, #689290 40%, #9FB8AC 68%, #DFCFB0 100%); opacity: var(--dusk, 0); }
#scene .sky .sun { left: 6%; top: -14%; width: 62%; height: 80%; inset: auto; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 252, 240, .62), rgba(255, 250, 232, .24) 55%, rgba(255, 248, 228, 0) 100%);
  opacity: calc(1 - var(--dusk, 0)); }
#scene canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#scene.nogl { background: var(--sky-low) url(../art-green/still-desk.webp) center bottom / cover no-repeat; }
#scene.nogl .sky, #scene.nogl canvas { display: none; }
/* the instant still: the finished scene as one picture (INT makes it: still-desk.webp 1920x1080, still-phone.webp
   1080x2160, the engine's two stages), over the CSS sky and the canvas. The head script preloads the same file and holds
   it back (html.hanok-hold) until it is in and 2 s have passed, so a quick load never sees it and the street stands up
   over the sky as designed; past that it shows, and when the scene is ready (#scene.ready) it dissolves into the live
   scene. Without scripts it simply stays. The phone rule is the engine's (width / height under .78 = 3899/5000) and so
   is the crop: cover, centred, 55 % of a taller window's overflow off the top. Until the file arrives the sky shows. */
#scene:not([data-scene])::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(../art-green/still-desk.webp) 50% 55% / cover no-repeat; transition: opacity .5s ease; }
@media (max-aspect-ratio: 3899/5000) {
  #scene:not([data-scene])::after { background-image: url(../art-green/still-phone.webp); }
}
.hanok-hold #scene::after { opacity: 0; transition: none; }
#scene.ready::after { opacity: 0; transition-duration: .9s; }
@media (prefers-reduced-motion: reduce) { #scene::after, #scene.ready::after { transition: none; } }
/* very wide or very short windows: the scene keeps at most 2.4 : 1 at the window's full height, centred, and the page's
   own ground lies left and right of it like the mat round a framed print, with a soft shadow where they meet */
@media (min-aspect-ratio: 12/5) {
  #scene { left: calc(50% - 120vh); right: auto; width: 240vh; box-shadow: 0 0 36px rgba(35, 31, 28, .18); }
  main, .site-footer { max-width: 240vh; margin-inline: auto; }
}

/* ---------- the page over the scene ---------- */
main { position: relative; z-index: 10; overflow-x: clip; }
.sec { position: relative; min-height: 150vh; display: flex; align-items: center; padding: 0 clamp(18px, 5vw, 88px); }
.sec.right { justify-content: flex-end; }
.sec { scroll-margin-top: -92px; }   /* a jump to a section lands with the section top at the screen top (js/page.js may move it) */

/* the hero: the words over the calm sky, no card; a soft light with no edge keeps them clear of any cloud. A desk
   window sizes and places them from its height (below, after the phones); a desk window too short for the sky puts
   them on a card */
.hero { min-height: 100vh; min-height: 100svh; align-items: flex-start; justify-content: center; text-align: center;
  padding-top: max(12vh, 112px); }
.hero-in { position: relative; max-width: 880px; }
.hero-in::before { content: ""; position: absolute; inset: -16% -12%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 248, 242, .8), rgba(247, 248, 242, .45) 60%, rgba(247, 248, 242, 0)); }
.hero h1 { margin: 0; font: 600 clamp(34px, min(4.2vw, 6.2vh), 60px)/1.24 var(--font); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.hero .line { margin: 18px auto 0; max-width: 34em; font: 400 clamp(17px, 1.45vw, 20px)/1.6 var(--font); color: var(--text); text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- buttons: cut card. The call is card dyed teal (#244E4C hovered and pressed); the other is plain card ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 2px; text-decoration: none; font: 600 17px/1.25 var(--font); text-align: center; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-state) var(--ease-paper), box-shadow var(--t-state) var(--ease-paper); }
.btn.gam { color: #fff; background: var(--grain), linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 40%), var(--accent);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .22), inset -1px -1px 0 rgba(8, 30, 30, .22), var(--lift-small); }
.btn.gam:hover, .btn.gam:active { --accent: #244E4C; }
.btn.ghost { color: var(--ink); background: var(--grain), var(--face), var(--paper);
  box-shadow: var(--edge), 0 0 0 1px rgba(35, 31, 28, .1), var(--lift-small); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); transition-duration: var(--t-press); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- the sheets: one card each, the legibility layer over the scene ----------
   Desk: beside the subject of its stop (.sec.right puts it on the right). Phone: a card across the upper part of the
   screen at its stop, over the sky, the subject below it (below, in the phone rule). */
.sheet { position: relative; width: min(440px, 100%); padding: 36px 40px 34px; border-radius: 2px; color: var(--text);
  background: var(--grain), var(--face), var(--paper); box-shadow: var(--edge), var(--lift); }
.sheet .eyebrow { margin: 0 0 10px; font: 600 16px/1.4 var(--font); letter-spacing: .06em; color: var(--accent-down); }
.sheet h2 { margin: 0 0 14px; font: 600 clamp(24px, 2.1vw, 30px)/1.36 var(--font); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.sheet p { margin: 0 0 12px; }
.sheet > :last-child { margin-bottom: 0; }
.sheet .cta { justify-content: flex-start; margin-top: 22px; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.more:hover { text-decoration-thickness: 3px; }
.more:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* a sheet that starts below the screen (js/page.js marks it .rise) waits 16 px low and, once 40 px of it is on screen,
   settles into place (.landed), once. The separate `translate` property, so the phone rule's transform is untouched. */
.sheet.rise { translate: 0 16px; }
.sheet.rise.landed { translate: none; transition: translate var(--t-enter) var(--ease-paper); }

/* ---------- the footer: one short card ---------- */
.site-footer { position: relative; z-index: 10; padding: 24px clamp(12px, 3.4vw, 40px) 40px; color: var(--text); }
.site-footer .sheet { width: auto; max-width: 1160px; margin: 0 auto; padding: 24px clamp(22px, 3.4vw, 40px); }
.site-footer p { margin: 0; font-size: 16px; line-height: 1.8; }
.site-footer .f-name span { white-space: nowrap; }
/* links in the line: a 44 px tall hit area without moving the line (padding taken back by the margin) */
.site-footer a { display: inline-block; padding: 10px 2px; margin: -10px -2px; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.site-footer a.f-privacy { color: var(--accent-down); }   /* 개인정보처리방침 stands apart by weight and colour */
.site-footer .f-note { margin-top: 8px; color: var(--muted); }
.site-footer a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
/* the family mark (nav.fl-family, the parent site's family/ snippet as it is, its own <style> inside): this site's
   ink, a hairline of it, its font; the links keep the snippet's 44 px rows (not the line's padding trick), the names
   at the text's weight and the parent's name at 600 */
.site-footer { --fl-ink: var(--ink); --fl-line: rgba(35, 31, 28, .16); }
.site-footer .fl-family { margin-top: 16px; }
.site-footer .fl-family a { padding: 0; margin: 0; font-weight: 400; }
.site-footer .fl-family a.fl-home { font-weight: 600; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { padding: max(15svh, 124px) 18px 0; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  html[lang="en"] .hero .cta { gap: 10px; }   /* the English buttons share one row on a 390 px phone, so they stay above the roof; narrower phones still wrap */
  html[lang="en"] .hero .cta .btn { padding: 12px 14px; font-size: 15px; }
  .hero .line { font-size: 17px; }
  .sec:not(.hero) { min-height: 140vh; padding: 0 12px; justify-content: center; }
  .sec:not(.hero) > .sheet { width: 100%; max-width: 560px; padding: 24px 22px 22px; }
  .sheet h2 { font-size: 24px; margin-bottom: 10px; }
  .site-footer { padding: 16px 12px 28px; }
  .site-footer .sheet { padding: 20px 20px; }
}
/* upright phones: at its stop (the section's centre mid-screen) the card sits across the upper part of the screen, over
   the sky as the hero's words do, its top 12 px under the bar, and the street with the stop's subject stands below it in
   the lower half (the phone composition, scene-gl.js PHONE). A card taller than half the screen stays centred
   (min(0px, ...)); one taller than the screen gets its section's top padding from js/page.js (.tall). */
@media (max-width: 760px) and (orientation: portrait) {
  .sec:not(.hero) > .sheet { transform: translateY(min(0px, calc(var(--bar-h) + 12px + 50% - 50vh))); transform: translateY(min(0px, calc(var(--bar-h) + 12px + 50% - 50svh))); }
  .sec.tall:not(.hero) > .sheet { transform: none; }
}
/* upright phones: the hero's words keep their place (above) unless the clinic's roof is nearer: then they rise just
   enough to end 20 px above it, never nearer the bar than 16 px. The roof at stop 0 is at 52.6 % of the window's height
   on a phone of 1 : 2 or narrower, .55 h - .0476 w on a wider one (scene-gl.js PHONE, the 1080 x 2160 stage, its top
   55 % of the cut). The hero is one screen tall and a spacer (::before) as tall as the usual top gives way first. A short
   phone closes the gaps a little and keeps the English title to two lines; the English buttons share one row at 360 px */
@media (max-width: 760px) and (max-aspect-ratio: 3899/5000) {
  .hero { --roof: min(52.6vh, 55vh - 4.76vw); flex-direction: column; justify-content: flex-start; align-items: stretch;
    height: 100vh; height: 100svh; padding-top: calc(var(--bar-h) + 16px);
    padding-bottom: calc(100vh - var(--roof) + 20px); padding-bottom: calc(100svh - var(--roof) + 20px); }
  .hero::before { content: ""; flex: 0 1 calc(max(15svh, 124px) - var(--bar-h) - 16px); }
  .hero-in { flex: none; }
}
@media (max-width: 760px) and (max-height: 700px) and (max-aspect-ratio: 3899/5000) {
  .hero .line { margin-top: 12px; }
  .hero .cta { margin-top: 18px; }
}
/* the English title in two lines up to 760 px tall: at 360 x 740 its three lines rose under the chip */
@media (max-width: 760px) and (max-height: 760px) and (max-aspect-ratio: 3899/5000) {
  html[lang="en"] .hero h1 { font-size: min(7vw, 28px); }
}
@media (max-width: 374px) {
  html[lang="en"] .hero .cta .btn { padding-inline: 12px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .sheet { padding: 30px 36px 28px; }
  /* a short window: the sheets to the chip's margin, off the middle where the stops' pieces stand (1280 x 600: the
     lamp at stop 5 stood under the left sheet) */
  .sec:not(.hero) { padding-inline: clamp(12px, 3vw, 30px); }
}
/* a phone on its side (a desk layout under 500 px tall): the stops' pieces stand where they do on a desk, as shares of
   the window's width, but a 440 px sheet took 55 % of an 844 px window and lay over them (844 x 390: the sign and the
   frame at stop 2, the posters at stop 3, the lamp at stop 5, its foot at 39 % of the width). The sheet takes at most
   38 % of the width, less 22 px, and its type closes up to fit the height */
@media (min-aspect-ratio: 3899/5000) and (max-height: 500px) {
  .sec:not(.hero) { padding-inline: 12px; }
  .sec:not(.hero) > .sheet { width: min(440px, 38vw - 22px); padding: 16px 18px 14px; }
  .sec:not(.hero) > .sheet .eyebrow { margin-bottom: 4px; font-size: 14px; }
  .sec:not(.hero) > .sheet h2 { margin-bottom: 6px; font-size: 20px; line-height: 1.3; }
  .sec:not(.hero) > .sheet p { margin-bottom: 6px; font-size: 15px; line-height: 1.5; }
  .sec:not(.hero) > .sheet .cta { margin-top: 10px; }
  .sec:not(.hero) > .sheet > :last-child { margin-bottom: 0; }
  /* a sheet on the right starts under the motion button (page.css: the bar + 10 px, 44 px tall), 8 px clear */
  .sec.right:not(.hero) > .sheet { transform: translateY(max(0px, 50% - 50vh + var(--bar-h) + 62px)); }
}
/* a short upright phone (360 x 740): a closer sheet, so the stop's piece below it stays clear (stop 2: the frame's top
   bar stood under the sheet) */
@media (max-width: 760px) and (max-height: 760px) and (orientation: portrait) {
  .sec:not(.hero) > .sheet { padding: 18px 20px 18px; }
  .sec:not(.hero) > .sheet .eyebrow { margin-bottom: 6px; }
  .sec:not(.hero) > .sheet h2 { margin-bottom: 8px; }
  .sec:not(.hero) > .sheet p { line-height: 1.6; }
  /* the longer English lines: stop 2's sheet touched the frame's top bar */
  html[lang="en"] .sec:not(.hero) > .sheet p { line-height: 1.5; }
}
/* desk windows (the engine's desk stage: width / height .78 and up, a narrow one too): the hero's words fit the sky
   over the clinic.
   At stop 0 the clinic's roof stands at 44.71 % of the window's height up to 16:9; a wider window shows the stage's
   full width and loses 55 % of the cut off the sky, so the roof is at .55 h - .05786 w; past 2.4 : 1 the scene is
   240vh wide (above), so 41.11 % (scene-gl.js viewport(); DESK clinic: b 900, 417 tall, its top at y 483; the plate's
   painted top is its box top within 2 px). The words sit between the bar (--top under it, 16 px at least) and the
   roof (--gap above it, 20 px at least), centred there, and the h1 takes the height that is left: 30 to 60 px, two
   lines. tools/proto/sizes.js checks every size. */
@media (min-aspect-ratio: 3899/5000) {
  .hero {
    --roof: max(41.11vh, min(44.71vh, 55vh - 5.786vw));
    --gap: max(20px, 3.2vh - 1px);
    --top: clamp(16px, 7vh - 26px, 80px);
    --m1: clamp(4px, 2.9vh - 13.4px, 18px);
    --m2: clamp(5.5px, 4.2vh - 19.7px, 26px);
    --lh1: 1.24; --f2: clamp(17px, min(1.45vw, 2.2vh), 20px); --lh2: 1.6; --rows: 2;
    align-items: center;
    padding-top: calc(var(--bar-h) + var(--top));
    padding-bottom: calc(100vh - var(--roof) + var(--gap));
  }
  .hero h1 { line-height: var(--lh1); font-size: clamp(30px, min(4.2vw, 6.2vh, (var(--roof) - var(--gap) - var(--bar-h) - var(--top)
    - var(--m1) - var(--rows) * var(--lh2) * var(--f2) - var(--m2) - 48px) / (2 * var(--lh1))), 60px); }
  .hero .line { margin-top: var(--m1); font-size: var(--f2); line-height: var(--lh2); }
  .hero .cta { margin-top: var(--m2); }
}
/* a short desk window, or one 2 : 1 and wider (its roof is lower), wide enough for it: the line runs as one row
   (51.3 em in English; 1.45vw keeps it inside the window's width) */
@media (min-width: 1000px) and (max-height: 860px), (min-width: 1000px) and (min-aspect-ratio: 2/1) {
  .hero { --rows: 1; --lh2: 1.5; }
  .hero-in { max-width: 1060px; }
  .hero .line { max-width: none; }
  /* the one row reaches past the soft light's middle onto the ginkgos' crowns at its ends (1366 x 650: 3.7 : 1 at the
     5th percentile over the leaves): a band of the same light, a solid colour blurred to no edge (as inner.css's dusk
     haze), lies behind it (8 : 1 or better; tools/proto/sizes.js measures it) */
  .hero .line { position: relative; }
  .hero .line::before { content: ""; position: absolute; inset: -4px -24px; z-index: -1; pointer-events: none;
    background: rgba(247, 248, 242, .85); filter: blur(8px); }
  html.look-autumn .hero .line::before { background: rgba(250, 245, 236, .85); }
}
@media (max-height: 700px) and (min-aspect-ratio: 3899/5000) {
  .hero { --lh1: 1.16; --lh2: 1.4; }
}
/* a desk layout too short for the sky (a phone on its side, a very short window; the wider the window the lower the
   roof, so 2.2 : 1 and wider from 606 and 615 px, and a narrow window, whose line takes two rows, from 630): the words
   go on a cut card at the left under the chip, the clinic beside it where the width allows */
@media (min-aspect-ratio: 3899/5000) and (max-height: 599.98px), (min-aspect-ratio: 11/5) and (max-height: 605px),
  (min-aspect-ratio: 23/10) and (max-height: 614px), (min-aspect-ratio: 3899/5000) and (max-width: 999.98px) and (max-height: 629.98px) {
  .hero { --hero-mode: card; align-items: flex-start; justify-content: flex-start; text-align: left;
    padding: calc(var(--bar-h) + 46px) 0 12px clamp(12px, 3vw, 30px); }
  .hero-in { width: min(500px, calc(100% - 12px)); max-width: none; padding: 18px 24px 20px; border-radius: 2px;
    background: var(--grain), var(--face), var(--paper); box-shadow: var(--edge), var(--lift); }
  .hero-in::before, .hero .line::before { display: none; }
  .hero h1 { font-size: 30px; line-height: 1.22; }
  .hero .line { margin: 8px 0 0; max-width: none; font-size: 17px; line-height: 1.5; }
  .hero .cta { justify-content: flex-start; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sheet.rise.landed { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
@media (forced-colors: active) {
  .btn, .sheet { border: 2px solid CanvasText; }
}
@media print {
  #scene, .site-bar, .draft, .motion, .skip { display: none !important; }
  body { background: #fff; }
  .sec { min-height: 0; padding: 12pt 0; }
  .sheet { box-shadow: none; background: none; transform: none !important; }
}
