/* Hallmark · macrostructure: Split Studio · theme: custom (see tokens.css stamp) */
@import url("tokens.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-accent); color: var(--color-accent-ink); }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--space-md); }

/* ============================================================
   WOW MOTION LAYER  (transform/opacity only · reduced-motion safe)
   ============================================================ */

/* scroll progress rail */
.scrollbar {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* hero becomes a full-bleed stage */
.hero { position: relative; overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
#motes { position: absolute; inset: 0; width: 100%; height: 100%; }

/* slow-drifting aurora glow behind the hero */
.aurora { position: absolute; inset: -20% -10%; filter: blur(60px); opacity: 0.55; }
.aurora span { position: absolute; border-radius: 50%; }
.aurora .a1 { width: 46vw; height: 46vw; left: -6%; top: -10%;
  background: radial-gradient(circle, oklch(72% 0.17 145 / 0.5), transparent 62%); animation: drift1 22s var(--ease-in-out) infinite; }
.aurora .a2 { width: 40vw; height: 40vw; right: -8%; top: 6%;
  background: radial-gradient(circle, oklch(84% 0.12 120 / 0.42), transparent 62%); animation: drift2 28s var(--ease-in-out) infinite; }
.aurora .a3 { width: 30vw; height: 30vw; left: 30%; bottom: -18%;
  background: radial-gradient(circle, oklch(62% 0.14 160 / 0.4), transparent 62%); animation: drift3 25s var(--ease-in-out) infinite; }
@keyframes drift1 { 50% { transform: translate(8%, 6%) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-7%, 9%) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(6%, -8%) scale(1.15); } }

/* headline word-stagger (spans injected by motion.js) */
.hero h1 .word { display: inline-block; }
.js .hero h1 .word { opacity: 0; transform: translateY(0.5em) rotate(2deg); }
.hero.is-lit h1 .word {
  animation: wordUp var(--dur-slow) var(--ease-out) forwards;
  animation-delay: calc(var(--wi, 0) * 70ms);
}
@keyframes wordUp { to { opacity: 1; transform: none; } }

/* magnetic button — motion.js sets --mx/--my; CSS eases it */
.btn { will-change: transform; }
.btn.is-magnetic { transform: translate(var(--mx, 0), var(--my, 0)); transition: transform var(--dur-med) var(--ease-out); }

/* tilt + shine on brand cards */
.brandcard { transform-style: preserve-3d; transition: transform var(--dur-med) var(--ease-out); position: relative; }
.brandcard.is-tilt { transition: transform 80ms linear; }
.brandcard__shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--sx, 50%) var(--sy, 50%), oklch(100% 0 0 / 0.14), transparent 60%);
  transition: opacity var(--dur-med) var(--ease-out);
}
.brandcard:hover .brandcard__shine { opacity: 1; }

/* count-up / process reveal handled by .in-view class */
.panel svg .flow { stroke-dasharray: 8; stroke-dashoffset: 16; }
.panel.in-view svg .flow { animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.panel svg .mote-dot { opacity: 0; }
.panel.in-view svg .mote-dot { animation: pop var(--dur-slow) var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 120ms + 300ms); }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .aurora, .hero.is-lit h1 .word, .panel.in-view svg .flow, .panel.in-view svg .mote-dot { animation: none; }
  .js .hero h1 .word { opacity: 1; transform: none; }
  .panel svg .mote-dot { opacity: 1; }
  .aurora { opacity: 0.3; }
  .btn.is-magnetic { transform: none; }
}

/* ---------- nav · N9 edge-aligned minimal ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-md);
}
.nav__mark { display: flex; align-items: baseline; gap: var(--space-xs); color: var(--color-ink); }
.nav__mark:hover { text-decoration: none; }
.nav__word { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent-bright); align-self: center; }
.nav__cta {
  font-size: var(--text-sm); font-weight: 600; color: var(--color-ink);
  border: 1.5px solid var(--color-ink); border-radius: 999px;
  padding: 0.5em 1.3em; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--color-ink); color: var(--color-paper); text-decoration: none; }
.nav__cta:active { transform: translateY(1px); }

/* ---------- hero — split ---------- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-2xl); align-items: center; }
.kicker {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-muted); display: block; margin-bottom: var(--space-md);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 560; font-size: var(--text-display);
  line-height: 1.04; letter-spacing: -0.022em; overflow-wrap: anywhere; min-width: 0;
}
.hero h1 em { font-style: italic; color: var(--color-accent); }
.hero__sub { margin-top: var(--space-lg); font-size: var(--text-lg); color: var(--color-ink-2); max-width: 34em; }
.hero__actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn {
  display: inline-block; font-weight: 600; font-size: var(--text-sm);
  border-radius: 999px; padding: 0.72em 1.6em; border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--solid:hover { background: oklch(46% 0.15 148); }
.btn--ghost { border-color: var(--color-rule); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-ink); }
.hero__proof { justify-self: center; text-align: center; }
.hero__proof img { width: min(320px, 72vw); margin-inline: auto; }
.hero__proof figcaption { margin-top: var(--space-sm); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- diptych rows ---------- */
.section { padding-block: var(--space-2xl); }
.section + .section { border-top: 0; } /* Split Studio: gutters, no rules */
.dip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.dip--flip .dip__text { order: 2; }
.dip--flip .dip__proof { order: 1; }
.dip h2 {
  font-family: var(--font-display); font-weight: 560; font-size: var(--text-display-s);
  line-height: 1.12; letter-spacing: -0.015em; overflow-wrap: anywhere; min-width: 0;
}
.dip p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 36em; }
.dip .btn { margin-top: var(--space-lg); }
.dip__proof { min-width: 0; }

