/* ============================================
   STYLE.CSS — base, layout, components, theme
   Part of the Sajan portfolio — split from a single stylesheet.
   ============================================ */

/* ============================================
   RESET & CSS VARIABLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Theme channels — every hardcoded fg/overlay flips through these */
  --c-ink:      255,255,255;   /* foreground ink (white in dark mode) */
  --c-bg-rgb:   10,10,10;      /* base bg used in scrims/vignettes */

  --bg:         #0a0a0a;
  --bg-1:       #111111;
  --bg-2:       #1a1a1a;
  --text:       rgb(var(--c-ink));
  --muted:      rgba(var(--c-ink),0.45);
  --border:     rgba(var(--c-ink),0.08);
  --accent:     #05adb8;
  --accent-dim: rgba(5,173,184,0.15);

  /* Frosted glass panels (nav / sidenav) */
  --glass:      rgba(15,15,15,0.85);
  --glass-2:    rgba(18,18,18,0.88);

  --font:  'Space Grotesk', system-ui, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;
  --serif: 'Playfair Display', Georgia, serif;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1280px;
  --pad:       clamp(20px, 5vw, 80px);
  --section-gap: 140px;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Hide cursor on non-touch devices */

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; font-family: var(--serif); }

.accent { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: var(--section-gap) 0; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
}

.cursor__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgb(var(--c-ink));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor__ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgb(var(--c-ink));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-expo), height 0.25s var(--ease-expo), opacity 0.25s;
}

/* On hover: drop the blend mode (so the cursor never inverts/hides the
   element underneath) and expand a clean hollow ring instead of a solid disc. */
body.cursor-hover #cursor {
  mix-blend-mode: normal;
}

body.cursor-hover .cursor__dot {
  opacity: 0;
}

body.cursor-hover .cursor__ring {
  width: 56px;
  height: 56px;
  border-color: rgba(var(--c-ink), 0.65);
  opacity: 1;
}

/* Hide custom cursor on touch devices */

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader__inner {
  text-align: center;
}

.preloader__label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
}

.preloader__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: rgb(var(--c-ink));
  overflow: hidden;
}

.preloader__first,
.preloader__last {
  display: block;
  transform: translateY(110%);
}

.preloader__line {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.preloader__line-fill {
  width: 80px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.preloader__line-track {
  width: 80px;
  height: 2px;
  background: rgba(var(--c-ink),0.15);
  transform: scaleX(0);
  transform-origin: left;
}

.preloader__count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  opacity: 0;
}

/* ============================================
   SIDE NAV (fixed left, visible after hero)
   ============================================ */
.sidenav {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) translateX(-80px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
}

.sidenav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.sidenav__pill {
  background: var(--glass-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  width: 52px; /* collapsed — just numbers */
  transition: width 0.4s var(--ease-expo);
}

/* Expand on hover to show labels */
.sidenav__pill:hover {
  width: 160px;
}

.sidenav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}

.sidenav__item:hover {
  background: rgba(var(--c-ink),0.05);
}

.sidenav__item.active {
  background: var(--accent-dim);
}

.sidenav__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s;
  min-width: 22px;
}

.sidenav__item.active .sidenav__num {
  color: var(--accent);
}

.sidenav__dash {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: rgba(var(--c-ink),0.2);
  flex-shrink: 0;
  transition: background 0.2s;
  opacity: 0;
  transition: opacity 0.25s 0.1s;
}

.sidenav__pill:hover .sidenav__dash {
  opacity: 1;
}

.sidenav__item.active .sidenav__dash {
  background: var(--accent);
}

.sidenav__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s 0.12s, transform 0.3s 0.12s var(--ease-expo), color 0.2s;
}

.sidenav__pill:hover .sidenav__label {
  opacity: 1;
  transform: translateX(0);
}

.sidenav__item.active .sidenav__label {
  color: rgb(var(--c-ink));
  font-weight: 600;
}

/* Hide sidenav on mobile */

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-20px);
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px 10px 16px;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled .nav__pill {
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.nav__logo {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--c-ink));
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(var(--c-ink),0.55);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-expo);
}

