/* ============================================================================
   Pixels Limited. Page styles on top of scrollcraft.css (the engine floor).
   Rule: never restyle .sc-stage, .sc-copy or any [data-sc-*] selector here.
   Style your own classes only.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the six roles + two faces */
  --sc-canvas:     #061A2C;
  --sc-surface:    #082B49;
  --sc-ink:        #EAF4FA;
  --sc-ink-soft:   #93B4C9;
  --sc-accent:     #00B8D4;
  --sc-accent-ink: #031624;
  --sc-font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sc-font-text:    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sc-font-mono:    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* brand blue: used inside pictures and for the single "you are here" cell,
     exactly as in the logo. Never as text. */
  --px-blue: #1687E8;

  /* one corner scale for the whole page: this is a pixel brand */
  --sc-r-sm: 2px; --sc-r-md: 2px; --sc-r-lg: 2px;
  --sc-shadow-color: 205 70% 4%;

  /* Montserrat runs wide: snug the ramp a notch against the engine defaults */
  --sc-t-base: clamp(0.95rem, 0.9rem + 0.22vw, 1.06rem);
  --sc-t-lg:   clamp(1.1rem, 1.02rem + 0.5vw, 1.4rem);
  --sc-t-xl:   clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --sc-t-2xl:  clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --sc-t-3xl:  clamp(2.3rem, 1.6rem + 3.6vw, 4.4rem);

  --px-bar-h: 4.25rem;
}

/* ---------------------------------------------------------- no-JS floor --
   boot.js swaps .no-js for .js before first paint. Without script the engine
   never runs, so nothing may stay hidden waiting for it. */
.no-js [data-sc-cue], .no-js [data-sc-in], .no-js [data-sc-stagger] > * {
  opacity: 1; transform: none;
}
.no-js .px-index { display: none; }

body { font-weight: 450; }
.sc-display { font-weight: 640; letter-spacing: -0.03em; }
.sc-display--md { letter-spacing: -0.025em; }
.sc-body { font-weight: 450; }
.sc-lede { font-weight: 500; letter-spacing: -0.012em; max-width: 36ch; }

.eyebrow {
  margin: 0 0 var(--sc-4);
  font-size: var(--sc-t-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-accent);
}

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 1.5rem;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 650; font-size: var(--sc-t-sm); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border-radius: var(--sc-r-sm);
  box-shadow: var(--sc-e1);
  transition: transform 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 2.5rem; padding: 0 1.1rem; }
.btn--lg { min-height: 3.5rem; padding: 0 2rem; font-size: var(--sc-t-base); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in oklab, var(--sc-accent) 80%, white); box-shadow: var(--sc-e2); }
}
.link {
  font-weight: 600; font-size: var(--sc-t-sm);
  color: var(--sc-ink); text-decoration-color: color-mix(in oklab, var(--sc-ink) 40%, transparent);
  text-underline-offset: 0.3em; padding-block: 0.6rem;
  transition: text-decoration-color 140ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: var(--sc-accent); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-6); margin: var(--sc-6) 0 0; }

