/* ============================================================
   deckhaus — mobile layer
   Loaded last, after every desktop sheet. Everything lives inside
   a media query or a hover/pointer query, so the desktop design is
   byte-for-byte untouched. Breakpoints: 860 (phone+small tablet),
   560 (phone), 400 (small phone).
   ============================================================ */

/* ---------- 1 · iOS / touch foundations (all widths) ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (pointer:coarse){
  /* Safari zooms the page when a focused field is under 16px */
  input,textarea,select{font-size:16px!important}
  /* no sticky hover states left behind after a tap */
  a,button,summary,[role=tab],.rev,.rcard,.wtile,.bcard,.crow,.scl,.ixrow{-webkit-tap-highlight-color:rgba(183,201,74,.18)}
  .rail{cursor:default;-webkit-overflow-scrolling:touch}
}
@media (hover:none){
  .wtile:hover,.bcard:hover,.rcard:hover,.crow:hover,.rev:hover,.dh-card:hover{transform:none!important}
  .slot:hover .fan,.slot:hover .fanA,.slot:hover .fanB,.slot:hover .fanC,.slot:hover .fanbg{transform:none!important}
}

/* ---------- 2 · phone + small tablet ---------- */
@media (max-width:860px){
  html,body{overflow-x:clip;max-width:100%}
  :root{--page-margin:20px}
  img,svg,video{max-width:100%}

  /* nav — one bar, real 44px targets, safe-area aware */
  .nav{top:0;padding-top:env(safe-area-inset-top)}
  .nav-in{margin:0;border-radius:0;height:58px;padding:0 14px 0 16px;background:color-mix(in srgb,var(--ink-900) 94%,transparent);border-left:0;border-right:0}
  .nav .avail{display:none}
  .nav-links{display:none}
  .nav-btn{display:inline-flex;width:44px;height:44px}
  .nav-in .btn-primary{height:44px!important;padding:0 16px!important;font-size:14px!important}
  .nav-sheet{padding:10px 16px calc(14px + env(safe-area-inset-bottom));gap:0}
  .nav-sheet a{display:flex;align-items:center;min-height:52px;font-size:17px;border-bottom:1px solid rgba(244,244,239,.1)}
  .nav-sheet a:last-child{border-bottom:0}
  .wordmark{font-size:16px}

  /* hero — the nowrap headline is the single biggest desktop-only assumption */
  #top{padding-top:0}
  #top .wrap{padding:calc(92px + env(safe-area-inset-top)) 20px 54px!important;text-align:center!important}
  #top h1{white-space:normal!important;font-size:clamp(34px,9.2vw,46px)!important;line-height:1.06!important;margin:20px auto 0!important;text-align:center;text-wrap:balance}
  #top h1 span[style*="font-size:.82em"]{font-size:1em!important}
  #top .eyebrow{justify-content:center!important;font-size:11.5px!important}
  #top p{font-size:16.5px!important;line-height:1.55!important;margin:20px auto 0!important;max-width:34ch!important;text-align:center}
  #top .wrap>div[style*="display:flex"]{flex-direction:column;align-items:stretch!important;gap:10px!important;margin:26px 0 18px!important}
  #top .btn{width:100%;justify-content:center;height:52px!important;font-size:16px!important}
  #top .mono{text-align:center!important;font-size:10.5px!important;letter-spacing:.14em!important}
  /* rotor: let it wrap to its own line without a width animation jump */
  .rotorw{transition:none;max-width:100%}

  /* hero collage — two wide columns: covers you can actually read, and a track
     tall enough that the loop never leaves a gap behind the headline */
  .hwall{grid-template-columns:repeat(2,1fr)!important;gap:10px!important;opacity:.62}
  .hwall img{border-radius:5px;margin-bottom:10px;border-color:rgba(255,255,255,.12)}

  /* trusted-by: one continuously moving line of smaller marks */
  .dh-marq{display:flex;width:calc(100% + 40px);margin:0 -20px;overflow:hidden;gap:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
  .dh-marq-t{display:flex;flex:none;align-items:center;gap:34px;padding-right:34px;animation:dh-marq 26s linear infinite;will-change:transform}
  .dh-marq:has(:hover) .dh-marq-t,.dh-marq.paused .dh-marq-t{animation-play-state:paused}
  .dh-marq-t>span{flex:none;display:flex;align-items:center;justify-content:center;height:40px}
  .dh-marq-t img{height:20px!important;width:auto;max-width:none!important;opacity:.6;filter:grayscale(1)}
  .dh-marq-t img[alt="Rolex"]{height:38px!important}
  .dh-marq-t img[alt="Mango"]{height:15px!important}
  .dh-marq-t img[alt="TEDx"]{height:17px!important}
  .dh-marq-t img[alt="On"]{height:18px!important}
  .dh-marq-t img[alt="JURA"]{height:22px!important}
  @keyframes dh-marq{to{transform:translateX(-100%)}}
  @media (prefers-reduced-motion:reduce){.dh-marq-t{animation:none}.dh-marq{overflow-x:auto}}
  .trustline{font-size:10px!important;letter-spacing:.2em!important;margin-bottom:16px!important}

  /* every CTA-like link gets a 44px touch target without shifting its type */
  .ghostlink,.back,.dh-flink,.hrow,.ixrow>*,a.lk{min-height:44px;display:inline-flex;align-items:center}
  .ghostlink{padding:9px 0}
  .hrow,.ixrow>*{display:grid}
  /* small mono labels read a notch larger on a phone */
  .eyebrow,.mono,.sxi .sl,figcaption{font-size:11.5px!important}
  .eyebrow{letter-spacing:.14em!important}

  /* generic section rhythm */
  section{padding-left:0;padding-right:0}
  .sxi{gap:12px}
  .sxi .sn{font-size:11px}
  h2.h-display,.hsplit{font-size:clamp(27px,7.4vw,38px)!important;max-width:none!important}
  .two-col,.cgrid3,.pcols,.pull,.mosaic,.bgrid,.sgrid,.pgrid,.stats,.phases,.f2,.qwall{grid-template-columns:1fr!important}
  .pgrid,.stats{gap:12px!important}
  .lead,.cs-lead{font-size:16.5px!important}

  /* what we do — the bento becomes a stack that keeps its hierarchy */
  .bgrid>*{grid-column:1/-1!important;min-height:0!important}
  .bcard{padding:22px!important}
  .bcard--img .bshot{position:relative!important;height:210px}
  /* the cover wall inside the "See work" card left a 10px empty margin, so the card
     border framed a gap instead of the work. Bleed it to the card edge. */
  .bcard .covwall{inset:0!important;padding:0!important;gap:6px!important;overflow:hidden!important}
  .bcard .covwall .cw{height:100%!important;flex:1 1 0!important;min-width:0}
  .bcard--ink .bimgbody,.bcard--img .bimgbody{position:relative;z-index:3}
  .bcard.bfan .bbtn{z-index:4}
  /* "See work": the copy strip is the card's own bottom edge — no inset, full width, same radius */
  .bcard.bfan{padding:0!important;min-height:340px!important;justify-content:flex-end}
  .bcard.bfan .bimgbody{display:block;align-self:stretch;width:100%;box-sizing:border-box;margin:0!important;padding:56px 22px 22px!important}

  .bcard h3{font-size:24px!important}
  .blist li{padding:11px 0!important;font-size:15px!important}

  /* try one piece */
  #try{padding:52px 0!important}
  #try .wrap{text-align:left!important;align-items:stretch!important}
  #try h2{font-size:clamp(32px,8.6vw,42px)!important;margin:18px 0 0!important;max-width:none!important}
  #try p{font-size:16.5px!important;margin:16px 0 24px!important;max-width:none!important}
  .freepill{align-self:flex-start;font-size:10px!important;letter-spacing:.12em!important;text-align:left}
  .slot{padding:22px 18px!important;width:100%}
  .slot .fanwrap{height:150px!important}
  .tryq{border-bottom:0}
  .tryq li{border-left:0!important;border-top:1px solid rgba(244,244,239,.14);width:100%;padding:11px 0!important;text-align:left}
  .tryq li:first-child{border-top:0}
  .privline{font-size:11.5px!important;line-height:1.6;text-align:left}

  /* pricing — the tab row scrolls instead of wrapping into three lines */
  .pseg{display:flex;width:100%;overflow-x:auto;border-radius:10px;padding:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .pseg::-webkit-scrollbar{display:none}
  .pseg button{flex:none;min-height:44px;font-size:10.5px;padding:0 14px}
  .plist{gap:0}
  .plist button,.plist>*{min-height:56px}
  .ppanel{position:static!important;padding:22px!important;margin-top:18px}
  .ppanel .h-display{font-size:26px!important}
  .ppanel [data-pp-price]{font-size:34px!important}

  /* work + rail */
  /* the format chain reads as a swipeable sequence, not four dead stacked crops */
  .cgal.chain{display:flex!important;grid-template-columns:none!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 20px 4px;margin:0 -20px}
  .cgal.chain::-webkit-scrollbar{display:none}
  .cgal.chain figure{flex:none!important;grid-column:auto!important;width:80vw!important;aspect-ratio:16/10!important;margin:0!important;scroll-snap-align:center;border-radius:10px}
  .cgal.chain figure:last-child{margin-right:20px!important}
  .chain figcaption{left:10px;bottom:9px;font-size:10px}
  /* shared swipe affordance for every horizontal track */
  .dh-swipe{display:flex;align-items:center;gap:12px;margin-top:14px;padding:0 20px}
  .dh-swipe .bar{position:relative;flex:1;height:1px;background:rgba(244,244,239,.18)}
  .dh-swipe .bar i{position:absolute;left:0;top:-1px;height:3px;background:var(--lime-500);border-radius:2px;transition:left .12s linear,width .12s linear}
  .dh-swipe .ct{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);flex:none}
  [data-theme="light"] .dh-swipe .bar{background:var(--border-default)}
  .rail{gap:12px;padding:0 20px 8px;scroll-snap-type:x mandatory}
  .rcard{width:78vw!important;flex:none;scroll-snap-align:center}
  .hrow{grid-template-columns:30px 1fr!important;padding:18px 20px!important;gap:12px}
  .hrow__t{font-size:22px!important}
  .hrow__m{grid-column:2;font-size:10px!important}
/* ---- Recent pieces: the desktop reel is a hover-driven index with a floating
     preview — meaningless on touch. The tile sheet becomes the mobile view, one
     card per piece, cover first. ---- */
  .reel,#wkFloat{display:none!important}
  .csheet{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;margin-top:18px}
  .csheet figure{margin:0!important;grid-column:auto!important;display:block}
  .csheet figure .fr{display:block;position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;border:1px solid rgba(244,244,239,.14);background:#0b0b0d}
  .csheet figure .fr img{width:100%;height:100%;object-fit:cover;display:block;opacity:1!important;filter:none!important;transform:none!important}
  .csheet figcaption{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:baseline;margin-top:10px;position:static!important;background:none!important;padding:0!important;backdrop-filter:none!important}
  .csheet figcaption b{font-family:var(--font-mono);font-weight:400;font-size:11px;letter-spacing:.14em;color:var(--lime-500)}
  .csheet figcaption>span{display:flex;flex-direction:column;gap:3px;font-size:16px;color:var(--paper)}
  .csheet figcaption em{font-style:normal;font-family:var(--font-mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:#8E8E98}
  /* filters: one scrollable row of real 44px targets */
  .ifil{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 20px 2px;margin:18px -20px 0}
  .ifil::-webkit-scrollbar{display:none}
  .ifil>*{flex:none;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
/* ---- Work masthead: the cover field was hidden below 760px, which gutted the page.
     Recomposed for a tall viewport: fewer, bigger covers + a vertical veil so the
     headline still reads at full contrast. ---- */
  .field{display:block!important;opacity:.62!important}
  .field figcaption{display:none}
  .field figure{width:var(--mw)!important;left:var(--mx)!important;top:var(--my)!important;transform:rotate(var(--mr,0deg))!important;animation:none!important}
  .field img{border-radius:6px;box-shadow:0 26px 60px -26px rgba(0,0,0,.95)}
  .field figure:nth-child(1){--mx:40%;--my:2%;--mw:60vw;--mr:-6deg}
  .field figure:nth-child(2){--mx:-16%;--my:17%;--mw:54vw;--mr:5deg}
  .field figure:nth-child(3){--mx:50%;--my:31%;--mw:56vw;--mr:3deg}
  .field figure:nth-child(4){--mx:-10%;--my:47%;--mw:52vw;--mr:-4deg}
  .field figure:nth-child(5){--mx:44%;--my:61%;--mw:58vw;--mr:6deg}
  .field figure:nth-child(6){--mx:-6%;--my:77%;--mw:50vw;--mr:-3deg}
  .field figure:nth-child(7){--mx:38%;--my:89%;--mw:52vw;--mr:4deg}
  .field figure:nth-child(n+8){display:none}
  /* the desktop veil is a left-to-right sweep; on a phone it has to fall vertically */
  .ihead--stage::after{background:linear-gradient(180deg,rgba(8,8,10,.74) 0%,rgba(8,8,10,.88) 30%,rgba(8,8,10,.93) 58%,rgba(8,8,10,.97) 100%)!important}
  .ihead--stage .col,.ihead--stage .facts{position:relative;z-index:3}
  .ihead{min-height:0}
  .ihead .big{font-size:clamp(34px,9.4vw,46px)!important;max-width:none!important}
  .ihead .lead{max-width:none!important}
  .facts{grid-template-columns:1fr 1fr!important;gap:18px!important}
  .facts b{font-size:clamp(26px,7.4vw,34px)!important}
  .facts span{font-size:10px!important}

  /* studio + client proof */
  .namep{padding:12px 14px}
  .revs .revgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .revs .rev{padding:20px 12px!important;min-height:132px}
  .revs .rev:last-child{grid-column:1/-1}
  .revs .rl{height:38px}
  .revs .rl img{max-height:30px;max-width:96px}
  .revs .rl b{font-size:15px!important}

  /* faq */
  .faq summary{grid-template-columns:28px 1fr 20px!important;min-height:58px;font-size:16px}
  .faq .fa{padding-left:38px!important;font-size:15.5px!important}

  /* start a project */
  .wayin{padding:22px!important}
  .wayin .btn{width:100%;justify-content:center;min-height:48px}

  /* footer */
  footer .two-col{grid-template-columns:1fr!important}
  footer .two-col>div:last-child{display:flex;flex-wrap:wrap;gap:26px!important}
  footer .dh-flink{min-height:44px;display:inline-flex;align-items:center}
  .cfg{flex-direction:column;align-items:stretch;gap:12px}
  .cfg select{width:100%;min-height:48px}
  .cfg .btn{width:100%;justify-content:center;min-height:48px}
  footer{padding-bottom:calc(20px + env(safe-area-inset-bottom))}

  /* overlays — full-height sheet that survives the iOS keyboard */
  .ovl{align-items:flex-end!important;justify-content:stretch;padding:0!important;overflow:hidden;overscroll-behavior:contain}
  .sheet--pro,.ovl .sheet:not(.sheet--pro){position:fixed;left:0;right:0;bottom:0;top:auto;width:auto!important;max-width:none!important;margin:0!important;border-radius:16px 16px 0 0;max-height:94dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-shadow:0 -30px 80px -30px rgba(0,0,0,.7);
    /* a bottom sheet slides up; it never scales, which would open a gap under it */
    animation:dh-sheet-up .42s cubic-bezier(.16,1,.3,1) both!important}
  @keyframes dh-sheet-up{from{transform:translateY(100%)}to{transform:none}}
  /* the staged inner cascade is desktop choreography — on a phone it just delays reading */
  .ovl.on .pro-side,.ovl.on .pro-main>*{animation:none!important}
  .sheet--pro .x{position:sticky;top:10px;right:10px;float:right;z-index:8}
  .pro{grid-template-columns:1fr!important;min-height:0!important}
  .pro-side{padding:24px 20px 22px!important}
  .pro-side .pro-h{font-size:25px!important;max-width:none!important}
  .pro-side .pro-sub{max-width:none!important}
  .pro-side .pro-steps{margin-top:20px!important}
  .pro-side .pro-note{font-size:9.5px!important;letter-spacing:.1em!important}
  .pro-main{padding:24px 20px calc(26px + env(safe-area-inset-bottom))!important}
  .pro-head{flex-direction:column;gap:6px}
  .pro-title{font-size:22px!important}
  .pro-submit{flex-direction:column;align-items:stretch;gap:12px}
  .pro-submit .btn{width:100%;justify-content:center;min-height:52px}
  .pro-main .upl{align-items:flex-start}
  .sheet--pro.sent .pro-main{padding:30px 20px calc(34px + env(safe-area-inset-bottom))!important}
  .sheet--pro .ok h4{font-size:26px!important;max-width:none!important}
  .pro-next div{grid-template-columns:26px 1fr!important}
  .pro-next em{grid-column:2;margin-top:2px}
  /* review sheet */
  .ovl .sheet:not(.sheet--pro){max-height:92dvh;padding:26px 20px calc(28px + env(safe-area-inset-bottom))}
  #revTitle{font-size:22px!important;max-width:none!important}
}

/* ---------- 3 · case study pages ---------- */
@media (max-width:860px){
  /* the chapter rail becomes a top progress strip, never a floating column */
  .cs-rail{position:fixed;left:0;right:0;top:calc(58px + env(safe-area-inset-top));bottom:auto;width:auto;height:42px;transform:none;display:flex!important;flex-direction:row!important;align-items:stretch;gap:0;overflow-x:auto;padding:0;background:color-mix(in srgb,var(--ink-900) 92%,transparent);border-bottom:1px solid rgba(244,244,239,.12);z-index:40;scrollbar-width:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  .cs-rail::-webkit-scrollbar{display:none}
  .cs-rail a{flex:none;width:auto;height:42px;padding:0 14px;margin:0;display:flex;align-items:center;justify-content:flex-start;white-space:nowrap;border-right:1px solid rgba(244,244,239,.1);border-left:0;border-top:0;border-bottom:0}
  .cs-rail a span{display:block!important;position:static!important;opacity:1!important;transform:none!important;white-space:nowrap;font-family:var(--font-mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#9A9AA4;background:none!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important;backdrop-filter:none!important}
  .cs-rail a.on span{color:var(--lime-500)}
  .cs-rail a.on{background:rgba(183,201,74,.1);box-shadow:inset 0 -2px 0 0 var(--lime-500)}
  .cs-rail a i{display:none}
  .cs-prog{top:calc(100px + env(safe-area-inset-top))}
  main{padding-top:42px}

  .cs-h1,#open h1{font-size:clamp(34px,9.4vw,46px)!important;max-width:none!important}
  .cs-h2{font-size:clamp(25px,7vw,34px)!important;max-width:none!important}
  #open .in,.cspread,.cs-two,.row{grid-template-columns:1fr!important;gap:26px!important}
  #open{padding-top:64px!important}
  #open .meta{gap:18px 26px!important}
  #open .meta div{min-width:44%}

  /* the fanned deck keeps floating, just smaller and centred */
  #open .fan{aspect-ratio:16/13!important;margin:8px 0 0!important}
  #open .fan figure{width:80%!important}
  #open .fan figure:nth-child(1){--dx:-14%!important;--dy:-34%!important}
  #open .fan figure:nth-child(3){--dx:14%!important;--dy:34%!important}

  /* sticky sequences do not sticky on a phone — read them as a stack */
  .seq-sticky{position:static!important;display:block!important;height:auto!important}
  .seq-frames{position:static!important;height:auto!important;display:grid;gap:12px;margin-bottom:22px}
  .seq-frames figure{position:static!important;opacity:1!important;transform:none!important}
  /* case galleries read as a swipeable sequence — six stacked crops is dead scroll */
  .cs-gal{display:flex!important;grid-template-columns:none!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 20px 4px!important;margin:0 -20px}
  .cs-gal::-webkit-scrollbar{display:none}
  .cs-gal figure{flex:none!important;grid-column:auto!important;width:80vw!important;aspect-ratio:16/10!important;margin:0!important;scroll-snap-align:center}
  .cs-gal figure:last-child{margin-right:20px!important}
  .cs-stats{grid-template-columns:1fr 1fr!important;gap:18px!important}
  .cs-stats .n{font-size:clamp(34px,9vw,44px)!important}
  .cs-led{grid-template-columns:1fr!important}
  .cs-quote blockquote,.cs-big{font-size:clamp(27px,7.6vw,38px)!important;max-width:none!important}
  #open .deck{aspect-ratio:1/1!important}
  #open .deck figure{width:62%!important}
  /* ---- Lazura 03 · fragmented → systemised.
     Desktop runs this as a scroll sequence driven by --p. Below 1100px that engine
     stops updating, which left BOTH headlines painted on top of each other over a
     dead grid. On a phone it becomes an honest static composition: the resolving
     headline only, six covers in a clean 2×3, nothing touching the screen edge. ---- */
  #snap .tr{height:auto!important}
  #snap .st{position:static!important;height:auto!important;padding:clamp(44px,8vw,68px) var(--page-margin)!important;gap:22px!important;overflow:visible}
  #snap .hd{height:auto!important;min-height:0!important;position:static!important}
  #snap .hd h2{position:static!important;font-size:clamp(23px,6.4vw,30px)!important;max-width:none!important;line-height:1.14;inset:auto!important}
  #snap .hd .a{display:none!important}
  #snap .hd .b{opacity:1!important}
  #snap .deck{display:grid!important;grid-template-columns:1fr 1fr!important;aspect-ratio:auto!important;gap:8px!important;padding:0}
  #snap .deck figure{width:auto!important;transform:none!important}
  #snap .deck figure img{filter:none!important}
  #snap .foot{gap:10px!important;flex-direction:column;align-items:flex-start}
  #snap .foot .cs-k{font-size:10px!important}

  .cnext .cshero,.cnext__t{font-size:clamp(28px,8vw,40px)!important}
  .fstrip,.cgal{padding-left:20px;padding-right:20px}
}

/* ---------- 4 · legal pages ---------- */
@media (max-width:860px){
  .lhead .lwrap{height:56px}
  .lmain{padding-top:34px;padding-bottom:40px;gap:26px}
  h1.ltitle{font-size:clamp(32px,8.8vw,42px);max-width:none}
  .llede{font-size:16.5px}
  .lbody{grid-template-columns:1fr;gap:24px}
  .ltoc{position:static;flex-direction:row;flex-wrap:wrap;gap:8px 14px}
  .ltoc b{width:100%;margin:0}
  .ltoc a{font-size:13px}
  .lsec h2{grid-template-columns:1fr;gap:6px;font-size:23px}
  .lsec p,.lsec li{font-size:16px;max-width:none}
  .ldl div{grid-template-columns:1fr;gap:4px}
  .lfootin{flex-direction:column;align-items:flex-start;gap:14px}
}

/* ---------- 5 · small phone ---------- */
@media (max-width:560px){
  :root{--page-margin:18px}
  #top h1{font-size:clamp(31px,9vw,38px)!important}
  h2.h-display,.hsplit{font-size:clamp(25px,7.2vw,32px)!important}
  .revs .revgrid{grid-template-columns:1fr!important}
  .revs .rev:last-child{grid-column:auto}
  .cs-stats{grid-template-columns:1fr!important}
  .rcard{width:84vw!important}
  .mono{letter-spacing:.1em}
  .eyebrow{font-size:10.5px}
}
@media (max-width:360px){
  #top h1{font-size:28px!important}
  .nav-in .btn-primary{padding:0 11px!important;font-size:13px!important}
  .pseg button{font-size:10px;padding:0 11px}
  .cgrid3[style*="repeat(6"]{grid-template-columns:repeat(2,1fr)!important}
}

/* ---------- 6 · landscape phone: keep the sheets usable ---------- */
@media (max-width:920px) and (max-height:520px){
  .sheet--pro,.ovl .sheet:not(.sheet--pro){max-height:96dvh}
  #top .wrap{padding-top:76px!important;padding-bottom:36px!important}
  .cs-rail{position:static;top:auto}
  main{padding-top:0}
}

/* ---------- 7 · motion budget on phones ---------- */
@media (max-width:860px){
  .spark::before,.spark::after,.tryglow{display:none}
  .dhw,.dhi{animation:none}
  .mf{opacity:1;transform:none}
}
