/* ==========================================================================
   UNDENIABLE — single-page brand site
   Restyled after the astro-zen template (dark type-led portfolio):
   narrow editorial column, sticky minimal header with animated-underline
   nav, giant two-tone display headlines, sticky-stacking training cards,
   centered footer with external-arrow links.
   Brand colours preserved: black canvas #0a0a0a, cards #1b1b1b,
   aqua #4CEEE1, hot cyan #00FEF0, badge red #E23B3B.
   ========================================================================== */

@font-face {
  font-family: "Bitsumishi";
  src: url("../assets/fonts/bitsumishi.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #292727;
  --panel: #353232;
  --card: #333030;
  --card-raised: #3d3a3a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-muted: #b5b5b5;
  --text-soft: #9a9a9a;
  --text-faint: #7d7d7d;
  --aqua: #4ceee1;
  --aqua-hot: #00fef0;
  --aqua-ink: #04211e;
  --red: #e23b3b;
  --green: #33c463;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bitsumishi", "DM Serif Display", Georgia, serif;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --col: 48rem;   /* main editorial column (template max-w-3xl) */
  --wide: 64rem;  /* header + hero (template max-w-5xl) */
  --wall: 72rem;  /* results wall breakout */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* z-scale */
  --z-nav: 50;
  --z-menu: 60;
  --z-skip: 100;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--aqua);
  color: var(--aqua-ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--aqua);
  color: var(--aqua-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: var(--z-skip);
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */

.col {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 6rem 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 3.5rem;
}

h2 .accent {
  color: var(--aqua);
  font-style: italic;
}

.accent-it {
  color: var(--aqua);
  font-style: italic;
}

/* External-arrow suffix (template's ↗ convention) */
.ext::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.4em;
  font-size: 0.8em;
  color: var(--aqua);
  transition: transform 0.3s var(--ease-out);
}

.ext:hover::after {
  transform: translate(2px, -2px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

/* NoiseBackground buttons (Aceternity port): every button sits in a
   rounded shell with drifting brand-colour radial gradients, a blurred
   gradient strip on top, and a noise texture overlay. JS wraps buttons
   and drives --nbx/--nby; without JS the gradients rest centred. */

.noise-btn {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #403c3c;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nb-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nb-l0 {
  opacity: 0.5;
  background: radial-gradient(circle at var(--nbx, 50%) var(--nby, 50%), rgb(76, 238, 225) 0%, transparent 55%);
}

.nb-l1 {
  opacity: 0.35;
  background: radial-gradient(circle at calc(var(--nbx, 50%) * 0.7 + 15%) calc(var(--nby, 50%) * 0.85 + 8%), rgb(0, 254, 240) 0%, transparent 55%);
}

.nb-l2 {
  opacity: 0.25;
  background: radial-gradient(circle at calc(var(--nbx, 50%) * 1.2 - 10%) calc(var(--nby, 50%) * 1.1 - 5%), rgb(255, 255, 255) 0%, transparent 55%);
}

.nb-strip {
  position: absolute;
  top: 0;
  left: -10%;
  right: -10%;
  height: 3px;
  opacity: 0.8;
  filter: blur(2px);
  pointer-events: none;
  background: linear-gradient(to right, var(--aqua), var(--aqua-hot), #ffffff);
}

.nb-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/noise.webp");
  background-size: cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.noise-btn > .btn,
.noise-btn > .card-nav-cta-button {
  position: relative;
  z-index: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn--aqua,
.btn--white,
.btn--ghost {
  background: linear-gradient(to right, #171515, #171515, #242121);
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.8), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.btn--aqua:hover,
.btn--white:hover,
.btn--ghost:hover {
  filter: brightness(1.25);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 0.9375rem;
}

/* ---------- Announcement bar ---------- */

.topbar {
  width: min(92%, 50rem);
  margin: 1rem auto 0;
  background: var(--aqua);
  color: var(--aqua-ink);
  text-align: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar .arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--aqua-ink);
  color: var(--aqua);
  font-size: 0.7rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 1.5rem 0 0;
}

.hero__box {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem) 0;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 90%);
}

/* DotField (React Bits port): canvas dot grid behind the hero */

.dot-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__grid,
.hero__strip {
  position: relative;
  z-index: 1;
}

.dot-field-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 238, 225, 0.10) 0%, transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
  min-height: 30rem;
}

.hero__copy {
  padding: 2.5rem 0 3rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
  background: rgba(76, 238, 225, 0.07);
  border: 1px solid rgba(76, 238, 225, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.125rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
  max-width: 13ch;
}

.hero__sub {
  max-width: 30rem;
  margin-bottom: 2.5rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__portrait {
  position: relative;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__portrait::before {
  content: "";
  position: absolute;
  bottom: -8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(76, 238, 225, 0.13), transparent 62%);
  pointer-events: none;
}

.hero__portrait img {
  position: relative;
  max-height: 40rem;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

/* Floating stat chips (link to the results wall) */

.chip {
  position: absolute;
  z-index: 2;
  display: block;
  background: rgba(51, 48, 48, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.chip:hover {
  border-color: rgba(76, 238, 225, 0.5);
  transform: translateY(-2px);
}

.chip strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.chip span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.chip--1 {
  top: 26%;
  left: -4.5rem;
}

.chip--2 {
  bottom: 18%;
  right: 4rem;
}

/* Feature strip under the hero */

.hero__strip {
  max-width: var(--wide);
  margin: 1.25rem auto 0;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #242121;
  padding: 1.375rem 1.5rem;
}

.hero__strip a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.hero__strip a:hover {
  color: var(--text);
}

.hero__strip .spark {
  color: var(--aqua);
  margin-right: 0.375rem;
}

/* ---------- Grip: FallingText (React Bits port) ---------- */

.grip {
  padding: 1rem 0 2rem;
}

.falling-text-container {
  position: relative;
  overflow: hidden;
  height: 16rem;
  text-align: center;
  cursor: grab;
}

.falling-text-target {
  display: inline-block;
  padding-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.4;
  color: var(--text);
}

.falling-text-target .word {
  display: inline-block;
  margin: 0 4px;
  user-select: none;
  -webkit-user-select: none;
}

.falling-text-target .highlighted {
  color: var(--aqua);
  font-style: italic;
}

/* ---------- Trainings: vertical image-card grid ---------- */

.trainings {
  position: relative;
}

.tg-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 42%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 60% at 50% 42%, #000 35%, transparent 100%);
}

.trainings > .wide {
  position: relative;
  z-index: 1;
}

.tg-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tg-title {
  margin: 0 auto;
  max-width: 26ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-muted);
  text-wrap: balance;
}

.tg-em {
  color: var(--text);
}

.tg-sub {
  margin: 0 auto;
  max-width: 56ch;
  text-align: center;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--text-soft);
  text-wrap: pretty;
}

.tg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tg-grid > li {
  min-width: 0;
}

.tg-grid > li:nth-child(2) {
  transition-delay: 0.08s;
}

.tg-grid > li:nth-child(3) {
  transition-delay: 0.16s;
}

.tg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(24rem, 42vw, 30rem);
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    border-color 0.25s ease;
}

.tg-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(76, 238, 225, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 60px -22px rgba(0, 0, 0, 0.85);
}

.tg-card:active {
  transform: scale(0.99);
}

.tg-card:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.tg-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20rem;
  background-size: cover;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  transition: transform 0.4s var(--ease-out);
}

.tg-card:hover .tg-media {
  transform: scale(1.04);
}

.tg-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.tg-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.25;
}