.nav__link:hover,
.nav__link.active {
  color: rgb(var(--c-ink));
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.nav__status-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(var(--c-ink),0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.nav__status-text:hover {
  color: var(--accent);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: fixed;
  top: 22px;
  right: var(--pad);
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgb(var(--c-ink));
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(var(--c-bg-rgb),0.98);
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-expo);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu__link {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(var(--c-ink),0.5);
  transition: color 0.2s;
}

.mobile-menu__link:hover { color: rgb(var(--c-ink)); }

/* ============================================
   SECTION SHARED
   ============================================ */
.section__tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}

.section__title {
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section__header {
  margin-bottom: 72px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-expo);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--accent);
  color: rgb(var(--c-ink));
  border: 1.5px solid var(--accent);
}

.btn--primary:hover {
  background: #00c4d0;
  border-color: #00c4d0;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: rgba(var(--c-ink),0.6);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  color: rgb(var(--c-ink));
  border-color: rgba(var(--c-ink),0.3);
}

.btn--outline {
  background: transparent;
  color: rgb(var(--c-ink));
  border: 1.5px solid rgba(var(--c-ink),0.2);
}

.btn--outline:hover {
  background: rgba(var(--c-ink),0.06);
  border-color: rgba(var(--c-ink),0.4);
  transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Subtle grid background */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* ---- Cursor-spotlight hero visual ---- */

/* Full-bleed visual panel behind everything */
.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Dark base — same image, darkened; always visible underneath */
.hero__visual-dark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  filter: grayscale(100%) brightness(45%) contrast(118%);
}

/* Colour layer on top — masked by JS to a flowing water-like shape that
   follows the cursor. Mask is a union of trailing radial-gradient droplets. */
.hero__visual-colour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 2;
  will-change: mask-image;
}

/* Dark tint over the resting image (90%) — sits below the colour spotlight,
   so the cursor reveal still shows full colour while the intro reads darker. */
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--c-bg-rgb), 0.9);
  z-index: 1;
  pointer-events: none;
}

/* Touch / coarse-pointer fallback: blend 30% of the colour everywhere */
.hero__visual.is-touch .hero__visual-colour {
  opacity: 0.3;
}

/* Bottom vignette so next-section transition stays clean */
.hero__visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent, rgba(var(--c-bg-rgb),0.82));
  z-index: 3;
  pointer-events: none;
}

/* ---- end cursor-spotlight hero visual ---- */

.hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  position: relative;
  z-index: 1;
}

.hero__social {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 24px;
  margin-bottom: 64px;
  overflow: hidden;
}

.hero__social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  opacity: 0;
  transform: translateY(-16px);
}

.hero__social-link:hover { color: rgb(var(--c-ink)); }

.hero__social-arrow {
  color: var(--accent);
  font-size: 13px;
  transition: transform 0.2s;
}

.hero__social-link:hover .hero__social-arrow { transform: translate(2px, -2px); }

.hero__content {
  grid-column: 1;
  grid-row: 2;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
}

.hero__name {
  font-family: var(--font);
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  overflow: visible;
}

/* Splitting.js chars — each gets individual animation */
.hero__name .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.hero__descriptor {
  margin-bottom: 48px;
  overflow: hidden;
}

.hero__tagline {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(24px);
}

.hero__tagline em {
  color: rgba(var(--c-ink),0.85);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  overflow: hidden;
}

.hero__cta-row .btn {
  opacity: 0;
  transform: translateY(20px);
}

/* Right-side meta panel */
.hero__meta {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding-left: 80px;
  padding-bottom: 8px;
  border-left: 1px solid var(--border);
  margin-left: 40px;
  opacity: 0;
}

.hero__meta-num {
  display: block;
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__meta-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
}

.hero__scroll-hint span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scan 2s ease-in-out infinite;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-1);
}

.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee__track span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__track .accent {
  font-size: 10px;
}

/* ============================================
   ABOUT
   ============================================ */
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about__intro {
  font-family: var(--font);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

/* Splitting.js words */
.about__intro .word {
  display: inline-block;
  overflow: hidden;
}

.about__intro .char {
  display: inline-block;
  transform: translateY(110%);
}

.about__body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 40px;
}

