/* ================================================================
   AG KANE — PORTFOLIO SITE
   Color Psychology:
     Purple  #7c3aed  imagination, creativity, artistry
     Cyan    #06b6d4  intelligence, technology, clarity
     Gold    #f59e0b  quality, achievement (sparingly)
     Dark bg           cinematic, premium, film/music/voice industry
   Hard corners + drop shadows = floating panel aesthetic
================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-deep:      #080810;
  --bg-panel:     #0f0f1c;
  --bg-card:      #161625;
  --bg-elevated:  #1e1e30;
  --bg-hover:     #242438;

  /* Accents */
  --accent-purple: #7c3aed;
  --accent-purple-dim: #5b21b6;
  --accent-purple-glow: rgba(124, 58, 237, 0.25);
  --accent-cyan:   #06b6d4;
  --accent-cyan-dim: #0891b2;
  --accent-gold:   #f59e0b;

  /* Text */
  --text-primary:   #eeeeff;
  --text-secondary: #8888aa;
  --text-muted:     #444466;

  /* Borders */
  --border-dim:    rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(124, 58, 237, 0.4);

  /* Shadows — the "floating" effect */
  --shadow-panel:  0 4px 6px rgba(0,0,0,0.4),
                   0 16px 48px rgba(0,0,0,0.6),
                   0 0 0 1px rgba(255,255,255,0.04);
  --shadow-card:   0 2px 4px rgba(0,0,0,0.4),
                   0 8px 24px rgba(0,0,0,0.5),
                   0 0 0 1px rgba(255,255,255,0.04);
  --shadow-btn:    0 2px 8px rgba(0,0,0,0.5),
                   0 0 0 1px rgba(255,255,255,0.06);
  --shadow-accent: 0 4px 20px rgba(124, 58, 237, 0.45);
  --shadow-cyan:   0 4px 20px rgba(6, 182, 212, 0.35);

  /* Layout */
  --sidebar-w:   115px;
  --visuals-w:   297px;
  --gap:         15px;
  --pad:         16px;

  /* Typography */
  --font:      'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   RESET
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

/* Re-enable selection inside form fields */
input, textarea, select {
  user-select: text;
}

html, body {
  min-height: 100%;
  overflow-y: auto;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----------------------------------------------------------------
   BACKGROUND ATMOSPHERE
   Subtle radial gradients give depth without distraction.
---------------------------------------------------------------- */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%,
      rgba(6, 182, 212, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 70% 85%,
      rgba(124, 58, 237, 0.04) 0%, transparent 60%);
}

/* ----------------------------------------------------------------
   SITE WRAPPER
---------------------------------------------------------------- */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 40px 20px;
  gap: 20px;
  width: 100vw;
  max-width: 1188px;
  height: auto;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  width: 35%;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(-3px 4px 8px rgba(0,0,0,0.7));
}

.panes-row {
  display: flex;
  gap: var(--gap);
  flex: none;
  height: 636px;
}

/* ----------------------------------------------------------------
   SIDEBAR
   Three separate floating pieces: hamburger square, contact square,
   nav pane. Gap between each. No shared container background.
---------------------------------------------------------------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative; /* anchor for menu-overlay absolute positioning */
}

/* Square floating buttons — hamburger & contact me */
.sidebar-sq-btn {
  width: var(--sidebar-w);
  height: var(--sidebar-w); /* square: width === height */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-panel);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

/* Hamburger — compact: just tall enough for its 3 lines, not a full square */
.hamburger-btn {
  height: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 5px;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: background 0.18s;
}
.hamburger-btn:hover {
  background: var(--bg-elevated);
}
.hamburger-btn:hover span {
  background: var(--accent-purple);
}

/* Hamburger spans — transitions for → X animation */
.hamburger-btn span {
  transition: transform 0.28s var(--ease),
              opacity   0.18s ease,
              background 0.18s;
}

/* X state: top bar rotates down-right, middle fades, bottom rotates up-right */
.hamburger-btn.menu-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-purple);
}
.hamburger-btn.menu-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.menu-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-purple);
}

