/* ==========================================================================
   JJ Briggs — landing page
   Built from the Claude Design mock (Website Landing.dc.html), 1440px canvas.
   Every measurement below resolves to the mock's exact value at a 1440px
   viewport; the fluid clamps only take effect below that.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Brand palette — locked in the identity brief */
  --ink:       #1C2026;
  --charcoal:  #252A31;
  --slate:     #5C6670;
  --mist:      #A8B0B8;
  --tint:      #F1F4F5;
  --steel:     #3E7FA6;
  --line:      #E7EBED;
  --white:     #FFFFFF;

  /* Semantic layer. Components reference only these, so the whole page can
     swap ground without touching a single component rule.
     Two tertiary values are deliberately darker than the brand's Mist and
     Slate: at 12px on their own grounds those two fail WCAG AA (2.2:1 and
     2.8:1), and every uppercase label on this page is 12px. */
  --ground:      var(--white);
  --ground-deep: var(--ink);
  --ground-soft: var(--tint);
  --text:        var(--charcoal);
  --text-2:      var(--slate);
  --text-3:      #666E77;
  --on-deep:     var(--white);
  --on-deep-2:   var(--mist);
  --on-deep-3:   #838C95;
  --rule:        var(--line);
  --rule-deep:   var(--charcoal);
  --divider:     var(--slate);
  --accent:      var(--steel);

  --sans: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;

  /* Horizontal rhythm: 96px gutters and a 1248px measure at 1440px */
  --topbar-h: 90px;
  --pad: clamp(20px, 6.667vw, 96px);
  --col-gap: clamp(40px, 6.667vw, 96px);

  /* Fluid type — each caps at the mock's value */
  --fs-mission: clamp(44px, 7.78vw, 112px);
  --fs-display: clamp(30px, 3.056vw, 44px);
  --fs-award:   clamp(25px, 2.361vw, 34px);
  --fs-type:    clamp(21px, 2.083vw, 30px);
  --fs-cap:     clamp(22px, 1.875vw, 27px);
  --fs-lead:    clamp(17px, 1.319vw, 19px);
}

/* Dark ground. The identity already owns both ends — Ink is the card stock —
   so this inverts the grounds rather than inventing a second palette. Steel
   lifts to #6FA8CC because the brand value only reaches 3.7:1 on Ink.
   Guarded so an explicit light choice still beats a dark OS setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #1C2026;
    --ground-deep: #12161A;
    --ground-soft: #22272E;
    --text:        #E9EDF0;
    --text-2:      #9BA5AF;
    --text-3:      #868F98;
    --on-deep:     #E9EDF0;
    --on-deep-2:   #9BA5AF;
    --on-deep-3:   #868F98;
    --rule:        #2C333B;
    --rule-deep:   #232A31;
    --divider:     #3A424B;
    --accent:      #6FA8CC;
  }
}
:root[data-theme="dark"] {
  --ground:      #1C2026;
  --ground-deep: #12161A;
  --ground-soft: #22272E;
  --text:        #E9EDF0;
  --text-2:      #9BA5AF;
  --text-3:      #868F98;
  --on-deep:     #E9EDF0;
  --on-deep-2:   #9BA5AF;
  --on-deep-3:   #868F98;
  --rule:        #2C333B;
  --rule-deep:   #232A31;
  --divider:     #3A424B;
  --accent:      #6FA8CC;
}

/* --- Reset -------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
hr { border: 0; margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

.mark-defs { position: absolute; }
.keep-case { text-transform: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ground-deep);
  color: var(--on-deep);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.skip:focus {
  left: 0;
  color: var(--on-deep);
}

/* --- Shared layout ------------------------------------------------------ */

/* Backgrounds run full-bleed; content holds the mock's 1248px measure. */
.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { scroll-margin-top: calc(var(--topbar-h) + 8px); }

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.label--dim { color: var(--on-deep-3); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 56px;
}
.section__head--tight { padding-bottom: 40px; }
.section__head .label + .label { letter-spacing: 0.16em; text-align: right; }

.rule { height: 1px; background: var(--rule); }
.rule--dark { background: var(--divider); }

