/* ============================================================
   VARIABLES & THEME
   ============================================================ */

:root {
  --font-sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --color-bg: #fefefe;
  --color-text: #0a0a0a;
  --color-muted: #717171;
  --color-subtle-bg: #f5f5f5;
  --color-accent: #33ad4c;       /* decorative only — borders, dividers, backgrounds */
  --color-accent-text: #199331;  /* text on light backgrounds — update hex if adjusting contrast */
  --color-red: #E55733;
  --color-yellow: #FFA630;
  --color-border: #e8e8e8;
  --color-mountain-bg: #f2f2f2;

  --max-width: 760px;
  --nav-height: 56px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

[data-theme="dark"] {
  --color-bg: #111111;
  --color-text: #ffffff;
  --color-muted: #bbbbbb;
  --color-subtle-bg: #252525;
  --color-border: #404040;
  --color-mountain-bg: #1c1c1c;
  --color-red: #E55733;
  --color-yellow: #FFA630;
  --color-accent-text: #33ad4c; 

}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

ul {
  list-style: none;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2;
}

/*h1:after {
  background-size: 6px 6px;
  background-image: repeating-linear-gradient(45deg, #36ad4c 0, #36ad4c 1px, rgba(0,0,0,0) 0, rgba(0,0,0,0) 50%);
  content: '';
  height: .5rem;
    background-color: rgba(0,0,0,0);
  opacity: 0.8;
}
*/

.section-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-accent-text);
  margin-bottom: 0.75rem;
  text-transform: lowercase;
}

.section-label.highlight {
  display: inline-block;
  color: white;
  background: var(--color-accent);
}


.section-divider {
  height: 3px;
  margin-bottom: 2rem;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) 0 0 / 20px 100%,
    linear-gradient(var(--color-yellow), var(--color-yellow)) 25px 0 / 20px 100%,
    linear-gradient(var(--color-red), var(--color-red)) 50px 0 / 20px 100%;
  background-repeat: no-repeat;

/*  old background pattern to reference later  */
/*  background-color: rgba(0,0,0,0);
  opacity: 0.8;
  background-size: 6px 6px;
  background-image: repeating-linear-gradient(45deg, var(--color-accent) 0, var(--color-accent) 1px, rgba(0,0,0,0) 0, rgba(0,0,0,0) 50%);
*/

}


/* ============================================================
   NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-accent-text);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-yellow);
  /*color: var(--color-text);*/

}

/* Sun shown in light mode, moon shown in dark mode */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none;  }

[data-theme="dark"] .theme-toggle .icon-sun  { display: none;  }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
  margin-left: 1rem;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hamburger open state */
.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1.75rem var(--space-md) 2rem;
}

.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-drawer a {
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--color-text);
}

.nav-open .nav-drawer {
  display: block;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 5rem 0 2rem;
  min-height: 560px;
  overflow: hidden;
  background: var(--color-mountain-bg);
  transition: background-color 0.4s ease;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   MOUNTAIN + SKY
   ============================================================ */

.mountain-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background-color: var(--color-mountain-bg);
  overflow: hidden;
  transition: background-color 0.4s ease;
  z-index: 0;
}

.mountain-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/small-mountain.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  transition: filter 0.4s ease;
}

[data-theme="dark"] .mountain-wrapper::before {
  filter: invert(1) contrast(0.75);
}



.sky {
  position: absolute;
  inset: 0;
  pointer-events: none; /* sky itself is not interactive... */
}

