/* DOE Media · TikTok Shop — DOE Live language: black, violet, drafting hairlines + crosshairs, DM Sans / Inter; a looping Blender render carries the hero */

@font-face { font-family: 'DM Sans'; src: url(assets/fonts/dmsans-latin.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(assets/fonts/inter-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #070708;
  --bg-2: #111113;
  --white: #F4F2ED;
  --mute: rgba(244, 242, 237, .62);
  --hair: rgba(244, 242, 237, .14);
  --accent: #6E5BFF;
  --accent-hi: #8576FF;
  --accent-soft: #BDB4FF;
  --accent-deep: #574AE2;
  --gut: clamp(20px, 4vw, 56px);
  --max: 1680px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, canvas { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.m-only { display: none; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.src { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s;
}
.btn i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: transform .45s var(--ease); }
.btn i svg { width: 18px; height: 18px; }
.btn:hover i { transform: rotate(-45deg); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent i { background: #fff; color: var(--accent); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-sm { height: 44px; gap: 10px; padding: 0 5px 0 18px; font-size: 14.5px; }
.btn-sm i { width: 34px; height: 34px; }
.btn-sm i svg { width: 15px; height: 15px; }

.link { position: relative; font-weight: 600; font-size: 16px; padding-block: 6px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .45s var(--ease); }
.link:hover::after { transform: scaleX(0); }

.label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }

/* ---------- header ---------- */

.hdr { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s; }
.hdr.is-scrolled { background: rgba(7, 7, 8, .96); border-color: var(--hair); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { height: 26px; width: auto; }
.brand-sep { width: 1px; height: 24px; background: rgba(244, 242, 237, .4); }
.brand-name { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--mute); white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--white); }

/* ---------- hero: pinned WebGL stage of Blender cutouts ---------- */

.hero { position: relative; height: 230vh; height: 230svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: #070708; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.gl.is-on { opacity: 1; }

/* keeps the copy readable over the stage: a soft left falloff + a floor band under the proof strip */
.shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, calc(.78 * var(--sa, 1))) 0%, rgba(7, 7, 8, calc(.4 * var(--sa, 1))) 34%, transparent 56%),
    linear-gradient(270deg, rgba(7, 7, 8, calc(.78 * var(--sb, 0))) 0%, rgba(7, 7, 8, calc(.4 * var(--sb, 0))) 34%, transparent 56%),
    linear-gradient(0deg, rgba(7, 7, 8, .9) 0%, rgba(7, 7, 8, 0) 26%),
    linear-gradient(180deg, rgba(7, 7, 8, .72) 0, rgba(7, 7, 8, 0) 140px);
}

.beats { position: relative; z-index: 2; height: 100%; }
.beat { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); padding-bottom: 150px; }
.beat-a { left: var(--gut); max-width: 760px; }
.beat-b { right: var(--gut); max-width: 640px; opacity: 0; visibility: hidden; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 15px; font-weight: 500; color: var(--mute); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(110, 91, 255, .22); }
.title { font-family: var(--display); font-size: clamp(44px, min(5.4vw, 9.6vh), 108px); line-height: 1; letter-spacing: -0.03em; }
.title > span { display: block; white-space: nowrap; }
.title .t-b { font-weight: 700; }
.title .t-l { font-weight: 300; letter-spacing: -0.024em; }
.lede { max-width: 32em; margin-top: 26px; font-size: clamp(17.5px, 1.05vw, 20px); line-height: 1.6; color: var(--mute); }
.ctas { display: flex; align-items: center; gap: 28px; margin-top: 34px; }

.h2 { font-family: var(--display); font-size: clamp(38px, min(4.2vw, 7.8vh), 84px); line-height: 1.02; letter-spacing: -0.028em; margin-top: 18px; }
.h2 > span { display: block; font-weight: 700; white-space: nowrap; }
.h2 .lt { font-weight: 300; letter-spacing: -0.022em; }
.pillars { margin-top: 30px; border-top: 1px solid var(--hair); }
.pillars li { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.pillars b { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--accent-soft); }

/* proof strip: drafting cells with crosshair corners */
.proof-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-left: auto; max-width: 1120px; border-top: 1px solid var(--hair); }
.proof > div { position: relative; padding: 18px 20px 26px; border-left: 1px solid var(--hair); }
.proof > div::before, .proof > div:last-child::after { content: ""; position: absolute; top: -5px; width: 9px; height: 9px; background: linear-gradient(var(--accent-soft), var(--accent-soft)) center / 1px 100% no-repeat, linear-gradient(var(--accent-soft), var(--accent-soft)) center / 100% 1px no-repeat; }
.proof > div::before { left: -5px; }
.proof > div:last-child::after { right: -5px; }
.proof dt { font-family: var(--display); font-size: clamp(22px, 1.9vw, 30px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; white-space: nowrap; }
.proof dd { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--mute); }

.scroll-cue { position: absolute; left: max(var(--gut), calc((100vw - var(--max)) / 2)); bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.scroll-cue span { position: relative; width: 1px; height: 34px; background: var(--hair); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent-soft); animation: cue 2.2s linear infinite; }
@keyframes cue { to { top: 100%; } }

