/* =========================================================================
   ASWHA RACING: SUSPENSION & ADMIN
   Vanilla CSS | Custom Editoral Layout
   ========================================================================= */

:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #111111;
  --red: #E50000;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --border-color: #1f2937;

  --font-body: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.susp-body {
  background-color: var(--bg-dark);
  color: var(--text-gray);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.susp-section-title {
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  line-height: 0.9;
}

.susp-section-title em {
  font-style: italic;
  color: var(--red);
  display: block;
}

.susp-accent-title {
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 0.9;
}

.susp-accent-title em {
  font-style: italic;
  color: var(--red);
  display: block;
}

.susp-p {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  text-align: justify;
  margin-bottom: 1.5rem;
  color: var(--text-gray);
}

.mt-4 {
  margin-top: 2rem;
}

.bg-darker {
  background-color: var(--bg-darker);
}

/* =========================================================================
   LAYOUT UTILITIES
   ========================================================================= */
.susp-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

section {
  padding: 6rem 2rem;
  width: 100%;
}

@media (min-width: 1024px) {
  section {
    padding: 8rem 4rem;
  }
}

/* =========================================================================
   SECTION 1: HERO (Redesigned — Bulletproof Centering)
   ========================================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../../../assets/images/team/2012.jpg') no-repeat center center;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.7) 40%, rgba(17, 17, 17, 0.2) 100%);
}

/* The centering container — uses grid place-items for dead-center */
.hero__center {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 2rem;
}

/* Inner content wrapper generated by grid */
.hero__center>* {
  grid-column: 1;
  grid-row: 1;
}

/* Stack children vertically in the center cell */
.hero__center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__tag {
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
  text-align: center;
  width: 100%;
}

.hero__title {
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.85;
  margin: 0 0 2rem 0;
  text-align: center;
  width: 100%;
}

.hero__title em {
  font-style: italic;
  color: var(--red);
  display: block;
}

.hero__quote {
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
  text-align: center;
  max-width: 700px;
  width: 100%;
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: var(--text-gray);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll:hover {
  color: var(--red);
  transform: translateX(-50%) translateY(3px);
}

.hero__scroll i {
  animation: bounceArrow 2s infinite;
}

/* =========================================================================
   SECTION 2: MATH OF GRIP (50/50 Split)
   ========================================================================= */
.split-50-50 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .split-50-50 {
    grid-template-columns: 1fr 1fr;
  }
}

.math-left {
  display: flex;
  flex-direction: column;
}

.math-card {
  background-color: #000000;
  border-radius: 12px;
  padding: 3rem;
  border: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.math-right {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-content: center;
  padding-left: 2rem;
}

.math-rule {
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
  transition: all 0.3s ease;
  cursor: default;
}

.math-rule:hover {
  transform: translateX(8px);
  border-left-width: 4px;
}

.rule-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.math-rule:hover .rule-label {
  color: var(--red);
}

.rule-target-value {
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}

.rule-desc {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 300;
  line-height: 1.7;
  text-align: left;
}

/* =========================================================================
   SECTION 3: TELEMETRY HUD
   ========================================================================= */
.hud-section {
  position: relative;
  margin: 6rem 0;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-image-wrapper {
  width: 80%;
  position: relative;
  margin: 0 auto;
}

.hud-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.2);
  transition: filter 1.5s ease, box-shadow 1.5s ease;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.hud-section.active .hud-img {
  filter: grayscale(0%) brightness(1);
  box-shadow: 0 0 40px rgba(229, 0, 0, 0.3);
}

.hud-img:active {
  box-shadow: 0 10px 40px rgba(229, 0, 0, 0.5) !important;
}

.hud-nodes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.data-node {
  position: absolute;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  width: 260px;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.node-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-white);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.node-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Node Positions: each in its own corner */
.node-1 {
  top: 3%;
  left: 2%;
  transform: translateY(-30px);
}

.node-2 {
  top: 3%;
  right: 2%;
  transform: translateX(30px);
}

.node-3 {
  bottom: 3%;
  right: 2%;
  transform: translateY(30px);
}

/* HUD Activation States */
.hud-section.active .node-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hud-section.active .node-2 {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.8s;
}

.hud-section.active .node-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}

/* Responsive Stacking < 968px */
@media (max-width: 968px) {
  .hud-section {
    margin: 4rem 0;
  }

  .hud-image-wrapper {
    width: 100%;
    margin-bottom: 2rem;
  }

  .hud-nodes-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
    pointer-events: auto;
  }

  .data-node {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    opacity: 0;
    transform: translateY(20px);
  }

  .node-1,
  .node-2,
  .node-3 {
    transform: translateY(20px);
  }

  .hud-section.active .node-1,
  .hud-section.active .node-2,
  .hud-section.active .node-3 {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   SECTION 4: DYNAMIC TEARDOWN (60/40 Split)
   ========================================================================= */
.split-60-40 {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media(min-width: 1024px) {
  .split-60-40 {
    flex-direction: row;
    align-items: flex-start;
  }

  .anatomy-image-wrap {
    width: 60%;
    position: sticky;
    top: 4rem;
  }

  .anatomy-ledger-wrap {
    width: 40%;
  }
}

.anatomy-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.anatomy-img:active {
  box-shadow: 0 10px 40px rgba(229, 0, 0, 0.3);
}

.parts-ledger {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

.ledger-card {
  background-color: #1a1a1a;
  border-radius: 6px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  cursor: default;
}

.ledger-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(229, 0, 0, 0.1);
}

.ledger-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ledger-tag {
  background: var(--red);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.ledger-card:hover .ledger-tag {
  transform: scale(1.05);
}

.ledger-title {
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.ledger-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-gray);
  text-align: justify;
}

/* =========================================================================
   SECTION 5: VALIDATION & TOPOLOGY
   ========================================================================= */
.dual-pane {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media(min-width: 1024px) {
  .dual-pane {
    grid-template-columns: 1fr 1fr;
  }
}

.val-pane {
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
}

.val-pane:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(229, 0, 0, 0.15);
}

.val-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.val-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

.val-pane:hover .val-img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.val-text {
  padding: 3rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.val-text .susp-p {
  margin-bottom: 0;
}

.anatomy-img:active {
  box-shadow: 0 10px 40px rgba(229, 0, 0, 0.3);
}

/* =========================================================================
   INTERACTIVE SPRING (HERO)
   ========================================================================= */
.spring-mount {
  width: 44px;
  height: 12px;
  background: #222;
  border-radius: 4px;
  border: 1px solid #444;
}

.bottom-mount {
  height: auto;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--red);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(229, 0, 0, 0.4);
  cursor: grab;
  user-select: none;
  appearance: none;
  touch-action: none;
  /* Prevents whole screen scrolling on mobile when dragging */
  border: none;
  border-radius: 6px;
  margin-top: -2px;
}

.bottom-mount:active {
  cursor: grabbing;
  box-shadow: 0 2px 8px rgba(229, 0, 0, 0.6);
}

.pull-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

#interactive-spring {
  overflow: visible;
  display: block;
  margin-top: -2px;
}

/* =========================================================================
   MOBILE RESPONSIVE — Compact Layout (≤ 600px)
   Blinkit/Zepto-style: tight padding, smaller fonts, optimal screen usage
   ========================================================================= */
@media (max-width: 768px) {

  /* --- Global Section Padding --- */
  section {
    padding: 3rem 1rem;
  }

  /* --- Typography Scale-Down --- */
  .susp-section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 0.75rem;
    line-height: 1;
  }

  .susp-accent-title {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    margin-bottom: 0.6rem;
  }

  .susp-p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  /* --- Hero Section --- */
  .hero {
    min-height: 85vh;
  }

  .hero__center {
    padding: 0 1rem;
  }

  .hero__tag {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
  }

  .hero__title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    margin-bottom: 1.2rem;
    line-height: 0.9;
  }

  .hero__quote {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .hero__scroll {
    font-size: 0.72rem;
    bottom: 1.5rem;
  }

  /* --- Section 2: Math of Grip --- */
  .split-50-50 {
    gap: 1.5rem;
  }

  .math-card {
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  }

  .math-right {
    padding-left: 0;
    gap: 1.25rem;
  }

  .math-rule {
    padding-left: 0.75rem;
  }

  .rule-label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .rule-target-value {
    font-size: 1.3rem;
  }

  .rule-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* --- Section 3: HUD / Data Nodes --- */
  .hud-section {
    margin: 2rem 0;
    padding: 0 3%;
  }

  .hud-nodes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding-top: 0.75rem;
  }

  .data-node {
    width: 100%;
    padding: 0.75rem;
    border-left-width: 3px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  }

  .node-heading {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
  }

  .node-text {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  /* --- Section 4: Anatomy / Ledger --- */
  .susp-anatomy {
    padding: 3rem 1rem;
  }

  .susp-anatomy .susp-section-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .split-60-40 {
    gap: 1.5rem;
  }

  .parts-ledger {
    max-height: none;
    padding-right: 0;
    gap: 0.5rem;
  }

  .ledger-card {
    padding: 0.85rem;
    border-radius: 6px;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .ledger-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
  }

  .ledger-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .ledger-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: left;
  }

  /* --- Section 5: Validation Panes --- */
  .dual-pane {
    gap: 1rem;
  }

  .val-pane {
    border-radius: 8px;
  }

  .val-text {
    padding: 1.25rem;
  }

  .val-text .susp-section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 0.5rem;
  }

  .val-text .susp-p {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

/* =========================================================================
   SMALL-MEDIUM PHONES (≤ 400px) — Extra compact
   ========================================================================= */
@media (max-width: 480px) {

  section {
    padding: 2.5rem 0.75rem;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero__quote {
    font-size: 0.78rem;
  }

  .susp-section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .math-card {
    padding: 1rem;
  }

  .hud-nodes-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .data-node {
    padding: 0.6rem;
  }

  .node-heading {
    font-size: 0.6rem;
  }

  .node-text {
    font-size: 0.65rem;
  }

  .ledger-card {
    padding: 0.7rem;
  }

  .ledger-title {
    font-size: 0.9rem;
  }

  .ledger-desc {
    font-size: 0.72rem;
  }

  .val-text {
    padding: 1rem;
  }
}