/* ============================================================================
   Happy Singh — Graphic Design Portfolio
   Design system: Minimalist Editorial · Architectural Gridlines · Accent Orange
   ========================================================================== */

:root {
  /* ----- Color Palette ----- */
  --bg:            #F8F7F4; /* Light off-white */
  --bg-elevated:   #FFFFFF;
  --surface:       #F0EFEA;
  --surface-hover: #E8E7E0;
  --border:        #E2E1DA; /* Architectural grid lines */
  --border-strong: #BCBBAF;
  --orange:        #E55B2E; /* Brand accent orange */
  --text:          #111111;
  --text-muted:    #4E4E4E;
  --text-faint:    #8E8E8E;

  /* ----- Fonts ----- */
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* ----- Layout ----- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: 80px;
  --maxw: 1400px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ============================================================================
   STRUCTURAL GRIDLINES & SCRIBBLERS
   ========================================================================== */
.section-divider-line {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

/* Doodle / Scribble Styles */
.scribble {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}
.scribble svg {
  width: 100%;
  height: 100%;
}
.scribble path {
  stroke: #111111;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  animation: drawScribble 2.5s var(--ease) forwards;
}
@keyframes drawScribble {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.scribble-top-right {
  top: 0;
  right: 0;
  width: 140px;
  height: auto;
}
.scribble-bottom-left {
  bottom: 0;
  left: var(--sidebar-w);
  width: 100px;
  height: auto;
}
.scribble-hero-btn {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  height: 30px;
  margin-left: 15px;
}

/* ============================================================================
   LEFT SIDEBAR
   ========================================================================== */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  background: var(--bg);
  z-index: 90;
}
.left-sidebar .sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.left-sidebar .vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
.left-sidebar .vertical-line {
  width: 1px;
  height: 60px;
  background: var(--border-strong);
}
.left-sidebar .sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.left-sidebar .vertical-link {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  transition: color 0.3s var(--ease);
}
.left-sidebar .vertical-link:hover {
  color: var(--orange);
}

/* Adjust main layout wrapper to shift right for the sidebar */
main, .site-header, .site-footer {
  margin-left: var(--sidebar-w);
}

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--text);
}
.brand .name b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-spacer { flex: 1; }

.nav-links {
  display: flex;
  gap: 36px;
  margin-right: 40px;
}
.nav-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active {
  color: var(--orange);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
}

.nav-cta {
  background: #111111;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover {
  background: var(--orange);
  transform: translateY(-1px);
}
.nav-cta .arrow {
  font-size: 13px;
}

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 60px 0;
}
.hero-columns {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.hero-left {
  display: flex;
  flex-direction: column;
}
.hero-left .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 24px;
}
.hero-left h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-left h1 .accent-amp {
  color: var(--orange);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
}
.hero-left p.lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.view-work-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--text);
  padding: 14px 28px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.view-work-btn:hover {
  background: var(--text);
  color: #ffffff;
}

.scroll-explore {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}
.scroll-explore span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}
.scroll-explore .down-arrow {
  font-size: 18px;
  color: var(--text-muted);
  animation: bobArrow 1.8s ease-in-out infinite;
}
@keyframes bobArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Hero Portfolio Grid (5 images) */
.hero-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.hero-col-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-col-sides {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.06);
}
.hero-card:hover img {
  transform: scale(1.03);
}
.hero-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 5;
}
.hero-card.tall {
  height: 380px;
}
.hero-row-sm {
  display: flex;
  gap: 20px;
}
.hero-card.square {
  flex: 1;
  height: 160px;
}
.hero-card.landscape {
  height: 260px;
}

/* ============================================================================
   WORK SHOWCASE SECTION (Showcase Rows)
   ========================================================================== */
