:root {
  --bg: #f0eeea;
  --bg-strong: #f0ddd6;
  --panel: rgba(151, 179, 174, 0.12);
  --panel-strong: rgba(151, 179, 174, 0.2);
  --text: #243230;
  --muted: #667a76;
  --accent: #97b3ae;
  --accent-soft: #f2c3b9;
  --accent-strong: #c7bdae;
  --line: rgba(36, 50, 48, 0.12);
  --shadow: 0 24px 60px rgba(120, 134, 130, 0.14);
  --radius: 28px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(151, 179, 174, 0.24), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(242, 195, 185, 0.24), transparent 24%),
    linear-gradient(180deg, #f0eeea 0%, #f0ddd6 42%, #f0eeea 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 1px, transparent 1px, transparent 100%),
    linear-gradient(rgba(0, 0, 0, 0.02) 0, rgba(0, 0, 0, 0.02) 1px, transparent 1px, transparent 100%);
  background-size: 96px 96px;
  content: "";
  opacity: 0.36;
  pointer-events: none;
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

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

.wordmark {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.4rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.site-nav a {
  position: relative;
  color: var(--muted);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.18rem;
  left: 0;
  height: 1px;
  background: var(--accent-strong);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero,
.section,
.site-header {
  animation: rise-in 700ms ease both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 2rem;
}

.hero-copy {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(151, 179, 174, 0.28);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(240, 238, 234, 0.56)),
    linear-gradient(180deg, rgba(151, 179, 174, 0.12), transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy::before {
  position: absolute;
  inset: auto auto -2.5rem -2rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 195, 185, 0.44), transparent 72%);
  content: "";
  pointer-events: none;
}

.eyebrow,
.section-label,
.card-label {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.92;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.4rem, 12vw, 8rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: 2rem;
}

.hero-tagline,
.hero-intro,
.lede,
.detail-card p,
.resume-card p,
.contact-line,
.contact-notes li,
.contact-notes p,
.credits-row span,
.gallery-placeholder span {
  line-height: 1.7;
}

.hero-tagline {
  max-width: 32rem;
  margin: 1.3rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text);
}

.hero-intro,
.about-layout p,
.detail-card p,
.resume-card p,
.contact-notes,
.contact-line {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #7d9a94);
  color: #f9f7f3;
  box-shadow: 0 18px 36px rgba(125, 154, 148, 0.22);
}

.button-secondary {
  border-color: rgba(36, 50, 48, 0.14);
  background: rgba(255, 255, 255, 0.52);
}

.button-disabled {
  border-color: rgba(38, 20, 15, 0.1);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  cursor: not-allowed;
}

.hero-card,
.detail-card,
.resume-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.2rem;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0.9rem;
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(160deg, rgba(151, 179, 174, 0.94), rgba(199, 189, 174, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
}

.portrait-placeholder,
.gallery-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 12px);
  border: 1px solid rgba(255, 248, 241, 0.16);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(240, 221, 214, 0.5), rgba(151, 179, 174, 0.18)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  text-align: center;
}

.portrait-placeholder {
  padding: 1.4rem;
}

.portrait-label,
.gallery-placeholder span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: #f9f7f3;
}

.portrait-note {
  display: block;
  max-width: 11rem;
  margin-top: 0.75rem;
  color: rgba(249, 247, 243, 0.82);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-card-meta {
  padding: 1.2rem 0.2rem 0;
}

.hero-card-meta p,
.card-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.hero-card-meta strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.2rem;
}

.section {
  padding: 3.2rem 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem 2rem;
  align-items: end;
  padding-bottom: 1.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.lede {
  margin: 0;
  color: var(--text);
  font-size: 1.16rem;
}

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

.training-grid,
.credits-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(151, 179, 174, 0.16), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.84);
}

.detail-card,
.resume-card {
  padding: 1.35rem;
}

.credits-shell {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: start;
}

.credits-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.credits-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.72fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.credits-row + .credits-row {
  border-top: 1px solid var(--line);
}

.credits-head {
  background: rgba(151, 179, 174, 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  min-height: 18rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.gallery-card.tall {
  grid-row: span 2;
  min-height: 100%;
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-placeholder {
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 25%),
    linear-gradient(160deg, rgba(242, 195, 185, 0.94), rgba(151, 179, 174, 0.92));
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 2rem;
  padding: 1.6rem;
}

.contact-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-notes ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.contact-notes li + li {
  margin-top: 0.4rem;
}

.button,
.site-nav a,
.contact-link,
.gallery-card,
.detail-card,
.hero-card,
.resume-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.gallery-card:hover,
.detail-card:hover,
.hero-card:hover,
.resume-card:hover {
  transform: translateY(-2px);
}

.gallery-card:hover,
.detail-card:hover,
.hero-card:hover,
.resume-card:hover {
  border-color: rgba(151, 179, 174, 0.34);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-strong);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .section-heading,
  .about-layout,
  .training-grid,
  .credits-shell,
  .contact-panel,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 0.5rem;
  }

  .gallery-card.tall,
  .gallery-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

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

  h1 {
    max-width: none;
  }

  h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .hero-copy,
  .hero-card,
  .detail-card,
  .resume-card,
  .gallery-card,
  .contact-panel {
    border-radius: 22px;
  }

  .site-nav {
    gap: 0.55rem 0.85rem;
    font-size: 0.76rem;
  }

  .credits-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .button,
  .button-disabled {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
