:root {
  --page: #f7f1ea;
  --hero: #e6ddd2;
  --panel: #fffaf4;
  --ink: #2f261f;
  --muted: #6b5f54;
  --line: rgba(47, 38, 31, 0.12);
  --accent: #9c7b61;
  --accent-soft: #d8c4af;
  --shadow: 0 24px 50px rgba(88, 69, 51, 0.1);
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}

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

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 234, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  color: #fffaf4;
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small,
.header-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav,
.header-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a,
.header-links a,
.footer-links a,
.project-card a,
.pill-link {
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.site-nav a,
.header-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.header-links a:hover,
.footer-links a:hover,
.project-card a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  padding: 4.6rem 0 7rem;
  background: linear-gradient(180deg, var(--hero) 0%, #eee4d9 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -4.5rem;
  height: 8rem;
  background: var(--page);
  border-top-left-radius: 100% 100%;
  border-top-right-radius: 100% 100%;
  transform: rotate(-3deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
  gap: 3.35rem;
  align-items: center;
}

.eyebrow,
.card-label,
.project-year,
.detail-card span,
.band-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: rgba(47, 38, 31, 0.55);
}

.hero-copy {
  position: relative;
  padding-top: 2.3rem;
  max-width: 42.5rem;
  padding-right: 0.75rem;
  overflow: visible;
}

.hero-word {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(4.7rem, 12.1vw, 9.35rem);
  line-height: 0.8;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.hero-copy h1,
.section-intro h2,
.section-head h2,
.notes-panel h2,
.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  margin: 4rem 0 0;
  font-size: clamp(3.6rem, 8vw, 7rem);
  position: relative;
  z-index: 1;
}

.section-intro h2,
.section-head h2,
.notes-panel h2,
.contact-card h2 {
  margin: 0;
}

.hero-role {
  margin: 1rem 0 0;
  max-width: 28ch;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-caption {
  margin: 0.9rem 0 0;
  max-width: 32ch;
  color: rgba(47, 38, 31, 0.82);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-style: italic;
  line-height: 1.15;
}

.hero-text,
.hero-aside,
.section-text,
.feature-card p,
.project-card p,
.notes-list li {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.hero-text {
  max-width: 58ch;
  margin-top: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.button.primary {
  color: #fffaf4;
  background: var(--ink);
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-facts span {
  position: relative;
  padding-left: 0.95rem;
}

.hero-facts span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-media {
  display: grid;
  gap: 0;
  justify-items: end;
  align-items: center;
  padding-left: 0.8rem;
}

.photo-stage {
  position: relative;
  width: min(34rem, 100%);
  padding: 1.1rem 0.9rem 0 0;
}

.photo-stage::before {
  content: "";
  position: absolute;
  inset: 1.2rem 0 0 1.8rem;
  border-radius: 2.25rem;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.8), rgba(216, 196, 175, 0.58));
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.photo-stage::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  right: -0.6rem;
  top: -0.2rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 250, 244, 0.82), rgba(216, 196, 175, 0.26));
  filter: blur(2px);
}

.photo-frame,
.detail-card,
.project-card,
.notes-panel,
.quote-panel,
.contact-card,
.band-inner,
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-frame {
  position: relative;
  min-height: 41rem;
  border-radius: 2.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, #cec2b6 0%, #b8aca1 100%);
  z-index: 1;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(180deg, transparent 60%, rgba(47, 38, 31, 0.16));
  z-index: 1;
}

.photo-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.08) brightness(1.03);
}

.photo-frame.has-photo img {
  display: block;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.8rem;
  padding: 2rem;
  text-align: center;
  color: rgba(47, 38, 31, 0.72);
}

.photo-fallback strong {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
}

.photo-fallback span {
  max-width: 18ch;
  font-size: 0.95rem;
  line-height: 1.65;
}

.photo-frame.has-photo .photo-fallback {
  display: none;
}

.feature-card {
  position: absolute;
  left: -1.4rem;
  bottom: 1.2rem;
  width: min(17rem, 72%);
  padding: 1.1rem;
  border-radius: 1.25rem;
}

.feature-card h3,
.project-card h3 {
  margin: 0.45rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 0.95;
}

.link-band {
  position: relative;
  z-index: 2;
  margin-top: -1.2rem;
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.45rem;
}

