/* ============================================================
   ASHAUTOMATES PORTFOLIO — main_stylesheet.css
   Load order: Bootstrap 5.3 → this file
   ============================================================ */

/* ── Self-hosted Fonts ─────────────────────────────────────── */

/* Space Grotesk */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk/space-grotesk-v22-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk/space-grotesk-v22-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk/space-grotesk-v22-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk/space-grotesk-v22-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk/space-grotesk-v22-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* JetBrains Mono */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-500italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #060a0f;
  --surface:      #0b1118;
  --border:       #141e2a;
  --accent-cyan:        #a855f7;   /* primary bright purple */
  --accent-purple:      #7c3aed;   /* mid purple */
  --accent-purple-deep: #581D78;   /* base deep purple */
  --accent-green:       #c084fc;   /* lighter purple */
  --text:         #e8edf5;
  --muted: #9098ae;

  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    14px;

  --grid-size:    56px;
  --transition:   0.18s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:      var(--font-body);
  background-color: var(--bg);
  color:            var(--text);
  font-size:        19px;
  line-height:      1.65;
  min-height:       100vh;
  overflow-x:       hidden;
  position:         relative;
}

/* ── Global Circuit Pattern Background ─────────────────────── */
body::before {
  content:    '';
  position:   fixed;
  inset:      0;
  z-index:    0;
  pointer-events: none;
  background-image:  url('/assets/images/bg_circuit_pattern.png');
  background-repeat: repeat;
  background-size:   512px 512px;
  opacity:           0.7;
  mix-blend-mode:    screen;
  filter:            blur(1.1px);
}

/* ── Radial Glow ───────────────────────────────────────────── */
body::after {
  content:    '';
  position:   fixed;
  inset:      0;
  z-index:    0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(168, 85, 247, 0.055) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(88, 29, 120, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 35% 30% at 50% 50%, rgba(88, 29, 120, 0.04) 0%, transparent 70%);
}

/* ── Page Wrapper ──────────────────────────────────────────── */
#page_wrapper {
  position:   relative;
  z-index:    1;
  display:    flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 62px;
}

main {
  flex: 1;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color:       var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

p {
  color:       var(--text);
  margin-bottom: 1rem;
}

a {
  color:          var(--accent-cyan);
  text-decoration: none;
  transition:     color var(--transition), opacity var(--transition);
}

a:hover {
  color:   var(--text);
  opacity: 0.85;
}

code, .mono {
  font-family: var(--font-mono);
  font-size:   0.88em;
}

/* ── Navbar ────────────────────────────────────────────────── */
#site_navbar {
  background-color: rgba(6, 10, 15, 0.92);
  backdrop-filter:  blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:    1px solid var(--border);
  position:         fixed;
  left:             0;
  right:            0;
  top:              0;
  z-index:          1000;
  padding:          0.6rem 0;
  opacity:          0.6;
}

.navbar_brand_text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size:   1.5rem;
  color:       var(--accent-cyan) !important;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.navbar_brand_text:hover {
  color:   var(--text) !important;
  opacity: 1;
}

.nav_link {
  font-family:    var(--font-mono);
  font-size:      0.88rem;
  font-weight:    500;
  color:          var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding:        0.4rem 0.75rem !important;
  transition:     color var(--transition);
  position:       relative;
}

.nav_link:hover,
.nav_link.active {
  color: var(--accent-cyan) !important;
}

.nav_link.active::after {
  content:    '';
  position:   absolute;
  bottom:     -2px;
  left:       0.75rem;
  right:      0.75rem;
  height:     1px;
  background: var(--accent-cyan);
}

/* Hamburger toggler */
.navbar-toggler {
  border:  1px solid var(--border) !important;
  padding: 4px 8px;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ── Download CV Button ────────────────────────────────────── */
.btn_cv_download {
  font-family:    var(--font-mono);
  font-size:      0.82rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--accent-cyan) !important;
  border:         1px solid var(--accent-cyan);
  border-radius:  var(--radius-sm);
  padding:        0.4rem 1rem;
  background:     transparent;
  transition:     background var(--transition), color var(--transition);
  white-space:    nowrap;
}

