/* ============================================================================
   Serlow — kinetic elements
   ----------------------------------------------------------------------------
   Element set adapted from the Zevaris AI site, re-coloured for Serlow:
   Zevaris lime → Serlow amber, chrome black → ink, grey ground → paper.
   Uses the tokens from styles.css and motion.css only.
   ========================================================================== */

/* ───────────────────── ticker (top strip) ───────────────────── */

.ticker { background: var(--dark); color: var(--dark-text); overflow: hidden; white-space: nowrap;
  font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; padding-block: 9px; }
.marquee__track { display: inline-flex; will-change: transform; }
.mq-item { display: inline-flex; align-items: center; }
.tk-star { font-style: normal; color: var(--amber); margin-inline: 22px; }

/* ───────────────────── spinning badge (hero) ───────────────────── */

.hero-copy { position: relative; }
.badge-spin { position: absolute; right: 2%; top: -26px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--amber); display: grid; place-items: center;
  box-shadow: 4px 5px 0 var(--ink); border: 1.5px solid var(--ink); }
.badge-spin img { width: 22px; height: auto; position: relative; z-index: 1; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  animation: ring-spin 18s linear infinite; }
.badge-spin:hover .ring { animation-duration: 5s; }
.ring text { font: 600 12px var(--mono); letter-spacing: .14em; fill: var(--ink); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.ring { transform-origin: 50% 50%; }
/* On phones the hero is centred: the badge sits in the flow above the
   eyebrow instead of floating over it. */
@media (max-width: 800px) {
  .badge-spin { position: relative; top: auto; right: auto; width: 80px; height: 80px; margin: 0 auto 22px; }
}

/* ───────────────────── hero annotations + depth ───────────────────── */

.annot { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 4px;
  font: 500 9px/1.2 var(--mono); letter-spacing: .2em; color: var(--ink); text-transform: uppercase; }
.annot i { display: block; width: 16px; height: 1.5px; background: var(--ink); margin-top: 6px; }
.annot--tl { top: -30px; left: 30%; }
.annot--r { top: 58%; right: -86px; text-align: right; align-items: flex-end; }
.annot--b { bottom: -30px; left: 22%; flex-direction: row; gap: 10px; }
.annot--b::before { content: ''; width: 120px; height: 1px; background: var(--ink); align-self: center; opacity: .5; }

.orbit-dot { position: absolute; z-index: 4; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.orbit-dot--a { top: 62px; left: 52%; }
.orbit-dot--b { top: 52%; left: 2px; }
.orbit-dot--c { bottom: 54px; right: 8%; background: var(--amber); outline: 1.5px solid var(--ink); }
.orbit-run { position: absolute; z-index: 1; left: 0; top: 60px; width: 480px; height: 400px;
  transform: rotate(-24deg); pointer-events: none; }
.orbit-run span { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%;
  background: var(--copper); offset-path: ellipse(240px 200px at 50% 50%); offset-rotate: 0deg;
  left: 0; top: 0; animation: orbit-run 14s linear infinite; }
@keyframes orbit-run { to { offset-distance: 100%; } }

/* Depth: each layer drifts against the pointer by its own amount. Uses the
   `translate` property, so the hand-placed rotations stay as they are. */
.hero-art { --px: 0; --py: 0; }
.hero-art .floating-note { translate: calc(var(--px) * -16px) calc(var(--py) * -12px); }
.hero-art .phone { translate: calc(var(--px) * 10px) calc(var(--py) * 8px); }
.hero-art .annot, .hero-art .orbit-dot { translate: calc(var(--px) * 22px) calc(var(--py) * 16px); }
.hero-art .liquid--pool { translate: calc(var(--px) * -26px) calc(var(--py) * -20px); }
.hero-art .note-top, .hero-art .note-bottom { translate: calc(var(--px) * 6px) calc(var(--py) * 5px); }

@media (max-width: 1520px) { .annot--r { display: none; } }
@media (max-width: 800px) {
  .annot, .orbit-run { display: none; }
}

/* ───────────────────── crossing ribbons ───────────────────── */

.ribbons { position: relative; height: 170px; margin-block: 10px 30px; overflow: hidden; }
.ribbon { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-size: clamp(28px, 4vw, 52px); letter-spacing: -.04em; line-height: 1;
  padding-block: 16px; border-block: 1.5px solid var(--ink); }
.ribbon--a { background: var(--amber); color: var(--ink); transform: translateY(-62%) rotate(-3.2deg); z-index: 2; }
.ribbon--b { background: var(--ink); color: var(--paper); transform: translateY(-38%) rotate(2.6deg); font-style: italic; }
.ribbon .tk-star { color: var(--red); font-size: .7em; margin-inline: 28px; }
.ribbon--b .tk-star { color: var(--amber); }
@media (max-width: 800px) {
  .ribbons { height: 150px; }
  .ribbon { padding-block: 11px; }
  .ribbon--a { transform: translateY(-86%) rotate(-3.2deg); }
  .ribbon--b { transform: translateY(-8%) rotate(2.6deg); }
}

/* ───────────────────── idea strip: wires with travelling packets ───────────────────── */

.strip-wire { flex: 1; max-width: 160px; min-width: 40px; height: 12px; margin-inline: 12px; }
.strip-wire svg { width: 100%; height: 12px; overflow: visible; }
.strip-wire path { stroke: var(--copper); stroke-width: 1.4; stroke-dasharray: 3 4; fill: none; vector-effect: non-scaling-stroke; }
.strip-wire circle { fill: var(--amber); stroke: var(--ink); stroke-width: 1; }
@media (max-width: 800px) { .strip-wire { max-width: 40px; margin-inline: 4px; } }

/* ───────────────────── statement ───────────────────── */

.statement { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-text);
  padding-block: clamp(90px, 13vw, 170px); margin-block: 40px; isolation: isolate; }
.statement > .shell { position: relative; z-index: 1; }
.statement__mega { position: absolute; z-index: 0; left: -4%; bottom: -6%; white-space: nowrap;
  font-family: var(--display); font-size: clamp(160px, 30vw, 460px); line-height: .8; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1px var(--dark-border); pointer-events: none; will-change: transform; }
.statement__kicker { font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 36px; }
.statement__kicker span { color: var(--red); }
.statement__type { font-size: clamp(54px, 9.4vw, 148px); line-height: .98; letter-spacing: -.055em; }
.st-line { display: block; }
.st-line--em { font-style: italic; color: var(--amber); }
.st-word { display: inline-block; white-space: nowrap; }
.st-ch { --p: 0; display: inline-block; transform: translateY(calc(var(--p) * -0.14em)) scale(calc(1 + var(--p) * .08));
  color: color-mix(in srgb, var(--amber) calc(var(--p) * 100%), currentColor);
  transition: transform .18s var(--ease), color .18s var(--ease); }
.st-line--em .st-ch { color: color-mix(in srgb, var(--paper) calc(var(--p) * 100%), var(--amber)); }
.statement__lede { max-width: 420px; margin-top: 40px; color: var(--dark-muted); font-size: 14px; line-height: 1.85; }

/* ───────────────────── roadmap: scroll-drawn line ───────────────────── */

.road-line { position: relative; height: 20px; margin: 0 0 22px; }
.road-line svg { position: absolute; left: 0; right: 0; top: 8px; width: 100%; height: 4px; overflow: visible; }
.road-line__base { stroke: var(--dark-border); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.road-line__prog { stroke: var(--amber); stroke-width: 2.5; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.road-dot { position: absolute; top: 4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--dark); border: 1.5px solid var(--dark-border); transition: background .3s var(--ease), border-color .3s, transform .4s var(--ease); }
.road-dot:nth-of-type(1) { left: 2%; } .road-dot:nth-of-type(2) { left: 50%; } .road-dot:nth-of-type(3) { left: 98%; }
.road-dot.is-lit { background: var(--amber); border-color: var(--amber); transform: scale(1.25); }
.roadmap-card { transition: border-color .4s var(--ease), background-color .4s var(--ease), translate .4s var(--ease); }
.roadmap-card.is-lit { border-color: #6d623e; background: color-mix(in srgb, var(--amber) 6%, transparent); }
@media (max-width: 800px) { .road-line { display: none; } }

/* ───────────────────── tilt + glare ───────────────────── */

[data-tilt] { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.38), rgba(255,255,255,.08) 24%, transparent 48%);
  mix-blend-mode: soft-light; transition: opacity .35s var(--ease); }
[data-tilt].is-tilting .glare { opacity: 1; }

/* ───────────────────── layered 3D mark (release) ───────────────────── */

.l3d { position: relative; width: 210px; height: 210px; margin: 0 auto 30px; perspective: 900px; cursor: grab; }
.l3d .ring { animation-duration: 26s; }
.l3d .ring text { font-size: 10px; fill: var(--ink); }
.l3d__rig { position: absolute; inset: 26%; transform-style: preserve-3d; will-change: transform; }
.l3d__layer, .l3d__face, .l3d__sweep { position: absolute; inset: 0;
  -webkit-mask: url("assets/logo-mark.png") center / contain no-repeat; mask: url("assets/logo-mark.png") center / contain no-repeat; }
/* Extrusion: ten copper-to-amber slices behind an ink face. */
.l3d__layer { background: var(--copper); }
.l3d__layer:nth-child(1)  { transform: translateZ(-20px); background: #6b3a1c; }
.l3d__layer:nth-child(2)  { transform: translateZ(-18px); background: #7a4320; }
.l3d__layer:nth-child(3)  { transform: translateZ(-16px); background: #8a4c25; }
.l3d__layer:nth-child(4)  { transform: translateZ(-14px); background: #9c5629; }
.l3d__layer:nth-child(5)  { transform: translateZ(-12px); background: #b0612f; }
.l3d__layer:nth-child(6)  { transform: translateZ(-10px); background: #c46d36; }
.l3d__layer:nth-child(7)  { transform: translateZ(-8px);  background: var(--copper); }
.l3d__layer:nth-child(8)  { transform: translateZ(-6px);  background: #e89a4c; }
.l3d__layer:nth-child(9)  { transform: translateZ(-4px);  background: #efae4f; }
.l3d__layer:nth-child(10) { transform: translateZ(-2px);  background: var(--amber); }
.l3d__face { background: var(--ink); transform: translateZ(0); }
.l3d__sweep { transform: translateZ(1px);
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 25%), rgba(255,255,255,.55), transparent 42%),
              linear-gradient(115deg, transparent 38%, rgba(255,236,190,.9) 48%, rgba(245,196,81,.5) 52%, transparent 62%);
  background-size: 100% 100%, 260% 100%; background-position: 0 0, 130% 0; mix-blend-mode: screen; opacity: .75; }
.l3d.is-glint .l3d__sweep { animation: glint 1.1s var(--ease); }
@keyframes glint { from { background-position: 0 0, 130% 0; } to { background-position: 0 0, -40% 0; } }

/* ───────────────────── section labels: mono kickers ───────────────────── */

.section-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.section-label > span:first-child::before { content: '— '; color: var(--red); }

/* ───────────────────── giant wordmark ───────────────────── */

.footer { overflow: hidden; }
.mega-word { margin-top: 30px; white-space: nowrap; text-align: center; pointer-events: none; will-change: transform;
  font-family: var(--display); font-size: clamp(110px, 25vw, 400px); line-height: .78; letter-spacing: -.075em;
  background: linear-gradient(180deg, var(--ink) 30%, var(--copper) 78%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

/* ───────────────────── reduced motion ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ring, .orbit-run span { animation: none !important; }
  .orbit-run { display: none; }
  .strip-wire circle { display: none; }
  .st-ch { transition: none; }
  .l3d__sweep { animation: none !important; }
  [data-tilt] { transform: none; }
}