/* Mono link with a 1px underline held 3px clear of the baseline */
.ruled-link {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.ruled-link--reverse {
  border-bottom-color: var(--divider);
  color: var(--on-deep);
}
a.ruled-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* In column contexts the link must not stretch to the full measure */
.cv__body > .ruled-link { align-self: flex-start; }

/* The citation link belongs to its award, not to the list — it sits inside the
   award item so proximity says which one it opens. */
.award .ruled-link {
  display: inline-block;
  margin-top: 18px;
}

/* Awaiting a real target — rendered, but not a link */
.is-pending { cursor: default; }

/* --- Masthead + hero ---------------------------------------------------- */

/* The page runs to roughly five screens, so the nav follows. Both the bar and
   the hero sit on --ground-deep, so over the hero the join is invisible and it
   only reads as a bar once a pale section scrolls under it. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ground-deep);
  color: var(--on-deep);
}

.masthead {
  position: relative;
  background: var(--ground-deep);
  color: var(--on-deep);
}
/* Steel edge — the one steel use on this surface */
.masthead::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--accent);
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand__mark { fill: currentColor; flex: none; }
.brand__name {
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3.06vw, 44px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-deep-2);
}
.nav a { color: var(--on-deep-2); }
.nav a:hover { color: var(--on-deep); }

.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: end;
  gap: 80px;
  padding: clamp(48px, 7.36vw, 106px) 0 clamp(56px, 6.667vw, 96px);
}

.missions {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: var(--fs-mission);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--on-deep);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 14px;
}
.hero__lede {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--on-deep);
  text-wrap: pretty;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-deep-2);
}

/* --- Photo plates ------------------------------------------------------- */

.plate {
  position: relative;
  overflow: hidden;
  background: var(--ground-deep);
}
.plate picture {
  display: block;
  width: 100%;
  height: 100%;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate figcaption {
  position: absolute;
  bottom: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.plate--hero { height: clamp(300px, 38.89vw, 620px); }
.plate--hero img { object-position: 50% 45%; }
/* Full-bleed photo, but the credit still lands on the content gutter */
.plate__caption {
  left: 0;
  right: 0;
}
.plate__caption .wrap {
  display: block;
  text-align: right;
}

.plate--record { height: 300px; }
.plate--record img { object-position: 50% 14%; }
.plate--record figcaption {
  left: 24px;
  right: 24px;
  bottom: 18px;
  text-align: right;
}

/* --- Capability --------------------------------------------------------- */

.section--capability {
  padding: clamp(64px, 7.78vw, 112px) 0 clamp(56px, 6.667vw, 96px);
}

/* 1px background showing through the gaps draws the hairline grid */
.capability {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
}
.capability__cell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px 40px;
  background: var(--ground);
}
.capability__title {
  font-weight: 500;
  font-size: var(--fs-cap);
  letter-spacing: -0.02em;
  color: var(--text);
}
.capability__body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
  text-wrap: pretty;
}

/* --- Type experience ---------------------------------------------------- */

.section--types { padding-bottom: clamp(64px, 7.22vw, 104px); }