/* Image panel */
.about__image-wrap {
  position: relative;
}

.about__image-placeholder {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: transparent;
}

/* Vignette so the photo's charcoal backdrop melts into the page bg */
.about__image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 115% 100% at 50% 40%,
    transparent 52%,
    rgba(var(--c-bg-rgb), 0.45) 80%,
    rgba(var(--c-bg-rgb), 0.9) 100%
  );
}

.about__image-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.94) contrast(1.03);
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 45%, #000 58%, transparent 99%);
  mask-image: radial-gradient(ellipse 95% 95% at 50% 45%, #000 58%, transparent 99%);
}

.about__image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent);
  border-radius: 4px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__badge-num {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgb(var(--c-ink));
}

.about__badge-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: rgba(var(--c-ink),0.75);
  line-height: 1.4;
}

/* ============================================
   JOURNEY TIMELINE
   ============================================ */
.journey {
  background: var(--bg);
  padding: 140px 0 160px;
  overflow: hidden;
}

.journey__head {
  margin-bottom: 100px;
}

.journey__title {
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-top: 16px;
}

/* Body: relative container, left area reserved for SVG */
.journey__body {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px 0 340px;
}

/* SVG snake line */
.journey__line-wrap {
  position: absolute;
  left: 80px;
  top: 0;
  width: 200px;
  height: 100%;
  pointer-events: none;
}

.journey__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey__path-bg {
  fill: none;
  stroke: rgba(var(--c-ink),0.07);
  stroke-width: 1.5;
}

.journey__path-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.6;
}

.journey__dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 3.5;
  transition: r 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Items column */
.journey__items {
  display: flex;
  flex-direction: column;
}

.journey__item {
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 0;
}

/* Year label floated into SVG area */
.journey__year {
  position: absolute;
  left: -240px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: rgba(var(--c-ink),0.45);
  letter-spacing: 0.05em;
}

.journey__content {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.journey__text {
  font-size: clamp(16px, 1.8vw, 18px);
  color: rgba(var(--c-ink),0.72);
  line-height: 1.7;
  max-width: 500px;
  flex: 1;
}

.journey__text em {
  color: rgb(var(--c-ink));
  font-style: italic;
}

/* Polaroid-style photos */
.journey__photo {
  flex-shrink: 0;
  width: 260px;
  height: 178px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(var(--c-ink),0.06);
  transform: rotate(-2.5deg);
  transition: transform 0.5s var(--ease-expo), box-shadow 0.5s ease;
}

.journey__item:nth-child(even) .journey__photo {
  transform: rotate(2deg);
}

.journey__item:hover .journey__photo {
  transform: rotate(0deg) scale(1.02) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(var(--c-ink),0.1);
}

/* Divider between items (subtle) */
.journey__item:not(.journey__item--last)::after {
  display: none; /* clean, no dividers */
}

/* Responsive */

/* ============================================
   FEATURED PROJECTS — FULLSCREEN SHOWCASE
   ============================================ */
.projects-fs {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

/* Stacked full-viewport panels */
.pfs-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  will-change: opacity;
}

.pfs-panel--intro { background: var(--bg); }

.pfs-panel__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pfs-panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.pfs-panel__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--c-bg-rgb),0.94) 0%, rgba(var(--c-bg-rgb),0.72) 36%, rgba(var(--c-bg-rgb),0.2) 70%, rgba(var(--c-bg-rgb),0.45) 100%),
    linear-gradient(0deg, rgba(var(--c-bg-rgb),0.8) 0%, rgba(var(--c-bg-rgb),0) 48%);
}

.pfs-panel__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Intro panel */
.pfs-intro__title {
  font-family: var(--font);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.pfs-intro__desc {
  margin-top: 32px;
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.pfs-intro__hint {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pfs-intro__arrow {
  display: inline-block;
  animation: pfsBounce 1.8s ease-in-out infinite;
}

/* Project panel content */
.pfs-panel__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--c-ink),0.72);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.pfs-panel__num { color: var(--accent); }

.pfs-panel__title {
  font-family: var(--font);
  font-size: clamp(40px, 7vw, 120px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

.pfs-panel__desc {
  margin-top: 28px;
  max-width: 480px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: rgba(var(--c-ink),0.8);
}

.pfs-panel__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pfs-panel__tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(var(--c-ink),0.88);
  border: 1px solid rgba(var(--c-ink),0.2);
  background: rgba(var(--c-ink),0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 100px;
}

.pfs-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--accent);
  padding: 14px 26px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-expo), box-shadow 0.3s;
}

