/* Design tokens (shadcn/ui-inspired) */
:root {
  --background: #020817;
  --foreground: #f9fafb;
  --muted: #0f172a;
  --muted-foreground: #9ca3af;
  --card: #020617;
  --card-foreground: #e5e7eb;
  --border: rgba(148, 163, 184, 0.3);
  --primary: #38bdf8;
  --primary-foreground: #0b1120;
  --radius-lg: 0.9rem;
  --radius-xl: 1.2rem;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.55);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.35);
}

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: radial-gradient(circle at top, #0b1120, #020617 55%, #020617);
}

h1, h2, h3, h4, h5, h6,
.site-nav a,
.section-title,
.case-study-title,
.logo-placeholder {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.site-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--foreground);
  background-color: rgba(15, 23, 42, 0.8);
}

.site-main {
  padding: 0;
}

.site-main--home {
  padding-bottom: 3rem;
}

/* Home: hero = intro + featured product case study, rainbow background */
.home-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding: 3rem 0 3.5rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #08121d;
  background: rgb(8, 25, 48);
}

/* Animated gradient: tall strip scrolls vertically for slow color transitions */
.home-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-gradient::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1000vh;
  opacity: 0.9;
  background: linear-gradient(
    to bottom,
    rgb(8, 25, 48) 0%,
    rgb(101, 91, 239) 10%,
    rgb(250, 40, 191) 25%,
    rgb(255, 70, 101) 40%,
    rgb(251, 222, 78) 55%,
    rgb(0, 251, 234) 70%,
    rgb(85, 93, 239) 85%,
    rgb(8, 25, 48) 100%
  );
  animation: hero-gradient-slide 50s ease-in-out infinite;
}

@keyframes hero-gradient-slide {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-450vh);
  }
  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-gradient::after {
    animation: none;
    height: 100%;
  }
}

/* Stars: uniform small dots, very light blue-white */
.home-hero-dots {
  position: absolute;
  top: -15%;
  left: -15%;
  right: -15%;
  bottom: -15%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, rgba(224, 231, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  will-change: transform;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.72);
  z-index: 0.5;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(8, 25, 48, 0.15);
  border-radius: var(--radius-lg);
}
.home-hero .intro {
  margin-bottom: 2.5rem;
}

.home-hero .intro-copy,
.home-hero .intro-copy span {
  color: #fff;
}

.home-hero .section-title {
  color: #fff;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* Home / index */
.intro {
  margin-top: 0;
  margin-bottom: 3rem;
}

.intro-copy {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 300;
  font-family: 'Inter', system-ui, sans-serif;
  color: #E4E9ED;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 0, 0, 0.35);
}

.intro-copy .intro-emphasis {
  font-weight: 700;
  color: #fff;
}

.intro-copy span {
  color: #bae6fd;
}

.project-grid {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.home-hero .project-grid {
  margin-top: 0;
}

.project-grid + .project-grid {
  margin-top: 4rem;
}

.project-grid-header {
  margin: 0 0;
}

.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: #e5e7eb;
  font-size: 0.98rem;
}

.project-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.project-grid--case-study .project-grid-inner {
  grid-template-columns: minmax(0, 1fr);
}

.project-grid:not(.project-grid--case-study) .project-grid-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

.project-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, background-color 0.18s ease;
}

a.project-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: rgba(15, 23, 42, 0.98);
}

.project-card--dnd:hover {
  border-color: rgba(220, 38, 38, 0.7);
}

.project-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.project-card-actions .button {
  flex: 1 1 50%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
}

.project-card-title-link {
  color: inherit;
  text-decoration: none;
}

.project-card-title-link:hover {
  color: var(--primary);
}

.project-card .project-cover a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Feature card: 50/50 row layout (must come after .project-card to override flex-direction) */
.project-card--feature {
  flex-direction: row;
  align-items: stretch;
}