.tg-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.tg-cta {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--aqua);
}

.tg-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.tg-card:hover .tg-arrow {
  transform: translate(2px, -2px);
}

.tg-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.625rem;
}

.tg-badge--red {
  background: var(--red);
}

.tg-badge--green {
  background: var(--green);
}

@media (max-width: 52rem) {
  .tg-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin: 0 auto;
  }

  .tg-card {
    height: clamp(20rem, 72vw, 24rem);
  }
}

/* ScrollReveal words */

.scroll-reveal .word {
  display: inline-block;
}

/* ---------- Workshop ---------- */

.workshop__layout {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.workshop__photo {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}

.workshop__copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.workshop__copy p {
  max-width: 30rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

/* ---------- Testimonials: infinite draggable canvas (Aceternity port) ---------- */

.results-canvas {
  padding: 6rem 0;
}

.tw-canvas {
  position: relative;
  isolation: isolate;
  height: min(100vh, 46rem);
  overflow: hidden;
  background: #242121;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  user-select: none;
  -webkit-user-select: none;
}

.tw-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.tw-world {
  position: absolute;
  will-change: transform;
}

.tw-tile {
  position: absolute;
  width: 800px;
  height: 800px;
}

.tw-card {
  position: absolute;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease-out), opacity 0.5s ease;
}

.tw-shot {
  width: 6rem;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #242121;
}

.tw-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tw-client {
  margin-top: auto;
  padding-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-faint);
}

