/* ==========================================================================
   Sushmanth Katamreddy — Portfolio
   Tech-modern direction: Sora + Inter + IBM Plex Mono, dual-accent system.
   ========================================================================== */

:root {
  /* Palette — cool grey base, dual accent */
  --ink: #0b0d14;
  --ink-deep: #080a10;
  --ink-card: #21242b;
  --ink-card-hover: #2a2d34;
  --paper: #f0f0f0;
  --paper-warm: #e6e6e6;
  --paper-line: #dedede;

  --accent: #d63614;
  --accent-hover: #b82d10;
  --accent-2: #76e4fc;
  --accent-2-soft: rgba(118, 228, 252, 0.15);

  --text-on-dark: #ffffff;
  --text-on-dark-muted: #9e9e9e;
  --text-on-dark-faint: #686868;
  --text-on-light: #0b0d14;
  --text-on-light-muted: #686868;

  --line-dark: rgba(255, 255, 255, 0.08);
  --line-light: rgba(11, 13, 20, 0.08);

  /* Type */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(72px, 10vh, 140px);
  --radius: 8px;
  --radius-lg: 16px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--paper);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  z-index: 50;
  padding: 14px 24px;
  background: rgba(11, 13, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  border: 1px solid var(--line-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.nav__brand::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-muted);
}
.nav__links a:hover { color: #fff; opacity: 1; }
.nav__cta {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__cta:hover { background: var(--accent-hover); opacity: 1; }
.nav__menu-btn {
  display: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
}
@media (max-width: 800px) {
  .nav { top: 8px; left: 8px; right: 8px; padding: 12px 18px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn { display: block; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--ink-deep);
    border: 1px solid var(--line-dark);
    padding: 18px 24px;
    flex-direction: column;
    gap: 14px;
    border-radius: 16px;
  }
}

/* --- LABEL DEVICE --- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  padding: 6px 14px;
  border: 1px solid var(--line-light);
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
}
.label--dark {
  color: var(--text-on-dark-muted);
  border-color: var(--line-dark);
  background: rgba(255,255,255,0.04);
}
.label__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.label--dark .label__dot { background: var(--accent-2); }
.label__num { color: var(--accent); }
.label--dark .label__num { color: var(--accent-2); }

/* --- HERO --- */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  min-height: 100vh;
  padding: 140px 0 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Subtle grid noise in hero — Riwa-style atmosphere */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(214, 54, 20, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(118, 228, 252, 0.08), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-dark-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 8.5vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
  max-width: 14ch;
}
.hero__title .accent { color: var(--accent); }
.hero__title .accent-2 { color: var(--accent-2); }

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--text-on-dark-muted);
  max-width: 56ch;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  margin-top: 56px;
}
@media (max-width: 720px) { .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.hero__meta-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-dark-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero__meta-item strong {
  display: block;
  font-family: var(--font-body);
  color: var(--text-on-dark);
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: -0.01em;
  font-size: 14px;
  text-transform: none;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease;
  font-weight: 500;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--text-on-dark); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn--ghost-light { border: 1px solid var(--line-light); color: var(--text-on-light); background: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: #fff; }
.btn__arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --- SECTIONS --- */
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--paper { background: var(--paper); }
.section--paper-warm { background: var(--paper-warm); }

.section__header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-light);
}
.section--dark .section__header { border-bottom-color: var(--line-dark); }
@media (max-width: 720px) { .section__header { grid-template-columns: 1fr; gap: 24px; } }
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-top: 20px;
}
.section__title .accent { color: var(--accent); }
.section__title .accent-2 { color: var(--accent-2); }
.section__intro {
  color: var(--text-on-light-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 44ch;
}
.section--dark .section__intro { color: var(--text-on-dark-muted); }

/* --- WORK GRID --- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; gap: 20px; } }

.work-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover { opacity: 1; transform: translateY(-4px); }
.work-card__media {
  aspect-ratio: 4 / 3;
  background: var(--ink-card);
  position: relative;
  overflow: hidden;
}
.work-card__media img,
.work-card__media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .work-card__media img,
.work-card:hover .work-card__media svg { transform: scale(1.04); }

.work-card__num {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  z-index: 2;
  letter-spacing: 0.02em;
}
.work-card__tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 5px 11px;
  border-radius: 100px;
  z-index: 2;
  background: rgba(11, 13, 20, 0.5);
  backdrop-filter: blur(8px);
}

.work-card__body {
  padding: 24px 28px 28px;
  background: var(--ink-card);
  color: var(--text-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.work-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.work-card__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 6px;
}
.work-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-faint);
  text-align: right;
  white-space: nowrap;
}

/* --- CAPABILITY GRID --- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cap-grid { grid-template-columns: 1fr; } }

.cap-card {
  display: flex; flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--ink-card);
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.cap-card:hover {
  opacity: 1;
  background: var(--ink-card-hover);
  transform: translateY(-3px);
  border-color: rgba(118, 228, 252, 0.3);
}
.cap-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.cap-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid rgba(118, 228, 252, 0.3);
  border-radius: 100px;
}
.cap-card__icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.cap-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  margin-top: auto;
}
.cap-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}
.cap-card__arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-faint);
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
}
.cap-card__arrow span { transition: transform 0.2s ease; color: var(--accent-2); }
.cap-card:hover .cap-card__arrow span { transform: translateX(4px); }

/* --- ABOUT PREVIEW --- */
.about-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-preview { grid-template-columns: 1fr; gap: 40px; } }
.about-preview__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.about-preview__quote .accent { color: var(--accent); }
.about-preview__quote .accent-2 { color: var(--accent-2); }
.about-preview__body p {
  margin-bottom: 16px;
  color: var(--text-on-light-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* --- CONTACT --- */
.contact {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 100%, rgba(214, 54, 20, 0.15), transparent);
  pointer-events: none;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; gap: 40px; } }
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.contact__title .accent-2 { color: var(--accent-2); }
.contact__details {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.contact__details a { color: var(--text-on-dark); border-bottom: 1px solid var(--text-on-dark-faint); }
.contact__details a:hover { color: var(--accent-2); border-color: var(--accent-2); opacity: 1; }
.contact__details .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-dark); gap: 16px; }
.contact__details .row:first-child { border-top: none; }
.contact__details .row > span:first-child { color: var(--text-on-dark-faint); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; padding-top: 4px; }

