/* =========================
   CUSTOM FONTS (non-signature)
   ========================= */

@font-face {
  font-family: "MonterchiSerif";
  src: url("../assets/fonts/Monterchi-Serif-Book-trial.woff2") format("woff2"),
       url("../assets/fonts/Monterchi-Serif-Book-trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CMUSerif";
  src: url("../assets/fonts/cmunti.woff2") format("woff2"),
       url("../assets/fonts/cmunti.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FlatorySerifSemiCondensed";
  src: url("../assets/fonts/flatory-slab-condensed.woff") format("woff"),
       url("../assets/fonts/flatory-slab-condensed.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================
   GLOBAL RESET
   ========================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "CMUSerif", Georgia, "Times New Roman", serif;
  color: #ffffff;
  background-color: #3a0091;
}

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

/* =========================
   HEADER
   ========================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 2rem 4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.logo {
  pointer-events: auto;
  font-family: "MonterchiSerif", serif;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}

.main-nav {
  pointer-events: auto;
  display: none; /* kept for future mobile */
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;

  background:
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.04), transparent 60%),
    url("../assets/images/hero-bg.jpg") center/cover no-repeat;
}

/* main layout container */
.hero-content {
  position: relative;
  width: 100%;
  max-width: 2560px; /* matches your design width */
  margin: 0 auto;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  /* proportional to 125px top / 144px bottom on 1440px height */
  padding: 8.7vh 6vw 10vh 6vw;
}

/* =========================
   LEFT SIDE
   ========================= */

.hero-left {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1;
}

/* SIGNATURE IMAGE – 1273px wide on 2560 screen, scales with width */
.signature-img {
  width: 49.7vw;          /* 1273 / 2560 ≈ 0.497 */
  max-width: 1273px;      /* don’t exceed original at very large widths */
  height: auto;
  display: block;
  margin: 0 0 0.5rem 0;
  pointer-events: none;
  user-select: none;
}

/* serif name */
.hero-name {
  margin: 0.25rem 0 0.4rem;
  font-family: "MonterchiSerif";
  font-size: clamp(2.6rem, 3.4vw, 3.3rem);
}

/* roles */
.hero-role {
  margin: 0.15rem 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* hero nav under roles */
.hero-nav {
  margin-top: 1.7rem;
  display: flex;
  gap: 3.5rem;
}

.hero-nav a {
  font-family: "FlatorySerifSemiCondensed", serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-decoration: none;
  position: relative;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: #ffe66d;
  transition: width 0.2s ease-out;
}

.hero-nav a:hover::after {
  width: 100%;
}

/* =========================
   RIGHT SIDE – PORTRAIT
   ========================= */

.hero-right {
  flex: 1 1 auto;
}

/* Portrait band:
   top: 125px -> 8.7vh
   bottom: 144px -> 10vh
   height band ≈ 81.3vh
*/
.hero-portrait-wrapper {
  position: absolute;
  top: 8.7vh;
  bottom: 10vh;
  right: 12vw;              /* moved LEFT compared to 6vw */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Portrait fills that vertical band proportionally */
.hero-portrait {
  height: 81.3vh;           /* 1171 / 1440 ≈ 0.813 */
  max-height: 100%;
  width: auto;
  /* max-width removed so height can fully drive size */
  object-fit: contain;
  filter: drop-shadow(0 18px 55px rgba(0, 0, 0, 0.55));
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
  .hero-content {
    padding: 8vh 5vw 9vh 5vw;
  }

  .hero-portrait-wrapper {
    right: 5vw;
  }

  .signature-img {
    width: min(60vw, 1273px);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 0;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 8vh 2rem 6vh 2rem;
  }

  .hero-left {
    width: 100%;
  }

  .hero-portrait-wrapper {
    position: static;
    margin-top: 2.5rem;
    align-self: center;
  }

  .hero-portrait {
    height: auto;
    width: min(70vw, 20rem);
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: block;
  }

  .hero-nav {
    display: none;
  }

  .site-header {
    padding: 1.5rem 1.5rem 0;
  }
}