.project-card--feature .project-cover--logo-left {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  aspect-ratio: auto;
  min-height: 10rem;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-card--feature .project-cover-wordmark {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  max-width: 50%;
  max-height: 70%;
  width: auto;
  height: auto;
}

.project-card--feature .project-body {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  justify-content: center;
  padding: 2rem 2rem 2rem 1.5rem;
}

/* Other notable projects: same layout as case study (cover left, body right on desktop) */
.project-grid:not(.project-grid--case-study) .project-card {
  flex-direction: row;
  align-items: stretch;
}

.project-grid:not(.project-grid--case-study) .project-card .project-cover {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  aspect-ratio: auto;
  min-height: 10rem;
  padding: 1.25rem 1.25rem;
}

.project-grid:not(.project-grid--case-study) .project-card .project-body {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  padding: 2rem 2rem 2rem 1.5rem;
  justify-content: center;
}

.project-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.75);
  overflow: hidden;
}

.project-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-cover-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  max-height: 50%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.project-cover span,
.project-cover-label {
  position: relative;
  z-index: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.75rem;
}

.project-cover--orchard {
  background: #131d28;
}

.project-cover--orchard .project-cover-img {
  position: relative;
  top: auto;
  left: auto;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  margin: 10px;
}

.project-cover--aspireship {
  background: #4810a4;
}

