/* Makayla Long portfolio — shared stylesheet.
   Pages set a body class (page-home, page-case, page-resume) for the few
   rules that differ between pages. */

/* ══ Shared: base, navigation, footer ══ */

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

:root {
  --sage: #ACB8AD;
  --sage-dark: #5F7463;
  --sand: #D5C7B8;
  --navy: #1E2B3C;
  --white: #F7F6F2;
  --text: #1E2B3C;
  --muted: #5E6672;
  --light: #EFEAE2;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 48px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(2rem, calc((100% - 1096px) / 2));
  height: 48px;
  background: var(--navy);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

nav a.active {
  font-weight: 700;
}

nav a:hover {
  opacity: 0.75;
}

.nav-icon {
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.page {
  padding-top: 48px;
}

.section-divider {
  display: flex;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 0.85rem;
  color: var(--sand);
  font-size: 0.45rem;
  letter-spacing: 0.3em;
}

.about-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

footer {
  background: var(--white);
  border-top: 1px solid var(--sand);
  padding: 3rem 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3.75rem;
  padding: 0 2rem;
}

.footer-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-col:last-child {
  min-width: 10rem;
}

.footer-col p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-links a,
.footer-col a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-col a:hover {
  color: var(--sage-dark);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.back-to-top:hover {
  opacity: 1;
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  stroke: white;
  fill: none;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero {
  background-color: var(--navy);
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    padding: 3rem 1rem 2rem;
  }

  .hero .divider {
    width: 60%;
  }
}

.hero h1 {
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  margin: 2rem auto;
  gap: 0.5rem;
  color: var(--white);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--white);
  opacity: 0.7;
}

.divider-diamonds {
  display: flex;
  gap: 3px;
  font-size: 0.5rem;
  opacity: 0.9;
  line-height: 1;
}

/* Hero dividers draw outward from the diamonds on load */
.hero .divider::before,
.hero .divider::after {
  animation: divider-draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}

.hero .divider::before {
  transform-origin: right center;
}

.hero .divider::after {
  transform-origin: left center;
}

.hero .divider-diamonds {
  animation: diamonds-in 0.6s ease-out both;
}

.hero h1 + .divider::before,
.hero h1 + .divider::after {
  animation-delay: 0.5s;
}

.hero h1 + .divider .divider-diamonds {
  animation-delay: 0.15s;
}

@keyframes divider-draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes diamonds-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 0.9;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .divider::before,
  .hero .divider::after,
  .hero .divider-diamonds {
    animation: none;
  }
}

.hero.hero-compact {
  min-height: 0;
  padding: 3rem 2rem;
}

.hero-compact .divider {
  margin: 1.5rem auto;
}

/* ══ Home ══ */

:where(.page-home) .nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
}

.featured {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 2rem 2.5rem;
}

.featured h2 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.case-track {
  display: flex;
  gap: 1.5rem;
  margin-top: 0;
  /* full-bleed: cards scroll off the left edge and peek on the right */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.5rem max(2rem, calc(50vw - 560px)) 0.75rem;
  scroll-padding-left: max(2rem, calc(50vw - 560px));
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.case-track::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex: 0 0 min(1040px, 82vw);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  padding: 3rem;
  min-height: 460px;
  border-radius: 32px;
  background: var(--light);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card.tone-sage {
  background: linear-gradient(135deg, #E3E8E2 0%, #CBD6CC 100%);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(30, 43, 60, 0.1);
}

.case-body {
  display: flex;
  flex-direction: column;
}


.case-body h3 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.case-body p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: background 0.2s;
}

.case-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-card:hover .case-link {
  background: #2c3e54;
}

.case-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-image {
  flex: 1;
  min-height: 240px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  position: relative;
}

.case-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.03);
}

.case-metrics {
  display: flex;
  gap: 3rem;
}

.metric-label {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  color: var(--muted);
}

.cta-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

.cta-band {
  background: #E3E8E2;
}

.cta-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cta-inner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 420px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: #2c3e54;
}

