/* ===========================
   CUSTOM FONTS
   =========================== */
/* Picasso custom font removed — consolidated to 3 fonts */

/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
  --accent: #E8530E;
  --accent-dim: rgba(232, 83, 14, 0.12);
  --sage: #B7C9C3;
  --cream: #FFF7E7;
  --dark: #0a0a0a;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(25, 20, 15, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(15, 22, 20, 0.3) 0%, transparent 45%);
  background-attachment: fixed;
  color: #E6E8E7;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Full-page grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.035;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
  position: relative;
}

/* Editorial rule line — short left-offset divider */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 60px;
  height: 1px;
  background: rgba(183, 201, 195, 0.12);
}

/* ===========================
   TYPOGRAPHY — 5-tier color hierarchy on dark
   T1  Sage  #B7C9C3 = primary headlines, logo
   T2  Cream #FFF7E7 = secondary headlines (card titles, stats)
   T3  Gray  #E6E8E7 = body text, nav, descriptions
   T4  Beige #E4E2C9 = warm accents (quotes, placeholders)
   T5  Peach #FAE1C5 = markers (labels, tags, dates, accent lines)
   =========================== */
.section__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FAE1C5;
  margin-bottom: 1.25rem !important;
  opacity: 1 !important;
  line-height: 1;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  font-style: italic;
  color: #B7C9C3;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section__intro {
  font-size: 1.1rem;
  color: #9B9D9C;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: #FAE1C5;
  color: #0a0a0a;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(183, 201, 195, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}
.nav__logo:hover {
  color: #B7C9C3;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav__links a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9B9D9C;
  transition: color 0.3s ease;
  padding: 0.75rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav__links a:hover,
.nav__links a.active {
  color: #E6E8E7;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #B7C9C3;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===========================
   RESUME TIMELINE PANEL
   =========================== */
.resume-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.resume-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.resume-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  border-right: 1px solid rgba(183, 201, 195, 0.07);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 1.25rem;
  overflow: hidden;
}

.resume-panel.open {
  transform: translateX(0);
}

.resume-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.resume-panel__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #B7C9C3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(183, 201, 195, 0.12);
  background: rgba(183, 201, 195, 0.04);
  color: #9B9D9C;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.resume-panel__close:hover {
  color: #E6E8E7;
  border-color: rgba(183, 201, 195, 0.25);
  background: rgba(183, 201, 195, 0.08);
}

.resume-panel__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: space-evenly;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(183, 201, 195, 0.1);
}

.resume-entry {
  position: relative;
  padding-left: 1.25rem;
}

/* Timeline dot */
.resume-entry::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(183, 201, 195, 0.3);
  border: 1px solid rgba(183, 201, 195, 0.15);
  transform: translateX(-50%);
}

.resume-entry:first-child::before {
  background: #B7C9C3;
  border-color: #B7C9C3;
  box-shadow: 0 0 6px rgba(183, 201, 195, 0.25);
}

.resume-entry__date {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8530E;
  opacity: 0.85;
}

.resume-entry__role {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFF7E7;
  line-height: 1.3;
  margin-top: 0.15rem;
}

.resume-entry__org {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: #B7C9C3;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.resume-entry__desc {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #9B9D9C;
  line-height: 1.45;
  margin-top: 0.2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .resume-panel {
    width: 100vw;
    max-width: 100vw;
    padding: 1.5rem 1.5rem 1rem;
  }

  .resume-panel__header {
    margin-bottom: 1.25rem;
  }

  .resume-entry__role {
    font-size: 0.88rem;
  }

  .resume-entry__desc {
    font-size: 0.68rem;
  }
}

/* Small height screens — tighter spacing */
@media (max-height: 650px) {
  .resume-panel {
    padding: 1.25rem 1.5rem 1rem;
  }
  .resume-panel__header {
    margin-bottom: 1rem;
  }
  .resume-entry__desc {
    font-size: 0.67rem;
    line-height: 1.4;
    margin-top: 0.2rem;
  }
}

/* ===========================
   HERO — INITIAL HIDDEN STATES
   =========================== */