/* process SVG panel */
.panel {
  background: var(--color-paper-2); border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
}
.panel svg { width: 100%; height: auto; }

/* range list */
.range { display: grid; gap: var(--space-sm); }
.range__item {
  display: flex; align-items: baseline; gap: var(--space-md);
  background: var(--color-paper-2); border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.range__item:hover { transform: translateY(-2px); }
.range__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent); }
.range__item h3 { font-family: var(--font-body); font-weight: 650; font-size: var(--text-md); }
.range__item p { margin-top: 2px; font-size: var(--text-sm); color: var(--color-muted); max-width: none; }

/* brand card */
/* announcement bar */
.announce {
  background: var(--color-accent); color: var(--color-accent-ink);
  text-align: center; padding: var(--space-xs) var(--space-md);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
}
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* section head (house of brands) */
.sectionhead { max-width: 44em; }
.sectionhead h2 {
  font-family: var(--font-display); font-weight: 560; font-size: var(--text-display-s);
  line-height: 1.12; letter-spacing: -0.015em; overflow-wrap: anywhere;
}
.sectionhead p { margin-top: var(--space-md); color: var(--color-ink-2); }
.brandgrid { margin-top: var(--space-xl); display: grid; gap: var(--space-lg); }
.kicker--dark { color: oklch(65% 0.09 147); }

.brandcard {
  background: oklch(30% 0.055 152); color: var(--color-dark-ink);
  border-radius: var(--radius-lg); padding: var(--space-xl);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--space-lg); align-items: center;
}
.brandcard img { border-radius: var(--radius-md); }
.brandcard h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 560; }
.brandcard p { margin-top: var(--space-sm); font-size: var(--text-sm); color: oklch(80% 0.02 147); }
.brandcard a { color: var(--color-accent-bright); font-weight: 600; display: inline-block; margin-top: var(--space-md); }
.brandcard--soon { background: var(--color-paper-2); color: var(--color-ink); }
.brandcard--soon p { color: var(--color-muted); }
.brandcard--soon .kicker--dark { color: var(--color-accent); }
.brandcard__soon {
  display: flex; align-items: center; justify-content: center;
  min-height: 180px; font-size: 3rem;
  border: 2px dashed var(--color-rule); border-radius: var(--radius-md);
}

/* ---------- registry — dark panel, mono facts ---------- */
.registry { background: var(--color-dark); color: var(--color-dark-ink); border-radius: var(--radius-lg); padding: var(--space-2xl) var(--space-xl); }
.registry h2 { font-family: var(--font-display); font-weight: 560; font-size: var(--text-display-s); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.registry__note { margin-top: var(--space-sm); color: oklch(70% 0.02 147); max-width: 40em; }
.facts { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid oklch(36% 0.03 150); }
.facts div { padding: var(--space-md) 0; border-bottom: 1px solid oklch(36% 0.03 150); min-width: 0; }
.facts dt { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: oklch(62% 0.06 147); }
.facts dd { margin-top: var(--space-2xs); font-size: var(--text-sm); overflow-wrap: anywhere; }

/* ---------- enquiry ---------- */
.enquiry { text-align: center; padding-block: var(--space-3xl); }
.enquiry h2 {
  font-family: var(--font-display); font-weight: 560; font-size: var(--text-display-s);
  letter-spacing: -0.015em; overflow-wrap: anywhere;
}
.enquiry p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 38em; margin-inline: auto; }
.enquiry .btn { margin-top: var(--space-xl); }
.enquiry__alt { margin-top: var(--space-md); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- footer · Ft1 mast-headed ---------- */
.footer { border-top: var(--rule-hairline); padding-block: var(--space-xl); }
.footer__mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.footer__word { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--color-ink); }
.footer__tag { font-size: var(--text-sm); color: var(--color-muted); }
.footer__legal { margin-top: var(--space-lg); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); line-height: 1.9; overflow-wrap: anywhere; }

/* ---------- reveal ---------- */
/* Progressive enhancement: only hide-then-reveal when JS is active (html.js).
   Without JS the content stays fully visible — never blank the page. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 90ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transition: opacity 150ms var(--ease-out); transform: none; }
  .btn:hover, .range__item:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero__grid, .dip, .brandcard { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .dip--flip .dip__text { order: 1; }
  .dip--flip .dip__proof { order: 2; }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .registry { padding: var(--space-xl) var(--space-md); }
  .hero__actions .btn { width: 100%; text-align: center; }
}
