/* ============================================
   YASH VERMA — PM PORTFOLIO
   Ocean & Sunrise Theme
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg: #faf7f2;
  --bg-surface: #ffffff;
  --bg-warm: #f3ede4;

  /* Borders */
  --border: rgba(26, 46, 59, 0.08);
  --border-hover: rgba(26, 46, 59, 0.16);

  /* Ocean */
  --ocean: #2d6a8a;
  --ocean-deep: #1a3f54;
  --ocean-soft: rgba(45, 106, 138, 0.07);

  /* Sunrise */
  --sunrise: #d97756;
  --sunrise-soft: rgba(217, 119, 86, 0.08);
  --sunrise-glow: rgba(217, 119, 86, 0.2);

  /* Sage */
  --sage: #5a8f6b;
  --sage-soft: rgba(90, 143, 107, 0.08);

  /* Sand */
  --sand: #b8923a;
  --sand-soft: rgba(184, 146, 58, 0.09);

  /* Plum */
  --plum: #8b6f8a;
  --plum-soft: rgba(139, 111, 138, 0.08);

  /* Text */
  --text: #1a2e3b;
  --text-secondary: #4d6475;
  --text-tertiary: #8a9aa6;

  /* Typography */
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 5.5rem;
  --container: min(1060px, 90vw);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26, 46, 59, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 46, 59, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 46, 59, 0.1);

  color-scheme: light;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

/* --- Layout --- */
.container {
  width: var(--container);
  margin: 0 auto;
}

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

.section--alt {
  background: var(--bg-surface);
}

.section--warm {
  background: var(--bg-warm);
}

.section--ocean {
  background: var(--ocean-deep);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(250, 247, 242, 0.85);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ocean-deep);
}

.logo span {
  color: var(--sunrise);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sunrise);
  border-radius: 2px;
}

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sunrise);
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(217, 119, 86, 0.3);
  border-radius: 8px;
  transition: all var(--duration) var(--ease);
}

.nav__cta:hover {
  background: var(--sunrise-soft);
  border-color: rgba(217, 119, 86, 0.5);
  color: var(--sunrise);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn--primary {
  background: var(--sunrise);
  color: #fff;
  border-color: var(--sunrise);
}

.btn--primary:hover {
  background: #c4673f;
  border-color: #c4673f;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--sunrise-glow);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--text-tertiary);
  background: rgba(26, 46, 59, 0.03);
  transform: translateY(-1px);
}

.btn--sm {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.7rem 0;
}

.btn--ghost:hover {
  color: var(--ocean);
}

/* --- Homepage Hero --- */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, var(--ocean-soft), transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 60%, var(--sunrise-soft), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background-position 0.3s ease;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  min-width: 0;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 500px;
  color: var(--ocean-deep);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Photo wrapper with orbs */
.hero__photo-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.hero__photo {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 10px;
  will-change: transform;
}

.hero__photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid transparent;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

/* Rotating gradient border ring */
.hero__photo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--sunrise),
    var(--ocean),
    var(--sage),
    var(--sunrise)
  );
  opacity: 0.2;
  animation: borderRotate 12s linear infinite;
  z-index: 1;
}

@keyframes borderRotate {
  to { transform: rotate(360deg); }
}

/* Idle floating animation */
.hero__photo {
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Floating gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.hero__orb--sunrise {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--sunrise-glow), transparent 70%);
  top: -20px;
  right: -30px;
  animation: orbDrift1 6s ease-in-out infinite;
}

.hero__orb--ocean {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(45, 106, 138, 0.15), transparent 70%);
  bottom: -10px;
  left: -20px;
  animation: orbDrift2 8s ease-in-out infinite;
}

.hero__orb--sage {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(90, 143, 107, 0.12), transparent 70%);
  top: 50%;
  right: -40px;
  animation: orbDrift3 7s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(8px, -12px); }
  66% { transform: translate(-6px, 6px); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-10px, 8px); }
  66% { transform: translate(6px, -10px); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(12px, 6px); }
  66% { transform: translate(-8px, -8px); }
}

/* Staggered entrance animation — only when JS adds the class */
.js-hero-animated .hero__title,
.js-hero-animated .hero__subtitle,
.js-hero-animated .hero__actions {
  opacity: 0;
  transform: translateY(24px);
  animation: heroEntrance 0.7s var(--ease) forwards;
}

.js-hero-animated .hero__title { animation-delay: 0.1s; }
.js-hero-animated .hero__subtitle { animation-delay: 0.3s; }
.js-hero-animated .hero__actions { animation-delay: 0.5s; }

