/* ==========================================================================
   Hans Wink – Pilot Services  ·  "Logbook" redesign
   One stylesheet, no framework. Sections are in page order.

   1. Fonts & tokens        6. Experience dials      11. Contact
   2. Base & utilities      7. Pilot services        12. Motion
   3. Buttons               8. Book                  13. Small screens
   4. Header & navigation   9. Videos
   5. Hero, follow, causes 10. Logbook (resume)
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dm-sans-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* night sky */
  --night: #08182a;
  --navy: #0e2742;
  --blue: #0c71c3;
  --sky: #8cc4f2;
  /* sand and sun (from the book covers) */
  --gold: #f0b23a;
  --gold-deep: #c98400;
  --paper: #f6f1e7;
  --paper-2: #ece4d3;
  --ink: #122033;
  --muted: #566272;
  --line: rgba(18, 32, 51, 0.14);
  --line-light: rgba(255, 255, 255, 0.14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: min(1200px, 100% - 2 * clamp(20px, 5vw, 56px));
  --radius: 22px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base & utilities ----------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, p, ul, figure { margin-top: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: var(--container); margin-inline: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: #241a02; font-weight: 700; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.paper { background: var(--paper); color: var(--ink); }
.paper-2 { background: var(--paper-2); color: var(--ink); }
.night { background: var(--night); color: #fff; }
.night::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.55; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.night .eyebrow, .hero .eyebrow { color: var(--gold); }

.h2 {
  margin: 0;
  font: 500 clamp(2.1rem, 4.6vw, 3.6rem)/1.06 var(--serif);
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }

/* 3. Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  padding: 0.95em 1.6em;
  font: 600 0.92rem/1.2 var(--sans); letter-spacing: 0.02em; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: #241a02; }
.btn--gold:hover { background: #ffc552; transform: translateY(-2px); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: #fff; color: var(--night); border-color: #fff; }
.btn--ink { color: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* 4. Header & navigation -------------------------------------------------- */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background-color 0.35s, box-shadow 0.35s;
}
.site-header.is-stuck {
  background: rgba(8, 24, 42, 0.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: var(--container); height: var(--header-h); margin-inline: auto; }

.brand { display: flex; align-items: center; }
.brand img { width: auto; height: 66.7px; transition: transform 0.3s var(--ease); }
.brand:hover img { transform: scale(1.04); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a {
  position: relative; padding: 6px 0;
  font: 500 0.76rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82); text-decoration: none; transition: color 0.2s;
}
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.nav__cta):hover { color: #fff; }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav .nav__cta { padding: 11px 18px; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; transition: background-color 0.25s, color 0.25s; }
.nav .nav__cta:hover { background: var(--gold); color: #241a02; }

.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line-light); border-radius: 50%; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before { display: block; position: relative; width: 18px; height: 1.5px; margin: 0 auto; background: #fff; transition: transform 0.3s var(--ease), background-color 0.2s; }
.nav-toggle span::before { content: ""; position: absolute; left: 0; top: 6px; }
.nav-toggle span { top: -3px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }

/* 5. Hero, follow strip, causes ------------------------------------------ */

.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: min(100svh, 920px);
  padding-top: calc(var(--header-h) + clamp(32px, 7vh, 88px));
  color: #fff;
  background:
    radial-gradient(60% 75% at 76% 64%, rgba(12, 113, 195, 0.6), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(240, 178, 58, 0.1), transparent 70%),
    linear-gradient(180deg, #06121f 0%, #0c2038 55%, #164067 100%);
}
.hero__route { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__route .route { fill: none; stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; stroke-dasharray: 1 11; stroke-linecap: round; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; column-gap: clamp(24px, 4vw, 72px); }
.hero__copy { position: relative; z-index: 2; align-self: center; padding-bottom: clamp(48px, 9vh, 110px); }
.hero__title { margin: 0 0 clamp(14px, 2vw, 22px); line-height: 0; }
.hero__title img { width: 100%; max-width: 680px; height: auto; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.35)); }
.hero__tagline { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 clamp(26px, 4vw, 40px); font: 400 clamp(1rem, 1.7vw, 1.3rem)/1.4 var(--sans); color: rgba(255, 255, 255, 0.86); }
.hero__tagline span + span::before { content: "•"; margin: 0 0.8em; color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__portrait { position: relative; width: min(100%, 540px); margin-inline: auto; align-self: end; }
.heart-outline { position: absolute; left: -6%; top: 2%; width: 112%; height: auto; aspect-ratio: 504 / 503; }
.hero__flight { position: absolute; pointer-events: none; }
.hero__portrait img { position: relative; z-index: 1; width: 82%; max-width: none; margin-left: 9%; margin-top: 27%; }

.follow { padding: 26px 0; background: var(--night); border-top: 1px solid var(--line-light); color: #fff; }
.follow__inner { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.follow__label { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.social { display: flex; gap: 10px; margin: 0; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px;
  color: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 50%;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: #241a02; transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* causes slider */
.slider { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: var(--night); color: #fff; box-shadow: 0 30px 60px -30px rgba(8, 24, 42, 0.55); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 50vw, 580px); opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s 0.9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.slide__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #12304f, #08182a); }
.slide__bg::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; }
.slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 14, 25, 0.94) 0%, rgba(5, 14, 25, 0.72) 48%, rgba(5, 14, 25, 0.12) 100%), linear-gradient(0deg, rgba(5, 14, 25, 0.6), transparent 45%); }
.slide__body { position: relative; z-index: 1; max-width: 640px; padding: clamp(28px, 5vw, 64px); padding-bottom: clamp(72px, 8vw, 96px); }
.slide__count { margin: 0 0 18px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.2em; color: var(--gold); }
.slide__title { margin: 0 0 16px; font: 500 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--serif); letter-spacing: -0.015em; }
.slide__title a { color: inherit; text-decoration: none; }
.slide__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.slide p { margin-bottom: 26px; color: rgba(255, 255, 255, 0.86); max-width: 54ch; }

.slider__controls { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); z-index: 3; display: flex; gap: 10px; }
.slider__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  color: #fff; background: rgba(8, 24, 42, 0.5); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.slider__arrow:hover { background: var(--gold); border-color: var(--gold); color: #241a02; }
.slider__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: 6px; padding: 0 clamp(20px, 3vw, 40px) 0; height: 5px; }
.slider__bar button { position: relative; flex: 1; padding: 0; height: 100%; background: rgba(255, 255, 255, 0.2); border: 0; cursor: pointer; overflow: hidden; }
.slider__bar button::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.slider__bar button.is-done::after { transform: scaleX(1); }
.slider__bar button[aria-current="true"]::after { transform: scaleX(1); }
.slider.is-playing .slider__bar button[aria-current="true"]::after { animation: fill var(--slide-ms, 7000ms) linear forwards; transform: scaleX(0); }
.slider.is-paused .slider__bar button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* 6. Experience dials ----------------------------------------------------- */

.dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 56px); margin: 0; }
.dial { margin: 0; text-align: center; }
.dial__face { position: relative; width: min(100%, 270px); aspect-ratio: 1; margin: 0 auto 18px; }
.dial__face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial__face line { stroke: rgba(18, 32, 51, 0.18); stroke-width: 2; stroke-linecap: round; transition: stroke 0.15s; }
.dial__face line.is-lit { stroke: var(--gold-deep); }
.dial__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 500 clamp(2.1rem, 5.6vw, 4rem)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.dial__label { font: 500 0.78rem/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* 7. Pilot services ------------------------------------------------------- */

.services { overflow: clip; isolation: isolate; background: radial-gradient(70% 80% at 85% 40%, rgba(12, 113, 195, 0.35), transparent 70%), linear-gradient(160deg, #0e2742 0%, #08182a 70%); }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.services__photo { position: relative; max-width: 420px; }
.services__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--radius); opacity: 0.7; }
.services__photo img { position: relative; width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.services__title { max-width: 18em; margin: 0 0 34px; font: 500 clamp(1.8rem, 3.6vw, 2.9rem)/1.12 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.services__cta { margin: 0 0 44px; }
.docs { margin: 0; border-top: 1px solid var(--line-light); max-width: 560px; }
.docs a {
  display: flex; align-items: center; gap: 16px; padding: 18px 4px;
  color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-light);
  transition: padding 0.3s var(--ease), color 0.2s, background-color 0.2s;
}
.docs a:hover { padding-left: 14px; color: var(--gold); }
.docs__name { flex: 1; font-weight: 500; }
.docs__meta { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); }
.docs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.propeller {
  position: absolute; z-index: -1; right: -16%; top: 50%;
  width: min(72vw, 860px); aspect-ratio: 1;
  opacity: 0.32; mix-blend-mode: screen; pointer-events: none;
  transform: translateY(-50%) rotate(var(--rot, 0deg));
}

/* 8. Book ----------------------------------------------------------------- */

#book { overflow-x: clip; } /* the soft glow behind the covers extends slightly past the column */
.book__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }

