:root {
  --bg-dark: #050505;
  --bg-light: #f5f2ee;
  --card-light: #fbfaf8;
  --text-dark: #1d1b19;
  --text-light: #f6f1eb;
  --muted-dark: rgba(246, 241, 235, 0.72);
  --muted-light: #6f675f;
  --border-light: rgba(29, 27, 25, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  /* Project thumbnails: simple cards */
  --project-thumb-radius: clamp(12px, 2.5vw, 16px);
  --project-shell-radius: 20px;
  --project-shell-padding: clamp(1rem, 2.2vw, 1.5rem);
  --project-shell-border: 1px solid rgba(255, 255, 255, 0.08);
  --project-shell-bg: rgba(255, 255, 255, 0.03);
  --project-card-depth-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

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

section {
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

.light-section::before {
  background: linear-gradient(
    to right,
    transparent,
    rgba(29, 27, 25, 0.065),
    transparent
  );
}

main > section:first-of-type::before {
  content: none;
}

main > section:not(.hero-section) {
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 24px;
  padding-right: 24px;
}

.section-dark {
  background: #0b0b0b;
}

.section-soft {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04), transparent 40%),
    #0b0b0b;
}

.section {
  scroll-margin-top: 140px;
}

#home.section {
  scroll-margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
}

.nav-link {
  text-decoration: none;
  color: rgba(244, 244, 242, 0.92);
  background: transparent;
  border: 0;
  padding: 8px 2px 12px;
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: opacity 0.25s ease, color 0.25s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 0.78;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  margin-top: 4px;
  background: transparent;
  transition: background-color 0.25s ease;
}

.nav-link:hover::after {
  background: rgba(255, 255, 255, 0.32);
}

.nav-link.active::after {
  background: rgba(255, 255, 255, 0.72);
}

.hero-section {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 110px) 24px clamp(4rem, 8vw, 6rem);
  color: #f4f4f2;
  text-align: left;
  position: relative;
}

.hero {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.56) 28%,
      rgba(0, 0, 0, 0.3) 62%,
      rgba(0, 0, 0, 0.06) 100%
    ),
    radial-gradient(ellipse 88% 68% at 70% 44%, rgba(34, 34, 34, 0.3) 0%, rgba(0, 0, 0, 0) 62%),
    url("assets/images/cynthia-hero-portrait.png");
  background-size: cover;
  background-position: 80% 35%;
  background-repeat: no-repeat;
  background-color: #050505;
}

.hero--split {
  overflow: hidden;
}

.hero-split {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-split__text {
  max-width: 34rem;
}

.hero-tagline {
  margin: 0 0 1.4rem;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.92);
}

.hero-tagline::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin: 16px 0;
}

.hero-lede {
  margin: 0 0 2.3rem;
  max-width: 420px;
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(210, 210, 206, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 2rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.hero-btn--primary {
  background: rgba(244, 244, 242, 0.96);
  color: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn--secondary {
  background: transparent;
  color: #f4f4f2;
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-btn--secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.46);
}

.hero-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hero-fade {
  opacity: 0;
  animation: heroFadeIn 0.85s ease forwards;
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 22px;
  height: 30px;
  transform: translateX(-50%);
  opacity: 0.45;
  animation: heroScrollPulse 2s ease-in-out infinite;
}

.hero-scroll-indicator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
}

.hero-scroll-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) rotate(45deg);
}

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

@keyframes heroScrollPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.32;
  }
  50% {
    transform: translateX(-50%) translateY(4px);
    opacity: 0.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .hero-scroll-indicator {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 2.75rem);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 58%, rgba(0, 0, 0, 0.2) 100%),
      radial-gradient(ellipse 100% 70% at 52% 30%, rgba(34, 34, 34, 0.24) 0%, rgba(0, 0, 0, 0) 64%),
      url("assets/images/cynthia-hero-portrait.png");
    background-size: cover;
    background-position: 64% 30%;
  }

  .hero-split__text {
    max-width: none;
    text-align: center;
  }

  h1.hero-heading {
    font-size: clamp(2.8rem, 12vw, 4.6rem);
    line-height: 0.95;
  }

  .hero-tagline {
    letter-spacing: 0.11em;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  opacity: 0.58;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.8rem, 8vw, 6.7rem);
  margin-bottom: 24px;
}

h1.hero-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin: 0 0 1.5rem;
}

h2 {
  font-size: clamp(2.9rem, 5vw, 4.3rem);
  text-align: center;
  margin-bottom: 24px;
}

h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.section-intro,
.info-card p {
  line-height: 1.85;
  font-size: 1.04rem;
}

.light-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
  text-align: center;
}

