:root {
  --bg: #f4efe6;
  --surface: rgba(255, 249, 240, 0.76);
  --surface-strong: #fffaf3;
  --surface-dark: #172421;
  --text: #1f2320;
  --muted: #5f655f;
  --line: rgba(31, 35, 32, 0.1);
  --accent: #bf5a36;
  --accent-deep: #7f2b1b;
  --forest: #1f5a4b;
  --sand: #f0d7b7;
  --shadow: 0 24px 80px rgba(53, 38, 19, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100% - 2rem));
  --anchor-offset: 5.35rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(191, 90, 54, 0.14), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(31, 90, 75, 0.15), transparent 22%),
    linear-gradient(180deg, #f7f3eb 0%, #f1eadf 52%, #efe6da 100%);
  font: 400 1rem/1.7 "Manrope", "Segoe UI", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(191, 90, 54, 0.18);
}

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

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

button {
  font: inherit;
}

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

.page-glow--one {
  top: -8rem;
  left: -6rem;
  background: rgba(191, 90, 54, 0.22);
}

.page-glow--two {
  right: -8rem;
  top: 35rem;
  background: rgba(31, 90, 75, 0.18);
}

.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 2rem 0 5.5rem;
  scroll-margin-top: var(--anchor-offset);
}

.section--tinted {
  position: relative;
}

.section--tinted::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0;
  background: rgba(255, 251, 244, 0.55);
  border-top: 1px solid rgba(31, 35, 32, 0.06);
  border-bottom: 1px solid rgba(31, 35, 32, 0.06);
  backdrop-filter: blur(18px);
}

