/* ===== Design tokens ===== */
:root {
  --bg: #0e0b12;
  --surface: #1a1522;
  --text: #f4f2f6;
  --muted: #b3acbd;
  --accent: #b16ce8;
  --accent-press: #9a4fd6;
  --radius: 14px;
  --maxw: 1060px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Shared layout ===== */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 64px; }

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
}

@media (min-width: 700px) {
  .section { padding-block: 88px; }
  .section-title { font-size: 2.3rem; }
}

/* ===== Hero ===== */
#hero {
  min-height: 92svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 48px;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(14,11,18,0.72), rgba(14,11,18,0.93)),
    url("assets/img/hero.jpg") center / cover no-repeat;
}

.hero-inner { width: 100%; }

.hero-logo {
  width: 140px;
  height: auto;
  margin-inline: auto;
  margin-bottom: 20px;
  border-radius: 50%;
}

#hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; }

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.hero-sub {
  color: var(--muted);
  max-width: 34ch;
  margin: 14px auto 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 38px;
  border-radius: 999px;
  text-decoration: none;
}

.btn-primary:active { background: var(--accent-press); }

@media (min-width: 700px) {
  #hero h1 { font-size: 3.4rem; }
}

/* ===== About ===== */
.about-text { max-width: 62ch; font-size: 1.05rem; }
.about-text p + p { margin-top: 14px; }

/* ===== Services ===== */
.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--accent);
}

.card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); }

@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ===== Contact ===== */
.contact-inner { text-align: center; }
.contact-inner .section-title::after { margin-inline: auto; }

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.btn-secondary {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--muted);
  padding: 12px 30px;
  border-radius: 999px;
}

@media (min-width: 700px) {
  .contact-actions { flex-direction: row; justify-content: center; }
}

/* ===== Footer ===== */
#footer {
  border-top: 1px solid #26262b;
  padding-block: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-wordmark {
  width: 200px;
  margin: 0 auto 10px;
}

/* ===== About grid (photo beside text on desktop) ===== */
.about-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  justify-self: center;
}

@media (min-width: 700px) {
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .about-photo { justify-self: start; }
}

/* ===== Photo band ===== */
.photo-band {
  min-height: 300px;
  background:
    linear-gradient(rgba(14,11,18,0.25), rgba(14,11,18,0.25)),
    url("assets/img/band.jpg") center 30% / cover no-repeat;
}

@media (min-width: 700px) {
  .photo-band { min-height: 420px; }
}

/* ===== Aurora background ===== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.aurora::before {
  background: radial-gradient(circle, #7b2ff7 0%, transparent 62%);
  top: -22vmax;
  inset-inline-start: -12vmax;
}

.aurora::after {
  background: radial-gradient(circle, #d16ba5 0%, transparent 62%);
  bottom: -26vmax;
  inset-inline-end: -14vmax;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ===== Micro-interactions ===== */
.card {
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(177,108,232,0.35);
  box-shadow: 0 14px 36px rgba(177,108,232,0.16);
}

.gallery-grid img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.035);
}