.js-hero-animated .hero__photo-wrapper {
  opacity: 0;
  transform: translateY(16px);
  animation: heroEntrance 0.7s var(--ease) 0.2s forwards;
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion: no animations */
@media (prefers-reduced-motion: reduce) {
  .js-hero-animated .hero__title,
  .js-hero-animated .hero__subtitle,
  .js-hero-animated .hero__actions,
  .js-hero-animated .hero__photo-wrapper {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__photo {
    animation: none;
  }

  .hero__photo::before {
    animation: none;
  }

  .hero__orb {
    animation: none;
  }
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-header__title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
  color: var(--ocean-deep);
}

.section-header__subtitle {
  color: var(--text-secondary);
  max-width: 520px;
  font-size: 1.025rem;
}

/* --- Work Cards (Homepage + Work page) --- */
/* --- Two-column work split (home page) --- */
.work-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.work-split__main {
  display: grid;
  gap: 1.25rem;
}

.work-split__side {
  display: grid;
  gap: 1.25rem;
}

.work-split__side-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.work-grid {
  display: grid;
  gap: 1.25rem;
}

.work-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.work-card__company {
  color: var(--text-tertiary);
}

.work-card__result {
  color: var(--sage);
  font-weight: 600;
  background: var(--sage-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.work-card__title {
  font-size: 1.35rem;
  line-height: 1.3;
}

.work-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ocean);
  margin-top: 0.25rem;
  transition: gap var(--duration) var(--ease);
}

.work-card__link:hover {
  gap: 0.55rem;
  color: var(--ocean);
}

/* Tags (used on work page + case studies) */
.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.tag--strategy {
  background: var(--ocean-soft);
  color: var(--ocean);
}

.tag--design {
  background: var(--plum-soft);
  color: var(--plum);
}

.tag--growth {
  background: var(--sage-soft);
  color: var(--sage);
}

.tag--analytics {
  background: var(--sand-soft);
  color: var(--sand);
}

/* Work card with visual panel (work page full-width cards) */
.work-card--full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.work-card--full .work-card__content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.work-card__outcome {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.work-card__metric {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sage);
}

.work-card__metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.work-card__visual {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
}

.work-card__visual--1 {
  background: linear-gradient(135deg, rgba(45, 106, 138, 0.1), rgba(217, 119, 86, 0.1));
}

.work-card__visual--2 {
  background: linear-gradient(135deg, rgba(90, 143, 107, 0.1), rgba(45, 106, 138, 0.1));
}

.work-card__visual--3 {
  background: linear-gradient(135deg, rgba(184, 146, 58, 0.1), rgba(139, 111, 138, 0.1));
}

.work-card__visual--4 {
  background: linear-gradient(135deg, rgba(139, 111, 138, 0.1), rgba(217, 119, 86, 0.1));
}

.work-card__visual::after {
  content: 'Add screenshot';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  border: 1px dashed var(--border-hover);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  opacity: 0.5;
}

/* --- Side Projects --- */
.side-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.side-project {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--duration) var(--ease);
}

.side-project:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.side-project__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-project__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.side-project__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--sage-soft);
  color: var(--sage);
  white-space: nowrap;
}

.side-project__badge--wip {
  background: var(--sand-soft);
  color: var(--sand);
}

.side-project__tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.side-project__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.side-project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.side-project__tech {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.side-project__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.side-project__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ocean);
}

/* --- About Me Teaser (homepage) --- */
.about-teaser {
  max-width: 560px;
}

.about-teaser__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-teaser__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ocean);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--duration) var(--ease);
}

.about-teaser__link:hover {
  gap: 0.55rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-pad) 0;
}

.cta-box {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 3.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-box__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.75rem;
  color: var(--ocean-deep);
}

.cta-box__text {
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 2rem;
  font-size: 1.025rem;
}

.cta-box__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Ocean-themed CTA (analytics dashboard) */
.cta-box--ocean {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-box--ocean .cta-box__title {
  color: #fff;
}

.cta-box--ocean .cta-box__text {
  color: rgba(255, 255, 255, 0.8);
}

.btn--ocean {
  background: #fff;
  color: var(--ocean-deep);
  border-color: #fff;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn--ocean:hover {
  background: var(--bg-warm);
  border-color: var(--bg-warm);
  color: var(--ocean-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color var(--duration) var(--ease);
}

.footer__link:hover {
  color: var(--ocean);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================
   PAGE HERO (Work, About, Contact pages)
   ============================================ */
.page-hero {
  padding: 5rem 0 3rem;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  max-width: 640px;
  color: var(--ocean-deep);
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* Story section */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.story__photo {
  margin-bottom: 2rem;
}

.story__photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--bg-warm);
  box-shadow: var(--shadow-sm);
}

.story__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
  line-height: 1.8;
}

.story__text p:first-of-type {
  font-size: 1.1rem;
  color: var(--text);
}

.story__sidebar {
  position: sticky;
  top: 6rem;
}

.story__sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--ocean-deep);
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.skill-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ocean-deep);
}