.sky div {
  position: absolute;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  pointer-events: auto; /* ...but the celestial body is */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sky div:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* Time-based celestial positions — image is set by sky.js based on theme */
.sky .sunrise { top: 50%; left: 58%; }
.sky .sun     { top: 30%; left: 63%; }
.sky .noon    { top: 10%; left: 69%; }
.sky .sunset  { top: 36%; left: 82%; }
.sky .evening { top: 22%; left: 75%; }
.sky .moon    { top: 12%; left: 68%; }
.sky .dawn    { top: 33%; left: 63%; }

/* Responsive mountain images */
@media (min-width: 640px) {
  .hero {
    padding-bottom: 120px;
  }
  .mountain-wrapper {
    height: 300px;
  }
  .mountain-wrapper::before {
    background-image: url('assets/medium-mountain.svg');
  }
  .sky div {
    visibility: hidden;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-bottom: 160px;
  }
  .mountain-wrapper {
    height: 380px;
  }
  .mountain-wrapper::before {
    background-image: url('assets/large-mountain.svg');
  }
  .sky div {
    visibility: visible;
  }
}

@media (min-width: 1440px) {
  .mountain-wrapper::before {
    background-image: url('assets/xlarge-mountain.svg');
  }
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: .5rem;
}

.tagline {
  font-size: 1.0625rem;
  /*color: var(--color-text);*/
  color: var(--color-accent-text);
  margin-bottom: 2rem;
  font-weight: 400;
}

.bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 580px;
}

.bio-placeholder {
  color: var(--color-muted);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

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

.social-links a {
  font-size: 0.875rem;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.social-links a:hover {
  color: var(--color-accent-text);
}

.availability {
  font-size: 0.875rem;
  color: var(--color-text);
  /*font-weight: 500;*/
}

.availability-dot {
  color: var(--color-red);
  font-weight: 500;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-accent-text) !important;
  font-weight: 500;
}

.cta-link svg {
  transition: transform 0.2s ease;
}

.cta-link:hover svg {
  transform: translateY(3px); /* down arrow — scroll CTA */
}

.cta-link--right:hover svg {
  transform: translateX(3px); /* right arrow — navigate CTA */
}


/* ============================================================
   PRINCIPLES
   ============================================================ */

.principles {
  padding: 4.5rem 0;
  background: var(--color-bg);
  position: relative;
}

/* Shared pattern background — base styles defined once, overrides per section below.
   To add pattern to a new section:
   1. Add class to the :is() list below (and the dark mode rule)
   2. Add `position: relative` to the section
   3. Add `position: relative; z-index: 1` to the section's .container
   4. Add a per-section override block with background-size and opacity */
:is(.about-testimonials, .work)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/pattern.svg');
  background-repeat: repeat;
  background-position: center center;
  mix-blend-mode: multiply;
  pointer-events: none;

  background-size: 550px auto;
  opacity: 0.3;
  /* Fade pattern in below the heading so section label text stays clean */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 150%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 150%);
}

[data-theme="dark"] :is(.about-testimonials, .work, .site-footer)::before {
  background-image: url('assets/pattern-dark.svg');
  mix-blend-mode: screen;
  opacity: 0.06;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
}

.principle-icon {
  display: block;
  color: var(--color-muted);
  /*color: white;*/
  margin-bottom: 0.75rem;
  /*border: 1px solid var(--color-muted);*/
/*  padding: .5rem;
  border-radius: 999px;
  width: 3rem;
  height: 3rem;
  background: var(--color-muted);*/
}

.principle h3 {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.principle p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-muted);
}


/* ============================================================
   WORK CARDS
   ============================================================ */

.work {
  padding: 4rem 0 4rem;
  background: var(--color-bg);
  position: relative;
}

/* pattern background mask is standardized across sections, no need for specific changes to individual sections */
/*.work::before {
  background-size: 550px auto;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
} */

.work .container {
  position: relative;
  z-index: 1;
}


.work-list {
  display: flex;
  flex-direction: column;

}

.work-card {
  display: block;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.work-text {
  /*padding: inherit 10rem;*/
}

.work-card-thumb {
  width: 100%;
  height: 160px;
  background-color: var(--color-border);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.work-card:first-child {
  /*border-top: 1px solid var(--color-border);*/
}


.work-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.work-card h3 {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.work-card:hover h3 {
  color: var(--color-accent-text);
}

.work-tags {
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.work-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 500px;
}


/* ============================================================
   ABOUT TEASER
   ============================================================ */

.about-teaser {
  padding: 4.5rem 0;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.about-teaser-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-teaser-cta {
  display: flex;
  gap: 1.5rem;
}

.about-teaser-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.about-teaser-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--color-border);
}

.about-teaser-bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.about-teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 3rem 0;
  background: var(--color-subtle-bg);
  position: relative;
}

/* removed the pattern in the footer */
/*.site-footer::before {
  background-size: 450px auto;
  opacity: 0.25;
  -webkit-mask-image: radial-gradient(circle, transparent 0%, black 100%);
  mask-image: radial-gradient(circle, transparent 0%, black 100%);
  mask-image:linear-gradient(170deg, transparent 40%, black 90%);
}*/


.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-accent-text);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--color-accent-text);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-muted);
}


