/* ==========================================================================
   Standard Aviation · interior pages
   Page hero, statement, chapters, principles, amenities, location.
   Loaded after home.css (reuses .statement, .spec, .selector__points, .final).
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero { padding: var(--frame) var(--frame) 0; }
.page-hero__frame { position: relative; isolation: isolate; color: var(--porcelain); }
.page-hero__media {
  aspect-ratio: auto; width: 100%;
  height: clamp(560px, calc(86svh - var(--frame)), calc(100vw * .5));
}
.page-hero__shade {
  position: absolute; inset: 0; border-radius: var(--r-frame); pointer-events: none;
  background:
    linear-gradient(180deg, rgba(30, 32, 22, .38) 0%, rgba(30, 32, 22, 0) 24%),
    linear-gradient(0deg, rgba(30, 32, 22, .6) 0%, rgba(30, 32, 22, 0) 46%);
}
.page-hero__content {
  position: absolute; inset: auto 0 0 0;
  display: grid; grid-template-columns: 1fr minmax(240px, 380px); align-items: end; gap: 12px 48px;
  padding: 0 calc(var(--gutter) - var(--frame)) clamp(28px, 3.4vw, 56px);
}
.page-hero__eyebrow { grid-column: 1 / -1; }
.page-hero__title {
  font-family: var(--font-display); font-size: var(--fs-display-1); font-weight: 500;
  letter-spacing: -0.05em; line-height: .88; max-width: 9em; text-wrap: balance;
}
.page-hero__lede { font-family: var(--font-display); font-size: clamp(16px, 1.2vw, 20px); font-weight: 300; line-height: 1.4; color: rgba(250, 248, 243, .88); padding-bottom: .4em; }

.js .page-hero__title { animation: word-in 1.2s var(--ease-out) both; }
.js .page-hero__eyebrow, .js .page-hero__lede { animation: fade-in 1s var(--ease) .5s both; }

@media (max-width: 760px) {
  .page-hero__media { height: max(560px, calc(88svh - var(--frame) * 2)); }
  .page-hero__content { grid-template-columns: 1fr; padding: 0 20px 28px; }
  .page-hero__title { font-size: clamp(46px, 14vw, 72px); }
}

/* ---------- Statement ---------- */
.page-statement { padding-block: var(--section) calc(var(--section) * .5); }

/* ---------- Chapters ---------- */
.chapter { padding-block: calc(var(--section) * .5); }
.chapter:last-of-type { padding-bottom: var(--section); }
.chapter__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 7vw, 140px); align-items: center; }
.chapter--reverse .chapter__media { order: 2; }
.chapter__copy { display: grid; gap: 24px; align-content: center; justify-items: start; }
.chapter__copy .display-2 { max-width: 10em; }
.chapter__count { margin-left: 10px; color: var(--stone-400); }
.chapter__body { font-size: var(--fs-lede); line-height: 1.6; color: var(--stone-600); max-width: 32em; }
.chapter__points { width: 100%; max-width: 30em; }
.chapter__copy .spec { width: 100%; max-width: 34em; }
.chapter__note { font-size: 14px; color: var(--stone-600); margin-top: 4px; }
.chapter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 6px; }
#hangar .chapter__media .media { aspect-ratio: 16 / 10; }

@media (max-width: 900px) {
  .chapter__grid { grid-template-columns: 1fr; }
  .chapter--reverse .chapter__media { order: 0; }
  .chapter__actions .pill { width: 100%; justify-content: space-between; }
}

/* ---------- Principles (dark band) ---------- */
.principles { background: var(--olive-900); color: var(--porcelain); padding-block: var(--section); margin-top: calc(var(--section) * .5); }
.principles__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 96px); }
.principles__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-inverse); }
.principle { display: grid; gap: 14px; align-content: start; padding: 28px clamp(16px, 2vw, 36px) 8px 0; }
.principle + .principle { padding-left: clamp(16px, 2vw, 36px); border-left: 1px solid var(--line-inverse); }
.principle__num { font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; color: var(--olive-200); }
.principle__title { font-family: var(--font-display); font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; }
.principle__body { font-size: 15.5px; line-height: 1.6; color: rgba(250, 248, 243, .7); }

@media (max-width: 1100px) {
  .principles__list { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line-inverse); margin-top: 24px; }
}
@media (max-width: 560px) {
  .principles__list { grid-template-columns: 1fr; }
  .principle + .principle { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-inverse); margin-top: 16px; }
}

/* ---------- Amenities ---------- */
.amenities { background: var(--mist); padding-block: var(--section); }
.amenities__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 80px); }
.amenities__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 28px); }
.amenity:nth-child(even) { margin-top: clamp(32px, 4vw, 72px); }
.amenity__title { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.amenity__title span { font-size: 12px; letter-spacing: .1em; color: var(--olive-500); }
@media (max-width: 1100px) { .amenities__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amenity:nth-child(even) { margin-top: 24px; } }

/* ---------- Location ---------- */
.location { padding-block: var(--section); }
.location__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 128px); align-items: center; }
.location__copy { display: grid; gap: 22px; justify-items: start; }
.location__facts { width: 100%; max-width: 34em; margin: 4px 0 0; border-top: 1px solid var(--line-strong); }
.location__facts a { border-bottom: 1px solid var(--line-strong); }
.location__media .media { aspect-ratio: 16 / 10; }
@media (max-width: 1100px) { .location__grid { grid-template-columns: 1fr; } .location__media { order: -1; } }

/* Keep the placeholder label clear of the transparent header */
.page-hero .ph-label { top: 112px; right: calc(var(--gutter) - var(--frame)); }
@media (max-width: 760px) { .page-hero .ph-label { top: 88px; right: 20px; } }

