/* SEASONS Optical. The opening. */
@font-face { font-family: "Zodiak"; src: url("../assets/fonts/Zodiak-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../assets/fonts/Zodiak-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --night: #0f0807; --night-2: #1a1110;
  --oxblood: #66251f; --oxblood-deep: #3f1916;
  --lacquer: #ba3800; --lacquer-deep: #a12f00; --lacquer-bright: #e36927;
  --walnut: #764834; --walnut-light: #ab826c;
  --forest: #15393a;
  --paper: #f2ece6; --paper-mute: #c9b9ae;
  --serif: "Zodiak", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --foot: clamp(2rem, 7vh, 5rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-rise: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scrollbar-color: var(--walnut) var(--night); scrollbar-width: thin; }
body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--lacquer-bright); }
::selection { background: var(--lacquer); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; text-wrap: pretty; }
h1 { margin: 0; }
.stop { color: var(--lacquer-bright); }

.skip { position: fixed; left: var(--gutter); top: -4rem; z-index: 90; background: var(--lacquer); color: #fff; padding: 0.65rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 500; transition: top 200ms var(--ease-out); }
.skip:focus-visible { top: 1rem; }

/* ---- chrome: the shop's own sign, top left; the working facts, top right ---- */
.bar { position: fixed; inset: 0 0 auto 0; height: 5.5rem; z-index: 60; display: flex; align-items: flex-start; justify-content: space-between; padding: 1.35rem var(--gutter) 0; background: linear-gradient(to bottom, rgba(15,8,7,0.6), rgba(15,8,7,0)); pointer-events: none; }
.bar > * { pointer-events: auto; }
/* inside, the top of the frame is lit shelving: the bar's ground deepens so the hours and the lockup keep their contrast */
.bar::before { content: ""; position: absolute; inset: 0 0 -1.5rem 0; background: linear-gradient(to bottom, rgba(15,8,7,0.82), rgba(15,8,7,0.5) 55%, rgba(15,8,7,0)); opacity: 0; transition: opacity 700ms var(--ease-soft); pointer-events: none; z-index: -1; }
.bar.is-inside::before { opacity: 1; }
.sign { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; }
.sign-mark { height: 2.4rem; width: auto; }
.sign-word { height: 0.78rem; width: auto; }
.bar-right { display: flex; align-items: center; gap: 1.75rem; padding-top: 0.55rem; font-size: 0.8125rem; font-stretch: 92%; letter-spacing: 0.02em; }
.bar-hours { display: flex; align-items: center; gap: 0.55rem; color: var(--paper-mute); }
.bar-hours .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-mute); opacity: 0.7; }
.bar-hours.is-open .dot { background: var(--lacquer-bright); opacity: 1; box-shadow: 0 0 8px rgba(227,105,39,0.6); }
.bar-hours.is-open { color: var(--paper); }
.bar-phone { text-decoration: none; color: var(--paper); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .bar-phone:hover { color: var(--lacquer-bright); } }
@media (max-width: 699px) {
  .bar { height: 5rem; padding-top: 1.1rem; background: none; }
  .bar-right { gap: 1rem; } .sign-mark { height: 2rem; } .sign-word { height: 0.66rem; }
  /* the photographed sign holds the top left at rest, so the lockup waits there unseen and arrives once inside; the phone number lives in the arrival and the colophon */
  .bar { justify-content: space-between; }
  .bar-right { display: none; }
  .sign { opacity: 0; pointer-events: none; transition: opacity 700ms var(--ease-soft); }
  .bar.is-inside .sign { opacity: 1; pointer-events: auto; }
}
@media (max-width: 519px) { .bar-hours { display: none; } }

/* ---- the opening ---- */
.opening { position: relative; height: 380vh; height: 380svh; } /* 100 at rest, 170 of walk-in, 110 of arrival */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); isolation: isolate; }
@media (hover: hover) and (pointer: fine) { .stage { cursor: none; } .stage a, .stage button { cursor: none; } }

.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage:not(.is-canvas) .scene { visibility: hidden; }
.stage.is-canvas .plate { visibility: hidden; }

/* the still planes: what the page is before the canvas takes over, and all it is when motion is reduced */
.plate { position: absolute; left: 0; bottom: 0; width: max(100vw, 150vh); width: max(100vw, 150svh); aspect-ratio: 1.5; overflow: hidden; }
@media (max-width: 699px) { .plate { width: max(100vw, 55.5vh); width: max(100vw, 55.5svh); height: 100vh; height: 100svh; left: max(calc(100vw - max(100vw, 55.5svh)), calc(-0.0935 * max(100vw, 55.5svh))); bottom: 0; top: auto; aspect-ratio: auto; } }
.plane { position: absolute; inset: 0; }
.plane img { position: absolute; max-width: none; }
.plane--far img { width: 132%; height: auto; left: -24.6%; top: -27%; }
@media (max-width: 699px) { .plane--far img { width: 360%; left: -107.3%; top: -30.1%; } }
.plane--facade img { inset: 0; width: 100%; height: 100%; }

