:root {
  --bg: #f7f3ee;
  --bg-soft: #fdfbf8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(66, 49, 41, 0.12);
  --line-strong: rgba(66, 49, 41, 0.2);
  --text: #1d1714;
  --muted: #645953;
  --accent: #a54e2d;
  --accent-soft: #d7b28e;
  --shadow: 0 22px 60px rgba(39, 25, 18, 0.08);
  --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(215, 178, 142, 0.16), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(180deg, #fbf8f4 0%, #f7f3ee 100%);
  font-family: "Space Grotesk", sans-serif;
}

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}

.page-glow-left {
  top: -12rem;
  left: -10rem;
  background: rgba(215, 178, 142, 0.55);
}

.page-glow-right {
  right: -10rem;
  top: 18rem;
  background: rgba(252, 244, 235, 0.95);
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  padding: 2rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(66, 49, 41, 0.08);
}

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

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
  align-items: center;
}

.site-nav a {
  padding-bottom: 0.28rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

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

.hero,
.page-hero {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
  padding: 6.5rem 0 7.5rem;
  min-height: calc(100vh - 7rem);
}

.page-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.7fr);
  padding: 4.75rem 0 6rem;
}

.eyebrow {
  margin-bottom: 1.15rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.hero-panel h2,
.mini-card h3,
.timeline-item h3,
.project-card h3,
.contact-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.98;
}

.hero h1,
.page-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 6.8vw, 5.8rem);
  margin-bottom: 1.6rem;
  letter-spacing: -0.02em;
}

.lede,
.content-card p,
.quote-text,
.mini-card p,
.timeline-item p,
.hero-panel p,
.snapshot-list li,
.project-card p,
.contact-card p,
.bullet-list li,
.feature-banner-copy p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.hero-copy {
  max-width: 44rem;
}

.hero-copy .lede,
.page-hero .lede {
  max-width: 38rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-size: 0.95rem;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.project-card:hover,
.project-card:focus-within,
.mini-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.4);
}

.hero-panel,
.content-card,
.mini-card,
.project-card,
.contact-card,
.feature-banner,
.about-portrait-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel,
.content-card,
.mini-card,
.contact-card {
  padding: 1.8rem;
  border-radius: 1.6rem;
}

.split-paragraphs p + p {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.project-card,
.feature-banner,
.about-portrait-card {
  border-radius: 1.8rem;
  overflow: hidden;
}

.hero-panel {
  background: var(--surface-strong);
}

.about-portrait-card {
  background: var(--surface-strong);
}

.about-portrait-frame {
  height: 38rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portrait-caption {
  padding: 1.6rem 1.6rem 1.8rem;
  border-top: 1px solid rgba(66, 49, 41, 0.08);
}

.quote-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 246, 240, 0.92));
}

.panel-kicker,
.card-tag,
.timeline-year,
.project-type {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.snapshot-list,
.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.snapshot-list li + li,
.bullet-list li + li {
  margin-top: 0.8rem;
}

.section {
  padding: 0 0 7rem;
}

.two-column,
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.section-copy {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 54rem;
}

.section-heading {
  max-width: 40rem;
  padding-top: 0.35rem;
}

.section-heading h2,
.hero-panel h2 {
  font-size: clamp(2.9rem, 5vw, 4.9rem);
  letter-spacing: -0.02em;
}

.quote-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 4.8rem;
  line-height: 0.8;
  color: var(--accent-soft);
}

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

.mini-card h3,
.project-card h3,
.contact-card h3 {
  font-size: 2rem;
  margin: 0.8rem 0 0.9rem;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  background: var(--surface-strong);
}

.feature-banner img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.feature-banner-copy {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-banner-copy h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  line-height: 1;
  margin: 0.7rem 0 1rem;
  letter-spacing: -0.02em;
}

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

.project-card {
  padding: 0;
  background: var(--surface-strong);
  display: grid;
  grid-template-rows: 20rem minmax(10rem, 1fr);
  align-self: start;
  min-height: 30rem;
}

.project-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  object-position: var(--image-position, center center);
}

.just-friends-card {
  grid-template-rows: 32rem minmax(10rem, 1fr);
  min-height: 42rem;
}

.just-friends-card img {
  height: 32rem;
}

.project-copy {
  padding: 1.15rem 1.15rem 1.5rem;
  border-top: 1px solid rgba(66, 49, 41, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-copy p {
  max-width: 32rem;
}

.project-copy h3 + p {
  margin-top: 0.4rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1rem;
}

.text-link {
  color: var(--accent);
  font-size: 0.94rem;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid rgba(66, 49, 41, 0.08);
  padding-top: 1.4rem;
  padding-bottom: 2.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-hero-simple {
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}

.contact-image-wrap {
  max-width: 58rem;
}

.contact-email-image {
  width: 100%;
  height: auto;
  border-radius: 1.8rem;
  box-shadow: var(--shadow);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.portfolio-note {
  padding: 2rem 0 0;
}

.portfolio-note p + p {
  margin-top: 1rem;
}

.portfolio-columns {
  display: block;
}

.portfolio-column-header {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}

.portfolio-column-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 0.45rem;
}

.portfolio-column-header p {
  color: var(--muted);
  line-height: 1.8;
}

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

.media-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: 20rem minmax(10rem, 1fr);
  min-height: 30rem;
}

.media-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  object-position: var(--image-position, center center);
}

.media-card-copy {
  padding: 1.1rem 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(66, 49, 41, 0.08);
  display: flex;
  flex-direction: column;
}

.media-card-copy h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  margin: 0.4rem 0 0.7rem;
}

.media-card-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.media-card-copy .project-links {
  margin-top: auto;
  padding-top: 1.4rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .button,
  .project-card,
  .mini-card,
  .contact-card,
  .site-nav a {
    transition: none;
  }
}

@media (max-width: 960px) {
  .hero,
  .page-hero,
  .two-column,
  .page-grid,
  .stats-grid,
  .contact-grid,
  .timeline-item,
  .feature-banner,
  .portfolio-intro,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-banner img {
    min-height: 18rem;
  }

  .about-portrait-frame {
    height: 28rem;
  }

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

@media (max-width: 720px) {
  .projects-grid,
  .media-strip {
    grid-template-columns: 1fr;
  }

  .project-card,
  .media-card {
    grid-template-rows: 16rem auto;
    min-height: 0;
  }

  .project-card img,
  .media-card img {
    height: 16rem;
  }

  .just-friends-card {
    grid-template-rows: 22rem auto;
  }

  .just-friends-card img {
    height: 22rem;
  }
}

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

  .site-header {
    padding-top: 1.4rem;
  }

  .hero,
  .page-hero {
    gap: 2rem;
    padding-top: 2.2rem;
    padding-bottom: 4.2rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3.3rem, 15vw, 5.3rem);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-panel,
  .content-card,
  .mini-card,
  .contact-card,
  .project-copy,
  .feature-banner-copy {
    padding: 1.4rem;
  }

  .projects-grid {
    gap: 2rem;
  }

  .media-strip {
    gap: 2rem;
  }

  .project-card,
  .media-card {
    grid-template-rows: 12rem auto;
  }

  .project-card img,
  .media-card img {
    height: 12rem;
  }

  .just-friends-card {
    grid-template-rows: 18rem auto;
  }

  .just-friends-card img {
    height: 18rem;
  }

  .about-portrait-frame {
    height: 22rem;
  }
}
