/* Lumos Group: site styles. Tokens in tokens.css; this file never hard-codes a colour the tokens own. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0; background: var(--color-bg-primary); color: var(--color-text-primary);
  font: var(--font-weight-normal) var(--font-size-base)/var(--line-height-normal) var(--font-family-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color var(--duration-slow) var(--ease-default), color var(--duration-slow) var(--ease-default);
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--brand-green); color: var(--color-on-accent); }
:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-family-display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: var(--letter-spacing-tight); }
h1 { font-size: var(--font-size-4xl); line-height: var(--line-height-tight); }
h2 { font-size: var(--font-size-3xl); line-height: 1.08; }
h3 { font-size: var(--font-size-xl); line-height: var(--line-height-snug); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max-width-page), 100% - 2 * var(--space-gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 90; background: var(--color-bg-inverse); color: var(--color-text-inverse); padding: 12px 18px; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4);
  min-height: var(--button-height); padding: var(--button-padding); border-radius: var(--border-radius-sm);
  font: var(--font-weight-semibold) var(--font-size-sm)/1 var(--font-family-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default);
}
.btn--primary { background: var(--color-accent-primary); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-primary-hover); text-decoration: none; }
.btn--primary:active { background: var(--color-accent-primary-active); }
.btn--quiet { border-color: var(--color-border-primary); color: var(--color-text-primary); background: transparent; font-weight: var(--font-weight-medium); }
.btn--quiet:hover { border-color: var(--color-text-secondary); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 40; height: var(--header-height); background: color-mix(in srgb, var(--color-bg-primary) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border-secondary); }
.top__in { height: 100%; display: flex; align-items: center; gap: var(--space-8); }
.brand { display: inline-flex; color: var(--color-text-primary); }
.wordmark { width: 168px; height: auto; display: block; fill: currentColor; }
.wordmark path { fill: currentColor; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-8); }
.nav a:not(.btn) { font-size: var(--font-size-sm); text-decoration: none; color: var(--color-text-secondary); padding: 10px 0; border-bottom: 1px solid transparent; transition: color var(--duration-fast), border-color var(--duration-fast); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--color-text-primary); border-bottom-color: var(--color-accent-secondary); }
.nav .btn { min-height: 44px; padding: 0 20px; }
.lights { display: inline-flex; align-items: center; gap: var(--space-4); background: none; border: 0; color: var(--color-text-secondary); font: var(--font-weight-medium) var(--font-size-xs)/1 var(--font-family-body); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; cursor: pointer; padding: 10px 0; min-height: 44px; }
.lights:hover { color: var(--color-text-primary); }
.lights__track { width: 34px; height: 18px; border-radius: var(--border-radius-full); border: 1px solid var(--color-border-primary); position: relative; flex: none; }
.lights__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--material-light); transition: transform var(--duration-normal) var(--ease-out); }
[data-theme="light"] .lights__track::after { transform: translateX(16px); background: var(--color-accent-secondary); }
.menu-btn { display: none; }

/* ---- the suite (home hero) ---- */
.suite { position: relative; height: calc(100svh - var(--header-height)); min-height: 620px; max-height: 1040px; overflow: hidden; }
.suite__room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.suite__still { position: absolute; inset: 0; display: none; background: url(/img/suite/still-dark.webp) 50% 50% / cover no-repeat; }
[data-theme="light"] .suite__still { background-image: url(/img/suite/still-light.webp); }
.no-gl .suite__still, html:not(.js) .suite__still { display: block; }
.suite__room { opacity: 0; transition: opacity var(--duration-slower) var(--ease-default); }
/* the room's edges dissolve into the page, so the header and the copy sit in the same dark */
.suite__room, .suite__still { -webkit-mask-image: radial-gradient(115% 120% at 70% 52%, #000 42%, transparent 82%); mask-image: radial-gradient(115% 120% at 70% 52%, #000 42%, transparent 82%); }
.suite__room.is-live { opacity: 1; }
.suite__room { touch-action: pan-y; }   /* a sideways drag turns the plinth; vertical swipes scroll */
.no-gl .suite__room { display: none; }
.still-shot .suite__copy, .still-shot .plinth-label { visibility: hidden; }
.suite__copy { position: relative; z-index: 2; height: 100%; display: grid; align-content: center; justify-items: start; gap: var(--space-7); padding-bottom: var(--space-10); pointer-events: none; }
.suite__copy > * { pointer-events: auto; max-width: 34rem; }
.suite__copy h1 { max-width: 11ch; }
.suite__copy p { color: var(--color-text-secondary); font-size: var(--font-size-md); line-height: 1.5; max-width: 30em; margin: 0; }
.suite__actions { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* the brass plinth label: a gallery label set in front of the plinth */
.plinth-label {
  position: absolute; z-index: 2; left: 64%; top: 72%; width: 284px;
  background: var(--plinth-label-bg); border-top: 1px solid var(--plinth-label-rule);
  padding: var(--space-6) var(--space-7) var(--space-6); box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity var(--duration-slower) var(--ease-default);
}
/* the label is set down once the camera has come to rest */
.is-settled .plinth-label, .no-gl .plinth-label, html:not(.js) .plinth-label { opacity: 1; }
.gldebug { position: fixed; left: 8px; bottom: 8px; z-index: 99; margin: 0; padding: 8px 10px; max-width: calc(100vw - 16px); white-space: pre-wrap; font: 12px/1.4 ui-monospace, monospace; background: #000c; color: #fff; }
.plinth-label__k { font: var(--label-font); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; color: var(--color-accent-secondary); }
.plinth-label__t { font-family: var(--font-family-display); font-size: var(--font-size-lg); line-height: 1.2; margin: var(--space-3) 0 var(--space-5); }
.plinth-label dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3) var(--space-7); margin: 0; font-size: var(--font-size-sm); font-variant-numeric: tabular-nums; }
.plinth-label dt { color: var(--color-text-tertiary); }
.plinth-label dd { margin: 0; }
.plinth-label a { display: inline-block; margin-top: var(--space-5); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-text-link); }

/* below 1200px the room stacks above the copy */
@media (max-width: 1199.98px) {
  .suite { height: auto; min-height: 0; max-height: none; display: grid; }
  .suite__room, .suite__still { position: relative; height: 50svh; min-height: 340px; grid-area: 1 / 1; }
  .suite__room, .suite__still { -webkit-mask-image: radial-gradient(85% 70% at 50% 50%, #000 45%, transparent 92%); mask-image: radial-gradient(85% 70% at 50% 50%, #000 45%, transparent 92%); }
  .suite__still { background-image: url(/img/suite/still-dark-narrow.webp); }
  [data-theme="light"] .suite__still { background-image: url(/img/suite/still-light-narrow.webp); }
  .suite__copy { grid-area: 2 / 1; height: auto; padding: var(--space-8) 0 var(--space-9); }
  .suite__copy h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .plinth-label { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; gap: var(--space-4); min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--color-border-primary); color: var(--color-text-primary); font: var(--font-weight-medium) var(--font-size-sm) var(--font-family-body); border-radius: var(--border-radius-sm); }
  .wordmark { width: 138px; }
}