.btn_cv_download:hover {
  background: var(--accent-cyan);
  color:      var(--bg) !important;
}

/* ── Footer ────────────────────────────────────────────────── */
#site_footer {
  background:   transparent;
  border-top:   1px solid var(--border);
  padding:      0.9rem 0;
  margin-top:   auto;
}

.footer_text {
  font-family: var(--font-mono);
  font-size:   0.82rem;
  color:       var(--muted);
  margin:      0;
}

.footer_social_link {
  font-family: var(--font-mono);
  font-size:   0.82rem;
  color:       var(--muted);
  transition:  color var(--transition);
  text-decoration: none;
}

.footer_social_link:hover {
  color: var(--accent-cyan);
}

/* ── Surface / Card ────────────────────────────────────────── */
.surface_card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       1.5rem;
}

.surface_card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  transition:   border-color var(--transition);
}

/* ── Section Layout ────────────────────────────────────────── */
.page_section {
  padding: 3rem 0;
}

.page_section_tight {
  padding: 1.5rem 0;
}

/* Viewport-height sections for single-screen pages */
.vh_section {
  min-height: calc(100vh - 56px - 44px);
  display:    flex;
  align-items: center;
}

/* ── Accent Text Utilities ─────────────────────────────────── */
.text_cyan         { color: var(--accent-cyan);        }
.text_purple       { color: var(--accent-purple);      }
.text_purple_deep  { color: var(--accent-purple-deep); }
.text_green        { color: var(--accent-green);       }
.text_muted        { color: var(--muted);              }

.surface_card.purple_accent {
  border-color: rgba(88, 29, 120, 0.45);
  background:   linear-gradient(135deg, var(--surface) 0%, rgba(88, 29, 120, 0.08) 100%);
}

.surface_card.purple_accent:hover {
  border-color: rgba(88, 29, 120, 0.75);
}

/* ── Role Pills ────────────────────────────────────────────── */
.role_pill {
  display:       inline-block;
  font-family:   var(--font-mono);
  font-size:     0.82rem;
  font-weight:   500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color:         var(--accent-cyan);
  border:        1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-sm);
  padding:       0.28rem 0.75rem;
  background:    rgba(168, 85, 247, 0.06);
}

.role_pill.purple {
  color:        var(--accent-purple);
  border-color: rgba(88, 29, 120, 0.55);
  background:   rgba(88, 29, 120, 0.18);
}

.role_pill.green {
  color:        var(--accent-green);
  border-color: rgba(192, 132, 252, 0.3);
  background:   rgba(192, 132, 252, 0.06);
}

/* ── Skill Tags ────────────────────────────────────────────── */
.skill_tag {
  display:      inline-block;
  font-family:  var(--font-mono);
  font-size:    0.82rem;
  font-weight:  500;
  color:        var(--accent-purple);
  border:       1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  padding:      0.28rem 0.7rem;
  background:   rgba(88, 29, 120, 0.1);
  transition:   color var(--transition), border-color var(--transition), background var(--transition);
}

.skill_tag:hover {
  color:        var(--accent-cyan);
  border-color: rgba(168, 85, 247, 0.55);
  background:   rgba(88, 29, 120, 0.2);
}

/* ── Skill Table (two-column layout) ──────────────────────── */
.skill_row {
  display:       grid;
  grid-template-columns: 220px 1fr;
  align-items:   center;
  gap:           2rem;
  padding:       1rem 0;
  border-bottom: 1px solid var(--border);
}

.skill_row:last-child {
  border-bottom: none;
}

.skill_row_label {
  font-family:    var(--font-mono);
  font-size:      0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--accent-cyan);
}

.skill_row_values {
  font-size:   0.95rem;
  color:       var(--muted);
  line-height: 1.7;
}

/* ── CTA Buttons ───────────────────────────────────────────── */
.btn_primary_cta {
  font-family:    var(--font-mono);
  font-size:      0.84rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--bg) !important;
  background:     var(--accent-cyan);
  border:         none;
  border-radius:  var(--radius-sm);
  padding:        0.6rem 1.4rem;
  transition:     opacity var(--transition);
  text-decoration: none;
  display:        inline-block;
}

