/* ============================================================
   JAMIE THOMAS — jamiethomas4.com
   Stage / Bone / Signal system
   ============================================================ */

:root {
  --stage: #121212;
  --stage-2: #1a1a1a;
  --stage-3: #232323;
  --bone: #F2EFE8;
  --bone-60: rgba(242, 239, 232, 0.6);
  --bone-35: rgba(242, 239, 232, 0.35);
  --bone-12: rgba(242, 239, 232, 0.12);
  --signal: #FF4D1C;
  --signal-soft: rgba(255, 77, 28, 0.14);
  --ember: linear-gradient(100deg, #FF4D1C 0%, #FF2E63 34%, #C724B1 62%, #7B2FBE 84%, #121212 100%);

  --display: "Big Shoulders Display", sans-serif;
  --body: "Space Grotesk", sans-serif;
  --mono: "JetBrains Mono", monospace;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --marquee-gap: clamp(80px, 12vw, 150px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--stage);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: var(--stage); }

/* --- grain ------------------------------------------------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

/* --- type roles -------------------------------------------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}
.label--bone { color: var(--bone-60); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.h-hero { font-size: clamp(56px, 11vw, 152px); }
.h-xl   { font-size: clamp(44px, 7.5vw, 96px); }
.h-lg   { font-size: clamp(32px, 5vw, 60px); }
.h-md   { font-size: clamp(24px, 3.2vw, 36px); }

.lede {
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.5;
  max-width: 52ch;
}
.muted { color: var(--bone-60); }
.small { font-size: 15px; }

a { color: inherit; text-decoration: none; }

.link-inline {
  color: var(--signal);
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}
.link-inline:hover { background-size: 100% 1px; }

/* --- layout ------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }

.rule {
  border: none;
  height: 1px;
  background: var(--bone-12);
}

/* --- nav ----------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--bone-12);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-name .pulse-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--signal); border-radius: 50%;
  margin-right: 10px;
  animation: dotpulse 2.4s infinite;
}
@keyframes dotpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 77, 28, 0); }
}
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-60);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- hero ---------------------------------------------------- */
.hero {
  min-height: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px;
  padding-bottom: var(--marquee-gap);
  position: relative;
}
.hero .label { margin-bottom: 22px; }
.hero h1 .accent,
.cs-hero h1 .accent {
  color: transparent;
  background: var(--ember);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: emberShift 7s ease-in-out infinite alternate;
}
@keyframes emberShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.hero .lede { margin-top: 34px; }

/* ECG trace */
.ecg-wrap { margin: clamp(28px, 4vw, 48px) 0 0; overflow: visible; }
.ecg-wrap svg { width: 100%; height: 90px; display: block; overflow: visible; }
.ecg-path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 77, 28, 0.55));
}
.ecg-draw {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: ecgdraw 3.2s var(--ease) 0.35s forwards;
}
@keyframes ecgdraw { to { stroke-dashoffset: 0; } }
.ecg-cursor {
  fill: var(--bone);
  filter: drop-shadow(0 0 8px rgba(255, 77, 28, 0.9));
  opacity: 0;
  animation: cursorIn 0.4s 3.3s forwards;
}
@keyframes cursorIn { to { opacity: 1; } }

/* divider trace used between sections */
.trace-divider { opacity: 0.35; }
.trace-divider svg { width: 100%; height: 40px; display: block; }
.trace-divider path { fill: none; stroke: var(--bone-35); stroke-width: 1.5; }

