/* Homepage: one viewport-filling statement, vertically centred above the decorative field. */
body.home{min-height:0;position:relative;isolation:isolate}
.home main{display:block;flex:none;position:relative}
.home .site-header,.home main,.home .site-footer{position:relative;z-index:1}
.home .site-header,.home .site-footer{background:#fff}
.hero{display:flex;align-items:center;padding-block:100px}
.hero-copy{min-width:0;width:calc((100% - 30px) * 7 / 12);container-type:inline-size}
.hero h1{font-size:min(4.2rem,18.5cqw);letter-spacing:-.04em;line-height:1.07;white-space:nowrap}
.hero-intro{font-size:1.125rem;line-height:1.6;color:var(--muted);max-width:28rem;margin-top:1.8125rem}
.hero-footnote{display:flex;flex-direction:column;align-items:flex-start;gap:10px;font-size:.875rem;line-height:1.6;color:var(--muted);margin-top:2.3125rem}
/* Fill desktop viewports up to 1080px; larger content can still scroll. */
@media (min-width: 641px) {
  body.home { min-height: min(100dvh, 1080px); }
  .home main { display: flex; flex-direction: column; flex: 1; }
  .hero { flex: 1; padding-block: clamp(1rem, 4dvh, 6.25rem); }
}
@media (max-width: 850px) {
  .hero { padding-block: 58px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: min(3.5rem, 18.5cqw); }
  .hero-intro { font-size: 1rem; }
}
/* A minimum height fills the visible viewport without trapping enlarged text. */
@media (max-width: 640px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  body.home {
    min-height: 100vh;
    min-height: 100dvh;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  .home main { display: flex; flex-direction: column; flex: 1; }
  .hero { flex: 1; padding-block: clamp(.5rem, 1.5dvh, 1.5rem); }
  .hero-copy { width: 100%; }
  .home .brand { min-width: 0; max-width: 100%; white-space: normal; }
  .home .brand span { min-width: 0; overflow-wrap: anywhere; }
  .home .text-link { max-width: 100%; }
  .hero h1 { margin: 0; font-size: clamp(3rem, 11vw, 4.3rem); white-space: normal; }
  .hero-intro { font-size: 1rem; line-height: 1.5; margin-block: clamp(.5rem, 2dvh, 1.5625rem) clamp(.75rem, 2.8dvh, 1.875rem); }
  .hero-footnote { margin: 0; }
  .home .site-header { padding-block: clamp(.75rem, 2dvh, 1.3125rem); gap: clamp(.5rem, 1.5dvh, 1rem); }
}
@media (max-width: 360px) {
  .hero h1 { font-size: clamp(2.55rem, 11vw, 4.3rem); }
  .home .site-header { padding-block: .5rem; gap: .375rem; }
  .background-control { min-width: 14px; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .hero h1 { font-size: clamp(2rem, 7.8dvh, 3rem); }
}
@media (max-width: 360px) and (max-height: 600px) {
  .hero h1 { font-size: clamp(2rem, 7.8dvh, 2.55rem); }
}
/* Short phone viewports leave room for safe-area padding without shrinking text. */
@media (max-width: 640px) and (max-height: 700px) {
  .hero { padding-block: 0; }
  .home .site-header { padding-block: .25rem; }
  .hero-intro { margin-block: .25rem .5rem; }
  .hero-footnote { gap: 4px; }
}
/* The two-line footer on 320 px phones takes the room of 0.5dvh per heading line. */
@media (max-width: 360px) and (max-height: 500px) {
  .hero h1 { font-size: clamp(2rem, 6.5dvh, 2.55rem); }
}
/* Landscape keeps the four heading lines beside the introduction and links. */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .home .site-header { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block: clamp(.625rem, 2dvh, 1rem); }
  .home nav { justify-content: flex-end; }
  .hero-copy { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 24px; }
  .hero h1 { grid-row: 1 / span 3; font-size: clamp(1.8rem, 9dvh, 2.55rem); align-self: center; }
  .hero-intro { margin: 0 0 1rem; }
  .hero-footnote { grid-column: 2; }
}

.landing-art { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.background-pause { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
.background-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: relative; min-height: 24px; min-width: 24px; cursor: pointer; color: var(--muted); white-space: nowrap; transition: color .15s ease; }
.background-control:hover { color: var(--ink); }
/* Native pause keeps a 44px pointer target below the disclosure. */
.background-control::after { content: ''; position: absolute; inset: 0 -15px -20px; }
.background-control::before { content: ''; width: 7px; height: 9px; border-inline: 2px solid currentColor; }
.background-pause:checked ~ main .landing-art, .background-pause:checked ~ main .landing-art * { animation-play-state: paused !important; }
.background-pause:checked ~ main .background-control::before { width: 9px; height: 9px; border: 1px solid currentColor; background: currentColor; }
.background-pause:focus-visible ~ main .background-control { outline: 3px solid var(--focus); outline-offset: 5px; }
@media (max-width: 850px) {
  .background-control { min-width: 14px; justify-content: center; }
}
/* Motion ignores prefers-reduced-motion by owner decision; the native control is the opt-out. */
@media print { .landing-art, .background-pause, .background-control, .verified-note { display: none; } }

/* Verification disclosure: a caption at the bottom right of main, above the footer rule; its card opens upward.
   The caption carries its own white plate so it stays legible over the finished mesh. */
.animation-controls { position: absolute; right: max(56px, calc(50% - 500px)); bottom: 1.25rem; z-index: 2; font: italic .9375rem/1.4 var(--serif); color: var(--muted); }
.verified-note { position: relative; }
.animation-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.animation-controls .background-control { font: .75rem/1.6 var(--mono); padding-inline: .25rem; background: #fff; }
.verified-note summary { cursor: pointer; list-style: none; display: inline-flex; gap: .45rem; align-items: center; padding: .2rem .55rem; margin-right: -.55rem; background: #fff; }
.verified-note summary::-webkit-details-marker { display: none; }
.verified-note summary .mark { color: var(--blue); font: 1.05rem/1 var(--sans); }
.verified-note summary:hover { color: var(--ink); }
/* The card scrolls within the room above the caption: viewport less the caption's distance to the page bottom
   (151 px desktop, ≤ 113 px portrait, ≤ 99 px landscape), the gap and a safe-area allowance. */
.verified-card { position: absolute; right: 0; bottom: calc(100% + .5rem); width: min(26rem, calc(100vw - 2.5rem)); max-height: calc(min(100dvh, 1080px) - 176px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px -16px rgba(20,45,66,.25); padding: 1.125rem 1.25rem; font: .875rem/1.55 var(--sans); color: var(--ink); text-align: left; }
.verified-card ul { margin: .625rem 0; padding-left: 1.1rem; }
.verified-card li { margin: .2rem 0; }
.verified-card p + p { margin-top: .5rem; }
@media (max-width: 1100px) { .animation-controls { right: 32px; } }
/* Portrait phones: the caption takes its own row under the hero, so it never meets the links. */
@media (max-width: 640px) { .animation-controls { position: relative; right: auto; bottom: auto; align-self: flex-end; margin: 0 20px .5rem 0; font-size: .875rem; } .verified-note summary { margin-right: 0; padding-right: 0; } .verified-card { right: 0; max-height: calc(100dvh - 160px); } }
@media (max-width: 640px) and (max-height: 600px) { .animation-controls { font-size: .75rem; margin-bottom: .25rem; } .verified-note summary { padding-block: 0; } }
/* Landscape phones keep the overlay but show only the mark. */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) { .animation-controls { position: absolute; right: 20px; bottom: .5rem; align-self: auto; margin: 0; } .verified-note summary .label { display: none; } .verified-card { max-height: calc(100dvh - 144px); } }

/* Fixed geometry preserves the desktop arrow across device fonts. */
.home .link-arrow { display: inline-block; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; }

/* The study draws on canvas in the original xMaxYMid crop, under the responsive overlays. */
.landing-art-K7 { position: absolute; inset: 0 max(56px, calc(50% - 500px)); z-index: -1; }
.laK7-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.laK7-veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,.8) 0, rgba(255,255,255,.8) 52%, rgba(255,255,255,0) 68%); }
.laK7-fade { position: absolute; left: 0; right: 0; height: 48px; }
.laK7-fade-top { top: 0; background: linear-gradient(to bottom, #fff, rgba(255,255,255,0)); }
.laK7-fade-bottom { bottom: 0; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.laK7-side { position: absolute; top: 0; bottom: 0; width: 48px; }
.laK7-side-left { left: 0; background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.laK7-side-right { right: 0; background: linear-gradient(to left, #fff, rgba(255,255,255,0)); }
.home .background-control { visibility: hidden; }
.home[data-video-state] .background-control { visibility: visible; }
.home[data-video-state="complete"] .background-control { cursor: default; }
@media (max-width: 1100px) { .landing-art-K7 { inset: 0 32px; } }
@media (max-width: 640px) { .landing-art-K7 { inset: 0 20px; } }
/* Mobile text spans the full field, so extend the desktop-strength veil across it. */
@media (max-width: 850px) { .laK7-veil { background: rgba(255,255,255,.8); } }