.door { position: absolute; left: 0; top: 0; width: 0; height: 0; background: transparent; border: 0; padding: 0; margin: 0; appearance: none; z-index: 2; display: none; }
.stage.is-js .door { display: block; }
.door:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
.door-hint { display: none; position: absolute; left: 50%; top: 100%; transform: translate(-50%, 0.55rem); opacity: var(--hint, 1); white-space: nowrap; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.05rem; color: var(--paper); }
.door-hint .arrow { display: inline-block; font-style: normal; color: var(--lacquer-bright); }
@media (hover: none) { .door-hint { display: block; } }
@media (hover: none) and (prefers-reduced-motion: no-preference) { .door-hint .arrow { animation: beckon 2.6s var(--ease-soft) infinite; } }
@keyframes beckon { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(0.3em); } }

.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(15,8,7,0.92) 0%, rgba(15,8,7,0.84) 20%, rgba(15,8,7,0.62) 40%, rgba(15,8,7,0.28) 55%, rgba(15,8,7,0) 68%); opacity: var(--scrim, 1); }
@media (max-width: 699px) { .scrim { background: linear-gradient(to top, rgba(15,8,7,0.95) 0%, rgba(15,8,7,0.88) 22%, rgba(15,8,7,0.6) 40%, rgba(15,8,7,0.24) 52%, rgba(15,8,7,0) 64%); } }

/* ---- the four corners ---- */
.copy { position: absolute; left: var(--gutter); bottom: var(--foot); max-width: 62vw; will-change: transform, filter, opacity; }
.copy h1 { font-family: var(--serif); font-weight: 330; font-size: clamp(3.2rem, 1rem + 6.2vw, 6.6rem); line-height: 0.93; letter-spacing: -0.016em; text-wrap: nowrap; }
.line { display: block; }
.hang { margin-left: 0.78em; }

.acts { position: absolute; right: var(--gutter); bottom: calc(var(--foot) + 0.35rem); display: flex; flex-direction: column; align-items: flex-end; gap: 0.95rem; text-align: right; will-change: transform, filter, opacity; }
.folio { font-size: 0.8125rem; font-stretch: 90%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 0.35rem; }

.running { position: relative; display: inline-flex; align-items: baseline; gap: 0.35em; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.5rem; line-height: 1.15; color: var(--paper); text-decoration: none; padding-bottom: 0.16em; transition: color 180ms ease; }
.running--lead { font-size: 2.1rem; }
.running::before, .running::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.running::before { background: var(--paper); opacity: 0.32; }
.running--lead::before { background: var(--lacquer-bright); opacity: 1; height: 2px; }
.running::after { background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-out); }
.running--lead::after { height: 2px; }
.running .arrow { font-style: normal; color: var(--paper-mute); display: inline-block; transition: transform 320ms var(--ease-out); }
.running--lead .arrow { color: var(--lacquer-bright); }
@media (hover: hover) and (pointer: fine) {
  .running:hover::after { transform: scaleX(1); }
  .running:hover .arrow { transform: translateX(0.3em); }
}
.running:active { transform: translateY(1px); }

/* ---- the entrance: the type rises once the picture has found focus ---- */
.rise { display: block; opacity: 0; filter: blur(16px); transform: translateY(0.22em); transition: opacity 900ms var(--ease-soft), filter 1300ms var(--ease-out), transform 1300ms var(--ease-rise); will-change: filter, transform, opacity; }
.hang .rise { transition-delay: 140ms; }
.rise-soft { opacity: 0; filter: blur(8px); transform: translateY(0.5rem); transition: opacity 900ms var(--ease-soft), filter 1100ms var(--ease-out), transform 1100ms var(--ease-rise); }
.acts .rise-soft:nth-child(1) { transition-delay: 380ms; }
.acts .rise-soft:nth-child(2) { transition-delay: 470ms; }
.acts .rise-soft:nth-child(3), .acts .rise-soft:nth-child(4) { transition-delay: 560ms; }
.acts-step { display: none; }
.is-in .rise { opacity: 1; filter: blur(0); transform: translateY(0); }
.is-in .rise-soft { opacity: 1; filter: blur(0); transform: translateY(0); }

