@font-face {
  font-family: "FSerifCondensed-Medium";
  src: url("/fonts/FSerifCondensed-Medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Gilroy-SemiBold";
  src: url("/fonts/Gilroy-SemiBold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Gilroy-Medium";
  src: url("/fonts/Gilroy-Medium.woff2") format("woff2");
  font-display: swap;
}

:root {
  --page-bg: #ffffff;
  --text-strong: #101010;
  --text-muted: #2e2e2e;
  --text-faint: #7e7e7e;
  --field-bg: #e5e5e5;
  --button-bg: #050505;
  --radius-pill: 999px;
  --page-padding-x: clamp(28px, 4vw, 42px);
  --page-padding-top: clamp(28px, 4vw, 34px);
  --page-padding-bottom: clamp(26px, 4vw, 34px);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
}

body {
  overflow-x: hidden;
  font-family: "Gilroy-SemiBold", system-ui, sans-serif;
  color: var(--text-strong);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  padding: var(--page-padding-top) var(--page-padding-x) var(--page-padding-bottom);
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  width: clamp(122px, 10vw, 154px);
  height: auto;
}

.header-link {
  font-family: "Gilroy-SemiBold", system-ui, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1;
}

.hero-layout {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(48vw, 820px);
  padding-bottom: 120px;
}

.hero-title {
  margin: 0 0 22px;
  font-family: "FSerifCondensed-Medium", Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 7.3vw, 6.9rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  max-width: 9.2ch;
}

.hero-text {
  width: min(100%, 710px);
  margin: 0 0 36px;
  color: var(--text-muted);
  font-family: "Gilroy-SemiBold", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.55vw, 1.52rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.lead-form {
  display: flex;
  align-items: center;
  gap: 16px;
}

.email-field {
  width: min(100%, 360px);
  min-width: 260px;
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--field-bg);
  color: var(--text-strong);
  text-align: center;
  font-family: "Gilroy-SemiBold", system-ui, sans-serif;
  font-size: 1rem;
}

.email-field::placeholder {
  color: rgba(16, 16, 16, 0.7);
}

.email-field:focus {
  outline: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 188px;
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  color: #ffffff;
  cursor: pointer;
  font-family: "Gilroy-Medium", system-ui, sans-serif;
  font-size: 1rem;
}

.cta-button:disabled {
  cursor: wait;
  opacity: 0.92;
}

.cta-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.cta-button.is-loading .cta-spinner {
  display: inline-block;
}

.form-feedback {
  min-height: 1.25rem;
  margin: 12px 0 0;
  color: #c14e35;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero-media {
  position: absolute;
  right: -7vw;
  bottom: -4vh;
  width: min(63vw, 1240px);
  margin: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

.site-footer {
  position: absolute;
  left: var(--page-padding-x);
  bottom: var(--page-padding-bottom);
  z-index: 2;
  color: var(--text-muted);
  font-family: "Gilroy-SemiBold", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.2;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .hero-copy {
    max-width: min(52vw, 700px);
  }

  .hero-media {
    width: min(64vw, 1040px);
    right: -12vw;
    bottom: -2vh;
  }
}

@media (max-width: 980px) {
  .site-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-layout {
    min-height: auto;
    display: grid;
    gap: 24px;
  }

  .hero-copy {
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero-media {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 760px);
    margin-left: auto;
  }

  .site-footer {
    position: static;
    margin-top: auto;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 22px 18px 24px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(3.4rem, 18vw, 5.1rem);
    max-width: 8.6ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text {
    margin-bottom: 24px;
    font-size: 1.02rem;
    line-height: 1.28;
    margin-left: auto;
    margin-right: auto;
  }

  .lead-form {
    flex-direction: column;
    align-items: stretch;
  }

  .email-field,
  .cta-button {
    width: 100%;
    min-width: 0;
  }

  .hero-media {
    width: min(122%, 760px);
    margin-left: -12%;
  }
}
