/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --bg: #000000; --panel: #111111;
  --border: rgba(201,164,76,0.12); --border-h: rgba(201,164,76,0.28);
  --text: #F4F1E8; --text-sec: #E8E4DA; --text-muted: #CFC9BC;
  --gold: #C9A44C; --gold-glow: rgba(201,164,76,0.22);
  --font-serif: 'Cinzel Decorative', serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); overflow-x: hidden; }
.sk-main { margin-top: 0; }
.sk-container { max-width: 1180px; margin: 0 auto; padding: clamp(3rem,7vw,6rem) clamp(1.25rem,4vw,3rem); }

.sk-eyebrow { display: block; font-family: var(--font-tech); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 0.75rem; }
.sk-sec-title { font-family: var(--font-serif); font-size: clamp(2rem,4vw,3.25rem); font-weight: 700; color: var(--text); margin: 0 0 1.5rem; line-height: 1.15; }
.sk-hero__subtitle { font-family: var(--font-tech); font-size: clamp(0.85rem,1.8vw,1.1rem); text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 1.5rem; }
.sk-sec-lead { font-size: clamp(1.05rem,2vw,1.2rem); line-height: 1.65; color: var(--text-sec); max-width: 780px; margin-bottom: 3rem; }

.sk-hero { position: relative; min-height: 100vh; padding-top: 72px; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--border); }
.sk-wl-section { border-top: 1px solid var(--border); background: var(--bg); }
.sk-wl-section.alt-bg { background: #000000; }

.sk-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sk-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0,0.38) 0%, rgba(0, 0, 0,0.80) 100%);
  z-index: 1;
}

.sk-hero > .sk-container { position: relative; z-index: 2; }


@keyframes logIn { to { opacity: 1; } }

/* ─── Principle Grid ─────────────────────────────────────── */
.sk-principle-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 1rem; }
.principle-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 0;
  padding: 2.4rem 2rem; position: relative; overflow: hidden;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.principle-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 300ms ease;
}
.principle-card:hover { border-color: var(--border-h); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.principle-card:hover::after { opacity: 1; }
.pc-index { font-family: var(--font-tech); font-size: 2rem; font-weight: 700; color: rgba(201,164,76,0.18); display: block; margin-bottom: 1rem; }
.pc-title { font-family: var(--font-tech); font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 1rem; }
.pc-copy { font-size: 0.92rem; line-height: 1.65; color: var(--text-sec); margin: 0; }

/* ─── Training Rhythm Dashboard ────────────────────────── */
.sk-rhythm-dashboard {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.rhythm-days-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rhythm-day-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem 1.2rem;
  cursor: pointer;
  position: relative;
  transition: all 250ms ease;
  overflow: hidden;
}

.rhythm-day-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 250ms ease;
}

.rhythm-day-card:hover,
.rhythm-day-card.active {
  background: rgba(201, 164, 76, 0.03);
  border-color: var(--border-h);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.rhythm-day-card.active::before {
  opacity: 1;
}

.day-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 250ms ease;
}

.rhythm-day-card:hover .day-indicator,
.rhythm-day-card.active .day-indicator {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.day-brief {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}

.day-lbl {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.day-name {
  font-size: 0.75rem;
  color: var(--text-sec);
}

.day-badge {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
}

.day-badge.training {
  color: var(--gold);
  background: rgba(201, 164, 76, 0.08);
  border: 1px solid rgba(201, 164, 76, 0.15);
}

.day-badge.rest {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.day-badge.cardio {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.15);
}

/* Right Detail Panel */
.rhythm-detail-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.rhythm-detail-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(201, 164, 76, 0) 0%, transparent 70%);
  pointer-events: none;
}

.detail-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-day-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
}

.detail-session-type {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.detail-metrics-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.detail-metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 0;
  padding: 1rem 1.2rem;
}

.detail-metric-card .dm-label {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-metric-card .dm-text-val {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.detail-metric-card .dm-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-sec);
  margin: 0;
}

