@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Manrope, 'Helvetica Neue', sans-serif;
  color: #f5f2eb;
  background: #191a19;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button[hidden] { display: none; }
p, h1 { margin: 0; }
::selection { color: #191a19; background: #e9dfcc; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 92% 40%, #76706638, transparent 65%),
    radial-gradient(ellipse at 45% 110%, #aaa69b26, transparent 65%), #191a19;
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.6rem;
  width: min(100%, 1680px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(38px, 6.5vh, 76px) clamp(28px, 7.6vw, 128px) 88px;
  overflow: hidden;
}

.brand, .message, .footer { position: relative; z-index: 2; }
.brand { align-self: flex-start; }
.wordmark { font-size: clamp(2.1rem, 4.6vw, 4.7rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.1; }
.wordmark span { font-weight: 400; letter-spacing: -.07em; margin-left: -.12em; }
.eyebrow { margin-top: 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .52em; color: #e1dfd9; }
.message { width: 69%; padding-top: 1rem; }
h1 { font-size: clamp(3.2rem, 7.35vw, 7.75rem); font-weight: 800; line-height: 1.07; letter-spacing: -.065em; }
h1 span { display: block; }
.intro { margin-top: 1.3rem; font-size: clamp(1rem, 1.85vw, 1.85rem); line-height: 1.55; letter-spacing: -.022em; }
.signature { margin-top: clamp(2rem, 5.5vh, 4rem); color: #cfcdc7; }
.hairline { display: block; width: 72px; height: 1px; background: #b5b0a4; margin-bottom: 1.65rem; transform-origin: left; }
.signature p { font-size: clamp(.95rem, 1.5vw, 1.4rem); font-weight: 400; line-height: 1.7; letter-spacing: .01em; }
.mobile-break { display: none; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.domains { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; font-size: clamp(.95rem, 1.7vw, 1.7rem); font-weight: 600; letter-spacing: .045em; }
.domains a { color: inherit; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: text-decoration-color .2s ease; }
.domains a:hover { text-decoration-color: currentColor; }
.domains > span { color: #aaa69e; }
a:focus-visible, button:focus-visible { outline: 2px solid #f5f2eb; outline-offset: 6px; border-radius: 2px; }
.status { display: flex; align-items: center; gap: 1.1rem; text-transform: uppercase; font-size: .64rem; letter-spacing: .4em; color: #c1beb5; }
.status-line { height: 1px; width: 36px; background: #a19b8d; transform-origin: left; }

/* ponytail: crop the approved artwork in CSS; keep copy as accessible, responsive text. */
.artwork { position: absolute; z-index: 0; width: 55%; aspect-ratio: 690 / 675; right: -3.5%; top: 9%; pointer-events: none; mask-image: linear-gradient(transparent, #000 12%, #000 81%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 85%, transparent); mask-composite: intersect; }
.sculpture { position: absolute; inset: 0; overflow: hidden; }
.sculpture img { position: absolute; width: 242.319%; max-width: none; height: auto; left: -129.71%; top: -11.111%; user-select: none; }
.tracing { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; }
.trace { stroke: #ded5c0; stroke-width: .65; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion-toggle { position: absolute; right: clamp(28px, 7.6vw, 128px); bottom: 23px; z-index: 3; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 0 10px 12px; border: 0; color: #b9b7b0; background: transparent; font-size: .68rem; letter-spacing: .04em; cursor: pointer; }
.motion-toggle:hover { color: #fff; }
.motion-icon { display: block; width: 9px; height: 10px; border-inline: 2px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon { width: 9px; height: 10px; border: 0; border-left: 7px solid currentColor; border-block: 5px solid transparent; }

/* Content stays visible with JavaScript disabled. Infinite motion requires a pause control. */
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="running"] .reveal { animation: reveal .95s both cubic-bezier(.2,.7,.25,1); }
  html[data-motion="running"] h1 { animation-delay: .1s; }
  html[data-motion="running"] .intro { animation-delay: .25s; }
  html[data-motion="running"] .signature { animation-delay: .4s; }
  html[data-motion="running"] .footer { animation-delay: .55s; }
  html[data-motion="running"] .sculpture { animation: float 12s ease-in-out infinite; }
  html[data-motion="running"] .trace { animation: draw 10s ease-in-out infinite; }
  html[data-motion="running"] .status-line { animation: breathe 4s ease-in-out infinite; }
}
html[data-motion="paused"] .sculpture,
html[data-motion="paused"] .trace,
html[data-motion="paused"] .status-line { animation-play-state: paused; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes draw { 0%, 100% { stroke-dashoffset: 1; opacity: .1; } 45%, 70% { stroke-dashoffset: 0; opacity: .55; } }
@keyframes breathe { 0%, 100% { opacity: .4; transform: scaleX(.65); } 50% { opacity: 1; transform: scaleX(1); } }

@media (max-width: 1050px) {
  .page { gap: 3rem; padding-inline: 6vw; }
  .message { width: 76%; }
  .artwork { right: -9%; top: 17%; width: 61%; opacity: .84; }
  .status { font-size: .56rem; letter-spacing: .25em; gap: .7rem; }
  .status-line { width: 24px; }
  .motion-toggle { right: 6vw; }
}

@media (max-width: 700px) {
  .page { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: initial; gap: 2.1rem; min-height: 100svh; padding: 34px 7vw 88px; }
  .wordmark { font-size: clamp(2rem, 8.7vw, 3.5rem); }
  .eyebrow { margin-top: .75rem; font-size: .59rem; letter-spacing: .45em; }
  .artwork { position: relative; width: min(100%, 390px); grid-row: 2; justify-self: center; right: auto; top: auto; margin: -1.5rem 0 -2.6rem; opacity: 1; }
  .message { grid-row: 3; width: 100%; padding: 0; }
  h1 { font-size: clamp(2.35rem, 10vw, 4.3rem); letter-spacing: -.065em; }
  .intro { margin-top: 1.1rem; font-size: .96rem; max-width: 26rem; }
  .signature { margin-top: 1.7rem; }
  .hairline { width: 48px; margin-bottom: 1rem; }
  .signature p { font-size: .88rem; }
  .footer { grid-row: 4; flex-direction: column; align-items: flex-start; gap: 1.7rem; }
  .domains { gap: .55rem; font-size: clamp(.76rem, 3.1vw, 1rem); letter-spacing: .015em; }
  .status { font-size: .59rem; letter-spacing: .32em; }
  .motion-toggle { right: 7vw; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