.nav,
.hero__name,
.hero__portrait,
.hero__headline,
.hero__skills-row,
.hero__skill,
.hero__corner,
.hero__particles {
  opacity: 0;
  visibility: hidden;
}
.is-ready .nav,
.is-ready .hero__name,
.is-ready .hero__portrait,
.is-ready .hero__headline,
.is-ready .hero__skills-row,
.is-ready .hero__skill,
.is-ready .hero__corner,
.is-ready .hero__particles {
  visibility: visible;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}

/* Hero noise removed — global grain on body::after covers all sections */

/* Background name — removed */

/* Portrait — centered, overlapping the massive name */
.hero__portrait {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(240px, 28vw, 420px);
}
.hero__portrait img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: filter 0.4s ease;
}
.hero__portrait::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(183,201,195,0.05) 0%, transparent 60%);
  filter: blur(50px);
  z-index: -1;
  transition: background 0.4s ease, filter 0.4s ease;
}
.hero__portrait:hover::before {
  background: radial-gradient(ellipse, rgba(183,201,195,0.18) 0%, rgba(183,201,195,0.04) 50%, transparent 70%);
  filter: blur(40px);
}
.hero__portrait:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(183,201,195,0.3)) drop-shadow(0 0 40px rgba(183,201,195,0.12));
}
/* Accent stripe — removed per design update */
.hero__portrait::after {
  display: none;
}

/* Dog treat interaction */
.treat-btn {
  position: absolute;
  left: 2.5rem;
  bottom: 2rem;
  z-index: 6;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.3s ease;
  opacity: 0.7;
}

.treat-btn:hover {
  opacity: 1;
  transform: scale(1.08);
  filter: brightness(1.15);
}

.treat-btn:active {
  transform: scale(0.95);
}

.treat-btn__bag {
  width: 44px;
  height: auto;
  display: block;
}