/* --- marquee -------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--bone-12);
  border-bottom: 1px solid var(--bone-12);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-60);
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee-item::after { content: "✦"; color: var(--signal); font-size: 11px; }

/* --- work cards ------------------------------------------------ */
.work-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.work-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid var(--bone-12);
  border-radius: 4px;
  padding: clamp(26px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s;
  background: var(--stage-2);
}
.work-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--signal-soft), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(255, 77, 28, 0.45); }
.work-card:hover::before { opacity: 1; }
.work-card .wc-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
}
.work-card h3 { font-size: clamp(30px, 4.4vw, 52px); }
.work-card .wc-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-60); }
.work-card p { color: var(--bone-60); max-width: 62ch; margin-top: 8px; }
.wc-outcome {
  margin-top: 22px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.wc-outcome .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  color: var(--signal);
  line-height: 1;
}
.wc-outcome .what { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-60); }
.wc-cta {
  margin-top: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--signal);
  display: inline-flex; align-items: center; gap: 10px;
}
.wc-cta .arrow { transition: transform 0.35s var(--ease); }
.work-card:hover .wc-cta .arrow { transform: translateX(6px); }

/* --- outcomes band --------------------------------------------- */
.outcomes-band {
  border-top: 1px solid var(--bone-12);
  border-bottom: 1px solid var(--bone-12);
  background: var(--stage-2);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--bone-12);
}
.outcome-cell {
  background: var(--stage-2);
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 10px;
}
.outcome-cell .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  color: var(--bone);
}
.outcome-cell .big .sig { color: var(--signal); }
.outcome-cell .what { font-size: 15px; color: var(--bone-60); }
.outcome-cell .where { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-35); }

/* --- essay blocks (approach) ------------------------------------ */
.essay { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--bone-12); }
.essay:first-of-type { border-top: none; }
.essay h2 { font-size: clamp(30px, 4.4vw, 52px); position: sticky; top: 110px; align-self: start; }
.essay .body p + p { margin-top: 1.2em; }
.essay .body strong { color: var(--bone); }
.essay .body { color: var(--bone-60); }
@media (max-width: 800px) {
  .essay { grid-template-columns: 1fr; }
  .essay h2 { position: static; }
}

/* --- case study pages ------------------------------------------- */
.cs-hero { padding-top: 160px; padding-bottom: clamp(40px, 6vw, 72px); }
.cs-hero .meta-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-60);
}
.cs-body { max-width: 820px; }
.cs-body h2 { font-size: clamp(26px, 3.6vw, 40px); margin: clamp(44px, 6vw, 72px) 0 20px; }
.cs-body h2:first-child { margin-top: 0; }
.cs-body p { color: var(--bone-60); }
.cs-body p + p { margin-top: 1.2em; }
.cs-body strong { color: var(--bone); }
.cs-body ul { list-style: none; margin-top: 8px; }
.cs-body li { padding: 14px 0 14px 28px; position: relative; color: var(--bone-60); border-bottom: 1px solid var(--bone-12); }
.cs-body li::before { content: "✦"; position: absolute; left: 0; color: var(--signal); font-size: 12px; top: 18px; }
.cs-outcome-callout {
  margin: clamp(36px, 5vw, 56px) 0;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 77, 28, 0.4);
  border-radius: 4px;
  background: var(--signal-soft);
}
.cs-outcome-callout .big {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1; color: var(--signal);
}
.cs-outcome-callout p { margin-top: 14px; color: var(--bone); }
.cs-next {
  border-top: 1px solid var(--bone-12);
  padding-top: clamp(104px, 15vw, 220px);
}

/* --- about ------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-body p + p { margin-top: 1.2em; }
.about-body { color: var(--bone-60); }
.about-body strong { color: var(--bone); }
.cred-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--bone-12); }
.cred-list li { list-style: none; padding: 14px 0; border-bottom: 1px solid var(--bone-12); font-size: 15px; color: var(--bone-60); }
.cred-list .label { display: block; margin-bottom: 4px; }

/* --- contact CTA -------------------------------------------------- */
.contact-cta { text-align: left; }
.contact-cta h2 { font-size: clamp(44px, 8vw, 110px); }
.contact-cta h2 .accent {
  color: transparent;
  background: var(--ember);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: emberShift 7s ease-in-out infinite alternate;
}
.contact-links { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--bone-35);
  border-radius: 3px;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
  display: inline-block;
}
.btn:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-3px); }
.btn--solid { background: var(--signal); border-color: var(--signal); color: var(--stage); }
.btn--solid:hover { background: transparent; color: var(--signal); }

