/* lux.css: shared layout for the catalogue's site drafts.
   Each page sets its own tokens in :root before this file:
   --bg --ink --muted --line --accent --accent-ink   page ground and text
   --hero-bg --hero-ink                              first screen
   --band-bg --band-ink                              the one contrasting section
   --font-display --font-body --mark-size            type; --mark-size is the giant name's size in vw */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1400px; margin-inline: auto; padding-inline: clamp(20px, 4.6vw, 72px); }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance; overflow-wrap: break-word; }
.label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* links and buttons */
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, transform 0.12s ease; }
.btn:hover { background: var(--btn-hover-bg, var(--ink)); color: var(--btn-hover-ink, var(--bg)); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: transparent; color: inherit; border-color: currentColor; }

/* nav: sits on the hero */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 5; color: var(--hero-ink); }
.nav__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 26px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 40px); }
.nav__name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.04em; }
.nav__cta { justify-self: end; }
@media (max-width: 760px) { .nav__links { display: none; } .nav__row { grid-template-columns: 1fr auto; } .nav__name { justify-self: start; } }

/* hero: the name set across the screen, the object turning in front of it */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: end; background: var(--hero-bg); color: var(--hero-ink); overflow: clip; --btn-hover-bg: var(--hero-ink); --btn-hover-ink: var(--hero-bg); }
.hero__name { position: absolute; left: 0; right: 0; top: 47%; translate: 0 -50%; z-index: 0; display: flex; justify-content: center; font-family: var(--font-display); font-weight: 400; font-size: min(var(--mark-size, 22vw), 44svh); line-height: 0.8; letter-spacing: -0.02em; white-space: nowrap; pointer-events: none; user-select: none; }
.hero__name span { display: inline-block; }
.hero__glow { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: min(96vw, 110svh); aspect-ratio: 1; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, color-mix(in oklab, var(--hero-ink) 13%, transparent), transparent 72%); }
.hero__stage { position: absolute; left: 50%; top: 49%; translate: -50% -50%; z-index: 1; width: min(94vw, 76svh, 860px); aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.hero__stage.is-dragging { cursor: grabbing; }
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lux3d__still { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.hero__stage.is-live .lux3d__still { visibility: hidden; }
.hero__foot { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) auto; align-items: end; gap: 32px; padding-block: 0 clamp(24px, 4svh, 44px); width: 100%; }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2.4rem); line-height: 1.1; max-width: 17ch; text-wrap: balance; }
.hero__side { display: grid; justify-items: end; gap: 18px; text-align: right; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero__hint { position: absolute; left: 50%; bottom: clamp(24px, 4svh, 44px); translate: -50% 0; z-index: 2; opacity: 0.7; }
@media (max-width: 900px) {
  .hero__name { top: 36%; font-size: min(var(--mark-size, 22vw), 26svh); }
  .hero__stage { top: 38%; width: min(104vw, 56svh); }
  .hero__glow { top: 38%; }
  .hero__foot { grid-template-columns: 1fr; gap: 20px; }
  .hero__side { justify-items: start; text-align: left; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__hint { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__name span { animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
  .hero__stage { animation: arrive 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards; }
  .hero__foot, .hero__hint { animation: fade 0.9s ease 0.75s backwards; }
  @keyframes rise { from { transform: translateY(42%); opacity: 0; } }
  @keyframes arrive { from { opacity: 0; scale: 0.9; } }
  @keyframes fade { from { opacity: 0; } }
}

/* statement: one sentence, set large */
.statement { padding-block: clamp(96px, 15vw, 210px); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; align-items: start; }
.statement__text { font-size: clamp(2rem, 4.6vw, 4.6rem); max-width: 17ch; }
.statement__note { max-width: 44ch; margin-top: clamp(24px, 3vw, 44px); font-size: 1.0625rem; }
@media (max-width: 760px) { .statement__grid { grid-template-columns: 1fr; gap: 18px; } }

/* plates: photographs in an uneven editorial grid */
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); }
.plate { position: relative; overflow: hidden; background: color-mix(in oklab, var(--ink) 8%, var(--bg)); }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.plate:hover img { transform: scale(1.03); }
.plate--tall { grid-column: span 7; aspect-ratio: 4 / 5; }
.plate--stack { grid-column: span 5; display: grid; gap: clamp(10px, 1.4vw, 22px); background: none; overflow: visible; }
.plate--stack .plate { aspect-ratio: 5 / 4; }
.plate--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.plate--half { grid-column: span 6; aspect-ratio: 4 / 5; }
.plate--third { grid-column: span 4; aspect-ratio: 3 / 4; }
.bleed { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .plate--tall, .plate--stack, .plate--half { grid-column: 1 / -1; }
  .plate--third { grid-column: span 6; }
  .plate--third:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .plate--wide, .bleed { aspect-ratio: 4 / 3; }
}

/* ticker: the offer in one moving line */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; }
.ticker__run { display: flex; width: max-content; gap: clamp(36px, 5vw, 72px); font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1; white-space: nowrap; }
.ticker__run > span:nth-child(even) { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__run { animation: run 46s linear infinite; }
  .ticker:hover .ticker__run { animation-play-state: paused; }
  @keyframes run { to { transform: translateX(-50%); } }
}

/* band: the contrasting section, here the price list */
.band { background: var(--band-bg); color: var(--band-ink); --btn-hover-bg: var(--band-ink); --btn-hover-ink: var(--band-bg); }
.section { padding-block: clamp(88px, 11vw, 168px); }
.section__head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.section__title { font-size: clamp(2.6rem, 6.4vw, 6.5rem); }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; gap: 14px; } }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split__photo { position: sticky; top: 32px; aspect-ratio: 4 / 5; overflow: hidden; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split, .split--flip { grid-template-columns: 1fr; } .split__photo { position: static; aspect-ratio: 4 / 3; } }