.treat-bone-pool {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.treat-bone {
  position: absolute;
  width: 22px;
  height: 10px;
  opacity: 0;
  pointer-events: none;
  left: 50%;
  top: 100%;
}

.treat-bone svg {
  width: 100%;
  height: 100%;
}

/* Hero headline — centered tagline below the composition */
.hero__headline {
  position: absolute;
  bottom: 17rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  width: auto;
  max-width: 520px;
}
.hero__title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(0.65rem, 0.9vw, 0.85rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FAE1C5;
  line-height: 1.6;
  margin-bottom: 0;
}
.hero__subtitle {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: #a8aba9;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto;
}

/* Skills row — horizontal bar below portrait */
.hero__skills-row {
  position: absolute;
  bottom: 11rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* Skill nodes (clean floating style) */
.hero__skill {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
  text-align: center;
}
.hero__skill-icon {
  width: 48px;
  height: 48px;
  color: rgba(183, 201, 195, 0.9);
  filter: drop-shadow(0 0 8px rgba(183, 201, 195, 0.4)) drop-shadow(0 0 24px rgba(183, 201, 195, 0.15));
  transition: filter 0.4s ease, transform 0.4s ease;
}
.hero__skill:hover .hero__skill-icon {
  filter: drop-shadow(0 0 12px rgba(250, 225, 197, 0.8)) drop-shadow(0 0 30px rgba(250, 225, 197, 0.5)) drop-shadow(0 0 60px rgba(250, 225, 197, 0.25));
  transform: scale(1.15);
}
.hero__skill-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7E9790;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.hero__skill:hover .hero__skill-label {
  color: #B7C9C3;
}

/* Skill icons — static, no decorative float */
/* See my work CTA — anchored bottom center */
.hero__corner {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.hero__corner a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.25rem;
  border: 1px solid #1e1d1b;
  border-radius: 8px;
  background: #141312;
  color: #B7C9C3;
  text-decoration: none;
  font-size: 1.2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.hero__corner-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__corner a:hover {
  border-color: #B7C9C3;
  transform: translateY(-2px);
}

/* Particles canvas */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Portrait and glow — static, no decorative float/pulse */

/* Massive name — viewport-scale typographic architecture */
.hero__name {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -56%);
  z-index: 1;
  text-align: center;
  line-height: 0.82;
  pointer-events: none;
  white-space: nowrap;
}

.hero__name-line {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 17vw, 22rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(183, 201, 195, 0.18);
}

.hero__name-line:last-child {
  color: rgba(232, 83, 14, 0.18);
  letter-spacing: 0.08em;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: #FAE1C5;
  color: #0a0a0a;
}

.btn--primary:hover {
  background: #f5d1aa;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(250, 225, 197, 0.2);
}

.btn--outline {
  background: transparent;
  color: #E6E8E7;
  border: 1px solid rgba(230, 232, 231, 0.25);
}

.btn--outline:hover {
  border-color: #E6E8E7;
  color: #E6E8E7;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ===========================
   ABOUT
   =========================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about__text p:not(.section__label) {
  color: #C8CAC9;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.stat__number {
  display: block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #E6E8E7;
}

.stat__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B6D6C;
  margin-top: 0.25rem;
}

/* ── Dogs row (inline under bio) ── */
.about__dogs-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.about__dogs-row .about__dog-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about__dogs-row .about__dog {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  opacity: 0.85;
}

.about__dogs-row .about__dog-name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6D6C;
}

.about__dogs-row .about__dogs-ig {
  margin-top: 0;
}

/* ── Credentials block ── */
.credentials {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(183, 201, 195, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.credentials__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.credentials__logo {
  height: 14px;
  width: auto;
  opacity: 0.35;
}

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

/* --- Credential Badges — Simple pill --- */
.credential-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  min-height: unset;
  border: 1px solid #1e1d1b;
  border-radius: 100px;
  background: #141312;
  text-decoration: none;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #CDCFCE;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.credential-badge:hover {
  border-color: rgba(255, 122, 89, 0.4);
  color: #E6E8E7;
}

.credential-badge--linkedin:hover {
  border-color: rgba(10, 102, 194, 0.5);
}

.credential-badge__ext {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.credential-badge:hover .credential-badge__ext {
  opacity: 0.8;
}

.credential-badge--linkedin {
  font-size: 0.6rem;
  padding: 0.3rem 0.55rem;
}

.about__image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.about__headshot {
  width: 100%;
  max-width: 320px;
  object-fit: contain;
  object-position: top center;
  border: none;
  border-radius: 0;
  background: transparent;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
  /* Gradient fade on all edges to blend into dark background */
  mask-image:
    linear-gradient(to bottom, black 70%, transparent 98%),
    linear-gradient(to top, black 85%, transparent 100%),
    linear-gradient(to right, black 85%, transparent 100%),
    linear-gradient(to left, black 85%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to bottom, black 70%, transparent 98%),
    linear-gradient(to top, black 85%, transparent 100%),
    linear-gradient(to right, black 85%, transparent 100%),
    linear-gradient(to left, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.about__dogs {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.about__dog-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.about__dog {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 2px solid rgba(183, 201, 195, 0.12);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.about__dog:hover {
  opacity: 1;
}

.about__dog-name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A7C7B;
}

.about__dogs-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #7A7C7B;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.3s ease;
  align-self: center;
}

.about__dogs-ig:hover {
  color: #9B9D9C;
}

/* ===========================
   WORK — ASYMMETRIC MAGAZINE GRID
   =========================== */
.work {
  padding: 6rem 0;
}

.work__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(12rem, 35vw, 50rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(183, 201, 195, 0.04);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* Asymmetric 3-column grid */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Base card */
.work__card {
  background: #141312;
  border: 1px solid #1e1d1b;
  border-radius: 12px;
  padding: 1.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

.work__card:hover {
  border-color: rgba(183, 201, 195, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(118, 156, 140, 0.06);
  background: #161514;
}

/* Wide cards span 2 columns, horizontal layout */
.work__card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

/* Visual group (number + art) for wide cards */
.work__card-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 140px;
}

/* Card number */
.work__card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.6;
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
  line-height: 1;
}

/* Card art (SVG) */
.work__card-art {
  max-width: 140px;
}

.work__card-art svg {
  width: 100%;
  height: auto;
  color: var(--sage);
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work__card:hover .work__card-art svg {
  opacity: 1;
  transform: translateY(-4px);
}

/* Card body (tag + title + CTA) */
.work__card-body {
  flex: 1;
}

.work__card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 700;
  color: #E6E8E7;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Narrow card: number sits above art */
.work__card:not(.work__card--wide) .work__card-num {
  margin-bottom: 1rem;
}

.work__card:not(.work__card--wide) .work__card-art {
  margin-bottom: 1.25rem;
  max-width: 120px;
}

/* Card tag and CTA */
.work__card-tag {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FAE1C5;
  margin-bottom: 0.75rem;
  display: block;
}

.work__card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.work__card:hover .work__card-cta {
  opacity: 1;
}


/* ===========================
   CASE STUDY MODAL
   =========================== */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cs-modal.open {
  opacity: 1;
  visibility: visible;
}

.cs-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cs-modal__close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 2010;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #1e1d1b;
  background: #141312;
  color: #E6E8E7;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
  line-height: 1;
}

.cs-modal__close:hover {
  border-color: #B7C9C3;
}

.cs-modal__content {
  position: relative;
  z-index: 2001;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: #111110;
  border: 1px solid #1e1d1b;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.97);
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.4s ease;
}

.cs-modal.open .cs-modal__content {
  transform: translateY(0) scale(1);
}

/* Scrollbar styling for modal */
.cs-modal__content::-webkit-scrollbar {
  width: 4px;
}

.cs-modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.cs-modal__content::-webkit-scrollbar-thumb {
  background: rgba(183,201,195,0.15);
  border-radius: 4px;
}

/* Lock body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* ===========================
   CREDENTIAL VIEWER MODAL
   =========================== */
.cred-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cred-modal.open {
  opacity: 1;
  visibility: visible;
}
.cred-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cred-modal__close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 2010;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #1e1d1b;
  background: #141312;
  color: #E6E8E7;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
  line-height: 1;
}
.cred-modal__close:hover {
  border-color: #B7C9C3;
}
.cred-modal__content {
  position: relative;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 90vw;
  max-height: 90vh;
  padding: 2rem;
  background: #111110;
  border: 1px solid #1e1d1b;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.97);
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.4s ease;
}
.cred-modal.open .cred-modal__content {
  transform: translateY(0) scale(1);
}
.cred-modal__title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B7C9C3;
}
.cred-modal__img {
  max-width: 720px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .cred-modal__content {
    max-width: 95vw;
  }
}

/* ===========================
   CASE STUDY CARD (inside modal)
   =========================== */
.case-study {
  width: 100%;
  background: linear-gradient(165deg, rgba(183,201,195,0.04) 0%, rgba(10,10,10,0.95) 40%);
  border: 1px solid rgba(183,201,195,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.cs-header {
  padding: 3rem 3.5rem 2rem;
  border-bottom: 1px solid rgba(183,201,195,0.06);
}

.cs-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cs-header__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FAE1C5;
}

.cs-header__role {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #7A7C7B;
}

.cs-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #B7C9C3;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.cs-header__subtitle {
  font-size: 0.95rem;
  color: #8A8C8B;
  max-width: 680px;
  line-height: 1.7;
}

/* Tags */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 3.5rem;
  border-bottom: 1px solid rgba(183,201,195,0.06);
}

.cs-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(183,201,195,0.15);
  color: #8EAAA3;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.cs-tag:hover {
  color: #B7C9C3;
  border-color: rgba(183,201,195,0.3);
}

.cs-tag--highlight {
  background: rgba(183,201,195,0.08);
  border-color: rgba(183,201,195,0.25);
  opacity: 1;
}

.cs-tag.active {
  background: rgba(183,201,195,0.15);
  border-color: #B7C9C3;
  color: #E6E8E7;
  opacity: 1;
  box-shadow: 0 0 12px rgba(183,201,195,0.15);
}

.cs-tags.filtering .cs-tag:not(.active) {
  opacity: 0.25;
}

/* Filter hint */
.cs-filter-hint {
  padding: 0 3.5rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  color: #B7C9C3;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cs-filter-hint.visible {
  opacity: 0.55;
}

/* Metrics */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(183,201,195,0.06);
}

.cs-metric {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(183,201,195,0.06);
}

.cs-metric:last-child {
  border-right: none;
}

.cs-metric__number {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #E6E8E7;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cs-metric__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A7C7B;
}

/* Body */
.cs-body {
  padding: 2.5rem 3.5rem 2rem;
}

.cs-section {
  margin-bottom: 2.5rem;
}

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

.cs-section__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FAE1C5;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(250,225,197,0.08);
  display: inline-block;
}