/* --- FOOTER --- */
.footer {
  background: var(--ink-deep);
  color: var(--text-on-dark-muted);
  padding: 32px 0;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  letter-spacing: 0.04em;
}

/* --- CASE STUDY LAYOUT --- */
.case-header {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.case-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 0%, rgba(118, 228, 252, 0.08), transparent);
}
.case-header > .container { position: relative; z-index: 1; }
.case-header__top {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  margin-bottom: 56px;
}
.case-header__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
  max-width: 20ch;
}
.case-header__title .accent { color: var(--accent); }
.case-header__title .accent-2 { color: var(--accent-2); }

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 720px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }
.case-meta__item span:first-child {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-on-dark-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.case-meta__item span:last-child {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-on-dark);
  font-weight: 500;
}

.case-hero-image {
  aspect-ratio: 16 / 9;
  background: var(--ink-card);
  overflow: hidden;
  position: relative;
}
.case-hero-image img,
.case-hero-image svg { width: 100%; height: 100%; object-fit: cover; }

.case-section { padding: 80px 0; }
.case-section--dark { background: var(--ink); color: var(--text-on-dark); }
.case-section__inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 720px) { .case-section__inner { grid-template-columns: 1fr; gap: 16px; } }
.case-section__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 12px;
}
.case-section--dark .case-section__num { color: var(--accent-2); }
.case-section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.case-section__body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 64ch;
}
.case-section--dark .case-section__body p { color: var(--text-on-dark-muted); }

.case-image-block {
  margin: 60px auto;
  max-width: 1280px;
  padding: 0 var(--gutter);
}
.case-image-block__media {
  aspect-ratio: 16 / 9;
  background: var(--ink-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.case-image-block__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 14px;
  padding-left: 4px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}
@media (max-width: 720px) { .case-stats { grid-template-columns: 1fr; } }
.case-stat {
  padding: 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.5);
}
.case-section--dark .case-stat { border-color: var(--line-dark); background: rgba(255,255,255,0.03); }
.case-stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.case-section--dark .case-stat__value { color: var(--accent-2); }
.case-stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-light-muted);
}
.case-section--dark .case-stat__label { color: var(--text-on-dark-muted); }