.tabs__list { display: inline-flex; gap: 4px; margin: 0 0 30px; padding: 5px; background: var(--paper-2); border-radius: 999px; }
.tabs__tab {
  padding: 10px 22px; color: var(--muted); background: none; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs__panels { display: grid; }
.tabs__panel { grid-area: 1 / 1; }
.tabs__panel[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.tabs__panel { transition: opacity 0.4s; }
.tabs__panel h3 { margin: 0 0 16px; font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--serif); }
.tabs__panel p { margin-bottom: 1.15em; color: #2c3a4b; }
.tabs__panel .lede { font: 400 italic clamp(1.1rem, 1.55vw, 1.28rem)/1.55 var(--serif); color: var(--ink); }
.tabs__panel .btn { margin-top: 10px; }

.book__art { position: sticky; top: calc(var(--header-h) + 28px); margin: 0; }
.book__art::before { content: ""; position: absolute; inset: 10% -6% 2% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 178, 58, 0.45), transparent); filter: blur(8px); }
.book__art img { position: relative; width: 100%; filter: drop-shadow(0 30px 30px rgba(8, 24, 42, 0.3)); }

/* 9. Videos --------------------------------------------------------------- */

.videos__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.video { margin: 0; }
.video__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--night); box-shadow: 0 26px 50px -24px rgba(8, 24, 42, 0.55); }
.video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 14px; font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* 10. Logbook (resume) --------------------------------------------------- */

