.home-page {
  overflow-x: hidden;
}

.home-main {
  padding-top: 20px;
}

.home-section {
  scroll-margin-top: 104px;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(38px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 5vw, 68px);
  border: 1px solid rgba(217, 173, 98, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(61, 108, 164, 0.16), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(217, 173, 98, 0.085), transparent 30%),
    linear-gradient(135deg, rgba(5, 14, 26, 0.97), rgba(8, 21, 37, 0.93));
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.home-hero::before {
  /* Removed the large decorative orbital/crescent shape. The hero now relies
     on the subtle gradient and star field so the headline stays clean. */
  content: none;
  display: none;
}

.home-hero::after {
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 32%, rgba(241, 211, 154, 0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 34% 72%, rgba(156, 168, 255, 0.75) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 18%, rgba(241, 211, 154, 0.65) 0 1px, transparent 1.4px),
    radial-gradient(circle at 63% 78%, rgba(156, 168, 255, 0.55) 0 1px, transparent 1.4px);
  background-size: 190px 190px, 230px 230px, 270px 270px, 310px 310px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
  align-self: center;
}

.hero-kicker,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--site-gold);
  text-transform: uppercase;
  letter-spacing: 0.27em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-kicker::before,
.section-kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--site-gold), transparent);
}

.hero-kicker::before {
  display: none;
}

.hero-title {
  margin: 18px 0 16px;
  max-width: 8.6ch;
  color: #f2efe9;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(4.5rem, 6.8vw, 7.1rem);
  line-height: 0.89;
  letter-spacing: -0.058em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-title span {
  display: block;
  color: var(--site-gold);
}

.hero-subtitle {
  margin: 0;
  max-width: 640px;
  color: #aeb7ff;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.5;
  font-weight: 560;
}

.hero-rule {
  width: 68px;
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(90deg, var(--site-gold), rgba(217, 173, 98, 0));
}

.hero-text {
  max-width: 600px;
  margin: 0;
  color: #c5ceda;
  font-size: 0.98rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-portrait {
  position: relative;
  min-width: 0;
  margin: 0;
  justify-self: end;
  width: min(100%, 500px);
}

.hero-portrait__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 8px;
  border: 1px solid rgba(217, 173, 98, 0.47);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(217, 173, 98, 0.14), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 34px 74px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset;
}

.hero-portrait__frame::before {
  content: "";
  position: absolute;
  inset: 14% -14% 10% 36%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(58px);
  background: rgba(50, 94, 151, 0.24);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 46%;
  border-radius: 20px;
}

.hero-portrait__caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(4, 11, 20, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #dfe5ed;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   DISCIPLINES
   -------------------------------------------------------------------------- */
.domain-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(217, 173, 98, 0.21);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 20, 35, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.domain-item {
  position: relative;
  min-height: 138px;
  padding: 20px 20px 18px;
  text-align: center;
}

.domain-item + .domain-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.domain-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 173, 98, 0.48);
  border-radius: 50%;
  color: var(--site-gold);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  background: rgba(217, 173, 98, 0.025);
}

.domain-item h2 {
  margin: 0 0 6px;
  color: var(--site-gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.domain-item p {
  margin: 0 auto;
  max-width: 220px;
  color: #9ba8ba;
  font-size: 0.84rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SECTIONS / CARDS
   -------------------------------------------------------------------------- */
.content-section {
  padding-top: 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title {
  margin: 7px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.55rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: #eeeae3;
}

.section-link {
  color: #aab3ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.section-link:hover {
  color: #d8ddff;
}

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

.project-card,
.research-card,
.approach-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(14, 28, 47, 0.92), rgba(7, 17, 31, 0.96));
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.research-card:hover,
.approach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 173, 98, 0.32);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.26);
}

.project-card__visual {
  position: relative;
  height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(111, 99, 220, 0.20), transparent 38%),
    linear-gradient(180deg, rgba(12, 24, 41, 0.80), rgba(7, 16, 29, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.project-card__visual::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 173, 98, 0.18), transparent);
}

.project-card__visual img {
  width: min(76%, 245px);
  max-height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 15px 26px rgba(0, 0, 0, 0.38));
  transform: scale(1.08);
}

.project-card:nth-child(2) .project-card__visual img,
.project-card:nth-child(3) .project-card__visual img {
  width: min(70%, 220px);
  transform: scale(1.14);
}

.project-card__body {
  padding: 21px 21px 22px;
}

.project-card h3,
.research-card h3,
.approach-card h3 {
  margin: 0 0 8px;
  color: #f1ede7;
  font-family: Georgia, serif;
  font-size: 1.14rem;
  font-weight: 600;
}

.project-card p,
.research-card p,
.approach-card p {
  margin: 0;
  color: #aab4c3;
  line-height: 1.62;
  font-size: 0.91rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 173, 98, 0.20);
  color: #d5b77d;
  background: rgba(217, 173, 98, 0.035);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  font-weight: 750;
}

.project-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
}

.project-card__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  border-radius: 22px;
}