/* --- footer -------------------------------------------------------- */
footer {
  border-top: 1px solid var(--bone-12);
  padding: 40px 0 48px;
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.foot-inner .mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-35); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-60); transition: color 0.25s; }
.foot-links a:hover { color: var(--signal); }

/* --- reveal on scroll ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* --- accessibility ---------------------------------------------------- */
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .ecg-draw { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}

/* --- spark (homepage hero) -------------------------------------- */
.hero { position: relative; }
.spark-field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero > *:not(.spark-field) { position: relative; z-index: 1; }
.spark-mark {
  display: inline-block;
  color: var(--signal);
  font-size: 0.3em;
  vertical-align: super;
  margin-left: 0.18em;
  text-shadow: 0 0 14px rgba(255, 77, 28, 0.85);
  animation: sparkFlicker 2.8s ease-in-out infinite;
}
@keyframes sparkFlicker {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  42% { opacity: 0.55; transform: scale(0.82) rotate(18deg); }
  58% { opacity: 0.9; transform: scale(1.1) rotate(-10deg); }
  74% { opacity: 0.7; transform: scale(0.95) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spark-mark { animation: none; }
  .spark-field { display: none; }
}

/* --- work card thumbnails ---------------------------------------- */
.wc-inner {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.wc-thumb {
  width: 200px;
  height: 150px;
  border: 1px solid var(--bone-12);
  border-radius: 4px;
  overflow: hidden;
  background: var(--stage-3);
}
.wc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(60%) contrast(1.02);
  transform: scale(1.02);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.work-card:hover .wc-thumb img {
  filter: grayscale(0%);
  transform: scale(1.08);
}
@media (max-width: 700px) {
  .wc-inner { grid-template-columns: 1fr; }
  .wc-thumb { width: 100%; height: 180px; order: -1; }
}

/* --- intro-to-work breathing room ---------------------------------- */
#intro { padding-top: var(--marquee-gap); padding-bottom: clamp(110px, 15vw, 210px); }

/* --- pronounced spark with residual bits ---------------------------- */
.spark-wrap {
  position: relative;
  display: inline-block;
  margin-left: 0.14em;
  vertical-align: super;
}
.spark-wrap .spark-mark {
  font-size: 0.44em;
  vertical-align: baseline;
  margin-left: 0;
  text-shadow:
    0 0 10px rgba(255, 77, 28, 1),
    0 0 26px rgba(255, 77, 28, 0.75),
    0 0 52px rgba(255, 46, 99, 0.45);
}
.spark-wrap::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 2.2em; height: 2.2em;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 77, 28, 0.35), transparent 65%);
  border-radius: 50%;
  animation: sparkGlow 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sparkGlow {
  0%, 100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
}
.sb {
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(255, 77, 28, 0.9);
  opacity: 0;
  pointer-events: none;
}
.sb1 { animation: sbFly1 2.1s ease-out infinite; }
.sb2 { animation: sbFly2 2.7s ease-out 0.5s infinite; background: #FF2E63; box-shadow: 0 0 8px rgba(255, 46, 99, 0.9); }
.sb3 { animation: sbFly3 2.4s ease-out 1.1s infinite; }
.sb4 { animation: sbFly4 3s ease-out 1.6s infinite; background: #C724B1; box-shadow: 0 0 8px rgba(199, 36, 177, 0.9); width: 3px; height: 3px; }
.sb5 { animation: sbFly5 2.2s ease-out 0.8s infinite; width: 3px; height: 3px; }
@keyframes sbFly1 {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, -34px) scale(0.2); }
}
@keyframes sbFly2 {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate(-20px, -40px) scale(0.2); }
}
@keyframes sbFly3 {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate(38px, -14px) scale(0.2); }
}
@keyframes sbFly4 {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate(-30px, -18px) scale(0.15); }
}
@keyframes sbFly5 {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate(12px, -48px) scale(0.15); }
}
@media (prefers-reduced-motion: reduce) {
  .sb, .spark-wrap::before { animation: none; opacity: 0; }
}

