:root {
  --plaster: #f2dfba;
  --ceiling: #ebd7af;
  --beam: linear-gradient(0deg,#865d46 0 15%,#ab7751 16% 85%,#d8a16b 86%);
  /* Greg’s “The road ahead” from the photography collection. */
  --view: image-set(url("../assets/road-to-the-mountains-small.webp") 1x, url("../assets/road-to-the-mountains.webp") 2x);
  --door: #54827a;
  --panel: #658882;
  --panel-light: #849d8e;
  --panel-edge: #3d5654;
  --rail: #af7c54;
  --chrome: #263a3b;
  --milk: #fff0cf;
  --dim: #d1d6c4;
  --mint: #f1c079;
}
body.night {
  --plaster: #343d40;
  --ceiling: #303738;
  --beam: linear-gradient(0deg,#2c2a28 0 15%,#483b31 16% 85%,#63513d 86%);
  --ambient-shade: 32%;
  --rail-glint: #736552;
  --door: #426561;
  --panel: #344a47;
  --panel-edge: #283937;
  --panel-light: #4a5b54;
  --rail: #6d5745;
}
.studio-wall.west {background-color:color-mix(in srgb,var(--plaster) 92%,#d8875f)!important}
.studio-wall.east {background-color:color-mix(in srgb,var(--plaster) 87%,#afa17f)!important}
.studio-wall::before, .studio-wall::after {
  content:""; position:absolute; inset:auto 0 0; height:23%;
}
.studio-wall::before {
  background:
    linear-gradient(to bottom, #654f43 0 2px,var(--rail) 2px 7px,var(--rail-glint,#dbc097) 7px 9px,transparent 9px calc(100% - 12px),var(--panel-edge) calc(100% - 12px) calc(100% - 10px),var(--panel-light) calc(100% - 10px) calc(100% - 8px),var(--panel-edge) calc(100% - 8px)),
    repeating-linear-gradient(90deg, var(--panel) 0 102px,var(--panel-edge) 102px 104px,var(--panel-light) 104px 108px,var(--panel) 108px 112px);
}
.studio-wall::before {background-position:0 0,var(--wall-offset) 0}
/* Leave the north-wall chair rail open behind the sim rig's baked battens. */
.studio-wall.north::before {
  mask-image:linear-gradient(90deg,#000 0 785px,transparent 787px 1094px,#000 1096px);
  mask-size:var(--wall-span) 100%;mask-position:var(--wall-offset) 0;
}
.studio-wall::after {inset:0 0 auto;height:9px;background:linear-gradient(var(--rail) 0 3px,var(--rail-glint,#c5ac83) 3px 6px,transparent 6px)}
.window-view::before {
  content:"";position:absolute;inset:-20%;
  background:var(--view) 50% 30% / cover no-repeat;
  filter:saturate(.78) contrast(.97);
  transform:var(--vista-transform,none);
}
.night .window-view::before {filter:grayscale(.72) sepia(.16) hue-rotate(153deg) saturate(.75) brightness(.47)}
@media (prefers-reduced-motion:reduce) {
  .window-view::before {transform:none}
}
/* The skew follows the north window's three lights and its high transom. */
.studio-sun {overflow:visible}
.studio-sun::before {
  content:"";position:absolute;inset:0;transform:skewX(15deg);transform-origin:0 0;
  clip-path:inset(0 0 0 0);
  background:linear-gradient(180deg,#fff3c980,#fff0bf62 46%,#fff4ca14);
  mask-image:linear-gradient(90deg,transparent,#000 1% 21.4%,transparent 22.2%,#000 23% 74.5%,transparent 75.3%,#000 76% 99%,transparent),
    linear-gradient(180deg,transparent,#000 1% 77.5%,transparent 79%,#000 80% 98.5%,transparent);
  mask-composite:intersect;
}
/* The headrail blocks the highest rays first, drawing the far edge back toward the sill. */
.window-shade-lowered .studio-sun::before {clip-path:inset(0 0 100% 0)}
body.night .studio-sun {visibility:hidden}
.studio-rug {
  border:3px solid #6f473b;border-radius:9px;box-shadow:inset 0 0 0 5px #d8ac75;
  background:radial-gradient(ellipse at 18% 98%, transparent 0 24%,#e7bc83 24.5% 26.5%,transparent 27% 31%,#e7bc83 31.5% 33%,transparent 33.5% 38%,#e7bc83 38.5% 40%,transparent 40.5%),
    radial-gradient(ellipse at 100% 0%,#487775 0 28%,#2e5757 28.5% 32%,#e5ad76 32.5% 35%,transparent 35.5%),
    linear-gradient(120deg,#ac573e,#c57550)!important;
}
.studio-cork {border:3px solid #bc9169;background-image:radial-gradient(#8c62493d 15%,transparent 22%),radial-gradient(#f2d0a74a 11%,transparent 22%)!important;background-size:6px 8px,11px 9px!important;background-position:0 0,3px 2px!important}
.board-stile {
  background:linear-gradient(90deg,#654733,#be9166 24%,#966947 72%,#71523b)!important;
}
.board-rail {
  background:linear-gradient(#dbaf7e 0 13%,transparent 19% 83%,#644a35 96%),
    repeating-linear-gradient(2deg,#a67953 0 2px,#b68359 2.6px 4px)!important;
}
.studio-cork {box-shadow:inset 1px 2px 4px #61483088}
.board-sheet {border-radius:1px 1px 4px 1px}
.board-sheet::after {
  box-shadow:inset .6px .6px #e4ab80, .6px 1.2px 1px #674d4273;
}
.studio-contact {padding:4px 4px 9px;box-shadow:1px 2px 0 #60493388}
.studio-contact i {display:block;width:100%;height:100%;background:url("/assets/coastal-sunset-small.webp") center center/cover}
.studio-contact::after,.studio-notepaper::after {content:"";position:absolute;width:4px;height:4px;top:2px;left:48%;background:#af583d;border:1px solid #854735;border-radius:50%}
.studio-swatches {background:linear-gradient(90deg,#c36650 0 30%,#f0b267 30% 50%,#f1dfb0 50% 70%,#46736f 70%)!important;border:3px solid #f1dfb0;box-shadow:1px 2px 0 #60493388}
.studio-notepaper {border:3px solid #eddaaf;background:repeating-linear-gradient(0deg,#f2dfbb 0 4px,#9ca798 4px 5px)!important}
.studio-door {border:2px solid #494a42;box-shadow:inset 3px 0 0 #ffffff22}
.studio-glass {border:5px solid #4e5149;border-radius:26px 26px 2px 2px;background:repeating-linear-gradient(90deg,#9ebbae 0 3px,#b4c6af 3px 5px,#92aaa0 5px 6px)!important}
.studio-clock {border-radius:50%;border:4px solid #34565a;box-shadow:inset 0 0 0 2px #d5a166;background:repeating-conic-gradient(from -2deg,#3c5350 0 3deg,#f4dca8 3deg 30deg)!important}
.studio-clock::before {content:"";position:absolute;inset:4px;background:#f4dca8;border-radius:50%}
.studio-clock i,.studio-clock b {position:absolute;left:49%;bottom:50%;width:3px;height:36%;background:#304948;border-radius:4px;transform-origin:bottom;transform:rotate(var(--minute-angle,62deg))}
.studio-clock b {height:27%;transform:rotate(var(--hour-angle,-65deg));background:#a8513c}
.atmosphere {background:radial-gradient(ellipse at 40% 42%,transparent 54%,#382e2419)}
/* Let the room's surfaces do the lighting. Keep the lens vignette off the walking path. */
body.night .atmosphere {mix-blend-mode:normal;background:radial-gradient(ellipse 68% 74% at 50% 47%,transparent 60%,#121c221c 91%,#0e181f39)}
header {background:#24383a;border-bottom:3px solid #ba8857}
h1 {font-family:Georgia,"Times New Roman",serif;font-weight:600;font-style:italic;letter-spacing:-.06em}
.back img {filter:brightness(0) invert(.94) sepia(.32)}
#lighting {gap:9px}
#lighting i {position:relative;width:15px;height:15px;background:#efbc70;box-shadow:none;border:1px solid #facf8b}
#lighting[aria-pressed=true] i {background:#c6d8cf;box-shadow:inset 4px -2px 0 0 #324b50;border-color:#bdcfc8}
/* Projected controls must never scroll the camera viewport when they regain focus. */
#walk {background:var(--plaster);overflow:clip}
.compass {background:#f5e3bf;color:#34504d;border:1.5px solid #524d40;box-shadow:1px 2px 0 #5748385c;font-weight:bold}
.compass i {background:repeating-linear-gradient(90deg,#6b8375 0 1px,transparent 1px 6px)}
.foot {color:#cad0bf}
#panel {background:#f7e9cd;color:#2e4542;border:2px solid #314d49;box-shadow:4px 5px 0 #2636346b,0 20px 60px #28333145;border-radius:8px}
#panel::backdrop {background:#1d303298}
#panel h2,#panel h3 {font-style:italic}
#panel p {color:#485954}
.studio-leaf {backface-visibility:visible}
.leaf-left {
  clip-path:polygon(100% 0,100% 100%,45% 81%,9% 59%,0 42%,24% 24%);
  background-image:linear-gradient(72deg,transparent 50%,#aeb79633 51%,transparent 54%),linear-gradient(to left,#a9b487,transparent 14%)!important;
}
.leaf-right {
  clip-path:polygon(0 0,71% 26%,100% 47%,84% 65%,48% 83%,0 100%);
  background-image:linear-gradient(105deg,#405e514d,transparent 43%)!important;
}
/* Materials and light are on world-space surfaces, so they stay put as the camera turns. */
.studio-wall {
  --wall-row:0%;--plaster-atlas:url("./plaster-day.webp?battens");
  background-image:var(--plaster-atlas)!important;
  background-size:var(--wall-span) 400%!important;
  background-position:var(--wall-offset) var(--wall-row)!important;
  background-repeat:no-repeat!important;
}
.studio-wall.west {--wall-row:33.33333%}
.studio-wall.east {--wall-row:66.66667%}
.studio-wall.south {--wall-row:100%}
.night .studio-wall {--plaster-atlas:url("./plaster-night.webp?lamplight")}
.studio-ceiling {background:var(--ceiling)!important}
.night .studio-ceiling {
  background:
    radial-gradient(ellipse 15% 19% at var(--pendant-ceiling-x) var(--pendant-ceiling-y),#d5ae7650,#b38b5020 45%,transparent),
    linear-gradient(90deg,#1520253b,transparent 23% 76%,#1b24263f),var(--ceiling)!important;
}
.studio-floor::before,.studio-floor::after,.studio-ceiling::after {
  content:"";position:absolute;inset:0;
}
.studio-floor::before {
  background:linear-gradient(110deg,transparent 38%,#44392c26),linear-gradient(0deg,#3e332837,transparent 17% 78%,#55372839);
  box-shadow:inset 0 0 46px 4px #553d302e;
}
.night .studio-floor::before {
  /* Receding edges go cooler, but the center retains the warm wood grain. */
  background:radial-gradient(ellipse 67% 73% at 53% 45%,#25232175 12%,#1b252781 54%,#162226ad 86%),
    linear-gradient(0deg,#2224204a,transparent 29% 76%,#1c292f40);
  box-shadow:inset 0 0 55px 8px #131e2199;
}
.studio-floor::after {background:radial-gradient(ellipse 46% 62% at var(--window-axis) 0%,#fff0cf3b,transparent)}
.night .studio-floor::after {background:radial-gradient(ellipse 34% 45% at var(--window-axis) 0%,#97b4ca51,#6485a11c 53%,transparent)}
.studio-ceiling::after {background:radial-gradient(ellipse at var(--window-axis) 100%,#fff1cf66,transparent 65%)}
.night .studio-ceiling::after {background:radial-gradient(ellipse 27% 29% at var(--window-axis) 100%,#819aa323,transparent)}
/* A little diffuse fill still passes through the linen. The pendant has its own reflection. */
.window-shade-lowered .studio-floor::after,.window-shade-lowered .studio-ceiling::after {opacity:.18}
body.window-shade-lowered:not(.night) .desk-walnut-top::before {opacity:0}
@media (prefers-reduced-motion:no-preference) {
  .studio-sun::before {transition:clip-path 1s ease-in-out}
  .studio-floor::after,.studio-ceiling::after,body:not(.night) .desk-walnut-top::before {transition:opacity 1s ease-in-out}
}
.night .studio-rug::after {
  content:"";position:absolute;inset:0;border-radius:inherit;
  /* The pendant sits over the rug's north edge. Keep pile matte rather than glossy. */
  background:radial-gradient(ellipse 84% 105% at 65% 0%,#efb67114,transparent 57%),
    linear-gradient(160deg,#3028202a,#1e272858);
  box-shadow:0 3px 5px #18201d65;
}
.night .window-view::after {
  background:linear-gradient(180deg,#10264266,#14293b6b 55%,#11232c80),
    radial-gradient(ellipse 8% 15% at 15% 73%,#d4ac711a,transparent);
}
.turned-band {background:color-mix(in srgb,var(--enamel),var(--edge-color) var(--edge-light))!important}
.reflector-lining {background:radial-gradient(circle,#e2caa4 48%,#f4e2ba 80%,#ae956d 98%)!important}
.opal-diffuser {background:radial-gradient(ellipse at 45% 45%,#fff1ce,#eedab1 70%,#ad9367 98%)!important}
.night .reflector-lining {background:radial-gradient(circle,#f6d195 45%,#ffe7ad 78%,#d1ac77 98%)!important}
.night .opal-diffuser {background:radial-gradient(circle,#fff6d8 35%,#ffdf9d 76%,#d2a46c 98%)!important}
.studio-lamp-pool {
  background:radial-gradient(ellipse closest-side,#ffe4b7aa,#edbd7e5c 36%,#da9d5920 67%,transparent)!important;
  opacity:var(--practical);
}
.night .studio-lamp-pool {background:radial-gradient(ellipse closest-side,#ffdda6c2,#efb9777a 34%,#da9d592b 66%,transparent)!important}
.night .studio-pendant-pool {
  background:radial-gradient(ellipse closest-side,#efc28764,#d9a36832 36%,#b6854713 66%,transparent)!important;
}
.night .car-rack-backing::after {
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 70% 96% at 50% 0%,#ffd8968c,transparent 85%),linear-gradient(0deg,#202c2c73,transparent 55%);
}
.night .studio-hoopty {box-shadow:inset 0 7px 15px -6px #ffe7ac,2px 2px 0 #544536}
.night .fixture-lens {box-shadow:inset 0 0 1px #ffedc3}
.window-view::after {
  content:"";position:absolute;inset:0;
  background:linear-gradient(114deg,transparent 0 48%,#fff6d509 49% 54%,transparent 54.4%),linear-gradient(#40433742,transparent 19%);
  box-shadow:inset 0 0 0 2px #493f395c;
}
.window-linen,.linen-return {
  background-image:linear-gradient(to bottom,rgb(81 63 44 / var(--fold-shadow,0)),transparent),
    repeating-linear-gradient(90deg,transparent 0 2.2px,#76634714 2.2px 3px),
    repeating-linear-gradient(0deg,transparent 0 2.6px,#f8efdc2a 2.6px 3.2px)!important;
  border-inline:.6px solid #a69476;
  backface-visibility:visible;
}
#scene {--door-trim:#6c9386}
.night #scene {--door-trim:#52736b}
.door-panel {box-shadow:inset 2px 2px 2px #293a344f,inset -1px -1px #c6ceb345}
.door-keyway {border-radius:50% 50% 25% 25%}
.window-pull {border-bottom:1.3px solid #9b815a;border-radius:0 0 4px 4px;backface-visibility:visible}
.window-pull::before,.window-pull::after {
  content:"";position:absolute;inset:0 auto .5px 0;width:1.8px;
  background:radial-gradient(ellipse at 45% 50%,#ead7ae 12%,#ae9671 44%,#766347 62%,transparent 70%) center var(--cord-travel,0px)/100% 3.2px repeat-y,
    linear-gradient(90deg,transparent 26%,#79684e 26% 74%,transparent 74%);
}
.window-pull::after {left:auto;right:0;background-position:center calc(0px - var(--cord-travel,0px)),center}
.night .window-linen,.night .linen-return {filter:brightness(.72) saturate(.75)}
/* The pencil drawer uses the original header wordmark from https://www.foureyesfurniture.com/. */
.foureyes-mark {
  display:block;
  aspect-ratio:1080 / 158;
  background:currentColor;
  -webkit-mask:url('./foureyes-logo.webp') center / contain no-repeat;
  mask:url('./foureyes-logo.webp') center / contain no-repeat;
}
.studio-desk-stamp {display:grid;place-items:center;color:rgb(66 39 24 / 72%)}
.studio-desk-stamp .foureyes-mark {width:21px}
#stamp-hit {position:absolute;pointer-events:auto;transform:translate(-50%,-50%);cursor:pointer}
#stamp-hit:focus-visible {outline:2px dashed #ffe2a0;outline-offset:-4px}
.desk-links-last {display:flex;align-items:center;justify-content:space-between;border-top:1px solid #c7cbbb}
.desk-links-last a {flex:1;border-top:0}
#stamp-in-panel {display:grid;place-items:center;flex:none;min-width:56px;min-height:44px;padding:0;border:0;color:#73533e}
#stamp-in-panel .foureyes-mark {width:44px}
#stamp-in-panel:hover {color:#4c3023}

/* The fixture's output stays steady as visitors turn or approach. */
#scene {--practical:.32;--lamp-ink:#efd5a6}
.night #scene {--practical:.92;--lamp-ink:#ffe7bb}
.fixture-lens {background:var(--lamp-ink)!important}
@media (prefers-reduced-motion:no-preference) {
  .studio-lamp-pool,.rig-deck-light,.gallery-light-cone,.arcade-floor-glow,.off-control-deck::after,.desk-matched-front::before {transition:opacity .22s ease}
}


.studio-clock::after {content:"";position:absolute;left:50%;top:50%;width:5px;height:5px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff0bd,#b18b58 60%,#675843)}

.car-catalog figure {margin:0 0 20px;padding-top:14px;border-top:1px solid #c7cbbb}
.car-catalog img {display:block;width:100%;height:clamp(110px,18vh,175px);object-fit:contain;margin-bottom:12px}
.car-catalog strong {font:normal 21px/1.2 Georgia,serif}
.car-catalog a {border:0;padding:6px 0;font-size:14px;text-decoration:underline}

#shelf-photos {position:absolute;inset:0;overflow:hidden;pointer-events:none}

.issue-pages {
  background: linear-gradient(to bottom, var(--cover-ink) 0 11%, #f5edde 13% 37%,
    #cbbfa8 48%, #eee4d1 55% 82%, var(--cover-ink) 93%) !important;
}
/* Typeset at print resolution before mapping the design onto the horizontal face. */
.issue-cover .hoopty-magazine {
  width: 1000%;
  height: 1000%;
  transform-origin: top left;
  transform: scale(.1);
  box-shadow: none;
}
