/* DOE Creative Community, v0.6 redesign. Lives inside the block's shadow root, so theme CSS can't
   reach in and none of this leaks out. Type: Anton (display caps), DM Sans (doemedia.com's face),
   Instrument Serif italic (accents), JetBrains Mono (labels).
   Performance rule: anything that moves animates only transform or opacity. */

:host {
  all: initial;
  display: block;
  visibility: visible !important;
}

.doe-cc {
  --bg: #060509;
  --ink: #ffffff;
  --ink-2: #d9d9e1;
  --muted: #8f8d9c;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --brand: #574ae2;
  --lavender: #cdc8ff;
  --navy-ink: #070055;
  --purple-top: #6a5df2;
  --purple-low: #4a3dd6;
  --purple-deep: #1f1569; /* where the hero ends and the stats begin */
  --danger: #ff8a8a;
  --success: #8ff0c2;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --sticky-header: 84px; /* the site header once it turns sticky */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  overflow: hidden;
  overflow: clip; /* clip, not hidden: hidden would break the pinned reel and sticky columns */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.doe-cc *, .doe-cc *::before, .doe-cc *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }

/* ---------- Shared type ---------- */

.label {
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0;
  color: var(--ink-2);
}
.label-n { color: var(--lavender); margin-right: 6px; }