/* About: bold editorial layout — open, no card; image blends into section */
#about.about-section {
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.06), transparent 35%),
    radial-gradient(circle at 88% 75%, rgba(255, 255, 255, 0.04), transparent 50%),
    #0b0b0b;
  color: rgba(244, 244, 242, 0.94);
  padding: 0;
}

#about.about-section .about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

#about.about-section .about-visual {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

#about.about-section .about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

#about.about-section .about-eyebrow,
#about.about-section .about-copy .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  margin: 0 0 1rem;
  width: 100%;
  letter-spacing: 0.32em;
}

#about.about-section .about-copy h2 {
  text-align: left;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  width: 100%;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}

#about.about-section .about-copy h2:has(+ h3) {
  margin-bottom: 0;
}

#about.about-section .about-copy h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em;
}

#about.about-section .about-image {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: 0;
  overflow: hidden;
}

#about.about-section .about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 11, 11, 0.15), rgba(11, 11, 11, 0.55));
  pointer-events: none;
}

#about.about-section .about-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
  opacity: 0.9;
  filter: grayscale(100%) contrast(1.05);
}

#about.about-section .about-text {
  position: relative;
  max-width: 520px;
  padding-left: 2rem;
}

#about.about-section .about-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  border-radius: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.05)
  );
  pointer-events: none;
}

#about.about-section .about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

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

#about.about-section .about-text p:first-of-type {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

#about.about-section .about-text p:not(:first-of-type) {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

#about.about-section .about-text strong {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  #about.about-section .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5rem 1.5rem;
  }

  #about.about-section .about-image {
    max-width: none;
  }

  #about.about-section .about-image img {
    width: 100%;
    max-width: none;
  }

  #about.about-section .about-visual {
    justify-content: stretch;
  }

  #about.about-section .about-image::after {
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.12), rgba(11, 11, 11, 0.5));
  }

  #about.about-section .about-text {
    padding-left: 1.5rem;
  }

  #about.about-section .about-text::before {
    width: 2px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.06)
    );
  }
}

.card-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  text-align: left;
}

.info-card--project {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-card--project > p {
  margin: 0;
  flex-grow: 1;
  color: var(--muted-light);
}

.info-card__actions {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

#skills.skills-section {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.07), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.05), transparent 52%),
    #141416;
  color: rgba(244, 244, 242, 0.92);
}

#skills .eyebrow {
  color: rgba(244, 244, 242, 0.74);
}

#skills h2 {
  color: #ffffff;
}

#skills.skills-section .section-intro {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
}

#skills .skills-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

#skills .skills-card {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  text-align: left;
}

#skills .skills-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  z-index: -1;
  filter: blur(20px);
  pointer-events: none;
  border-radius: 22px;
}

#skills .skills-card:hover,
#skills .skills-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

#skills .skills-card h3 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.08rem;
}

#skills .skills-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* What Inspires Me — same hierarchy and dark treatment as Skills */
#inspires.inspires-section {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.07), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.05), transparent 52%),
    #141416;
  color: rgba(244, 244, 242, 0.92);
}

#inspires .eyebrow {
  color: rgba(244, 244, 242, 0.74);
}

#inspires h2 {
  color: #ffffff;
}

#inspires.inspires-section .section-intro {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
}

#inspires.inspires-section .inspires-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#inspires.inspires-section .inspires-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

#inspires.inspires-section .inspires-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
  pointer-events: none;
  transition: background 0.35s ease;
}

#inspires.inspires-section .inspires-item img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

#inspires.inspires-section .inspires-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#inspires.inspires-section .inspires-item:hover::after,
#inspires.inspires-section .inspires-item:focus-within::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
}

#inspires.inspires-section .inspires-item:hover img,
#inspires.inspires-section .inspires-item:focus-within img {
  transform: scale(1.04);
}

#inspires.inspires-section .inspires-item:hover .inspires-caption,
#inspires.inspires-section .inspires-item:focus-within .inspires-caption {
  opacity: 1;
}

.section--projects-showcase.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0%, transparent 44%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.055), transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.038), transparent 50%),
    #0b0b0b;
  color: rgba(244, 244, 242, 0.92);
}

.section--projects-showcase .eyebrow {
  color: rgba(244, 244, 242, 0.74);
  text-align: center;
}

.section--projects-showcase h2 {
  color: #ffffff;
}

.projects-showcase__intro {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(214, 214, 210, 0.9);
}

.featured-project {
  position: relative;
  isolation: isolate;
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: start;
  padding: var(--project-shell-padding);
  border-radius: var(--project-shell-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--project-card-depth-shadow);
  transition: all 0.25s ease;
}

.featured-project::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
  border-radius: 24px;
}

.featured-project:hover,
.featured-project:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.48);
}