.section--dark {
  background:
    radial-gradient(circle at top right, rgba(240, 215, 183, 0.12), transparent 26%),
    linear-gradient(160deg, #172421 0%, #0e1816 100%);
  color: #f9f2e6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 235, 0.72);
  border-bottom: 1px solid rgba(31, 35, 32, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}

.brand {
  font: 700 1rem/1 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-toggle span {
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow--light {
  color: var(--sand);
}

.hero {
  padding-top: 3.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.84fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero__content,
.hero-card,
.info-card,
.project-card,
.timeline-item,
.teaching-panel,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__content {
  padding: 3rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero h1,
.section__intro h2,
.contact-card h2,
.hero-card h2 {
  margin: 0;
  font-family: "Montserrat", "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 4.9rem);
  max-width: none;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.hero__title span {
  display: inline-block;
  padding: 0.12em 0.22em;
  border-radius: 0.18em;
}

.hero__title span:nth-child(1) {
  background: linear-gradient(90deg, rgba(191, 90, 54, 0.12), rgba(191, 90, 54, 0.04));
}

.hero__title span:nth-child(2) {
  color: var(--accent-deep);
}

.hero__title span:nth-child(3) {
  background: linear-gradient(90deg, rgba(31, 90, 75, 0.11), rgba(31, 90, 75, 0.03));
}

.hero__lede,
.section__intro p,
.hero-card p,
.project-card p,
.timeline-item p,
.info-card p,
.contact-card p,
.teaching-panel li {
  color: var(--muted);
}

.hero__lede {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
}

.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.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #d17f4e 100%);
  color: #fffdf8;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px rgba(191, 90, 54, 0.22);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(31, 35, 32, 0.12);
  box-shadow: none;
}

.hero__facts {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero__facts li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero__facts strong {
  display: block;
  font: 700 1.5rem/1 "Montserrat", "Manrope", "Segoe UI", sans-serif;
  margin-bottom: 0.45rem;
}

.hero__facts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  align-self: end;
}

.hero-card__portrait-wrap {
  margin-bottom: 1.4rem;
  padding: 0.5rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(191, 90, 54, 0.14), rgba(31, 90, 75, 0.14)),
    rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-card__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(31, 35, 32, 0.14);
}

.hero-card__label,
.project-card__type,
.info-card__index,
.timeline-item__meta,
.timeline-item__org {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.hero-card__label,
.project-card__type,
.info-card__index,
.timeline-item__org {
  color: var(--accent-deep);
}

.hero-card p {
  margin-bottom: 0;
}

.hero-card__stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.hero-card__row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.hero-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  color: var(--accent-deep);
  background: linear-gradient(135deg, rgba(191, 90, 54, 0.12), rgba(31, 90, 75, 0.08));
  border: 1px solid rgba(31, 35, 32, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-card__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.hero-card__content {
  min-width: 0;
  align-self: center;
}

.hero-card__row-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.hero-card__row-value {
  display: block;
  color: var(--text);
  font: 700 1rem/1.35 "Manrope", "Segoe UI", sans-serif;
}

.hero-card__markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-card__market {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(23, 36, 33, 0.16);
  background: rgba(255, 251, 245, 0.98);
  color: var(--text);
  font: 700 0.88rem/1 "Manrope", "Segoe UI", sans-serif;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-card__row-note {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section__intro {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-note {
  margin-top: 1.1rem;
}

.section__intro h2,
.contact-card h2,
.hero-card h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-shell {
  padding: 0.4rem;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    linear-gradient(145deg, rgba(191, 90, 54, 0.2), rgba(31, 90, 75, 0.18)),
    rgba(255, 252, 246, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

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

.work-card {
  min-height: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 244, 0.9);
  border: 1px solid rgba(31, 35, 32, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.work-card__index {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.work-card h3 {
  margin: 0.4rem 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.work-card__cta {
  margin-top: 1.25rem;
  align-self: flex-start;
  min-height: 2.9rem;
  padding: 0.82rem 1.2rem;
  font-size: 0.88rem;
}

.info-card,
.project-card,
.teaching-panel,
.book-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
}

.info-card h3,
.project-card h3,
.timeline-item h3,
.teaching-panel h3 {
  margin: 0.3rem 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.book-card {
  max-width: 56rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.book-card__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
}

.book-card__cover {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(31, 35, 32, 0.12);
  box-shadow: 0 16px 34px rgba(31, 35, 32, 0.18);
}

.book-card__content {
  min-width: 0;
}

.book-card__label {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.book-card h3 {
  margin: 0.45rem 0 0.75rem;
  font-size: 1.6rem;
  line-height: 1.15;
}

.book-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

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

.info-card .text-link {
  margin-top: 0.75rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-shell.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 18, 0.58);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 28px;
  padding: 1.5rem;
  background:
    linear-gradient(150deg, rgba(255, 248, 236, 0.95), rgba(255, 255, 255, 0.92)),
    #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 34px 70px rgba(16, 20, 18, 0.32);
}

.modal-close {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 32, 0.14);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.modal-panel h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.modal-intro {
  margin: 0.8rem 0 1rem;
  color: var(--muted);
}

.form-hidden {
  display: none;
}

.intake-form {
  display: grid;
  gap: 0.95rem;
}

.form-note {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.intake-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.intake-form input,
.intake-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 35, 32, 0.16);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: 500 0.95rem/1.4 "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
}

.intake-form textarea {
  resize: vertical;
}

.intake-form .button[disabled] {
  opacity: 0.75;
  cursor: wait;
}

.media-card__visual {
  position: relative;
  margin: -0.2rem -0.2rem 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 35, 32, 0.1);
  background: #ebe2d6;
}

.media-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.media-card__logo-wrap {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 35, 32, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(31, 35, 32, 0.18);
}

.media-card__logo {
  height: 18px;
  width: auto;
  display: block;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11rem;
  width: 1px;
  background: rgba(31, 35, 32, 0.12);
}

.timeline-item {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: calc(11rem - 0.42rem);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(191, 90, 54, 0.12);
}

.timeline-item__meta {
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  padding-right: 1rem;
}

.timeline-item__content {
  padding-left: 1.5rem;
}

.timeline-item__content p {
  margin: 0;
}

.teaching-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.teaching-panels {
  display: grid;
  gap: 1rem;
}

.teaching-panel {
  background: rgba(255, 248, 236, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.section--dark .section__intro p,
.section--dark .teaching-panel li {
  color: rgba(249, 242, 230, 0.78);
}

.section--dark .teaching-panel h3,
.section--dark .section__intro h2 {
  color: #fff7e9;
}

.teaching-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.teaching-panel li + li {
  margin-top: 0.55rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.contact-links {
  display: grid;
  gap: 0.8rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-weight: 700;
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

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

@media (max-width: 980px) {
  .hero__grid,
  .teaching-grid,
  .project-list,
  .card-grid--three,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

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

  .book-card__layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .book-card__cover {
    width: min(260px, 100%);
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-item__content {
    padding-left: 0;
  }
}

@media (max-width: 1020px) {
  .site-nav {
    position: fixed;
    inset: 5rem 1rem auto;
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border-radius: 24px;
    background: rgba(255, 249, 240, 0.96);
    border: 1px solid rgba(31, 35, 32, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {

  .hero {
    padding-top: 2rem;
  }

  .hero__title {
    gap: 0.2rem;
  }

  .hero__title span {
    padding: 0.08em 0.14em;
  }

  .hero__content,
  .hero-card,
  .info-card,
  .project-card,
  .timeline-item,
  .teaching-panel,
  .contact-card {
    padding: 1.35rem;
  }

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

  .section {
    padding-bottom: 4rem;
  }
}

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

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

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