.research-card {
  min-height: 205px;
  padding: 22px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.research-card__icon {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.research-card__icon img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
  transform: scale(1.08);
}

.research-card a {
  display: inline-flex;
  margin-top: 12px;
  color: #aab3ff;
  text-decoration: none;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   ABOUT / APPROACH / WRITING
   -------------------------------------------------------------------------- */
.about-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(217, 173, 98, 0.27);
  border-radius: 25px;
  background:
    linear-gradient(90deg, rgba(18, 32, 50, 0.96), rgba(23, 26, 29, 0.88)),
    radial-gradient(circle at 90% 50%, rgba(217, 173, 98, 0.08), transparent 35%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
}

.about-strip__photo {
  height: 190px;
  overflow: hidden;
  border-radius: 18px;
}

.about-strip__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 28%;
}

.about-strip__copy .section-kicker {
  font-size: 0.67rem;
}

.about-strip__copy h2 {
  margin: 8px 0 8px;
  font-family: Georgia, serif;
  color: #efeae2;
  font-size: clamp(1.5rem, 2.4vw, 2.08rem);
  font-weight: 500;
}

.about-strip__copy p {
  margin: 0;
  color: #adb7c5;
  line-height: 1.68;
}

.about-facts {
  display: grid;
  gap: 13px;
}

.about-fact {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #c5cdd8;
  font-size: 0.87rem;
}

.about-fact span:first-child {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(217, 173, 98, 0.33);
  color: var(--site-gold);
}

.approach-card {
  padding: 24px;
  min-height: 188px;
}

.approach-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid rgba(217, 173, 98, 0.45);
  color: var(--site-gold);
  font-size: 1.2rem;
}

.writing-band {
  margin-top: 64px;
  padding: 32px 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  border-radius: 25px;
  border: 1px solid rgba(156, 168, 255, 0.18);
  background:
    radial-gradient(circle at 10% 50%, rgba(156, 168, 255, 0.10), transparent 30%),
    rgba(8, 20, 35, 0.80);
}

.writing-band h2 {
  margin: 7px 0 9px;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
}

.writing-band p {
  margin: 0;
  color: #aeb8c7;
  max-width: 760px;
  line-height: 1.7;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 34px;
    padding: 46px;
  }

  .hero-title {
    font-size: clamp(4rem, 7.3vw, 6rem);
  }

  .hero-portrait {
    max-width: 440px;
  }

  .about-strip {
    grid-template-columns: 220px 1fr;
  }

  .about-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 8px 8px;
  }
}

@media (max-width: 860px) {
  .home-main {
    padding-top: 16px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-title {
    max-width: 10ch;
  }

  .hero-portrait {
    justify-self: center;
    width: min(100%, 650px);
    max-width: none;
    margin-inline: auto;
  }

  .hero-portrait__frame {
    aspect-ratio: 5 / 3.4;
  }

  .hero-portrait img {
    object-position: 58% 36%;
  }

  .domain-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .domain-item:nth-child(3)::before {
    display: none;
  }

  .domain-item:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .project-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) 1fr;
  }

  .project-card__visual {
    height: 100%;
    min-height: 230px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
  }

  .project-card__visual img {
    width: min(72%, 230px);
  }

  .research-card {
    min-height: 0;
  }

  .about-strip {
    grid-template-columns: 190px 1fr;
  }

  .writing-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-main {
    padding-top: 10px;
  }

  .home-hero {
    padding: 28px 20px 20px;
    border-radius: 24px;
    gap: 26px;
  }

  .hero-kicker {
    letter-spacing: 0.2em;
    font-size: 0.67rem;
  }

  .hero-title {
    font-size: clamp(3.35rem, 18vw, 4.85rem);
    margin-top: 14px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.68;
  }

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

  .hero-portrait {
    width: min(100%, 340px);
    justify-self: center;
    margin-inline: auto;
  }

  .hero-portrait__frame {
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    padding: 7px;
  }

  .hero-portrait img {
    border-radius: 14px;
    object-position: 60% 47%;
  }

  .hero-portrait__caption {
    left: 18px;
    bottom: 17px;
  }

  .domain-strip {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .domain-item {
    min-height: 0;
    padding: 18px 20px;
    text-align: left;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
  }

  .domain-item + .domain-item::before {
    top: 0;
    bottom: auto;
    left: 20px;
    right: 20px;
    width: auto;
    height: 1px;
  }

  .domain-item:nth-child(3)::before {
    display: block;
  }

  .domain-item:nth-child(n+3) {
    border-top: 0;
  }

  .domain-icon {
    margin: 0;
    grid-row: 1 / 3;
  }

  .domain-item h2 {
    align-self: end;
  }

  .domain-item p {
    margin: 0;
    max-width: none;
  }

  .content-section {
    padding-top: 52px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title {
    font-size: 2.45rem;
  }

  .project-card {
    display: block;
  }

  .project-card__visual {
    height: 190px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .research-card {
    grid-template-columns: 72px 1fr;
    padding: 18px;
  }

  .research-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .research-card__icon img {
    width: 60px;
    height: 60px;
  }

  .about-strip {
    margin-top: 52px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 14px;
  }

  .about-strip__photo {
    height: 245px;
  }

  .about-strip__photo img {
    object-position: 60% 30%;
  }

  .about-facts {
    grid-column: auto;
    grid-template-columns: 1fr;
    padding: 0 4px 8px;
  }

  .writing-band {
    margin-top: 52px;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
