/* Spindle — a gallery of evenings. Black wall, cream type, the logo's rose red and cobalt used sparingly. */
:root {
  --wall: #000;
  --cream: #f2ede4;
  --dim: #9b948a;
  --faint: #5d5852;
  --rose: #e4282f;
  --cobalt: #3346e6;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--wall); color: var(--cream); font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
em { font-family: var(--serif); font-style: italic; }
:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--cream); color: #000; padding: 6px 12px; }

/* Loading screen and logo */
.intro { position: fixed; inset: 0; z-index: 150; background: #000; display: grid; place-items: center; transition: opacity .9s var(--ease), visibility .9s; }
.intro video { width: min(64vmin, 600px); }
.intro.gone { opacity: 0; visibility: hidden; }
.top { transition: transform .6s var(--ease), opacity .4s; }
.top.tuck { transform: translateY(-110%); }
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 12px clamp(16px, 3vw, 36px); mix-blend-mode: normal; }
.logo { display: block; width: 168px; height: 84px; margin: -6px 0 -18px -24px; }   /* a little lower than before (1 Dec) */
.logo-canvas { width: 100%; height: 100%; display: block; }
.logo-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.top-nav { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; font-size: 14px; }
.top-nav a { text-decoration: none; color: var(--dim); transition: color .3s; }
.top-nav a:hover { color: var(--cream); }
.top-nav .buy-link { color: var(--cream); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242, 237, 228, .25); }
.top-nav .buy-link::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); margin-right: 8px; vertical-align: 2px; }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 0; font: 400 15px/1 var(--sans); color: var(--cream);
        text-decoration: none; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px rgba(242, 237, 228, .3); transition: background .3s, color .3s, box-shadow .3s; }