/* Highlightable paragraphs */
.cs-section p {
  font-size: 0.9rem;
  color: #9B9D9C;
  line-height: 1.8;
  max-width: 750px;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 2px solid transparent;
  border-radius: 2px;
  transition: all 0.4s ease;
}

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

.cs-body.filtering .cs-section p {
  opacity: 0.15;
}

.cs-body.filtering .cs-section p.highlighted {
  opacity: 0.75;
  border-left-color: #B7C9C3;
  background: transparent;
  cursor: pointer;
}

.cs-body.filtering .cs-section__label {
  opacity: 1;
}

/* Results grid */
.cs-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
  max-width: 750px;
}

.cs-result {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.cs-result__icon {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #B7C9C3;
  margin-top: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.cs-result__text {
  font-size: 0.85rem;
  color: #9B9D9C;
  line-height: 1.6;
  transition: color 0.4s ease;
}

.cs-result__text strong {
  color: #E6E8E7;
  opacity: 1;
  font-weight: 600;
  transition: opacity 0.4s ease;
}

.cs-body.filtering .cs-result {
  opacity: 0.15;
}

.cs-body.filtering .cs-result .cs-result__text,
.cs-body.filtering .cs-result .cs-result__text strong,
.cs-body.filtering .cs-result .cs-result__icon {
  opacity: inherit;
}

.cs-body.filtering .cs-result.highlighted {
  opacity: 1;
  border-left-color: #B7C9C3;
  background: transparent;
  cursor: pointer;
}

.cs-body.filtering .cs-result.highlighted .cs-result__text {
  opacity: 0.55;
}

.cs-body.filtering .cs-result.highlighted .cs-result__text strong {
  opacity: 1;
}

.cs-body.filtering .cs-result.highlighted .cs-result__icon {
  opacity: 0.5;
}

/* Case study inline images */
.cs-image {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(183,201,195,0.08);
  max-width: 750px;
}

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

/* Case study testimonial */
.cs-testimonial {
  padding: 2rem 3.5rem;
  border-top: 1px solid rgba(183,201,195,0.06);
  background: rgba(183,201,195,0.02);
}

.cs-testimonial__quote {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: #E6E8E7;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid #FAE1C5;
}

.cs-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-left: 1rem;
}

.cs-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(183,201,195,0.12);
  border: 1px solid rgba(183,201,195,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #B7C9C3;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow: hidden;
}

.cs-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.cs-testimonial__name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #E6E8E7;
}