/* --- CASE NAV --- */
.case-nav { padding: 48px 0; border-top: 1px solid var(--line-light); background: var(--paper); }
.case-nav__inner { display: flex; justify-content: space-between; gap: 24px; }
.case-nav a { font-family: var(--font-mono); font-size: 12px; }
.case-nav__label { display: block; color: var(--text-on-light-muted); font-size: 10px; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.case-nav a div:not(.case-nav__label) {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 500;
  text-transform: none;
}

/* --- CAPABILITY GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--ink-card);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (max-width: 540px) { .gallery-item--wide { grid-column: span 1; aspect-ratio: 1/1; } }
.gallery-item img, .gallery-item svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img, .gallery-item:hover svg { transform: scale(1.05); }
.gallery-item__label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- ABOUT PAGE --- */
.about-page { background: var(--paper); }
.about-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 70% 30%, rgba(118, 228, 252, 0.1), transparent);
}
.about-hero > .container { position: relative; z-index: 1; }
.about-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin-top: 36px;
}
.about-hero__title .accent { color: var(--accent); }
.about-hero__title .accent-2 { color: var(--accent-2); }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .about-content { grid-template-columns: 1fr; gap: 40px; } }
.about-content h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 10px;
  margin-top: 40px;
  font-weight: 500;
}
.about-content h3:first-child { margin-top: 0; }
.about-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--text-on-light);
}
.about-content ul { list-style: none; padding: 0; }
.about-content li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.about-content li strong { font-weight: 500; }
.about-content li span:last-child { color: var(--text-on-light-muted); font-family: var(--font-mono); font-size: 11px; }

/* --- SCROLL REVEAL --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media print { .nav, .footer, .contact { display: none; } body { background: white; color: black; } }

/* ============================================
   EXTENDED SECTIONS (v3 — more density)
   ============================================ */

/* --- MARQUEE --- */
.marquee {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  gap: 48px;
  align-items: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee__item .star {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  display: inline-block;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* --- STATS --- */
.stats {
  background: var(--paper);
  padding: 100px 0;
  border-bottom: 1px solid var(--line-light);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
.stat {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-light-muted);
  line-height: 1.5;
  max-width: 22ch;
}

/* --- FEATURED PROJECT (large card before grid) --- */
.featured-project {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-card);
  margin-bottom: 28px;
  border: 1px solid var(--line-light);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-project:hover { opacity: 1; transform: translateY(-3px); }
@media (max-width: 900px) { .featured-project { grid-template-columns: 1fr; } }
.featured-project__media {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .featured-project__media { aspect-ratio: 16 / 10; } }
.featured-project__media img, .featured-project__media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-project:hover .featured-project__media img,
.featured-project:hover .featured-project__media svg { transform: scale(1.04); }
.featured-project__body {
  padding: 40px 44px;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 720px) { .featured-project__body { padding: 32px 28px; } }
.featured-project__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: flex; align-items: center; gap: 10px;
}
.featured-project__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 16px 0 16px;
}
.featured-project__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
}
.featured-project__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-on-dark-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.featured-project__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
}
.featured-project:hover .featured-project__cta { color: var(--accent-2); }

/* --- FILTER TABS --- */
.work-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  padding: 6px;
  background: rgba(11, 13, 20, 0.04);
  border-radius: 100px;
  width: fit-content;
}
.work-filter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--text-on-light-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border: none;
}
.work-filter:hover { color: var(--text-on-light); }
.work-filter.is-active {
  background: var(--ink);
  color: #fff;
}

/* --- QUOTE BAND (full-bleed atmospheric) --- */
.quote-band {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.quote-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(214, 54, 20, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(118, 228, 252, 0.08), transparent);
  pointer-events: none;
}
.quote-band__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  position: relative; z-index: 1;
}
.quote-band__mark {
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--accent);
  line-height: 0;
  margin-bottom: 32px;
  display: inline-block;
}
.quote-band__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.quote-band__text .accent { color: var(--accent); }
.quote-band__text .accent-2 { color: var(--accent-2); }
.quote-band__attribution {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-faint);
  text-transform: uppercase;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.quote-band__attribution::before {
  content: ""; width: 32px; height: 1px;
  background: var(--text-on-dark-faint);
  display: inline-block;
}

/* --- PROCESS SECTION --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line-light);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.process-step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.process-step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  margin-top: auto;
}
.process-step__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-on-light-muted);
  line-height: 1.6;
}

/* --- CLIENTS WALL --- */
.clients-wall {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line-dark);
}
.clients-wall__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.clients-wall__title .accent-2 { color: var(--accent-2); }
.clients-wall__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-faint);
  margin-bottom: 60px;
  text-transform: uppercase;
}
.clients-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 720px) { .clients-list { grid-template-columns: repeat(2, 1fr); } }
.client {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.2s ease;
}
.client:hover { color: var(--accent-2); }
.client__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-dark-faint);
  letter-spacing: 0.04em;
}

/* --- BIG CTA BANNER (before contact) --- */
.cta-banner {
  background: var(--accent);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 0%, rgba(118, 228, 252, 0.18), transparent),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(11, 13, 20, 0.25), transparent);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 900px) { .cta-banner__inner { grid-template-columns: 1fr; gap: 32px; } }