.pfs-panel__cta span { transition: transform 0.3s var(--ease-expo); }
.pfs-panel__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(5,173,184,0.35); }
.pfs-panel__cta:hover span { transform: translate(3px, -3px); }

/* Fixed overlays */
.pfs-tag {
  position: absolute;
  top: 40px;
  left: var(--pad);
  z-index: 5;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.pfs-counter {
  position: absolute;
  top: 40px;
  right: var(--pad);
  z-index: 5;
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pfs-counter__cur { color: rgb(var(--c-ink)); font-size: 16px; }
.pfs-counter__sep,
.pfs-counter__total { color: var(--muted); }

.pfs-progress {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  right: var(--pad);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.pfs-progress__bar {
  flex: 1;
  height: 2px;
  background: rgba(var(--c-ink),0.15);
  position: relative;
  overflow: hidden;
}

.pfs-progress__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.5s var(--ease-expo);
}

.pfs-progress__bar.active::after { transform: scaleX(1); }

/* ============================================
   EXPERTISE
   ============================================ */
.expertise { background: var(--bg-1); }

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.expertise__item {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease-expo);
  opacity: 0;
  transform: translateY(20px);
}

.expertise__item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-expo);
}

.expertise__item:hover { background: rgba(5,173,184,0.04); }
.expertise__item:hover::before { width: 100%; }

.expertise__item-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.expertise__item-title {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.expertise__item:hover .expertise__item-title { color: var(--accent); }

.expertise__item-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   CREDENTIALS / CERTIFICATIONS
   ============================================ */
.credentials { overflow: hidden; }

.credentials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.credentials__header { margin-bottom: 0; }

.credentials__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.creds__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: rgb(var(--c-ink));
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease-expo), border-color 0.25s, transform 0.25s, opacity 0.25s;
}

.creds__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.creds__arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
  background: transparent;
  border-color: var(--border);
}

/* Horizontal scroller — bleeds to container edge */
.creds {
  margin-top: 56px;
  /* Indent the scroller so the first card lines up with the centered
     container content edge (matching the "Certifications." title). The
     right side bleeds to the viewport edge for the horizontal-scroll feel. */
  padding-left: max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad)));
}

.creds__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px var(--pad) 24px 0;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.creds__track::-webkit-scrollbar { display: none; }
.creds__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.creds__track.is-dragging .cred-card { pointer-events: none; }

.cred-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  min-height: 220px;
  transition: border-color 0.3s var(--ease-expo), transform 0.3s var(--ease-expo), background 0.3s;
  user-select: none;
}

.cred-card:hover {
  border-color: rgba(5,173,184,0.4);
  background: rgba(5,173,184,0.04);
  transform: translateY(-4px);
}

.cred-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cred-card__cat {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 60%;
}

/* Badge image (placeholder — swap src per cert) */
.cred-card__badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: block;
}

.cred-card__body {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  flex: 1;
}

.cred-card__title {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.cred-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.cred-card__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(var(--c-ink),0.4);
}

.cred-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cred-card__meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.85;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--bg); }

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.testimonial:hover {
  border-color: rgba(5,173,184,0.3);
  box-shadow: 0 0 40px rgba(5,173,184,0.06);
}

.testimonial__quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.5;
}

.testimonial__body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.testimonial__author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--c-ink));
}

.testimonial__author span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-1); }

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact__headline {
  font-family: var(--font);
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.contact__headline em {
  font-style: italic;
  color: var(--accent);
}

/* Splitting chars */
.contact__headline .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.contact__note {
  font-size: 14px;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.6;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease-expo);
}

.contact__link:first-child { border-top: 1px solid var(--border); }
.contact__link:hover { padding-left: 12px; }