.cs-testimonial__role {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #7E9790;
}

@media (max-width: 768px) {
  .cs-testimonial { padding: 1.5rem; }
}

/* Tools bar */
.cs-tools {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 3.5rem;
  border-top: 1px solid rgba(183,201,195,0.06);
}


.cs-tools__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7A7C7B;
}

.cs-tools__list {
  display: flex;
  gap: 1.25rem;
}

.cs-tools__item {
  font-size: 0.72rem;
  font-weight: 500;
  color: #8A8878;
}

/* ===========================
   CASE STUDY MODAL — RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .cs-header { padding: 2rem 1.5rem 1.5rem; }
  .cs-tags { padding: 1rem 1.5rem; }
  .cs-metrics { grid-template-columns: repeat(2, 1fr); }
  .cs-metric { border-bottom: 1px solid rgba(183,201,195,0.06); }
  .cs-body { padding: 2rem 1.5rem 1.5rem; }
  .cs-results-grid { grid-template-columns: 1fr; }
  .cs-tools { padding: 1rem 1.5rem; flex-wrap: wrap; }
  .cs-modal__content { padding: 1rem; }
  .cs-filter-hint { padding: 0 1.5rem; }
}

/* ===========================
   CASE STUDY — FULL PAGE TAKEOVER
   =========================== */
.cs-modal--fullpage {
  background: #0a0a0a;
}

.cs-fullpage {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: #0a0a0a;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(25, 20, 15, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(15, 22, 20, 0.3) 0%, transparent 40%);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.cs-modal--fullpage.open .cs-fullpage {
  transform: translateY(0);
  opacity: 1;
}

.cs-fullpage::-webkit-scrollbar { width: 4px; }
.cs-fullpage::-webkit-scrollbar-track { background: transparent; }
.cs-fullpage::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; }