/* ---------- List band (affiliations, downloads, careers) ---------- */
.list-band { padding-block: var(--section); }
.list-band + .list-band { padding-top: 0; }
.list-band__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 128px); align-items: start; }
.list-band__head { display: grid; gap: 20px; justify-items: start; }
.list-band__rows { border-top: 1px solid var(--line-strong); }
.list-band__row > a, .list-band__row:not(:has(a)) {
  display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.list-band__row:not(:has(a)) { grid-template-columns: 1fr auto; }
.list-band__title { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -0.025em; line-height: 1.2; }
.list-band__body { font-size: 14.5px; color: var(--stone-600); text-align: right; }
.list-band__arrow { color: var(--stone-400); transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.list-band__row a:hover .list-band__arrow { color: var(--charcoal); transform: translate(2px, -2px); }
@media (max-width: 900px) {
  .list-band__grid { grid-template-columns: 1fr; }
  .list-band__row > a, .list-band__row:not(:has(a)) { grid-template-columns: 1fr 24px; }
  .list-band__row:not(:has(a)) { grid-template-columns: 1fr; }
  .list-band__body { grid-row: 2; text-align: left; }
}

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 140px); align-items: start; }
.contact__details { display: grid; gap: 22px; justify-items: start; position: sticky; top: 100px; }
.contact__list { width: 100%; margin: 0; border-top: 1px solid var(--line-strong); }
.contact__list a { border-bottom: 1px solid var(--line-strong); }
.contact__list time { font-variant-numeric: tabular-nums; }
.contact__request { margin-top: 24px; width: 100%; padding: 26px; background: var(--mist); border-radius: var(--r-frame); display: grid; gap: 12px; justify-items: start; }
.contact__request-title { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.contact__request-body { font-size: 15px; color: var(--stone-600); margin-bottom: 6px; }
.contact__form-wrap { display: grid; gap: 24px; align-content: start; }
.contact__form-wrap .display-2 { margin-bottom: 8px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; margin: 0; padding: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--stone-600); padding: 0;
}
.field legend { margin-bottom: 8px; }
.req { color: var(--olive-500); }
.field input, .field select, .field textarea {
  width: 100%; appearance: none; -webkit-appearance: none; border-radius: 0;
  background: transparent; color: var(--charcoal);
  border: 0; border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em;
  padding: 10px 0; min-height: 50px;
  transition: border-color var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; border: 1px solid var(--line-strong); padding: 14px 16px; border-radius: 4px; }
.field input::placeholder { color: var(--stone-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--charcoal); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--olive-500); }
.field [aria-invalid="true"] { border-color: #A4452C; }
.field__error { font-size: 14px; color: #A4452C; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: 4px; top: 18px; width: 8px; height: 8px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); pointer-events: none; }

.segmented--light span { border-color: var(--line-strong); color: var(--charcoal); }
.segmented--light input:hover + span { border-color: var(--charcoal); }
.segmented--light input:checked + span { background: var(--olive-900); color: var(--porcelain); border-color: var(--olive-900); }
.segmented--light input:focus-visible + span { outline-color: var(--olive-500); }

.contact-form__submit { display: grid; gap: 14px; justify-items: start; margin-top: 6px; }
.contact-form__note { font-size: 14px; color: var(--stone-600); max-width: 40em; }
.contact-form__note a { border-bottom: 1px solid var(--line-strong); }

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

.notice { padding: 20px 22px; border-radius: var(--r-frame); border: 1px solid; display: grid; gap: 6px; font-size: 16px; }
.notice:focus { outline: 2px solid var(--olive-500); outline-offset: 3px; }
.notice--success { background: #EEF0E2; border-color: #C9CDA8; }
.notice--error { background: #F6E9E3; border-color: #E2BFB1; color: #6E2A18; }
.notice__title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.015em; }

@media (max-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__details { position: static; order: 2; }
}
@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; gap: 24px; }
  .contact-form__submit .pill { width: 100%; justify-content: space-between; }
}

/* ---------- Legal ---------- */
.legal { padding-block: 160px var(--section); }
.legal__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 140px); align-items: start; }
.legal__head { display: grid; gap: 20px; justify-items: start; position: sticky; top: 100px; }
.legal__review { font-size: 14px; padding: 8px 14px; border-radius: var(--r-pill); background: #F6E9E3; color: #6E2A18; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-family: var(--font-display); font-size: 15px; }
.legal__nav a { color: var(--stone-600); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.legal__nav a[aria-current="page"], .legal__nav a:hover { color: var(--charcoal); border-color: var(--charcoal); }
.legal__body { max-width: 44em; }
.legal__section { padding-block: 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.legal__section:first-child { border-top-color: var(--line-strong); }
.legal__section h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.legal__section p { color: var(--stone-600); line-height: 1.7; }
@media (max-width: 900px) {
  .legal { padding-top: 120px; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__head { position: static; }
}

/* ---------- Setup page ---------- */
.setup { min-height: 100svh; display: grid; place-items: center; padding: 40px var(--gutter); }
.setup__card { width: 100%; max-width: 640px; display: grid; gap: 22px; }
.setup__title { font-family: var(--font-display); font-size: 44px; font-weight: 400; letter-spacing: -0.035em; }
.setup__status { margin: 0; border-top: 1px solid var(--line-strong); }
.setup__status .ok { color: var(--olive-500); }
.setup__status .bad { color: #A4452C; }
.setup__help { color: var(--stone-600); }
.setup__help code, .setup__list { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.setup__list { display: grid; gap: 4px; padding: 14px 16px; background: var(--mist); border-radius: 4px; }

.setup__form { display: grid; gap: 20px; justify-items: start; }
.setup__form .field { width: 100%; }