.logbook__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.logbook__title { margin: 0 0 8px; font: 500 clamp(1.4rem, 2.2vw, 1.8rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.log { margin: 22px 0 0; border-top: 2px solid var(--ink); }
.log li {
  position: relative; display: grid; grid-template-columns: 12rem 4.6rem minmax(0, 1fr); align-items: baseline; gap: 0 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.log--edu li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.log__dates { font: 400 0.82rem/1.5 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.log__role { font: 500 0.82rem/1.5 var(--mono); letter-spacing: 0.06em; color: var(--blue); }
.log__org { font-weight: 500; }
.log--edu .log__dates { order: 2; }
.log--edu .log__org { order: 1; }
.log li.is-current .log__dates { color: var(--gold-deep); font-weight: 500; }
.log li.is-current .log__dates::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--gold-deep);
  box-shadow: 0 0 0 0 rgba(201, 132, 0, 0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(201, 132, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 132, 0, 0); } }

/* 11. Contact ------------------------------------------------------------- */

.contact { padding-bottom: 64px; background: radial-gradient(60% 60% at 90% 0%, rgba(12, 113, 195, 0.28), transparent 70%), var(--night); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title { margin: 0 0 28px; font: 500 clamp(1.9rem, 3.8vw, 3rem)/1.08 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form__full { grid-column: 1 / -1; }

.form-tabs__label { margin: 0 0 10px; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.form-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.form-tab { padding: 11px 20px; font: 500 0.95rem/1.2 var(--sans); color: #fff; background: none; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.form-tab:hover { border-color: rgba(255, 255, 255, 0.7); }
.form-tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #241a02; }
[role="tabpanel"][hidden] { display: none; }
.form input[type="text"], .form input[type="email"], .form textarea {
  display: block; width: 100%; padding: 16px 18px;
  font: 400 1rem/1.4 var(--sans); color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 3px rgba(240, 178, 58, 0.25); }
.form ::placeholder { color: rgba(255, 255, 255, 0.5); opacity: 1; }

.form__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form__captcha { display: flex; align-items: center; gap: 10px; font: 500 0.9rem/1 var(--mono); color: rgba(255, 255, 255, 0.75); }
.form__captcha input { width: 64px !important; padding: 12px !important; text-align: center; }
.form__status { margin: 0; min-height: 1.6em; font-size: 0.95rem; }
.form__status ul { margin: 6px 0 0 18px; padding: 0; list-style: disc; }
.form__status.is-ok { color: #8be08b; }
.form__status.is-error { color: #ffb4a8; }

.contact__side .social { margin-bottom: 36px; }
.contact__lines { margin: 0 0 40px; }
.contact__lines dt { margin-bottom: 4px; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.contact__lines dd { margin: 0 0 22px; }
.contact__lines a { color: #fff; font: 500 clamp(1rem, 1.6vw, 1.2rem)/1.3 var(--mono); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.2s; }
.contact__lines a:hover { color: var(--gold); }
.to-top { display: inline-grid; place-items: center; width: 56px; height: 56px; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease); }
.to-top:hover { background: var(--gold); color: #241a02; transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Footer bar ---------------------------------------------------------------- */
.site-bar { background: #1d1e20; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #c8c8c8; }
.site-bar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 66px; padding-block: 9px; }
.site-bar__left, .site-bar__right { font: 400 0.78rem/1.4 var(--mono); letter-spacing: 0.04em; color: #c8c8c8; }
.site-bar__left { justify-self: start; }
.site-bar__right { justify-self: end; text-align: right; }
.site-bar__credit { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; transition: transform 0.3s var(--ease), filter 0.3s, opacity 0.3s ease; }
/* the emblem stays invisible until main.js has seen the bar in view for a few seconds */
.js .site-bar__credit { opacity: 0; pointer-events: none; }
.js .site-bar__credit.is-shown { opacity: 1; pointer-events: auto; transition: transform 0.3s var(--ease), filter 0.3s, opacity 1s ease; }
.site-bar__credit:hover { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 10px rgba(214, 40, 40, 0.5)); }
.site-bar__credit img { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .js .site-bar__credit, .js .site-bar__credit.is-shown { transition: none; } }
@media (max-width: 767px) {
  .site-bar__inner { gap: 10px; }
  .site-bar__left, .site-bar__right { font-size: 0.72rem; }
}

/* 12. Motion -------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(var(--rise, 28px)); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--scale { --rise: 48px; }

.book__art img { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slide, .slide.is-active { transition: none; }
  .book__art img { animation: none; }
  .hero__flight { display: none; }
  .log li.is-current .log__dates::before { animation: none; }
}

/* 13. Small screens ------------------------------------------------------- */

@media (max-width: 980px) {
  .services__grid, .book__grid, .logbook__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .services__photo { max-width: 340px; }
  .book__art { position: relative; top: auto; max-width: 520px; margin-inline: auto; }
  .propeller { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(20px, 5vw, 56px) 28px;
    background: rgba(8, 24, 42, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-light);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
  .nav a { padding: 18px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line-light); }
  .nav a::after { display: none; }
  .nav .nav__cta { margin-top: 18px; text-align: center; border-bottom: 1px solid var(--gold); }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }
  .brand img { height: 57.5px; }

  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-bottom: 36px; }
  .hero__portrait { width: min(88%, 380px); }

  .dials { gap: 10px; }
  .dial__label { font-size: 0.62rem; letter-spacing: 0.1em; }

  .slide { min-height: 520px; }
  .slide__body { padding-bottom: 104px; }
  .slider__controls { right: 20px; bottom: 28px; }
  .slider__arrow { width: 46px; height: 46px; }

  .videos__grid { grid-template-columns: minmax(0, 1fr); }
  .tabs__tab { padding: 10px 16px; font-size: 0.72rem; }

  .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .log li .log__dates { order: 3; }
  .log li .log__role { order: 1; }
  .log li .log__org { order: 2; }
  .log:not(.log--edu) li { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
  .log:not(.log--edu) .log__dates { grid-column: 1 / -1; order: 3; }
  .log:not(.log--edu) .log__role { order: 1; }
  .log:not(.log--edu) .log__org { order: 2; }

  .form { grid-template-columns: minmax(0, 1fr); }
  .form__bottom { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .tabs__tab { padding: 9px 12px; letter-spacing: 0.08em; }
  }