.contact__link-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.contact__link-value {
  font-size: 15px;
  font-weight: 500;
  color: rgba(var(--c-ink),0.75);
  transition: color 0.2s;
}

.contact__link:hover .contact__link-value { color: rgb(var(--c-ink)); }

/* ============================================
   SPLITTING.JS – Char/Word Reveal Base State
   ============================================ */
[data-splitting] .word { overflow: hidden; }

/* ============================================
   REDUCED MOTION
   ============================================ */

/* ============================================
   RESPONSIVE — 1200px
   ============================================ */

/* ============================================
   RESPONSIVE — 992px
   ============================================ */

/* ============================================
   RESPONSIVE — 768px
   ============================================ */

/* ============================================
   RESPONSIVE — 480px
   ============================================ */

/* ===================== CASE STUDY DRAWER ===================== */
.csd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.csd-backdrop.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.csd {
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  max-width: 1600px;
  height: 100vh;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -40px 0 120px rgba(0, 0, 0, 0.55);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.6s;
}
.csd.is-open {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.csd__header {
  position: sticky;
  top: 0;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(24px, 4vw, 56px);
  background: rgba(var(--c-bg-rgb), 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.csd__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.csd__title {
  font-family: var(--font);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.csd__subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.csd__close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(var(--c-ink), 0.04);
  cursor: pointer;
  position: relative;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s;
}
.csd__close:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.csd__close-x {
  position: relative;
  width: 16px;
  height: 16px;
}
.csd__close-x::before,
.csd__close-x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: rgb(var(--c-ink));
}
.csd__close-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.csd__close-x::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.csd__close-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.csd__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Meta row — Project Type / Industry / Duration / Role */
.csd__meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.csd-meta-cell {
  background: var(--bg);
  padding: 18px clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.csd-meta-cell__value {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.csd-meta-cell__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two-column layout: sticky nav + content */
.csd__layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 56px) 80px;
  max-width: 1240px;
  margin: 0 auto;
}

.csd__nav {
  position: sticky;
  top: 32px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.csd-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted);
  border-radius: 4px;
  transition: color 0.25s, background 0.25s;
}
.csd-nav__item:hover { color: var(--text); }
.csd-nav__item:focus-visible,
.csd__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.csd-nav__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.csd-nav__item.is-active {
  color: var(--accent);
  background: var(--accent-dim);
}
.csd-nav__item.is-active .csd-nav__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(5, 173, 184, 0.6);
}

.csd__body {
  min-width: 0;
}

/* Sections */
.csd-sec {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.csd-sec:first-child { padding-top: 0; }
.csd-sec:last-child { border-bottom: none; }

.csd-sec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.csd-sec__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.csd-sec__label {
  font-family: var(--font);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.csd-sec p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}
.csd-sec p:last-child { margin-bottom: 0; }

.csd-lead {
  font-size: 17px !important;
  color: var(--text) !important;
  opacity: 0.9;
}

.csd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.csd-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.csd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
}

/* Challenge cards */
.csd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.csd-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-1);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s;
}
.csd-card:hover { border-color: var(--accent); }
.csd-card__title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.csd-card__desc {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: var(--muted);
  margin-bottom: 0 !important;
}

/* Bottom metrics bar */
.csd__metrics-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.csd-metric {
  background: rgba(var(--c-bg-rgb), 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 16px clamp(16px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.csd-metric__num {
  font-family: var(--font);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.csd-metric__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Screenshots */
.csd-shots {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.csd-shot {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
}
.csd-shot img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Responsive widths */
@media (max-width: 1024px) {
  .csd { width: 90vw; }
  .csd__layout { grid-template-columns: minmax(0, 1fr); }
  .csd__nav { display: none; }
}
@media (max-width: 768px) {
  .csd { width: 100vw; border-left: none; }
  .csd__header { padding: 16px 20px; }
  .csd__close { height: 38px; padding: 0 14px 0 12px; }
  .csd__close-label { display: none; }
  .csd__meta-row { grid-template-columns: repeat(2, 1fr); }
  .csd__metrics-bar { grid-template-columns: repeat(2, 1fr); }
}