.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.cta-banner__title em { font-style: italic; }
.cta-banner__body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.cta-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta-banner__cta:hover { background: #000; transform: translateY(-2px); opacity: 1; }

/* ============================================
   HERO V2 — Riwa-style with massive background wordmark
   Overrides previous hero styles
   ============================================ */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  min-height: 100vh;
  padding: 120px 0 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Massive faded SUSHMANTH wordmark filling the hero */
.hero__wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 17vw, 260px);
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  line-height: 0.9;
  text-transform: uppercase;
}

/* Subtle ambient gradient */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(214, 54, 20, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(118, 228, 252, 0.07), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Decorative sparkles */
.hero__sparkle {
  position: absolute;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-mono);
  font-size: 14px;
  z-index: 2;
  pointer-events: none;
}

/* Headline — caps, two lines, large */
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
  max-width: 14ch;
  color: var(--text-on-dark);
}
.hero__title .accent { color: var(--accent); }
.hero__title .accent-2 { color: var(--accent-2); }

/* ============================================
   STATS V2 — Riwa-style hierarchy on clean cards
   ============================================ */
.stats {
  background: var(--paper);
  padding: 100px 0;
  border-bottom: 1px solid var(--line-light);
}
.stats__header {
  margin-bottom: 60px;
}
.stats__header .label { margin-bottom: 20px; }
.stats__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 18ch;
}
.stats__title .accent { color: var(--accent); }
.stats__title .muted { color: var(--text-on-light-muted); opacity: 0.4; }
.stats__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-on-light-muted);
  max-width: 50ch;
  margin-top: 24px;
  line-height: 1.5;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-left: none;
}
@media (max-width: 900px) { .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 540px) { .stats__inner { grid-template-columns: 1fr; } }

.stat-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  /* Subtle 'tab' detail to nod at Riwa without copying the cut */
  background-image: linear-gradient(135deg, transparent calc(100% - 28px), var(--paper) calc(100% - 28px));
}
.stat-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-light);
  font-weight: 500;
  margin-bottom: auto;
}
.stat-card__label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  border-radius: 1px;
}
.stat-card__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-on-light);
  margin: 36px 0 32px;
}
.stat-card__divider {
  height: 1px;
  background: var(--line-light);
  margin-bottom: 16px;
}
.stat-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.stat-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-on-light-muted);
  max-width: 22ch;
}
.stat-card__icon {
  width: 28px;
  height: 28px;
  color: var(--text-on-light-muted);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============================================
   PROJECT CARD — clearer "Read case study" affordance
   ============================================ */
.work-card__cta {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(11, 13, 20, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(118, 228, 252, 0.3);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.work-card:hover .work-card__cta {
  opacity: 1;
  transform: translateY(0);
}
/* On mobile / no-hover, always show */
@media (hover: none) {
  .work-card__cta { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CAPABILITIES PILL-ROW LIST (Riwa-style expandable)
   ============================================ */
.cap-list {
  border-top: 1px solid var(--line-light);
}
.section--dark .cap-list { border-top-color: var(--line-dark); }

.cap-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line-light);
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: padding 0.3s ease;
  position: relative;
}
.section--dark .cap-row { border-bottom-color: var(--line-dark); }
.cap-row:hover { padding-left: 16px; }

.cap-row__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-on-light-muted);
  padding: 8px 16px;
  border: 1px dashed var(--line-light);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 28px;
  flex-shrink: 0;
  min-width: 110px;
}
.section--dark .cap-row__num { color: var(--text-on-dark-muted); border-color: var(--line-dark); }
.cap-row__icon {
  width: 16px; height: 16px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  border-radius: 2px;
  position: relative;
}
.cap-row__icon--circle { border-radius: 50%; background: var(--accent); }
.cap-row__icon--triangle {
  background: transparent;
  border-style: solid;
  border-width: 0 8px 14px 8px;
  border-color: transparent transparent var(--accent) transparent;
  border-radius: 0;
  width: 0; height: 0;
}
.cap-row__icon--ring {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.cap-row__icon--burst {
  background: var(--accent);
  border-radius: 0;
  clip-path: polygon(50% 0%, 60% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 40% 35%);
}
.cap-row__icon--rect {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 2px;
}

.cap-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  flex-grow: 1;
  color: var(--text-on-light);
}
.section--dark .cap-row__title { color: var(--text-on-dark); }

.cap-row__toggle {
  width: 44px;
  height: 44px;
  border: 1px dashed var(--line-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.section--dark .cap-row__toggle { border-color: var(--line-dark); }
.cap-row:hover .cap-row__toggle { background: var(--accent); border-style: solid; border-color: var(--accent); }
.cap-row__toggle::before, .cap-row__toggle::after {
  content: "";
  position: absolute;
  background: var(--text-on-light-muted);
  transition: transform 0.3s ease, background 0.2s ease;
}
.section--dark .cap-row__toggle::before, .section--dark .cap-row__toggle::after { background: var(--text-on-dark-muted); }
.cap-row:hover .cap-row__toggle::before, .cap-row:hover .cap-row__toggle::after { background: #fff; }
.cap-row__toggle::before {
  width: 16px; height: 1.5px;
}
.cap-row__toggle::after {
  width: 1.5px; height: 16px;
}
.cap-row.is-open .cap-row__toggle::after { transform: rotate(90deg); }

.cap-row__panel {
  display: none;
  padding: 0 0 28px 138px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-on-light-muted);
  max-width: 70ch;
}
.section--dark .cap-row__panel { color: var(--text-on-dark-muted); }
.cap-row.is-open + .cap-row__panel { display: block; }

@media (max-width: 720px) {
  .cap-row__num { min-width: 70px; padding: 6px 12px; margin-right: 16px; font-size: 11px; }
  .cap-row__title { font-size: 20px; }
  .cap-row__panel { padding-left: 0; padding-top: 16px; }
}

/* ============================================
   UX PROJECTS GRID (4 cards, smaller)
   ============================================ */
.ux-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .ux-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ux-grid { grid-template-columns: 1fr; } }
.ux-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ux-card:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11,13,20,0.08); }
.ux-card__media {
  aspect-ratio: 4 / 3;
  background: var(--ink-card);
  overflow: hidden;
  position: relative;
}
.ux-card__media img, .ux-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.ux-card__num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 100px; letter-spacing: 0.04em;
}
.ux-card__body { padding: 20px 22px; }
.ux-card__tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.ux-card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--text-on-light);
}
.ux-card__sub {
  font-family: var(--font-body); font-size: 12px;
  color: var(--text-on-light-muted); margin-top: 4px;
}