.featured-image {
  box-sizing: border-box;
  width: 100%;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.featured-image img {
  max-width: 100%;
  max-height: calc(380px - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  transition: transform 0.2s ease;
}

.featured-project:hover .featured-image img {
  transform: scale(1.02);
}

.featured-project__content {
  padding: clamp(0.35rem, 0.85vw, 0.65rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-project__label {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.8);
}

.featured-project__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
  color: #ffffff;
}

.featured-project__type {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(214, 214, 210, 0.82);
}

.featured-project__description {
  margin: 0 0 1.3rem;
  color: rgba(214, 214, 210, 0.9);
  line-height: 1.7;
}

.featured-project__focus {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-project__focus li {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 244, 242, 0.92);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
  font-weight: 600;
}

.featured-project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-project .project-link--primary {
  background: #f4f4f2;
  color: #0b0b0b;
}

.featured-project .project-link--secondary {
  color: rgba(244, 244, 242, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.featured-project .project-link--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.projects-support-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Home: secondary project row — equal-height cards, fixed image band */
.support-project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 1rem 1.125rem 1.125rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--project-card-depth-shadow);
  transition: all 0.25s ease;
}

.support-project-card:hover,
.support-project-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Home: smaller project previews — solid overlay, clean image (showcase only; not FuelPay) */
.section--projects-showcase .project-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 260px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0f0f;
}

.section--projects-showcase .project-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  z-index: 0;
  transition: transform 0.25s ease;
}

.section--projects-showcase .project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: background 0.25s ease;
  border-radius: 16px;
}

.section--projects-showcase .support-project-card:hover .project-preview::after,
.section--projects-showcase .support-project-card:focus-within .project-preview::after {
  background: rgba(0, 0, 0, 0.25);
}

.section--projects-showcase .support-project-card:hover .project-preview img,
.section--projects-showcase .support-project-card:focus-within .project-preview img {
  transform: scale(1.03);
}

.section--projects-showcase .minor-project-card .project-preview img {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.minor-project-card img {
  filter: grayscale(100%) saturate(0%) brightness(0.7) contrast(1.1);
}

.minor-project-card:hover img,
.minor-project-card:focus-within img {
  filter: grayscale(100%) saturate(0%) brightness(0.85) contrast(1.15);
}

.support-project-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
  margin-top: 1rem;
  gap: 1rem;
}

.support-project-card__top {
  flex: 1 1 auto;
  min-height: 0;
}

.support-project-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.98);
}

.support-project-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(214, 214, 210, 0.88);
}

.support-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-project-card__tag {
  display: inline-block;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 244, 242, 0.9);
}

.support-project-card__actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.support-project-card .project-link--primary {
  background: #f4f4f2;
  color: #0b0b0b;
  border-color: transparent;
}

.support-project-card .project-link--secondary {
  color: rgba(244, 244, 242, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.support-project-card .project-link--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Projects page: dark shell for visual cards (unchanged layout) */
.section--projects .project-card--visual {
  padding: var(--project-shell-padding);
  border-radius: var(--project-shell-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--project-card-depth-shadow);
  transition: all 0.25s ease;
}

.section--projects .project-card--visual:hover,
.section--projects .project-card--visual:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

/* Projects page: same grid rhythm as home secondary row */
.projects-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(29, 27, 25, 0.14);
  background: #ffffff;
}

.project-card--visual {
  padding: 0;
  overflow: hidden;
}

.project-card--visual .project-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--project-thumb-radius);
  background: rgba(20, 20, 22, 0.35);
}

.project-card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--project-thumb-radius);
  transition: transform 0.2s ease;
}

.project-card--visual:hover .project-card__image,
.project-card--visual:focus-within .project-card__image {
  transform: scale(1.02);
}

.project-card__hover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-height: 58%;
  overflow-y: auto;
  padding: var(--project-shell-padding);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.project-card--visual:hover .project-card__hover,
.project-card--visual:focus-within .project-card__hover {
  opacity: 1;
  pointer-events: auto;
}

.project-card__meta {
  align-self: end;
}

.project-card--visual .project-card__title {
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 8px;
}

.project-card--visual .project-card__desc {
  color: rgba(255, 255, 255, 0.85);
  max-width: 38ch;
}

.project-card--visual .project-card__tags {
  gap: 10px;
}

.project-card--visual .project-tag {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.project-card--visual .project-card__actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
  padding-top: 12px;
}