.btn_primary_cta:hover {
  opacity: 0.82;
  color:   var(--bg) !important;
}

.btn_outline_cta {
  font-family:    var(--font-mono);
  font-size:      0.84rem;
  font-weight:    500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--text) !important;
  background:     transparent;
  border:         1px solid var(--border);
  border-radius:  var(--radius-sm);
  padding:        0.6rem 1.4rem;
  transition:     border-color var(--transition), color var(--transition);
  text-decoration: none;
  display:        inline-block;
}

.btn_outline_cta:hover {
  border-color: var(--muted);
  color:        var(--text) !important;
}

/* ── Section Label / Eyebrow ───────────────────────────────── */
.section_eyebrow {
  font-family:    var(--font-mono);
  font-size:      0.82rem;
  font-weight:    500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color:          var(--accent-cyan);
  margin-bottom:  0.5rem;
  display:        block;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  border:     none;
  border-top: 1px solid var(--border);
  margin:     0;
}

/* ── Timeline (experience.html) ────────────────────────────── */
.timeline_track {
  position:    relative;
  padding-left: 2rem;
}

.timeline_logo_box {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.timeline_logo_box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.1rem;
}

.timeline_track::before {
  content:    '';
  position:   absolute;
  left:       6px;
  top:        6px;
  bottom:     6px;
  width:      1px;
  background: var(--border);
}

.timeline_item {
  position:      relative;
  margin-bottom: 1.75rem;
}

.timeline_period {
  font-family: var(--font-mono);
  font-size:   0.82rem;
  color:       #aab5c6;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  display:     block;
}

.timeline_connector_line {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent-purple);
  z-index: 0;
  transform: translateX(-50%);
}

.timeline_role {
  font-size:   1.05rem;
  font-weight: 600;
  color:       var(--text);
  margin-bottom: 0.2rem;
}

.timeline_desc {
  font-size:  0.92rem;
  color:      var(--muted);
  margin:     0;
  line-height: 1.6;
}

/* ── Project Tabs (projects.html) ──────────────────────────── */
.project_tab_nav {
  display:      flex;
  gap:          0;
  border:       1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow:     hidden;
  width:        fit-content;
  margin-bottom: 1.5rem;
}

.project_tab_btn {
  font-family:    var(--font-mono);
  font-size:      0.82rem;
  font-weight:    500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--muted);
  background:     transparent;
  border:         none;
  padding:        0.55rem 1.3rem;
  cursor:         pointer;
  transition:     background var(--transition), color var(--transition);
}

.project_tab_btn.active {
  background:  var(--accent-purple-deep);
  color:       var(--text);
  border-left: 1px solid rgba(88, 29, 120, 0.6);
}

.project_tab_btn:first-child.active {
  border-left: none;
}

.project_item {
  border-bottom: 1px solid var(--border);
}

.project_item:last-child {
  border-bottom: none;
}

.project_item_header {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  padding:        0.85rem 0;
  cursor:         pointer;
  user-select:    none;
  gap:            1rem;
}

.project_item_header:hover .project_item_title {
  color: var(--accent-cyan);
}

.project_item_title {
  font-size:   1rem;
  font-weight: 500;
  color:       var(--text);
  margin:      0;
  transition:  color var(--transition);
}

.project_item_toggle {
  font-family: var(--font-mono);
  font-size:   0.85rem;
  color:       var(--muted);
  flex-shrink: 0;
  transition:  transform var(--transition);
}

.project_item_toggle.open {
  transform: rotate(180deg);
}

.project_item_body {
  padding:        0 0 1rem;
  font-size:      0.94rem;
  color:          var(--muted);
  line-height:    1.7;
  display:        none;
}

.project_item_body.open {
  display: block;
}