@media (max-width: 900px) {
  .case-card {
    grid-template-columns: 1fr;
    flex-basis: 85vw;
    padding: 2rem;
    gap: 2rem;
  }

  .case-link {
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .featured {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .case-track {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scroll-padding-left: 1.25rem;
  }

  .case-track {
    gap: 1rem;
  }

  .case-card {
    flex-basis: 76vw;
    padding: 1.5rem;
  }

  .case-body h3 {
    font-size: 1.4rem;
  }


  .case-body p {
    font-size: 1rem;
  }

  .case-visual {
    order: -1;
  }

  .case-image {
    flex: none;
    min-height: 0;
    height: 180px;
  }
}

/* ══ About ══ */

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section p.lead {
  font-size: 1.15rem;
  color: var(--text);
}

.about-section .block-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  align-items: stretch;
}

.about-photo {
  position: relative;
  width: 100%;
  min-height: 28rem;
  container-type: inline-size;
}

.photo-slide {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74cqw;
  padding: 0.7rem 0.7rem 2.4rem;
  background: #fff;
  border: 1px solid #E8E1D6;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(30, 43, 60, 0.14);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.photo-slide[data-pos="0"] { --x: 0px; --y: 4px; --r: -1.5deg; z-index: 3; }
.photo-slide[data-pos="1"] { --x: 38px; --y: -34px; --r: 7deg; z-index: 2; }
.photo-slide[data-pos="2"] { --x: -40px; --y: 36px; --r: -9deg; z-index: 1; }

.about-photo:hover .photo-slide[data-pos="0"] { --x: 0px; --y: -4px; --r: 1deg; }
.about-photo:hover .photo-slide[data-pos="1"] { --x: 52px; --y: -44px; --r: 11deg; }
.about-photo:hover .photo-slide[data-pos="2"] { --x: -54px; --y: 46px; --r: -13deg; }

.about-photo:hover .photo-slide {
  box-shadow: 0 10px 26px rgba(30, 43, 60, 0.18);
}

.photo-slide:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 4px;
}

.photo-img {
  aspect-ratio: 1 / 1;
  background: #E4DACF;
  overflow: hidden;
}

.photo-slide:nth-child(2) .photo-img { background: #D5C7B8; }
.photo-slide:nth-child(3) .photo-img { background: #ACB8AD; }

.photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

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

.belief-section .block-title { margin-bottom: 1.75rem; }

.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.belief-card {
  background: linear-gradient(135deg, #E3E8E2 0%, #CBD6CC 100%);
  border-radius: 12px;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.belief-icon {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--sage-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.belief-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 43, 60, 0.12);
}

.about-section .belief-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.connect {
  background: var(--navy);
  text-align: center;
  padding: 4rem 2rem;
}

.connect h2 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.connect p {
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.connect a {
  display: inline-block;
  background: var(--sand);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s;
}

.connect a:hover {
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .belief-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    height: 420px;
    max-width: 320px;
  }

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

}

/* ══ Case studies ══ */

.project-hero {
  width: min(1096px, calc(100% - 4rem));
  margin: 0 auto;
  border-radius: 6px;
  height: 45vh;
  min-height: 300px;
  background: var(--sage);
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--sage-dark);
}

.back-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.project-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.project-header p.description {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.project-meta {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.75rem 2.5rem;
}

.meta-item {
  min-width: 0;
}

.meta-item h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  background: #E8E1D6;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  white-space: nowrap;
}

.meta-item p,
.meta-item a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
}

.meta-item a:hover {
  color: var(--sage-dark);
}

.project-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.project-section h2.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

.project-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-section p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.project-section p:last-child {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.img-block {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--light);
}

.img-block img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.img-block.tall img {
  aspect-ratio: 3/4;
}

.img-block.wide img {
  aspect-ratio: 16/9;
}

.img-block.square img {
  aspect-ratio: 1/1;
}

.img-placeholder {
  width: 100%;
  background: #E4DACF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A8F96;
  font-size: 0.8rem;
}

.img-placeholder.wide {
  aspect-ratio: 16/9;
}

.img-placeholder.tall {
  aspect-ratio: 3/4;
}

.img-placeholder.square {
  aspect-ratio: 1/1;
}

.img-full {
  max-width: 1160px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.outcome-stat {
  background: var(--light);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

.outcome-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sage-dark);
  display: block;
}

.outcome-stat .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.project-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
}

.project-section ul.list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-section ul.list li {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}

.project-section ul.list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.3em;
  font-size: 0.55rem;
  color: var(--sage-dark);
}

.project-section ul.list li strong {
  color: var(--text);
}

.callout {
  background: var(--light);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.callout .number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--sage-dark);
  display: block;
  line-height: 1.1;
}