/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .container {
  animation: fadeInUp 0.5s ease both;
}


/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Keep theme toggle visible on mobile, reposition next to hamburger */
  .theme-toggle {
    margin-left: auto;
  }

  .nav-hamburger {
    margin-left: 0.75rem;
  }

  .hero {
    padding: 3.5rem 0 90px;
  }

  .mountain-wrapper {
    height: 340px;
  }

  .sky div {
    visibility: hidden;
  }

  .hero h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-teaser-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .work-card-header {
    flex-direction: column;
    gap: 0.25rem;
  }
}


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

/* --- Active nav link --- */

.nav-links a.nav-active {
  color: var(--color-accent-text);
}

/* --- Intro --- */

.about-intro {
  padding: 4rem 0;
  background: var(--color-bg);
}

.about-intro-inner {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-intro-photo {
  flex-shrink: 0;
  width: 220px;
  height: 260px;
  border-radius: 6px;
  background: var(--color-border);
}

.about-intro-text h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.about-intro-text p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

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

/* --- Testimonials --- */

.about-testimonials {
  padding: 4rem 0;
  background: var(--color-bg);
  position: relative;
}

/* pattern background mask is standardized across sections, no need for specific changes to individual sections */
/*.about-testimonials::before {
  background-size: 550px auto;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
}
*/

.about-testimonials .container {
  position: relative;
  z-index: 1;
}

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

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-card:nth-child(1) { border-bottom: 3px solid var(--color-accent); }
.testimonial-card:nth-child(2) { border-bottom: 3px solid var(--color-yellow); }
.testimonial-card:nth-child(3) { border-bottom: 3px solid var(--color-red); }

.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--color-muted);
  font-style: italic;
  flex: 1;
  text-indent: -0.45em; /* hanging punctuation */
  /*padding-left: 0.45em; */ /* didn't need left padding */
  padding-right: 0.45rem; /* fixes the rag a little bit */
}

.testimonial-attribution a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.testimonial-attribution a::after {
  content: ' ↗';
  font-size: 0.7em;
  opacity: 0.35;
  transition: opacity 0.15s ease;
}

.testimonial-attribution a:hover {
  color: var(--color-accent-text);
}

.testimonial-attribution a:hover::after {
  opacity: 1;
}

/* Name hover color matches each card's bottom border */
.testimonial-card:nth-child(2) .testimonial-attribution a:hover { color: var(--color-yellow); }
.testimonial-card:nth-child(3) .testimonial-attribution a:hover { color: var(--color-red); }

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  display: block;
}

.testimonial-title {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  display: block;
  margin-top: 0.2rem;
}

/* --- Right now --- */

.about-now {
  padding: 4rem 0;
  background: var(--color-subtle-bg);
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.now-column-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  display: block;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--color-accent);
}

/* Each column gets its own accent color — order matches the section divider: green → yellow → red */
.now-column:nth-child(1) .now-column-label { border-bottom-color: var(--color-accent-text); }
.now-column:nth-child(2) .now-column-label { border-bottom-color: var(--color-yellow); }
.now-column:nth-child(3) .now-column-label { border-bottom-color: var(--color-red); }

.now-column-section {
  margin-bottom: 1.25rem;
}

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