.h2 {
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 em { font-size: 1.08em; color: var(--lavender); letter-spacing: -0.02em; }

.arrow { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px 18px 30px;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-light { background: #fff; color: #08061a; }
.btn-light:hover { background: var(--lavender); }
.btn:hover .arrow { transform: translateX(4px); }


/* ---------- Glow button: doemedia.com's "Work with DOE" button (pointer light, app.js sets --x/--y)
   inside a wrapper carrying the site's spinning conic halo (spinGlow) ---------- */

.glow-wrap { position: relative; display: inline-flex; isolation: isolate; border-radius: 999px; }
.glow-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 999px;
  /* doemedia.com's halo colours. It breathes with opacity + scale only: the blurred layer is drawn
     once and the graphics card animates it (animating the gradient itself re-blurred it every frame). */
  background: linear-gradient(90deg, #574ae2, #7b5ef8 25%, #9d8cff 50%, #7b5ef8 75%, #574ae2);
  filter: blur(8px);
  will-change: transform, opacity;
  animation: doecc-glow-breathe 2.2s ease-in-out infinite alternate;
  pointer-events: none;
}
.glow-btn {
  --x: 50%;
  --y: 50%;
  --glow-core: rgba(255, 255, 255, 0.9);
  --glow-color: rgba(192, 132, 252, 0.25);
  --glow-color-strong: rgba(192, 132, 252, 0.55);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 42px;
  border: none;
  border-radius: 130px;
  background: radial-gradient(50% 50% at 50% 50%, #fff 0%, #cdc8ff 100%);
  box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.35);
  color: #070055;
  font: 600 16px/1.2 "Inter", var(--sans);
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: transform 0.25s;
}
.glow-btn:hover { transform: translateY(-1px); }
.glow-btn::before,
.glow-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.glow-btn::before {
  z-index: 1;
  background:
    radial-gradient(85px 85px at var(--x) var(--y), var(--glow-core) 0%, rgba(255, 255, 255, 0.3) 45%, transparent 70%),
    radial-gradient(120px 120px at var(--x) var(--y), var(--glow-color-strong) 0%, transparent 75%);
  mix-blend-mode: screen;
}
.glow-btn::after {
  z-index: 0;
  inset: -12px;
  background: radial-gradient(200px 200px at var(--x) var(--y), var(--glow-color) 0%, transparent 80%);
  filter: blur(22px);
}
.glow-btn:hover::before,
.glow-btn:hover::after { opacity: 1; }
.glow-btn .btn-label, .glow-btn .icon-box, .glow-btn .btn-spinner { position: relative; z-index: 2; }
.glow-btn .icon-box { display: inline-flex; }
.glow-btn .icon-box img { display: block; width: 22px; height: 22px; }
.glow-wide { display: flex; width: 100%; margin-top: 6px; }
@keyframes doecc-glow-breathe {
  from { opacity: 0.7; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.04, 1.12); }
}
/* off-screen glows don't animate (motion.js adds .is-idle) */
.glow-wrap.is-idle::before, .form-wrap.is-idle .fx-ring i, .form-wrap.is-idle .fx-halo i, .closer.is-idle .closer-glow { animation-play-state: paused; }
.glow-wide .glow-btn { width: 100%; height: 60px; padding-block: 0; font-size: 17px; }
@keyframes doecc-spin-glow { to { transform: rotate(360deg); } }

/* ---------- Standalone nav (blank template only) ---------- */

.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding-block: 22px; max-width: none; }
.logo img { height: 34px; width: auto; }
.nav-cta { padding: 11px 18px; border-radius: 999px; background: #fff; color: #08061a; font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- Hero: centered copy over a WebGL theater of the ads (video deck as fallback) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--doe-cc-offset, 0px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(45% 38% at 50% 34%, rgba(170, 160, 255, 0.45), transparent 72%),
    radial-gradient(70% 34% at 50% 72%, rgba(123, 94, 248, 0.3), transparent 75%),
    linear-gradient(180deg, var(--purple-top) 0%, var(--purple-low) 44%, #2c1e8e 68%, var(--purple-deep) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07; /* plain overlay: a blend mode here re-composited the hero on every frame */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding-top: clamp(64px, 7vw, 116px); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
/* Thin line under the site header */
/* Only the last strip of the hero (the reflections) settles into the deep purple the stats start on; the screens stay bright */
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  background: linear-gradient(180deg, rgba(31, 21, 105, 0), var(--purple-deep));
  pointer-events: none;
}
.hero-rule { position: absolute; z-index: 3; left: 0; right: 0; top: var(--doe-cc-offset, 0px); height: 1px; background: rgba(255, 255, 255, 0.5); pointer-events: none; }


.hero-copy { display: grid; justify-items: center; text-shadow: 0 2px 24px rgba(20, 10, 80, 0.35); }
.hero-title-wrap { position: relative; display: inline-block; }
.badge { position: absolute; z-index: 2; pointer-events: none; }
.badge-tag {
  top: calc(-1 * clamp(40px, 4.4vw, 64px));
  left: calc(-1 * clamp(0px, 1.5vw, 24px));
  rotate: -7deg; /* the rotate property, so the reveal's transform reset can't flatten it */
  transform-origin: left bottom;
  text-align: left;
}
.tag-text {
  display: block;
  font: 400 clamp(26px, 3.3vw, 46px)/1 "Rubik Spray Paint", var(--sans);
  color: #fff;
  text-shadow: 0 0 14px rgba(205, 200, 255, 0.75), 0 0 2px #fff;
  white-space: nowrap;
}
.tag-swoosh { width: 0; min-width: 100%; height: auto; margin-top: -6px; overflow: visible; } /* as wide as the words, never wider */
.tag-swoosh path { fill: none; stroke: var(--lavender); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 330; stroke-dashoffset: 0; }
.is-motion .badge[data-reveal] { opacity: 0; transform: none; transition: none; animation: doecc-fade-failsafe 0.6s ease 4s forwards; }
.js-ready .badge-tag[data-reveal].in { animation: doecc-spray 0.9s steps(14, end) 0.85s both; }
.js-ready .badge-tag[data-reveal].in .tag-swoosh path { animation: doecc-swoosh 0.6s var(--ease) 1.65s both; }
@keyframes doecc-spray {
  0% { opacity: 1; clip-path: inset(-30% 100% -30% -10%); }
  100% { opacity: 1; clip-path: inset(-30% -10% -30% -10%); }
}
@keyframes doecc-swoosh { from { stroke-dashoffset: 330; } to { stroke-dashoffset: 0; } }
@keyframes doecc-fade-failsafe { to { opacity: 1; } }
.hero-title {
  max-width: 1000px;
  font: 500 clamp(46px, min(6.6vw, 11vh), 98px)/0.96 var(--sans);
  letter-spacing: -0.048em;
  text-wrap: balance;
  text-shadow: none; /* the line masks would clip a shadow into visible boxes */
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.03em; margin-bottom: -0.03em; }
.hero-title .line-in { display: inline-block; }
.hero-title em { font-size: 1.06em; letter-spacing: -0.01em; line-height: 0.96; }
.hero-title .dot { color: var(--lavender); }
.hero-lede { max-width: 560px; margin-top: clamp(14px, 1.6vw, 22px); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; justify-content: center; margin-top: 20px; }

/* Stage: the theater canvas fills it; without WebGL the deck sits in it instead */
.hero-stage { position: relative; display: grid; place-items: center; margin-top: clamp(10px, 1.6vw, 24px); padding-block: 16px 8px; }
.hero:not(.is-theater) .hero-stage { order: 2; }
.hero:not(.is-theater) { display: flex; flex-direction: column; }
.hero:not(.is-theater) .hero-inner { order: 1; }
.hero.is-theater { height: max(800px, min(118vh, 1120px)); height: max(800px, min(118svh, 1120px)); }
.hero.is-theater .hero-stage { position: absolute; inset: var(--doe-cc-offset, 0px) 0 0; z-index: 1; margin: 0; padding: 0; }
.theater-stage { display: none; }
.hero.is-theater .theater-stage {
  display: block;
  position: absolute;
  inset: 0;
  /* soft fade at both sides */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.theater-stage canvas { display: block; width: 100%; height: 100%; }
.theater-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero.is-theater .deck { display: none; }

/* Deck (fallback): fanned 4:5 video cards; the top one swipes off every few seconds */
.deck {
  position: relative;
  width: min(70vw, clamp(220px, 22vw, 320px));
  aspect-ratio: 4 / 5;
  margin-bottom: 40px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.deck-card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --s: 1;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #241a7a;
  box-shadow: 0 30px 60px -24px rgba(10, 4, 60, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(var(--s));
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.deck-card.is-leaving { transition: transform 0.55s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.45s ease-in; }
.deck-card.is-reset { transition: none; }
.deck-card video { width: 100%; height: 100%; object-fit: cover; }
.deck-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font: 500 12px/1 var(--sans);
  color: rgba(255, 255, 255, 0.85);
}
.deck-tag b { color: #fff; font-weight: 500; }

/* ---------- Stats: one horizontal strip right under the hero, on the hero's deep purple ---------- */

.stats { position: relative; isolation: isolate; padding-block: clamp(36px, 4vw, 64px) clamp(70px, 8vw, 120px); }
.stats::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-deep) 35%, var(--bg) 100%);
}
.stats-head { display: flex; justify-content: space-between; gap: 16px; }
.stats-note { color: var(--muted); }
.stat-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border-block: 1px solid var(--line-2); }
.stat-rows li {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2vw, 28px) clamp(14px, 1.8vw, 26px) clamp(20px, 2.2vw, 30px);
  overflow: hidden;
}
.stat-rows li + li { border-left: 1px solid var(--line-2); }
/* a purple fill rises on hover */
.stat-rows li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #574ae2, #7b5ef8);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.stat-rows li:hover::before { transform: scaleY(1); }
.sr-n { font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--lavender); transition: color 0.4s; }
.stat-v { font: 400 clamp(40px, 4.4vw, 80px)/0.9 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-l { font: 500 clamp(15px, 1.2vw, 18px)/1.2 var(--sans); letter-spacing: -0.01em; color: var(--ink-2); }
.sr-l em { font-size: 1.2em; color: var(--lavender); transition: color 0.4s; }
.stat-rows li:hover .sr-n, .stat-rows li:hover .sr-l em { color: #fff; }

/* ---------- Manifesto ---------- */

.manifesto { padding-block: clamp(100px, 13vw, 190px); }
.manifesto-text {
  max-width: 1180px;
  margin-top: 30px;
  font-size: clamp(30px, 4.3vw, 66px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-indent: clamp(0px, 16vw, 230px);
}
.manifesto-text em { color: var(--lavender); font-size: 1.06em; letter-spacing: -0.02em; }
.sw { opacity: var(--o, 1); }
.is-motion [data-scrub] .sw { --o: 0.16; transition: opacity 0.25s linear; }

/* ---------- How it works ---------- */

.how { padding-bottom: clamp(100px, 12vw, 170px); }
.how-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.how-head .h2 { max-width: 760px; }
.how-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.how-list li { padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2.4vw, 36px) 0; }
.how-list li:first-child { padding-left: 0; }
.how-list li + li { border-left: 1px solid var(--line); }
.how-n { display: block; font: 400 clamp(84px, 9.4vw, 150px)/0.82 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--lavender); }
.how-list h3 { margin-top: 26px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.how-list p { margin-top: 8px; max-width: 320px; font-size: 16px; color: var(--muted); }

/* ---------- UGC spotlight ---------- */

.ugc {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding-bottom: clamp(90px, 11vw, 150px);
}
.ugc-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1446;
}
.ugc-frame { position: absolute; inset: -8% 0; }
.ugc-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
/* Play / pause: the video can be stopped (WCAG 2.2.2, moving content) */
.play-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.play-btn:hover { background: rgba(0, 0, 0, 0.85); }
.play-btn:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.play-btn svg { width: 18px; height: 18px; fill: currentColor; }
.play-btn .i-play { display: none; }
.play-btn.is-paused .i-play { display: block; }
.play-btn.is-paused .i-pause { display: none; }

.ugc-copy .h2 { margin-top: 18px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 44px); margin-top: clamp(30px, 4vw, 48px); border-top: 1px solid var(--line); }
.spec li { padding-block: 22px; border-bottom: 1px solid var(--line); }
.spec h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.spec p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Formats ---------- */