.skill-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-card__item {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline__item:first-child {
  padding-top: 0;
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ocean);
  padding-top: 0.15rem;
}

.timeline__role {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline__company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* Personality cards */
.about__group-photo {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__group-photo--hero {
  margin-top: -1rem;
  margin-bottom: 0;
}

.about__group-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 30%;
}

.personality__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.personality-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.personality-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.personality-card__emoji {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.personality-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.personality-card__text {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Recommendations / Now Playing */
.recs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.rec-list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.rec-list__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.rec-list__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.rec-list__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

.rec-list__items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rec-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem;
  background: var(--bg);
  border-radius: 8px;
  transition: background var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
}

.rec-item:hover {
  background: var(--bg-warm);
}

.rec-item__art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.rec-item__rank {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  min-width: 1.5rem;
}

.rec-item__info {
  flex: 1;
}

.rec-item__name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}

.rec-item__detail {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

.rec-list__embed {
  margin-top: 1rem;
}

/* ============================================
   PILLARS / OTHER NOTABLE WORK (Work page)
   ============================================ */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all var(--duration) var(--ease);
}

.pillar:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.pillar__icon--strategy {
  background: var(--ocean-soft);
  color: var(--ocean);
}

.pillar__icon--design {
  background: var(--plum-soft);
  color: var(--plum);
}

.pillar__icon--growth {
  background: var(--sage-soft);
  color: var(--sage);
}

.pillar__title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.pillar__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.pillar__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.pillar__skill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ============================================
   CASE STUDY PAGE
   ============================================ */
.cs-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
}

.cs-hero__back:hover {
  color: var(--ocean);
}

.cs-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cs-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  max-width: 700px;
  color: var(--ocean-deep);
}

.cs-hero__tldr {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
}

.cs-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cs-hero__phone {
  margin-top: 2.5rem;
  text-align: center;
}

.cs-hero__phone img {
  max-width: 200px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Case Study Meta */
.cs-meta {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.cs-meta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cs-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cs-meta__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.cs-meta__value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Case Study Content */
.cs-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--section-pad) 1rem;
}

.cs-content h2 {
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  margin-top: 3rem;
  color: var(--ocean-deep);
}

.cs-content h2:first-child {
  margin-top: 0;
}

.cs-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.cs-content p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  font-size: 1rem;
  line-height: 1.85;
}

.cs-content ul,
.cs-content ol {
  margin-bottom: 1.15rem;
  padding-left: 1.5rem;
}

.cs-content ul {
  list-style: disc;
}

.cs-content ol {
  list-style: decimal;
}

.cs-content li {
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  font-size: 0.975rem;
  line-height: 1.75;
}

/* Callout box */
.cs-callout {
  background: var(--bg-surface);
  border-left: 3px solid var(--ocean);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.75rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}

.cs-callout p {
  color: var(--text);
  margin-bottom: 0;
  font-size: 0.975rem;
}

/* Metrics */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.cs-metric {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.cs-metric__number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.cs-metric__label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* Info toggle (calculation breakdown) */
.cs-info-toggle {
  margin: -0.5rem 0 2rem;
}

.cs-info-toggle summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ocean);
  cursor: pointer;
  padding: 0.3rem 0;
  list-style: none;
}

.cs-info-toggle summary::-webkit-details-marker {
  display: none;
}

.cs-info-toggle summary::before {
  content: 'i';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ocean);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ocean);
  flex-shrink: 0;
}

.cs-info-toggle__content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 0.75rem;
}

