:root {
  color-scheme: light;
}

/* Page load — soft staggered reveal. */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-stagger > * {
    opacity: 0;
    animation: reveal-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.05s + var(--reveal-i, 0) * 0.075s);
  }

  .reveal-stagger > *:nth-child(1) {
    --reveal-i: 0;
  }

  .reveal-stagger > *:nth-child(2) {
    --reveal-i: 1;
  }

  .reveal-stagger > *:nth-child(3) {
    --reveal-i: 2;
  }

  .reveal-stagger > *:nth-child(4) {
    --reveal-i: 3;
  }

  .reveal-stagger > *:nth-child(5) {
    --reveal-i: 4;
  }

  .reveal-stagger > *:nth-child(6) {
    --reveal-i: 5;
  }

  .reveal-stagger > *:nth-child(7) {
    --reveal-i: 6;
  }

  .reveal-stagger > *:nth-child(8) {
    --reveal-i: 7;
  }

  .reveal-stagger > *:nth-child(9) {
    --reveal-i: 8;
  }

  .reveal-stagger > *:nth-child(10) {
    --reveal-i: 9;
  }

  .reveal-footer {
    opacity: 0;
    animation: reveal-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.14s + var(--reveal-i, 4) * 0.075s);
  }
}

body {
  background-color: #f6f7f8;
  color: #000000;
}

/* Home: vertical padding set by home-center.js; footer below the fold. */
.home-main {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
}