/* ============================================
   RIWA-STYLE CASE STUDY (project detail) LAYOUT
   ============================================ */
.case-hero-v2 {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 140px 0 80px;
  position: relative;
}
.case-hero-v2__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .case-hero-v2__inner { grid-template-columns: 1fr; gap: 40px; } }
.case-hero-v2__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.case-hero-v2__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  padding: 8px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  align-self: flex-start;
  background: rgba(255,255,255,0.03);
}
.case-hero-v2__pill::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.case-hero-v2__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.case-hero-v2__title .slash { color: var(--text-on-dark-muted); font-weight: 400; }

.case-hero-v2__visit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  width: fit-content;
  min-width: 280px;
  transition: background 0.2s ease;
}
.case-hero-v2__visit:hover { background: rgba(255,255,255,0.06); opacity: 1; }
.case-hero-v2__visit-icon {
  width: 32px; height: 32px;
  background: #fff; color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.case-hero-v2__right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 80px;
}
@media (max-width: 900px) { .case-hero-v2__right { padding-top: 0; } }
.case-hero-v2__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  text-align: right;
}
.case-hero-v2__desc {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}
.case-hero-v2__meta {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
.case-hero-v2__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 14px;
}
.case-hero-v2__meta-row:first-child { border-top: 1px solid var(--line-dark); }
.case-hero-v2__meta-row span:first-child {
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
}
.case-hero-v2__meta-row span:last-child {
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
}

/* Full-bleed hero image with cropped corners */
.case-bigimage {
  background: var(--ink);
  padding: 0 var(--gutter);
}
.case-bigimage__inner {
  aspect-ratio: 16 / 9;
  background: var(--ink-card);
  overflow: hidden;
  position: relative;
  /* Subtle corner clip */
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
.case-bigimage__inner img, .case-bigimage__inner svg { width: 100%; height: 100%; object-fit: cover; }

/* Numbered content section with pill + big headline */
.case-block {
  padding: 100px 0;
  background: var(--paper);
}
.case-block__inner {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .case-block__inner { grid-template-columns: 1fr; gap: 24px; } }
.case-block__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-light);
  padding: 6px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line-light);
  border-radius: 100px;
  align-self: flex-start;
}
.case-block__pill::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.case-block__pill-num { color: var(--accent); margin-right: 6px; }
.case-block__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.case-block__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-light-muted);
  margin-top: 16px;
  align-self: end;
}