.pill:hover { box-shadow: inset 0 0 0 1px var(--cream); }
.pill-solid { background: var(--cream); color: #000; box-shadow: none; }
.pill-solid:hover { background: #fff; }
.pill.wide { width: 100%; justify-content: center; }

/* 1 — Hero: a framed photograph on a black wall */
.plate-hero { height: 260vh; }
.plate-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.plate { margin: 0; width: 100vw; height: 100vh; position: relative; will-change: clip-path; }
.motion .plate { clip-path: inset(50% 50% 50% 50%); }
.plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.25) 45%, transparent 70%); }
.plate.open { cursor: zoom-in; }
.plate img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.placard { position: absolute; font-size: 13px; color: var(--dim); max-width: 260px; margin: 0; }
.placard em { display: block; color: var(--cream); font-size: 18px; margin-bottom: 4px; }
.placard-hero { text-align: right; }
.hero-words { position: absolute; left: clamp(20px, 6vw, 90px); bottom: clamp(36px, 9vh, 100px); max-width: 720px; }
.motion .hero-words { opacity: 0; }
.still .plate::after { opacity: 1; }
h1 { font-size: clamp(44px, 8.6vw, 140px); line-height: .92; }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line-in { display: block; }
.hero-sub { max-width: 34rem; color: rgba(242, 237, 228, .86); font-size: clamp(16px, 1.3vw, 19px); margin: 26px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 36px; margin: 8px auto 0; background: linear-gradient(var(--faint), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 2 — Dusk: afternoon to evening through the blinds */
.dusk { height: 260vh; }
.dusk-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.dusk-frame { position: absolute; inset: 0; margin: 0; }
.dusk-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dusk-night { -webkit-mask-image: repeating-linear-gradient(-28deg, #000 0 var(--slat, 0px), transparent var(--slat, 0px) 46px); mask-image: repeating-linear-gradient(-28deg, #000 0 var(--slat, 0px), transparent var(--slat, 0px) 46px); }
.dusk-words { position: absolute; right: clamp(20px, 5vw, 80px); top: 50%; transform: translateY(-50%); max-width: 400px; padding: 30px 32px;
              background: rgba(0, 0, 0, .55); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); border-radius: 22px; }
.dusk-words h2 { font-size: clamp(36px, 3.6vw, 58px); line-height: 1; }
.dolly-words h2, .lamps-intro h2, .desks-head h2, .catalogue h2, .guest h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: .98; }
.dusk-words p { color: rgba(242, 237, 228, .82); }
.time { display: grid; font-family: var(--serif); font-size: 30px; height: 1.3em; overflow: hidden; margin: 18px 0 0; color: var(--cream); }
.time span { grid-area: 1 / 1; will-change: transform; }
.time-b { transform: translateY(110%); }
.still .time-a { display: none; } .still .time-b { transform: none; }

/* 3 — Dolly: walking in from across the room */
.dolly { height: 280vh; }
.dolly-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.dolly-far, .dolly-near { position: absolute; inset: 0; margin: 0; }
.dolly-far img, .dolly-near img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.dolly-far { transform-origin: 50% 55%; }
.dolly-near { transform-origin: 50% 55%; }   /* the same centre as the far picture, so the two stay locked together */
.motion .dolly-near { opacity: 0; }
.dolly-pin::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.dolly-words { z-index: 1; position: absolute; left: clamp(20px, 6vw, 90px); bottom: 10vh; max-width: 520px; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.dolly-words p { color: rgba(242, 237, 228, .88); }

/* 4 — Lamps, sideways */
.lamps-pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.lamps-track { display: flex; gap: 3vw; padding-right: 8vw; will-change: transform; }
.lamps-intro { flex: 0 0 auto; width: min(620px, 86vw); padding: 0 4vw 0 clamp(20px, 6vw, 90px); }
.lamps-intro p { color: var(--dim); }
.frame { margin: 0; position: relative; cursor: zoom-in; }
.lamps-track .frame { flex: 0 0 auto; width: min(68vw, 1060px); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; transition: filter .5s; }
.frame figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; font-size: 14px; color: var(--dim); }
.frame figcaption em { color: var(--cream); font-size: 20px; flex: 0 0 auto; }

/* 5 — Desks */
.desks { padding: 22vh clamp(20px, 6vw, 90px) 12vh; }
.desks-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 40px; align-items: end; margin-bottom: 8vh; }
.desks-head p { color: var(--dim); margin: 0; }
.desk-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4vw 3vw; }
.desk-grid .frame:nth-child(2) { margin-top: 18vh; }
.desk-grid .frame:nth-child(4) { margin-top: -10vh; }
.desk-grid:hover .frame img { filter: brightness(.55) saturate(.8); }
.desk-grid .frame:hover img { filter: none; }

/* 6 — Catalogue */
.catalogue { padding: 16vh clamp(20px, 6vw, 90px); position: relative; }
.catalogue h2 { margin-bottom: 6vh; }
.cat-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(242, 237, 228, .14); }
.cat-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 26px 0; cursor: default; }
.cat-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(242, 237, 228, .14); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.cat-name { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 46px); line-height: 1.05; transition: transform .6s var(--ease), color .4s; }
.cat-note { color: var(--dim); align-self: center; max-width: 30rem; transition: color .4s; }
.cat-list:hover .cat-name { color: var(--faint); }
.cat-list li:hover .cat-name { color: var(--cream); transform: translateX(18px); }
.cat-list li:hover .cat-note { color: var(--cream); }
.peek { position: fixed; left: 0; top: 0; width: 340px; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none; z-index: 30; border-radius: 3px;
        opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s, transform .35s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 7 — Acquire */
.acquire { perspective: 1200px; position: relative; min-height: 100vh; display: grid; place-items: center; padding: 12vh 20px; overflow: hidden; }
.acq-shot { position: absolute; inset: 0; margin: 0; }
.acq-shot img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.45); transform: scale(1.06); }
.acq-card { position: relative; width: min(460px, 100%); padding: 40px 38px 30px; border-radius: 26px; color: #1a1513; background: rgba(242, 237, 228, .9);
            backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9); }