.dm-intensity-gauge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dm-intensity-bar-wrap {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  overflow: hidden;
}

.dm-intensity-bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 0;
  transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-intensity-val {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 55px;
  text-align: right;
}

/* Detail Visualizer */
.detail-visualizer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.visualizer-label {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  align-self: flex-start;
}

.muscle-map-container {
  width: 100%;
  height: 260px;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

.muscle-map-svg {
  height: 100%;
  max-width: 100%;
}

.muscle-group {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-linecap: round;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

line.muscle-group {
  fill: none;
}

.muscle-group.active {
  stroke: var(--gold);
  fill: rgba(201, 164, 76, 0.15);
  filter: drop-shadow(0 0 4px var(--gold));
}

line.muscle-group.active {
  fill: none;
}

/* ─── PR Bars ────────────────────────────────────────────── */
.sk-pr-bars { display: flex; flex-direction: column; gap: 1.8rem; margin-top: 1rem; }
.pr-row { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: center; }
.pr-info { display: flex; flex-direction: column; gap: 0.2rem; }
.pr-lift { font-family: var(--font-tech); font-size: 1rem; font-weight: 700; color: var(--text); }
.pr-style { font-family: var(--font-tech); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.pr-track-wrap { display: flex; align-items: center; gap: 1.2rem; }
.pr-track { flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 0; overflow: hidden; }
.pr-fill { height: 100%; width: 0; border-radius: 0; background: linear-gradient(90deg, var(--gold), rgba(201,164,76,0.6)); transition: width 1100ms cubic-bezier(0.22,1,0.36,1); }
.pr-kg { font-family: var(--font-tech); font-size: 1.1rem; font-weight: 700; color: var(--gold); white-space: nowrap; min-width: 60px; text-align: right; }

/* ─── Fuel Grid ──────────────────────────────────────────── */
.sk-fuel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}
.fuel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 300ms ease;
}
.fuel-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.fuel-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.fuel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.fuel-card:hover .fuel-img {
  transform: scale(1.05);
}
.fuel-macro-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0,0.9) 0%, rgba(0, 0, 0,0.4) 60%, transparent 100%);
  padding: 1rem 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.macro-badge {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-sec);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.macro-badge.kcal {
  color: var(--gold);
  background: rgba(201, 164, 76, 0.08);
  border-color: rgba(201, 164, 76, 0.15);
  margin-left: auto;
}
.fuel-content {
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}
.fuel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fuel-index {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.fuel-tag {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(201,164,76,0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  border: 1px solid rgba(201,164,76,0.15);
  align-self: initial;
}
.fuel-title {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.fuel-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-sec);
  margin: 0;
  flex: none;
}


/* ─── Nav Cards ──────────────────────────────────────────── */
.sk-wl-nav { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 0; overflow: hidden; margin-top: 3.5rem; }
.sk-nav-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.8rem; background: var(--panel); border-bottom: 1px solid var(--border); text-decoration: none; transition: background 250ms ease; }
.sk-nav-card:last-child { border-bottom: none; }
.sk-nav-card:hover { background: #181818; }
.sk-nav-card.back { opacity: 0.7; }
.sk-nav-card.back:hover { opacity: 1; }
.nav-card-arrow { font-size: 1.1rem; color: var(--gold); flex-shrink: 0; transition: transform 240ms ease; }
.sk-nav-card:hover:not(.back) .nav-card-arrow { transform: translateX(3px); }
.sk-nav-card.back:hover .nav-card-arrow { transform: translateX(-3px); }
.nav-card-text { display: flex; flex-direction: column; gap: 0.2rem; }
.nav-card-label { font-family: var(--font-tech); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.nav-card-title { font-family: var(--font-tech); font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ─── Kinematic Lift Simulator ───────────────────────────── */
.sk-kinematics-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(0,0,0,0.5);
  margin-top: 1.5rem;
}
.kin-sidebar {
  padding: 1.8rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #000000;
}
.kin-panel-title {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0;
}
.kin-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.control-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.sk-select {
  width: 100%;
  background: #181818;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  border-radius: 0;
  outline: none;
  transition: border-color 200ms ease;
}
.sk-select:focus {
  border-color: var(--gold);
}
.slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sk-slider {
  flex: 1;
  accent-color: var(--gold);
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
}
.slider-display-val {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 60px;
}
.kin-telemetry {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.telemetry-title {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}
.telemetry-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.energy-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0.8rem;
  margin-top: -0.2rem;
}
.energy-bar-fill {
  height: 100%;
  width: 100%;
  background: #2ecc71;
  border-radius: 0;
  transition: width 150ms linear, background-color 150ms linear;
}
.tel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-tech);
}
.tel-lbl {
  font-size: 0.62rem;
  color: var(--text-muted);
}
.tel-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sec);
}
.engine-actions {
  margin-top: 0.5rem;
}
.sk-btn {
  width: 100%;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 250ms ease;
  border: 1px solid transparent;
  text-align: center;
}
.sk-btn--primary {
  background: var(--gold);
  color: #000;
}
.sk-btn--primary:hover {
  background: #e5bd5c;
  box-shadow: 0 0 15px rgba(201,164,76,0.3);
}

