/* ==========================================================================
   FOLD FANG: coming soon
   The page is a sheet of paper. The photo (white background) is blended in with
   multiply, so it needs no cut-out. Do NOT put transform/opacity/filter on any
   ancestor of .mark or the blend stops working.
   ========================================================================== */
:root {
  --paper: #f2efe7;
  --ink: #0d0d0c;
  --red: #d92d27;
  --mute: #7a776f;
  --gutter: max(20px, calc((100vw - 1280px) / 2));
  --f-display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);
  --mx: 0; --my: 0; --cx: 58%;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .28  0 0 0 0 .24  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the crease: half the sheet sits in soft shadow, and it follows the cursor */
.crease {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent calc(var(--cx) - 7%), rgba(255, 255, 255, .55) var(--cx), transparent calc(var(--cx) + .6%)),
    linear-gradient(115deg, transparent var(--cx), rgba(60, 50, 30, .075) calc(var(--cx) + .6%));
}

/* ---------- Top bar ---------- */
.top { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 24px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.fang { width: 14px; height: 19px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); animation: bite 2.8s var(--snap) infinite; }
@keyframes bite { 0%, 72%, 100% { transform: translateY(0); } 82% { transform: translateY(4px) scaleY(1.15); } }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.top .mono { color: var(--mute); text-align: right; line-height: 1.7; }

/* ---------- Stage ---------- */
/* Two columns: copy left (7fr), logo right (5fr). Both share one vertical centre line,
   the logo's right edge sits on the same gutter line as the top bar and the status block. */
.stage {
  position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(20px, 3vw, 48px); align-items: center;
  padding: clamp(8px, 2vh, 24px) var(--gutter) clamp(24px, 5vh, 56px);
}
.title { grid-column: 1; position: relative; z-index: 2; }
.eyebrow { display: block; margin-bottom: clamp(14px, 3vh, 28px); color: var(--mute); }
.eyebrow::before { content: "▾ "; color: var(--red); }
h1 {
  margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: min(11vw, 26vh, 176px); line-height: .8; letter-spacing: -.07em;
}
.row { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.1em; }
.row > span { display: block; transform: translateY(112%); animation: up 1.1s var(--ease) forwards; animation-delay: calc(.25s + var(--i, 0) * .14s); }
@keyframes up { to { transform: none; } }
h1 em { font-style: normal; color: var(--red); }

/* the mark: outermost element carries the blend, children carry motion */
.mark {
  grid-column: 2; align-self: center; justify-self: end; z-index: 3;
  width: 100%; max-width: 600px;
  /* clear space on the three sides that face other content; right edge stays on the gutter */
  padding: clamp(16px, 3vw, 44px) 0 clamp(16px, 3vw, 44px) clamp(16px, 3vw, 44px);
  mix-blend-mode: multiply;
  transform-origin: 50% 100%; opacity: 0;
  animation: unfold 1.5s var(--ease) .5s forwards;
}
@keyframes unfold {
  from { opacity: 0; transform: perspective(1200px) rotateX(78deg) translateY(40px) scale(.92); }
  to   { opacity: 1; transform: perspective(1200px) rotateX(0) translateY(0) scale(1); }
}
.tilt {
  transform: perspective(1000px) translate3d(calc(var(--mx) * 16px), calc(var(--my) * 10px), 0)
             rotateY(calc(var(--mx) * 11deg)) rotateX(calc(var(--my) * -9deg));
  will-change: transform;
}
.mark img, .mark svg { display: block; width: 100%; height: auto; max-height: 58vh; object-fit: contain; object-position: right center; animation: hover 8s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-14px) rotate(-.6deg); } }

/* ---------- Footer row ---------- */
.foot {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
  padding: 0 var(--gutter) clamp(20px, 3.4vh, 34px);
}
.pitch { max-width: 420px; }
.pitch p { margin: 0 0 20px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: #3b3a36; }
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform .25s var(--snap), background .2s;
}
.btn::after { content: "→"; transition: transform .25s var(--snap); }
.btn:hover { --bg: var(--red); --fg: #fff; transform: translate(4px, -4px); }
.btn:hover::after { transform: translateX(6px); }

.status { min-width: min(300px, 44vw); }
.status .mono { display: flex; justify-content: space-between; color: var(--mute); margin-bottom: 10px; }
.status b { color: var(--ink); font-weight: 700; }
.status b::after { content: "_"; color: var(--red); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bar { height: 12px; background: repeating-linear-gradient(90deg, rgba(0,0,0,.13) 0 12px, transparent 12px 16px); overflow: hidden; }
.bar i {
  display: block; width: 34%; height: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 16px);
  animation: crawl 3.6s var(--snap) infinite alternate;
}
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(194%); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 6; background: var(--ink); color: var(--paper); overflow: hidden; transform: translateY(100%); animation: rise .9s var(--ease) 1.2s forwards; }
@keyframes rise { to { transform: none; } }
.ticker-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { padding: 15px 26px; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: -.03em; text-transform: uppercase; }
.ticker-track span:nth-child(4n+1) { color: var(--red); }
.ticker-track i { flex: none; align-self: center; width: 12px; height: 17px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .top .mono { display: none; }
  .stage { grid-template-columns: 1fr; grid-template-rows: auto auto; row-gap: 12px; align-items: start; padding-top: 4px; }
  .mark { grid-column: 1; grid-row: 1; justify-self: end; width: min(68vw, 380px); padding: 8px 0 8px 8px; }
  .mark img, .mark svg { max-height: 40vh; }
  .title { grid-column: 1; grid-row: 2; }
  h1 { font-size: min(21vw, 19vh); }
  .foot { flex-direction: column; align-items: stretch; gap: 24px; }
  .status { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .tilt { transform: none; }
}