.home-status {
  color: color-mix(in srgb, #4c4546 70%, #faf9f9);
}

/* Primary buttons — wipe invert on hover. */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #000000;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #f6f7f8;
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.btn-primary__label {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: #000000;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition-duration: 0.1s;
}

.btn-primary:disabled {
  pointer-events: none;
}

.btn-primary--pill {
  border-radius: 9999px;
}

/* Inline text links — center-draw underline. */
.link-text {
  position: relative;
  text-decoration: none;
  letter-spacing: 0;
  padding-bottom: 2px;
  transition:
    letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-text:not(.link-text--external) {
  display: inline-block;
}

.link-text:not(.link-text--external)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-text:not(.link-text--external):hover::after {
  transform: translateX(-50%) scaleX(1);
}

.link-text:hover {
  letter-spacing: 0.03em;
}

/* External links: inline arrow in flow + expanding underline. */
.link-text--external {
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: center calc(100% - 1px);
  background-size: 0% 1px;
}

.link-text--external:hover {
  background-size: 100% 1px;
}

.link-text--external::after {
  content: "↗";
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  font-size: 0.65em;
  line-height: 1;
  vertical-align: 0.12em;
  opacity: 0;
  transform: translate(-2px, 2px);
  transition:
    max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-text--external:hover::after {
  max-width: 1em;
  margin-left: 0.15em;
  opacity: 0.55;
  transform: none;
}

/* Footer / nav links — same underline, tighter letter-spacing. */
.link-nav {
  position: relative;
  display: inline-block;
  text-decoration: none;
  letter-spacing: inherit;
  padding-bottom: 2px;
  transition:
    letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    opacity 0.3s ease;
}

.link-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-nav:hover {
  letter-spacing: 0.05em;
}

.link-nav:hover::after {
  transform: translateX(-50%) scaleX(1);
}

@media (max-width: 767px) {
  .home-main {
    min-height: 100svh;
  }

  .btn-primary {
    max-width: 100%;
  }
}

/* Shared site footer (pilot page style). */
.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 3rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4c4546;
}

.site-footer__link {
  color: #4c4546;
}

.site-footer__link:hover {
  color: #000000;
}

.site-footer__sep {
  opacity: 0.5;
}

.site-footer__copy {
  font-size: 16px;
  line-height: 1.6;
  color: #4c4546;
  opacity: 0.8;
}

/* Content pages (security, privacy). */
.content-page {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.content-page.reveal-stagger {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-hero {
  margin-bottom: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e3e2e2;
}

.page-hero__lead {
  margin-top: 1.5rem;
  font-size: 18px;
  line-height: 1.6;
  color: #4c4546;
}

.page-hero__meta {
  margin-top: 1rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e5e5e;
}

.content-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background-color: #ffffff;
  border: 1px solid #e3e2e2;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.content-card:hover {
  border-color: #cfc4c5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.content-card__title {
  margin-bottom: 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: #000000;
}

.content-card__body {
  font-size: 18px;
  line-height: 1.6;
  color: #1a1c1c;
}

.content-aside {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #e3e2e2;
  font-size: 16px;
  line-height: 1.6;
  color: #4c4546;
  text-align: center;
}

.prose-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-section__title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: #000000;
}

.content-section__subtitle {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: #000000;
}

.content-section__body {
  font-size: 16px;
  line-height: 1.6;
  color: #1a1c1c;
}

.content-section__body + .content-section__body,
.content-section__subtitle + .content-section__body {
  margin-top: 0.25rem;
}

.content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.content-list li {
  padding-left: 1rem;
  border-left: 1px solid #e3e2e2;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1c1c;
}

.content-callout {
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e3e2e2;
  border-left: 2px solid #000000;
}

.content-callout__label {
  margin-bottom: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4c4546;
}

.content-callout__body {
  font-size: 16px;
  line-height: 1.6;
  color: #1a1c1c;
}

.content-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 14px;
  line-height: 1.5;
  color: #4c4546;
}

.content-emphasis {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: #000000;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-member__heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.team-linkedin {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  color: #000000;
  opacity: 0.38;
  text-decoration: none;
  transform: translateY(0);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-linkedin svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.team-member__heading:hover .team-linkedin {
  opacity: 0.62;
}

.team-linkedin:hover {
  opacity: 1;
  transform: translateY(-1px) scale(1.1);
}

.team-linkedin:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
  opacity: 1;
}

.team-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.team-meta-sep {
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .link-text,
  .link-nav,
  .team-linkedin {
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }

  .btn-primary::before {
    transform: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .btn-primary:hover::before {
    opacity: 1;
  }

  .link-text:not(.link-text--external)::after,
  .link-text--external::after,
  .link-nav::after {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .link-text--external::after {
    max-width: 0;
    margin-left: 0;
    transform: none;
    opacity: 0;
  }

  .link-text:not(.link-text--external):hover::after,
  .link-nav:hover::after {
    transform: translateX(-50%) scaleX(1);
  }

  .link-text--external:hover {
    background-size: 100% 1px;
  }

  .link-text--external:hover::after {
    max-width: 1em;
    margin-left: 0.15em;
    opacity: 0.55;
  }

  .btn-primary:hover,
  .btn-primary:active,
  .link-text:hover,
  .link-nav:hover,
  .team-linkedin:hover {
    transform: none;
    letter-spacing: inherit;
    box-shadow: none;
  }

  .pilot-field::after {
    transition: none;
  }

  .pilot-field:focus-within::after {
    transform: scaleX(1);
  }

  .pilot-field:focus-within .form-label {
    letter-spacing: 0.1em;
  }

  .form-input {
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }

  .form-input:focus {
    transform: none;
    box-shadow: none;
  }
}

/* Material Symbols (used on the Privacy page). */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Pilot intake form. */
.pilot-form {
  padding: clamp(1.5rem, 4vw, 2rem);
  background-color: #ffffff;
  border: 1px solid #e3e2e2;
}

.pilot-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pilot-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pilot-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: #000000;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pilot-field:focus-within::after {
  transform: scaleX(1);
}

.pilot-field:focus-within .form-label {
  color: #000000;
  letter-spacing: 0.12em;
}

.pilot-form__submit {
  display: flex;
  justify-content: center;
  padding-top: 1.75rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4c4546;
  transition:
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-required {
  font-weight: 500;
  opacity: 0.6;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e3e2e2;
  background-color: #faf9f9;
  color: #000000;
  border-radius: 0;
  outline: none;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-input::placeholder {
  color: #7e7576;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.form-input:hover {
  border-color: #cfc4c5;
}

.form-input:focus {
  border-color: #000000;
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.form-input:focus::placeholder {
  opacity: 0.45;
}

.form-input--textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #000000;
  box-shadow: 0 0 0 1000px #faf9f9 inset;
  transition: background-color 9999s ease-out;
}

.form-input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #ffffff inset;
}

/* Legacy naked inputs (unused on pilot; kept for reference). */
.naked-input {
  width: 100%;
  padding: 8px 0;
  border: none;
  background-color: transparent;
  outline: none;
  box-shadow: none !important;
}

.naked-input:focus {
  outline: none;
  box-shadow: none !important;
}

/* Pilot form submission status message. */
.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 1.25rem;
}

.form-status[data-state="success"] {
  color: #15803d;
}

.form-status[data-state="error"] {
  color: #b91c1c;
}