.kin-viewport {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 400px;
}
.viewport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.6rem;
  background: #000000;
  border-bottom: 1px solid var(--border);
}
.viewport-title {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-sec);
}
.live-status-tag {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201,164,76,0.08);
  border: 1px solid rgba(201,164,76,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 0;
  letter-spacing: 0.05em;
}

.viewport-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 1.5rem;
  gap: 1.5rem;
  background: #000000;
}
.skeleton-container, .vel-chart-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chart-label {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.chart-legend {
  display: flex;
  gap: 0.6rem;
  font-family: var(--font-tech);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-sec);
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.skeleton-canvas-wrap, .vel-chart-wrap {
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.8rem;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.skeleton-svg, .vel-chart-svg {
  width: 100%;
  height: 100%;
}

/* Biomechanical Model Graphics Styles */
.bone-line {
  stroke-linecap: round;
  transition: all 40ms linear;
}
.bone-joint {
  fill: #fff;
  stroke-width: 1.5;
  transition: all 40ms linear;
}
.bone-joint.strain-low { stroke: #2ecc71; fill: #2ecc71; }
.bone-joint.strain-med { stroke: #f1c40f; fill: #f1c40f; }
.bone-joint.strain-high { stroke: #e74c3c; fill: #e74c3c; filter: drop-shadow(0 0 3px #e74c3c); }

.barbell-shaft {
  stroke: #CFC9BC;
  stroke-width: 3;
}
.barbell-plate {
  rx: 1.5;
  transition: all 40ms linear;
}
.barbell-plate.gold { fill: var(--gold); }
.barbell-plate.iron { fill: #444; }

/* Velocity Graph Styles */
.chart-grid { stroke: rgba(255,255,255,0.02); stroke-width: 1; }
.chart-axis { stroke: rgba(255,255,255,0.08); stroke-width: 1.5; }
.chart-text { font-family: var(--font-tech); font-size: 7px; fill: var(--text-muted); }
.vel-trace-path {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.45;
  transition: opacity 250ms ease, stroke-width 250ms ease;
}
.vel-trace-path.active {
  stroke-width: 3.2;
  opacity: 1;
}
.vel-tracker-dot {
  fill: #fff;
  stroke-width: 2;
  transition: cx 50ms linear, cy 50ms linear;
}

.kin-feedback-console {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  color: var(--text-muted);
  min-height: 45px;
  display: flex;
  align-items: center;
}
.kin-log-highlight { color: var(--gold); }
.kin-log-failed { color: #e74c3c; }
.kin-log-success { color: #2ecc71; }

/* ─── Royal Divider Pattern ───────────────────────────────── */
.sk-royal-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  background: var(--bg);
}

.sk-royal-divider-svg {
  width: 100%;
  max-width: 1180px;
  height: auto;
  max-height: 40px;
}

/* ─── Gallery Accordion ───────────────────────────────────── */
.sk-gallery-strip {
  padding: 0;
  background: #000;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-accordion {
  display: flex;
  width: 100%;
  height: 380px;
  background: #000;
}

.gallery-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border-right: 1px solid var(--border);
}

.gallery-card:last-child {
  border-right: none;
}

.gallery-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}



/* ─── Accordion Label Overlay ────────────────────────────── */
.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  opacity: 1;
  transform: none;
  transition: padding 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}



.overlay-text h3 {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.95);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}



.overlay-text p {
  font-family: var(--font-sans);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

.sk-food-desc {
  font-family: var(--font-sans) !important;
  color: var(--text-sec) !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 0.5rem 0 0.8rem 0 !important;
  line-height: 1.4 !important;
}

.sk-food-macros {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.sk-food-index {
  font-family: var(--font-tech) !important;
  color: var(--gold) !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-top: 0.4rem !important;
}

/* Hide accordion details by default, reveal them on card hover */
.overlay-text p,
.sk-food-desc,
.sk-food-macros,
.sk-food-index {
  opacity: 0;
  max-height: 0;
  transform: translateY(15px);
  margin: 0 !important;
  overflow: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              margin 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Desktop Hover Interactions (Screens wider than 768px) */
@media (min-width: 769px) {
  .gallery-card:hover {
    flex: 2.5;
  }
  
  .gallery-card:hover img {
    transform: scale(1.04);
  }
  
  .gallery-card:hover .overlay-text {
    padding: 2.4rem 1.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  }

  .gallery-card:hover .overlay-text h3 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
  }

  .gallery-card:hover .overlay-text p {
    opacity: 1;
    max-height: 50px;
    transform: translateY(0);
    margin-top: 0.2rem !important;
  }

  .gallery-card:hover .sk-food-desc {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
    margin: 0.5rem 0 0.8rem 0 !important;
  }

  .gallery-card:hover .sk-food-macros {
    opacity: 1;
    max-height: 50px;
    transform: translateY(0);
    margin-bottom: 0.6rem !important;
  }

  .gallery-card:hover .sk-food-index {
    opacity: 1;
    max-height: 30px;
    transform: translateY(0);
    margin-top: 0.4rem !important;
  }
}

/* Customizations JUST for the food section background and gap */
#wl-fuel .sk-royal-divider {
  background: #000000;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

#wl-fuel .sk-gallery-strip {
  background: #000000;
  border-top: 1px solid rgba(201, 164, 76, 0.08);
  border-bottom: 1px solid rgba(201, 164, 76, 0.08);
}

#wl-fuel .gallery-accordion {
  background: #000000;
}

#wl-fuel > .sk-container:first-of-type {
  padding-bottom: 1rem;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .sk-principle-grid { grid-template-columns: 1fr; }
  .sk-fuel-grid { grid-template-columns: 1fr; }
  .pr-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .sk-kinematics-panel { grid-template-columns: 1fr; }
  .kin-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .viewport-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gallery-accordion {
    flex-direction: column;
    height: auto;
  }
  .gallery-card {
    flex: none;
    width: 100%;
    height: 320px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .gallery-card:last-child {
    border-bottom: none;
  }
  .overlay-text {
    opacity: 1 !important;
    transform: none !important;
    padding: 1.5rem !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.7) 80%, transparent 100%) !important;
  }
  .overlay-text h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.4rem !important;
  }
  .overlay-text p,
  .sk-food-desc,
  .sk-food-macros,
  .sk-food-index {
    opacity: 1 !important;
    max-height: none !important;
    transform: none !important;
    margin: revert !important;
  }
  .sk-food-desc {
    margin: 0.4rem 0 0.6rem 0 !important;
  }
  .sk-food-macros {
    margin-bottom: 0.5rem !important;
  }
  .sk-food-index {
    margin-top: 0.3rem !important;
  }
}
@media (max-width: 700px) {
  .sk-week-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 480px) {
  .sk-week-grid { grid-template-columns: repeat(2,1fr); }
}
