/* Base Reset & Dark Mode Typography */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-2);
  font: 400 16px/1.68 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

.accent { color: var(--blue-bright); }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; }

/* Behance Section Header: Watermark + // Eyebrow + Two-Tone Title */
.sec-head {
  position: relative;
  margin-bottom: clamp(32px, 4.5vw, 52px);
  max-width: 720px;
  overflow: hidden;
  padding-top: 14px;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  max-width: none;
}
.sec-head--row .sec-head__copy {
  position: relative;
  max-width: 680px;
  overflow: hidden;
  padding-top: 14px;
}

.sec-watermark {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 100%;
  font: 800 clamp(26px, 3.4vw, 48px)/0.95 var(--font-display);
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-watermark);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  z-index: 0;
}
.about-split .sec-watermark {
  font-size: clamp(22px, 2.4vw, 34px);
}
.sec-head--center .sec-watermark {
  left: 50%;
  transform: translateX(-50%);
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1.2 var(--font-text);
  color: var(--ink-2);
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: "//";
  color: var(--blue-bright);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.sec-title { position: relative; z-index: 1; }
.lead {
  position: relative;
  z-index: 1;
  margin-top: var(--s4);
  font-size: 16.5px;
  color: var(--muted);
}

.prose p + p { margin-top: var(--s4); }
.prose ul { margin: var(--s3) 0; display: grid; gap: var(--s2); }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
}

/* Progressive Scroll Reveal + Dark-Mode Section Animations */
[data-reveal] {
  transition: opacity 650ms cubic-bezier(.16, 1, .3, 1), transform 650ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(.985);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0ms);
}

@keyframes auraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 14px, 0) scale(1.06); }
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / .45); }
  70% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); }
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes heroScaleIn {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: none; }
}

@keyframes badgeFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -54%) scale(1.04); }
}

/* On-Load Hero Choreography */
.dhero__anim {
  opacity: 0;
  animation: heroRise 760ms cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--load-delay, 0ms);
}
.dhero__frame-anim {
  opacity: 0;
  animation: heroScaleIn 860ms cubic-bezier(.16, 1, .3, 1) 180ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