.now-column-sublabel {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.now-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.now-items li {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.4;
}

.now-empty {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0;
}

.now-album-artist {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* --- Photos / gallery --- */

.about-photos {
  padding: 4rem 0;
  /*background: var(--color-subtle-bg);*/
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.about-gallery-item {
  aspect-ratio: 1;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Fun facts --- */

.about-facts {
  padding: 4rem 0;
  background: var(--color-subtle-bg);
}

.about-facts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* White pill tags on gray background for contrast */
.about-facts .about-tag {
  background: var(--color-bg);
  color: var(--color-text);
}

/* --- Skills --- */

.about-skills {
  padding: 4rem 0;
  background: var(--color-bg);
}

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

.skills-group {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.skills-group-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  min-width: 9rem;
  flex-shrink: 0;
  padding-top: 0.3rem; /* align with tag cap height */
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 4px; /* square-ish vs personality tags (99px) */
  padding: 0.25rem 0.625rem;
}

/* --- CTA --- */

.about-cta {
  padding: 4rem 0;
  background: var(--color-bg);
}

.about-cta-text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.about-cta-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.about-cta-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.about-cta-social a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.about-cta-social a:hover {
  color: var(--color-accent-text);
}

.about-cta-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- About page responsive --- */

@media (max-width: 640px) {
  .about-intro-inner {
    flex-direction: column;
  }

  .about-intro-photo {
    width: 100%;
    height: 240px;
  }

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

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

  .now-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .skills-group-label {
    min-width: unset;
    padding-top: 0;
  }
}


/* ============================================================
   RESUME PAGE
   ============================================================ */

.resume-intro {
  padding: 3rem 0 2.5rem;
  background: var(--color-bg);
}

.resume-intro-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.resume-name {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.resume-headline {
  font-size: 1rem;
  color: var(--color-accent-text);
  margin-bottom: 1rem;
}


.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-muted);
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
  margin-top: 0.875rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.resume-download:hover {
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}

.resume-section {
  padding: 3.5rem 0;
  background: var(--color-bg);
}

.resume-section--subtle {
  background: var(--color-subtle-bg);
}

.resume-summary {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 600px;
}

/* --- Timeline / roles --- */

.resume-timeline {
  display: flex;
  flex-direction: column;
}

.resume-role {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.resume-role:first-child {
  padding-top: 0;
}

.resume-role:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resume-role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.875rem;
}

/* When a header is the last child (compact merged roles, no bullets), remove trailing margin */
.resume-role-header:last-child {
  margin-bottom: 0;
}

.resume-role-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.resume-role-title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  display: block;
}

.resume-role-org {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-muted);
  display: block;
}

.resume-role-dates {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-muted);
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 0.15rem; /* align with title cap height */
}

.resume-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resume-bullets li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-muted);
  padding-left: 1.1rem;
  position: relative;
}

.resume-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent-text);
}

/* --- Company group (multi-role tenures) --- */