/* Back Button */
.cs-fullpage__back {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 2010;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  background: rgba(20, 19, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(183, 201, 195, 0.12);
  border-radius: 8px;
  color: #E6E8E7;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cs-fullpage__back:hover {
  border-color: rgba(183, 201, 195, 0.3);
  color: #B7C9C3;
}

.cs-fullpage__back svg { width: 16px; height: 16px; }

/* Content Area */
.cs-fullpage__main {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

/* ---- Progress Timeline TOC ---- */
.cs-toc {
  position: fixed;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2005;
  display: flex;
  flex-direction: column;
}

.cs-toc__track {
  position: absolute;
  left: 3.5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.cs-toc__item {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.6rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #4A4C4B;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cs-toc__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(183, 201, 195, 0.2);
  background: #141312;
  transition: all 0.3s ease;
  z-index: 1;
}

.cs-toc__item--active { color: #1a1a1a; }

.cs-toc__item--active::before {
  border-color: #1a1a1a;
  background: #1a1a1a;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.cs-toc__item:hover:not(.cs-toc__item--active) { color: #3a3a3a; }

/* ---- FP Header ---- */
.cs-fp-header {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(183, 201, 195, 0.12);
}

.cs-fp-header__label {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FAE1C5;
  margin-bottom: 1rem;
}

.cs-fp-header__title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #B7C9C3;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cs-fp-header__bio {
  font-size: 1rem;
  color: #E6E8E7;
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.cs-fp-header__role {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cs-fp-header__role-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FAE1C5;
}

.cs-fp-header__role-value {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #E6E8E7;
}

/* ---- Problem / Solution Summary ---- */
.cs-fp-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.cs-fp-summary__block {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(183, 201, 195, 0.1);
  background: #141312;
}

.cs-fp-summary__block--problem { border-left: 2px solid #E8530E; }
.cs-fp-summary__block--solution { border-left: 2px solid #B7C9C3; }

.cs-fp-summary__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
}

.cs-fp-summary__block--problem .cs-fp-summary__icon { color: #E8530E; }
.cs-fp-summary__block--solution .cs-fp-summary__icon { color: #B7C9C3; }

.cs-fp-summary__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FAE1C5;
  margin-bottom: 0.5rem;
}

.cs-fp-summary__block p {
  font-size: 0.95rem;
  color: #E6E8E7;
  line-height: 1.7;
  margin: 0;
}

/* ---- Skills Strip ---- */
.cs-fp-skills {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(183, 201, 195, 0.12);
  border-bottom: 1px solid rgba(183, 201, 195, 0.12);
}

.cs-fp-skills__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FAE1C5;
  margin-bottom: 0.85rem;
}

.cs-fp-skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cs-fp-skills__tag {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(183, 201, 195, 0.15);
  color: #E6E8E7;
  letter-spacing: 0.02em;
}

/* ---- Metrics ---- */
.cs-fp-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 3rem;
  border: 1px solid rgba(183, 201, 195, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #141312;
}

.cs-fp-metric {
  padding: 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(183, 201, 195, 0.08);
}

.cs-fp-metric:last-child { border-right: none; }

.cs-fp-metric__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #FFF7E7;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.cs-fp-metric__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9B9D9C;
}

/* ---- Inline Illustration ---- */
.cs-fp-illustration {
  margin: 0 0 3rem;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(183, 201, 195, 0.1);
  background: #141312;
}

.cs-fp-illustration svg {
  width: 100%;
  height: auto;
  color: #B7C9C3;
}

/* ---- Content Sections ---- */
.cs-fp-section {
  margin-bottom: 3rem;
}

.cs-fp-section__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E8530E;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(232, 83, 14, 0.2);
  display: inline-block;
}

.cs-fp-section p {
  font-size: 1.05rem;
  color: #E6E8E7;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 0.85rem;
}

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

/* ---- Results Grid ---- */
.cs-fp-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

.cs-fp-result {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.6rem 0;
}

.cs-fp-result__dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #E8530E;
  margin-top: 0.55rem;
  opacity: 0.45;
}

.cs-fp-result__text {
  font-size: 1rem;
  color: #E6E8E7;
  line-height: 1.6;
}

.cs-fp-result__text strong {
  color: #FFF7E7;
  font-weight: 600;
}

/* ---- Testimonial ---- */
.cs-fp-testimonial {
  margin-bottom: 2.5rem;
  padding: 2rem;
  border-radius: 10px;
  background: #141312;
  border: 1px solid rgba(183, 201, 195, 0.1);
}

.cs-fp-testimonial .cs-fp-section__label { margin-bottom: 1.5rem; }

.cs-fp-testimonial__quote {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: #E6E8E7;
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid #E8530E;
}

.cs-fp-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-left: 1.25rem;
}

.cs-fp-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(183, 201, 195, 0.15);
  flex-shrink: 0;
}

.cs-fp-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-fp-testimonial__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cs-fp-testimonial__name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #E6E8E7;
}

