/* MASH V2 — Kinetic / Motion-first
   A new visual language, not the v1 system. */

@font-face { font-family: "ArchivGrotesk"; src: url("../assets/Fonts/ArchivGrotesk-Hairline.otf") format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchivGrotesk"; src: url("../assets/Fonts/ArchivGrotesk-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchivGrotesk"; src: url("../assets/Fonts/ArchivGrotesk-Normal.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchivGrotesk"; src: url("../assets/Fonts/ArchivGrotesk-Regular.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchivGrotesk"; src: url("../assets/Fonts/ArchivGrotesk-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchivGrotesk"; src: url("../assets/Fonts/ArchivGrotesk-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Brand palette — direct from the brochure */
  --orange:      #f74f04;
  --orange-hot:  #ff6423;
  --dusk:        #042e37;   /* the dark teal from brochure pages */
  --dusk-deep:   #021c22;   /* deeper */
  --dusk-soft:   #0b3d49;
  --ink:         #0a1a1e;
  --paper:       #f4f4f1;
  --paper-warm:  #efece4;
  --white:       #ffffff;
  --grey-blue:   #859aac;
  --rule-light:  #d8dadb;
  --rule-dark:   rgba(255,255,255,.14);

  /* Secondary accents */
  --green:   #39c690;
  --teal:    #4eccb4;
  --violet:  #6772d3;
  --lime:    #b9d359;
  --slate:   #859aac;

  /* Type */
  --f-display: "ArchivGrotesk", "Arial Narrow", sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale — editorial giant */
  --fs-mega:    clamp(72px, 18vw, 320px);
  --fs-hero:    clamp(56px, 11vw, 180px);
  --fs-display: clamp(40px, 6vw, 104px);
  --fs-h1:      clamp(34px, 4.6vw, 72px);
  --fs-h2:      clamp(24px, 3vw, 44px);
  --fs-h3:      clamp(20px, 1.8vw, 28px);
  --fs-body:    17px;
  --fs-small:   14px;
  --fs-micro:   11px;

  /* Layout */
  --pad: clamp(22px, 4vw, 72px);
  --maxw: 1560px;

  /* Motion */
  --e-out: cubic-bezier(.22,1,.36,1);
  --e-io:  cubic-bezier(.65,0,.35,1);
  --e-soft: cubic-bezier(.45,0,.2,1);
}

/* ─── Reset + base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--dusk);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -0.02em;
}
p { margin: 0; }

::selection { background: var(--orange); color: white; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ─── Section rhythm (dark/light alternation) ───── */
section { position: relative; }
.sec-dark {
  background: var(--dusk);
  color: var(--paper);
  --rule: var(--rule-dark);
  --subtle: #b9c6ca;
}
.sec-deep {
  background: var(--dusk-deep);
  color: var(--paper);
  --rule: var(--rule-dark);
  --subtle: #9cb0b5;
}
.sec-light {
  background: var(--paper);
  color: var(--ink);
  --rule: var(--rule-light);
  --subtle: #526970;
}
.sec-warm {
  background: var(--paper-warm);
  color: var(--ink);
  --rule: var(--rule-light);
  --subtle: #526970;
}
.sec-orange {
  background: var(--orange);
  color: var(--paper);
  --rule: rgba(255,255,255,.25);
  --subtle: rgba(255,255,255,.88);
}

/* ─── Wrap + helpers ─────────────────────── */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--subtle);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--plain::before { display: none; }

.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; line-height: .92; }
.cap { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.num { font-family: var(--f-display); font-weight: 300; line-height: 1; letter-spacing: -0.04em; font-feature-settings: "tnum" 1; }

/* Hairline rule */
.rule { height: 1px; background: var(--rule); border: 0; }

/* Stencil cut — letters knocked out by a band / line */
.stencil {
  display: inline-block;
  position: relative;
  line-height: .9;
}
.stencil__line {
  position: absolute;
  left: -6%;
  right: -6%;
  height: 18%;
  top: 44%;
  background: var(--orange);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: normal;
  transform-origin: left center;
}
.stencil__line--thin { height: 6%; top: 50%; }

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 72px;
  animation: slide 40s linear infinite;
  flex-shrink: 0;
  align-items: center;
}
.marquee--slow .marquee__track { animation-duration: 70s; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--e-out), transform .9s var(--e-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--e-out), transform .8s var(--e-out);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