.btn-primary { transition: transform 0.2s ease, background 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { transition: border-color 0.2s ease, color 0.2s ease; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Motion (only when user allows it) ===== */
@media (prefers-reduced-motion: no-preference) {

  /* Hero: slow Ken Burns zoom */
  #hero::before {
    animation: kenburns 26s ease-in-out infinite alternate;
  }

  @keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
  }

  /* Hero: staggered entrance */
  .hero-logo, #hero h1, .hero-tagline, .hero-sub, #hero .btn-primary {
    opacity: 0;
    animation: rise 0.8s ease forwards;
  }

  .hero-logo          { animation-delay: 0.1s; }
  #hero h1            { animation-delay: 0.25s; }
  .hero-tagline       { animation-delay: 0.4s; }
  .hero-sub           { animation-delay: 0.55s; }
  #hero .btn-primary  { animation: rise 0.8s ease 0.7s forwards, glow 3.6s ease-in-out 1.8s infinite; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes glow {
    0%, 100% { box-shadow: 0 8px 26px rgba(177,108,232,0.22); }
    50%      { box-shadow: 0 8px 42px rgba(177,108,232,0.5); }
  }

  /* Aurora drift */
  .aurora::before { animation: drift1 28s ease-in-out infinite alternate; }
  .aurora::after  { animation: drift2 34s ease-in-out infinite alternate; }

  @keyframes drift1 {
    to { transform: translate(12vmax, 14vmax) scale(1.15); }
  }

  @keyframes drift2 {
    to { transform: translate(-10vmax, -12vmax) scale(1.1); }
  }

  /* Scroll reveal (armed only when JS is present) */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--rd, 0s);
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* Stagger within groups */
  .cards .card:nth-child(2)        { --rd: 0.1s; }
  .cards .card:nth-child(3)        { --rd: 0.2s; }
  .cards .card:nth-child(4)        { --rd: 0.3s; }
  .gallery-grid img:nth-child(2)   { --rd: 0.08s; }
  .gallery-grid img:nth-child(3)   { --rd: 0.16s; }
  .gallery-grid img:nth-child(4)   { --rd: 0.24s; }
  .gallery-grid img:nth-child(5)   { --rd: 0.32s; }
  .gallery-grid img:nth-child(6)   { --rd: 0.4s; }

  /* Section-title underline draws in on reveal */
  .js .section-title::after {
    width: 0;
    transition: width 0.6s ease 0.35s;
  }

  .js .section-title.in::after {
    width: 56px;
  }
}

/* ===== Route line (climbing topo down the page) ===== */
body { position: relative; }

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.route path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
}

.route path:nth-child(2) { stroke-width: 2; opacity: 0.35; }
.route path:nth-child(3) { stroke-width: 1.75; opacity: 0.25; }

@media (prefers-reduced-motion: no-preference) {
  .js .route path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
}

/* (duotone treatment removed per Roei 2026-07-10) */

/* ===== Fun: chalk dust + hold confetti + logo dyno ===== */
.chalk {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244,242,246,0.9);
  filter: blur(1px);
  pointer-events: none;
  z-index: 60;
  will-change: transform, opacity;
}

.hold-confetti {
  position: fixed;
  top: 0;
  pointer-events: none;
  z-index: 60;
  will-change: transform, opacity;
}

.hero-logo { cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes dyno {
    0%   { transform: none; }
    25%  { transform: scaleX(1.12) scaleY(0.85) translateY(4px); }
    55%  { transform: scaleX(0.94) scaleY(1.08) translateY(-26px); }
    80%  { transform: scaleY(0.94) translateY(2px); }
    100% { transform: none; }
  }

  /* opacity:1 keeps the logo visible while .dyno replaces the entrance
     animation's forwards fill */
  .hero-logo.dyno {
    animation: dyno 0.7s cubic-bezier(0.3, 0.6, 0.4, 1);
    opacity: 1;
  }
}

/* ===== Ambient chalk motes ===== */
.motes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mote {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: #f4f2f6;
  filter: blur(0.5px);
  will-change: transform;
}

/* ===== Stats strip ===== */
.stats-section { padding-block: 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
  text-align: center;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label { font-weight: 600; }

.stat-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .stats-grid .stat:nth-child(2) { --rd: 0.1s; }
  .stats-grid .stat:nth-child(3) { --rd: 0.2s; }
  .stats-grid .stat:nth-child(4) { --rd: 0.3s; }
}

/* ===== Services — premium editorial sections ===== */
#services { padding-block: 64px 0; }

.services-lead {
  color: var(--muted);
  max-width: 46ch;
  margin-top: -8px;
}

.service { padding-block: 56px; }

.service-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.svc-kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.service h3 { font-size: 1.65rem; font-weight: 800; line-height: 1.2; }

.svc-intro {
  color: var(--muted);
  margin: 12px 0 18px;
  max-width: 48ch;
}

.svc-points {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.svc-points li {
  position: relative;
  padding-inline-start: 22px;
}

.svc-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 58% 42% 55% 45% / 45% 60% 40% 55%;
  background: var(--accent);
}

.btn-small { font-size: 0.95rem; padding: 11px 26px; }

@media (min-width: 900px) {
  .service { padding-block: 84px; }
  .service h3 { font-size: 2.1rem; }
  .service-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .service.alt .service-text { order: 2; }
  .service.alt .service-visual { order: 1; }
}