/* ----------------------------------------------------------- site chrome -- */
.px-bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--px-bar-h);
  padding-inline: var(--sc-gutter);
  pointer-events: none;
}
.px-bar > * { pointer-events: auto; }
.px-bar::before { content: ""; position: absolute; inset: 0 0 -0.75rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--px-canvas, #061A2C) 88%, transparent), transparent); }
.px-brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.px-brand svg { height: 1.9rem; width: auto; }
.px-brand span { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }

/* index of objects: a column of squares. The blue one is you. */
.px-index {
  position: fixed; z-index: var(--sc-z-chrome);
  right: clamp(0.5rem, 1.6vw, 1.6rem); top: 50%; translate: 0 -50%;
}
.px-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.px-index a {
  position: relative; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; text-decoration: none;
}
.px-index a::before {
  content: ""; width: 0.6rem; height: 0.6rem;
  background: var(--sc-accent); opacity: 0.38;
  transition: opacity 140ms var(--sc-ease-out), transform 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.px-index a[aria-current="true"]::before { background: var(--px-blue); opacity: 1; transform: scale(1.3); }
.px-index a span {
  position: absolute; right: 100%; top: 50%; translate: 0 -50%;
  margin-right: 0.35rem; padding: 0.35rem 0.6rem;
  background: var(--sc-surface); color: var(--sc-ink);
  font-size: var(--sc-t-xs); font-weight: 600; white-space: nowrap;
  box-shadow: var(--sc-e2), var(--sc-edge);
  opacity: 0; pointer-events: none;
  transition: opacity 140ms var(--sc-ease-out);
}
.px-index a:focus-visible span { opacity: 1; }
.px-index a:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .px-index a:hover::before { opacity: 1; }
  .px-index a:hover span { opacity: 1; }
}
@media (max-width: 860px) { .px-index { display: none; } }

/* ----------------------------------------------------------------- hero -- */
.hero { background: var(--sc-canvas); }
.hero__mark {
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  position: absolute; z-index: 1;
  right: clamp(3.5rem, 10vw, 11rem); top: 50%; translate: 0 -50%;
  height: min(66vh, 40rem); aspect-ratio: 5886 / 6887; width: auto;
}
.hero__copy { max-width: min(44rem, 62vw); bottom: clamp(3rem, 11vh, 8rem); }
.hero__copy h1 {
  font-size: clamp(1.75rem, 7.4vw, 3.3rem);
  line-height: 1.04;
  max-width: 17em;
}
.hero__copy .sc-body { margin-top: var(--sc-5); max-width: 40ch; color: var(--sc-ink-soft); }
@media (max-width: 860px) {
  .hero__mark { right: 50%; translate: 50% 0; top: calc(var(--px-bar-h) + 1.5rem); height: min(34svh, 20rem); }
  .hero__copy { max-width: none; bottom: clamp(1.5rem, 6svh, 3rem); }
  .hero__copy .sc-body { margin-top: var(--sc-4); }
  .actions { margin-top: var(--sc-5); }
}

/* -------------------------------------------------------------- premise -- */
.premise { padding-block: clamp(5rem, 12vw, 11rem) clamp(4rem, 9vw, 8rem); }
.premise__inner { padding-left: clamp(0rem, 14vw, 16rem); }
.premise h2 { max-width: 14em; }
.premise .sc-lede { margin-top: var(--sc-7); }
.premise .sc-body { margin-top: var(--sc-5); max-width: 46ch; }

/* ------------------------------------------------------------ collection -- */
.room { background: transparent; display: flex; align-items: center; }
.rail {
  position: relative;
  align-items: flex-start;
  gap: clamp(2.5rem, 6vw, 6rem);
  width: max-content;
  padding-inline: var(--sc-gutter) calc(var(--sc-gutter) + 2rem);
}
.rail > * { flex: none; }
.rail > .rail__lead, .rail > .rail__end { align-self: center; }
.rail__lead { width: clamp(16rem, 28vw, 26rem); }
.rail__lead p { margin-top: var(--sc-4); max-width: 30ch; }
.obj { width: clamp(16.5rem, 27vw, 24rem); }
.obj__art {
  width: min(100%, 44vh); aspect-ratio: 1; height: auto;
  image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated;
}
.plate-art { position: relative; width: 100%; aspect-ratio: 5 / 4; background: #EEF4F8; border-radius: 2px; overflow: hidden; }
.plate-art img, .plate-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate-art canvas { image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; }
.obj__shelf { height: 1px; background: var(--sc-hairline-strong); margin-top: var(--sc-3); }
.obj__label { padding-top: var(--sc-5); }
.obj__label h3 { margin: 0; font-size: var(--sc-t-lg); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.obj__label p { margin: var(--sc-2) 0 0; max-width: 30ch; }
.obj__label dl { margin: var(--sc-4) 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0 var(--sc-4); font-size: var(--sc-t-sm); }
.obj__label dt {
  font-size: var(--sc-t-xs); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sc-accent); padding-top: 0.2em;
}
.obj__label dd { margin: 0; color: var(--sc-ink-soft); max-width: 30ch; }
.rail__end { width: clamp(15rem, 24vw, 22rem); }
.rail__end p { margin: 0 0 var(--sc-5); }
@media (max-width: 860px) {
  .rail__lead, .obj, .rail__end { width: 74vw; }
  .obj__art { width: min(100%, 36svh); }
  .rail { gap: 2.25rem; }
}

/* -------------------------------------------------------------- silence -- */
.quiet { min-height: 78svh; display: flex; align-items: flex-end; padding-block: var(--sc-9) clamp(4rem, 10vw, 9rem); }
.quiet p { max-width: 14em; }

/* ----------------------------------------------------------------- street -- */
.street { background: #04121F; }
.street__scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 70%;
  image-rendering: pixelated;
}
.street__label {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: calc(var(--px-bar-h) + 1.25rem);
  max-width: 19rem;
  padding: var(--sc-5) var(--sc-5) var(--sc-5);
  background: color-mix(in oklab, var(--sc-canvas) 94%, transparent);
  border: 1px solid var(--sc-hairline-strong);
  box-shadow: var(--sc-e3), var(--sc-edge);
}
.street__label h2 { margin: 0; font-size: var(--sc-t-xl); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
.street__label p { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
@media (max-width: 860px) {
  .street__label { inset-inline: var(--sc-gutter); max-width: none; top: auto; bottom: clamp(1.25rem, 5svh, 3rem); }
}

/* -------------------------------------------------------------- company -- */
.company { padding-block: clamp(4rem, 9vw, 9rem); }
.company__grid { display: grid; gap: var(--sc-8) clamp(2rem, 7vw, 8rem); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.company h2 { max-width: 12em; }
.company .sc-body { margin-top: var(--sc-5); max-width: 42ch; }
.plate {
  margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--sc-surface);
  box-shadow: var(--sc-e2), var(--sc-edge);
}
.plate dl, .contact { margin: 0; display: grid; }
.plate dl > div, .contact > div {
  display: grid; grid-template-columns: minmax(7rem, 9.5rem) 1fr; gap: var(--sc-4);
  padding-block: var(--sc-4); border-top: 1px solid var(--sc-hairline);
}
.plate dl > div:first-child, .contact > div:first-child { border-top: 0; padding-top: 0; }
.plate dl > div:last-child, .contact > div:last-child { padding-bottom: 0; }
.plate dt, .contact dt {
  font-size: var(--sc-t-xs); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sc-accent); padding-top: 0.25em;
}
.plate dd, .contact dd { margin: 0; font-weight: 500; }
.plate dd.big { font-size: var(--sc-t-xl); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
@media (max-width: 860px) {
  .company__grid { grid-template-columns: 1fr; }
  .plate dl > div, .contact > div { grid-template-columns: 1fr; gap: var(--sc-1); }
}

/* ---------------------------------------------------------------- close -- */
.close { background: transparent; display: flex; align-items: center; }
.close__inner { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.close h2 { max-width: 12em; }
.close .btn { margin-top: var(--sc-6); }
.close .contact { margin-top: var(--sc-8); max-width: 38rem; }
.close .contact a { text-decoration-color: color-mix(in oklab, var(--sc-ink) 40%, transparent); }
@media (hover: hover) and (pointer: fine) { .close .contact a:hover { text-decoration-color: var(--sc-accent); } }
.foot {
  position: absolute; inset: auto 0 0 0; z-index: var(--sc-z-copy);
  padding: var(--sc-5) var(--sc-gutter);
  font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
  border-top: 1px solid var(--sc-hairline);
}
.foot p { margin: 0; }
@media (max-width: 860px) {
  .close h2 { font-size: var(--sc-t-2xl); }
  .close .contact { margin-top: var(--sc-6); }
  .close .contact > div { padding-block: var(--sc-3); }
}
@media (max-height: 640px) and (min-width: 861px) {
  .close .contact { margin-top: var(--sc-5); }
  .close .btn { margin-top: var(--sc-5); }
}

/* ---------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .px-index a::before, .btn, .link { transition: none; }
  /* The rail becomes an ordinary scroll region (engine floor). Give it room. */
  .rail { padding-block: var(--sc-6); }
}