.project-cover--mindbody {
  background: radial-gradient(circle at top left, #f97316, #ec4899);
}

.project-cover--ai {
  background: radial-gradient(circle at top left, #6366f1, #38bdf8);
}

.project-cover--bff {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.project-cover--frederick {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
}

.project-cover--personas {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
}

.project-cover--financial {
  background: #131d28;
}

.project-cover--financial .project-cover-img {
  position: relative;
  top: auto;
  left: auto;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  margin: 10px;
}

.project-cover--dnd {
  background: linear-gradient(135deg, #1a0a0a 0%, #9b2226 100%);
}

.project-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

.project-challenge {
  font-size: 0.92rem;
  color: #e5e7eb;
}

.project-stat {
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.project-context {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.project-meta {
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.project-summary {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e5e7eb;
  font-weight: 400;
  padding: 10px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.3rem;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.button-primary {
  background: #38bdf8;
  color: #0b1120;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.button-primary:hover {
  background: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.55);
}

/* Red glowy button (Passion Project / D&D) */
.button-campaign {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.button-campaign:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(220, 38, 38, 0.55);
}

.button-ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.button-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.9);
}

/* Outline style (logo-placeholder look): bright blue outline and text, low opacity blue background */
.button-outline {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: none;
}

.button-outline:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.7);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

/* Case study layout – full-width bands */
.case-study-body {
  padding: 0;
  position: relative;
}

/* Case study: right-hand sticky nav (desktop only) */
.case-study-nav {
  display: none;
}

@media (min-width: 1024px) {
  .case-study-nav {
    display: block;
    position: fixed;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    z-index: 100;
    width: 11rem;
  }

  .case-study-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .case-study-nav li {
    margin-bottom: 0.35rem;
  }

  .case-study-nav a {
    display: block;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-decoration: none;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    margin-left: 0;
    transition: color 0.18s ease, border-color 0.18s ease;
  }

  .case-study-nav a:hover {
    color: #e5e7eb;
  }

  .case-study-nav a:focus {
    outline: none;
    color: var(--foreground);
  }

  .case-study-nav a.active {
    color: #fff;
    font-weight: 700;
    border-left: 2px solid #38bdf8;
    border-left-color: #38bdf8;
  }
}

/* Case study: scroll offset so anchored sections sit below the sticky header */
.case-study-body [id] {
  scroll-margin-top: 5rem;
}

/* Intro section (title + My Role) */
.case-study-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

/* Orchard hero: background image, scales with viewport, subdued so content stays focal */
/* Case study parallax hero (same structure as home, theme-specific gradients) */
.case-study-intro--hero {
  position: relative;
  overflow: hidden;
}
.case-study-intro--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0.5;
}
.case-study-intro--hero .case-study-hero-bg,
.case-study-intro--hero .case-study-hero-dots {
  position: absolute;
  top: -15%;
  left: -15%;
  right: -15%;
  bottom: -15%;
  z-index: 0;
  will-change: transform;
}
.case-study-intro--hero .case-study-hero-dots {
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, rgba(224, 231, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.case-study-intro--hero .case-study-section-inner {
  position: relative;
  z-index: 1;
}

/* Orchard hero with dashboard image sitting on bottom, peeking out */
.case-study-intro--with-dashboard {
  overflow: hidden;
  padding-bottom: 0;
}
.case-study-intro--with-dashboard .case-study-section-inner {
  padding-bottom: 2rem;
}
.case-study-intro--with-dashboard .case-study-title {
  text-align: center;
}

/* Hero with title only (no dashboard image): vertical center, title padding only */
.case-study-intro--title-only {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.case-study-intro--title-only .case-study-section-inner {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-study-intro--title-only .case-study-title {
  margin: 0;
  margin-bottom: 0;
  padding: 0 0 2.5rem 0;
  text-align: center;
}
.case-study-intro--title-only .case-study-section-inner h1.case-study-title,
.case-study-intro--title-only .case-study-body .case-study-title {
  margin-bottom: 0;
}

/* Center hero titles on Design System, Brand Guidelines, Personas, Demo, D&D pages */
.case-study-intro--theme-bff .case-study-title,
.case-study-intro--theme-brand .case-study-title,
.case-study-intro--theme-personas .case-study-title,
.case-study-intro--theme-demo .case-study-title,
.case-study-intro--theme-dnd .case-study-title {
  text-align: center;
}

.case-study-hero-dashboard {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -40px;
}
.case-study-hero-dashboard img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.case-study-intro--role-only {
  padding-top: 2rem;
}

/* Case study hero: gradient (20% opacity at 25%) to full color at 100%, parallax kept via JS */
.case-study-intro--theme-orchard .case-study-hero-bg {
  background: linear-gradient(to bottom, rgba(34, 59, 76, 0.2) 25%, #223b4c 100%);
}

/* Orchard Career Counselor screens page: green hero gradient */
.case-study-intro--orchard-screens-hero.case-study-intro--theme-orchard .case-study-hero-bg {
  background: linear-gradient(to bottom, rgba(60, 211, 67, 0.2) 25%, #3CD343 100%);
}

.case-study-intro--theme-bff .case-study-hero-bg {
  background: linear-gradient(to bottom, rgba(84, 212, 138, 0.2) 25%, #54d48a 100%);
}

.case-study-intro--theme-brand .case-study-hero-bg {
  background: linear-gradient(to bottom, rgba(72, 16, 164, 0.2) 25%, #4810a4 100%);
}

.case-study-intro--theme-personas .case-study-hero-bg {
  background: linear-gradient(to bottom, rgba(218, 68, 83, 0.2) 25%, #da4453 100%);
}

.case-study-intro--theme-demo .case-study-hero-bg {
  background: linear-gradient(to bottom, rgba(13, 157, 218, 0.2) 25%, #0d9dda 100%);
}

.case-study-intro--theme-dnd .case-study-hero-bg {
  background: linear-gradient(to bottom, rgba(155, 34, 38, 0.2) 25%, #9b2226 100%);
}

.case-study-intro--theme-bff .case-study-hero-dots,
.case-study-intro--theme-brand .case-study-hero-dots,
.case-study-intro--theme-personas .case-study-hero-dots,
.case-study-intro--theme-demo .case-study-hero-dots,
.case-study-intro--theme-dnd .case-study-hero-dots {
  background-image: radial-gradient(circle at 50% 50%, rgba(224, 231, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Dark panel behind title + summary (same treatment as home hero) – Design System, Brand, Personas, Demo */
.case-study-intro--title-only .case-study-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 2rem;
  background: rgba(8, 25, 48, 0.15);
  border-radius: var(--radius-lg);
}

.case-study-intro--title-only .case-study-hero-inner .case-study-title {
  padding-top: 0;
  padding-bottom: 0.75rem;
}

.case-study-intro--title-only .case-study-hero-summary {
  margin: 0;
  margin-top: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #fff;
}

.case-study-section-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Intro: two columns – My Role (left) and orchard-orchie screenshot (right) */
.case-study-intro-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.case-study-intro-content {
  min-width: 0;
}

.case-study-intro-media {
  min-width: 0;
}

.case-study-intro-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* CTA in Enter Orchie section */
.case-study-cta-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.case-study-cta-helper {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(148, 163, 184, 0.85);
  margin: 0;
}

/* Major sections: 6 distinct bands with subsections grouped inside */
.major-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2.5rem 1.5rem 3rem;
  box-sizing: border-box;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.major-section-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Subsections: aligned with their major section, subtle separation */
.subsection {
  padding: 15rem 0;
}

.subsection:first-child {
  margin-bottom: 1.5rem;
}

/* CTA above a section title (e.g. View BFF Documentation in Design System Screens) */
.case-study-intro-cta--above-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 3rem;
}

.subsection-cta-center {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.subsection:not(:first-child) {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/* Major section background variants – distinct band identity */
.major-section--problem {
  background: rgba(15, 23, 42, 0.28);
  border-left: 4px solid rgba(148, 163, 184, 0.35);
}

/* Orchard case study: static gradient border (orchard blue ↔ green) + soft glow (no motion) */
.orchard-problem-glow {
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(19, 199, 229, 0.7) 0%,
    rgba(60, 211, 67, 0.7) 45%,
    rgba(19, 199, 229, 0.7) 100%
  );
  box-shadow:
    0 0 18px rgba(19, 199, 229, 0.18),
    0 0 32px rgba(60, 211, 67, 0.18);
}

.orchard-problem-glow__inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.6rem 1.5rem;
  border-radius: 12px;
  background: rgba(8, 18, 29, 0.96);
}

.major-section--problem .orchard-problem-glow__inner h2 {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  text-align: left;
}

/* Glow callout lists (e.g. Checking the Compass) */
.orchard-problem-glow__list {
  margin: 0;
  padding-left: 1.35rem;
}

.orchard-problem-glow__list li {
  margin-bottom: 0.4rem;
}

.orchard-problem-glow__list li:last-child {
  margin-bottom: 0;
}

.orchard-problem-glow__list strong {
  color: var(--foreground);
}

.major-section--turbulence .orchard-problem-glow {
  margin-top: 1.25rem;
}

/* Orchard: Problem + Initial Hypothesis in one band — no rule between subsections */
.major-section--problem .subsection:nth-child(2) {
  border-top: none;
  padding-top: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.major-section--thesis {
  background: rgba(34, 59, 76, 0.35);
  border-left: 4px solid rgba(148, 163, 184, 0.2);
}

.major-section--pivot {
  background: rgba(15, 23, 42, 0.48);
  border-left: 4px solid rgba(56, 189, 248, 0.2);
}

.major-section--turbulence {
  position: relative;
  background: rgba(34, 59, 76, 0.35);
  border: 2px solid #38bdf8;
  border-radius: 0.75rem;
  padding: 3rem 1.5rem 3.5rem;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
  overflow: hidden;
}

.major-section--turbulence .major-section-inner {
  position: relative;
}

.major-section--turbulence .subsection h2 {
  color: var(--foreground);
}

.major-section--turbulence .subsection:not(:first-child) > h2 {
  font-size: 1.4rem;
}

.major-section--north-star {
  background: rgba(15, 23, 42, 0.52);
  border-left: 4px solid rgba(56, 189, 248, 0.45);
}

.major-section--impact {
  background: rgba(34, 59, 76, 0.4);
  border-left: 4px solid rgba(56, 189, 248, 0.25);
}

.major-section--impact .subsection > h3 {
  text-align: center;
}

/* Alternate section style (e.g. Design System in Action) – blue-gray, distinct from pivot/north-star */
.major-section--alt {
  background: rgba(34, 59, 76, 0.5);
  border-left: 4px solid rgba(148, 163, 184, 0.4);
}

/* Design system page: two alternating section styles for clear visual break */
.major-section--design-a {
  background: rgba(34, 59, 76, 0.35);
  border-left: 4px solid rgba(148, 163, 184, 0.25);
}

.major-section--design-b {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.28));
  border-left: 4px solid rgba(56, 189, 248, 0.25);
}

/* D&D case study: PDF button above Design Problem title (uses .button .button-primary for glow) */
#design-problem .dnd-pdf-button-wrap {
  text-align: center;
  margin: 0 0 1.25rem;
}

/* D&D case study: stacking callouts (problem on top, opportunity below) */
#design-problem .dnd-callouts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
#design-problem .dnd-callout {
  padding: 1.75rem;
  border-radius: var(--radius-lg, 0.9rem);
}
#design-problem .dnd-callout--problem {
  background: #161416;
}
#design-problem .dnd-callout--opportunity {
  background: #313335;
}
#design-problem .dnd-callout__title {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 21pt;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
#design-problem .dnd-callout--problem .dnd-callout__title {
  color: #c53131;
}
#design-problem .dnd-callout--opportunity .dnd-callout__title {
  color: #f2cd7e;
}
#design-problem .dnd-callout__blurb {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 14pt;
  color: #f4f1ec;
  line-height: 1.6;
  margin: 0;
}

/* D&D case study: "The Logic" callout (transparent, hero-like) below each section blurb */
.dnd-logic-callout {
  background: rgba(8, 25, 48, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
}
.dnd-logic-callout__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.5rem;
}
.dnd-logic-callout p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}
.dnd-logic-callout p + p {
  margin-top: 0.75rem;
}
.dnd-logic-callout ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
}
.dnd-logic-callout li {
  margin-bottom: 0.35rem;
}
.dnd-logic-callout li:last-child {
  margin-bottom: 0;
}

/* Orchard case study: 1px bordered body paragraphs (same treatment as D&D .dnd-logic-callout) */
.case-study--orchard .major-section .subsection > p {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
  background: rgba(8, 25, 48, 0.15);
}

.case-study--orchard .major-section .subsection > p:first-of-type {
  margin-top: 0;
}

.case-study-section-inner p.case-study-wordmark,
.case-study-wordmark {
  text-align: center;
  margin: 0 0 3rem;
}


.case-study-wordmark img {
  display: inline-block;
  height: auto;
  max-width: 200px;
}

.case-study-body .case-study-title,
.case-study-section-inner h1.case-study-title {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  font-weight: 650;
}

.case-study-section-inner h2,
.major-section-inner h2,
.subsection--center-title h2 {
  text-align: center;
}

.subsection h2 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Major section headline (first h2 in each band) – larger */
.major-section-inner > .subsection:first-child > h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

/* Subsection headlines (subsequent h2s in each band) – smaller */
.major-section-inner > .subsection:not(:first-child) > h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.case-study-section-inner h3,
.major-section-inner h3,
.subsection h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #e5e7eb;
}

.case-study-section-inner h3:first-child,
.major-section-inner h3:first-child,
.subsection h3:first-child {
  margin-top: 0;
}

.case-study-section-inner p,
.major-section-inner p,
.subsection p {
  margin-bottom: 1rem;
  color: #e5e7eb;
  line-height: 1.65;
}

.case-study-section-inner p:last-child,
.major-section-inner p:last-child,
.subsection p:last-child {
  margin-bottom: 0;
}

.case-study-body ul,
.case-study-section-inner ul,
.major-section-inner ul,
.subsection ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
  line-height: 1.65;
}

.case-study-body li,
.case-study-section-inner li,
.major-section-inner li,
.subsection li {
  margin-bottom: 0.5rem;
}

.case-study-body strong,
.case-study-section-inner strong,
.major-section-inner strong,
.subsection strong {
  font-weight: 600;
}

.case-study-prototype-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.case-study-prototype-link a {
  color: var(--primary);
  text-decoration: none;
}

.case-study-prototype-link a:hover {
  text-decoration: underline;
}

/* Callout blocks (role, findings) */
.case-study-callout {
  background: #223B4C;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.case-study-my-role {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: #e5e7eb;
}

.case-study-callout p {
  margin-bottom: 0.75rem;
}

.case-study-callout p:last-of-type {
  margin-bottom: 20px;
}

.case-study-callout ul {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.case-study-callout li {
  margin-bottom: 0.4rem;
}

.case-study-callout strong {
  color: var(--foreground);
}

.case-study-callout--thesis-intro > h2:first-child {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  color: var(--foreground);
}

.case-study-callout--thesis-intro > p:last-of-type {
  margin-bottom: 0;
}

/* Role callout: more prominent, left accent */
.case-study-callout--role {
  background: rgba(34, 59, 76, 0.9);
  border-left: 4px solid #38bdf8;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.case-study-callout--role .case-study-callout__heading {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
}

.case-study-callout--role .case-study-callout__heading + .case-study-callout__heading {
  margin-top: 1.5rem;
}

.case-study-callout--role .case-study-callout__role-title {
  font-size: 1.05rem;
  color: #bae6fd;
  margin-bottom: 0;
  margin-top: 0;
  font-weight: 500;
}

.case-study-callout--role ul {
  margin-top: 0.5rem;
}

/* Screenshot placeholder */
.case-study-screenshot {
  margin: 1.5rem 0;
}

.case-study-screenshot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* Phone-style screenshot: narrow, centered, mimics phone screen */
.case-study-screenshot--phone {
  max-width: 33%;
  margin-left: auto;
  margin-right: auto;
}

.case-study-screenshot--phone img {
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Clickable screenshot: show it's interactive */
.case-study-screenshot {
  cursor: pointer;
}

/* Brand guidelines / User personas tabs (shadcn-style) */
.brand-guidelines-tabs-section {
  background: rgba(15, 23, 42, 0.35);
  border-left: 4px solid rgba(148, 163, 184, 0.35);
}

.brand-guidelines-tabs .tabs-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.brand-guidelines-tabs .tab-btn {
  padding: 0.65rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-lg) - 2px);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-guidelines-tabs .tab-btn:hover {
  color: #e5e7eb;
}

.brand-guidelines-tabs .tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8, 0 1px 2px rgba(0, 0, 0, 0.2);
}

.brand-guidelines-tabs .tab-panel {
  display: none;
  text-align: left;
}

.brand-guidelines-tabs .tab-panel.active {
  display: block;
}

.brand-guidelines-pdf-cta {
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.brand-guidelines-pdf-cta p {
  margin-bottom: 0.75rem;
}

.brand-guidelines-gallery .case-study-screenshot {
  margin-bottom: 1.5rem;
}

.brand-guidelines-gallery .case-study-screenshot:last-child {
  margin-bottom: 0;
}

/* Orchard Career Counselor: mobile screens in one row, modest size */
.orchard-mobile-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}
.orchard-mobile-row .orchard-mobile-screenshot {
  flex: 0 1 auto;
  margin: 0;
  max-width: 160px;
}
.orchard-mobile-row .orchard-mobile-screenshot img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Lightbox: viewport-fit by default; click image to zoom; carousel prev/next */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

/* When zoomed, allow scroll to pan */
.lightbox.is-open.is-zoomed {
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.lightbox.is-open.is-zoomed .lightbox-inner {
  max-width: none;
  max-height: none;
  min-height: 100%;
  padding: 4rem 5rem 4rem 4rem;
}

/* Wrapper constrains image to viewport until zoomed; click toggles zoom */
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  max-height: 100vh;
  cursor: zoom-in;
  flex: 0 1 auto;
  min-width: 0;
}

.lightbox.is-zoomed .lightbox-img-wrap {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  flex: none;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  display: block;
  pointer-events: none;
}

.lightbox.is-zoomed .lightbox-img {
  max-width: none;
  max-height: none;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:hover,
.lightbox-prev:focus,
.lightbox-next:hover,
.lightbox-next:focus {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev:focus,
.lightbox-next:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lightbox-prev.is-hidden,
.lightbox-next.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.lightbox-counter {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .lightbox-inner {
    gap: 0.5rem;
  }

  .lightbox.is-open.is-zoomed .lightbox-inner {
    padding: 3rem 1rem 4rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
}

/* Screens carousel modal (Orchard: "Just the Screens Please") */
.screens-carousel-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.screens-carousel-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.screens-carousel-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.screens-carousel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screens-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}
.screens-carousel-slides {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screens-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.screens-carousel-slide.is-current {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.screens-carousel-slide-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  display: block;
}
.screens-carousel-prev,
.screens-carousel-next {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.screens-carousel-prev:hover,
.screens-carousel-prev:focus,
.screens-carousel-next:hover,
.screens-carousel-next:focus {
  background: rgba(255, 255, 255, 0.25);
}
.screens-carousel-prev:focus,
.screens-carousel-next:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.screens-carousel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.screens-carousel-close:hover,
.screens-carousel-close:focus {
  background: rgba(255, 255, 255, 0.25);
}
.screens-carousel-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.screens-carousel-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.case-study-intro-cta {
  margin-top: 1.25rem;
  margin-bottom: 0;
  text-align: center;
}
.case-study-intro-cta .button,
.case-study-intro-cta a.button {
  min-height: 2.5rem;
  margin-bottom: 3rem;
  box-sizing: border-box;
}
.case-study-intro-cta .button + .button,
.case-study-intro-cta .button + a {
  margin-left: 0.75rem;
}
.case-study-cta--problem {
  margin-top: 1.5rem;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .screens-carousel-modal {
    padding: 2rem 1rem 4rem;
  }
  .screens-carousel-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  .screens-carousel-slide-img {
    max-height: 70vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .screens-carousel-modal,
  .screens-carousel-slide {
    transition: none;
  }
}

.case-study-screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

/* About page */
.about-page {
  max-width: 700px;
  margin: 0 auto;
}

.about-title {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
}

.about-content p {
  margin-bottom: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .project-grid-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card--feature {
    flex-direction: column;
  }

  .project-card--feature .project-cover--logo-left {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    padding: 1rem;
  }

  .project-card--feature .project-cover-wordmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 50%;
  }

  .project-card--feature .project-body {
    width: 100%;
    flex: 1 1 auto;
  }

  /* Other notable projects: stack cover on top, body below (same as case study on mobile) */
  .project-grid:not(.project-grid--case-study) .project-card {
    flex-direction: column;
  }

  .project-grid:not(.project-grid--case-study) .project-card .project-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .project-grid:not(.project-grid--case-study) .project-card .project-body {
    width: 100%;
    flex: 1 1 auto;
  }

  .intro-copy {
    font-size: 1.3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .site-header .header-inner {
    padding: 1rem;
  }

  .site-main--home {
    padding-top: 0;
  }

  .logo-placeholder {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9rem;
  }

  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
  position: relative;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }


  .hero-card {
    padding: 1.25rem;
  }

  .case-study-card {
    padding: 1rem 1.2rem;
  }

  .case-study-hero-dashboard {
    margin-bottom: -65px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero-inner {
    padding: 1.5rem 1rem;
  }

  .case-study-intro--title-only .case-study-hero-inner {
    padding: 1.5rem 1rem;
  }

  .major-section[class*="major-section--"] {
    border-left: none;
  }
}

@media (max-width: 480px) {
  .project-body {
    padding: 1rem 1.1rem 1.2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .about-title {
    font-size: 1.75rem;
  }

  .case-study-section-inner .case-study-title {
    font-size: 1.5rem;
  }

  .case-study-section {
    padding: 1.75rem 1rem;
  }

  .case-study-intro-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .major-section {
    padding: 1.75rem 1rem 2rem;
  }

  .major-section[class*="major-section--"] {
    border-left: none;
  }

  .major-section--turbulence {
    padding: 2rem 1rem 2.5rem;
  }

  .subsection:not(:first-child) {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .case-study-screenshot--phone {
    max-width: 55%;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  .hero-highlight {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
}

.site-nav__link--active {
  font-weight: 600;
  color: #f9fafb !important;
  border-radius: 0;
  border-bottom: 2px solid #38bdf8;
}