/* Image grid below content blocks */
.case-imggrid {
  background: var(--paper);
  padding: 0 var(--gutter) 80px;
}
.case-imggrid__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 720px) { .case-imggrid__inner { grid-template-columns: 1fr; } }
.case-imggrid__item {
  aspect-ratio: 4 / 3;
  background: var(--ink-card);
  overflow: hidden;
  /* Subtle corner clip */
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.case-imggrid__item img, .case-imggrid__item svg { width: 100%; height: 100%; object-fit: cover; }
.case-imggrid--single .case-imggrid__inner { grid-template-columns: 1fr; }
.case-imggrid--single .case-imggrid__item { aspect-ratio: 16 / 9; }

/* ============================================
   RED FOOTER BLOCK (Riwa-style)
   ============================================ */
.red-footer {
  background: var(--accent);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.red-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(118, 228, 252, 0.12), transparent);
  pointer-events: none;
}
.red-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .red-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .red-footer__inner { grid-template-columns: 1fr; }
}
.red-footer__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
}
.red-footer__label::before {
  content: ""; width: 8px; height: 8px; background: #0b0d14;
  border-radius: 2px; display: inline-block;
}
.red-footer__contact-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #fff;
  display: block;
}
.red-footer__contact-item:hover { opacity: 0.8; }

.red-footer__nav-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding: 4px 0;
  color: #fff;
}
.red-footer__nav-link:hover { opacity: 0.8; }

.red-footer__social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding: 4px 0;
  color: #fff;
}
.red-footer__social-link:hover { opacity: 0.8; }

.red-footer__top {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: start;
}
.red-footer__top:hover { opacity: 0.8; }

/* ============================================
   BOTTOM WORDMARK FOOTER (massive SUSHMANTH below red footer)
   ============================================ */
.bottom-footer {
  background: var(--ink-deep);
  color: var(--text-on-dark-muted);
  position: relative;
  overflow: hidden;
  padding: 60px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.bottom-footer__wordmark {
  position: absolute;
  inset: auto 0 -20% 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(140px, 22vw, 380px);
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  line-height: 0.85;
  text-transform: uppercase;
}
.bottom-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ============================================
   3D + MOTION EFFECTS (v8 — depth and life)
   ============================================ */

/* Better scroll reveal — slightly more dramatic */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* 3D tilt setup — perspective on parents */
.stats__inner, .work-grid, .ux-grid, .cap-grid {
  perspective: 1200px;
}

.stat-card, .work-card, .ux-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  will-change: transform;
}

/* Subtle floating animation on stat cards when idle */
@media (hover: hover) {
  @keyframes stat-float {
    0%, 100% { transform: translateZ(0) translateY(0); }
    50% { transform: translateZ(8px) translateY(-2px); }
  }
  .stat-card:nth-child(1) { animation: stat-float 6s ease-in-out infinite; }
  .stat-card:nth-child(2) { animation: stat-float 6s ease-in-out 1.5s infinite; }
  .stat-card:nth-child(3) { animation: stat-float 6s ease-in-out 3s infinite; }
  .stat-card:nth-child(4) { animation: stat-float 6s ease-in-out 4.5s infinite; }
  .stat-card:hover { animation-play-state: paused; }
}

