/* ═══════════════════════════════════════════════════
   ORION ELECTRONIC ENGINEERING — Main Stylesheet
   ═══════════════════════════════════════════════════ */

/* ─── RESET & VARS ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:   #00ff88;
  --green2:  #00cc66;
  --dark:    #080c0e;
  --dark2:   #0d1518;
  --dark3:   #111a1f;
  --panel:   #0a1419cc;
  --text:    #c8d8d0;
  --muted:   #5a7a6a;
  --white:   #f0f8f4;
  --mono:    'Share Tech Mono', monospace;
  --serif:   'Cormorant Garamond', serif;
  --sans:    'Rajdhani', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: auto;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(8,12,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,255,136,0.1);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: opacity 0.2s;
}
.nav-logo { transition: opacity 0.3s ease; }
.nav-logo:hover img { opacity: 0.85; }
.nav-links {
  display: flex; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
#hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.7);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,12,14,0.55) 0%, transparent 60%, rgba(8,12,14,0.2) 100%);
}
/* PCB grid overlay — hidden */
.hero-grid { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 5rem;
  max-width: 680px;
}
.hero-logo {
  height: clamp(80px, 14vw, 160px);
  width: auto;
  object-fit: contain;
  margin-bottom: 1.8rem;
  display: block;
  filter: drop-shadow(0 0 24px rgba(0,255,136,0.18));
}
.hero-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border: 1px solid rgba(0,255,136,0.4);
  padding: 0.9rem 2rem;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--green);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: -1;
}
.hero-cta:hover { color: var(--dark); border-color: var(--green); }
.hero-cta:hover::before { transform: translateX(0); }



/* ─── SECTION BASE ─── */
section { position: relative; }
.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--green);
}

/* ─── ABOUT (SCROLLYTELLING) ─── */
#about {
  background: var(--dark2);
}
.about-sticky-wrapper {
  position: relative;
  height: 300vh;
}
.about-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.about-canvas-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark2);
}
#about-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Canvas fallback / placeholder */
.canvas-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
}
.canvas-placeholder .placeholder-icon {
  width: 120px; height: 120px;
  border: 2px solid rgba(0,255,136,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.canvas-placeholder .placeholder-icon::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 50%;
  animation: spin 4s linear infinite;
}
.canvas-placeholder .placeholder-icon svg {
  width: 40px; height: 40px;
  stroke: rgba(0,255,136,0.4);
  fill: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-text-col {
  padding: 4rem 4rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--dark2);
  border-left: 1px solid rgba(0,255,136,0.07);
}
/* text panels that fade in/out as user scrolls */
.about-panel {
  position: absolute;
  inset: 0;
  padding: 4rem 4rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.about-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.about-panel h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.about-panel p {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}
.frame-counter {
  position: absolute;
  bottom: 2rem; left: 3rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(0,255,136,0.4);
  letter-spacing: 0.15em;
}

/* ─── PROJECTS ─── */
#projects {
  padding: 7rem 3rem;
  background: var(--dark);
}
.projects-header {
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.projects-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.carousel-controls {
  display: flex; gap: 0.8rem;
}
.carousel-btn {
  width: 44px; height: 44px;
  border: 1px solid rgba(0,255,136,0.3);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: rgba(0,255,136,0.1); border-color: var(--green); }

.carousel-track-wrapper {
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.project-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--dark3);
  border: 1px solid rgba(0,255,136,0.08);
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-4px);
}
.project-card-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--dark2);
  overflow: hidden;
  position: relative;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
  transition: filter 0.4s, transform 0.4s;
}
.project-card:hover .project-card-img img {
  filter: saturate(1);
  transform: scale(1.04);
}
/* placeholder color blocks when no image */
.project-card-img .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.project-card-body {
  padding: 1.4rem 1.6rem 1.8rem;
}
.project-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.project-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.project-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}
.project-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green);
  text-decoration: none;
  margin-top: 1rem;
  text-transform: uppercase;
  transition: gap 0.2s;
}
.project-card .card-link:hover { gap: 0.9rem; }

/* ─── PROJECT DETAIL SECTIONS ─── */
.project-detail {
  padding: 7rem 3rem;
  border-top: 1px solid rgba(0,255,136,0.07);
  background: var(--dark3);
  display: none;
}
.project-detail.visible { display: block; }
.detail-back {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  transition: color 0.2s;
  cursor: pointer;
}
.detail-back:hover { color: var(--green); }
.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}
.detail-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.detail-header p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
}
.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}
.spec-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,255,136,0.07);
}
.spec-row dt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  min-width: 120px;
}
.spec-row dd {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 300;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.detail-gallery .gal-item {
  aspect-ratio: 4/3;
  background: var(--dark2);
  overflow: hidden;
  border: 1px solid rgba(0,255,136,0.07);
}
.detail-gallery .gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
  transition: filter 0.3s;
}
.detail-gallery .gal-item:hover img { filter: saturate(1); }

/* ─── CONTACT ─── */
#contact {
  padding: 7rem 3rem;
  background: var(--dark2);
  border-top: 1px solid rgba(0,255,136,0.07);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.contact-info p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-meta-item {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.contact-meta-item::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

/* form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(0,255,136,0.03);
  border: 1px solid rgba(0,255,136,0.15);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  cursor: text;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  background: rgba(0,255,136,0.06);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  align-self: flex-start;
}
.form-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--green);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: 0;
}
.form-submit span { position: relative; z-index: 1; }
.form-submit:hover { color: var(--dark); }
.form-submit:hover::before { transform: translateX(0); }

.form-status {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.8rem 1rem;
  display: none;
}
.form-status.success {
  display: block;
  border: 1px solid var(--green);
  color: var(--green);
  background: rgba(0,255,136,0.05);
}
.form-status.error {
  display: block;
  border: 1px solid #ff4466;
  color: #ff4466;
  background: rgba(255,68,102,0.05);
}

/* ─── FOOTER ─── */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid rgba(0,255,136,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
}
footer .foot-logo {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--green);
}
footer .foot-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── UTILS ─── */
.green { color: var(--green); }