.bf { margin: 0 0 14px; display: inline-block; font-size: 13px; color: #fff; background: var(--rose); padding: 5px 12px; border-radius: 999px; }
.acq-card h2 { font-size: 40px; }
.acq-price { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 0; }
.acq-price .now { font-family: var(--serif); font-size: 66px; line-height: 1; }
.acq-price .now small { font-family: var(--sans); font-size: 15px; margin-left: 6px; letter-spacing: .02em; }
.acq-price .was { color: #8b817a; font-size: 20px; }
.acq-note { font-size: 13px; color: #6d645d; margin: 8px 0 18px; }
.acq-terms { list-style: none; padding: 0; margin: 0 0 22px; }
.acq-terms li { padding: 9px 0; border-top: 1px solid rgba(26, 21, 19, .12); }
.acq-card .pill-solid { background: #1a1513; color: var(--cream); }
.acq-fine { font-size: 13px; color: #6d645d; margin: 14px 0 0; }
.acq-fine a { color: var(--cobalt); }

/* 8 — Guestbook */
.guest { text-align: center; padding: 20vh 20px; max-width: 760px; margin: 0 auto; }
.guest p { color: var(--dim); margin: 22px auto 30px; max-width: 34rem; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; padding: 30px clamp(20px, 6vw, 90px) 50px; border-top: 1px solid rgba(242, 237, 228, .1); font-size: 13px; color: var(--faint); }
.foot nav { display: flex; gap: 22px; } .foot nav a { color: var(--dim); text-decoration: none; } .foot nav a:hover { color: var(--cream); }
.foot p { flex-basis: 100%; margin: 0; }
.logo-still { width: 140px; height: auto; mix-blend-mode: screen; }

/* Lightbox and loupe */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .94); display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 30px; padding: 4vh 3vw; }
.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; }
.lb-info { align-self: end; padding-bottom: 6vh; }
.lb-title { font-family: var(--serif); font-size: 30px; margin: 0 0 18px; }
.lb-info dl { margin: 0; font-size: 14px; }
.lb-info dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid rgba(242, 237, 228, .12); }
.lb-info dt { color: var(--dim); } .lb-info dd { margin: 0; text-align: right; }
.lb-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--dim); font: 400 14px var(--sans); cursor: pointer; }
.lb-close:hover { color: var(--cream); }
.loupe { position: fixed; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; z-index: 35; opacity: 0; transform: translate(-50%, -50%) scale(.6);
         transition: opacity .25s, transform .3s var(--ease); background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(242, 237, 228, .5), 0 30px 60px rgba(0, 0, 0, .6); }