/* Pulsing dot indicator */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(214, 54, 20, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(214, 54, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 54, 20, 0); }
}
.hero__eyebrow .dot {
  animation: pulse-dot 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-dot-cyan {
  0% { box-shadow: 0 0 0 0 rgba(118, 228, 252, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(118, 228, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(118, 228, 252, 0); }
}
.label--dark .label__dot {
  animation: pulse-dot-cyan 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Cursor follower */
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 228, 252, 0.7), rgba(118, 228, 252, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-follower.is-visible { opacity: 1; }
.cursor-follower.is-large { width: 80px; height: 80px; }

/* Hide cursor follower on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-follower { display: none; }
}

/* Hero parallax layers */
.hero__layer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  opacity: 0.4;
}
.hero__layer--1 { top: 18%; left: 7%; }
.hero__layer--2 { top: 22%; right: 10%; }
.hero__layer--3 { bottom: 28%; left: 12%; }
.hero__layer--4 { bottom: 18%; right: 8%; }

/* Spinning subtle orbit */
@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero__layer--orbit {
  animation: slow-spin 60s linear infinite;
}

/* Work card 3D lift on hover — JS-driven via mouse follow, this is the baseline */
.work-card:hover .work-card__media img,
.work-card:hover .work-card__media svg {
  transform: scale(1.06);
}

/* Featured project — extra 3D drama */
.featured-project {
  perspective: 1400px;
  transform-style: preserve-3d;
}
.featured-project__media {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-project:hover .featured-project__media {
  transform: translateZ(20px) rotateY(-1deg);
}

/* CTA banner — subtle floating ambient glow */
.cta-banner::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(118, 228, 252, 0.2), transparent 70%);
  border-radius: 50%;
  top: -200px; right: -100px;
  animation: drift 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}

/* Marquee paused on hover for readability */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* Cap row hover — subtle slide effect on the icon */
.cap-row__icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-row:hover .cap-row__icon {
  transform: scale(1.15) rotate(8deg);
}

/* Reduced motion — disable all of the above */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-follower { display: none; }
  .stat-card { animation: none; }
}

/* ============================================
   v9 — FOOTER FIXES: continuous wordmark, no crop
   ============================================ */

/* Make nav less translucent so orange CTA doesn't bleed through */
.nav__inner {
  background: rgba(11, 13, 20, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

/* Restructure bottom-footer so wordmark is fully visible in flow */
.bottom-footer {
  background: var(--ink-deep);
  color: var(--text-on-dark-muted);
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top: none;
}

/* Wordmark now in normal flow, fully visible */
.bottom-footer__wordmark {
  position: static !important;
  inset: auto !important;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.05);
  text-align: center;
  text-transform: uppercase;
  padding: 60px 0 20px;
  margin: 0;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  /* Subtle gradient mask so edges fade */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.bottom-footer__inner {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0;
  color: var(--text-on-dark-muted);
  position: relative;
  z-index: 1;
}

/* Remove the visible seam between contact and bottom-footer */
.contact {
  padding-bottom: 80px;
  border-bottom: none;
}


/* ============================================
   v9.1 — NAV FIX: remove grey ring artifact
   ============================================ */

/* Reset the nav opacity bump that created the double-pill artifact.
   Use a translucent background that still blocks CTA banner bleed
   but doesn't create a visible solid block behind the pill. */
.nav__inner {
  background: rgba(11, 13, 20, 0.75) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

/* Make sure the nav wrapper itself has no background filling */
.nav {
  background: transparent !important;
}

/* ============================================
   UX CASE STUDY SECTIONS — Tony Xing-style structure
   ============================================ */

/* Overview stats row */
.ux-overview {
  background: var(--paper);
  padding: 100px 0;
}
.ux-overview__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .ux-overview__inner { grid-template-columns: 1fr; gap: 40px; } }

.ux-overview__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.ux-overview__stat {
  border-top: 1px solid var(--line-light);
  padding-top: 20px;
}
.ux-overview__stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-light-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ux-overview__stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Research methods grid */
.ux-research {
  background: var(--paper-warm);
  padding: 100px 0;
}
.ux-research__methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 720px) { .ux-research__methods { grid-template-columns: 1fr; } }
.ux-method {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  position: relative;
}
.ux-method__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ux-method__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ux-method__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-on-light-muted);
}

/* Key insights — numbered prominent */
.ux-insights {
  margin-top: 60px;
  display: grid;
  gap: 16px;
}
.ux-insight {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-light);
}
.ux-insight:first-child { border-top: 1px solid var(--line-light); }
.ux-insight__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.ux-insight__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* Process timeline */
.ux-process {
  background: var(--paper);
  padding: 100px 0;
}
.ux-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 48px;
  position: relative;
}
@media (max-width: 900px) { .ux-process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ux-process__steps { grid-template-columns: 1fr; } }
.ux-step {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: 28px;
  position: relative;
}
.ux-step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}
.ux-step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ux-step__desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-on-light-muted);
}

/* Reflection callout — Tony-style */
.ux-reflection {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 100px 0;
}
.ux-reflection__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.ux-reflection__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 32px 0 24px;
}
.ux-reflection__quote .accent { color: var(--accent); }
.ux-reflection__quote .accent-2 { color: var(--accent-2); }