/* ---- the arrival: the room is the whole frame; the copy finds focus under the wheel; the houses sit on one shelf ---- */
.arrival { position: sticky; top: 0; height: 100vh; height: 100svh; margin-top: -100vh; margin-top: -100svh; z-index: 3; width: 100%; visibility: hidden; overflow: hidden; }
.arrival.is-in { visibility: visible; }
.arrival-plate { display: none; }
.scrim--in { opacity: var(--scrim-in, 0); background: linear-gradient(to top, rgba(15,8,7,0.93) 0%, rgba(15,8,7,0.87) 20%, rgba(15,8,7,0.72) 38%, rgba(15,8,7,0.42) 52%, rgba(15,8,7,0.12) 64%, rgba(15,8,7,0) 74%); }
/* every line carries its own focus value, --f, 0 soft to 1 sharp */
.fl { --f: 0; display: block; opacity: var(--f); filter: blur(calc((1 - var(--f)) * 14px)); transform: translate3d(0, calc((1 - var(--f)) * 0.22em), 0); will-change: filter, transform, opacity; }
.arrival-copy { position: absolute; left: var(--gutter); bottom: calc(var(--foot) + 3.6rem); max-width: 62vw; }
.arrival-statement { font-family: var(--serif); font-weight: 330; font-size: clamp(2.1rem, 0.8rem + 2.55vw, 3.5rem); line-height: 1.04; letter-spacing: -0.014em; white-space: nowrap; }
.arrival-facts { margin-top: 1.35rem; max-width: 44ch; color: var(--paper-mute); font-stretch: 92%; line-height: 1.55; }
.acts--in { bottom: calc(var(--foot) + 3.95rem); }
.acts--in .running { display: inline-flex; }
.shelf { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--foot); }
.houses { position: relative; list-style: none; margin: 0; padding: 0 0 0.7rem; width: max-content; display: flex; gap: 0 2.4rem; font-size: 0.75rem; font-stretch: 90%; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); white-space: nowrap; }
.houses li { display: block; }
/* the shelf itself: a hairline that draws from the left as the names find focus, with the lacquer at its start */
.houses::before, .houses::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; transform: scaleX(var(--rule, 0)); transform-origin: left; }
.houses::before { right: 0; background: var(--paper); opacity: 0.32; }
.houses::after { width: 2.4rem; background: var(--lacquer-bright); }
.shelf-rule { display: none; }

.grain { position: absolute; inset: -20%; pointer-events: none; opacity: 0.075; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .grain { animation: grain 0.9s steps(7) infinite; } }
@keyframes grain { 0% { transform: translate(0,0); } 100% { transform: translate(-9%, 6%); } }

/* ---- after the walk-in ---- */
.after { position: relative; z-index: 2; background: var(--night); padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(3rem, 7vw, 6rem); border-top: 1px solid rgba(242,236,230,0.08); }
.after-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 6vw, 8rem); align-items: start; max-width: 96rem; }
.after-line { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.2; max-width: 20ch; text-wrap: balance; }
.after-facts { margin: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 5fr); gap: 1.5rem; }
.after-facts dt { font-size: 0.8125rem; font-stretch: 90%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 0.5rem; }
.after-facts dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.after-facts a { text-decoration: none; border-bottom: 1px solid rgba(227,105,39,0.5); transition: color 150ms ease, border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .after-facts a:hover { color: var(--lacquer-bright); border-color: var(--lacquer-bright); } }
@media (max-width: 899px) { .after-grid { grid-template-columns: 1fr; } .after-facts { grid-template-columns: 1fr; } }

