@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

* { box-sizing: border-box; }

:root {
  font-family: "Instrument Sans", Arial, sans-serif;
  color: #151515;
  background: #fff;
  font-synthesis: none;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html, body { margin: 0; min-height: 100%; background: #fff; }
body { min-height: 100svh; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 2px solid #151515; outline-offset: 5px; }

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(24px, 4vw, 56px);
}

.header { min-height: 38px; display: flex; align-items: center; }
.brand { display: inline-flex; gap: 11px; align-items: center; flex-shrink: 0; }
.brand img { display: block; filter: brightness(0); object-fit: contain; }
.brand__symbol { width: 26px; height: 26px; }
.brand__wordmark { width: 90px; height: auto; }

.gallery {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(28px, 4svh, 48px);
  min-width: 0;
  padding: 24px 0;
}

.scene {
  position: relative;
  width: min(50%, calc(28.5svh * 1034 / 1510), 205px);
  aspect-ratio: 1034 / 1510;
  margin: 0;
}

.scene img, .scene video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.scene video { visibility: hidden; }
.identity { display: grid; justify-items: center; gap: 16px; max-width: 100%; color: #000; text-align: center; }
.identity .brand { gap: 12px; }
.identity .brand__symbol { width: 32px; height: 32px; }
.identity .brand__wordmark { width: 116px; }
.gallery h1 { margin: 0; max-width: 30ch; color: #000; font-size: clamp(1rem, 1.25vw, 1.125rem); font-weight: 400; line-height: 1.4; letter-spacing: -.015em; text-wrap: balance; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; min-width: 0; }
.footer-link { display: inline-flex; min-height: 44px; align-items: center; color: #646464; font-size: .75rem; line-height: 1.5; text-decoration: none; }
.footer-link:hover { color: #151515; text-decoration: underline; }
.motion-toggle { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #666; cursor: pointer; touch-action: manipulation; }
.motion-toggle:hover { color: #151515; background: #f5f5f5; }
.motion-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.motion-toggle[hidden] { display: none; }
.motion-toggle .play-icon { display: none; }
.motion-toggle[data-playing="false"] .pause-icon { display: none; }
.motion-toggle[data-playing="false"] .play-icon { display: block; }

/* Homepage: the introduction's graphite and warm orange, on a solid canvas. */
.homepage {
  --home-canvas: #080a0c;
  --home-accent: #ffae70;
  color-scheme: dark;
  color: var(--home-accent);
  background: var(--home-canvas);
}
.homepage .page { position: relative; isolation: isolate; overflow: clip; }
.homepage .gallery, .homepage .footer { position: relative; z-index: 1; }
.homepage .scene {
  width: min(50%, calc(32svh * 720 / 1052), 224px);
  aspect-ratio: 720 / 1052;
}
.homepage .scene img { background: transparent; }
.homepage .scene video { visibility: hidden; pointer-events: none; }
.statue-surface { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.scene[data-ready="true"] .statue-surface { visibility: visible; }
.scene[data-ready="true"] > img { visibility: hidden; }
.homepage .identity { color: #fff; }
.homepage .identity .brand { gap: 15px; }
.homepage .identity .brand__symbol { width: 40px; height: 40px; }
.homepage .identity .brand__wordmark { width: 145px; }
.homepage .brand img { filter: none; }
.homepage .footer-link, .homepage .motion-toggle { color: var(--home-accent); }
.homepage .footer-link:hover { color: #ffd1ae; }
.homepage .motion-toggle:hover { color: #ffd1ae; background: #ffffff08; }
.homepage a:focus-visible, .homepage button:focus-visible { outline-color: var(--home-accent); }
.homepage ::selection { color: var(--home-canvas); background: var(--home-accent); }
.page-frame {
  position: fixed;
  inset: 7px;
  z-index: 20;
  pointer-events: none;
  border-radius: 18px;
  padding: 5px;
  background: linear-gradient(125deg, #603020 0%, #e38c50 22%, #ffe5be 39%, #a4492b 58%, #783b29 76%, #e4a46e 100%);
  background-size: 180% 180%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .72;
  animation: frame-breathe 4.5s ease-in-out infinite, frame-flow 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.homepage[data-motion="playing"] .page-frame { animation-play-state: running; }
@keyframes frame-breathe { 0%, 100% { opacity: .52; } 50% { opacity: .95; } }
@keyframes frame-flow { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.tool-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.document-page { min-height: 100svh; padding: clamp(24px, 4vw, 56px); }
.document-page .brand { text-decoration: none; }
.document { max-width: 650px; margin: clamp(56px, 10svh, 112px) auto; }
.document h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 36px; }
.document h2 { margin: 36px 0 10px; font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; }
.document p { margin: 0 0 20px; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.document .eyebrow { margin-bottom: 16px; font-size: .75rem; line-height: 1.5; color: #666; }

@media (max-width: 600px) {
  .page, .document-page { padding: 24px; }
  .header { min-height: 32px; }
  .brand { gap: 9px; }
  .brand__symbol { width: 23px; height: 23px; }
  .brand__wordmark { width: 81px; }
  .gallery { gap: 32px; padding: 28px 0; }
  .scene { width: min(50%, calc(27svh * 1034 / 1510), 175px); }
}

@media (max-height: 520px) and (min-width: 601px) {
  .page { padding: 18px 28px; }
  .header { min-height: 28px; }
  .gallery { padding: 12px 0; gap: 16px; }
  .scene { width: min(50%, calc(24.5svh * 1034 / 1510)); }
}

@media (prefers-reduced-motion: reduce) {
  .scene video { visibility: hidden !important; }
  .page-frame { animation: none; opacity: .7; }
  .motion-toggle { display: none; }
}