.cs-fp-testimonial__role {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #9B9D9C;
}

/* ---- Tools Bar ---- */
.cs-fp-tools {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(183, 201, 195, 0.12);
}

.cs-fp-tools__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FAE1C5;
  white-space: nowrap;
}

.cs-fp-tools__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.cs-fp-tools__item {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #E6E8E7;
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 201, 195, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cs-fp-tools__item:hover {
  color: #B7C9C3;
  border-color: #B7C9C3;
}

/* Inline body text links */
.cs-fp-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 201, 195, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cs-fp-link:hover {
  color: #B7C9C3;
  border-color: #B7C9C3;
}

/* ---- Fullpage Responsive ---- */
@media (max-width: 1100px) {
  .cs-toc { display: none; }
}

@media (max-width: 768px) {
  .cs-fullpage__back { top: 1rem; left: 1rem; }
  .cs-fullpage__main { padding: 4rem 1.25rem 3rem; }
  .cs-fp-summary { grid-template-columns: 1fr; }
  .cs-fp-metrics { grid-template-columns: repeat(2, 1fr); }
  .cs-fp-metric { border-bottom: 1px solid rgba(183, 201, 195, 0.08); }
  .cs-fp-results { grid-template-columns: 1fr; }
  .cs-fp-header__title { font-size: 2rem; }
  .cs-fp-tools { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cs-fp-illustration { padding: 1.25rem 1rem; }
}


/* ===========================
   TESTIMONIALS CAROUSEL
   =========================== */
.testimonials {
  background: #111111;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.about {
  background: #0e0e0e;
}

.work {
  background: #0a0a0a;
}

.contact {
  background: #0e0e0e;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 3rem 2rem;
}

/* Kathy (2nd card) spans 2 to fill row 1 with Christa */
.testimonial-card:nth-child(2) { grid-column: span 2; }

/* --- Testimonial Cards — Clean flat surface --- */
.testimonial-card {
  position: relative;
  background: #141312;
  border: 1px solid #1e1d1b;
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.testimonial-card:hover {
  border-color: rgba(183, 201, 195, 0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.testimonial-card__quote {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #C8CAC9;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(183, 201, 195, 0.15);
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E6E8E7;
  display: block;
}

.testimonial-card__role {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #7E9790;
  display: block;
  margin-top: 0.15rem;
}

/* Pull-quote variant — editorial full-width break */
.testimonial-card--pullquote {
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  border-left: 3px solid #B7C9C3;
  border-radius: 0;
  box-shadow: none;
  padding: 1.5rem 2.5rem;
  margin: 1rem 0;
}
.testimonial-card--pullquote:hover {
  border-color: rgba(183, 201, 195, 0.5);
  box-shadow: none;
}
.testimonial-card--pullquote .testimonial-card__quote {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #E6E8E7;
  margin-bottom: 1rem;
}

/* ===========================
   CONTACT
   =========================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info p:not(.section__label) {
  color: #C8CAC9;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

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

.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #AAACAB;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact__social:hover {
  color: #FAE1C5;
}

.contact__social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.form__group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C4A88A;
  margin-bottom: 0.5rem;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #141414;
  border: 1px solid rgba(183, 201, 195, 0.1);
  border-radius: 4px;
  color: #E6E8E7;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: #B7C9C3;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: #B7C9C3;
  opacity: 0.45;
}

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

/* ===========================
   CONTACT FORM SUCCESS
   =========================== */
.contact__success {
  text-align: center;
  padding: 3rem 1rem;
}

.contact__success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #B7C9C3;
  margin-bottom: 0.75rem;
}

.contact__success p {
  color: #9B9D9C;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(183, 201, 195, 0.08);
}

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

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer p {
  font-size: 0.8rem;
  color: #7A7C7B;
}

.footer a {
  font-size: 0.8rem;
  color: #7A7C7B;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #FAE1C5;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
/* Hero responsive */
@media (max-width: 968px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 6rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }
  .hero__name {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    order: 0;
    margin-bottom: 0.5rem;
  }
  .hero__name-line {
    font-size: 15vw !important;
  }
  .hero__portrait {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 50vw !important;
    max-width: 260px;
    margin: 0 auto 1rem;
    z-index: 2;
    order: 1;
  }
  .hero__portrait::after {
    left: -40%;
    width: 180%;
  }
  .hero__headline {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    order: 2;
    margin-bottom: 1rem;
  }
  .hero__title {
    font-size: 0.7rem !important;
    letter-spacing: 0.15em !important;
  }
  .hero__skills-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    gap: 1.5rem 0.5rem !important;
    justify-items: center !important;
    width: 100% !important;
    order: 3;
    margin-top: 2rem;
  }
  .hero__skill-icon {
    width: 30px !important;
    height: 30px !important;
  }
  .hero__skill-label {
    font-size: 0.5rem !important;
  }
  .hero__corner {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    right: auto !important;
    margin-top: auto !important;
    padding-bottom: 2rem;
    order: 4;
  }

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

  .about__image {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__card--wide {
    grid-column: span 2;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }
  .testimonial-card:nth-child(2) { grid-column: span 1; }

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

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0e0e0e;
    flex-direction: column;
    padding: 6rem 2.5rem 2rem;
    gap: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(183, 201, 195, 0.08);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
  }

  .nav__backdrop.open {
    display: block;
  }

  .nav__links a {
    font-size: 0.9rem;
  }

  /* Work — single column on mobile */
  .work__grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
  .work__card--wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .work__card-visual {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .work__bg-text {
    font-size: 22vw;
  }

  .credentials__row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .credentials__badges {
    justify-content: center;
  }

  .credential-badge {
    font-size: 0.65rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .testimonial-card--pullquote { grid-column: span 1; }
}

/* Hero reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav, .hero__name, .hero__portrait,
  .hero__headline, .hero__skills-row,
  .hero__skill, .hero__corner {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
  }
  .hero__portrait img { opacity: 0.9; }
  .hero__particles { display: none; }
  .work__card-art svg { transition: none !important; }
  .testimonials-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .testimonial-card--pullquote { grid-column: span 1; }
  .fade-in {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .work__card,
  .testimonial-card,
  .credential-badge,
  .hero__corner a {
    transition-duration: 0.15s !important;
  }
  .work__card:hover .work__card-art svg,
  .testimonial-card:hover { transform: translateY(-2px); }
  .cs-modal__content,
  .cred-modal__content {
    transform: translateY(0) scale(1) !important;
  }
}

/* ===========================
   FOCUS-VISIBLE — Accessible focus indicators
   =========================== */
.nav__links a:focus-visible,
.hero__skill:focus-visible,
.work__card:focus-visible,
.credential-badge:focus-visible,
.cs-modal__close:focus-visible,
.cred-modal__close:focus-visible,
.hero__corner a:focus-visible,
.contact__link:focus-visible,
.contact__social:focus-visible,
.footer a:focus-visible,
.about__dogs-ig:focus-visible,
button[type="submit"]:focus-visible,
.cs-tag:focus-visible,
.nav__logo:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid rgba(183, 201, 195, 0.6);
  outline-offset: 3px;
}

/* Reset button styles for cs-tag buttons */
.cs-tag {
  background: none;
  font-family: 'Instrument Sans', sans-serif;
}

/* Increased Contrast */
@media (prefers-contrast: more) {
  .work__card,
  .testimonial-card {
    border-color: rgba(183, 201, 195, 0.3);
  }
  .credential-badge {
    border-color: rgba(183, 201, 195, 0.25);
  }
  .cs-modal__content,
  .cred-modal__content {
    border-color: rgba(183, 201, 195, 0.25);
  }
  .cs-modal__close,
  .cred-modal__close {
    border-color: rgba(183, 201, 195, 0.25);
  }
}
