@font-face{font-family:'Neue Montreal';src:url('assets/NeueMontreal-Regular.otf');font-weight:400;font-display:swap}
@font-face{font-family:'Neue Montreal';src:url('assets/NeueMontreal-Medium.otf');font-weight:500;font-display:swap}
@font-face{font-family:'Neue Montreal';src:url('assets/NeueMontreal-Bold.otf');font-weight:700;font-display:swap}
@font-face{font-family:Wornella;src:url('assets/Wornella-Medium.otf');font-weight:500;font-display:swap}
:root{--ink:#131313;--muted:#777;--gutter:clamp(20px,3.2vw,64px);--ease:cubic-bezier(.22,1,.36,1)}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:'Neue Montreal',Arial,sans-serif}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}button:focus-visible,a:focus-visible,#gallery:focus-visible{outline:1px solid #161616;outline-offset:6px}button:disabled{cursor:default}
.site-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:128px;padding:30px var(--gutter);gap:20px}.signature,.year{font-family:Wornella,Georgia,serif;font-size:20px;font-weight:500}.year{justify-self:end}.site-header nav{display:flex;gap:14px;font-size:16px}.site-header nav a{color:#555}.site-header nav a[aria-current]{color:#000;text-decoration:underline;text-underline-offset:3px;font-weight:500}.eyebrow{display:flex;justify-content:space-between;padding:6px var(--gutter) 0;font-size:11px;letter-spacing:.04em}.collection-name{color:var(--muted)}
#gallery{position:relative;height:clamp(330px,56svh,640px);margin-top:12px;overflow:hidden;touch-action:none;cursor:grab;isolation:isolate}#gallery.dragging{cursor:grabbing}#artworks{position:absolute;inset:0}.artwork{position:absolute;left:0;top:0;padding:0;margin:0;will-change:transform;transform-origin:center;overflow:hidden;background:#f7f7f4}.artwork img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.artwork:focus-visible{outline-offset:3px;z-index:5}.artwork:hover{z-index:4}.artwork:hover img{filter:brightness(1.025)}.is-morphing .artwork{transition:transform 1150ms var(--ease),width 1150ms var(--ease),height 1150ms var(--ease),opacity 750ms ease}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;padding:17px var(--gutter) 0;min-height:45px;font-size:11px}.gallery-toolbar p{margin:0;letter-spacing:.03em}#position{color:var(--muted);font-variant-numeric:tabular-nums}.view-switch{display:flex;gap:22px}.view-switch button{padding:8px 0;font-size:14px;opacity:.4;transition:opacity .3s}.view-switch button[aria-pressed=true]{opacity:1}.gallery-footer{text-align:center;padding:10px var(--gutter) 25px}.gallery-footer h1{font-size:clamp(42px,5.25vw,82px);font-weight:500;letter-spacing:.015em;line-height:1.2;margin:14px 0 12px}.gallery-footer p{font-size:16px;line-height:1.5;margin:0 0 36px}.gallery-footer>span{font-size:10px;letter-spacing:.04em}.status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.status.error{position:static;clip-path:none;width:auto;height:auto;margin:20px var(--gutter);padding:20px;border:1px solid #aaa}
dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:64px 80px 38px;border:0;background:#fff;color:#111;overflow:hidden}dialog[open]{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:20px}dialog::backdrop{background:#fff}dialog figure{margin:0;min-width:0;text-align:center}dialog figure img{max-width:100%;max-height:78svh;object-fit:contain}dialog figcaption{margin-top:16px;font-size:14px}dialog .close{position:absolute;right:var(--gutter);top:24px;display:flex;align-items:center;gap:25px}dialog .close span{font-size:28px}dialog .previous,dialog .next{font-size:28px;padding:12px}
@media(min-width:1800px){#gallery{height:62svh}.site-header{min-height:140px}}
@media(max-width:680px){.site-header{grid-template-columns:1fr auto;gap:24px 12px;min-height:122px;padding-top:24px;padding-bottom:24px}.signature,.year{font-size:18px}.site-header nav{grid-row:2;grid-column:1/-1;justify-content:center;gap:19px;font-size:15px}.year{grid-row:1;grid-column:2}.collection-name{display:none}.eyebrow{font-size:10px}#gallery{height:47svh;min-height:310px}.gallery-toolbar{align-items:flex-start;gap:12px}.gallery-toolbar p{max-width:110px;font-size:9px;line-height:1.6}#position{font-size:10px;padding-top:3px}.view-switch{gap:16px}.view-switch button{font-size:13px;padding-top:0}.gallery-footer{padding-top:20px}.gallery-footer h1{font-size:clamp(36px,10.5vw,60px);white-space:nowrap}.gallery-footer p{font-size:14px;max-width:280px;margin:0 auto 30px}.gallery-footer>span{font-size:9px}dialog{padding:75px 12px 30px}dialog[open]{grid-template-columns:28px 1fr 28px;gap:4px}dialog .previous,dialog .next{font-size:20px;padding:3px}dialog figure img{max-height:70svh}dialog figcaption{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Updated Kitchen composition: the headline sits behind the artwork plane. */
@font-face{font-family:'Libre Baskerville';src:url('assets/LibreBaskerville-Regular.ttf');font-weight:400;font-display:swap}
.signature,.year{font-family:'Libre Baskerville',Georgia,serif;font-weight:400}
#gallery{height:clamp(330px,37.037vw,640px)}
.gallery-headline{position:absolute;z-index:0;top:clamp(18px,1.67vw,26px);left:50%;transform:translateX(-50%);width:max-content;margin:0;font-size:13.752vw;font-weight:500;line-height:1.2;letter-spacing:.02em;white-space:nowrap;pointer-events:none;user-select:none}
#artworks{z-index:1}
.gallery-footer{padding-top:clamp(68px,7.27vw,120px)}
.gallery-footer p{margin-bottom:50px}
.gallery-footer>span{font-size:11px}
@media(max-width:680px){#gallery{height:47svh;min-height:310px}.gallery-headline{top:24px;font-size:13.752vw}.gallery-footer{padding-top:65px}.gallery-footer p{margin-bottom:42px}.gallery-footer>span{font-size:9px}}

/* Revised Figma board 292:88: preserve authored artwork slots and captions. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.artwork{overflow:visible;background:transparent;text-align:left}
.artwork-media{position:absolute;inset:0;display:block;overflow:hidden}
.artwork img,.artwork video{display:block;width:100%;height:100%;max-width:none;object-fit:cover;pointer-events:none;user-select:none}
.artwork-caption{position:absolute;left:0;top:100%;padding-top:2px;white-space:nowrap;font-weight:500;font-size:calc(10px * var(--board-scale,1));line-height:1.1;letter-spacing:-.03em}
#gallery[data-view=ribbon] .artwork-caption{font-size:10px;padding-top:7px}

.lightbox-media img,.lightbox-media video{max-width:100%;max-height:78svh;object-fit:contain}
@media(max-width:680px){.artwork-caption{font-size:8px}.lightbox-media img,.lightbox-media video{max-height:70svh}}

/* Headline placement from the two Kitchen reference boards. */
.gallery-headline{top:clamp(80px,8.33vw,126px)}

/* Extend the artwork window into the former footer gap. */
#gallery{height:clamp(390px,43.3vw,735px)}
.gallery-footer{padding-top:24px}
@media(max-width:680px){#gallery{height:calc(47svh + 40px);min-height:350px}.gallery-footer{padding-top:24px}}

/* Grid view: square tiles, no captions, so the assembled grid reads cleanly. */
#gallery[data-view=grid] .artwork-caption{display:none}

/* The Grid view sits on a sphere: one shared perspective for all tiles. */
#gallery[data-view=grid] #artworks{perspective:1150px;perspective-origin:50% 50%;transform-style:preserve-3d}

/* Inverted kitchen page: black background, white type. */
body.kitchen-dark{--ink:#f4f4f2;--muted:#8d8d8d;background:#000;color:var(--ink)}
.kitchen-dark .portfolio-header{background:#000;color:#fff}
.kitchen-dark .portfolio-header .portfolio-signature,.kitchen-dark .portfolio-header .portfolio-year{color:#fff}
.kitchen-dark :is(button,a,#gallery):focus-visible,.kitchen-dark .portfolio-header a:focus-visible{outline-color:#fff}
.kitchen-dark .view-switch button,.kitchen-dark .gallery-toolbar,.kitchen-dark .gallery-footer,.kitchen-dark .eyebrow{color:var(--ink)}
.kitchen-dark dialog,.kitchen-dark dialog::backdrop{background:#000;color:#f4f4f2}
.kitchen-dark dialog button{color:#f4f4f2}

/* Layout controls sit above the gallery. */
.gallery-toolbar{padding-top:8px;padding-bottom:4px}

/* Gesture hint and counter are kept for screen readers only; the view switch stays visible. */
#gesture-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#position{display:none}
.gallery-toolbar{justify-content:flex-end}

/* The page never scrolls sideways; only the gallery moves horizontally. */
html:has(body.kitchen-dark),body.kitchen-dark{overflow-x:clip;overscroll-behavior-x:none}

/* Navigation as a fixed overlay: the header floats over the top of the page instead of taking up
   space, with a soft dark fade so it stays readable over artwork. It fades away once the light
   footer arrives. The view switch sits centred at the top, in line with the signature. */
html body.kitchen-dark .portfolio-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 0;
  background: linear-gradient(#000000d9 0%, #00000080 55%, #00000000 100%);
  pointer-events: none;
  transition: opacity .3s ease;
}
html body.kitchen-dark .portfolio-header a { pointer-events: auto; }
body.kitchen-dark.footer-near .portfolio-header { opacity: 0; }
body.kitchen-dark.footer-near .portfolio-header a { pointer-events: none; }
.kitchen-dark main { position: relative; padding-top: clamp(64px, 5.6vw, 96px); }
.kitchen-dark .eyebrow { margin: 0; padding: 0 0 0 1.5686vw; position: relative; z-index: 60; }
.kitchen-dark .gallery-toolbar {
  position: absolute;
  z-index: 60;
  top: clamp(16px, 1.5686vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  justify-content: center;
}
@media (max-width: 680px) {
  html body.kitchen-dark .portfolio-header { position: absolute; }
  .kitchen-dark main { padding-top: 150px; }
  .kitchen-dark .gallery-toolbar { top: 128px; }
  .kitchen-dark .eyebrow { margin-top: 28px; }
}

/* The layout switch (Scattered / Ribbon / Grid) sits under the gallery, centred, where the
   "A little bit of everything" line used to be. */
.kitchen-dark .gallery-footer .gallery-toolbar {
  position: static;
  transform: none;
  justify-content: center;
  min-height: 0;
  margin: 0 0 50px;
  padding: 0;
}
.kitchen-dark .gallery-footer .view-switch { gap: 28px; }
.kitchen-dark .gallery-footer .view-switch button { font-size: clamp(15px, 1.3vw, 20px); padding: 4px 0; }
@media (max-width: 680px) {
  .kitchen-dark .gallery-footer .gallery-toolbar { margin-bottom: 42px; }
}

/* Footer inverted to match the dark page, as on the homepage. */
.kitchen-dark .site-shared-footer { background: #000; color: #fff; box-shadow: 0 4px 5px #0008; }

/* More room between the artwork and the layout switch. */
.kitchen-dark .gallery-footer { padding-top: clamp(56px, 5vw, 96px); }
@media (max-width: 680px) { .kitchen-dark .gallery-footer { padding-top: 40px; } }

/* Desktop: keep the layout switch (Scattered / Ribbon / Grid) on screen without scrolling —
   the gallery gives up height on short windows, and the gap above the switch is tighter. */
@media (min-width: 681px) {
  body.kitchen-dark #gallery { height: clamp(340px, min(43.3vw, 100svh - 175px), 735px); }
  body.kitchen-dark .gallery-footer { padding-top: clamp(24px, 3vw, 60px); }
}