/* Tony-style skill badges */
.ux-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.ux-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ux-badge--green { background: #c8eb7f; color: #1f3a0f; }
.ux-badge--purple { background: #d8c8f5; color: #2a1a4f; }
.ux-badge--yellow { background: #f5e98a; color: #3d3000; }
.ux-badge--blue { background: #aedaf5; color: #0c2a3f; }
.ux-badge--pink { background: #f5b8c0; color: #3d0c1a; }
.ux-badge--mint { background: #b9eddc; color: #0c3d2e; }


/* ============================================
   v10 — HERO 3D INTERACTION (mouse-tracked perspective)
   ============================================ */

/* Stop the slow rotation — user wants 3D interaction, not auto-rotation */
.hero__layer--orbit {
  animation: none !important;
}

/* Set up 3D perspective on hero */
.hero {
  perspective: 1500px;
  perspective-origin: center center;
}

/* The 3D stage — everything decorative lives in here and rotates with mouse */
.hero__3d-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

/* Each decorative element gets a depth in 3D space */
.hero__3d-stage .hero__wordmark {
  transform: translateZ(-180px) scale(1.18);
}
.hero__3d-stage .hero__layer--1 {
  transform: translateZ(-80px);
  position: absolute;
}
.hero__3d-stage .hero__layer--2 {
  transform: translateZ(-50px);
}
.hero__3d-stage .hero__layer--3 {
  transform: translateZ(-110px);
}
.hero__3d-stage .hero__layer--4 {
  transform: translateZ(-70px);
}
.hero__3d-stage .hero__sparkle {
  transform: translateZ(40px);
}

/* When mouse not on hero, stage settles flat */
.hero:not(:hover) .hero__3d-stage {
  transform: rotateX(0) rotateY(0);
}

/* Disable 3D on touch devices and reduced-motion users */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero { perspective: none; }
  .hero__3d-stage { transform: none !important; }
  .hero__3d-stage .hero__wordmark,
  .hero__3d-stage .hero__layer,
  .hero__3d-stage .hero__sparkle {
    transform: none !important;
  }
  /* Restore wordmark to original size since we removed scale(1.18) */
}


/* ============================================
   v10.1 — NAV FINAL FIX: clean solid pill, no bleed-through
   ============================================ */

/* Solid background, proper pill, no red bleed. */
.nav__inner {
  background: #0b0d14 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure no decorative bleed from hero gradient escapes above the nav.
   The hero's red atmospheric gradient was leaking past the nav's top edge. */
.nav {
  isolation: isolate;
}
.nav__inner {
  isolation: isolate;
}


/* ============================================
   v10.2 — NAV PROPER GLASS EFFECT
   .nav is the pill, .nav__inner is just a flex container.
   Earlier fixes were targeting the wrong element.
   ============================================ */

/* Reset nav__inner — it must NOT have its own background or borders.
   It is just a flex layout container inside the pill. */
.nav__inner {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  isolation: auto !important;
}

/* THE pill itself — proper glass with backdrop blur */
.nav {
  background: rgba(11, 13, 20, 0.55) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
  isolation: isolate;
}


/* ============================================
   v10.3 — NAV CONTRAST FIX
   55% opacity wasn't dark enough for white text on light backgrounds.
   Bump to 82% — still feels like glass (blur+saturate), text always readable.
   ============================================ */

.nav {
  background: rgba(11, 13, 20, 0.82) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
}

/* Bump nav text weight slightly so it sits more confidently on the glass */
.nav__links a {
  color: rgba(255, 255, 255, 0.92) !important;
}
.nav__links a:hover {
  color: #fff !important;
}


/* ============================================
   v12 — CASE STUDY HERO: balance left/right columns
   Left column (pill + title) was shorter than right column (date + desc + meta table),
   leaving a big gap below the title. Vertically center left column to fix.
   ============================================ */
.case-hero-v2__inner {
  align-items: center !important;
}

/* Stop the title taking up unnecessary vertical space — let it size naturally */
.case-hero-v2__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* ============================================
   v13 — CASE HERO: stacked single-column layout
   - Pill + date at top (horizontal row)
   - Big title below
   - Description below title
   - Meta as horizontal 4-column row at bottom
   ============================================ */

/* Remove old 2-column inner — we don't use it anymore */
.case-hero-v2 .container {
  position: relative;
}

/* Top row: pill on left, date on right */
.case-hero-v2__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Title stays the same massive scale */
.case-hero-v2__title {
  margin-bottom: 36px !important;
  max-width: 100% !important;
}

/* Description — limited width for readability, larger size */
.case-hero-v2__desc {
  max-width: 720px !important;
  font-size: clamp(18px, 1.6vw, 22px) !important;
  line-height: 1.55 !important;
  margin-bottom: 64px !important;
  color: var(--text-on-dark-muted) !important;
}

/* Meta — horizontal 4-column grid */
.case-hero-v2__meta {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 32px !important;
  padding-top: 32px !important;
  border-top: 1px solid var(--line-dark) !important;
}

@media (max-width: 900px) {
  .case-hero-v2__meta {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}
@media (max-width: 540px) {
  .case-hero-v2__meta {
    grid-template-columns: 1fr !important;
  }
}

.case-hero-v2__meta-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-hero-v2__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.case-hero-v2__meta-value {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-on-dark);
  font-weight: 500;
}