/* ─── IMAGE PLACEHOLDER GRADIENTS ─── */
.ph-1  { background: linear-gradient(135deg, #0d2a1f 0%, #0a1f15 100%); }
.ph-2  { background: linear-gradient(135deg, #1a2a0d 0%, #131f0a 100%); }
.ph-3  { background: linear-gradient(135deg, #0d1a2a 0%, #0a1320 100%); }
.ph-1b { background: linear-gradient(135deg, #1a2a0d 0%, #0d2a1f 100%); }
.ph-2b { background: linear-gradient(135deg, #0d1a2a 0%, #1a2a0d 100%); }
.ph-3b { background: linear-gradient(135deg, #0d2a1f 0%, #0d1a2a 100%); }

.img-placeholder svg {
  width: 48px; height: 48px;
  stroke: rgba(0,255,136,0.2);
  fill: none;
}

/* ─── LANG TOGGLE ─── */
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.2s;
  text-transform: uppercase;
  line-height: 1;
}
.lang-toggle:hover { border-color: var(--green); }
.lang-sep {
  color: rgba(0,255,136,0.2);
  font-size: 0.6rem;
}
.lang-opt {
  transition: color 0.2s;
}
.lang-opt.active {
  color: var(--green);
}

/* mobile: group toggle + hamburger */
.nav-right-mobile {
  display: none;
  align-items: center;
  gap: 1rem;
}
/* lang toggle inside the mobile menu overlay */
.mobile-nav-lang {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}
.lang-toggle--mobile {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  padding: 0.5rem 1.2rem;
  border-color: rgba(0,255,136,0.3);
}

/* ─── HAMBURGER BUTTON ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--green);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU OVERLAY ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8,12,14,0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  font-family: var(--mono);
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--green); }
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  text-align: center;
}
.mobile-nav-link {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%; right: 50%;
  height: 1px;
  background: var(--green);
  transition: left 0.25s, right 0.25s;
}
.mobile-nav-link:hover { color: var(--green); }
.mobile-nav-link:hover::after { left: 0; right: 0; }

/* ─── ABOUT MOBILE (2-row layout: sticky canvas top, text panels below) ─── */
.about-mobile {
  display: none;
  flex-direction: column;
  background: var(--dark2);
  position: relative;
}

/*
 * ROW 1 — Canvas, sticky so it stays pinned while the text panels scroll below.
 * Height is 50svh so the text panels are always visible below it.
 */
.about-mobile-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 50svh;
  background: var(--dark2);
  z-index: 10;
  flex-shrink: 0;
}
.about-mobile-sticky canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-mobile-sticky canvas.loaded {
  opacity: 1;
}
/* placeholder shown while frames load */
.about-mobile-sticky .canvas-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * ROW 2 — Scroll area: 3 text panels stacked normally.
 * No negative margins, no z-index tricks. Just normal flow.
 * The sticky canvas above stays pinned while these scroll.
 */
.about-mobile-scroll-area {
  position: relative;
  z-index: 2;
}

/*
 * Fade mask — blends the hard edge between the sticky canvas
 * and the scrolling text. Gradient from section bg to transparent,
 * overlaid above the text content near the top seam.
 */
.about-mobile-scroll-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--dark2) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.about-mobile-panel-wrap {
  display: flex;
  flex-direction: column;
}

/*
 * Each panel has natural height — enough for its content plus padding.
 * No 100svh height, no opacity tricks for visibility.
 * The panel IS visible by default; only the text animates in.
 */
.about-panel-mobile {
  padding: 2.5rem 1.6rem 3rem;
  position: relative;
  border-top: 1px solid rgba(0,255,136,0.08);
}

/* First panel gets extra top padding to clear the fade gradient */
.about-panel-mobile:first-child {
  padding-top: 4.5rem;
}

/* Subtle left accent line */
.about-panel-mobile::after {
  content: '';
  position: absolute;
  left: 0; top: 2.5rem; bottom: 2.5rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,136,0.3), transparent);
}

.about-panel-mobile h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.about-panel-mobile p {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.7rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.08s, transform 0.5s ease 0.08s;
}
.about-panel-mobile .section-label {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  margin-bottom: 0.8rem;
}
.about-panel-mobile.active h2,
.about-panel-mobile.active p,
.about-panel-mobile.active .section-label {
  opacity: 1;
  transform: translateY(0);
}
.about-panel-mobile.active p:nth-of-type(2) {
  transition-delay: 0.12s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  /* Nav */
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-right-mobile { display: flex; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-content { padding: 0 1.5rem 4rem; }

  /* About — hide desktop scrollytelling, show mobile loop */
  .about-sticky-wrapper { display: none !important; }
  .about-mobile { display: flex !important; }

  /* Projects */
  .projects-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .project-card { flex: 0 0 calc(85vw - 3rem); }
  .carousel-controls { display: none; }

  /* Carousel touch — no transition snap on drag */
  .carousel-track { transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
  .carousel-track.dragging { transition: none; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Detail */
  .detail-header { grid-template-columns: 1fr; gap: 2rem; }
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  #projects, #contact, .project-detail { padding: 5rem 1.5rem; }

  /* Footer */
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Also target touch/pointer devices regardless of width (catches "desktop mode" on mobile) */
@media (pointer: coarse) {
  .about-sticky-wrapper { display: none !important; }
  .about-mobile { display: flex !important; }
}