.tw-canvas.has-active .tw-card {
  opacity: 0.1;
}

.tw-canvas.has-active .tw-card.is-active {
  opacity: 1;
  transform: scale(1.15);
}

.tw-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.tw-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.tw-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.tw-overlay-inner {
  max-width: 36rem;
  padding: 0 1.25rem 2.75rem;
  pointer-events: auto;
}

.tw-overlay h2 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1rem;
}

.tw-overlay p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---------- Values: ScrollStack (React Bits port) ---------- */

.values__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.values__intro {
  position: sticky;
  top: 20vh;
}

.values__intro h2 {
  margin-bottom: 0;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
}

.scroll-stack {
  max-width: 46rem;
  margin: 0 auto;
}

@media (max-width: 60rem) {
  .values__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .values__intro {
    position: static;
  }

  .values__intro h2 {
    margin-bottom: 1.5rem;
  }
}

.scroll-stack-card {
  transform-origin: top center;
  will-change: transform;
  backface-visibility: hidden;
}

.scroll-stack-end {
  width: 100%;
  height: 1px;
  margin-top: 24rem; /* pin runway: how long the stack stays pinned */
}

html.no-stack-runway .scroll-stack-end {
  margin-top: 0;
}

.cs-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.75rem;
  min-height: 23rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 1.75rem;
  padding: 2.75rem 3rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.cs-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.cs-highlight {
  font-weight: 700;
  background: rgba(76, 238, 225, 0.14);
  color: var(--aqua);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.cs-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cs-footer img {
  width: 3.1rem;
  height: 3.1rem;
  filter: invert(1) opacity(0.9);
}

.cs-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text);
}

.cs-designation {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ---------- Bento grid (Aceternity port) ---------- */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 17rem;
  gap: 1rem;
}

.bento-item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.bento-item--wide {
  grid-column: span 2;
}

.bento-header {
  flex: 1;
  min-height: 0;
  border-radius: 0.625rem;
  background-size: cover;
  background-position: center 20%;
  background-color: var(--card-raised);
}

.bento-header--icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.bento-header--icons img {
  width: 2.75rem;
  height: 2.75rem;
  filter: invert(1) opacity(0.9);
}

.bento-body {
  transition: transform 0.2s ease;
}

.bento-item:hover .bento-body {
  transform: translateX(0.5rem);
}

.bento-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.bento-body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.bento-body p a {
  color: var(--text);
}

.bento-body p a:hover {
  color: var(--aqua);
}

.bento-item--cta {
  align-items: flex-start;
  justify-content: flex-end;
  background: var(--aqua-dark);
}

@media (max-width: 60rem) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 15rem;
  }

  .bento-item--wide {
    grid-column: auto;
  }
}

/* ---------- Story: ScrollReveal bio ---------- */

.story {
  padding-bottom: 2rem;
}

.story__text {
  font-size: clamp(1.375rem, 2.8vw, 2.125rem);
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}