.formats { padding-bottom: clamp(90px, 11vw, 150px); }
.formats-list { display: flex; flex-wrap: wrap; margin-top: 24px; font: 500 clamp(34px, 4.8vw, 78px)/1.08 var(--sans); letter-spacing: -0.045em; }
.formats-list li { color: rgba(255, 255, 255, 0.2); transition: color 0.4s var(--ease); }
.formats-list li:not(:last-child)::after { content: "/"; padding-inline: 0.22em; font: italic 400 0.62em/1 var(--serif); color: var(--lavender); vertical-align: 0.18em; }
.formats-list li.is-on, .formats-list li:hover { color: #fff; }

/* Hover a format: a clip follows the cursor */
.formats { position: relative; }
.formats-list li { cursor: default; }
.fmt-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: clamp(180px, 15vw, 240px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #16131f;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.6);
  transition: opacity 0.3s var(--ease);
}
.fmt-preview.is-on { opacity: 1; }
.fmt-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s linear; }
.fmt-preview video.is-on { opacity: 1; }
@media (hover: none) { .fmt-preview { display: none; } }

/* ---------- Giant band ---------- */

.band { overflow: hidden; padding-block: clamp(10px, 1.2vw, 16px); border-block: 1px solid var(--line); background: var(--brand); }
.tape { overflow: hidden; white-space: nowrap; }
.tape-track { display: flex; width: max-content; will-change: transform; }
.band-set { display: flex; align-items: center; flex: none; }
.band-set span { font: 600 clamp(30px, 3.8vw, 62px)/1.1 var(--sans); letter-spacing: -0.04em; padding-block: 0.02em 0.08em; }
.band-set .o { color: transparent; -webkit-text-stroke: 1.2px #fff; }
.band-set i { padding-inline: clamp(14px, 1.8vw, 28px); font-style: normal; font-size: clamp(18px, 2vw, 32px); color: var(--lavender); }

/* ---------- Apply ---------- */

.apply {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  padding-block: clamp(90px, 11vw, 160px) clamp(110px, 13vw, 180px);
}
.apply-copy { position: sticky; top: calc(var(--sticky-header) + 32px); }
.apply-title { margin-top: 20px; font: 500 clamp(46px, 5.4vw, 92px)/0.98 var(--sans); letter-spacing: -0.048em; }
.apply-title em { display: block; font-size: 1.06em; letter-spacing: -0.01em; line-height: 1.02; color: var(--lavender); }
.apply-lede { max-width: 420px; margin-top: 26px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* the original page's soft purple light behind the form */
.form-wrap::before {
  content: "";
  position: absolute;
  inset: -8% -14%;
  z-index: -3;
  background: radial-gradient(closest-side, rgba(87, 74, 226, 0.45), transparent);
  pointer-events: none;
}
.form-wrap {
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 22px;
}
/* Orbiting border light: a rotating conic layer, clipped to a 1.5px ring by the panel on top of it.
   The halo is the same light, blurred, behind everything: it spills out as a glow. */
.fx-ring, .fx-halo { position: absolute; border-radius: 22px; overflow: hidden; pointer-events: none; }
.fx-ring { inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.1); }
.fx-ring::after { content: ""; position: absolute; inset: 2px; border-radius: 20px; background: linear-gradient(180deg, #121019, #0b0a10); }
.fx-halo { inset: -4px; z-index: -2; opacity: 1; filter: blur(26px); }
.fx-ring i, .fx-halo i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(200%, 1200px);
  aspect-ratio: 1;
  background: conic-gradient(transparent 0 50%, rgba(123, 94, 248, 0.95) 66%, #cdc8ff 75%, #fff 78.5%, #6fd8ff 83%, rgba(87, 74, 226, 0.7) 90%, transparent 97%);
  animation: doecc-orbit 5.5s linear infinite;
}
.fx-halo i { background: conic-gradient(transparent 0 48%, #7b5ef8 66%, #cdc8ff 77%, #6fd8ff 84%, #574ae2 91%, transparent 97%); }
@keyframes doecc-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.card-head { display: grid; gap: 6px; padding-bottom: 22px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.card-sub { font-size: 15px; color: var(--muted); }
.card-title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.apply-card { display: grid; gap: 18px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field > label:not(.consent) { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.opt { margin-left: 6px; font-weight: 400; color: var(--muted); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #07060b;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap:hover { border-color: rgba(255, 255, 255, 0.32); }
.input-wrap:focus-within { border-color: var(--lavender); box-shadow: 0 0 0 4px rgba(205, 200, 255, 0.14); }
.input-wrap input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 54px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: 500 17px/1 var(--sans);
  outline: none;
}
.input-wrap input::placeholder { color: #55535f; font-weight: 400; }
.has-prefix input { padding-left: 2px; }
.prefix { padding-left: 16px; font: 500 17px/1 var(--sans); color: var(--muted); }

.hint { font-size: 12.5px; color: var(--muted); }
.handle-preview { justify-self: start; max-width: 100%; overflow: hidden; font-size: 12.5px; color: var(--lavender); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.handle-preview:hover { text-decoration: underline; }
.err { font-size: 13px; color: var(--danger); }
.err:empty { display: none; }
.field.invalid .input-wrap { border-color: var(--danger); }
.field.invalid .input-wrap:focus-within { box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.14); }
.field.invalid .hint { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.consent input { position: absolute; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.consent .box { width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--line-2); border-radius: 3px; transition: background-color 0.2s, border-color 0.2s; }
.consent input:checked + .box {
  border-color: var(--lavender);
  background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23070055' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.consent input:focus-visible + .box { outline: 2px solid var(--lavender); outline-offset: 3px; }
.field.invalid .consent .box { border-color: var(--danger); }
.consent a { color: var(--lavender); }

.btn-spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(7, 0, 85, 0.25); border-top-color: var(--navy-ink); border-radius: 50%; animation: doecc-spin 0.8s linear infinite; }
.is-sending .glow-btn { cursor: progress; }
.is-sending .glow-btn .icon-box { display: none; }
.is-sending .btn-spinner { display: block; }

.form-status { font-size: 14px; text-align: center; color: var(--danger); }
.form-status:empty { display: none; }

.success { justify-items: start; align-content: center; gap: 18px; padding-block: 24px; outline: none; }
.success-title { font: 500 clamp(34px, 3.6vw, 54px)/1.02 var(--sans); letter-spacing: -0.045em; }
#s-handle { color: var(--lavender); text-transform: none; overflow-wrap: anywhere; }
.success-sub { max-width: 440px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.success .btn { margin-top: 6px; }
.check { width: 60px; height: 60px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke: var(--lavender); stroke-dasharray: 151; stroke-dashoffset: 151; animation: doecc-draw 0.7s var(--ease) forwards; }
.check path { stroke: var(--success); stroke-dasharray: 36; stroke-dashoffset: 36; animation: doecc-draw 0.45s 0.45s var(--ease) forwards; }

/* ---------- Closer: last call, links back up to the form ---------- */

.closer { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(110px, 13vw, 190px); text-align: center; }
.closer-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -30%;
  width: min(1200px, 120vw);
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(87, 74, 226, 0.55), transparent);
  pointer-events: none;
}
.closer-inner { display: grid; justify-items: center; gap: 30px; }
.closer-title { max-width: 1000px; font: 500 clamp(40px, 5.2vw, 84px)/1 var(--sans); letter-spacing: -0.045em; text-wrap: balance; }
.closer-title em { display: block; font-size: 1.07em; letter-spacing: -0.01em; line-height: 1.05; color: var(--lavender); }

/* Icon reel: tiles loop sideways as the page scrolls; motion.js sets each tile's position, size and opacity */
.icon-reel { position: relative; width: min(520px, 92vw); height: 96px; margin-bottom: 4px; }
.icon-reel li {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  will-change: transform, opacity;
}
.icon-reel li { transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s; }
/* soft purple bloom behind each tile, shown on the centre one */
.icon-reel li::before {
  content: "";
  position: absolute;
  inset: -70%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 94, 248, 0.75), rgba(87, 74, 226, 0.28) 55%, transparent);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.icon-reel li.is-main {
  border-color: rgba(205, 200, 255, 0.85);
  background: linear-gradient(180deg, rgba(123, 94, 248, 0.75), rgba(72, 58, 210, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 18px rgba(205, 200, 255, 0.35),
    0 0 0 1px rgba(205, 200, 255, 0.25),
    0 0 24px rgba(155, 130, 255, 0.75),
    0 0 70px rgba(123, 94, 248, 0.6);
}
.icon-reel li.is-main::before { opacity: 1; }
.icon-reel li.is-main svg { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)); }
.icon-reel svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.closer-note { font-size: 15px; color: var(--muted); }

/* ---------- Phones: sticky apply bar ---------- */

.mobile-cta { display: none; }

/* ---------- Footer (standalone page only) ---------- */

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer img { height: 24px; width: auto; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { text-decoration: none; }

/* ---------- Reveals: opacity + transform only, each plays once ---------- */
/* .is-motion is in the markup so the first paint is already in the start state.
   A CSS failsafe shows everything after 4 s if the script never runs; .js-ready cancels it. */

[data-delay="6"] { --d: 6; }
[data-delay="7"] { --d: 7; }

.is-motion [data-reveal],
.is-motion [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms + var(--i, 0) * 80ms);
  animation: doecc-failsafe 0.6s ease 4s forwards;
}
.is-motion [data-reveal].in,
.is-motion [data-stagger].in > * { opacity: 1; transform: none; }

/* Hero headline: each line rises out of its own mask */
.is-motion .hero-title .line-in { transform: translate3d(0, 108%, 0); transition: transform 1.2s var(--ease); animation: doecc-failsafe 0.6s ease 4s forwards; }
.is-motion .hero-title .line:nth-child(2) .line-in { transition-delay: 0.09s; }
.is-motion .hero-title .line:nth-child(3) .line-in { transition-delay: 0.18s; }
.is-motion .hero-title.in .line-in { transform: none; }

/* UGC video: wipes open from a smaller window, the clip settles inside */
.is-motion .ugc-media[data-reveal] { opacity: 1; transform: none; clip-path: inset(14% 10% 14% 10%); transition: clip-path 1.3s var(--ease); }
.is-motion .ugc-media[data-reveal].in { clip-path: inset(0); }
.is-motion .ugc-media video { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.is-motion .ugc-media.in video { transform: scale(1.04); }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.07em 0.14em; margin: 0 -0.07em -0.14em; }
.w > span { display: inline-block; }
.is-motion [data-split] .w > span { transform: translate3d(0, 105%, 0); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms + var(--wi, 0) * 45ms); }
.is-motion [data-split].in .w > span { transform: none; }

.js-ready [data-reveal],
.js-ready [data-stagger] > *,
.js-ready .hero-title .line-in { animation: none; }

/* ---------- Keyframes ---------- */

@keyframes doecc-spin { to { transform: rotate(360deg); } }
@keyframes doecc-draw { to { stroke-dashoffset: 0; } }
@keyframes doecc-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.6); opacity: 0; } }
@keyframes doecc-cue { from { transform: translateY(-14px); } to { transform: translateY(38px); } }
@keyframes doecc-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .is-motion [data-reveal],
  .is-motion [data-stagger] > *,
  .is-motion [data-split] .w > span,
  .is-motion .hero-title .line-in { opacity: 1; transform: none; transition: none; animation: none; }
  .is-motion [data-scrub] .sw { --o: 1; }
  .is-motion .ugc-media[data-reveal], .is-motion .ugc-media video { clip-path: none; transform: none; }
  .scroll-cue i::after, .fx-ring i, .fx-halo i, .glow-wrap::before { animation: none; }
  .is-motion .badge[data-reveal], .js-ready .badge[data-reveal].in, .js-ready .badge-tag[data-reveal].in .tag-swoosh path { opacity: 1; animation: none; clip-path: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
}

@media (max-width: 860px) {
  .stat-rows { grid-template-columns: 1fr 1fr; }
  .stat-rows li:nth-child(3) { border-left: 0; }
  .stat-rows li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .apply, .ugc { grid-template-columns: 1fr; }
  .apply-copy { position: static; }
  .ugc-media { max-width: 460px; }
  .how-list { grid-template-columns: 1fr; }
  .how-list li, .how-list li:first-child { display: grid; grid-template-columns: 84px 1fr; /* fixed, so all three steps line up */ column-gap: 22px; padding: 24px 0; border-left: 0; }
  .how-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .how-n { grid-row: span 2; font-size: 76px; }
  .how-list h3 { margin-top: 2px; }
}

@media (max-width: 768px) {
  .hero { padding-top: calc(var(--doe-cc-offset-mobile, var(--doe-cc-offset, 0px)) + 4px); }
  .doe-cc { --sticky-header: 76px; }
}

@media (max-width: 640px) {
  .hero-rule { display: none; }
  .apply { padding-bottom: 56px; }
  .manifesto { padding-top: 64px; }
  .hero-inner { padding-top: 58px; }
  .badge-tag { left: 0; }
  .hero-title { font-size: clamp(42px, 11.6vw, 64px); }
  .hero.is-theater { height: max(780px, min(112svh, 920px)); } /* room for the copy above the ring, even on short Safari viewports */
  .spec { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .manifesto-text { text-indent: 0; }
  .footer-links { width: 100%; margin-left: 0; }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding: 0 20px 0 24px;
    border-radius: 999px;
    background: var(--lavender);
    color: var(--navy-ink);
    font: 600 17px/1 var(--sans);
    text-decoration: none;
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7);
    transform: translateY(160%);
    transition: transform 0.5s var(--ease);
  }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta-sub { margin-left: auto; font: 500 13px/1 var(--sans); opacity: 0.7; }
}