.loupe.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Receipt printer */
.printer { position: fixed; inset: 0; z-index: 130; display: grid; place-items: start center; padding-top: 8vh; background: rgba(0, 0, 0, .75); backdrop-filter: blur(10px); }
.printer-body { width: 340px; }
.slot { height: 26px; border-radius: 14px; background: linear-gradient(#2a2626, #0b0909); box-shadow: 0 10px 30px rgba(0,0,0,.6), inset 0 -3px 0 #000; position: relative; z-index: 2; }
.paper { position: relative; z-index: 1; margin: -8px 18px 0; padding: 22px 22px 20px; color: #2b2220; background: #f7f2ea; font: 500 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
         clip-path: inset(0 0 100% 0);
         -webkit-mask: linear-gradient(#000 0 calc(100% - 10px), transparent 0), conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom/14px 10px repeat-x;
         mask: linear-gradient(#000 0 calc(100% - 10px), transparent 0), conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom/14px 10px repeat-x; }
.printer.go .paper { animation: print 2.6s steps(26, end) forwards; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }
.r-brand { width: 200px; margin: -14px auto -8px; mix-blend-mode: multiply; }
.r-sub { text-align: center; margin: 0 0 14px; }
.r-lines { margin: 0; border-top: 1px dashed #b8aca0; padding-top: 10px; }
.r-lines div { display: flex; justify-content: space-between; gap: 12px; } .r-lines dt { color: #7b6f66; } .r-lines dd { margin: 0; text-align: right; word-break: break-all; }
.r-item, .r-total { display: flex; justify-content: space-between; border-top: 1px dashed #b8aca0; margin-top: 10px; padding-top: 10px; }
.r-total { font-weight: 700; font-size: 15px; }
.r-note { border-top: 1px dashed #b8aca0; margin-top: 12px; padding-top: 12px; }
.r-grooves { height: 34px; margin: 14px 0; background: repeating-linear-gradient(90deg, #2b2220 0 2px, transparent 2px 4px, #2b2220 4px 5px, transparent 5px 9px); }
.r-close { width: 100%; padding: 10px; border-radius: 999px; border: 1px solid #c9bdb1; background: none; font: 500 13px var(--sans); cursor: pointer; }

@media (max-width: 860px) {
  .top-nav a:not(.buy-link) { display: none; }
  .top-nav .buy-link { font-size: 13px; padding: 7px 12px; white-space: nowrap; }
  .logo { width: 140px; height: 70px; }
  .plate::after { background: linear-gradient(to top, rgba(0,0,0,.92) 10%, rgba(0,0,0,.5) 55%, transparent 80%); }
  .hero-words { right: 20px; bottom: 40px; }
  .hero-sub { font-size: 15px; margin: 18px 0 22px; }
  .placard-hero { display: none; }
  .desks-head, .desk-grid, .cat-list li { grid-template-columns: 1fr; }
  .desk-grid .frame { margin-top: 0 !important; }
  .lamps-track .frame { width: 82vw; }
  .dusk-words { left: 16px; right: 16px; top: auto; bottom: 20px; transform: none; }
  .lightbox { grid-template-columns: 1fr; }
  .peek, .loupe { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Headlines that light up as you read down to them */
.ink { background: linear-gradient(90deg, var(--cream) var(--ink, 100%), #3a3633 calc(var(--ink, 100%) + 8%)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Short page (1 Dec): the hero opens by itself, one row of pictures, a compact list ---------- */
.plate-hero { height: 100vh; }
.room { padding: 14vh clamp(20px, 6vw, 90px) 6vh; }
.room h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: .98; margin: 0 0 14px; }
.room-sub { max-width: 60ch; color: rgba(242, 237, 228, .78); margin: 0 0 34px; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.room-grid .frame img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .room-grid { grid-template-columns: 1fr; } }
.catalogue { padding-top: 6vh; padding-bottom: 4vh; }
.cat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 4vw, 60px); }
@media (max-width: 760px) { .cat-list { grid-template-columns: 1fr; } }
.acquire { min-height: 0; padding: 6vh 20px 8vh; }
.foot-ask { font-size: 15px; margin-bottom: 14px; }
.cat-list li { padding: 16px 0; gap: 18px; }
.cat-name { font-size: clamp(22px, 2.2vw, 32px); }
.cat-note { font-size: 15px; }
.acq-terms li { padding: 6px 0; font-size: 15px; }
.catalogue h2 { margin-bottom: 10px; }
@media (max-width: 760px) {
  .room { padding-top: 9vh; }
  .room-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .room-grid .frame { scroll-snap-align: start; }
  .cat-list li { gap: 4px; padding: 11px 0; }
  .cat-name { font-size: 21px; }
  .cat-note { font-size: 14px; }
}

/* ---------- Spindle's title face (1 Dec): San Francisco at its heaviest and widest, the face of the album titles in
   the app. Every title, subtitle and number on the site uses it. ---------- */
:root { --bold: -apple-system, "SF Pro Display", BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif; }
h1, h2, h3, .cat-name, .lb-title, .acq-price .now, .time, figcaption em, .placard em, .bf {
  font-family: var(--bold); font-weight: 900; font-stretch: 125%; font-style: normal; letter-spacing: -0.02em;
}
h1 { font-size: clamp(36px, 6.2vw, 100px); line-height: .98; }
.room h2, .catalogue h2 { font-size: clamp(30px, 4vw, 60px); line-height: 1.02; }
.cat-name { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.1; }
.acq-card h2 { font-size: 32px; }
.acq-price .now { font-size: 56px; }
figcaption em { font-size: .95em; margin-right: 6px; }