.story__text + .story__text {
  margin-top: 2.75rem;
}

.sr-note {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--text-faint);
}

.scroll-reveal .word {
  display: inline-block;
}

/* ---------- Statement ---------- */

.statement {
  text-align: center;
}

.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  text-wrap: balance;
}

.statement .line-aqua {
  color: var(--aqua-hot);
  font-style: italic;
}

.statement .line-white {
  color: var(--text);
  display: block;
  margin-top: 0.5rem;
}

/* ---------- Footer: four-grid with watermark (Aceternity port) ---------- */

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: #242121;
  padding: 5rem 2rem 1.5rem;
}

.footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.footer__grids {
  display: grid;
  grid-template-columns: repeat(2, minmax(8rem, 1fr));
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .footer__grids {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer__grids ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__grids a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer__grids a:hover {
  color: var(--aqua);
}

.footer__disclaimer {
  max-width: 72rem;
  margin: 3.5rem auto 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer__watermark {
  margin-top: 3.5rem;
  text-align: center;
  font-weight: 900;
  font-size: clamp(3rem, 11.5vw, 11.5rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(to bottom, #302d2d, #4c4747);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ---------- Dock (React Bits port): fixed social dock ---------- */

.dock-outer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: 1.25rem;
  z-index: 45;
  pointer-events: none;
}

.dock-panel {
  pointer-events: auto;
  transform: scale(0.72);
  transform-origin: bottom right;
  display: flex;
  align-items: flex-end;
  gap: 0.875rem;
  border-radius: 1rem;
  background: rgba(36, 33, 33, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--card-raised);
  border: 1px solid var(--border-strong);
  will-change: width, height;
}

.dock-item:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dock-glyph {
  display: block;
  width: 46%;
  height: 46%;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  background: #fff;
}

.dock-item--youtube .dock-glyph {
  background: #ff0000;
}

.dock-item--spotify .dock-glyph {
  background: #1db954;
}

.dock-item--instagram .dock-glyph {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.dock-label {
  position: absolute;
  top: -1.85rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: pre;
  border-radius: 0.375rem;
  border: 1px solid var(--border-strong);
  background: #242121;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ---------- Scroll reveal (gated behind .js so content never hides without it) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hamburger-line {
    transition: none;
  }

  .js .reveal,
  .btn,
  .ext::after,
  .nav-link::after {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

}

/* ---------- Workshop features (parallax scroll) ---------- */

.wsf {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.wsf__head {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.wsf__head h2 {
  margin-bottom: 1rem;
}

.wsf__sub {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  text-wrap: pretty;
}

.wsf__list {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vw, 8rem);
}

.wsf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.wsf__row:nth-child(even) .wsf__text {
  order: 2;
}

.wsf__text {
  will-change: transform;
}

.wsf__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: rgba(76, 238, 225, 0.1);
  border: 1px solid rgba(76, 238, 225, 0.28);
  color: var(--aqua);
  margin-bottom: 1.5rem;
}

.wsf__text h3 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.wsf__text p {
  margin-top: 1rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
  text-wrap: pretty;
}

.wsf__media {
  will-change: transform;
}

.wsf__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 32%;
}

.wsf__cta {
  text-align: center;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

@media (max-width: 60rem) {
  .wsf__row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .wsf__row .wsf__text {
    order: 2;
  }

  .wsf__media img {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- Section backgrounds (alternating, to break up the page) ---------- */

.trainings,
#workshop,
.story {
  background: #201e1e;
}

.trainings,
.results-canvas,
#workshop,
.values,
.story,
.statement {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#workshop,
.story {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer {
  background: #191717;
}

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

@media (max-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .hero__copy {
    padding: 6.5rem 0 3rem;
    text-align: center;
  }

  .hero h1,
  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__portrait img {
    max-height: 31rem;
  }

  .chip {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 46rem) {
  section {
    padding: 3.75rem 0;
  }

  .hero h1 {
    font-size: clamp(2.375rem, 11vw, 3.25rem);
  }
}