/* --- section breathing room + inlined motion-graphic thumbs ---------- */
.section--space-after { margin-bottom: clamp(40px, 6vw, 80px); }
.wc-thumb svg { width: 100%; height: 100%; display: block; }

/* --- case-study motion graphics ---------------------------------- */
.cs-media { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 20px); margin: clamp(28px, 4vw, 48px) auto; }
.cs-media svg { width: 100%; height: auto; display: block; border: 1px solid var(--bone-12); border-radius: 14px; background: #17181c; }

/* --- approach: per-section motion graphics ----------------------- */
.essay-media { margin: 0 0 clamp(18px, 2.5vw, 28px); }
.essay-media svg { width: 100%; height: auto; display: block; border: 1px solid var(--bone-12); border-radius: 12px; background: #17181c; }

.essay-media-cap { margin: 10px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-35); }

/* --- about: portrait + section spacing --------------------------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; max-width: 420px; } }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--bone-12); filter: grayscale(100%) contrast(1.02); }
.about-intro .cred-list { margin-top: clamp(26px, 3.5vw, 40px); }
.about-sec { padding-top: clamp(64px, 10vw, 132px); }

/* --- confidentiality / private-artifacts note -------------------- */
.nda-note { border: 1px solid var(--bone-12); border-left: 3px solid var(--signal); border-radius: 8px; padding: clamp(18px, 2.5vw, 26px); margin: 0 0 clamp(30px, 4vw, 48px); background: rgba(255, 77, 28, 0.045); }
.nda-note .label { margin-bottom: 8px; }
.nda-note p:not(.label) { color: var(--bone-60); margin: 0; }
.nda-note strong { color: var(--bone); }
.section-note { color: var(--bone-60); max-width: 62ch; }

/* --- vision: pull quote ------------------------------------------ */
.pullquote { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(30px, 5.5vw, 60px); line-height: 1.0; letter-spacing: 0.005em; color: var(--bone); margin: clamp(38px, 6vw, 68px) 0; padding-left: 22px; border-left: 4px solid var(--signal); }
.pullquote .hl { color: var(--signal); }


/* --- sparkle: curved 4-point star, gentle rotate then spin + spark burst --- */
.spark-wrap .spark-mark {
  display: inline-block; font-size: 1em; width: 0.5em; height: 0.5em;
  fill: var(--signal); vertical-align: baseline;
  filter: drop-shadow(0 0 7px rgba(255, 77, 28, 0.95)) drop-shadow(0 0 20px rgba(255, 46, 99, 0.5));
  transform-origin: center;
  animation: sparkSpin 5s ease-in-out infinite, sparkHue 6s ease-in-out infinite;
}
@keyframes sparkSpin {
  0%   { transform: rotate(0deg) scale(1); }
  32%  { transform: rotate(12deg) scale(1.05); }
  56%  { transform: rotate(-6deg) scale(0.97); }
  63%  { transform: rotate(0deg) scale(1); }
  92%  { transform: rotate(1080deg) scale(1.3); }
  100% { transform: rotate(1080deg) scale(1); }
}
.spark-wrap::before { animation: sparkGlow2 5s ease-in-out infinite; }
@keyframes sparkGlow2 {
  0%, 58%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.9); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1.55); }
}
.spark-wrap .sb {
  position: absolute; left: 0; top: 0; margin: 0;
  width: var(--sz, 3px); height: var(--sz, 3px); border-radius: 50%;
  background: var(--sparkc, var(--signal));
  box-shadow: 0 0 6px var(--sparkc, rgba(255, 77, 28, 0.9));
  opacity: 0;
  animation: sbBurst 5s ease-out infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes sbBurst {
  0%, 63% { opacity: 0; transform: translate(-50%, -50%) scale(0.08); }
  66% { opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
  70% { opacity: 1; transform: translate(calc(-50% + var(--tx) * 0.6), calc(-50% + var(--ty) * 0.6)) scale(0.6); }
  74% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3); }
}
@media (prefers-reduced-motion: reduce) {
  .spark-wrap .spark-mark { animation: none; }
  .spark-wrap .sb { animation: none; opacity: 0; }
}

