@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("type/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("type/instrument-serif-italic-latin.woff2") format("woff2");
}
:root {
  --paper: #f6f5ef;
  --ink: #091726;
  --accent-ink: #ad480f;
  --orange: #ff7a1a;
  --muted: #465460;
  --rule: #10263b28;
  --gutter: clamp(24px, 5vw, 88px);
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font: 100%/1.5 "DM Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(1600px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.landing { position: relative; }
.cover, .hero { background-color: var(--paper); color: var(--ink); }
.mast { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.logo { display: block; width: clamp(107px, 9vw, 148px); }
.logo svg { display: block; width: 100%; height: auto; }
.mast nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: .92rem; }
.contact-nav { gap: 9px; }
.contact-nav span { color: var(--accent-ink); font-size: 1.15em; }
.mast nav a:hover, .contact-email:hover { color: var(--accent-ink); }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-wrap { position: relative; min-height: clamp(595px, calc(90svh - 76px), 830px); display: grid; align-items: center; pointer-events: none; }
.opening { width: fit-content; max-width: 54%; padding: clamp(35px, 5vw, 78px) 0 clamp(48px, 6.5vw, 100px); }
.opening :is(a,h1,p) { pointer-events: auto; }
.category { display: flex; align-items: center; gap: .85em; margin: 0 0 clamp(19px, 2.3vw, 34px); color: var(--muted); font-size: .73rem; font-weight: 600; letter-spacing: .115em; text-transform: uppercase; }
.category > span { display: block; width: 27px; height: 2px; background: var(--orange); }
h1 { font-size: clamp(3.8rem, 6.8vw, 7.7rem); line-height: .96; font-weight: 500; letter-spacing: -.052em; }
h1 span, h1 em { display: block; }
h1 em { margin-top: .075em; color: var(--accent-ink); font: italic 1.01em/.99 "Instrument Serif", Baskerville, Georgia, serif; letter-spacing: -.028em; }
.pitch { margin-top: clamp(22px, 2.1vw, 33px); }
.pitch p { max-width: 43ch; font-size: clamp(1rem, 1.27vw, 1.2rem); line-height: 1.55; color: #354453; text-wrap: pretty; }
.book { display: inline-flex; align-items: center; gap: 1.8rem; min-height: 51px; margin-top: 26px; padding: .72rem 1.12rem .72rem 1.28rem; background: var(--orange); color: #141910; border-radius: 5px; font-size: 1rem; font-weight: 650; }
.book:hover, .book:focus-visible { background: #ff9c59; }
.arrow { font: 1.32rem/1 Arial, sans-serif; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 59%; z-index: -1; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 27%); }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% 46%; }
.hero-lens { display: block; width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-lens { transform: translate(var(--view-x, 0px), var(--view-y, 0px)) scale(1.028); transition: transform 420ms ease-out; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-art img { animation: sculpture-shift linear both; animation-timeline: view(); animation-range: exit 0% exit 95%; }
    @keyframes sculpture-shift { from { transform: scale(1); } to { transform: translateY(3%) scale(1.09); } }
  }
}

.window-section { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--rule); background: radial-gradient(ellipse at 78% 74%, #f0eee5, transparent 64%), var(--paper); }
.window-inner { min-height: clamp(590px, 48vw, 740px); position: relative; z-index: 1; padding: clamp(45px, 5.3vw, 82px) 0 clamp(290px, 23vw, 365px); pointer-events: none; }
.window-copy { max-width: min(55%, 690px); }
.window-copy h2, .contact-line h2 { font-size: clamp(2.8rem, 5.25vw, 5.8rem); line-height: 1.04; font-weight: 500; letter-spacing: -.058em; text-wrap: balance; }
.window-copy h2 span, .contact-line h2 span { color: var(--accent-ink); }
.window-copy p { max-width: 44ch; margin-top: 18px; font-size: clamp(1.025rem, 1.27vw, 1.2rem); color: #344152; line-height: 1.55; text-wrap: pretty; }
.window-copy h2, .window-copy p { pointer-events: auto; }
#rail-hint { display: flex; align-items: center; gap: 10px; margin-top: 19px; font-size: .86rem; color: #41524e; }
#rail-hint span { display: inline-grid; width: 29px; height: 26px; place-items: center; border: 1px solid #87948d; border-radius: 50%; font-size: .95rem; }
#contact { background: #faf9f5; color: var(--ink); border-top: 1px solid var(--rule); }
.contact-wrap { padding-block: clamp(38px, 6vw, 90px) 18px; }
.contact-line, .colophon { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-line { padding-bottom: clamp(34px, 5vw, 75px); }
.contact-line h2 { font-size: clamp(3rem, 6.25vw, 7rem); }
.contact-email { display: inline-flex; align-items: center; gap: 15px; font-size: clamp(1.12rem, 2.1vw, 2.1rem); padding-block: 6px; border-bottom: 1px solid currentColor; }
.contact-actions { display: flex; position: relative; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.email-arrow { font-family: Arial, sans-serif; color: var(--accent-ink); }
.copy-email { min-height: 44px; padding: .5rem .85rem; border: 1px solid #acb1ad; border-radius: 5px; background: transparent; color: var(--ink); font: 500 .875rem/1.3 "DM Sans", Arial, sans-serif; cursor: pointer; }
.copy-email:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.copy-email:hover { border-color: var(--ink); }
.colophon { border-top: 1px solid var(--rule); padding-top: 11px; font-size: .82rem; flex-wrap: wrap; row-gap: 0; }
.footer-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.colophon a { padding-block: 8px; }
.colophon a:hover, .settings-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.settings-link { min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.privacy .settings-link { color: var(--accent-ink); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.settings-link:focus-visible, .choice-actions button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.analytics-choice { background: #edece5; border-bottom: 1px solid var(--rule); }
.analytics-choice:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.choice-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 13px; }
.choice-copy { flex: 1 1 23rem; }
.choice-copy h2 { font-size: 1rem; line-height: 1.35; font-weight: 650; }
.choice-copy p { margin-top: 3px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.choice-copy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.choice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-actions button { flex: 1; min-height: 44px; min-width: 5.5rem; padding: .5rem .8rem; font: 550 .94rem/1.3 "DM Sans", Arial, sans-serif; color: var(--ink); background: var(--paper); border: 1px solid #88918b; border-radius: 5px; cursor: pointer; }
.choice-actions button:hover { border-color: var(--ink); background: #fff; }
::selection { background: #ffba88; color: #081727; }

.privacy { display: none; width: min(64ch, calc(100% - 44px)); margin-inline: auto; padding: clamp(20px, 4vw, 56px) 0 64px; }
.privacy:target { display: block; }
.privacy:target ~ .landing { display: none; }
.privacy:focus, .landing:focus { outline: none; }
.privacy-back { display: inline-flex; gap: .5em; align-items: center; min-height: 44px; font-weight: 550; }
.privacy header { margin: clamp(24px, 6vh, 56px) 0 22px; padding-bottom: 18px; border-bottom: 1px solid #142a3a22; }
.privacy h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.privacy h2 { margin: 1.6em 0 .35em; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; letter-spacing: -.02em; }
.privacy p { margin: 0 0 .75em; color: #364655; font-size: 1.0625rem; line-height: 1.6; }
.privacy .privacy-date { margin: 10px 0 0; color: var(--muted); font-size: .875rem; }
.privacy p a, .privacy-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.privacy:target { min-height: 100svh; }
.privacy h1 { line-height: 1.07; }
/* The switches live on the page ground. Only the moving rails accept input. */
.art, .scene, #route-field { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.art { z-index: 0; overflow: hidden; }
.art::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .038;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23g)' d='M0 0h100v100H0z'/%3E%3C/svg%3E"); }
.axis { fill: none; stroke: #84948e; stroke-width: .9; stroke-dasharray: 1.5 5.5; opacity: .63; }
.track-material { fill: none; stroke-linejoin: round; stroke-linecap: butt; }
.track-shadow { stroke: #60786f; stroke-width: 14; opacity: .08; transform: translate(.5px, 2.8px); }
.track-side { stroke: #bfc9c6; stroke-width: 12; }
.track-rim { stroke: #ecf0eb; stroke-width: 10.4; }
.track-bed { stroke: #c7d2cc; stroke-width: 5.3; }
.track-center { stroke: #e7ece6; stroke-width: 3.8; }
.outlet.uncoupled .track-side { stroke: #cbd3cf; }
.outlet.uncoupled .track-bed { stroke: #d5dcd5; }
.movable .track-side { stroke: #8f9e9b; stroke-width: 12.8; }
.movable .track-rim { stroke: #f8f9f2; }
.movable .track-bed { stroke: #b8c5be; stroke: color-mix(in srgb, #b8c5be, #dda273 var(--bypass-tint, 0%)); }
#shutter-piece { opacity: .71; }
.asset-label { position: absolute; left: var(--asset-x, 88%); top: var(--asset-label-y, 55%); transform: translate(-50%, calc(var(--fall, 0) * var(--fallen-label-gap, 0px))); color: #465953; white-space: nowrap; font: 500 .81rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .018em; }
.asset-label:is([data-phase="fall"], [data-phase="down"]) { color: #a82830; }
.asset-label[data-phase="recover"] { color: #785154; }
.mount-edge { opacity: calc(var(--damage, 0) * .62); }
.failed-edge, #asset-fissure { opacity: var(--damage, 0); }
#asset-base .damage-wash { opacity: calc(var(--damage, 0) * .62); }
#asset-top .damage-wash { opacity: calc(var(--damage, 0) * .39); }
.marble-vein { fill: none; stroke-width: .46; stroke: #bccbd0; opacity: .65; }
.round { transform: var(--round-transform, scale(.82)); }
.handle-material { transform: var(--handle-transform, scale(.85)); }
.switch { outline: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.switch.is-held { cursor: grabbing; }
.switch .hit-rail { fill: none; stroke: transparent; stroke-width: 44px; vector-effect: non-scaling-stroke; pointer-events: stroke; }
.switch .knob-hit { fill: transparent; stroke: transparent; stroke-width: 34px; vector-effect: non-scaling-stroke; pointer-events: all; touch-action: none; }
@media (pointer: coarse) { .switch .hit-rail { pointer-events: none; } }
.focus-ring { fill: none; stroke: #c96123; stroke-width: 1; opacity: 0; }
.switch:is(:focus-visible,.is-held) .focus-ring { opacity: .9; }
@media (hover: hover) { .switch:hover .focus-ring { opacity: .65; } }
.shaft, .shaft-light { fill: none; stroke-linecap: round; }
.shaft { stroke: #a0ada5; stroke-width: 4; }
.shaft-light { stroke: #f6f7ed; stroke-width: 1.8; }
.requested { fill: none; stroke: #d77a43; stroke-width: 1.3; stroke-dasharray: 2 5; opacity: .8; }
.skip,.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 5; background: white; top: 8px; left: 8px; padding: 8px; }
@media (max-width: 760px) {
  :root { --gutter: max(clamp(18px, 5.6vw, 38px), env(safe-area-inset-left), env(safe-area-inset-right)); }
  .cover { position: sticky; top: 0; z-index: 3; padding-top: env(safe-area-inset-top); }
  .mast { min-height: 56px; flex-wrap: wrap; column-gap: 12px; }
  .logo { width: clamp(88px, 23vw, 112px); min-height: 48px; display: inline-flex; align-items: center; }
  .mast nav { gap: clamp(8px, 2.5vw, 18px); }
  .mast nav a { justify-content: center; padding-inline: 4px; min-height: 48px; font-size: .875rem; }
  .contact-nav { gap: 5px; }
  #main, #patch-window, #contact { scroll-margin-top: calc(60px + env(safe-area-inset-top)); }
  .hero-wrap { min-height: 0; display: block; }
  .opening { max-width: 100%; padding: clamp(25px, 6.4vw, 38px) 0 0; }
  .category { margin-bottom: 15px; font-size: .75rem; letter-spacing: .09em; }
  .opening h1 { font-size: clamp(2.5rem, calc(1.3rem + 6.9vw), 4.45rem); line-height: .99; }
  .opening h1 span { display: inline; }
  .opening h1 em { margin-top: 2px; }
  .pitch { margin-top: 17px; }
  .pitch p { max-width: 45ch; font-size: 1.0625rem; line-height: 1.48; }
  .book { min-height: 50px; margin-top: 18px; justify-content: space-between; }
  .hero-art { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.85; max-height: 345px; margin-top: 8px; mask-image: linear-gradient(180deg, transparent, #000 12%); }
  .hero-art img { object-position: center; animation: none; }
  .window-inner { min-height: 0; padding: clamp(32px, 7vw, 46px) 0 0; }
  .window-copy { max-width: 100%; }
  .window-copy h2, .contact-line h2 { font-size: clamp(2.3rem, calc(1.35rem + 5.2vw), 3.3rem); }
  .window-copy p { margin-top: 13px; }
  #rail-hint { margin-top: 17px; line-height: 1.45; font-size: .9rem; }
  #rail-hint span { flex-shrink: 0; }
  .window-section .art { position: relative; inset: auto; height: clamp(255px, 57vw, 330px); }
  .asset-label { font-size: .8125rem; }
  .contact-wrap { padding-top: 35px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .contact-line { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 25px; }
  .contact-actions { width: 100%; gap: 8px 16px; }
  .contact-email { min-height: 48px; font-size: 1.125rem; }
  .colophon a { display: inline-flex; min-height: 44px; align-items: center; }
  .privacy { width: min(64ch, calc(100% - var(--gutter) * 2)); padding-top: max(12px, env(safe-area-inset-top)); }
}
@media (max-width: 480px) {
  .choice-actions { width: 100%; }
  .book { width: 100%; }
  .opening { width: 100%; }
  .contact-actions { justify-content: space-between; }
}
@media (max-width: 360px) {
  .mast { column-gap: 5px; }
  .mast nav { gap: 5px; }
  .contact-nav span { display: none; }
}
@media (max-height: 500px) {
  .cover { position: relative; }
  #main, #patch-window, #contact { scroll-margin-top: 0; }
}
@media (min-width: 761px) and (max-width: 960px) and (max-height: 550px) {
  .mast { min-height: 54px; }
  .hero-wrap { min-height: 0; }
  .opening { padding-block: 16px 24px; }
  .opening h1 { font-size: clamp(2.65rem, 5.25vw, 3.8rem); }
  .category { margin-bottom: 10px; }
  .pitch, .book { margin-top: 12px; }
}