/* ===== Device mockups ===== */
.device {
  background: #141019;
  border: 1px solid rgba(177,108,232,0.16);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.45;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1424;
  border-bottom: 1px solid #241c31;
}

.win-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3346; }
.win-bar span:first-child { background: rgba(177,108,232,0.55); }

.win-bar em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.66rem;
  margin-inline-start: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-body { padding: 14px; display: grid; gap: 10px; }

.ui-panel { background: #1b1526; border-radius: 10px; padding: 10px 12px; }
.ui-panel h4 { font-size: 0.68rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }

.ui-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #221a2f;
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 6px;
}

.ui-row:first-of-type { margin-top: 0; }
.ui-panel .ui-row { background: #281f38; }

.ui-chip {
  font-style: normal;
  background: rgba(177,108,232,0.16);
  color: #cfa9f5;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.62rem;
  white-space: nowrap;
}

.ui-chip.ok { background: rgba(74,222,128,0.13); color: #86efac; }

.ui-bar { height: 6px; background: #2a2138; border-radius: 3px; overflow: hidden; }
.ui-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.ui-note { color: var(--muted); font-size: 0.64rem; margin-top: 6px; }

.week-pills { display: flex; gap: 6px; margin-bottom: 8px; }

.week-pills b {
  flex: 1;
  text-align: center;
  background: #281f38;
  border-radius: 8px;
  padding: 4px 0;
  font-weight: 600;
  font-size: 0.62rem;
  color: var(--muted);
}

.week-pills b.on { background: var(--accent); color: #170e20; }

.ui-video {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2b2140, #1a1428);
  border-radius: 10px;
}

.ui-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(244,242,246,0.75);
  font-size: 1.1rem;
}

.ui-video span {
  position: absolute;
  top: 6px;
  inset-inline-start: 8px;
  font-size: 0.6rem;
  color: var(--muted);
  background: rgba(14,11,18,0.55);
  border-radius: 6px;
  padding: 1px 6px;
  z-index: 1;
}

.ui-video.sm { aspect-ratio: 16 / 9; }

.scrubber { position: relative; height: 14px; }
.scrubber i { position: absolute; inset-inline: 2px; top: 6px; height: 3px; background: #2a2138; border-radius: 2px; }
.scrubber b { position: absolute; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #4a3d5e; }
.scrubber u { position: absolute; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.gauge { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 6px; }
.gauge span { font-size: 0.66rem; }
.gauge b { font-size: 0.62rem; color: var(--muted); font-weight: 600; }

.stepper { display: flex; gap: 5px; margin-bottom: 6px; }
.stepper b { flex: 1; height: 5px; border-radius: 3px; background: #2a2138; }
.stepper b.on { background: var(--accent); }

/* Remote: laptop + phone stack */
.visual-stack { position: relative; padding-bottom: 64px; }

.phone {
  position: absolute;
  bottom: 0;
  inset-inline-end: -4px;
  width: min(46%, 210px);
  background: #141019;
  border: 1px solid rgba(177,108,232,0.22);
  border-radius: 20px;
  padding: 12px 10px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.55);
  font-size: 0.64rem;
  line-height: 1.4;
}

.bubble { background: #221a2f; border-radius: 12px; padding: 8px; margin-top: 8px; }
.bubble:first-child { margin-top: 0; }
.bubble.me { background: rgba(177,108,232,0.18); }
.bubble p { margin-top: 6px; }

/* ===== Workflow steps ===== */
.steps { display: grid; gap: 22px; margin-top: 8px; }

.step { text-align: center; max-width: 260px; margin-inline: auto; }

.step-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1b1526;
  border: 1px solid rgba(177,108,232,0.35);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step-ico svg { width: 21px; height: 21px; }

.step h4 { font-size: 0.98rem; font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.85rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: 23px;
    inset-inline: 8%;
    border-top: 2px dashed rgba(177,108,232,0.28);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .service-visual .device { animation: float 7s ease-in-out infinite alternate; }
  .service-visual .phone { animation: float 7s ease-in-out 1.2s infinite alternate; }

  @keyframes float {
    from { transform: translateY(0); }
    to   { transform: translateY(-9px); }
  }

  .steps .step:nth-child(2) { --rd: 0.1s; }
  .steps .step:nth-child(3) { --rd: 0.2s; }
  .steps .step:nth-child(4) { --rd: 0.3s; }
  .steps .step:nth-child(5) { --rd: 0.4s; }
}

/* ===== Sheets-style mockups (mirror Roei's real files) ===== */
.sheet-body {
  background: #fbfbfd;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  line-height: 1.45;
  padding: 12px 12px 0;
  display: grid;
  gap: 7px;
}

.sh-head {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sh-head b {
  background: #eef0f4;
  border: 1px solid #e0e2e8;
  border-radius: 4px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 0.68rem;
}

.sh-goal { color: #5f6368; font-size: 0.66rem; }

.sh-band {
  background: #1f1434;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.66rem;
}

.sh-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #eadfc8;
  border-radius: 4px;
  padding: 5px 8px;
  background: #f7efdf;
}

.sh-row b { font-size: 0.66rem; white-space: nowrap; }
.sh-row span { color: #5f6368; font-size: 0.62rem; }

.sh-row i {
  font-style: normal;
  background: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.6rem;
  color: #444;
  white-space: nowrap;
}

.sh-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.sh-cell {
  border: 1px solid #e8eaee;
  border-radius: 4px;
  background: #fff;
  padding: 5px 8px;
}

.sh-cell u {
  display: block;
  text-decoration: none;
  color: #5f6368;
  font-size: 0.6rem;
  margin-bottom: 2px;
}

.sh-cell b { font-size: 0.68rem; }

.sh-stamp { color: #188038; font-size: 0.62rem; }

.sheet-tabs {
  display: flex;
  gap: 2px;
  border-top: 1px solid #e0e2e8;
  background: #f1f3f6;
  margin-inline: -12px;
  padding: 4px 10px 5px;
}

.sheet-tabs b {
  font-weight: 600;
  font-size: 0.6rem;
  color: #5f6368;
  padding: 3px 10px;
  border-radius: 5px 5px 0 0;
}

.sheet-tabs b.on {
  background: #fff;
  color: #188038;
  box-shadow: 0 -1px 0 #e0e2e8 inset;
}


/* Sheets: sets/reps table (Roei's real column structure) */
.sh-table {
  display: grid;
  border: 1px solid #eadfc8;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.58rem;
}

.sh-table b {
  background: #1f1434;
  color: #fff;
  font-weight: 600;
  padding: 4px 6px;
}

.sh-table span {
  background: #f7efdf;
  padding: 4px 6px;
  border-top: 1px solid #efe6d2;
  color: #202124;
}

/* Sheets: weekly schedule strip (Iluz-style colors) */
.sh-sched {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e0d9ee;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.6rem;
  text-align: center;
}

.sh-sched b {
  background: #1f1434;
  color: #fff;
  font-weight: 700;
  padding: 3px 4px;
}

.sh-sched b small { display: block; font-weight: 400; opacity: 0.75; }

.sh-sched span {
  background: #f7efdf;
  padding: 4px;
  border-top: 1px solid #efe6d2;
  min-height: 1.6em;
  color: #202124;
}

.sh-sched i {
  font-style: normal;
  background: #d9d2e9;
  padding: 3px 4px;
  border-top: 1px solid #cec4e3;
  color: #3f3457;
}

/* Sheets: lavender coach-notes row */
.sh-lav {
  background: #d9d2e9;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.62rem;
  color: #3f3457;
}

/* Brighter outline on sheet windows (per Roei) */
.device.sheet {
  border-color: rgba(177,108,232,0.42);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 24px rgba(177,108,232,0.14);
}

/* Instagram links */
.btn-insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-insta svg { width: 18px; height: 18px; }

.footer-insta { color: var(--accent); text-decoration: none; }
.footer-insta:hover { text-decoration: underline; }

/* Reveal stagger for gallery rows 7-9 */
@media (prefers-reduced-motion: no-preference) {
  .gallery-grid img:nth-child(7) { --rd: 0.08s; }
  .gallery-grid img:nth-child(8) { --rd: 0.16s; }
  .gallery-grid img:nth-child(9) { --rd: 0.24s; }
}

/* Crop from the top for portrait shots where the action is high in frame */
.gallery-grid img.pos-top { object-position: center top; }

/* Workflow CTA */
.workflow-cta { text-align: center; margin-top: 40px; }

/* ===== Campus Climber game ===== */
.game-lead { color: var(--muted); max-width: 46ch; margin-top: -8px; }

.game-wrap {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  max-width: 720px;
}

@media (min-width: 700px) {
  .game-wrap { grid-template-columns: 1fr 1fr; align-items: center; }
}

.board {
  position: relative;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #eadfc0, #ddc99b);
  border: 1px solid rgba(177,108,232,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.rungs { position: absolute; inset: 0; transition: transform 0.28s ease; }

.rung {
  position: absolute;
  inset-inline: 12%;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f3ecd8, #cbb586);
  box-shadow: 0 3px 4px rgba(90,70,30,0.35);
}

.climber {
  position: absolute;
  bottom: 42px;
  left: 50%;
  width: 58px;
  height: 58px;
  margin-left: -29px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.8, 1);
}

.climber.hop { animation: hop 0.28s ease; }

@keyframes hop {
  40% { transform: translateY(-14px) scale(1.07); }
  100% { transform: none; }
}

.climber.fall { transform: translateY(420px) rotate(200deg); }

.game-ui { display: grid; gap: 14px; justify-items: center; text-align: center; }

.game-score { font-weight: 600; }
.game-score span { color: var(--accent); font-weight: 800; }

.timing {
  position: relative;
  width: 100%;
  height: 26px;
  background: var(--surface);
  border: 1px solid rgba(177,108,232,0.3);
  border-radius: 999px;
  overflow: hidden;
}

.zone {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(177,108,232,0.45);
  border-inline: 2px solid var(--accent);
}

.marker {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 5px;
  border-radius: 3px;
  background: #f4f2f6;
  box-shadow: 0 0 10px rgba(244,242,246,0.8);
}

.g-share { font-size: 0.9rem; }

/* Rung numbers — engraved into the wood, both ends */
.rung {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 7px;
}

.rung span {
  font-size: 9px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  line-height: 1;
  color: rgba(88, 66, 28, 0.55);
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.5);
  user-select: none;
}

/* Personal-best rung */
.rung.best { outline: 2px solid rgba(109, 63, 176, 0.85); outline-offset: 1px; }

.rung.best span {
  color: #6d3fb0;
  text-shadow: 0 0 6px rgba(109, 63, 176, 0.7);
}

/* ===== Leaderboard ===== */
.lb {
  max-width: 720px;
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid rgba(177,108,232,0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.lb h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }

.lb ol { list-style: none; display: grid; gap: 6px; counter-reset: rank; }

.lb li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  counter-increment: rank;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(177,108,232,0.06);
}

.lb li::before {
  content: counter(rank) ".";
  color: var(--muted);
  min-width: 1.6em;
  font-weight: 600;
}

.lb li b { margin-inline-end: auto; font-weight: 600; }
.lb li span { color: var(--accent); font-weight: 800; }

.lb li:nth-child(1) { background: rgba(177,108,232,0.22); }
.lb li:nth-child(2) { background: rgba(177,108,232,0.14); }
.lb li:nth-child(3) { background: rgba(177,108,232,0.1); }

.lb-empty { color: var(--muted); font-size: 0.9rem; }

.lb-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.lb-form input {
  background: var(--surface);
  border: 1px solid rgba(177,108,232,0.4);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  width: 170px;
}

.lb-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.lb-form[hidden], .lb[hidden] { display: none; }

/* Podium (top 3) */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 14px;
}

.pod {
  flex: 1;
  max-width: 140px;
  text-align: center;
  display: grid;
  gap: 2px;
}

.pod em { font-style: normal; font-size: 1.5rem; }
.pod b { font-weight: 700; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod span { color: var(--muted); font-size: 0.75rem; }

.pod i {
  font-style: normal;
  margin-top: 6px;
  border-radius: 10px 10px 0 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #170e20;
}

.pod.p1 i { height: 64px; background: var(--accent); }
.pod.p2 i { height: 44px; background: rgba(177,108,232,0.55); }
.pod.p3 i { height: 30px; background: rgba(177,108,232,0.35); }

/* ranks 4-5 continue below the podium */
.lb ol { counter-reset: rank 3; }