.link-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(156, 123, 97, 0.08);
}

.pill-link:hover {
  color: var(--ink);
  background: rgba(156, 123, 97, 0.14);
}

.section {
  padding: 4.75rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.section-intro h2,
.section-head h2,
.notes-panel h2,
.contact-card h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 11ch;
}

.section-content {
  display: grid;
  gap: 1.6rem;
}

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

.detail-card {
  padding: 1.15rem;
  border-radius: 1.15rem;
}

.detail-card strong {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.6;
}

.section-head {
  max-width: 44rem;
  display: grid;
  gap: 0.9rem;
}

.section-copy {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.85;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

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

.achievement-card {
  display: grid;
  gap: 0.9rem;
  min-height: 16rem;
  padding: 1.35rem;
  border-radius: 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.achievement-card span {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: rgba(47, 38, 31, 0.55);
}

.achievement-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 0.98;
}

.achievement-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: var(--shadow);
}

.cv-row-copy {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.cv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(156, 123, 97, 0.12);
  color: var(--ink);
}

.cv-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.cv-row-title,
.cv-row-text {
  margin: 0;
}

.cv-row-title {
  font-weight: 700;
}

.cv-row-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf4;
  font-weight: 600;
  transition: transform 180ms ease, opacity 180ms ease;
}

.cv-button:hover {
  transform: translateY(-2px);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  min-height: 20rem;
  padding: 1.5rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(156, 123, 97, 0.1), rgba(255, 250, 244, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(216, 196, 175, 0.38), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 40%);
  pointer-events: none;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card-featured {
  grid-column: span 1;
}

.project-card-standard {
  grid-column: span 1;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.project-count {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.9;
  color: rgba(47, 38, 31, 0.22);
}

.project-card-body {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  width: 100%;
}

.project-mission {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  line-height: 1.18;
  color: var(--ink);
  max-width: none;
}

.project-description {
  margin: 0;
  max-width: none;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card p {
  margin: 0;
  font-size: 0.96rem;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.45rem);
  line-height: 0.96;
}

.project-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-weight: 600;
}

.project-card a::after {
  content: "->";
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1rem;
}

.notes-panel,
.quote-panel,
.contact-card {
  padding: 1.7rem;
  border-radius: 1.5rem;
}

.notes-list ul {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.notes-list li {
  position: relative;
  padding-left: 1.3rem;
}

.notes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent);
}

.quote-panel {
  display: grid;
  align-content: center;
}

.quote-panel blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-inner p {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
}

.footer-sep {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(47, 38, 31, 0.24);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .header-inner,
  .hero-inner,
  .section-grid,
  .notes-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0.8rem 0;
  }

  .hero-media {
    justify-items: center;
  }

  .photo-stage {
    width: min(32rem, 100%);
    margin: 0 auto;
  }

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

@media (max-width: 760px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
    overflow-x: auto;
  }

  .header-links {
    display: none;
  }

  .hero {
    padding: 3.4rem 0 5.8rem;
  }

  .hero-word {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .hero-inner {
    gap: 1.8rem;
  }

  .hero-copy {
    padding-top: 1.6rem;
  }

  .hero-copy h1 {
    margin-top: 2.8rem;
  }

  .band-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .link-pills {
    justify-content: flex-start;
  }

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

  .cv-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-button {
    width: 100%;
  }

  .feature-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.2rem, 100%);
  }

  .section {
    padding: 3.2rem 0;
  }

  .button {
    width: 100%;
  }

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

  .photo-frame {
    min-height: 33rem;
    border-radius: 1.6rem;
  }

  .photo-stage {
    padding: 0.8rem 0.5rem 0 0;
  }

  .photo-stage::before {
    inset: 0.8rem 0 0 1rem;
    border-radius: 1.6rem;
  }

  .photo-stage::after {
    width: 5rem;
    height: 5rem;
    right: -0.2rem;
    top: 0.2rem;
  }

  .hero-role {
    font-size: 1rem;
  }

  .hero-caption {
    font-size: 1.2rem;
  }

  .hero-facts {
    gap: 0.9rem;
    margin-top: 1.3rem;
  }

  .project-card,
  .achievement-card,
  .notes-panel,
  .quote-panel,
  .contact-card,
  .cv-row {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