/* sparkle cycles the ember palette, same colors as the "human" accent */
@keyframes sparkHue {
  0%   { fill: #FF4D1C; }
  28%  { fill: #FF2E63; }
  55%  { fill: #C724B1; }
  78%  { fill: #7B2FBE; }
  100% { fill: #FF4D1C; }
}

/* four emitters ride the sparkle's tips and spin with it */
.spark-wrap .emitters {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-origin: center;
  animation: sparkSpin 5s ease-in-out infinite;
}
.spark-wrap .emitter { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.spark-wrap .e-top    { transform: translateY(-0.26em); }
.spark-wrap .e-right  { transform: translateX(0.26em); }
.spark-wrap .e-bottom { transform: translateY(0.26em); }
.spark-wrap .e-left   { transform: translateX(-0.26em); }
@media (prefers-reduced-motion: reduce) {
  .spark-wrap .emitters { animation: none; }
}

/* --- sparkle: tuned via Spark Lab (spin start 1s, dur 2s, 2 turns, flight 0.5s, hue 12s, glow 0) --- */
@keyframes spSpin {
  0%   { transform: rotate(0deg) scale(1); }
  9%   { transform: rotate(12deg) scale(1.05); }
  16%  { transform: rotate(-6deg) scale(0.98); }
  20%  { transform: rotate(0deg) scale(1); }
  60%  { transform: rotate(720deg) scale(1.3); }
  100% { transform: rotate(720deg) scale(1); }
}
@keyframes spBurst {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
  6%   { opacity: 1; transform: translate(calc(-50% + var(--tx) * 0.6), calc(-50% + var(--ty) * 0.6)) scale(0.6); }
  10%  { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3); }
}
@keyframes spHue { 0% { fill: #FF4D1C; } 28% { fill: #FF2E63; } 55% { fill: #C724B1; } 78% { fill: #7B2FBE; } 100% { fill: #FF4D1C; } }
.spark-wrap .spark-mark {
  width: 0.5em; height: 0.5em; fill: var(--signal); filter: none; transform-origin: center;
  animation: spSpin 5s ease-in-out infinite, spHue 12s ease-in-out infinite;
}
.spark-wrap::before { animation: none; }
.spark-wrap .emitters { animation: spSpin 5s ease-in-out infinite; }
.spark-wrap .e-top    { transform: translateY(-0.1em); }
.spark-wrap .e-right  { transform: translateX(0.1em); }
.spark-wrap .e-bottom { transform: translateY(0.1em); }
.spark-wrap .e-left   { transform: translateX(-0.1em); }
.spark-wrap .sb {
  position: absolute; left: 0; top: 0; margin: 0; border-radius: 50%; opacity: 0;
  width: var(--sz, 3px); height: var(--sz, 3px);
  background: var(--sparkc, var(--signal));
  box-shadow: 0 0 6px var(--sparkc, rgba(255, 77, 28, 0.9));
  animation: spBurst 5s ease-out infinite;
  animation-delay: calc(1s + var(--dl, 0s));
}
@media (prefers-reduced-motion: reduce) {
  .spark-wrap .spark-mark, .spark-wrap .emitters, .spark-wrap .sb { animation: none; }
  .spark-wrap .sb { opacity: 0; }
}