/* ---- the cursor: a lens ring over the stage ---- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 80; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1.5px solid var(--paper); border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: difference; transform: translate(-100px, -100px); transition: opacity 200ms ease, width 260ms var(--ease-out), height 260ms var(--ease-out), margin 260ms var(--ease-out); }
  .cursor.is-on { opacity: 1; }
  .cursor.is-door { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .cursor.is-press { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .cursor.is-door.is-press { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .cursor::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--paper); opacity: 0; transform: scale(1); }
  .cursor.is-click::before { animation: shutter 720ms var(--ease-out) forwards; }
  .cursor-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 0.5rem); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.1rem; white-space: nowrap; color: var(--paper); opacity: 0; transition: opacity 200ms ease, transform 260ms var(--ease-out); }
  .cursor.is-door .cursor-label { opacity: 1; transform: translate(-50%, 0.6rem); }
}
@keyframes shutter { 0% { opacity: 0.9; transform: scale(0.55); } 100% { opacity: 0; transform: scale(2.4); } }

/* ---- phones: the same structure as the desk, on the portrait plate ---- */
@media (max-width: 699px) {
  .copy { left: var(--gutter); right: var(--gutter); bottom: 5.3rem; max-width: none; }
  .copy h1 { font-size: clamp(1.9rem, 1.1rem + 4.2vw, 2.4rem); line-height: 0.96; }
  .hang { margin-left: 0.78em; }
  .acts { left: var(--gutter); right: auto; bottom: 1.6rem; flex-direction: row; align-items: baseline; text-align: left; gap: 1.5rem; }
  .acts .folio, .acts-explore, .door-hint { display: none; }
  .acts-step { display: inline-flex; }
  .running--lead { font-size: 1.35rem; }
  .running { font-size: 1.1rem; }
  /* the arrival on a phone: statement, facts, the shelf running past the edge, the two actions stacked */
  .scrim--in { background: linear-gradient(to top, rgba(15,8,7,0.95) 0%, rgba(15,8,7,0.9) 28%, rgba(15,8,7,0.76) 46%, rgba(15,8,7,0.5) 58%, rgba(15,8,7,0.22) 70%, rgba(15,8,7,0) 84%); }
  .arrival-copy { left: var(--gutter); right: var(--gutter); bottom: 12.5rem; max-width: none; }
  .arrival-statement { font-size: clamp(1.45rem, 0.5rem + 4.6vw, 1.85rem); line-height: 1.08; }
  .arrival-facts { margin-top: 0.9rem; font-size: 0.9375rem; max-width: 36ch; }
  /* the shelf on a phone: the houses as one wrapped line, no name ever broken, the hairline beneath the block */
  .shelf { left: var(--gutter); right: var(--gutter); bottom: 6.6rem; }
  .houses { display: block; width: auto; white-space: normal; text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-stretch: 92%; font-weight: 400; line-height: 1.5; padding-bottom: 0.6rem; }
  .houses li { display: inline-block; }
  .houses li::after { content: ",\00a0"; }
  .houses li:last-child::after { content: none; }
  .acts--in { left: var(--gutter); right: auto; bottom: 1.6rem; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.7rem; }
  .acts--in .running--lead { font-size: 1.5rem; }
  .acts--in .running { font-size: 1.15rem; }
}

/* ---- the loader: the mark draws itself, fills as the line finishes, and defocuses out as the picture focuses in ---- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--night); display: grid; place-items: center; pointer-events: none; }
.loader-mark { width: clamp(4.6rem, 7.5vw, 6.6rem); height: auto; overflow: visible; transform-origin: 50% 50%; will-change: transform, filter, opacity; }
.loader-mark path { fill: var(--paper); fill-opacity: 0; stroke: var(--paper); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.loader.is-drawing path { animation: draw 1300ms cubic-bezier(0.5, 0, 0.2, 1) forwards, fillin 700ms var(--ease-soft) 780ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; stroke-opacity: 0; } }
.loader.is-out { opacity: 0; transition: opacity 720ms var(--ease-soft) 80ms; }
.loader.is-out .loader-mark { filter: blur(14px); transform: scale(1.1); opacity: 0; transition: filter 720ms var(--ease-out), transform 900ms var(--ease-rise), opacity 600ms var(--ease-soft) 120ms; }
html:not(.is-loaded) .bar { opacity: 0; }
.bar { transition: opacity 1100ms var(--ease-soft) 250ms; }

/* ---- reduced motion: a complete, still, sharp page ---- */
@media (prefers-reduced-motion: reduce) {
  .opening { height: auto; }
  .stage { position: relative; }
  .scene { display: none; }
  .stage.is-canvas .plate { visibility: visible; }
  /* the arrival as a still page: the room plate full bleed, the scrim, every line sharp */
  .arrival { position: relative; height: 100vh; height: 100svh; margin-top: 0; visibility: visible; background: var(--night); }
  .arrival-plate { display: block; position: absolute; inset: 0; }
  .arrival-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .scrim--in { opacity: 1; }
  .fl { --f: 1; filter: none; transform: none; will-change: auto; }
  .houses { --rule: 1; }
  .grain { animation: none; }
  .rise, .rise-soft { transform: none; opacity: 1; filter: none; transition: none; }
  .loader.is-drawing path { animation: none; stroke-dashoffset: 0 !important; fill-opacity: 1; stroke-opacity: 0; }
  .loader { transition: opacity 300ms ease; }
  .loader.is-flying .loader-mark, .loader.is-rising .loader-mark { transition: none; transform: none; opacity: 0; }
  html:not(.is-loaded) .bar { opacity: 1; transition: none; }
  .loader.is-out, .loader.is-out .loader-mark { transition: opacity 300ms ease; filter: none; transform: none; }
  .running, .running::after, .running .arrow, .cursor, .after-facts a, .sign { transition: none; }
  body:has(.stage.is-js) .bar:not(.is-inside) .sign { opacity: 1; pointer-events: auto; }
}