.resume-company-group {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.resume-company-group .resume-bullets {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.resume-company-group .resume-role:last-child .resume-bullets {
  border-bottom: none;
  padding-bottom: 0;
}

.resume-company-group:first-child {
  padding-top: 0;
}

.resume-company {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}



.resume-company-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.resume-company-tenure {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Roles inside a company group: indent implies nesting under the company header */
.resume-company-group .resume-role {
  padding: 1.25rem 0 0 1.25rem;
  border-bottom: none;
}

.resume-company-group .resume-role + .resume-role {
  /*border-top: 1px solid var(--color-border);*/
}

/* Extra padding at bottom of last role so the green line extends past the content */
.resume-company-group .resume-role:last-child {
  padding-bottom: 1rem;
}

/* Extra gap between PwC group and the pre-PwC entries that follow */
.resume-company-group + .resume-role {
  padding-top: 2.75rem;
}


/* --- Education + Volunteering --- */

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

.resume-subsection--full {
  grid-column: 1 / -1;
}

.resume-edu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.resume-vol-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.resume-vol-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resume-vol-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.resume-vol-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.resume-vol-org {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* --- Resume responsive --- */

@media (max-width: 640px) {
  .resume-intro-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .resume-name {
    font-size: 1.875rem;
  }

  .resume-company {
    flex-direction: column;
    gap: 0.2rem;
  }

  .resume-role-header {
    flex-direction: column;
    gap: 0.2rem;
  }

  /* Compact header-only roles (no bullets): keep row layout since text is short enough */
  .resume-role--compact .resume-role-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .resume-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .resume-vol-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}


/* ============================================================
   CASE STUDY — SHARED COMPONENTS
   ============================================================ */

/* --- Hero --- */

.cs-hero {
  padding: 3rem 0 3.5rem;
  background: var(--color-subtle-bg);
  border-bottom: 1px solid var(--color-border);
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  transition: color 0.15s ease;
}

.cs-back:hover {
  color: var(--color-accent-text);
}

.cs-title {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cs-hook {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

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

.cs-meta-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cs-meta-value {
  font-size: 0.9375rem;
  color: var(--color-text);
}

/* --- Content area --- */

.cs-content {
  padding: 4rem 0;
}

.cs-content .container > * + * {
  margin-top: 3rem;
}

/* --- Section header --- */

.cs-section-header {
  margin-bottom: -1rem; /* tighten gap to following block */
}

/* --- Body text --- */

.cs-body {
  max-width: 640px;
}

.cs-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.cs-body p + p {
  margin-top: 1.25rem;
}

/* --- Pull quote --- */

.cs-pull-quote {
  border-left: 3px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin-left: 0;
  max-width: 580px;
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  font-style: normal;
}

/* --- Single image --- */

.cs-image {
  margin: 0;
}

.cs-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-border);
  border-radius: 6px;
}

.cs-image figcaption,
.cs-image-pair figcaption {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* --- Two images side by side --- */

.cs-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0;
}

/* --- Stat callouts --- */

.cs-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.cs-stat-value {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--color-accent-text);
  line-height: 1;
}

.cs-stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 160px;
  line-height: 1.4;
}

/* --- End / back link --- */

.cs-end {
  padding: 3rem 0;
  background: var(--color-bg);
}

/* --- Two text columns --- */

.cs-text-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.cs-text-pair-heading {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
  color: var(--color-text);
}

.cs-text-pair-item p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-muted);
}

/* --- Three-column insight grid --- */

.cs-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.cs-insight-icon {
  display: block;
  color: var(--color-accent-text);
  margin-bottom: 0.75rem;
}

.cs-insight-heading {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.cs-insight-item p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* --- Before / After --- */

.cs-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0;
}

.cs-before-after-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cs-before-after-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  align-self: flex-start;
}

.cs-before-after-label--before {
  background: var(--color-border);
  color: var(--color-muted);
}

.cs-before-after-label--after {
  background: rgba(51, 173, 76, 0.15);
  color: var(--color-accent-text);
}

.cs-before-after figcaption {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* --- Findings --- */

.cs-findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cs-finding {
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.cs-finding--positive {
  background: rgba(51, 173, 76, 0.08);
  border-color: rgba(51, 173, 76, 0.2);
}

.cs-finding--pain {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.18);
}

.cs-finding-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.cs-finding--positive .cs-finding-header svg {
  color: var(--color-accent-text);
}

.cs-finding--pain .cs-finding-header svg {
  color: #dc2626;
}

.cs-finding-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cs-finding--positive .cs-finding-label {
  color: var(--color-accent-text);
}

.cs-finding--pain .cs-finding-label {
  color: #dc2626;
}

.cs-finding p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* --- Callout box --- */

.cs-callout {
  padding: 1.25rem 1.5rem;
  background: var(--color-subtle-bg);
  border-left: 3px solid var(--color-border);
  border-radius: 0 6px 6px 0;
}

.cs-callout-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.cs-callout p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* --- Numbered steps --- */

.cs-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cs-step:first-child {
  border-top: 1px solid var(--color-border);
}

.cs-step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent-text);
  padding-top: 0.2rem;
  flex-shrink: 0;
  width: 2rem;
}

.cs-step-heading {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.cs-step-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .cs-title {
    font-size: 1.75rem;
  }

  .cs-meta {
    gap: 1.25rem;
  }

  .cs-image-pair,
  .cs-before-after,
  .cs-findings,
  .cs-text-pair {
    grid-template-columns: 1fr;
  }

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

  .cs-stats {
    gap: 1.75rem;
  }
}