/* ── Project Panel Slide Animations ───────────────────────── */
.panel_slide_in_right {
  animation: slide_in_right 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.panel_slide_in_left {
  animation: slide_in_left 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.panel_slide_out_right {
  animation: slide_out_right 0.22s ease forwards;
}
.panel_slide_out_left {
  animation: slide_out_left 0.22s ease forwards;
}

@keyframes slide_in_right {
  from { opacity: 0; transform: translateX(40px);  }
  to   { opacity: 1; transform: translateX(0);      }
}
@keyframes slide_in_left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0);      }
}
@keyframes slide_out_right {
  from { opacity: 1; transform: translateX(0);      }
  to   { opacity: 0; transform: translateX(40px);  }
}
@keyframes slide_out_left {
  from { opacity: 1; transform: translateX(0);      }
  to   { opacity: 0; transform: translateX(-40px); }
}

/* ── Certification Cards ───────────────────────────────────── */
.cert_card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-md);
  padding:       1.1rem 1.3rem;
  cursor:        pointer;
  transition:    border-color var(--transition);
  text-decoration: none;
  display:       block;
}

.cert_card:hover {
  border-color: rgba(168, 85, 247, 0.35);
}

.cert_name {
  font-size:   1rem;
  font-weight: 600;
  color:       var(--text);
  margin:      0 0 0.3rem;
}

.cert_body {
  font-family: var(--font-mono);
  font-size:   0.82rem;
  color:       var(--muted);
  margin:      0;
}

/* ── Blog List ─────────────────────────────────────────────── */
.blog_item {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  padding:        0.95rem 0;
  border-bottom:  1px solid var(--border);
  text-decoration: none;
  gap:            1rem;
  transition:     color var(--transition);
}

.blog_item:last-child {
  border-bottom: none;
}

.blog_item_title {
  font-size:   1rem;
  font-weight: 500;
  color:       var(--text);
  margin:      0;
  transition:  color var(--transition);
}

.blog_item:hover .blog_item_title {
  color: var(--accent-cyan);
}

.blog_item_arrow {
  font-family: var(--font-mono);
  font-size:   0.9rem;
  color:       var(--muted);
  flex-shrink: 0;
}

/* ── Contact Social Links ──────────────────────────────────── */
.contact_link {
  display:        flex;
  align-items:    center;
  gap:            0.9rem;
  padding:        1.1rem 1.35rem;
  background:     var(--surface);
  border:         1px solid var(--border);
  border-radius:  var(--radius-md);
  text-decoration: none;
  transition:     border-color var(--transition);
}

.contact_link:hover {
  border-color: rgba(168, 85, 247, 0.35);
}

.contact_link_label {
  font-family: var(--font-mono);
  font-size:   0.8rem;
  color:       var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin:      0;
}

.contact_link_handle {
  font-size:   1rem;
  font-weight: 500;
  color:       var(--text);
  margin:      0;
}

/* ── Hero Page (index.html) ────────────────────────────────── */
.hero_ash_heading {
  font-family:    var(--font-mono);
  font-size:      clamp(4.5rem, 12vw, 8.5rem);
  font-weight:    700;
  letter-spacing: 0.04em;
  color:          transparent;
  -webkit-text-stroke: 3px rgba(168, 85, 247, 0.18);
  line-height:    1;
  user-select:    none;
  margin-bottom:  0;
}

.hero_name {
  font-size:   clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  color:       var(--text);
  margin-bottom: 0.15rem;
}

.hero_handle {
  font-family: var(--font-mono);
  font-size:   0.95rem;
  color:       var(--muted);
  margin-bottom: 1rem;
}

.hero_intro {
  font-size:   1rem;
  color:       var(--muted);
  max-width:   38ch;
  line-height: 1.75;
}

/* ── YouTube Embed ─────────────────────────────────────────── */
.video_embed_wrapper {
  position:      relative;
  width:         100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow:      hidden;
  border:        1px solid var(--border);
  background:    var(--surface);
}

.video_embed_wrapper iframe {
  position: absolute;
  inset:    0;
  width:    100%;
  height:   100%;
  border:   none;
}

/* ── About Page ────────────────────────────────────────────── */
.about_stat {
  text-align: center;
  padding:    1rem;
}

.about_stat_number {
  font-family: var(--font-mono);
  font-size:   2.2rem;
  font-weight: 700;
  color:       var(--accent-cyan);
  display:     block;
  line-height: 1;
}

