.inner-page {
  background: var(--paper);
}

.page-hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #0d0d0e;
  color: var(--white);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::before {
  top: -220px;
  right: -130px;
  width: min(58vw, 800px);
  aspect-ratio: 1;
  box-shadow: 0 0 0 110px rgba(255, 255, 255, 0.018), 0 0 0 220px rgba(255, 255, 255, 0.014);
}

.page-hero::after {
  right: 11%;
  bottom: -190px;
  width: 390px;
  aspect-ratio: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(calc(100% - 64px), var(--content));
  min-height: 690px;
  margin-inline: auto;
  padding: 170px 0 88px;
}

.page-hero .eyebrow {
  margin-bottom: 30px;
}

.page-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(64px, 9vw, 126px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.page-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 390px);
  align-items: end;
  gap: 48px;
  margin-top: 48px;
}

.page-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 18px;
}

.page-hero-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.page-hero-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.page-section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.page-section-inner {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.contact-intro h2,
.team-heading h2 {
  margin: 0;
  font-size: clamp(43px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.contact-intro > p {
  max-width: 390px;
  margin: 28px 0 45px;
  color: var(--muted);
}

.contact-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-detail dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.contact-detail a {
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 62px);
  border-radius: 30px;
  background: #e9e7e2;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 9px;
}

.field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(16, 16, 16, 0.25);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  transition: border-color 160ms ease;
}

.field input {
  min-height: 52px;
}

.field textarea {
  min-height: 150px;
  padding: 13px 0;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a8883;
  opacity: 1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.form-button {
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-button:hover {
  transform: translateY(-2px);
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.form-status {
  flex: 1;
  min-width: 200px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.is-success {
  color: #16713b;
}

.form-status.is-error {
  color: #a52824;
}

.team-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: clamp(48px, 10vw, 150px);
  align-items: end;
  margin-bottom: clamp(58px, 8vw, 100px);
}

.team-intro > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
}

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

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #eeece7;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.team-card:hover {
  background: #e7e4de;
  transform: translateY(-3px);
}

.team-avatar {
  position: absolute;
  top: 24px;
  right: 24px;
  width: clamp(150px, 38%, 215px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 21px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(16, 16, 16, 0.11);
}

.team-card-content {
  position: relative;
  z-index: 1;
  max-width: 62%;
  margin-top: auto;
}

.team-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-card h3 {
  max-width: 430px;
  margin: 9px 0 0;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.team-card svg {
  position: absolute;
  right: 31px;
  bottom: 31px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.team-card-wide {
  grid-column: 1 / -1;
}

.team-card-wide .team-avatar {
  width: 215px;
}

@media (max-width: 820px) {
  .page-hero,
  .page-hero-inner {
    min-height: 620px;
  }

  .page-hero-inner {
    padding-bottom: 62px;
  }

  .page-hero-copy,
  .contact-layout,
  .team-intro {
    grid-template-columns: 1fr;
  }

  .page-hero-copy {
    gap: 30px;
  }

  .page-hero-link {
    justify-self: start;
  }

  .contact-layout {
    gap: 58px;
  }
}

@media (max-width: 560px) {
  .page-hero,
  .page-hero-inner {
    min-height: 590px;
  }

  .page-hero-inner,
  .page-section-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .page-hero-inner {
    padding: 140px 0 48px;
  }

  .page-hero h1 {
    font-size: clamp(54px, 16vw, 72px);
  }

  .page-hero-copy {
    margin-top: 34px;
  }

  .page-hero-copy p {
    font-size: 16px;
  }

  .form-row,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    gap: 24px;
    border-radius: 22px;
  }

  .contact-detail {
    grid-template-columns: 82px 1fr;
  }

  .team-card,
  .team-card-wide {
    grid-column: auto;
    min-height: 360px;
    border-radius: 22px;
  }

  .team-avatar,
  .team-card-wide .team-avatar {
    top: 20px;
    right: 20px;
    width: 150px;
    border-radius: 18px;
  }

  .team-card-content {
    max-width: calc(100% - 34px);
  }

  .team-card svg {
    right: 25px;
    bottom: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .form-button {
    transition: none;
  }
}
