/* Michael Greenberg portfolio: Slush sticker style + psychedelic motion.
   Layout: fixed header (menu pill top-left, flower logo beside it, "say hi" pill top-right),
   pages built from pastel sections, black-outlined rounded stickers and cards, crushed display type. */
/* Stand-ins sized like the real fonts, so text doesn't jump when Satoshi and Comico arrive: a font already on the
   device (Arial, Helvetica, Liberation Sans or Roboto), scaled to the same width and line height. */
@font-face{font-family:"Satoshi Fallback";font-weight:100 600;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");
  size-adjust:101.5%;ascent-override:99.5%;descent-override:23.6%;line-gap-override:0%}
@font-face{font-family:"Satoshi Fallback";font-weight:700 900;src:local("Arial Bold"),local("Arial-BoldMT"),local("Helvetica Bold"),local("Helvetica-Bold"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Roboto Bold"),local("Roboto-Bold");
  size-adjust:97.4%;ascent-override:103.7%;descent-override:24.6%;line-gap-override:0%}
/* Satoshi's figures and a few signs run wider than its letters, so they get their own scale (these come after, so they win for those characters) */
@font-face{font-family:"Satoshi Fallback";font-weight:100 600;unicode-range:U+0030-0039,U+002C;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:102.8%;ascent-override:98.2%;descent-override:23.3%;line-gap-override:0%}
@font-face{font-family:"Satoshi Fallback";font-weight:100 600;unicode-range:U+002B,U+007E;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:113%;ascent-override:89.4%;descent-override:21.2%;line-gap-override:0%}
@font-face{font-family:"Satoshi Fallback";font-weight:700 900;unicode-range:U+0030-0039,U+002C;src:local("Arial Bold"),local("Arial-BoldMT"),local("Helvetica Bold"),local("Helvetica-Bold"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Roboto Bold"),local("Roboto-Bold");size-adjust:105.3%;ascent-override:95.9%;descent-override:22.8%;line-gap-override:0%}
@font-face{font-family:"Satoshi Fallback";font-weight:700 900;unicode-range:U+002B,U+007E;src:local("Arial Bold"),local("Arial-BoldMT"),local("Helvetica Bold"),local("Helvetica-Bold"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Roboto Bold"),local("Roboto-Bold");size-adjust:113%;ascent-override:89.4%;descent-override:21.2%;line-gap-override:0%}
@font-face{font-family:"Comico Fallback";src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:92.0%;ascent-override:119.6%;descent-override:39.1%;line-gap-override:0%}
/* Comico's spaces and some signs and letters are much wider than Arial's: each gets its own scale */
@font-face{font-family:"Comico Fallback";unicode-range:U+0020,U+00A0;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:162.0%;ascent-override:67.9%;descent-override:22.2%;line-gap-override:0%}
@font-face{font-family:"Comico Fallback";unicode-range:U+002C;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:121.0%;ascent-override:90.9%;descent-override:29.8%;line-gap-override:0%}
@font-face{font-family:"Comico Fallback";unicode-range:U+2019;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:149.0%;ascent-override:73.8%;descent-override:24.2%;line-gap-override:0%}
@font-face{font-family:"Comico Fallback";unicode-range:U+0049;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:115.0%;ascent-override:95.7%;descent-override:31.3%;line-gap-override:0%}
@font-face{font-family:"Comico Fallback";unicode-range:U+004D;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:107.0%;ascent-override:102.8%;descent-override:33.6%;line-gap-override:0%}
@font-face{font-family:"Comico Fallback";unicode-range:U+0030-0039;src:local("Arial"),local("ArialMT"),local("Helvetica"),local("Liberation Sans"),local("LiberationSans"),local("Roboto"),local("Roboto-Regular");size-adjust:103.0%;ascent-override:106.8%;descent-override:35.0%;line-gap-override:0%}
:root{
  color-scheme: light;
  --carbon:#000; --paper:#fff; --sky:#dceeff; --concrete:#cccccc; --mist:#e9e9e9;
  --blue:#4da2ff; --mint:#55db9c; --lav:#e9ccff; --ember:#d93d00; --sun:#b6f25c; --violet:#5c4ade; /* ember deepened from #fb4903 so white and black text both pass AA on it */
  --theme-filter:hue-rotate(0deg); /* per color theme, so the fixed-color background loops match */
  --f-display:"Bowlby One","Druk","Anton",Impact,sans-serif;
  --f-body:"Satoshi","Satoshi Fallback","General Sans","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r-card:28px; --r-sticker:20px; --r-pill:999px;
  --line:2px solid var(--carbon);
  --gutter:max(16px,env(safe-area-inset-left,0px));
  --gutter-r:max(16px,env(safe-area-inset-right,0px));
  --head-h:76px;
  --vibe:.6; /* set by the FX vibe dial (0 = chill, 1 = full trip) */
  /* derived tokens, so every palette and the night set get them for free:
     --ink-2 = quieter text (hints, captions); --inv-bg/--inv-ink = the "always dark" surfaces (footer, marquee, dark bands, screens) */
  --ink-2:color-mix(in srgb,var(--carbon) 74%,var(--paper));
  --inv-bg:var(--carbon); --inv-ink:var(--paper);
}
*{box-sizing:border-box}
html,body{margin:0}
main{overflow-x:clip} /* tilted cards, orbits and flying letters never widen the page */
body{background:var(--paper);color:var(--carbon);font-family:var(--f-body);font-weight:500;font-size:17px;line-height:1.45;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
main:focus{outline:none}
.skip-link{position:fixed;z-index:300;left:max(12px,env(safe-area-inset-left,0px));top:-80px;font:700 14px/1 var(--f-body);letter-spacing:.04em;text-transform:uppercase;text-decoration:none;
  background:var(--carbon);color:var(--paper);border:var(--line);border-radius:var(--r-pill);padding:14px 18px;box-shadow:3px 4px 0 var(--violet)}
.skip-link:focus,.skip-link:focus-visible{top:calc(env(safe-area-inset-top,0px) + 10px);outline:3px solid var(--sun);outline-offset:2px}
.wrap{max-width:1440px;margin-inline:auto;padding-left:max(clamp(16px,4vw,56px),env(safe-area-inset-left,0px));padding-right:max(clamp(16px,4vw,56px),env(safe-area-inset-right,0px))}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Type ---------- */
.display{font-family:var(--f-display);font-weight:400;text-transform:uppercase;line-height:.8;letter-spacing:-.01em;margin:0;text-wrap:balance}
.h-xl{font-size:clamp(64px,15vw,230px)}
.h-lg{font-size:clamp(48px,9vw,140px)}
.h-md{font-size:clamp(36px,5.4vw,80px)}
.h-sm{font-size:clamp(26px,3vw,40px)}
.lead{font-size:clamp(20px,2.2vw,30px);font-weight:700;line-height:1.2;letter-spacing:-.015em;max-width:30ch;margin:0}
.body-lg{font-size:clamp(17px,1.4vw,20px);max-width:60ch}
.label{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* Headline font picker (FX panel): very wide fonts shrink the big titles so nothing overflows */
html[data-fx-font] :is(.hero-name,.pg-title,.cs-title,.hi-title){zoom:var(--f-display-scale,1)}

/* ---------- Header ---------- */
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:49;background:var(--paper)}
.site-head{position:fixed;left:0;right:0;top:env(safe-area-inset-top,0px);z-index:50;pointer-events:none}
.site-head .row{display:flex;align-items:center;gap:10px;padding:14px var(--gutter-r) 14px var(--gutter)}
.site-head .row>*{pointer-events:auto}
.pill{display:inline-flex;align-items:center;gap:8px;font:700 14px/1 var(--f-body);letter-spacing:.04em;text-transform:uppercase;text-decoration:none;
  background:var(--paper);color:var(--carbon);border:var(--line);border-radius:var(--r-pill);padding:13px 18px;cursor:pointer;transition:transform .25s cubic-bezier(.3,1.6,.5,1),background .2s,color .2s}
.pill:hover{transform:translateY(-2px) rotate(-2deg)}
.pill.dark{background:var(--carbon);color:var(--paper)}
.pill.dark:hover{background:var(--violet)}
.burger{width:18px;height:12px;position:relative;display:inline-block}
.burger i{position:absolute;left:0;right:0;height:2px;background:currentColor;border-radius:2px;transition:transform .3s,top .3s,opacity .2s}
.burger i:nth-child(1){top:0}.burger i:nth-child(2){top:5px}.burger i:nth-child(3){top:10px}
.logo{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font:700 15px/1 var(--f-body)}
.flw{position:relative;display:block;flex:none;width:100%;height:100%}
.flw svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.logo .flw{width:50px;height:50px;transition:transform .6s cubic-bezier(.3,1.5,.5,1)}
.logo:hover .flw{transform:rotate(180deg) scale(1.08)}
.logo .petals{transform-origin:50% 50%;animation:spin 18s linear infinite;animation-duration:calc(19.8s / (.5 + var(--vibe)))}
.logo .name{display:none}
@media (min-width:720px){.logo .name{display:inline}}
.site-head .spacer{flex:1}
/* the music button's place is kept from the start (music.js swaps it in), and header pills never wrap, so the row never jumps */
.site-head .row>.pill,.site-head .row>.mus-slot{flex:none;white-space:nowrap}
.mus-slot{display:inline-block;width:152px;height:54px}
@media (max-width:720px){.mus-slot{width:46px;height:46px}}
/* phones: the header carries menu, logo, "Quick look", music and "Say hi" on one line
   (the vibe dial and day/night move into the trip menu at this width, fx.js) */
@media (max-width:720px){
  .site-head .row{gap:4px;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
  #menu-btn .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .site-head .row>.pill{height:42px;padding:0 12px;font-size:12px;gap:6px}
  .site-head .row>.hd-fast{padding:0 10px;font-size:11px;gap:4px}
  .site-head #menu-btn,.site-head .mus-btn{width:44px;padding:0;justify-content:center}
  .site-head .logo .flw{width:40px;height:40px}
}
/* Case-study carousels on narrow phones: with eight or nine dots the "next" arrow was pushed off the screen.
   The dots get their own row and the two arrows sit under them. */
@media (max-width:420px){
  html body .car-ui{flex-wrap:wrap;justify-content:center;gap:20px 28px}
  html body .car-ui .dots{order:-1;flex-basis:100%;justify-content:center}
}
/* iPhone SE and other 320px phones: the five header items used to run 8px past the right edge, cutting off "Say hi" */
@media (max-width:374px){
  html body .site-head .row{gap:4px;padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}
  html body .site-head .row>.pill.dark{padding:0 10px}
  html body .site-head .row>.hd-fast{padding:0 7px}
  html body .site-head .row>.logo{min-width:40px}
  html body .site-head .logo .flw{width:38px;height:38px}
}

/* Scrolled: the header becomes a frosted bar exactly --head-h tall, so sticky sub-navs
   (neo-kanto tabs, lab tabs) that stick at top:var(--head-h) sit right under it. */
html{scroll-padding-top:calc(var(--head-h) + env(safe-area-inset-top,0px) + 12px)}
[id]{scroll-margin-top:calc(var(--head-h) + env(safe-area-inset-top,0px) + 12px)}
.site-head .row{height:var(--head-h);padding-top:0;padding-bottom:0}
.site-head{transition:background-color .25s,box-shadow .25s,-webkit-backdrop-filter .25s,backdrop-filter .25s}
.site-head.solid{background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);box-shadow:0 2px 0 var(--carbon)}
html.night .site-head.solid{background:color-mix(in srgb,var(--paper) 90%,transparent)}
body.menu-open .site-head.solid{background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
@media (max-width:520px){:root{--head-h:66px}}

/* Highlights stay inline text, whatever a page styles .hl as */
mark,mark.hl,mark.hl:hover{display:inline!important;position:static!important;width:auto!important;height:auto!important;aspect-ratio:auto!important;
  border:0!important;box-shadow:none!important;transform:none!important;overflow:visible!important;float:none!important;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;background-color:var(--sun);color:var(--carbon);padding:0 .12em;border-radius:.2em}

/* ---------- Full-screen trip menu ---------- */
.trip{position:fixed;inset:0;z-index:80;display:grid;place-items:center;overflow:hidden;visibility:hidden;clip-path:circle(0% at 40px 40px);transition:clip-path .8s cubic-bezier(.7,0,.2,1),visibility 0s .8s}
.trip.open{visibility:visible;clip-path:circle(150% at 40px 40px);transition:clip-path .9s cubic-bezier(.7,0,.2,1)}
.trip .swirl{position:absolute;inset:-50%;background:repeating-conic-gradient(from 0deg,var(--blue) 0 15deg,var(--lav) 15deg 30deg,var(--mint) 30deg 45deg,var(--sun) 45deg 60deg,var(--ember) 60deg 75deg,var(--violet) 75deg 90deg);animation:spin 40s linear infinite;filter:saturate(1.1)}
.trip .swirl::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.0) 0,rgba(255,255,255,.55) 60%,rgba(255,255,255,.85) 100%)}
/* Closed menu: the rainbow isn't drawn or animated at all (site.js adds .live while the menu is open or closing). */
.trip:not(.live) .swirl{display:none}
/* Same picture, a fraction of the memory. The old rainbow was one painted sheet four times the size of the
   screen, kept as a huge bitmap and spun. Now it is 24 plain color wedges (site.js adds them) on a spinner:
   flat colors need no bitmap at all, and the browser just turns them. Each wedge is a rectangle skewed
   into a 15deg slice (a hair wider, so no seams show) and pinned to the middle of the screen. The white
   glow on top keeps its old size and place; being a soft blur it is drawn small and stretched (site.js). */
.trip .swirl.wedges{inset:0;overflow:hidden;background:none;animation:none}
.trip .swirl.wedges .spin{position:absolute;left:50%;top:50%;width:0;height:0;animation:spin 40s linear infinite}
.trip .swirl.wedges .spin i{position:absolute;left:0;top:0;width:76vmax;height:22vmax;transform-origin:0 0;
  transform:rotate(calc(var(--k)*15deg - 90deg)) skewX(74.4deg);background:var(--c);will-change:transform}
.trip .swirl.wedges .spin i.cap{transform:rotate(-90deg) skewX(82deg)}
.trip .swirl.wedges::after{inset:-50%}
.trip .swirl.wedges .glow{position:absolute;left:-50%;top:-50%;width:200%;height:200%;pointer-events:none}
.trip .swirl.wedges.glowed::after{display:none}
.trip .swirl.wedges i:nth-child(6n+1){--c:var(--sw-b,var(--blue))}.trip .swirl.wedges i:nth-child(6n+2){--c:var(--sw-l,var(--lav))}
.trip .swirl.wedges i:nth-child(6n+3){--c:var(--sw-m,var(--mint))}.trip .swirl.wedges i:nth-child(6n+4){--c:var(--sw-s,var(--sun))}
.trip .swirl.wedges i:nth-child(6n+5){--c:var(--sw-e,var(--ember))}.trip .swirl.wedges i:nth-child(6n){--c:var(--sw-v,var(--violet))}
/* The 10% color boost is worked into the six colors themselves, so no full-screen filter pass is needed.
   Night mode keeps the filter: its dark glow needs the boost applied after the glow to come out the same. */
@supports (color:rgb(from red r g b)){
  html:not(.night) .trip{--sw-b:rgb(from var(--blue) calc(1.0787*r - .0715*g - .0072*b) calc(1.0285*g - .0213*r - .0072*b) calc(1.0928*b - .0213*r - .0715*g));
    --sw-l:rgb(from var(--lav) calc(1.0787*r - .0715*g - .0072*b) calc(1.0285*g - .0213*r - .0072*b) calc(1.0928*b - .0213*r - .0715*g));
    --sw-m:rgb(from var(--mint) calc(1.0787*r - .0715*g - .0072*b) calc(1.0285*g - .0213*r - .0072*b) calc(1.0928*b - .0213*r - .0715*g));
    --sw-s:rgb(from var(--sun) calc(1.0787*r - .0715*g - .0072*b) calc(1.0285*g - .0213*r - .0072*b) calc(1.0928*b - .0213*r - .0715*g));
    --sw-e:rgb(from var(--ember) calc(1.0787*r - .0715*g - .0072*b) calc(1.0285*g - .0213*r - .0072*b) calc(1.0928*b - .0213*r - .0715*g));
    --sw-v:rgb(from var(--violet) calc(1.0787*r - .0715*g - .0072*b) calc(1.0285*g - .0213*r - .0072*b) calc(1.0928*b - .0213*r - .0715*g))}
  html:not(.night) .trip .swirl.wedges{filter:none}
}
/* Once the menu is fully open its round reveal mask is no longer needed (site.js adds .settled). */
.trip.open.settled{clip-path:none}
/* Blocks far from the screen rest too (site.js adds .is-away). */
.is-away,.is-away *,.is-away *::before,.is-away *::after{animation-play-state:paused!important}
/* While the intro or the open menu covers the page, the page underneath holds still. */
body.is-covered :is(main,.site-head,.site-foot),body.is-covered :is(main,.site-head,.site-foot) *,
body.is-covered :is(main,.site-head,.site-foot) *::before,body.is-covered :is(main,.site-head,.site-foot) *::after{animation-play-state:paused!important}
.trip nav{position:relative;display:flex;flex-direction:column;align-items:center;gap:clamp(2px,1vh,10px);padding:90px 16px 96px;text-align:center}
.trip nav a{font-family:var(--f-display);text-transform:uppercase;text-decoration:none;font-size:clamp(22px,min(calc((88vh - 230px) / 11.6),12vw),96px);font-size:clamp(22px,min(calc((88svh - 230px) / 11.6),12vw),96px);line-height:.92;color:var(--carbon);
  -webkit-text-stroke:0;display:inline-block;transform:translateY(40px) rotate(-6deg);opacity:0;transition:transform .5s cubic-bezier(.3,1.6,.5,1),opacity .3s,color .2s}
.trip.open nav a{transform:none;opacity:1;transition-delay:calc(.25s + var(--i)*.06s)}
@media (hover:hover){.trip nav a:hover{color:var(--paper);-webkit-text-stroke:3px var(--carbon);filter:url(#wobble)}}
.trip nav a:focus-visible{color:var(--paper);-webkit-text-stroke:3px var(--carbon);filter:url(#wobble)}
.trip nav a .tag{font:700 13px/1 var(--f-body);letter-spacing:.06em;vertical-align:super;margin-left:6px;-webkit-text-stroke:0;color:var(--carbon)}
.trip .close{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);left:var(--gutter);z-index:2}
.trip .foot{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);left:0;right:0;text-align:center;font-weight:700}
.trip .replay-intro{position:absolute;z-index:2;top:calc(env(safe-area-inset-top,0px) + 18px);right:max(18px,env(safe-area-inset-right,0px));display:inline-flex;gap:8px;align-items:center;min-height:44px;background:var(--paper);font-size:15px}
.trip .replay-intro span{font-size:18px;line-height:1}
@media (max-width:560px){.trip .replay-intro{max-width:calc(100vw - 150px);font-size:12px;line-height:1.15;padding:8px 12px;text-align:left}}
/* Quiet mode (the recruiter link): "Turn on the full trip" takes the replay pill's place, and a small note says how */
.trip .full-trip{position:absolute;z-index:2;top:calc(env(safe-area-inset-top,0px) + 18px);right:max(18px,env(safe-area-inset-right,0px));display:inline-flex;gap:8px;align-items:center;min-height:44px;background:var(--sun);font-size:15px}
.trip .full-trip span{font-size:18px;line-height:1}
.trip .pill[hidden]{display:none}
@media (max-width:560px){.trip .full-trip{font-size:13px;padding:8px 14px}}
.quiet-note{position:fixed;z-index:70;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 16px);translate:-50% 0;width:max-content;max-width:min(440px,calc(100vw - 32px));
  display:flex;align-items:center;gap:6px;padding:8px 8px 8px 16px;background:var(--paper);color:var(--carbon);border:var(--line);border-radius:var(--r-sticker);box-shadow:3px 4px 0 var(--carbon);rotate:-1deg}
.quiet-note p{margin:0;font:700 14px/1.3 var(--f-body)}
.quiet-note .qn-menu{all:unset;cursor:pointer;text-decoration:underline;text-underline-offset:2px;font:inherit}
.quiet-note .qn-menu:focus-visible,.quiet-note .qn-x:focus-visible{outline:3px solid var(--violet);outline-offset:2px}
.quiet-note .qn-x{flex:none;width:36px;height:36px;border:var(--line);border-radius:50%;background:var(--sun);color:var(--carbon);font:700 20px/1 var(--f-body);cursor:pointer;display:grid;place-items:center;padding:0}
body.menu-open .quiet-note{visibility:hidden}
@media (min-width:721px){.quiet-note{left:auto;right:calc(var(--gutter-r) + 72px);translate:none;max-width:min(400px,calc(100vw - 420px))}}
@media (min-width:721px) and (max-width:900px){.quiet-note{right:var(--gutter-r);bottom:calc(env(safe-area-inset-bottom,0px) + 84px)}}
body.menu-open{overflow:hidden}

/* ---------- Page transition: rainbow iris ---------- */
.iris{position:fixed;inset:0;z-index:90;pointer-events:none}
/* arriving: covered in the last ring's color from the very first paint; site.js then draws the rings shrinking away */
.iris.in{background:var(--violet)}

/* ---------- Trippy hero canvas ---------- */
.trip-hero{position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;background:var(--sky);isolation:isolate}
.trip-hero canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.trip-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;background:var(--sky);transform:translateZ(0)}
/* only tint the video when a non-default look needs it: a filter on a full-screen video costs GPU every frame */
html:is([data-palette="sunset"],[data-palette="acid"],[data-palette="earth"],[data-palette="ocean"]) .trip-video{filter:var(--theme-filter) saturate(calc(.55 + .75 * var(--vibe)))}
/* Slush and the seasonal themes leave the light loop untinted: a filter on a full-screen video costs GPU every frame */
.trip-hero .wrap{width:100%;padding-block:calc(var(--head-h) + 40px) clamp(28px,5vw,64px)}
.page-hero{position:relative;overflow:hidden;background:var(--sky);isolation:isolate;min-height:60vh;min-height:60svh;display:flex;flex-direction:column;justify-content:flex-start}
.page-hero>.wrap{width:100%}
/* the first screen is always the hero: no white before scrolling (beats per-page min-heights) */
html body .trip-hero{min-height:100vh;min-height:100svh}
html body .page-hero{min-height:60vh;min-height:60svh}
.page-hero canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.page-hero .wrap{padding-block:calc(var(--head-h) + 48px) 48px}

/* ---------- Stickers ---------- */
.sticker{position:absolute;display:grid;place-items:center;text-align:center;font:700 15px/1.1 var(--f-body);letter-spacing:.03em;text-transform:uppercase;
  border:var(--line);border-radius:var(--r-sticker);padding:12px 16px;background:var(--paper);box-shadow:4px 5px 0 var(--carbon);
  animation:float 6s ease-in-out infinite;animation-delay:var(--fd,0s);transition:transform .3s}
.sticker:hover{animation-play-state:paused;transform:scale(1.08) rotate(0deg)!important}
.sticker.round{border-radius:50%;aspect-ratio:1;padding:10px}
.sticker.round[data-fx="trip"]{font-size:clamp(40px,5vw,64px);line-height:1;padding:6px}
.s-sun{background:var(--sun)}.s-mint{background:var(--mint)}.s-lav{background:var(--lav)}.s-ember{background:var(--ember);color:var(--paper)}.s-violet{background:var(--violet);color:var(--paper)}.s-blue{background:var(--blue)}
.sticker{animation-duration:calc(6.6s / (.5 + var(--vibe)))}
@keyframes float{0%,100%{translate:0 0;rotate:var(--rot,-6deg)}50%{translate:0 calc(-3px - 12px * var(--vibe));rotate:calc(var(--rot,-6deg) + 1deg + 7deg * var(--vibe))}}

/* ---------- Marquee "currently" strip ---------- */
.marquee{background:var(--inv-bg);color:var(--inv-ink);overflow:hidden;border-block:var(--line)}
.marquee .track{display:flex;width:max-content;animation:tick 60s linear infinite;animation-duration:calc(66s / (.5 + var(--vibe)))}
.marquee .run{display:flex;align-items:center}
.marquee span{font:700 16px/1 var(--f-body);letter-spacing:.04em;text-transform:uppercase;padding:16px 18px;white-space:nowrap}
.marquee b{display:inline-block;width:14px;height:14px;border-radius:50%;margin-left:4px;flex:none}
.marquee:hover .track{animation-play-state:paused}
@keyframes tick{to{transform:translateX(-50%)}}

/* ---------- Sections and cards ---------- */
.sec{padding-block:clamp(56px,8vw,120px)}
.sec-sky{background:var(--sky)}.sec-lav{background:var(--lav)}.sec-mint{background:var(--mint)}.sec-sun{background:var(--sun)}.sec-blue{background:var(--blue)}.sec-dark{background:var(--inv-bg);color:var(--inv-ink)}
.sec-head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:clamp(28px,4vw,48px)}
.card{position:relative;display:flex;flex-direction:column;border:var(--line);border-radius:var(--r-card);background:var(--paper);overflow:hidden;text-decoration:none;color:var(--carbon);
  transition:transform .4s cubic-bezier(.3,1.5,.5,1),box-shadow .3s;box-shadow:0 0 0 var(--carbon)}
a.card:hover{transform:translateY(-6px) rotate(-1deg);box-shadow:6px 8px 0 var(--carbon)}
.card .media{position:relative;aspect-ratio:16/10;overflow:hidden;border-bottom:var(--line);background:var(--mist)}
/* iPhone Safari lets animated layers (the color swatches, image zoom) escape a rounded card's overflow clip,
   leaving square corners. Clip the media itself to the card's curve. */
.card>.media:first-child{border-radius:calc(var(--r-card) - 2px) calc(var(--r-card) - 2px) 0 0;clip-path:inset(0 round calc(var(--r-card) - 2px) calc(var(--r-card) - 2px) 0 0);-webkit-mask-image:-webkit-radial-gradient(white,black)}
.card{isolation:isolate}
.card[hidden]{display:none}
.card .media img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .6s}
a.card:hover .media img{transform:scale(1.06);filter:saturate(1.3) hue-rotate(-8deg)}
.card .body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{margin:0;font:700 clamp(22px,2vw,28px)/1.1 var(--f-body);letter-spacing:-.02em}
.card p{margin:0}
.card .go{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-weight:700}
.card .go i{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--carbon);color:var(--paper);font-style:normal;transition:transform .3s,background .2s}
a.card:hover .go i{transform:rotate(-45deg);background:var(--violet)}
.chip{display:inline-block;font:700 12px/1 var(--f-body);letter-spacing:.06em;text-transform:uppercase;border:var(--line);border-radius:var(--r-pill);padding:6px 10px;background:var(--paper)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
@media (max-width:980px){.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.grid-2,.grid-3{grid-template-columns:1fr}}
.btn-row{display:flex;gap:10px;flex-wrap:wrap}
.more{display:flex;justify-content:space-between;align-items:center;gap:18px 28px;flex-wrap:wrap} /* "More work" row under a case study */

/* ---------- Footer ---------- */
.site-foot{background:var(--inv-bg);color:var(--inv-ink);overflow:hidden}
.site-foot .big{font-family:var(--f-display);text-transform:uppercase;font-size:clamp(56px,13vw,200px);line-height:.8;margin:0;padding-top:clamp(48px,7vw,96px)}
.site-foot .big a{text-decoration:none;background:linear-gradient(90deg,var(--sun),var(--ember),var(--violet),var(--blue),var(--mint),var(--sun));background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:flow 8s linear infinite}
.site-foot .row{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-block:28px 32px;border-top:1px solid #333;margin-top:28px;font-weight:700}
.site-foot .row a{text-decoration:none}.site-foot .row a:hover{color:var(--sun)}
@keyframes flow{to{background-position:300% 0}}

/* ---------- Motion helpers (content visible at rest) ---------- */
.wavy span{display:inline-block;animation:wave 2.4s ease-in-out infinite;animation-duration:calc(2.64s / (.5 + var(--vibe)));animation-delay:calc(var(--i)*.06s)}
@keyframes wave{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-.06em) rotate(-2deg)}}
.pop{animation:pop .8s cubic-bezier(.3,1.6,.5,1) both;animation-delay:var(--d,0ms)}
@keyframes pop{from{opacity:0;transform:translateY(30px) scale(.94) rotate(-2deg)}}
@keyframes spin{to{transform:rotate(360deg)}}
.cursor-bloom{position:fixed;z-index:70;pointer-events:none;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;animation:bloom .9s ease-out forwards}
@keyframes bloom{from{transform:scale(.4);opacity:.9}to{transform:scale(2.2);opacity:0}}

/* ---------- Fun actions ---------- */
.fx-hot{cursor:pointer}
.fx-hot:hover{animation-play-state:paused}
.fx-hot:focus-visible{outline:3px solid var(--violet);outline-offset:4px}
.fx-bubble{position:fixed;z-index:95;width:240px;text-align:center;font:700 15px/1.25 var(--f-body);background:var(--paper);color:var(--carbon);border:var(--line);border-radius:18px;padding:10px 14px;box-shadow:4px 5px 0 var(--carbon);animation:bub-in .35s cubic-bezier(.3,1.6,.5,1) both;pointer-events:none}
.fx-bubble.bye{animation:bub-out .35s ease forwards}
@keyframes bub-in{from{opacity:0;transform:translateY(10px) scale(.8) rotate(-4deg)}}
@keyframes bub-out{to{opacity:0;transform:translateY(-12px) scale(.9)}}
.fx-confetti{position:fixed;z-index:94;width:12px;height:12px;border-radius:3px;border:2px solid var(--carbon);pointer-events:none;animation:conf 1.3s cubic-bezier(.2,.7,.4,1) forwards}
.fx-confetti.petal{border-radius:50%;width:16px;height:16px}
@keyframes conf{to{transform:translate(var(--dx),calc(var(--dy) + 260px)) rotate(var(--rot));opacity:0}}
.fx-trip-layer{position:fixed;inset:0;z-index:93;pointer-events:none;animation:trip 4s ease-in-out forwards}
@keyframes trip{0%{backdrop-filter:none;-webkit-backdrop-filter:none}20%{backdrop-filter:hue-rotate(120deg) saturate(1.6);-webkit-backdrop-filter:hue-rotate(120deg) saturate(1.6)}50%{backdrop-filter:hue-rotate(260deg) saturate(2) contrast(1.1);-webkit-backdrop-filter:hue-rotate(260deg) saturate(2) contrast(1.1)}80%{backdrop-filter:hue-rotate(340deg) saturate(1.4);-webkit-backdrop-filter:hue-rotate(340deg) saturate(1.4)}100%{backdrop-filter:none;-webkit-backdrop-filter:none}}
.fx-purr{animation:purr .5s linear 2!important}
@keyframes purr{0%,100%{translate:0 0}25%{translate:-3px 1px}50%{translate:3px -1px}75%{translate:-2px 0}}

/* ---------- Hero entrance (classes come from site.js only, so with no JS everything shows) ----------
   Visual alone for a beat, then: title drops in with a squash and bounce, card pops up,
   stickers slap on one by one, buttons rise. Transform and opacity only, so no layout shift. */
html.fx-enter:not(.fx-entering) .fx-h{opacity:0}
html.fx-entering .fx-h-head{animation:fx-h-drop .9s cubic-bezier(.3,1.3,.5,1) var(--hd,0s) both;transform-origin:50% 100%}
html.fx-entering .fx-h-head.fx-h-letters{animation:none;opacity:1}
html.fx-entering .fx-h-letters .fxl{animation:fx-h-letter .8s cubic-bezier(.3,1.25,.5,1) both!important;animation-delay:calc(min(var(--i,0),30) * 30ms)!important;transform-origin:50% 100%}
html.fx-entering .fx-h-card{animation:fx-h-pop .75s cubic-bezier(.3,1.45,.5,1) var(--hd,0s) both}
html.fx-entering .fx-h-stk{animation:fx-h-slap .6s cubic-bezier(.3,1.5,.5,1) var(--hd,0s) both!important}
html.fx-entering .fx-h-btn{animation:fx-h-rise .55s cubic-bezier(.3,1.4,.5,1) var(--hd,0s) both}
@keyframes fx-h-drop{0%{opacity:0;transform:translateY(-70px) scale(.86,1.25)}55%{opacity:1;transform:translateY(0) scale(1.08,.82)}76%{transform:translateY(-8px) scale(.98,1.04)}100%{transform:none}}
@keyframes fx-h-letter{0%{opacity:0;transform:translateY(-1.1em) scale(.88,1.3)}52%{opacity:1;transform:translateY(0) scale(1.2,.74)}76%{transform:translateY(-.08em) scale(.96,1.06)}100%{transform:none}}
@keyframes fx-h-pop{from{opacity:0;transform:translateY(48px) scale(.92) rotate(-3deg)}}
@keyframes fx-h-slap{0%{opacity:0;transform:scale(1.9);rotate:calc(var(--rot,-6deg) - 28deg)}60%{opacity:1;transform:scale(.9);rotate:calc(var(--rot,-6deg) + 6deg)}100%{transform:none;rotate:var(--rot,-6deg)}}
@keyframes fx-h-rise{from{opacity:0;transform:translateY(18px) scale(.96)}}

/* ---------- Phones: hero stickers sit in one tidy row under the header (site.js moves them) ---------- */
.hero-stickers{position:absolute;z-index:3;left:var(--gutter);right:var(--gutter-r);top:calc(env(safe-area-inset-top,0px) + var(--head-h) + 16px);
  display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.hero-stickers>.sticker{pointer-events:auto;position:relative!important;inset:auto!important;margin:0!important;width:auto!important;height:auto!important;
  min-width:0;max-width:48%;flex:0 1 auto;font-size:11px!important;line-height:1.1!important;padding:7px 10px!important;box-shadow:3px 3px 0 var(--carbon)}
.hero-stickers>.sticker.round{width:52px!important;height:52px!important;max-width:none;flex:none;padding:2px!important;font-size:10px!important}
.hero-stickers>.sticker.round[data-fx="trip"]{width:46px!important;height:46px!important;font-size:26px!important;line-height:1!important}
.trip-hero.has-sticker-row>.wrap,.page-hero.has-sticker-row>.wrap{padding-top:calc(var(--head-h) + 80px)}
html.night .hero-stickers>.sticker{box-shadow:3px 3px 0 var(--neon-pink)}

/* ---------- Color themes (FX panel "Colors"; site.js sets data-palette on <html>) ----------
   Every theme keeps dark ink on the pastel tokens and white on ember/violet at WCAG AA (4.5:1 or better). */
html[data-palette="sunset"]{--paper:#fff8f2;--carbon:#1f0a12;--sky:#ffe3d3;--blue:#ff8f6b;--mint:#ffb38a;--lav:#ffd1e3;--sun:#ffc94a;--ember:#c2331a;--violet:#a3204f;--mist:#f7e6dc;
  --theme-filter:hue-rotate(145deg) saturate(1.35)}
html[data-palette="acid"]{--paper:#fcfff2;--carbon:#0a0a0a;--sky:#ecffb8;--blue:#5c8dff;--mint:#a6ff3d;--lav:#ffb0f0;--sun:#f2ff3a;--ember:#c4006e;--violet:#2b2bd9;--mist:#eef5d8;
  --theme-filter:hue-rotate(95deg) saturate(1.8)}
html[data-palette="earth"]{--paper:#fbf3e2;--carbon:#2a1a0f;--sky:#f0dfbc;--blue:#d9a441;--mint:#a6b86a;--lav:#e8cba8;--sun:#e8b53a;--ember:#a3401b;--violet:#56602a;--mist:#efe3c9;
  --theme-filter:sepia(.6) saturate(1.9) hue-rotate(-14deg)}
html[data-palette="ocean"]{--paper:#f5fdff;--carbon:#04222c;--sky:#d2f4f8;--blue:#3bb8db;--mint:#7fe3cf;--lav:#c4e4ff;--sun:#a6f0e4;--ember:#0b6b86;--violet:#1d3e9e;--mist:#dff1f5;
  --theme-filter:hue-rotate(-22deg) saturate(1.15)}
/* Theme of the month (site.js SEASON): Dec snow, Jan-Feb neon glow, Mar-May spring bloom, Jun-Aug summer pop, Sep-Nov fall harvest.
   Every set keeps black outlines and dark ink on the pastels; ember and violet carry white text at AA (checked for 4.5:1).
   Dark sets for every palette sit under Night below. */
html[data-palette="snow"]{--paper:#fbfdff;--carbon:#000000;--sky:#dcecff;--blue:#8cc2ff;--mint:#cfeff0;--lav:#dcdcff;--sun:#fff0a6;--ember:#b3122e;--violet:#2747c4;--mist:#e7eff8;
  --theme-filter:none}
html[data-palette="glow"]{--paper:#ffffff;--carbon:#000000;--sky:#ecf9ff;--blue:#00d4ff;--mint:#4dffb0;--lav:#ff9cf0;--sun:#e8ff2e;--ember:#c4006a;--violet:#5320e6;--mist:#f1f1f6;
  --theme-filter:none}
html[data-palette="bloom"]{--paper:#fffdf8;--carbon:#000000;--sky:#e6f6ea;--blue:#a9cdff;--mint:#a8ebbf;--lav:#ffc6ec;--sun:#ffe58a;--ember:#b8185a;--violet:#6a3fd1;--mist:#f1efe6;
  --theme-filter:none}
html[data-palette="pop"]{--paper:#ffffff;--carbon:#000000;--sky:#c8f1ff;--blue:#2fb3ff;--mint:#2ee08a;--lav:#ffc1e3;--sun:#ffd400;--ember:#c43800;--violet:#6a2ae8;--mist:#eef6f8;
  --theme-filter:none}
html[data-palette="harvest"]{--paper:#fffaf2;--carbon:#000000;--sky:#ffe6c9;--blue:#f2a65a;--mint:#c9d68a;--lav:#f3cdbd;--sun:#ffc53d;--ember:#a3330c;--violet:#7a2436;--mist:#f3e9da;
  --theme-filter:none}
html[data-palette] body{background:var(--paper)}
html[data-palette] body::before{background:var(--paper)}
html[data-palette] .site-head.solid{background:color-mix(in srgb,var(--paper) 92%,transparent)}

/* ---------- Night: neon Neo-Kanto palette (FX day/night switch puts .night on <html>) ----------
   Every token that sits behind --carbon text turns deep, so light ink stays readable on it;
   neon pink/cyan/yellow come in as outlines, shadows and glows. */
html.night{color-scheme:dark;--theme-filter:brightness(.55) hue-rotate(-25deg);
  --paper:#110d24; --carbon:#f3eeff; --mist:#1f1a3a; --concrete:#3a3358;
  --sky:#16306b; --lav:#3f1d6e; --mint:#0c5442; --sun:#5f4c00; --blue:#1a4794; --ember:#ff5a2a; --violet:#a58bff;
  --neon-pink:#ff3ec8; --neon-cyan:#2de2ff; --neon-yellow:#ffe94d;
  --night-bg:#0b0818; --night-deep:#07050f; /* page behind the bands; footer, marquee and dark bands */
  --inv-bg:var(--night-deep); --inv-ink:var(--carbon)}
/* dark sets: carbon text on every surface token and paper text on ember/violet/neons at 4.5:1 or better; neon outlines 3:1 against the page */
html.night[data-palette="snow"]{--paper:#0b1526;--carbon:#ecf5ff;--sky:#14345e;--blue:#1d4f8f;--mint:#0f4a57;--lav:#2a2f70;--sun:#4c4316;--ember:#ff6b7d;--violet:#8fb8ff;--mist:#16233a;--concrete:#33415c;--neon-pink:#9fd4ff;--neon-cyan:#e2f0ff;--neon-yellow:#fff0a6;--night-bg:#071020;--night-deep:#040a15;
  --theme-filter:brightness(.5) hue-rotate(-38deg) saturate(.8)}
html.night[data-palette="glow"]{--paper:#0d0a1f;--carbon:#f7f2ff;--sky:#25105a;--blue:#0d3f7a;--mint:#054a3c;--lav:#4f0f55;--sun:#4a4a00;--ember:#ff4f8b;--violet:#b98cff;--mist:#1c1638;--concrete:#3a3358;--neon-pink:#ff2bd6;--neon-cyan:#00ecff;--neon-yellow:#d8ff1f;--night-bg:#08061a;--night-deep:#05030f;
  --theme-filter:brightness(.55) hue-rotate(250deg) saturate(1.6)}
html.night[data-palette="bloom"]{--paper:#15101c;--carbon:#fbf3ff;--sky:#1d3b2d;--blue:#253f75;--mint:#174a33;--lav:#45204f;--sun:#544300;--ember:#ff7aa8;--violet:#c9a6ff;--mist:#221b2b;--concrete:#40354d;--neon-pink:#ff9ad6;--neon-cyan:#8fffc8;--neon-yellow:#ffe58a;--night-bg:#0f0b14;--night-deep:#08060c;
  --theme-filter:brightness(.55) hue-rotate(75deg) saturate(.85)}
html.night[data-palette="pop"]{--paper:#06161d;--carbon:#effcff;--sky:#0b3a50;--blue:#0a4685;--mint:#064a39;--lav:#4a1442;--sun:#5a4900;--ember:#ff7a3d;--violet:#5fd3ff;--mist:#0f2530;--concrete:#2b4552;--neon-pink:#ff5fb0;--neon-cyan:#29e6ff;--neon-yellow:#ffe100;--night-bg:#041016;--night-deep:#020a0e;
  --theme-filter:brightness(.6) hue-rotate(-25deg) saturate(1.3)}
html.night[data-palette="harvest"]{--paper:#1a100a;--carbon:#fff1e3;--sky:#3c2410;--blue:#5a2c0e;--mint:#2f3a14;--lav:#4a1d26;--sun:#5a3c00;--ember:#ff8a3d;--violet:#ffb37a;--mist:#28190f;--concrete:#4d3a2b;--neon-pink:#ff8a3d;--neon-cyan:#ffc53d;--neon-yellow:#ffe08a;--night-bg:#120a06;--night-deep:#0a0503;
  --theme-filter:brightness(.5) sepia(.45) saturate(1.5) hue-rotate(-12deg)}
html.night[data-palette="sunset"]{--paper:#1c0d14;--carbon:#fff0ea;--sky:#4a1f22;--blue:#5c2416;--mint:#4f2a12;--lav:#4d1838;--sun:#5c3d00;--ember:#ff7a59;--violet:#ff9ec4;--mist:#2a141d;--concrete:#4f3340;--neon-pink:#ff6f91;--neon-cyan:#ffb38a;--neon-yellow:#ffc94a;--night-bg:#140810;--night-deep:#0b0408;
  --theme-filter:brightness(.55) hue-rotate(145deg) saturate(1.35)}
html.night[data-palette="acid"]{--paper:#0b0f05;--carbon:#f6ffe6;--sky:#26380a;--blue:#1c3480;--mint:#204a07;--lav:#4f1150;--sun:#424c00;--ember:#ff4fa8;--violet:#a6ff3d;--mist:#161c0c;--concrete:#39402c;--neon-pink:#ff4fd8;--neon-cyan:#a6ff3d;--neon-yellow:#f2ff3a;--night-bg:#070a03;--night-deep:#040602;
  --theme-filter:brightness(.55) hue-rotate(95deg) saturate(1.8)}
html.night[data-palette="earth"]{--paper:#1a120a;--carbon:#fbf0dc;--sky:#3a2a12;--blue:#5a3e0c;--mint:#333d16;--lav:#45301f;--sun:#5a4200;--ember:#ff8f5a;--violet:#d9c46a;--mist:#261b10;--concrete:#4a3a28;--neon-pink:#e8b53a;--neon-cyan:#a6b86a;--neon-yellow:#ffd77a;--night-bg:#120c06;--night-deep:#0a0603;
  --theme-filter:brightness(.5) sepia(.6) saturate(1.9) hue-rotate(-14deg)}
html.night[data-palette="ocean"]{--paper:#051a22;--carbon:#e9fcff;--sky:#0b3a48;--blue:#0b4a66;--mint:#08473f;--lav:#1d3566;--sun:#244f4a;--ember:#3fd0f0;--violet:#7fe3cf;--mist:#0c2730;--concrete:#2a4650;--neon-pink:#3bb8db;--neon-cyan:#7fe3cf;--neon-yellow:#c4f5ec;--night-bg:#03121a;--night-deep:#020b10;
  --theme-filter:brightness(.55) hue-rotate(-22deg) saturate(1.15)}


html.night body,html.night[data-palette] body{background:var(--night-bg)}
html.night body::before{background:var(--night-bg)}
html.night .marquee{border-color:var(--neon-pink)}
html.night .site-foot .big a{background-image:linear-gradient(90deg,var(--neon-yellow),var(--neon-pink),var(--neon-cyan),#8bff6a,var(--neon-yellow))}
html.night .pill.dark{background:var(--neon-pink);color:var(--paper);border-color:var(--neon-pink)}
html.night .pill.dark:hover{background:var(--neon-cyan);border-color:var(--neon-cyan)}
html.night .pill:not(.dark):hover{box-shadow:0 0 0 2px var(--neon-cyan),0 0 18px rgba(45,226,255,.55)}
html.night .sticker{box-shadow:4px 5px 0 var(--neon-pink)}
html.night a.card:hover{box-shadow:6px 8px 0 var(--neon-cyan)}
html.night .card{border-color:color-mix(in srgb,var(--violet) 70%,var(--paper))}
html.night h2.display{text-shadow:0 0 22px color-mix(in srgb,var(--neon-pink) 35%,transparent)}
html.night .trip-video{filter:var(--theme-filter) saturate(calc(.9 + .8 * var(--vibe)))}
html.night .trip .swirl::after{background:radial-gradient(circle at 50% 50%,rgba(17,13,36,0) 0,rgba(17,13,36,.6) 60%,rgba(17,13,36,.9) 100%)}
html.night ::selection{background:var(--neon-pink);color:var(--paper)}

/* ---------- Polish: consistent cards, textured white bands, a fuller footer ---------- */
.card{box-shadow:4px 5px 0 var(--carbon)}
a.card:hover{box-shadow:7px 9px 0 var(--carbon)}
main>section.sec:not(.sec-sky):not(.sec-lav):not(.sec-mint):not(.sec-sun):not(.sec-blue):not(.sec-dark):not([style*="background"]){
  background-color:var(--paper);background-image:radial-gradient(color-mix(in srgb,var(--carbon) 11%,transparent) 1.1px,transparent 1.5px);background-size:24px 24px}
.site-foot .foot-nav{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin-top:28px}
.site-foot .foot-nav a,.site-foot .foot-nav button{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:2px solid rgba(255,255,255,.4);border-radius:var(--r-pill);
  color:inherit;background:transparent;font:700 13px/1 var(--f-body);letter-spacing:.05em;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.site-foot .foot-nav a:hover,.site-foot .foot-nav button:hover{background:var(--sun);color:#000;border-color:var(--sun)}
.site-foot .foot-nav .top{margin-left:auto}
.site-foot .big{display:flex;align-items:center;gap:.12em;flex-wrap:nowrap}
.site-foot .big .flower{width:.85em;height:.85em;flex:none;animation:spin 20s linear infinite}
html.night .site-foot .foot-nav a:hover,html.night .site-foot .foot-nav button:hover{background:var(--neon-yellow)}

/* ---------- Phones: one calm layout pass for every page ----------
   html body prefixes win over the per-page <style> blocks without touching them. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%} /* no iOS text inflation */
@media (max-width:720px){
  html body .wrap{padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px))}
  html body .sec{padding-block:44px}
  html body .sec-head{margin-bottom:22px;gap:12px}
  html body .h-xl{font-size:clamp(44px,13vw,60px)}
  html body .h-lg{font-size:clamp(32px,10.5vw,44px)}
  html body .h-md{font-size:clamp(28px,8.2vw,36px)}
  html body .h-sm{font-size:clamp(22px,6vw,28px)}
  html body .display{overflow-wrap:normal;hyphens:none}
  html body .lead{font-size:20px}
  html body .body-lg{font-size:17px}
  html body .card .body{padding:16px 18px 18px;gap:6px}
  html body .card h3{font-size:21px;line-height:1.15}
  html body .card p{font-size:17px;line-height:1.45}
  html body .chip{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
  html body .pill{min-height:44px}
  html body .btn-row{gap:10px}
  html body .likes{gap:8px}
  html body .likes span{font-size:14px;padding:10px 14px}
  html body .site-foot .big{font-size:clamp(40px,13vw,72px)}
  html body .site-foot .row{gap:6px 16px}
  html body .site-foot .row a{display:inline-flex;align-items:center;min-height:44px}
  html body .dots button{position:relative}
  html body .dots button::after{content:"";position:absolute;inset:-15px -4px}
  /* room for the floating "Short on time?" and FX buttons */
  html body .site-foot{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 72px)}
  html body .page-hero>.wrap,html body .trip-hero>.wrap{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 76px)}
  /* thumb-sized targets (44px) for everything people tap */
  html body .site-head .row>.pill{height:44px}
  html body .site-head .logo{min-width:44px;min-height:44px;justify-content:center}
  html body .site-foot .foot-nav a,html body .site-foot .foot-nav button,html body .fx-ach-chip{min-height:44px}
  html body .filters button,html body .tabs .tab,html body .tabbar [role=tab],html body .ex{min-height:44px}
  html body .ride-skip,html body .mailto{display:inline-flex;align-items:center;min-height:44px}
  html body .chips>a,html body .chips>.fx-hot,html body .likes span{display:inline-flex;align-items:center;min-height:44px}
  html body .dots{gap:14px}
  html body .dots button::after{inset:-15px -7px}
  /* reading text stays at 16px or more */
  html body .controls{font-size:16px!important}
  html body .ride-status,html body .panel p.hint{font-size:16px}
  /* card and section headings: no lonely last word ("Tau Epsilon / Phi") */
  html body :is(h2,h3):not(.display){text-wrap:balance}
  /* hero sticker labels: 12px, the smallest size that still reads on a phone */
  html body .hero-stickers>.sticker{font-size:12px!important}
  html body .hero-stickers>.sticker.round:not([data-fx="trip"]){font-size:11px!important}
}

/* ---------- Tailored links (site.js Tailor): a sticker note on Home, a small chip everywhere else ---------- */
.tl-hi{position:relative;z-index:3;display:flex;flex-direction:column;gap:10px;width:fit-content;max-width:min(360px,100%);margin:0 0 20px;padding:14px 16px;
  background:var(--sun);color:var(--carbon);border:var(--line);border-radius:var(--r-sticker);box-shadow:4px 5px 0 var(--carbon);rotate:-2deg;font:700 17px/1.25 var(--f-body);transition:rotate .3s cubic-bezier(.3,1.6,.5,1)}
.tl-hi:hover,.tl-hi:focus-within{rotate:0deg}
.tl-hi p{margin:0;padding-right:32px}
.tl-hi b{display:block;font-family:var(--f-display);font-weight:400;text-transform:uppercase;font-size:24px;line-height:.95;margin-bottom:6px;overflow-wrap:anywhere}
.tl-row{display:flex;gap:8px;flex-wrap:wrap}
.tl-hi .pill{padding:10px 14px;font-size:13px}
.tl-x{position:relative;flex:none;display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:var(--line);border-radius:50%;background:var(--paper);color:var(--carbon);font:700 16px/1 var(--f-body);cursor:pointer;transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
.tl-x::after{content:"";position:absolute;inset:-8px}
.tl-x:hover{transform:rotate(90deg) scale(1.1)}
.tl-hi .tl-x{position:absolute;top:8px;right:8px}
.tl-hi.long b{font-size:19px}
/* wide screens: the note sits in the open corner beside the name, so nothing in the hero moves */
@media (min-width:1280px){.trip-hero .tl-hi{position:absolute;top:calc(var(--head-h) + 8px);right:5%;margin:0;width:330px;max-width:330px;rotate:2deg}}
.tl-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 5px 5px 12px;background:var(--sun);color:var(--carbon);border:var(--line);border-radius:var(--r-pill);
  font:700 12px/1.1 var(--f-body);letter-spacing:.04em;text-transform:uppercase;rotate:-2deg}
.tl-chip-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-head .tl-chip{display:none;max-width:330px;margin-left:14px}
@media (min-width:1240px){.site-head .tl-chip{display:inline-flex}}
.site-foot .row .tl-chip{rotate:2deg}

/* ---------- Card clips (site.js): a silent loop of the real work fades in over the card's image ---------- */
[data-clip]>video.clip{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s;pointer-events:none;background:transparent}
[data-clip].clip-on>video.clip{opacity:1}
.clip-on>.swatch-preview span{animation-play-state:paused}
/* iPhone Safari: keep the video inside the rounded screen on the Play cabinets, like .card>.media above */
.screen[data-clip]{isolation:isolate;-webkit-mask-image:-webkit-radial-gradient(white,black)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .trip,.trip.open{transition:none}
}

/* No underlines anywhere (Michael's call): links and hover-peek words stay plain text */
a,a:hover,a:focus,[data-peek],.fx-peek-t,mark{text-decoration:none!important}
