:root {
  --navy: #253551;
  --charcoal: #2a2829;
  --stone: #e0e0db;
  --field: #d3d7dc;
  --ink: #1c1c1e;
  --white: #ffffff;
  --gutter: clamp(20px, 3.6vw, 72px);
  --logo-w: clamp(150px, 13vw, 246px);
  --header-clear: calc(var(--logo-w) * 0.72 + 120px);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(17px, 1.15vw, 22px);
  line-height: 1.45;
  color: var(--white);
  background: var(--charcoal);
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px var(--gutter);
}

.brand img { width: var(--logo-w); height: auto; }

.site-nav ul {
  display: flex;
  gap: clamp(24px, 2.4vw, 44px);
  margin: 0;
  padding: clamp(16px, 2.2vw, 40px) 0 0;
  list-style: none;
}

.site-nav a {
  font-weight: 500;
  font-size: clamp(17px, 1.2vw, 22px);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* ---------- Headings and buttons ---------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  min-width: min(100%, 340px);
  padding: 0 3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn--ghost:hover { background: var(--white); color: var(--ink); }

.btn--solid {
  color: var(--ink);
  background: var(--white);
}
.btn--solid:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* ---------- Home ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--header-clear) clamp(24px, 8vw, 152px) 90px;
  background:
    linear-gradient(rgba(16, 18, 24, 0.62), rgba(16, 18, 24, 0.62)),
    url("img/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #1a2438, #2a2829);
}

.hero h1 { font-size: clamp(42px, 3.4vw, 66px); }

.hero p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 20em;
  margin: clamp(28px, 3.5vw, 64px) 0 clamp(40px, 5vw, 96px);
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5.5vw, 110px);
  padding: var(--header-clear) var(--gutter) clamp(60px, 8vw, 140px);
  background: var(--charcoal);
}

.about h1 { font-size: clamp(38px, 3.9vw, 74px); max-width: 13em; }

.about-copy p { max-width: 32em; margin: 0 0 1.1em; font-weight: 500; }
.about-copy .lede { margin-top: clamp(32px, 4.5vw, 84px); }
.about-copy strong { font-weight: 700; }

.about-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}
.about-photo img { width: 100%; height: auto; }

.about-cta {
  grid-column: 1;
  text-align: center;
  padding-top: clamp(48px, 6vw, 120px);
}
.about-cta h2 {
  font-size: clamp(28px, 2.2vw, 42px);
  margin-bottom: clamp(24px, 2.4vw, 44px);
}

/* ---------- Contact ---------- */

.contact-page { background: var(--navy); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(32px, 8vw, 156px);
  align-items: start;
  padding: var(--header-clear) var(--gutter) clamp(60px, 6vw, 110px);
}

.contact h1 { font-size: clamp(56px, 6vw, 112px); letter-spacing: -0.035em; }

.contact-intro { max-width: 30em; margin: clamp(28px, 3.5vw, 64px) 0 0; }
.contact-intro p { margin: 0 0 1em; }

.contact-form { margin-top: clamp(32px, 3.5vw, 64px); }

.contact-form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.contact-form legend,
.contact-form label.field-label {
  display: block;
  padding: 0;
  font-size: 1.05em;
  margin-bottom: 6px;
}
.contact-form .req { font-size: 0.78em; opacity: 0.75; margin-left: 4px; }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-row label { display: block; font-size: 0.85em; margin-bottom: 4px; }

.field { margin-bottom: 22px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 14px 24px;
  min-height: 53px;
}

.contact-form textarea { border-radius: 26px; min-height: 140px; resize: vertical; }

.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.contact-form .btn { min-width: 0; min-height: 59px; padding: 0 2.6rem; color: var(--navy); background: var(--white); }
.contact-form .btn:hover { background: transparent; color: var(--white); border-color: var(--white); }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; margin: 18px 0 0; }
.form-status.is-error { color: #ffd0c9; }

.contact-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.email-band {
  background: var(--stone);
  padding: clamp(70px, 8vw, 150px) var(--gutter);
  text-align: center;
}
.email-band a {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 78px);
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-band a:hover { text-decoration: underline; text-underline-offset: 0.12em; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .site-header { padding-top: 20px; }
  .site-nav ul { padding-top: 10px; gap: 22px; }

  .about,
  .contact { grid-template-columns: 1fr; }

  .about-photo { grid-column: 1; grid-row: auto; margin-top: 40px; order: 2; }
  .about-cta { order: 3; }
  .about-copy { order: 1; }

  .contact-photo { margin-top: 48px; }
}

@media (max-width: 520px) {
  .name-row { grid-template-columns: 1fr; }
  .btn { padding: 0 2rem; }
}
