:root {
  --page-bg: #eee8df;
  --surface: #faf7f2;
  --surface-soft: #f2ebe2;
  --navy: #102449;
  --navy-soft: #30415b;
  --gold: #c7934d;
  --border: rgba(16, 36, 73, 0.13);
  --shadow: 0 24px 54px rgba(27, 37, 54, 0.12);
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
  min-height: 100vh;
  background: radial-gradient(circle at top, #f7f3ed 0%, var(--page-bg) 58%, #e7ddd0 100%);
  color: var(--navy);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

.page {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 2rem auto;
}

.hero {
  position: relative;
  min-height: min(86vh, 860px);
  padding: 2rem 2.4rem 3.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(250, 247, 242, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.brand {
  position: relative;
  z-index: 4;
  display: inline-block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 2.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 2.2rem;
  align-items: center;
  min-height: 690px;
  padding-top: 1rem;
}

.intro {
  position: relative;
  z-index: 20;
  max-width: 37rem;
  padding-left: 0.25rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 6.5vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.accent-line {
  display: block;
  width: 4rem;
  height: 0.2rem;
  margin: 1.6rem 0 1.4rem;
  border-radius: 999px;
  background: var(--gold);
}

.role {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.5vw, 2.75rem);
  line-height: 1.15;
}

.summary {
  max-width: 31rem;
  margin: 1.15rem 0 0;
  color: var(--navy-soft);
  font-size: 1.12rem;
}

.summary a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.actions {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 12.5rem;
  min-height: 3.8rem;
  padding: 0.95rem 1.5rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 36, 73, 0.12);
}

.button:focus-visible,
.copy-button:focus-visible {
  outline: 3px solid rgba(199, 147, 77, 0.35);
  outline-offset: 3px;
}

.button--primary {
  background: var(--navy);
  color: #ffffff;
}

.button--secondary {
  border-color: rgba(199, 147, 77, 0.95);
  background: rgba(255, 255, 255, 0.54);
  color: var(--navy);
}

.chevron {
  margin-left: 0.2rem;
  font-size: 0.95rem;
}

.email-control {
  position: relative;
  z-index: 30;
}

.email-popover {
  position: absolute;
  top: auto;
  bottom: calc(100% + 0.85rem);
  left: -2.4rem;
  z-index: 50;
  width: 19rem;
  padding: 1rem 1rem 0.85rem;
  background: rgba(250, 247, 242, 0.995);
  border: 1px solid rgba(16, 36, 73, 0.1);
  border-radius: 0.95rem;
  box-shadow: 0 18px 38px rgba(16, 36, 73, 0.17);
}

.email-popover::before {
  content: "";
  position: absolute;
  top: auto;
  bottom: -0.47rem;
  left: 7.5rem;
  width: 0.9rem;
  height: 0.9rem;
  background: inherit;
  border-right: 1px solid rgba(16, 36, 73, 0.1);
  border-bottom: 1px solid rgba(16, 36, 73, 0.1);
  transform: rotate(45deg);
}

.email-popover[hidden] {
  display: none;
}

.email-address {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

.email-rule {
  height: 1px;
  margin: 0.8rem 0;
  background: rgba(16, 36, 73, 0.1);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 0.7rem;
  background: rgba(16, 36, 73, 0.07);
  color: var(--navy);
  cursor: pointer;
}

.copy-status {
  min-height: 1.15rem;
  margin: 0.55rem 0 0;
  color: var(--navy-soft);
  font-size: 0.88rem;
}

.portrait {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: stretch;
  min-height: 620px;
  overflow: hidden;
  border-radius: 2.4rem 2.4rem 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(239, 232, 223, 0.72) 100%);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
}

.hero__wave {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: clamp(7rem, 14vw, 11rem);
  pointer-events: none;
}

.hero__wave path {
  fill: var(--surface-soft);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    min-height: 0;
  }

  .portrait {
    order: -1;
    justify-self: center;
    width: min(100%, 31rem);
    min-height: 470px;
    border-radius: 2rem;
  }

  .intro {
    max-width: none;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 1rem), var(--max-width));
    margin: 0.75rem auto;
  }

  .hero {
    padding: 1.25rem 1.15rem 2.3rem;
    border-radius: 1.5rem;
  }

  .hero__content {
    padding-top: 0.35rem;
  }

  .portrait {
    min-height: 360px;
    border-radius: 50%;
    aspect-ratio: 1;
    width: min(82vw, 23rem);
  }

  .portrait img {
    object-position: 50% 10%;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 2.5rem);
  }

  .role {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .summary {
    font-size: 0.9rem;
  }

  .actions {
    flex-direction: column;
    gap: 0.8rem;
    transform: translateY(-1ex);
  }

  .button,
  .email-control {
    width: 100%;
  }

  .email-popover {
    left: 0;
    right: auto;
    width: min(100%, 22rem);
  }

  .email-popover::before {
    left: 50%;
  }

  .hero__wave {
    height: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