.about_stat_label {
  font-size:  0.84rem;
  color:      var(--muted);
  margin-top: 0.25rem;
  display:    block;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width:  6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background:    var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple-deep);
}

/* ── Collapse overrides (Bootstrap accordion) ──────────────── */
.accordion-button {
  background:  transparent !important;
  color:       var(--text) !important;
  box-shadow:  none !important;
  font-family: var(--font-body);
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-item {
  background:   transparent !important;
  border-color: var(--border) !important;
}

.accordion-body {
  color: var(--muted);
}

/* ── Utilities ─────────────────────────────────────────────── */
.border_subtle   { border-color: var(--border) !important; }
.bg_surface      { background-color: var(--surface); }
.lh_tight        { line-height: 1.3; }
.gap_pills       { gap: 0.4rem; }
.mono            { font-family: var(--font-mono); }

/* ── Responsive Adjustments ────────────────────────────────── */
@media (max-width: 767.98px) {
  body {
    font-size: 17px;
  }

  .hero_ash_heading {
    -webkit-text-stroke: 1px rgba(168, 85, 247, 0.12);
  }

  .vh_section {
    min-height: auto;
    padding:    2.5rem 0;
  }

  .timeline_track {
    padding-left: 1.5rem;
  }

  .project_tab_nav {
    width: 100%;
  }

  .project_tab_btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 16px;
  }

  .surface_card {
    padding: 1rem;
  }
}

/* ── Dropdown Override ─────────────────────────────────────── */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--accent-purple-deep);
  color:            var(--text);
}

/* ══ About Page ═══════════════════════════════════════════════ */

/* ── Story Hero ─────────────────────────────────────────────── */
.story-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.story-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.story-hero .tagline {
  font-size: 1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── Story Body & Timeline ──────────────────────────────────── */
.story-body {
  position: relative;
  padding: 4rem 0;
}
.story-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-purple);
  transform: translateX(-50%);
  pointer-events: none;
}
.chapter {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 5rem;
  position: relative;
}
.chapter-node {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.chapter-node span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: block;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--accent-cyan);
}
.chapter-text { padding: 0 2.5rem; }
.chapter-text .ch-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 0.6rem;
  display: block;
}
.chapter-text p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.chapter-img { padding: 0 2.5rem; }
.chapter.flip .chapter-text { order: 3; }
.chapter.flip .chapter-node { order: 2; }
.chapter.flip .chapter-img  { order: 1; }

/* ── About Images ───────────────────────────────────────────── */
.about_img {
  width:         100%;
  display:       block;
  border-radius: var(--radius-md);
  object-fit:    cover;
  cursor:        zoom-in;
  transition:    opacity 0.2s ease, transform 0.2s ease;
}
.about_img:hover { opacity: 0.85; transform: scale(1.01); }
.about_img.tall  { height: 240px; }
.about_img.short { height: 180px; }
.about_img.sq    { height: 160px; }

/* ── Image Caption ──────────────────────────────────────────── */
.img-caption {
  font-family:    var(--font-mono);
  font-size:      0.7rem;
  color:          var(--muted);
  letter-spacing: 0.06em;
  margin-top:     0.5rem;
  display:        block;
  line-height:    1.5;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  transform: scale(0.6);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-overlay.open .lightbox-content {
  transform: scale(1);
}
.lightbox-content img {
  display:       block;
  max-width:     92vw;
  max-height:    82vh;
  width:         auto;
  height:        auto;
  border-radius: var(--radius-md);
}
.lightbox-caption {
  font-family:    var(--font-mono);
  font-size:      0.72rem;
  color:          rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  margin-top:     0.75rem;
  text-align:     center;
  max-width:      70ch;
  line-height:    1.6;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  font-family: var(--font-mono);
  z-index: 10000;
}
.lightbox-close:hover { opacity: 1; }

/* ── About Page — Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  .story-body::before { display: none; }
  .chapter,
  .chapter.flip {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
  }
  .chapter-node { display: none; }
  .chapter-text,
  .chapter-img  { padding: 0; order: unset !important; }
  .chapter.flip .chapter-img { order: -1 !important; }
}