.list + .list { margin-top: clamp(36px, 4vw, 56px); }
.list__group { padding-bottom: 14px; border-bottom: 1px solid currentColor; }
.list__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--band-line, var(--line)); }
.list__name { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.15; }
.list__more { display: block; font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.45; margin-top: 4px; opacity: 0.72; }
.list__price { font-size: 1.0625rem; white-space: nowrap; }
.fine { font-size: 0.875rem; opacity: 0.72; margin-top: 22px; max-width: 52ch; }

/* steps: a short ordered process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; margin-bottom: 18px; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin-bottom: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: 1.0625rem; }
.field select option { color: #111; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-bottom-width: 2px; border-color: var(--accent); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__note { font-size: 0.9375rem; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

/* visit: the district set large */
.visit__place { font-size: clamp(4rem, 17.5vw, 18rem); line-height: 0.84; letter-spacing: -0.03em; white-space: nowrap; }
.visit__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(36px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.visit__grid dt { margin-bottom: 10px; }
.visit__grid dd { font-size: 1.125rem; line-height: 1.5; }
@media (max-width: 760px) { .visit__grid { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--hero-bg); color: var(--hero-ink); overflow: clip; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: clamp(56px, 7vw, 96px) 28px; }
main > .section:last-child:has(> .bleed:last-child) { padding-bottom: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.foot__name { font-family: var(--font-display); font-size: min(var(--mark-size, 22vw), 30rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; text-align: center; margin: -0.1em 0 0; opacity: 0.16; user-select: none; }
.foot__legal { font-size: 0.8125rem; opacity: 0.66; max-width: 100ch; padding-bottom: 22px; }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* short landscape screens (a phone held sideways): stack the hero instead of layering it */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; align-items: start; padding-top: 84px; }
  .hero__name, .hero__glow, .hero__hint { display: none; }
  .hero__stage { position: relative; left: auto; top: auto; translate: none; margin: 0 auto; width: min(46vw, 62svh); }
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; padding-block: 8px 28px; }
  .hero__side { justify-items: end; text-align: right; }
  .hero__actions { justify-content: flex-end; }
  .hero__actions .btn { flex: 0 0 auto; }
}