/* Contact Me */
.contact-btn {
  background: var(--accent-purple);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.contact-btn:hover {
  background: var(--accent-purple-dim);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.6);
}
.contact-btn:active {
  background: #4c1d95;
}

/* Hamburger menu overlay — identical appearance to sidebar-nav, floats on top */
.menu-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) transparent;
}
.menu-overlay::-webkit-scrollbar { width: 3px; }
.menu-overlay::-webkit-scrollbar-thumb { background: var(--accent-purple); }

/* Nav pane — floating rectangle, no internal dividers */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: var(--sidebar-w);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-panel);
  overflow: hidden;  /* clip items sliding out during animations */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--accent-purple); }

/* Nav links */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  width: 100%;
  flex: 1;
  max-height: var(--sidebar-w);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.nav-item.active {
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-purple);
}
.nav-item .nav-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
}
.nav-item.active .nav-icon {
  opacity: 1;
}

/* ----------------------------------------------------------------
   MAIN AREA
---------------------------------------------------------------- */
.main-area {
  flex: 1;
  display: flex;
  gap: var(--gap);
  min-width: 0;
}

/* ----------------------------------------------------------------
   VISUALS PANE
---------------------------------------------------------------- */
.visuals-pane {
  width: var(--visuals-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  box-shadow: var(--shadow-panel);
  border: 1px solid var(--border-subtle);
  border-bottom-color: transparent;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   INFO PANE
---------------------------------------------------------------- */
.info-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  box-shadow: var(--shadow-panel);
  border: 1px solid var(--border-subtle);
  border-bottom-color: transparent;
  overflow-y: auto;
  padding: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) transparent;
}
.info-pane::-webkit-scrollbar { width: 3px; }
.info-pane::-webkit-scrollbar-thumb { background: var(--accent-purple); }

/* ----------------------------------------------------------------
   PANE TRANSITIONS
---------------------------------------------------------------- */
@keyframes paneFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.pane-enter {
  animation: paneFadeIn 0.4s ease-out forwards;
}

/* Nav pane — slide down (menu opening) */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Nav pane — slide up (menu closing / section selected) */
@keyframes navSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-slide-down {
  animation: navSlideDown 0.26s var(--ease) forwards;
}
.nav-slide-up {
  animation: navSlideUp 0.26s var(--ease) forwards;
}

/* ================================================================
   SECTION CONTENT STYLES
================================================================ */

/* ----------------------------------------------------------------
   VISUALS PANE — PROFILE CARD (About)
---------------------------------------------------------------- */
.vp-image-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.vp-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Gradient fade at bottom of image */
.vp-image-area::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: linear-gradient(transparent, var(--bg-panel));
  pointer-events: none;
}

/* Placeholder when no photo */
.vp-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}
.vp-placeholder .placeholder-icon {
  font-size: 52px;
  opacity: 0.4;
  line-height: 1;
}

.vp-name-block {
  padding: 18px 18px 14px;
  text-align: center;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
}
.vp-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}
.vp-title {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.vp-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.vp-social {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.vp-social:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-accent);
}

.vp-actions {
  display: flex;
  flex-shrink: 0;
}
.vp-action-btn {
  flex: 1;
  padding: 13px 8px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
}
.vp-action-btn:last-child {
  border-right: none;
}
.vp-action-btn:hover {
  background: var(--accent-purple);
  color: #fff;
}

/* ----------------------------------------------------------------
   VISUALS PANE — GENERIC SECTION CARD
---------------------------------------------------------------- */
.vp-section-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vp-section-card .vp-big-icon {
  font-size: 56px;
  opacity: 0.35;
  line-height: 1;
}
.vp-section-card .vp-section-label {
  opacity: 0.6;
}

/* ----------------------------------------------------------------
   INFO PANE — SHARED TYPOGRAPHY
---------------------------------------------------------------- */
.ip-section-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.15;
}
.ip-section-heading .accent-letter {
  color: var(--accent-cyan);
}
.ip-section-heading .accent-word {
  color: var(--accent-purple);
}