.work-showcase {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.showcase-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.showcase-row:first-child {
  border-top: none;
}
.showcase-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.showcase-info h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
}
.showcase-info h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--orange);
}
.showcase-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 200px;
}
.view-all-projects {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.view-all-projects:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* Showcase Cards Grid */
.showcase-cards {
  display: grid;
  gap: 24px;
}
.showcase-cards.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.showcase-cards.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Showcase project card */
.card {
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.4s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn .5s var(--ease) forwards;
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
.card.is-hiding { display: none; }

.card .thumb-wrap {
  aspect-ratio: 16/12;
  overflow: hidden;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: none;
}
.card img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s var(--ease);
}
.card .thumb-wrap.logo-contain {
  background: #FFFFFF;
  border: 1px solid var(--border);
}
.card .thumb-wrap.logo-contain img.thumb {
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}
.card:hover {
  transform: translateY(-6px);
}
.card:hover img.thumb {
  transform: scale(1.03);
}

.card .card-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card .card-title {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.02em;
}
.card .corner-cat {
  display: none;
}

/* Empty state */
.empty { text-align: center; padding: 80px 0; color: var(--text-faint); font-weight: 500; }

/* ============================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.about-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.about-clients, .about-tools {
  margin-top: 36px;
}
.about-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.client-tags, .tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.client-tag {
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.client-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.tool-badge {
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.tool-badge:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ============================================================================
   MODAL / LIGHTBOX (Redesigned for Light Mode)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(24, 23, 21, 0.45);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }

.modal-card {
  position: relative;
  width: min(1200px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.15);
  transform: scale(.95) translateY(10px);
  transition: transform 0.5s var(--ease);
}
.modal.open .modal-card { transform: none; }

.stage {
  position: relative;
  background: #F0EFEA;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.stage .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.stage .slide.active { opacity: 1; transform: scale(1); }
.stage .slide img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}
.stage .slide img.zoomed { cursor: zoom-out; transform: scale(1.8); }

.stage-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s var(--ease);
}
.stage-btn:hover {
  background: var(--orange);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(229, 91, 46, 0.3);
}
.stage-btn.prev { left: 20px; }
.stage-btn.next { right: 20px; }
.stage-btn svg { width: 20px; height: 20px; }
.stage-btn[hidden] { display: none; }

.counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
}

/* Info Panel */
.info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-elevated);
}
.info .cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.info .desc {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.info .divider {
  height: 1px;
  background: var(--border);
  margin: 30px 0;
}

/* Thumbnail Strip */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
}
.thumbs button {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0.6;
  transition: all 0.3s var(--ease);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active {
  opacity: 1;
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.thumbs button:hover { opacity: 1; }

.info .source {
  margin-top: auto;
  padding-top: 30px;
  font-size: 12px;
  color: var(--text-faint);
}
.info .source a {
  color: var(--orange);
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s var(--ease);
}
.modal-close:hover {
  background: #E0455E;
  color: #ffffff;
  border-color: transparent;
  transform: rotate(90deg);
}
.modal-close svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 95vh;
  }
  .stage {
    min-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .info {
    padding: 30px;
  }
}

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: flex-start;
}
.footer-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.footer-cta h2 .grad {
  color: var(--orange);
}
.footer-cta p {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 440px;
  font-size: 15.5px;
}
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 28px;
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
}
.email-btn:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(229, 91, 46, 0.2);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.social-link:hover {
  border-color: var(--orange);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}
.social-link .ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
}
.social-link .ico svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.social-link:hover .ico svg {
  color: var(--orange);
}
.social-link b {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.social-link span {
  font-size: 12px;
  color: var(--text-faint);
  display: block;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 500;
}

/* ============================================================================
   SCROLL TO TOP & MOBILE FLOATING CTA
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top:hover {
  background: var(--orange);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(229, 91, 46, 0.3);
}
.scroll-top svg { width: 20px; height: 20px; }

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s var(--ease);
}
.mobile-cta svg { width: 22px; height: 22px; }
.mobile-cta:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(229, 91, 46, 0.2);
}

/* ============================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-columns {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-left p.lead {
    max-width: 550px;
  }
  .scroll-explore {
    display: none;
  }
  .gallery-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-card:nth-child(3) {
    border-right: none;
  }
  .cat-card:nth-child(4), .cat-card:nth-child(5) {
    border-top: 1px solid var(--border);
  }
  .view-all-wrapper {
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px; /* Hide sidebar */
  }
  .left-sidebar {
    display: none;
  }
  main, .site-header, .site-footer {
    margin-left: 0;
  }
  .wrap {
    padding: 0 24px;
  }
  .nav {
    height: 70px;
  }
  .nav-links {
    display: none; /* Hide header links on mobile, CTA handles contact */
  }
  .hero-gallery {
    grid-template-columns: 1fr;
  }
  .hero-card.tall {
    height: 320px;
  }
  .hero-card.landscape {
    height: 200px;
  }
  .category-cards {
    grid-template-columns: 1fr;
  }
  .cat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: 70px;
    padding: 10px 15px;
    flex-direction: row;
    align-items: center;
  }
  .cat-card:last-child {
    border-bottom: none;
  }
  .cat-card.active {
    border-top: none;
    border-left: 3px solid var(--orange);
    padding-top: 10px;
    padding-left: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mobile-cta {
    display: flex;
  }
  .scroll-top {
    left: auto;
    right: 90px;
  }
  .scribble-top-right {
    width: 180px;
    height: 80px;
  }
  .scribble-bottom-left {
    display: none;
  }
}

/* ============================================================================
   DISCIPLINE EXPLORE SECTION
   ========================================================================== */
.discipline-explore {
  margin-top: 20px;
}
.explore-container {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.explore-left {
  display: flex;
  flex-direction: column;
}
.explore-left .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 8px;
}
.explore-left h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
}
.explore-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  background: transparent;
  border-right: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.explore-item:last-child {
  border-right: none;
}
.explore-item:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.explore-icon {
  width: 24px;
  height: 24px;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.explore-icon svg {
  width: 100%;
  height: 100%;
}
.explore-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.explore-num {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-faint);
}
.explore-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.explore-right .view-all-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--text);
  transition: opacity 0.3s var(--ease);
}
.explore-right .view-all-link:hover {
  opacity: 0.7;
}

/* Responsive: */
@media (max-width: 1024px) {
  .explore-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0;
  }
  .explore-left {
    text-align: center;
  }
  .explore-right {
    justify-content: center;
  }
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .explore-item:nth-child(3), .explore-item:nth-child(6) {
    border-right: none;
  }
}
@media (max-width: 600px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .explore-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .explore-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