.types {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-top: 2px solid var(--text);
  padding-top: 30px;
}
.types__list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(28px, 4.44vw, 64px);
}
.type {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--mono);
}
.type__name {
  font-size: var(--fs-type);
  letter-spacing: 0.01em;
  color: var(--text);
}
/* The one steel use on this surface */
.type__name--steel { color: var(--accent); }
.type__note {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Flight time — subordinate to the type row above, so the figures sit below
   the type names in size and stay charcoal: B412EPI holds this surface's
   one steel use. */
.hours {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.hours__eyebrow { letter-spacing: 0.16em; }
.hours__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 32px;
}
.hour {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--mono);
}
.hour__figure {
  font-size: clamp(20px, 1.667vw, 24px);
  letter-spacing: 0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hour__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --- Record ------------------------------------------------------------- */

.section--record {
  background: var(--ground-deep);
  padding: clamp(64px, 7.22vw, 104px) 0;
  color: var(--on-deep);
}
.record {
  display: grid;
  grid-template-columns: 600fr 552fr;
  align-items: start;
  gap: var(--col-gap);
}

.record__awards {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.awards {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
/* Hairline between awards, not after the last */
.award + .award {
  border-top: 1px solid var(--rule-deep);
  padding-top: 26px;
}
/* The DFC carries the engraving from its certificate. Held at 50% so it reads
   as a watermark on the ink rather than competing with the award name, and
   ranged right so the left axis of the record column is unbroken. */
.award--dfc {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.award__text { min-width: 0; }
.award__medal {
  flex: none;
  width: 112px;
  height: auto;
  margin-top: 2px;
  opacity: 0.5;
}

.award__title {
  font-weight: 500;
  font-size: var(--fs-award);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--on-deep);
  text-wrap: balance;
}
.award__note {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-deep-2);
}

.record__coverage {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.coverage a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-deep);
  color: var(--on-deep);
}
.coverage a:hover { color: var(--accent); }
.coverage__title {
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.coverage__source {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-deep-3);
}

/* --- CV ----------------------------------------------------------------- */

.section--cv { padding: clamp(64px, 7.22vw, 104px) 0; }
.cv {
  display: grid;
  grid-template-columns: 520fr 632fr;
  align-items: start;
  gap: var(--col-gap);
}
.cv__intro {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cv__headline {
  font-weight: 500;
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: pretty;
}
.cv__body {
  display: flex;
  flex-direction: column;
}
.post {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.post:last-child { border-bottom: 1px solid var(--rule); }
.post__role {
  font-weight: 600;
  font-size: var(--fs-lead);
  color: var(--text);
  text-wrap: balance;
}
.post__where {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.post__dates {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.cv__body .ruled-link { margin-top: 34px; }

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

.section--contact {
  background: var(--ground-soft);
  padding: clamp(56px, 6.667vw, 96px) 0 clamp(56px, 6.11vw, 88px);
}
.contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 80px;
}
.contact__lines {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}
.contact__primary {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}
.contact__email {
  font-weight: 500;
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact__phone {
  font-family: var(--mono);
  font-size: clamp(16px, 1.389vw, 20px);
  color: var(--text);
}
.contact__social {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact__social a { color: var(--text-2); }
.contact__social a:hover { color: var(--accent); }

.contact__sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  flex: none;
}
.contact__mark { fill: var(--text); }
.contact__place {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Two-column sections collapse before the type does */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__aside {
    max-width: 560px;
    padding-bottom: 0;
  }
  .record,
  .cv {
    grid-template-columns: 1fr;
  }
  .record { gap: 56px; }
  .cv { gap: 40px; }
  .plate--record { height: clamp(260px, 34vw, 340px); }
}

/* The four-up grid is the section's whole argument — four missions, equal
   weight — but it only survives while a cell still holds a readable measure.
   Below 1200px each cell drops under ~250px, which is 13px mono at four or
   five words a line, so the grid halves before it becomes unreadable. */
@media (max-width: 1200px) {
  .capability { grid-template-columns: repeat(2, 1fr); }
  .capability__cell { padding: 32px 28px 36px; }
}

@media (max-width: 880px) {
  .types {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  /* Wrapping the list would leave the second row ragged — grid it instead */
  .types__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    width: 100%;
  }
  .contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }
  .contact__sign {
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
  }
  .contact__mark { width: 44px; height: 44px; }
  .award__medal { width: 96px; }
}

@media (max-width: 640px) {
  /* The name stays. It is the brand, and a phone is where most people meet
     the page — so the mark and nav shrink around it instead. */
  :root { --topbar-h: 64px; }
  .masthead__bar { padding-block: 16px; gap: 12px; }
  .brand { gap: 10px; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 16px; }
  /* Four labels have to hold one row beside the mark, or the sticky bar
     doubles in height and eats the screen it is meant to save. */
  .nav {
    gap: 0;
    flex-wrap: nowrap;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .types__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hours__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Single column: the hairline grid becomes a stack of rules. Two columns of
     13px mono on a phone gives a three-word measure — unreadable. */
  .capability {
    grid-template-columns: 1fr;
    background: none;
    gap: 0;
  }
  .capability__cell { padding: 28px 0 30px; }
  .capability__cell + .capability__cell { border-top: 1px solid var(--rule); }

  .section__head { flex-direction: column; gap: 10px; }
  .section__head .label + .label { text-align: left; }
  .post {
    flex-direction: column;
    gap: 12px;
  }
  /* The photograph is the strongest asset on the page; 260px wasted it */
  .plate--hero { height: clamp(300px, 88vw, 380px); }
  .plate--record { height: clamp(240px, 58vw, 300px); }
  .award--dfc { gap: 20px; }
  .award__medal { width: 84px; }
}

/* Below ~390px the name and four labels stop fitting one row. Rather than
   shrink the type past reading size, the nav takes a second row and the bar
   grows — --topbar-h grows with it so anchor offsets stay correct. */
@media (max-width: 389px) {
  :root { --topbar-h: 88px; }
  .masthead__bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 12px;
  }
  .nav { flex-basis: 100%; }
}

/* On touch devices the mono links are only 15-20px tall, well under the 44px
   minimum for a finger. Pad the hit area without moving anything visually —
   the padding is cancelled by negative margin on the container. */
@media (pointer: coarse) {
  /* Horizontal padding too — "CV" is only 18px wide as bare text, and at
     these widths .nav sets gap:0 and relies on this padding for its spacing. */
  .nav {
    gap: 0;
    margin: -13px -10px;
  }
  .nav a { padding: 13px 10px; }

  .contact__social {
    gap: 0;
    margin: -13px -14px;
  }
  .contact__social a { padding: 13px 14px; }

  /* Padding above only, so the ruled underline stays tight to the text */
  .ruled-link { padding-top: 16px; }
  .cv__body .ruled-link { margin-top: 18px; }

  .contact__primary { gap: 0; }
  .contact__email { padding: 6px 0; }
  .contact__phone { padding: 12px 0; }

  .coverage a { padding: 26px 0; }

  /* Deliberately no extra height on the brand: it would push the sticky bar
     past the height --topbar-h declares, and anchors offset by that value. */
  .brand { padding-block: 0; }
}

/* The nav needs real spacing whether or not the pointer is coarse — a mouse
   user at phone width gets the same gap:0 row. */
@media (max-width: 640px) {
  .nav { margin-inline: -8px; }
  .nav a { padding-inline: 8px; }
}
@media (max-width: 380px) {
  /* Side by side, the medal plus the link's nowrap exceed the column here.
     Stacking keeps both at full size instead of squeezing either. */
  .award--dfc {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 18px;
  }
  .nav { margin-inline: -6px; }
  .nav a { padding-inline: 6px; }
}

/* Scroll-driven reveals were built here and removed on test evidence.
   `animation-timeline: view()` left the final section — the one carrying the
   email and phone — at opacity 0 both at the bottom of the page and in print,
   because a last element cannot always complete its view range. A page that
   can hide its own contact details is not a trade worth making for a fade.
   ========================================================================== */

/* ==========================================================================
   Print — contracting officers and chief pilots print things.
   Drop the page to ink on white, unfold every column, and put the URLs the
   reader can no longer click into the margin.
   ========================================================================== */

@media print {
  :root {
    --ground: #FFF; --ground-deep: #FFF; --ground-soft: #FFF;
    --text: #000; --text-2: #333; --text-3: #444;
    --on-deep: #000; --on-deep-2: #333; --on-deep-3: #444;
    --rule: #BBB; --rule-deep: #BBB; --divider: #999; --accent: #000;
    --topbar-h: 0px;
  }
  @page { margin: 14mm; }

  .topbar, .plate, .skip, .masthead::after { display: none; }
  .hero, .record, .cv, .contact { display: block; }
  .capability { grid-template-columns: 1fr 1fr; background: none; gap: 0 24px; }
  .capability__cell { padding: 10px 0; break-inside: avoid; }
  .section, .masthead { padding: 12px 0 !important; }
  .missions { font-size: 40pt; }
  .hero__aside { margin-top: 16px; }
  .award, .post, .type, .hour { break-inside: avoid; }

  /* A printed link is only useful if you can read where it went */
  .coverage a::after {
    content: ' — ' attr(href);
    font-family: var(--mono);
    font-size: 8pt;
    color: #555;
    word-break: break-all;
  }
}