.project-card--visual .project-link {
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card--visual .project-link--primary {
  background: rgba(255, 255, 255, 0.92);
  color: #1d1b19;
}

.project-card--visual .project-link--secondary {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.project-card--visual.tilt-active {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-card__image,
  .featured-image img,
  .section--projects-showcase .project-preview img,
  .section--projects-showcase .project-preview::after,
  .project-card__hover,
  .project-card,
  .featured-project,
  .support-project-card,
  #skills .skills-card,
  #inspires.inspires-section .inspires-item,
  #inspires.inspires-section .inspires-item img,
  #inspires.inspires-section .inspires-item::after,
  #inspires.inspires-section .inspires-caption,
  #contact.contact-section .contact-links a {
    transition: none !important;
  }

  .project-card--visual:hover .project-card__image,
  .project-card--visual:focus-within .project-card__image,
  .featured-project:hover .featured-image img,
  .section--projects-showcase .support-project-card:hover .project-preview img,
  .section--projects-showcase .support-project-card:focus-within .project-preview img,
  #inspires.inspires-section .inspires-item:hover img,
  #inspires.inspires-section .inspires-item:focus-within img {
    transform: none;
  }

  .featured-project:hover,
  .featured-project:focus-within,
  .support-project-card:hover,
  .support-project-card:focus-within,
  #skills .skills-card:hover,
  #skills .skills-card:focus-within,
  .section--projects .project-card--visual:hover,
  .section--projects .project-card--visual:focus-within,
  #inspires.inspires-section .inspires-item:hover,
  #inspires.inspires-section .inspires-item:focus-within {
    transform: none;
  }

  #contact.contact-section .contact-links a:hover {
    transform: none;
  }
}

@media (hover: none) {
  .project-card__hover {
    opacity: 1;
    pointer-events: auto;
  }
}

.project-card__top {
  margin-bottom: 1rem;
}

.project-card__title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-tag {
  display: inline-block;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted-light);
}

.project-card__desc {
  margin: 0;
  flex-grow: 1;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--muted-light);
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-link--primary {
  background: var(--text-dark);
  color: var(--bg-light);
  border-color: transparent;
}

.project-link--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.project-link--secondary {
  background: transparent;
  color: var(--text-dark);
}

.project-link--secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(29, 27, 25, 0.15);
}

.project-link:focus-visible {
  outline: 2px solid rgba(29, 27, 25, 0.35);
  outline-offset: 2px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card-link:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  border-color: rgba(29, 27, 25, 0.12);
}

.card-link:focus-visible {
  outline: 2px solid rgba(29, 27, 25, 0.35);
  outline-offset: 2px;
}

/* Contact: confident closing — split layout, no card */
#contact.contact-section.section-dark {
  padding: 6rem 2rem;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.06), transparent 35%),
    #0b0b0b;
  color: rgba(244, 244, 242, 0.92);
}

#contact.contact-section .contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

#contact.contact-section .contact-copy {
  max-width: 600px;
}

#contact.contact-section .section-label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.74);
}

#contact.contact-section .contact-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5vw, 4.75rem);
  line-height: 1.05;
  max-width: 560px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

#contact.contact-section .contact-copy .contact-subtext,
#contact.contact-section .contact-copy p:not(.section-label) {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1.5rem;
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

#contact.contact-section .contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#contact.contact-section .contact-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.25s ease;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

#contact.contact-section .contact-links a:hover {
  transform: translateX(6px);
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

#contact.contact-section .contact-links a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .featured-project,
  .support-project-card,
  #skills .skills-card,
  #inspires.inspires-section .inspires-item,
  #contact.contact-section .contact-links a,
  .section--projects-showcase .project-preview img,
  .section--projects-showcase .project-preview::after,
  .section--projects .project-card--visual,
  .project-card,
  .project-card__image,
  .featured-image img {
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease,
      border-color 0.3s ease,
      opacity 0.3s ease,
      background 0.3s ease;
  }

  #inspires.inspires-section .inspires-item:hover,
  #inspires.inspires-section .inspires-item:focus-within {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  #contact.contact-section.section-dark {
    padding: 5.5rem 1.5rem;
  }

  #contact.contact-section .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  #contact.contact-section .contact-copy h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}

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

  .info-card {
    padding: 26px;
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-image {
    max-height: 340px;
    padding: 1rem;
  }

  .featured-image img {
    max-height: calc(340px - 2rem);
  }

  .projects-support-grid {
    grid-template-columns: 1fr;
  }

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

  #skills .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 12px;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    padding: 12px 22px;
    font-size: 0.92rem;
  }

  .hero-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  main > section:not(.hero-section) {
    padding-left: 18px;
    padding-right: 18px;
  }

  #contact.contact-section.section-dark {
    padding-left: max(1.25rem, 18px);
    padding-right: max(1.25rem, 18px);
  }

  #about.about-section .about-content {
    padding-left: max(1.25rem, 18px);
    padding-right: max(1.25rem, 18px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .project-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-link {
    width: 100%;
    text-align: center;
  }

  .featured-project__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  #skills .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