.cs-info-toggle__content p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cs-info-toggle__content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.cs-info-toggle__content li {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

/* Case study image */
.cs-image {
  border-radius: 10px;
  margin: 1.75rem 0;
  overflow: hidden;
}

.cs-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.cs-image figcaption {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 0.5rem;
}

/* Case study navigation */
.cs-nav {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.cs-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cs-nav__label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-nav__title {
  font-weight: 600;
  font-size: 1rem;
}

.cs-nav__link:hover .cs-nav__title {
  color: var(--ocean);
}

.cs-nav__link--next {
  text-align: right;
}

/* Key learnings box */
.cs-learnings {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
}

.cs-learnings h3 {
  margin-top: 0;
}

.cs-learnings li {
  color: var(--text-secondary);
}

/* --- Case Study Content Gate --- */
.cs-gated-wrapper {
  position: relative;
}

.cs-gated-wrapper--locked .cs-gated-content {
  position: relative;
  max-height: 300px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}

.cs-gated-wrapper--locked .cs-gated-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(
    to bottom,
    rgba(250, 247, 242, 0) 0%,
    rgba(250, 247, 242, 0.7) 40%,
    rgba(250, 247, 242, 1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.cs-gate {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: -2rem auto 3rem;
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.cs-gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ocean-soft);
  color: var(--ocean);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.cs-gate__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ocean-deep);
  margin-bottom: 0.6rem;
}

.cs-gate__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cs-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.cs-gate__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cs-gate__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.cs-gate__input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
}

.cs-gate__input:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px var(--ocean-soft);
}

.cs-gate__submit {
  margin-top: 0.5rem;
  width: 100%;
}

.cs-gate__fine-print {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
  text-align: center;
}

.cs-gated-wrapper--unlocked .cs-gate {
  display: none;
}

.cs-gated-wrapper--unlocked .cs-gated-content {
  max-height: none;
  overflow: visible;
  pointer-events: auto;
  user-select: auto;
  filter: none;
}

.cs-gated-content--revealing {
  animation: gateReveal 0.6s var(--ease) forwards;
}

@keyframes gateReveal {
  from {
    max-height: 300px;
    filter: blur(2px);
    opacity: 0.5;
  }
  to {
    max-height: 4000px;
    filter: blur(0);
    opacity: 1;
  }
}

/* App Showcase Gallery */
.cs-app-showcase {
  margin: 3rem 0;
}

.cs-app-showcase__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.cs-app-showcase__subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.cs-app-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.cs-app-showcase__item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cs-app-showcase__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cs-app-showcase__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.cs-app-showcase__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0 0 20px 20px;
}

/* Side project with thumbnail — override flex to allow float wrapping */
.side-project--has-thumb {
  display: block;
}

.side-project--has-thumb > * + * {
  margin-top: 0.75rem;
}

.side-project__thumb {
  float: left;
  width: 110px;
  margin: 0 1rem 0.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.side-project__thumb-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.side-project__thumb:hover .side-project__thumb-img {
  transform: scale(1.03);
}

/* Clear float before tech stack and links */
.side-project--has-thumb .side-project__stack {
  clear: both;
}

@media (max-width: 900px) {
  .cs-app-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 500px) {
  .cs-app-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cs-app-showcase__item {
    border-radius: 14px;
  }

  .cs-app-showcase__img {
    border-radius: 14px;
  }

  .cs-app-showcase__label {
    font-size: 0.72rem;
    padding: 1.5rem 0.75rem 0.75rem;
    border-radius: 0 0 14px 14px;
  }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.contact__channel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact__channel-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.contact__channel-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact__channel-value:hover {
  color: var(--ocean);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px var(--ocean-soft);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-tertiary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.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;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pillars__grid {
    grid-template-columns: 1fr;
  }

  .work-split {
    grid-template-columns: 1fr;
  }

  .work-card--full {
    grid-template-columns: 1fr;
  }

  .work-card__visual {
    min-height: 200px;
    order: -1;
    border-radius: 12px 12px 0 0;
  }

  .cs-meta__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 5vw;
    right: 5vw;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    flex-direction: column;
    gap: 0.85rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link--active::after {
    display: none;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__photo-wrapper {
    order: 1;
    justify-self: center;
    width: 240px;
    height: 240px;
  }

  .hero__photo {
    width: 220px;
    height: 220px;
    margin: 10px;
  }

  .hero__photo img {
    width: 220px;
    height: 220px;
  }

  .hero__orb--sunrise { width: 80px; height: 80px; }
  .hero__orb--ocean { width: 50px; height: 50px; }
  .hero__orb--sage { width: 40px; height: 40px; }

  .hero__title {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .story__photo {
    text-align: center;
  }

  .about__group-photo img {
    height: 240px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cs-metrics {
    grid-template-columns: 1fr;
  }

  .cs-meta__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .side-projects__grid {
    grid-template-columns: 1fr;
  }

  .personality__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recs__grid {
    grid-template-columns: 1fr;
  }

  .cta-box__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__photo-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero__photo {
    width: 180px;
    height: 180px;
    margin: 10px;
  }

  .hero__photo img {
    width: 180px;
    height: 180px;
  }

  .about__group-photo img {
    height: 180px;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .personality__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
