/* After Hours Agency: public site */
:root {
  --night: #0B1A2E;
  --night-2: #12233B;
  --cream: #F3E9D2;
  --cream-2: #D5DCE6;
  --warm: #F4E4C4;
  --ink: #2A1D10;
  --walnut: #17110C;
  --turq: #2FA7A0;
  --turq-ink: #0B1A2E;
  --coral: #FF8A5B;
  --brass: #D4AF6A;
  --sans: "futura-pt", "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
/* no smooth scrolling: links jump straight to their section (see goTo in site.js) instead of gliding through every room */
html { -webkit-text-size-adjust: 100%; }
/* the "cut" between sections: a quick fade to black and back */
.cut { position: fixed; inset: 0; z-index: 60; background: #050403; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.cut.on { opacity: 1; }
[tabindex="-1"]:focus { outline: none; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 18px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--night); padding: 10px 14px; }
.skip:focus { top: 12px; }
.muted { color: var(--cream-2); font-size: 14px; }

/* type */
.eyebrow { margin: 0; font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.display { margin: 0; font-weight: 300; font-size: clamp(38px, 5.5vw, 64px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.script { margin: 0; font: 400 clamp(52px, 8vw, 96px)/1 var(--script); }
.lede { margin: 0; font-weight: 300; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }

.neon {
  margin: 0; font: 400 clamp(68px, 11vw, 160px)/1 var(--script); color: #FFE3D6;
  text-shadow: 0 0 2px #fff, 0 0 8px #FF9A6B, 0 0 18px #FF7A45, 0 0 38px #FF5F2E;
}
/* The sign's wide halo used to be a 5th text-shadow blurred 80px: ~36 ms to draw each time, so after a fast scroll
   back up the browser couldn't redraw it in time and the sign was missing or half-drawn. A gradient behind the words
   looks the same at that blur and costs almost nothing. */
.title .neon { position: relative; }
.title .neon::before {
  content: ""; position: absolute; inset: -45% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 95, 46, .34), rgba(255, 95, 46, .16) 55%, rgba(255, 95, 46, 0));
}
.neon-sm { font-size: 36px; text-shadow: 0 0 6px #FF7A45, 0 0 18px rgba(255, 95, 46, .55); }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px; padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  background: linear-gradient(rgba(6, 14, 28, .6), rgba(6, 14, 28, 0));
}
/* the solid bar once you've scrolled: a layer that fades in and out, not a background transition, which redrew the
   whole header every frame and left half-drawn dark patches (e.g. behind the logo) on fast scrolls */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 26, 46, .95);
  opacity: 0; transition: opacity .3s; will-change: opacity; pointer-events: none; }
.site-header.solid::before { opacity: 1; }
.brand { text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: .32em; text-transform: uppercase; }
.brand span { font-weight: 300; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.site-header nav a { text-decoration: none; padding: 8px 0; }
.site-header nav a:hover { color: #fff; }
.nav-cta { background: var(--turq); color: var(--turq-ink) !important; padding: 11px 16px !important; border-radius: 3px; }
@media (max-width: 560px) {
  .hide-sm, .brand span { display: none; }
  .site-header { flex-wrap: nowrap; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
  .brand { font-size: 12px; letter-spacing: .24em; white-space: nowrap; }
  .site-header nav { gap: 14px; font-size: 12px; letter-spacing: .12em; }
  .nav-cta { padding: 10px 12px !important; white-space: nowrap; }
}

/* ARRIVAL ------------------------------------------------------------- */
.arrival { position: relative; height: 100vh; height: 100svh; }
.js .arrival { height: 320vh; height: 320svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050c18; }
.scene {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, calc(100vh * var(--ratio))); width: max(100vw, calc(100svh * var(--ratio)));
  aspect-ratio: var(--ratio);
  transform-origin: calc(var(--door-l) + var(--door-w) / 2) calc(var(--door-t) + var(--door-h) / 2);
  transform: translate(-50%, -50%) translateY(calc(var(--pan, 0) * 1px)) scale(var(--z, 1));
  /* no will-change: it makes Chrome keep the scene drawn at the zoom it first had. Loading a deep link (e.g. #work)
     first draws it walked through the door at ~5.6x (a ~19,000px-wide copy), which used up graphics memory: back at
     the top the sign, the door and part of the house were never drawn. Without it, only what's on screen is drawn. */
}
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.doorway, .door-wrap, .door-btn {
  position: absolute; left: var(--door-l); top: var(--door-t); width: var(--door-w); height: var(--door-h);
}
.doorway img { width: 100%; height: 100%; }
.doorway { box-shadow: 0 0 calc(var(--open, 0) * 3vw) rgba(255, 190, 110, calc(var(--open, 0) * .55)); }
.door-wrap { perspective: var(--persp, 300px); overflow: hidden; } /* --persp set from the door's size in site.js */
.door {
  width: 100%; height: 100%; transform-origin: 100% 50%; /* hinges on the right; the lever is on the left */
  transform: rotateY(calc(var(--open, 0) * -82deg));
  filter: brightness(calc(1 - var(--open, 0) * .45));
}
/* light spilling out of the open door onto the walk: a trapezoid exactly as wide as the door at the threshold,
   fanning out to ~4 door-widths and fading to almost nothing. The shape is on ::before and the blur on .spill, so
   the blur softens the trapezoid's edges too (a blur on the clipped element itself would leave them hard). */
.spill {
  position: absolute; left: calc(var(--door-l) - var(--door-w) * 1.6); top: calc(var(--door-t) + var(--door-h));
  width: calc(var(--door-w) * 4.2); height: calc(var(--door-h) * 1.5);
  mix-blend-mode: screen; opacity: var(--open, 0); filter: blur(5px); pointer-events: none;
}
.spill::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(255, 200, 130, .62), rgba(255, 196, 120, .34) 22%, rgba(255, 196, 120, .14) 50%,
    rgba(255, 196, 120, .04) 75%, rgba(255, 196, 120, 0) 92%);
  clip-path: polygon(38.1% 0, 61.9% 0, 100% 100%, 0 100%);
}
.door-btn { border: 0; padding: 0; background: transparent; cursor: pointer; }
.door-btn:hover ~ * { cursor: pointer; }
.door-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.title {
  position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: calc(clamp(64px, 8vh, 104px)) var(--gutter) 0; /* high in the sky, clear of the roofline */ text-align: center; pointer-events: none;
  opacity: var(--title-o, 1); transform: translateY(calc(var(--title-y, 0) * 1px));
  /* its own layer: the neon glow (big blurred text-shadows) is costly to paint, so paint it once and only fade and
     move the layer while scrolling. Without this, fast scrolls back up showed half-drawn tiles of the sign. */
  will-change: opacity, transform;
}
.title .neon { animation: neon-on 2.6s steps(1, end) .4s both; }
@keyframes neon-on {
  0% { opacity: 0; } 6% { opacity: .85; } 9% { opacity: .1; } 13% { opacity: 1; } 16% { opacity: .35; } 19%, 100% { opacity: 1; }
}
.tagline { margin: 0; font-weight: 300; font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .34em; text-transform: uppercase; color: var(--cream-2);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.cue {
  position: absolute; left: 50%; bottom: max(28px, 5vh); transform: translateX(-50%); text-decoration: none;
  font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream);
  padding: 10px 16px; opacity: var(--cue-o, 1); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); will-change: opacity;
}
.cue span { display: inline-block; margin-left: 6px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2.5px); } 50% { transform: translateY(2.5px); } } /* centred on the text line */
/* "next room" hint (site.js): fixed at the bottom, shown when someone pauses in a room. Room cards sit a little higher
   on the home page to leave it room. */