.ip-body-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.ip-body-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
.ip-body-text p + p {
  margin-top: 10px;
}

/* ----------------------------------------------------------------
   INFO PANE — ABOUT: two-column intro grid
---------------------------------------------------------------- */
.ip-about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-bottom: 16px;
  align-items: start;
}

.ip-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}
.ip-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ip-stat-label {
  background: var(--accent-purple);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  width: 112px;
  text-align: center;
  box-shadow: var(--shadow-accent);
  flex-shrink: 0;
}
.ip-stat-label.cyan {
  background: var(--accent-cyan-dim);
  box-shadow: var(--shadow-cyan);
}
.ip-stat-label.gold {
  background: var(--accent-gold);
  color: #1a0a00;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.ip-stat-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   INFO PANE — SERVICES / SKILLS GRID
---------------------------------------------------------------- */
.ip-subsection {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.ip-subsection--bottom {
  margin-top: auto;
  padding-top: 14px;
}
.ip-subsection-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.ip-subsection-heading .accent-letter {
  color: var(--accent-cyan);
}

.ip-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ip-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 10px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  cursor: default;
}
.ip-service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.ip-service-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin: 0 auto 8px;
  box-shadow: var(--shadow-accent);
}
.ip-service-card:nth-child(2) .ip-service-icon {
  background: var(--accent-cyan-dim);
  box-shadow: var(--shadow-cyan);
}
.ip-service-card:nth-child(3) .ip-service-icon {
  background: #7c5c00;
  box-shadow: 0 4px 16px rgba(245,158,11,0.25);
}
.ip-service-card:nth-child(4) .ip-service-icon {
  background: #1a3d6e;
  box-shadow: 0 4px 16px rgba(30,100,220,0.25);
}
.ip-service-card:nth-child(5) .ip-service-icon {
  background: #0a4d38;
  box-shadow: 0 4px 16px rgba(6,160,100,0.25);
}
.ip-service-card:nth-child(6) .ip-service-icon {
  background: #4a1a6e;
  box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.ip-service-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.ip-service-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   INFO PANE — PLACEHOLDER CONTENT (non-About sections)
---------------------------------------------------------------- */
.ip-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 200px;
  gap: 16px;
  text-align: center;
}
.ip-placeholder .ph-icon {
  font-size: 48px;
  opacity: 0.2;
}
.ip-placeholder .ph-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.ip-placeholder .ph-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   CONTACT FORM (in info pane)
---------------------------------------------------------------- */
/* Honeypot — off-screen, invisible, pointer-inaccessible */
.cf-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Inline error message */
.cf-error-msg {
  font-size: 12px;
  color: var(--accent-gold);
  margin-top: 4px;
  line-height: 1.5;
}
.ip-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.ip-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ip-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ip-field label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ip-field input,
.ip-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: none;
}
.ip-field input:focus,
.ip-field textarea:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.ip-field input::placeholder,
.ip-field textarea::placeholder {
  color: var(--text-muted);
}
.ip-field textarea {
  min-height: 100px;
}
.ip-submit-btn {
  align-self: flex-start;
  background: var(--accent-purple);
  color: #fff;
  padding: 12px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-accent);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.ip-submit-btn:hover {
  background: var(--accent-purple-dim);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.55);
  transform: translateY(-2px);
}
.ip-submit-btn:active {
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   CONTACT FORM — THANK YOU STATE
---------------------------------------------------------------- */
.cf-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.cf-thankyou--visible {
  opacity: 1;
  transform: translateY(0);
}
.cf-thankyou-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-cyan-dim);
  color: #fff;
  font-size: 26px;
  line-height: 52px;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.35);
}
.cf-thankyou-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.cf-thankyou-body {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 280px;
  line-height: 1.6;
}
.cf-thankyou-redirect {
  font-size: 12px;
  color: var(--text-muted, var(--text-secondary));
  margin: 8px 0 0;
  opacity: 0.7;
}
.cf-countdown {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ================================================================
   MOBILE-ONLY ELEMENTS
   Hidden on desktop; shown via media query below.
================================================================ */
.mob-header,
.mob-tabnav,
.mob-menu {
  display: none;
}

/* ================================================================
   MOBILE LAYOUT  (≤ 680px)
================================================================ */
@media (max-width: 680px), (max-width: 960px) and (hover: none) and (pointer: coarse) {

  /* --- Structural overrides --- */
  .site-header { display: none; }   /* desktop logo */
  .sidebar     { display: none; }   /* desktop sidebar */

  html, body {
    overflow-x: hidden;
  }

  .site-wrapper {
    max-width: 100%;
    width: 100%;
    padding: 0 0 64px 0;   /* bottom: tab bar height */
    gap: 0;
    padding-top: 56px;     /* top: mob-header height */
  }

  .panes-row {
    flex-direction: column;
    height: auto;
    gap: 0;
    width: 100%;
  }

  /* Visuals pane becomes a faint background — hide the pane itself */
  .visuals-pane {
    display: none;
  }

  .info-pane {
    width: 100%;
    border: none;
    box-shadow: none;
    overflow-y: visible;   /* let the page scroll, not the pane */
    min-height: calc(100vh - 56px - 64px); /* viewport minus header and tabnav */
    background-color: var(--bg-panel);    /* fallback when no bgImage */
  }

  /* About grid: single column on mobile */
  .ip-about-grid {
    grid-template-columns: 1fr;
  }
  .ip-stats {
    min-width: 0;
  }
  .ip-stat-value {
    white-space: normal;
  }

  /* Services: 2-up on mobile */
  .ip-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Don't pin "What I Do" to bottom — let it flow in a scrolling context */
  .ip-subsection--bottom {
    margin-top: 20px;
  }

  /* Contact form: single column on mobile */
  .ip-form-row {
    grid-template-columns: 1fr;
  }

  /* ----------------------------------------------------------------
     MOBILE HEADER — fixed top bar
  ---------------------------------------------------------------- */
  .mob-header {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
  }

  .mob-logo {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    pointer-events: none;
  }

  .mob-hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  .mob-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.25s var(--ease),
                opacity   0.18s ease,
                background 0.18s;
  }
  .mob-hamburger.menu-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent-purple);
  }
  .mob-hamburger.menu-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mob-hamburger.menu-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent-purple);
  }

  @keyframes mob-float {
    0%, 100% { transform: translateY(-3px); }
    50%       { transform: translateY(3px);  }
  }

  .mob-contact-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
  }

  .mob-contact-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    animation: mob-float 3.3s ease-in-out infinite;
    display: inline-block;
  }

  .mob-contact-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-purple);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-accent);
    border: none;
  }

  /* ----------------------------------------------------------------
     MOBILE BOTTOM TAB BAR
  ---------------------------------------------------------------- */
  .mob-tabnav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    z-index: 100;
    overflow: hidden;
  }

  .mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 2px;
    transition: background 0.15s, color 0.15s;
    min-width: 0;
  }
  .mob-tab.active {
    color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.1);
  }
  .mob-tab-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
  }
  .mob-tab-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* ----------------------------------------------------------------
     MOBILE HAMBURGER MENU OVERLAY
  ---------------------------------------------------------------- */
  .mob-menu {
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 64px;
    background: var(--bg-panel);
    z-index: 90;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
    border-bottom: 1px solid var(--border-subtle);
  }
  .mob-menu--visible { display: flex; }
  .mob-menu--open    { opacity: 1; transform: translateY(0); }

  .mob-menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-dim);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    width: 100%;
    text-align: left;
  }
  .mob-menu-item.active {
    color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.08);
  }
  .mob-menu-icon {
    font-size: 22px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
  }

} /* end @media (max-width: 680px) */

/* ----------------------------------------------------------------
   UTILITY
---------------------------------------------------------------- */
.text-cyan   { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-gold   { color: var(--accent-gold); }
.text-muted  { color: var(--text-muted); }