.callout .label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.callout .arrow {
  color: var(--muted);
  font-weight: 400;
  padding: 0 0.4rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step {
  background: var(--light);
  border-radius: 6px;
  padding: 1.5rem;
}

.step .step-num {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.step h3 {
  margin: 0 0 0.6rem;
}

.project-section .step p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 1.5rem 0;
}

.flow-step {
  background: var(--sage);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

.flow-arrow {
  color: var(--muted);
}

.pullquote {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  border-left: 3px solid var(--sage);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.status-note {
  background: var(--light);
  border-left: 3px solid var(--sage);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.project-section .status-note p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.status-note strong {
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.project-section .cards p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.concept-card {
  display: grid;
  grid-template-columns: 11rem 1fr;
  align-items: center;
  background: var(--light);
  border-radius: 6px;
  overflow: hidden;
}

.concept-image {
  aspect-ratio: 1 / 1;
  background: #E4DACF;
}

.concept-body {
  padding: 1.25rem 1.5rem;
}

@media (max-width: 600px) {
  .concept-card { grid-template-columns: 1fr; }
}

.project-section .concept-body h3 {
  margin: 0 0 0.75rem;
}

.project-section .concept-body p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-section .concept-body p:last-child {
  margin-bottom: 0;
}

.project-nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
}

.project-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.project-nav a:hover {
  color: var(--sage-dark);
}

.project-nav a.next {
  align-items: flex-end;
}

.project-nav .nav-dir {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-nav .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.outcome-grid.outcome-grid-1 {
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

.outcome-grid.outcome-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .steps,
  .cards,
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .project-meta {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ══ Resume ══ */

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--sand);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s;
}

.resume-side .download-btn {
  background: var(--navy);
  color: var(--white);
  margin-bottom: 2.5rem;
}

.download-btn:hover {
  transform: translateY(-2px);
}

.download-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4rem;
  align-items: start;
}

.resume h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.resume-main h2 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sand);
}

.resume-side section + section,
.resume-main section + section {
  margin-top: 3rem;
}

.resume-side .pills {
  gap: 0.5rem;
}

.job + .job {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid #E8E1D6;
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
}

.job h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.job-dates,
.role-dates {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.job p,
.job li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.job-loc {
  margin-bottom: 0.5rem;
}

.job-head + .role {
  margin-top: 0.5rem;
}

.role + .role {
  margin-top: 1.5rem;
}

.role-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.role-summary {
  margin-top: 0.35rem;
}

.role li strong {
  color: var(--text);
}

.role ul {
  list-style: none;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.role li {
  position: relative;
  padding-left: 1.25rem;
}

.role li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.4em;
  font-size: 0.5rem;
  color: var(--sage-dark);
}

@media (max-width: 800px) {
  .resume {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.page-home {
  overflow-x: clip;
}

.case-track {
  cursor: grab;
}

.case-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.case-track.is-dragging .case-card {
  pointer-events: none;
}

/* ══ Case study sheet (card grows into modal) ══ */

.case-card.is-open-source {
  visibility: hidden;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 43, 60, 0.45);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.sheet {
  position: fixed;
  z-index: 210;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 32px;
  background: var(--white);
  overflow: hidden;
  transform-origin: center;
  box-shadow: 0 -8px 40px rgba(30, 43, 60, 0.2);
}

.sheet.tone-sand {
  background: var(--light);
}

.sheet.tone-sage {
  background: linear-gradient(135deg, #E3E8E2 0%, #CBD6CC 100%);
}

.sheet.is-expanded {
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 50px);
  border-radius: 28px 28px 0 0;
  background: var(--white);
  transition: top 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-radius 0.45s ease,
              background 0.45s ease;
}

.sheet-scroll {
  height: 100%;
  overflow-y: auto;
}

.sheet-locked,
.sheet-locked iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sheet-ghost {
  position: fixed;
  flex: none;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.25s ease;
}

.sheet-ghost.is-fading {
  opacity: 0;
}

.sheet-page {
  animation: sheet-fade 0.7s ease;
}

@keyframes sheet-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-scroll .page {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.sheet-close:hover {
  background: rgba(30, 43, 60, 0.08);
}

.sheet-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text);
}

.sheet-arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}

.sheet-arrow[hidden] {
  display: none !important;
}

.sheet-arrow:hover,
.sheet-arrow:focus-visible {
  background: var(--light);
}

.sheet-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text);
}

.sheet-prev { left: 20px; }
.sheet-next { right: 32px; }

.sheet-arrow-label {
  position: absolute;
  top: calc(100% + 10px);
  width: 180px;
  padding: 0.15rem 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.sheet-prev .sheet-arrow-label { left: 0; text-align: left; }
.sheet-next .sheet-arrow-label { right: 0; text-align: right; }

.sheet-arrow:hover .sheet-arrow-label,
.sheet-arrow:focus-visible .sheet-arrow-label {
  opacity: 1;
}

/* Side arrows are desktop-only; mobile gets its own treatment. */
@media (min-width: 900px) {
  .sheet.has-content .sheet-arrow {
    display: flex;
  }
}

body.sheet-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .sheet.is-expanded,
  .sheet-backdrop,
  .sheet-scroll {
    transition: none;
  }
}

/* Western & Southern case study figures */
.ws-figure { margin: 2rem 0; border: 1px solid var(--light); }
.ws-scroll { max-height: 720px; overflow-y: auto; }

.color-system { margin: 2rem 0; }
.project-section .color-system h3 { margin: 1.5rem 0 0.75rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.swatch { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
.swatch-color { display: block; height: 72px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.08); margin-bottom: 0.4rem; }
.swatch code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; color: #6b7078; }

.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.img-pair .ws-figure { margin: 0; }
.img-pair + .img-pair { margin-top: 1.5rem; }

@media (max-width: 700px) { .img-pair { grid-template-columns: 1fr; } }

/* Challenge blocks */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.challenge-card {
  background: var(--light);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
}

.project-section .challenge-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.project-section .challenge-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) { .challenge-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .challenge-grid { grid-template-columns: 1fr; } }

.project-section .img-placeholder { margin: 1.5rem 0 2rem; border-radius: 6px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 1.5rem 0 2rem;
}

.split-text > :last-child { margin-bottom: 0; }

.split-image {
  position: sticky;
  top: 1.5rem;
  display: flex;
  justify-content: center;
}

.split-image img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

@media (max-width: 700px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

.ws-figure-wrap { margin: 2rem 0; }
.ws-figure-wrap .ws-figure { margin: 0; }
.ws-figure-wrap a { display: block; }
.ws-figure-wrap figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* Step viewer: steps beside a stage of images */
.step-viewer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

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

.step-viewer .step {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0.72;
}

.step-viewer .step:hover { opacity: 1; }

.step-viewer .step.is-active {
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 43, 60, 0.08);
  opacity: 1;
}

.step-viewer .step:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.step-stage {
  position: relative;
  aspect-ratio: var(--stage-ratio, 1846 / 1058);
  border-radius: 6px;
  overflow: hidden;
  background: #E4DACF;
  border: 1px solid var(--light);
}

.step-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.step-panel.is-active { opacity: 1; pointer-events: auto; }

.step-ph { color: #8A8F96; font-size: 0.8rem; }

.step-panel.has-img .step-ph { display: none; }

.step-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Phones: no hover or tap interaction. Each step is followed by its own image. */
@media (max-width: 800px) {
  .step-viewer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .step-list,
  .step-stage { display: contents; }

  .step-viewer .step:nth-child(1) { order: 1; }
  .step-viewer .step:nth-child(2) { order: 3; }
  .step-viewer .step:nth-child(3) { order: 5; }
  .step-viewer .step:nth-child(4) { order: 7; }
  .step-viewer .step-panel:nth-child(1) { order: 2; }
  .step-viewer .step-panel:nth-child(2) { order: 4; }
  .step-viewer .step-panel:nth-child(3) { order: 6; }
  .step-viewer .step-panel:nth-child(4) { order: 8; }

  .step-viewer .step,
  .step-viewer .step.is-active {
    background: var(--light);
    box-shadow: none;
    opacity: 1;
    cursor: default;
  }

  .step-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    aspect-ratio: var(--stage-ratio, 1846 / 1058);
    border-radius: 6px;
    overflow: hidden;
    background: #E4DACF;
    border: 1px solid var(--light);
    margin-bottom: 1.25rem;
  }
}

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

/* Bridge between Discoverability and the rest of the system */
.system-bridge {
  background: var(--light);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
}

.system-bridge .bridge-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.system-bridge p {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
}

.system-bridge .flow { margin: 0; }

/* Vertical variant (desktop): steps stacked beside the image stage */
@media (min-width: 801px) {
  .step-viewer.step-viewer-vertical {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 1.5rem;
  }

  .step-viewer-vertical .step-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .step-viewer-vertical .step-stage {
    position: sticky;
    top: 1.5rem;
  }
}

/* Device screenshots are shown whole, not cropped */
.step-viewer-vertical .step-panel img { object-fit: contain; }

/* No color block behind the device photos, and shown larger */
.step-viewer-vertical .step-stage,
.step-viewer-vertical .step-panel {
  background: transparent;
  border: none;
}

@media (max-width: 800px) {
  .step-viewer-vertical .step-panel { aspect-ratio: 4 / 5; }
}

/* Western & Southern: step viewer panels sit in a white bordered box */
.ws-box {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.step-viewer-vertical .step-panel .ws-box img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ws-palette {
  display: block;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.ws-palette h4 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0.9rem 0 0.4rem;
}

.ws-palette h4:first-child { margin-top: 0; }

.ws-sw-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}

.ws-sw { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.7rem; line-height: 1.25; }
.ws-sw span { display: block; height: 38px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.08); margin-bottom: 0.2rem; }
.ws-sw code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.65rem; color: #6b7078; }

@media (max-width: 800px) {
  .ws-sw-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Western & Southern: subsidiary sites shown side by side, each scrolls */
.ws-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.ws-site { margin: 0; }

.ws-site .img-block {
  border: 1px solid var(--light);
}

.ws-site .img-block img {
  aspect-ratio: 1280 / 760;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 800px) {
  .ws-trio { grid-template-columns: 1fr; }
}