/* intro: copy rises once the fonts are in */
.js .beat-a > *, .js .proof > div { opacity: 0; transform: translateY(18px); }
.ready .beat-a > *, .ready .proof > div { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.ready .beat-a > :nth-child(2) { transition-delay: .08s; }
.ready .beat-a > :nth-child(3) { transition-delay: .16s; }
.ready .beat-a > :nth-child(4) { transition-delay: .24s; }
.ready .proof > div:nth-child(1) { transition-delay: .4s; }
.ready .proof > div:nth-child(2) { transition-delay: .48s; }
.ready .proof > div:nth-child(3) { transition-delay: .56s; }
.ready .proof > div:nth-child(4) { transition-delay: .64s; }

/* ---------- squarish screens (tablets, narrow windows): stage on top, copy underneath, portrait loop ---------- */

.tall .shade { background: linear-gradient(0deg, rgba(7, 7, 8, .96) 0%, rgba(7, 7, 8, .9) 34%, rgba(7, 7, 8, 0) 60%), linear-gradient(180deg, rgba(7, 7, 8, .7) 0, rgba(7, 7, 8, 0) 120px); }
.tall .beat { top: auto; bottom: 0; left: var(--gut); right: var(--gut); max-width: 760px; justify-content: flex-end; padding: 0 0 clamp(120px, 16vh, 170px); }
.tall .title > span { white-space: normal; }
.tall .scroll-cue { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .proof { max-width: none; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .d-only { display: none; }
  .m-only { display: inline; }
  .brand img { height: 22px; }
  .brand-name { font-size: 16px; }
  .brand { gap: 11px; }
  .nav { gap: 12px; }

  .stage { min-height: 560px; }
  .shade { background: linear-gradient(0deg, rgba(7, 7, 8, .96) 0%, rgba(7, 7, 8, .9) 30%, rgba(7, 7, 8, 0) 56%), linear-gradient(180deg, rgba(7, 7, 8, .7) 0, rgba(7, 7, 8, 0) 120px); }
  .beat { top: auto; bottom: 0; left: var(--gut); right: var(--gut); max-width: none; justify-content: flex-end; padding: 0 0 128px; }
  .eyebrow { margin-bottom: 12px; font-size: 13.5px; }
  .title { font-size: clamp(32px, 9.4vw, 44px); }
  .title > span { white-space: normal; }
  .lede { margin-top: 14px; font-size: 15.5px; }
  .ctas { margin-top: 20px; gap: 20px; }
  .ctas .link { display: none; }
  .ctas .btn { height: 52px; font-size: 15px; padding-left: 20px; }
  .ctas .btn i { width: 38px; height: 38px; }
  .h2 { font-size: clamp(30px, 8.6vw, 40px); margin-top: 12px; }
  .label { font-size: 11.5px; }
  .pillars { margin-top: 14px; }
  .pillars li { gap: 14px; padding: 7px 0; font-size: 15px; }
  .pillars b { font-size: 11px; }

  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div { padding: 10px 12px 12px; }
  .proof > div:nth-child(n+3) { display: none; }
  .proof > div:nth-child(2)::after { content: ""; position: absolute; top: -5px; right: -5px; width: 9px; height: 9px; background: linear-gradient(var(--accent-soft), var(--accent-soft)) center / 1px 100% no-repeat, linear-gradient(var(--accent-soft), var(--accent-soft)) center / 100% 1px no-repeat; }
  .proof dt { font-size: 20px; }
  .proof dd { font-size: 12px; margin-top: 3px; }
  .scroll-cue { display: none; }
}

/* ---------- TikTok two-tone: cyan/pink offset on the bold headline lines (glitches in, then settles) ---------- */

:root { --tt-cyan: #25F4EE; --tt-pink: #FE2C55; }
.title .t-b, .h2 > span:first-child { text-shadow: -0.035em 0 rgba(37, 244, 238, .5), 0.035em 0 rgba(254, 44, 85, .5); }
.title .t-b { text-shadow: -2px 0 rgba(37, 244, 238, .55), 2px 0 rgba(254, 44, 85, .55); }
.h2 > span:first-child { text-shadow: -1.5px 0 rgba(37, 244, 238, .5), 1.5px 0 rgba(254, 44, 85, .5); }
.ready .title .t-b { animation: tt-glitch .9s steps(1, end) .25s both; }
@keyframes tt-glitch {
  0%   { text-shadow: -9px 0 rgba(37, 244, 238, .9), 9px 0 rgba(254, 44, 85, .9); transform: translateX(3px); }
  12%  { text-shadow: 6px 0 rgba(37, 244, 238, .9), -6px 0 rgba(254, 44, 85, .9); transform: translateX(-2px); }
  24%  { text-shadow: -4px 0 rgba(37, 244, 238, .8), 4px 0 rgba(254, 44, 85, .8); transform: none; }
  36%  { text-shadow: 3px 0 rgba(37, 244, 238, .7), -3px 0 rgba(254, 44, 85, .7); }
  50%, 100% { text-shadow: -2px 0 rgba(37, 244, 238, .55), 2px 0 rgba(254, 44, 85, .55); transform: none; }
}
.dot { background: linear-gradient(135deg, var(--tt-cyan) 0 50%, var(--tt-pink) 50% 100%); box-shadow: -2px 0 8px rgba(37, 244, 238, .45), 2px 0 8px rgba(254, 44, 85, .45); }
.calm .title .t-b { animation: none; }