.next-cue {
  position: fixed; z-index: 30; left: 50%; bottom: max(10px, 1.6vh); transform: translate(-50%, 6px); text-decoration: none; white-space: nowrap;
  font-weight: 500; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream);
  padding: 8px 14px 8px 18px; border-radius: 999px; background: rgba(24, 14, 7, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none; transition: opacity .5s ease, transform .5s ease;
}
.next-cue.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.next-cue:hover { color: #fff; background: rgba(24, 14, 7, .75); }
.next-cue-a { display: inline-block; margin-left: 8px; animation: bob 2s ease-in-out infinite; }
.has-next-cue .ws-card, .has-next-cue .entry-card { bottom: calc(max(22px, 4vh) + 30px); }
@media (prefers-reduced-motion: reduce) { .next-cue-a { animation: none; } .next-cue { transition: none; } }
.doorway img { object-fit: cover; }
/* the roof and treetops (sky cut away), a copy of the scene's transform layered over the sign, so the roof passes in
   front of it. Hidden once the sign has faded: below that it's identical to the scene under it. */
.scene-fg { pointer-events: none; opacity: clamp(0, calc(var(--title-o, 1) * 40), 1); }
.scene-fg img { position: absolute; left: 0; width: 100%; max-width: none; }
/* the hallway, framed exactly like the entry scene's first frame, fades in as you step through the door */
.hall-in { position: absolute; inset: 0; opacity: var(--warm-o, 0); pointer-events: none; overflow: hidden; }
.hall-in img { position: absolute; left: 50%; top: 50%; max-width: none;
  width: max(100vw, calc(100vh * var(--ratio))); width: max(100vw, calc(100svh * var(--ratio))); aspect-ratio: var(--ratio);
  transform: translate(-50%, -50%) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .js .arrival { height: 100vh; height: 100svh; }
  .stage { position: relative; }
  .door, .spill, .doorway { transition: transform .9s ease, opacity .9s ease, filter .9s ease, box-shadow .9s ease; }
  .arrival.is-open { --open: 1; }
  .title .neon, .cue span { animation: none; }
}

/* ENTRY: the hallway and its doors ------------------------------------ */
.entry-room { position: relative; height: 100vh; height: 100svh; background: #2a1a0f; }
.js .entry-room { height: 190vh; height: 190svh; }
/* phones: the hall settles (one zoom out, no pan) into a postcard of all four doors with the card under it */
@media (orientation: portrait) {
  .js .entry-room { height: 150vh; height: 150svh; }
  .js .entry-card { top: var(--card-top, auto); bottom: auto; }
}
.entry-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* The hallway takes over in place: the entry section starts one screen early, underneath the end of the
   arrival, and stays hidden until the walk-in has finished (its last frame is this same view). */
.js .entry-room { margin-top: -100vh; margin-top: -100svh; background: transparent; pointer-events: none; }
.js .entry-stage { background: #2a1a0f; pointer-events: auto; }
.js .entry-stage { visibility: var(--ev, hidden); }
.entry-scene {
  position: absolute; left: 50%; top: 50%; container-type: inline-size;
  width: max(100vw, calc(100vh * var(--ratio))); width: max(100vw, calc(100svh * var(--ratio)));
  aspect-ratio: var(--ratio);
  transform: translate(calc(-50% + var(--pan-x, 0) * 1px), calc(-50% + var(--pan-y, 0) * 1px)) scale(var(--ez, 1));
}

.edoor {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h);
  --o: 0; /* 0 closed, ~.15 ajar on hover, 1 open */
}
.edoor:hover, .edoor:focus-visible { --o: .16; }
.edoor.is-open { --o: 1; }
.edoor:focus-visible { outline: none; }
.edoor:focus-visible .edoor-plaque { outline: 3px solid var(--coral); outline-offset: 3px; }
.edoor-glow, .edoor-leaf { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the lit room behind the door, in the door's exact shape: brightest low down (light on the floor beyond),
   falling off toward the ceiling and the jambs, so it reads as a room with depth rather than a painted panel */
.edoor-glow {
  background:
    linear-gradient(to right, rgba(12, 7, 3, .62), rgba(12, 7, 3, 0) 32%, rgba(12, 7, 3, 0) 68%, rgba(12, 7, 3, .62)),
    linear-gradient(to top,
      color-mix(in srgb, var(--glow), #fff 30%) 0%, var(--glow) 22%,
      color-mix(in srgb, var(--glow), #000 45%) 62%, color-mix(in srgb, var(--glow), #000 72%) 100%);
  -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat;
  /* fully opaque the moment the door moves, so the door painted into the hallway image never ghosts through;
     on closing it waits until the leaf is nearly shut before fading */
  opacity: clamp(0, calc(var(--o) * 40), 1);
  /* only the strip the leaf has uncovered (--free = the transparent margin on the leaf sprite's handle side, so the
     clip follows the visible door edge, not the sprite box): as the leaf narrows toward its hinge, its top and bottom edges keep their
     perspective slope, which left wedges of glow above and below it. Clipped to the strip (in step with the leaf's
     swing), the wedges show the door painted in the hallway behind instead, which matches the leaf. */
  clip-path: inset(0 0 0 calc((1 - var(--o) * .86) * (1 - var(--free, 0)) * 100%));
  transition: opacity .25s ease .6s, clip-path .8s cubic-bezier(.3, .7, .2, 1);
}
/* door just ajar (hover / keyboard focus): the gap is too thin for the room's depth shading, which made it a muddy
   grey-beige that read as paint on the frame. Show it as light leaking from the room instead: the room's colour,
   brightest low down, with no darkened sides. Opening the door switches to the full room glow above. */
.edoor:is(:hover, :focus-visible):not(.is-open) .edoor-glow {
  background: linear-gradient(to top, color-mix(in srgb, var(--glow), #fff 45%), color-mix(in srgb, var(--glow), #fff 15%) 35%,
    var(--glow) 75%, color-mix(in srgb, var(--glow), #000 25%));
}
.edoor[data-hinge="right"] .edoor-glow { clip-path: inset(0 calc((1 - var(--o) * .86) * (1 - var(--free, 0)) * 100%) 0 0); }
.edoor:hover .edoor-glow, .edoor:focus-visible .edoor-glow, .edoor.is-open .edoor-glow { transition: opacity .12s ease 0s, clip-path .8s cubic-bezier(.3, .7, .2, 1); }
/* plain frame wood that covers the lever tip painted on the jamb, shown only while the door is open */
.edoor-patch { position: absolute; max-width: none; opacity: clamp(0, calc(var(--o) * 40), 1); transition: opacity .25s ease .6s; }
.edoor:hover .edoor-patch, .edoor:focus-visible .edoor-patch, .edoor.is-open .edoor-patch { transition: opacity .12s ease 0s; }
/* the door swings inward on its hinge: seen from down the hall it narrows toward the hinge edge */
.edoor-leaf {
  transform-origin: left center; transform: scaleX(calc(1 - var(--o) * .86));
  filter: brightness(calc(1 - var(--o) * .55));
  transition: transform .8s cubic-bezier(.3, .7, .2, 1), filter .8s ease;
}
.edoor[data-hinge="right"] .edoor-leaf { transform-origin: right center; }
/* light spilling onto the terrazzo in front of the door */
.edoor-spill {
  position: absolute; top: 88%; height: 22%; width: 520%; left: -60%;
  background: radial-gradient(ellipse 50% 50% at 25% 40%, color-mix(in srgb, var(--glow), transparent 35%), transparent 70%);
  mix-blend-mode: screen; opacity: calc(var(--o) * .9); transition: opacity .8s ease; pointer-events: none;
}
.edoor[data-hinge="right"] .edoor-spill { left: auto; right: -60%; background: radial-gradient(ellipse 50% 50% at 75% 40%, color-mix(in srgb, var(--glow), transparent 35%), transparent 70%); }
/* brass room sign: a blade sign facing down the hall, mounted on the wall 6" nearer the viewer than the door frame,
   its top level with the frame's top (anchor --sx/--sy and perspective scale --ss from build-scenes.php). It sticks
   out from the wall toward the middle of the hall: rightward on the left wall, leftward on the right wall. */
.edoor-plaque {
  position: absolute; left: var(--sx, 50%); top: var(--sy, -8%); transform-origin: 0 0; transform: scale(var(--ss, 1)); white-space: nowrap;
  font: 500 max(calc(11px / var(--ez, 1) / var(--ss, 1)), .78cqw)/1 var(--sans); /* never under 11px on screen, even zoomed out */ letter-spacing: .22em; text-transform: uppercase; color: #2A1D10;
  /* lit by the starburst chandelier in the middle of the hall: brighter on the side facing it, a soft shadow cast
     away from it (and a little down) onto the wall, and a bright edge where the light catches it. --sd = which way is
     away from the chandelier: -1 on the left wall, 1 on the right. */
  --sd: -1;
  background: linear-gradient(rgba(255, 246, 220, .22), rgba(255, 246, 220, 0) 45%),
    linear-gradient(calc(180deg + 90deg * var(--sd)), #A9843F, #D9B874 45%, #F1D9A0);
  padding: .45cqw .7cqw .38cqw; border-radius: 2px;
  --cast: calc(var(--sd) * .55cqw) .45cqw .7cqw rgba(28, 12, 2, .55), calc(var(--sd) * .14cqw) .12cqw .18cqw rgba(28, 12, 2, .45),
    inset calc(var(--sd) * -.09cqw) 0 0 rgba(255, 240, 200, .75);
  box-shadow: var(--cast); transition: box-shadow .3s, transform .3s;
}
.edoor[data-hinge="right"] .edoor-plaque { --sd: 1; transform-origin: 100% 0; transform: translateX(-100%) scale(var(--ss, 1)); }
.edoor:hover .edoor-plaque, .edoor:focus-visible .edoor-plaque { box-shadow: var(--cast), 0 0 0 1px #fff6, 0 0 18px color-mix(in srgb, var(--glow), transparent 30%); }

/* the opening at the back of the hall, onto the patio: its sign faces straight down the hall (lit from the front, its
   shadow falling straight down), and the view brightens a little on hover / while you're being taken there */
.eopening { position: absolute; display: block; }
.eopening::before { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 70% 60% at 50% 78%, color-mix(in srgb, var(--glow), transparent 45%), transparent 75%);
  opacity: 0; transition: opacity .4s ease; }
.eopening:hover::before, .eopening:focus-visible::before { opacity: .55; }
.eopening.is-open::before { opacity: 1; }
.eopening:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
.eopening:focus-visible .edoor-plaque { outline: 3px solid var(--coral); outline-offset: 3px; }
.eopening .edoor-plaque { --sd: 0; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--ss, 1));
  background: linear-gradient(rgba(255, 246, 220, .25), rgba(255, 246, 220, 0) 45%), linear-gradient(#EAD096, #C9A45C);
  --cast: 0 .45cqw .7cqw rgba(28, 12, 2, .5), 0 .12cqw .18cqw rgba(28, 12, 2, .4), inset 0 .09cqw 0 rgba(255, 240, 200, .7); }
.eopening:is(:hover, :focus-visible) .edoor-plaque { box-shadow: var(--cast), 0 0 0 1px #fff6, 0 0 18px color-mix(in srgb, var(--glow), transparent 30%); }

.entry-card {
  position: absolute; left: 50%; bottom: max(24px, 4vh); transform: translate(-50%, calc((1 - var(--ec, 1)) * 16px));
  width: min(560px, calc(100% - 2 * var(--gutter))); padding: 18px 24px 20px; border-radius: 6px; text-align: center;
  background: rgba(24, 14, 7, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--cream); opacity: var(--ec, 1);
}
.js .entry-card { opacity: var(--ec, 0); transform: translate(-50%, calc((1 - var(--ec, 0)) * 16px)); }
.entry-card .script { font-size: clamp(40px, 5vw, 60px); color: #FFE3D6; text-shadow: 0 0 14px rgba(255, 122, 69, .55); }
.entry-card p { margin: 6px 0 0; font-weight: 300; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; }
.entry-card a { color: #F6D9A8; }

@media (prefers-reduced-motion: reduce) {
  .js .entry-room { height: 100vh; height: 100svh; margin-top: 0; pointer-events: auto; }
  .js .entry-stage { visibility: visible; }
  .entry-stage { position: relative; }
  .js .entry-card { opacity: 1; transform: translateX(-50%); }
  .edoor-leaf { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (orientation: portrait) {
  .entry-stage { overflow-x: auto; }
  .entry-scene { position: relative; left: 0; top: 0; transform: none; }
}


/* WORK ---------------------------------------------------------------- */
.work { background: var(--walnut); padding: clamp(72px, 10vw, 120px) var(--gutter); }
.work-head { max-width: 1180px; margin: 0 auto 44px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.work .eyebrow { color: var(--brass); margin-bottom: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; min-height: 44px;
  padding: 0 16px; border: 1.5px solid var(--brass); border-radius: 3px; background: transparent; color: var(--cream);
}
.filters button[aria-pressed="true"] { background: var(--brass); color: var(--ink); }
.preview-note { max-width: 1180px; margin: -20px auto 28px; font-size: 14px; color: var(--brass); }
.empty { max-width: 1180px; margin: 0 auto; color: var(--cream-2); }
.pieces { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 36px; }
.piece[hidden] { display: none; }
.piece figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.frame { background: #0c0907; padding: 10px; box-shadow: 0 18px 30px rgba(0, 0, 0, .45); }
.frame img, .frame .noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #F3EEE3; border: 14px solid #F3EEE3; }
.frame .noimg { display: grid; place-items: center; color: #8C8577; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.piece figcaption { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.piece-title { font-weight: 400; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.piece-meta { font-weight: 300; font-size: 14px; color: #C9B48E; }
.draft { margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--coral); color: var(--ink); }

/* COMMISSIONS --------------------------------------------------------- */
.patio { background: var(--night); padding: clamp(80px, 11vw, 130px) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 40px; }
.patio-scene, .patio-form { display: contents; }
.patio-head { max-width: 640px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.patio .eyebrow { color: #9FB6D6; }
/* with the scene: full-screen backdrop, headline in the sky, the form rising over the deck, which fades into the page */
.patio.has-scene { display: block; padding: 0 0 clamp(64px, 9vw, 110px); background: #1B2E62; }
/* at least a screen tall; on wide screens taller (70% of the width), so the sky above the house isn't cropped away */
.has-scene .patio-scene { display: block; position: relative; height: max(100vh, 70vw); height: max(100svh, 70vw); min-height: 560px; overflow: hidden; }
.has-scene .patio-scene::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(rgba(27, 46, 98, 0), #1B2E62); }
.patio-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* the image's own box, cropped like object-fit: cover at 50% 40%, so hotspots can sit in % of the picture */
.has-scene .patio-scene { container-type: size; }
.patio-canvas { --w: max(100cqw, 100cqh * var(--ratio)); position: absolute; width: var(--w); aspect-ratio: var(--ratio);
  left: calc((100cqw - var(--w)) / 2); top: calc((100cqh - var(--w) / var(--ratio)) * .4); }
.patio-canvas .patio-img { object-fit: fill; }
/* the captain's crew: other skull mugs around the house, each a way into the tiki room */
.crew-mug { position: absolute; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.crew-mug:focus-visible { outline: 2px dashed rgba(246, 217, 168, .6); outline-offset: 2px; }
.mug-note { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 10px)); width: max-content; max-width: 170px;
  padding: 6px 10px; border-radius: 6px; background: rgba(18, 12, 10, .82); color: #F6D9A8; font-size: 12.5px; line-height: 1.3; text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.mug-note strong { display: block; font-family: var(--script, inherit); font-size: 17px; font-weight: 400; color: #FFE3C4; }
.mug-note.is-open { opacity: 1; }
/* in a zooming room (workshop) the note would scale up with the scene; undo the zoom so it stays readable */
.ws-scene .mug-note { transform-origin: 50% 100%; transform: translate(-50%, calc(-100% - 10px)) scale(calc(1 / var(--wz, 1))); }
.entry-scene .mug-note { transform-origin: 50% 100%; transform: translate(-50%, calc(-100% - 10px)) scale(calc(1 / var(--ez, 1))); }
.inquiry-intro { margin: 0 0 4px; font-size: 18px; line-height: 1.5; color: #3B3328; }
.has-scene .patio-head { position: absolute; z-index: 1; left: 50%; top: calc(76px + 3vh); transform: translateX(-50%);
  width: min(640px, calc(100% - 2 * var(--gutter))); text-shadow: 0 2px 18px rgba(0, 10, 40, .6); }
.has-scene .patio-head .script { color: #FFE3D6; text-shadow: 0 0 .08em #fff, 0 0 .35em #FF7A45, 0 0 .9em rgba(255, 95, 46, .55); }
.has-scene .patio-form { display: flex; justify-content: center; position: relative; z-index: 1; margin-top: -26vh; margin-top: -26svh; padding: 0 var(--gutter); }
@media (max-height: 640px) and (orientation: landscape) { .has-scene .patio-form { margin-top: -12svh; } }
.inquiry, .sent { width: 100%; max-width: 640px; background: #F3EEE3; color: #1E1A14; border-radius: 6px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.sent { text-align: center; }
.sent .script { color: #8A3A16; font-size: 56px; }
.sent p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field label, .field legend { font-weight: 500; font-size: 15px; }
.opt { font-weight: 300; color: #5f594e; }
.field input, .field textarea {
  font: 400 17px/1.4 var(--sans); color: #1E1A14; background: #fff; border: 1px solid #8C8577; border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error, .form-error { margin: 0; color: #9B1C14; font-size: 15px; }
.form-error { background: #FBE3DF; border: 1px solid #E3A49B; padding: 10px 12px; border-radius: 4px; }
.kinds { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
.kinds legend { width: 100%; margin-bottom: 6px; }
.kinds label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.kinds input { width: 20px; height: 20px; accent-color: #B8471D; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { align-self: flex-start; font: 500 15px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; padding: 17px 26px;
  border: 0; border-radius: 4px; background: var(--night); color: var(--cream); }
.btn:hover { background: #1c3352; }

/* FOOTER -------------------------------------------------------------- */
.site-footer { background: #070F1C; padding: 40px var(--gutter) max(48px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.site-footer nav a { text-decoration: none; }

/* WORK GRID links ------------------------------------------------------ */
.piece-link { display: block; text-decoration: none; color: inherit; }
.piece-link .frame { transition: transform .35s ease, box-shadow .35s ease; }
.piece-link:hover .frame, .piece-link:focus-visible .frame { transform: translateY(-4px); box-shadow: 0 24px 40px rgba(0, 0, 0, .55), 0 0 0 2px var(--brass); }
.about-project { margin: 0; padding: 10px 12px; background: #E9E1CF; border-radius: 4px; font-size: 15px; }

/* PROJECT PAGE --------------------------------------------------------- */
.project { background: var(--walnut); color: var(--cream); padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 0; }
.project > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.preview-bar { background: var(--coral); color: var(--ink); padding: 10px 14px; border-radius: 4px; font-size: 14px; margin-bottom: 24px; }
.preview-bar a { color: var(--ink); font-weight: 500; }
.p-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.p-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; letter-spacing: .08em; }
.p-crumbs a { color: var(--brass); text-decoration: none; padding: 6px 0; }
.p-crumbs a:hover { color: #fff; }
.p-head .eyebrow { color: var(--brass); }
.p-title { margin: 0; font-weight: 300; font-size: clamp(40px, 6.5vw, 84px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.p-part { margin: 0; color: #C9B48E; font-size: 16px; }
.p-part a { color: var(--cream); }

.p-hero { margin: 0 auto 48px; }
.p-hero img, .p-hero video { width: 100%; max-height: 82vh; object-fit: cover; background: #0c0907; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.p-hero a { display: block; cursor: zoom-in; }

.p-story { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; margin-bottom: 64px; }
.p-text { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.p-text .lede { font-size: clamp(20px, 2.2vw, 24px); color: #F7EBD3; }
.p-body p { margin: 0 0 1em; font-weight: 300; font-size: 18px; line-height: 1.7; color: #E6DAC4; }
.p-body a { color: var(--brass); }
.p-empty { margin: 0; color: #C9B48E; font-style: italic; }
.p-details { flex: 1 1 240px; margin: 0; display: grid; gap: 14px; border-top: 1px solid #4a3622; padding-top: 18px; }
.p-details div { display: grid; gap: 2px; }
.p-details dt { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.p-details dd { margin: 0; font-weight: 300; }
.p-details a { color: var(--cream); }

.p-h2 { margin: 0 0 18px; font-weight: 400; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.p-gallery { margin-bottom: 72px; }
.gallery { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 12px; }
.g-item { margin: 0; }
.g-item a { display: block; cursor: zoom-in; overflow: hidden; background: #0c0907; }
.g-item img, .g-item video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.g-item a:hover img, .g-item a:focus-visible img { transform: scale(1.04); }
.g-video a { position: relative; }
.g-video video { background: #000; pointer-events: none; }
.g-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(8, 6, 4, .55); color: var(--cream); box-shadow: 0 0 0 1px rgba(243, 233, 210, .35);
  transition: background .2s, transform .2s; pointer-events: none; }
.g-play svg { width: 26px; height: 26px; margin-left: 3px; }
.g-video a:hover .g-play, .g-video a:focus-visible .g-play { background: rgba(8, 6, 4, .75); transform: scale(1.08); }
.g-cap { margin: 8px 0 0; font-size: 14px; font-weight: 300; color: #C9B48E; }

.p-subs { margin-bottom: 72px; }
.sub-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.sub-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.sub-img { display: block; aspect-ratio: 4 / 3; background: #0c0907 repeating-linear-gradient(45deg, #2b2016 0 3px, transparent 3px 14px); overflow: hidden; }
.sub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sub-card:hover .sub-img img { transform: scale(1.04); }
.sub-title { font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.sub-sum { font-weight: 300; font-size: 15px; color: #C9B48E; }

.p-cta { max-width: none; margin: 0 calc(-1 * var(--gutter)); padding: clamp(64px, 9vw, 110px) var(--gutter); background: var(--night); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px; }
.p-cta .script { color: #FFE3D6; text-shadow: 0 0 14px rgba(255, 122, 69, .55); font-size: clamp(44px, 6vw, 72px); }
.p-cta p { margin: 0; font-weight: 300; color: var(--cream-2); }
.btn-light { align-self: center; background: var(--turq); color: var(--turq-ink); text-decoration: none; margin-top: 8px; }
.btn-light:hover { background: #3cbcb4; }

/* LIGHTBOX ------------------------------------------------------------- */
.lightbox { padding: 0; border: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(8, 6, 4, .96); color: var(--cream); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lb-img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-img { transition: filter .2s; }
.lb-img, .lb-vid { grid-row: 1; grid-column: 1; }
.lb-cap { grid-row: 2; }
.lb-vid { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); background: #000; }
.lb-img[hidden], .lb-vid[hidden] { display: none; }
.lightbox.is-loading .lb-img { filter: blur(6px) brightness(.8); }
.lb-wait { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 3px solid rgba(243, 233, 210, .25); border-top-color: var(--cream); background: rgba(8, 6, 4, .45);
  box-shadow: 0 0 0 10px rgba(8, 6, 4, .45); animation: lb-spin .8s linear infinite; pointer-events: none; }
.lb-wait[hidden] { display: none; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lb-wait { animation-duration: 2.4s; } }
.lb-cap { margin: 10px 16px 0; min-height: 1.4em; text-align: center; font-weight: 300; color: var(--cream-2); }
.lb-count { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 18px; margin: 0; font-size: 13px; letter-spacing: .2em; color: #C9B48E; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(243, 233, 210, .12); color: var(--cream);
  font: 300 34px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(243, 233, 210, .24); }
.lb-btn svg { display: block; width: 26px; height: 26px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: max(10px, env(safe-area-inset-top)); font-size: 30px; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; } .lb-cap { margin: 10px 76px 0; } }

/* WORKSHOP ------------------------------------------------------------- */
.ws-room { position: relative; height: 100vh; height: 100svh; background: #1d140c; }
.js .ws-room { height: 230vh; height: 230svh; }
@media (orientation: portrait) { .js .ws-room { height: 280vh; height: 280svh; } } /* room to pan across on phones */
/* the workshop holds still on phones: the whole pegboard fits, so no zoom or pan, just one screen */
@media (orientation: portrait) { .js .ws-room--still { height: 100vh; height: 100svh; } }
/* studio and bar on phones: a still postcard of the whole room (scaled to fit the width), card underneath */
@media (orientation: portrait) {
  .js .ws-room--postcard { height: 100vh; height: 100svh; }
  .js .ws-room--postcard .ws-card { top: var(--card-top, auto); bottom: auto; }
}
.ws-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ws-scene {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, calc(100vh * var(--ratio))); width: max(100vw, calc(100svh * var(--ratio))); aspect-ratio: var(--ratio);
  transform-origin: calc(var(--pl) + var(--pw) / 2) calc(var(--pt) + var(--ph) / 2);
  transform: translate(-50%, -50%) translate(calc(var(--wx, 0) * 1px), calc(var(--wy, 0) * 1px)) scale(var(--wz, 1));
  /* no will-change here: it would rasterize the room at 1x and stretch it, blurring the zoomed-in prints */
}
/* the pegboard area; prints hang across it */
.ws-peg {
  position: absolute; left: var(--pl); top: var(--pt); width: var(--pw); height: var(--ph); container-type: size;
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-evenly;
}
/* explicit sizes as a share of the board (no side padding: on the board itself, cqw padding measured the window,
   which squeezed the prints into the middle). 62% of the board tall; 51cqh wide makes the photo inside the 3.5cqh border
   4:5, the same shape as the work cards, so one cover crops the same everywhere. Spread evenly across the board. */
.ws-peg li { flex: none; height: 62cqh; width: 51cqh; margin-top: 4cqh; position: relative; top: -8cqh; transform: rotate(var(--tilt)); transform-origin: 50% 0; }
/* (raised so the bench under the board stays clear: the skull-totem mug stands just below the last print) */
.ws-peg .ws-print { width: 100%; aspect-ratio: auto; }
/* hover: the print stays clipped to its peg and swings a little (pivoting on the peg), its bottom edge lifting off
   the board so the shadow deepens, and it catches a bit more of the light. No zoom, no ring. */
.ws-peg li { transform-origin: 50% -5.3cqh; transition: transform .8s cubic-bezier(.3, 1.9, .45, 1); }
.ws-peg li:hover, .ws-peg li:focus-within { transform: rotate(calc(var(--tilt) * -0.45)); }
.ws-peg .ws-print { transition: box-shadow .4s ease, filter .4s ease; }
.ws-peg .ws-print:hover, .ws-peg .ws-print:focus-visible { transform: none; filter: brightness(1.07);
  box-shadow: 0 3.4cqh 4.6cqh rgba(40, 20, 5, .6), 0 .6cqh 1cqh rgba(40, 20, 5, .35); }
.ws-peg .ws-print:focus-visible { outline: .5cqh dashed rgba(246, 217, 168, .9); outline-offset: .8cqh; }
@media (prefers-reduced-motion: reduce) { .ws-peg li { transition: none; } }
.ws-print { position: relative; display: block; height: 100%; aspect-ratio: 4 / 5; background: #F3EEE3; padding: 3.5cqh;
  box-shadow: 0 1.6cqh 2.4cqh rgba(40, 20, 5, .45); transition: transform .3s ease, box-shadow .3s ease; }
.ws-print img, .ws-noimg { display: block; width: 100%; height: 100%; object-fit: cover; background: #d8cdb7; }
/* each print hangs from a black binder clip, its wire loop hooked over a brass peg */
.ws-hook { position: absolute; left: 50%; top: -2.4cqh; width: 9cqh; height: 5.5cqh; margin-left: -4.5cqh; z-index: 1;
  border-radius: .9cqh .9cqh .3cqh .3cqh; background: linear-gradient(#4a4a4a, #161616 55%, #2a2a2a);
  box-shadow: 0 .7cqh 1cqh rgba(30, 15, 5, .5), inset 0 .3cqh 0 rgba(255, 255, 255, .14); }
.ws-hook::before { content: ""; position: absolute; left: 1.6cqh; right: 1.6cqh; top: -5.2cqh; height: 6.4cqh;
  border: .45cqh solid #cfcfcf; border-bottom: 0; border-radius: 3.2cqh 3.2cqh 0 0; filter: drop-shadow(0 .4cqh .4cqh rgba(30, 15, 5, .4)); }
.ws-hook::after { content: ""; position: absolute; left: 50%; top: -6.6cqh; width: 2.6cqh; height: 2.6cqh; margin-left: -1.3cqh; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3dca6, #b58a45 55%, #6e5126); box-shadow: 0 .5cqh .7cqh rgba(30, 15, 5, .55); }
.ws-print:hover, .ws-print:focus-visible { transform: translateY(-2cqh) scale(1.06); box-shadow: 0 3cqh 4cqh rgba(40, 20, 5, .55), 0 0 0 .6cqh var(--brass); outline: none; }

.ws-card {
  position: absolute; left: 50%; bottom: max(22px, 4vh); transform: translateX(-50%);
  width: min(520px, calc(100% - 2 * var(--gutter))); padding: 16px 22px 18px; border-radius: 6px; text-align: center;
  background: rgba(24, 14, 7, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 4px; align-items: center; opacity: var(--wc, 1);
}
.js .ws-card { opacity: var(--wc, 0); }
/* wide, short windows: the card sits in a bottom corner beside the work instead of over it */
.ws-card--right, .ws-card--left { width: min(380px, 26vw); transform: none; }
.ws-card--right { left: auto; right: var(--gutter); }
.ws-card--left { left: var(--gutter); }
.ws-card .eyebrow { color: var(--brass); }
.ws-title { margin: 0; font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .08em; text-transform: uppercase; }
.ws-sub { margin: 0; font-weight: 300; font-size: 15px; color: #E6DAC4; }
.ws-all { margin-top: 6px; color: #F6D9A8; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 6px 0; }
.ws-all:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .js .ws-room { height: 100vh; height: 100svh; }
  .ws-stage { position: relative; }
  .js .ws-card { opacity: 1; }
}

/* STUDIO --------------------------------------------------------------- */
.st-room { background: #0d1f1d; }
.ws-focus:not(.ws-peg) { position: absolute; pointer-events: none; }
.st-screen, .st-frame { position: absolute; display: block; padding: 0; background: #111; overflow: hidden; }
.st-screen img, .st-frame img { width: 100%; height: 100%; object-fit: cover; }
.st-screen img { object-position: top center; }
.st-screen { box-shadow: 0 0 2.2vw rgba(190, 230, 255, .28); }
/* glass on the screen and frames */
.st-screen::after, .st-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%), radial-gradient(ellipse at 50% 0%, rgba(255, 220, 160, .12), transparent 60%); }
.st-frame { box-shadow: inset 0 0 1.2vw rgba(0, 0, 0, .55); }
.st-frame img { filter: saturate(.92) brightness(.92); }
/* hover: a lift that stays inside the frame */
.st-screen.ws-print, .st-frame.ws-print { padding: 0; aspect-ratio: auto; height: auto; transform: none; transition: box-shadow .3s ease, filter .3s ease; }
.st-screen.ws-print:hover, .st-screen.ws-print:focus-visible, .st-frame.ws-print:hover, .st-frame.ws-print:focus-visible {
  transform: none; box-shadow: 0 0 0 .25vw var(--brass), 0 0 2.4vw rgba(255, 210, 140, .45); }
/* screensaver when there's no digital work yet */
.st-saver { display: grid; place-items: center; container-type: inline-size; isolation: isolate; }
.st-saver::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, #13294a, #070f1c 75%); }
/* the monitor's screen isn't a true rectangle in the photo: its contents are clipped to the measured corners (--clip).
   Only the contents, so the glow and the hover ring (box-shadows outside the box) still show. */
.st-screen { background: transparent; }
.st-screen > img, .st-screen::after, .st-saver::before { clip-path: var(--clip, none); }
.st-saver span { font: 400 13cqw/1 var(--script); color: #FFE3D6;
  text-shadow: 0 0 .6cqw #fff, 0 0 2cqw #FF7A45, 0 0 5cqw rgba(255, 95, 46, .6); animation: saver 6s ease-in-out infinite; }
@keyframes saver { 50% { opacity: .82; transform: translateY(-2cqw); } }
@media (prefers-reduced-motion: reduce) { .st-saver span { animation: none; } }

/* BAR / ABOUT ---------------------------------------------------------- */
.bar-room { background: #0b0908; }
@media (orientation: landscape) { .js .bar-room.ws-room { height: 170vh; height: 170svh; } } /* nothing to push in to on wide screens */
.bar-card { background: rgba(14, 10, 8, .7); width: min(560px, calc(100% - 2 * var(--gutter))); }
.bar-room .ws-title { font: 400 clamp(32px, 3.6vw, 44px)/1.05 var(--script); text-transform: none; letter-spacing: 0; color: #F6D9A8; }
.bar-room .ws-sub { line-height: 1.5; }
/* the portraits sit inside the frames' mats, under a little glass; the side frames hang further from the pendant (--dim),
   and each is clipped to its panel's measured corners (--clip) */
.bar-portrait { position: absolute; overflow: hidden; }
.bar-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: var(--clip, none);
  filter: sepia(.38) saturate(.9) brightness(calc(.64 * var(--dim, 1))) contrast(1.06); }
.bar-portrait::after { clip-path: var(--clip, none); content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 38%), radial-gradient(ellipse at 50% 0%, rgba(255, 210, 150, .16), transparent 65%), radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(20, 10, 0, .62));
  box-shadow: inset 0 0 1.4vw rgba(0, 0, 0, .7); }
/* the captain's eye: a small ember that breathes unevenly, so it catches the corner of your eye */
.bar-mug { position: absolute; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bar-mug:focus-visible { outline: 2px dashed rgba(246, 217, 168, .6); outline-offset: 2px; }
/* undo the pegboard-print look it inherits from .ws-print: no card, ring or lift, just the eye */
.bar-mug.ws-print, .bar-mug.ws-print:hover, .bar-mug.ws-print:focus-visible { aspect-ratio: auto; transform: none; box-shadow: none; transition: none; }
.bar-mug.ws-print:hover { outline: none; }
.mug-eye { position: absolute; width: .9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #FFF1C9 0 9%, #FF9A3C 18%, rgba(255, 80, 20, .55) 34%, rgba(255, 60, 10, 0) 70%);
  mix-blend-mode: screen; opacity: .75; animation: ember 7s ease-in-out infinite; transition: opacity .4s ease, width .4s ease; }
@keyframes ember { 0%, 100% { opacity: .7; } 18% { opacity: .95; } 24% { opacity: .72; } 52% { opacity: 1; } 58% { opacity: .65; } 61% { opacity: .9; } 80% { opacity: .78; } }
.bar-mug:hover ~ .mug-eye, .bar-mug:focus-visible ~ .mug-eye { animation: none; opacity: 1; width: 1.05%; }
.bar-mug.is-ajar ~ .mug-eye { animation: none; opacity: 1; width: 1.15%; }
/* smaller, farther-off mugs: a smaller ember per socket */
.mug-eye--sm { width: .55%; }
.crew-mug:hover ~ .mug-eye--sm, .crew-mug:focus-visible ~ .mug-eye--sm { animation: none; opacity: 1; width: .65%; }
.crew-mug.is-ajar ~ .mug-eye--sm { animation: none; opacity: 1; width: .72%; }
.mug-eye--xs { width: .4%; }
.crew-mug:hover ~ .mug-eye--xs, .crew-mug:focus-visible ~ .mug-eye--xs { animation: none; opacity: 1; width: .48%; }
.crew-mug.is-ajar ~ .mug-eye--xs { animation: none; opacity: 1; width: .54%; }
/* the bookcase: when the captain is clicked, a crack of warm light opens down its right side */
.bar-books { position: absolute; pointer-events: none; }
.bar-books::before, .bar-books::after { content: ""; position: absolute; opacity: 0; mix-blend-mode: screen; transition: opacity .6s ease; }
.bar-books::after { top: 5%; bottom: 0; right: 1.4%; width: 1.6%; filter: blur(.12vw);
  background: linear-gradient(90deg, transparent, #FF8A3D 30%, #FFD39A 50%, #FF8A3D 70%, transparent); }
.bar-books::before { top: -4%; bottom: -10%; left: 88%; width: 45%;
  background: radial-gradient(ellipse 40% 55% at 10% 55%, rgba(255, 120, 40, .7), rgba(255, 90, 40, .2) 50%, transparent 75%); }
.bar-books.is-ajar::after, .bar-books.is-ajar::before { opacity: 1; animation: ajar 1.6s ease-in-out infinite; }
@keyframes ajar { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .mug-eye, .bar-books.is-ajar::after, .bar-books.is-ajar::before { animation: none; } }
