/*
* The site must remain operable at 320/360/390 mobile, 720/768/820 tablet,
* 1024/1280 laptop and 1440+/ultrawide desktop.
* Forms, actions and dossiers remain vertical and touch-accessible.
*/
@media (max-width:1420px) {
  .site-navigation {
    gap:18px
  }
  .site-header__inner {
    gap:18px
  }
  .site-header__actions {
    gap:10px
  }
  .hero__title-top {
    font-size:clamp(4.75rem,12vw,10.625rem)
  }
  .hero__content {
    padding-top:160px
  }
}
@media (max-width:1220px) {
  .site-header__inner {
    width:calc(100% - 42px)
  }
  .site-navigation {
    gap:14px
  }
  .site-navigation a {
    font-size:0.875rem
  }
  .site-header__actions .sound-control>span {
    display:none
  }
  .site-header__actions .sound-control {
    padding:6px
  }
  .brand__word {
    font-size:1.3125rem
  }
  .hero__title-top {
    font-size:clamp(4.5rem,12vw,9.125rem)
  }
  .dossier-card {
    min-height:410px
  }
  .dossier-card__bottom {
    font-size:1.0625rem
  }
  .world-card__body {
    padding:24px 20px 30px
  }
  .reader-machine {
    border-width:9px
  }
  .gate-section__layout {
    gap:50px
  }
}
@media (max-width:1050px) {
  .site-navigation {
    position:fixed;
    top:var(--header-height);
    right:0;
    left:0;
    display:none;
    background:rgba(13,17,18,.985);
    flex-direction:column;
    align-items:stretch;
    padding:22px 36px 34px;
    border-bottom:1px solid var(--hairline-strong);
    box-shadow:0 20px 50px rgba(0,0,0,.55);
    max-height:calc(100svh - var(--header-height));
    overflow-y:auto;
    gap:0
  }
  .site-navigation.is-open {
    display:flex
  }
  .site-navigation a {
    font-size:0.875rem;
    padding:17px 8px;
    border-bottom:1px solid var(--hairline)
  }
  .nav-toggle {
    display:flex
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform:translateY(6px) rotate(45deg)
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity:0
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform:translateY(-6px) rotate(-45deg)
  }
  .hero {
    min-height:max(740px,100svh)
  }
  .hero__corridor {
    background-position:58% center
  }
  .hero__title-top {
    font-size:clamp(4.375rem,12.7vw,8.4375rem)
  }
  .hero__title-bottom {
    font-size:clamp(1.0625rem,2.5vw,1.9375rem)
  }
  .hero__fugitive-stamp {
    right:8%;
    top:42%
  }
  .commons__grid,.reader-showcase__layout,.gate-section__layout {
    gap:45px
  }
  .world-grid {
    gap:15px
  }
  .dossier-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px
  }
  .dossier-card {
    min-height:420px
  }
  .dossier-card__monogram {
    font-size:11.25rem
  }
  .book-display__layout {
    gap:45px
  }
  .book-display__art {
    max-width:420px
  }
  .reader-machine__page {
    min-height:490px
  }
  .section-header--split {
    gap:35px
  }
}
@media (max-width:860px) {
  :root {
    --header-height:78px;
    --container-gutter:30px;
    --section-padding:95px
  }
  .hero__content {
    gap:45px
  }
  .hero__title-top {
    font-size:clamp(3.9375rem,13vw,6.875rem)
  }
  .hero__title-bottom {
    letter-spacing:.13em
  }
  .hero__thesis {
    font-size:1.125rem
  }
  .hero__actions .action {
    min-width:0
  }
  .commons__grid,.reader-showcase__layout,.gate-section__layout {
    grid-template-columns:1fr
  }
  .commons__copy {
    max-width:680px
  }
  .kitchen-frame {
    height:570px;
    max-width:720px;
    width:100%
  }
  .reader-machine {
    max-width:700px;
    width:100%;
    transform:none
  }
  .world-grid {
    grid-template-columns:1fr 1fr
  }
  .world-card--third {
    grid-column:1/-1
  }
  .world-card--third .world-card__art {
    height:220px
  }
  .world-card--third .world-card__body p {
    max-width:60ch
  }
  .book-display__layout {
    grid-template-columns:1fr;
    gap:75px
  }
  .book-display__art {
    width:min(70%,440px)
  }
  .book-display__editions {
    width:100%
  }
  .gate-section__intro {
    max-width:720px
  }
  .gate-panel {
    max-width:700px;
    width:100%
  }
  .section-header--split {
    grid-template-columns:1fr;
    gap:28px
  }
  .discrepancy__surface {
    grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr);
    padding:25px 18px;
    gap:8px
  }
  .evidence-file {
    min-height:405px
  }
  .evidence-file__redactions {
    height:95px
  }
  .evidence-file__stamp {
    bottom:35px
  }
}
@media (max-width:640px) {
  :root {
    --header-height:72px;
    --container-gutter:20px;
    --section-padding:85px
  }
  .site-header__inner {
    width:calc(100% - 28px)
  }
  .brand__glyph {
    width:36px;
    height:36px;
    font-size:1.6875rem
  }
  .brand__cut {
    font-size:1.5625rem;
    right:5px
  }
  .brand__word {
    font-size:1.1875rem;
    letter-spacing:.12em
  }
  .brand__word small {
    font-size:0.875rem
  }
  .site-header__actions .header-cta {
    display:none
  }
  .site-header__actions {
    gap:5px
  }
  .hero {
    min-height:790px
  }
  .hero__content {
    padding-top:123px;
    padding-bottom:27px;
    gap:50px
  }
  .hero__eyebrow {
    font-size:0.875rem
  }
  .hero__case {
    display:none
  }
  .hero__title-top {
    font-size:clamp(3.1875rem,13.1vw,5.3125rem);
    letter-spacing:-.095em
  }
  .hero__title-bottom {
    font-size:clamp(0.875rem,3.7vw,1.4375rem);
    line-height:1.3;
    letter-spacing:.09em;
    margin-top:16px
  }
  .hero__overline {
    font-size:0.875rem;
    letter-spacing:.19em
  }
  .hero__thesis {
    font-size:1.0625rem;
    margin-top:20px
  }
  .hero__line {
    margin-top:23px
  }
  .hero__actions {
    flex-direction:column;
    align-items:stretch
  }
  .hero__actions .action {
    width:100%
  }
  .hero__foot {
    gap:12px;
    align-items:start;
    flex-wrap:wrap;
    font-size:0.875rem;
    line-height:1.8;
    padding-top:18px
  }
  .hero__foot>span:nth-child(2) {
    display:none
  }
  .hero__corner-mark {
    display:none
  }
  .hero__fugitive-stamp {
    top:43%;
    right:-25%;
    font-size:5.375rem;
    opacity:.5
  }
  .hero__corridor {
    background-position:63% center
  }
  .display-heading {
    font-size:clamp(2.6875rem,10.3vw,4rem)
  }
  .interstitial {
    padding:86px 0
  }
  .interstitial blockquote {
    font-size:clamp(1.6875rem,6.4vw,2.75rem)
  }
  .section-header {
    margin-bottom:35px
  }
  .commons__copy {
    gap:22px
  }
  .kitchen-frame {
    height:400px
  }
  .kitchen-frame__window {
    width:40%;
    height:55%;
    right:6%
  }
  .fan {
    transform:translateX(-50%) scale(.73);
    transform-origin:center top;
    left:49%
  }
  .sugar-jar {
    transform:rotate(-2deg) scale(.8);
    transform-origin:bottom left
  }
  .mug {
    transform:scale(.78);
    transform-origin:bottom left
  }
  .kitchen-frame__table {
    bottom:-19%;
    height:42%
  }
  .paper-slip {
    width:107px;
    height:51px
  }
  .paper-slip span {
    font-size:1.25rem
  }
  .kitchen-frame__caption {
    font-size:0.875rem;
    left:10px;
    right:10px
  }
  .discrepancy__toolbar {
    padding:16px;
    align-items:start
  }
  .discrepancy__toolbar .micro {
    font-size:0.875rem
  }
  .discrepancy__controls {
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,1fr)
  }
  .discrepancy__controls button {
    font-size:0.875rem;
    padding:9px 4px
  }
  .discrepancy__surface {
    display:flex;
    flex-direction:column;
    padding:30px 24px;
    gap:22px
  }
  .discrepancy__surface::after {
    display:none
  }
  .evidence-file,.evidence-file--beta {
    width:100%;
    max-width:420px;
    min-height:355px;
    transform:rotate(-1deg)
  }
  .evidence-file--beta {
    transform:rotate(1deg)
  }
  .evidence-file__redactions {
    height:90px;
    margin-top:17px
  }
  .evidence-file h3 {
    font-size:1.875rem
  }
  .evidence-file__stamp {
    font-size:1.6875rem;
    bottom:33px
  }
  .discrepancy__between>span {
    font-size:2.1875rem
  }
  .discrepancy__between small {
    font-size:0.875rem
  }
  .discrepancy__surface[data-active="alpha"] .evidence-file--beta,.discrepancy__surface[data-active="beta"] .evidence-file--alpha {
    display:none
  }
  .discrepancy__bottom {
    padding:15px;
    font-size:0.875rem
  }
  .world-grid {
    grid-template-columns:1fr;
    gap:14px
  }
  .world-card--third {
    grid-column:auto
  }
  .world-card__art,.world-card--third .world-card__art {
    height:250px
  }
  .world-card__body {
    padding:22px 24px 30px
  }
  .dossier-grid {
    grid-template-columns:1fr 1fr;
    gap:10px
  }
  .dossier-card {
    min-height:340px;
    padding:15px
  }
  .dossier-card__record {
    font-size:0.875rem
  }
  .dossier-card__monogram {
    font-size:clamp(4.0625rem,17vw,7.5rem)
  }
  .dossier-card__bottom {
    font-size:clamp(0.875rem,3.4vw,1.1875rem)
  }
  .dossier-card__bottom small {
    font-size:0.875rem
  }
  .dossier-card__plus {
    right:14px;
    bottom:12px
  }
  .personnel__note {
    font-size:0.875rem;
    line-height:1.6
  }
  .reader-showcase__layout {
    gap:45px
  }
  .reader-machine {
    border-width:6px
  }
  .reader-machine__page {
    min-height:490px
  }
  .reader-machine__scene {
    height:130px
  }
  .reader-machine__stamp {
    font-size:3.75rem
  }
  .reader-machine__text {
    padding:23px
  }
  .reader-machine__text h3 {
    font-size:2rem
  }
  .reader-machine__text>p:not(.reader-machine__attribution) {
    font-size:var(--sample-font-size,1.125rem)
  }
  .reader-machine__footer {
    padding:0 10px;
    gap:10px
  }
  .reader-machine__footer span:first-child {
    display:none
  }
  .book-display__art {
    width:min(83%,390px)
  }
  .edition-card {
    grid-template-columns:1fr auto;
    gap:8px 12px
  }
  .edition-card__number {
    grid-column:1/-1
  }
  .edition-card h3 {
    font-size:1.6875rem
  }
  .edition-card__right strong {
    font-size:1.3125rem
  }
  .edition-card__status {
    font-size:0.875rem
  }
  .edition-card>a {
    grid-column:1/-1
  }
  .gate-panel__heading {
    padding:16px;
    height:58px
  }
  .gate-panel__heading .micro {
    font-size:0.875rem
  }
  .gate-panel iframe {
    min-height:470px;
    height:580px
  }
  .gate-panel__bottom {
    padding:13px;
    align-items:flex-start;
    flex-direction:column
  }
  .gate-panel__message {
    padding:11px 13px 20px
  }
  .gate-panel__continue {
    padding:18px
  }
  .site-footer__grid {
    grid-template-columns:1fr 1fr;
    gap:35px
  }
  .site-footer__grid>div:first-child {
    grid-column:1/-1
  }
  .site-footer__end {
    flex-direction:column;
    gap:13px
  }
  .dossier-dialog__bottom {
    align-items:flex-start;
    flex-direction:column
  }
  .closing h2 {
    font-size:clamp(3.625rem,12vw,5.75rem)
  }
}
@media (max-width:390px) {
  :root {
    --container-gutter:16px
  }
  .site-header__inner {
    width:calc(100% - 20px)
  }
  .brand {
    gap:9px
  }
  .brand__word {
    font-size:1rem
  }
  .brand__word small {
    font-size:0.875rem
  }
  .hero__title-top {
    font-size:clamp(2.8125rem,12.9vw,3.375rem)
  }
  .hero__title-bottom {
    font-size:0.875rem
  }
  .hero__thesis {
    font-size:1rem
  }
  .dossier-grid {
    grid-template-columns:1fr
  }
  .dossier-card {
    min-height:300px
  }
  .dossier-card__monogram {
    font-size:8.125rem
  }
  .gate-panel__heading .micro {
    font-size:0.875rem
  }
  .receipt-indicator {
    font-size:0.875rem
  }
}
@media (min-width:1800px) {
  :root {
    --max-width:1550px;
    --container-gutter:90px
  }
  .hero__content {
    max-width:1610px
  }
  .hero__title-top {
    font-size:12.5rem
  }
  .hero__title-bottom {
    font-size:2.625rem
  }
  .kitchen-frame {
    height:690px
  }
  .dossier-card {
    min-height:490px
  }
  .reader-machine__page {
    min-height:590px
  }
}

/* Readable type (14px floor) needs room on the narrowest phones: the name may wrap and shrink before the header
   pushes past the screen edge, and the book caption wraps instead of running off the side. */
.book-display__caption {
  white-space:normal;
  right:0;
  letter-spacing:.12em
}
@media (max-width:420px) {
  .site-header__inner {
    gap:10px
  }
  .brand {
    flex:1 1 auto;
    min-width:0
  }
  .brand__word {
    white-space:normal;
    letter-spacing:.06em;
    min-width:0
  }
  .site-header__actions {
    gap:2px
  }
  .site-header__actions .sound-control>span {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap
  }
}

/* The live Driftless form measures about 885px wide and 909px on a phone (name, email, number, shipping address,
   submit). Below that height its submit button hides inside a scroll box, so the frame is sized past it. */
.gate-panel iframe {
  height:1000px;
  min-height:1000px
}
@media (max-width:480px) {
  .gate-panel iframe {
    height:1060px;
    min-height:1060px
  }
}
