/* Gea Ventures: page tokens and page CSS. Loaded after the kit's stylesheets.
   Palette and type: start.mjs brand --page service --bg #132A4C --ink #F2F0EA --accent #A8C49C --muted #B7C0CF
   --type hanken (DESIGN.md). Exceptions to the kit, logged in docs/DECISIONS.md: headings at 600,
   IBM Plex Mono uppercase labels/nav/buttons, pill buttons, a dark navy page on a service site. */
:root {
  --p-bg: #132a4c; --p-surface: #1d3354; --p-ink: #f2f0ea; --p-muted: #b7c0cf;
  --p-accent: #a8c49c; --p-accent-ink: #132a4c; --p-action: #a8c49c; --p-action-ink: #132a4c;
  --p-inv-bg: #f2f0ea; --p-inv-surface: #e1e1de; --p-inv-ink: #132a4c; --p-inv-muted: #4e6079;
  --p-inv-accent: #132a4c; --p-inv-accent-ink: #f2f0ea; --p-inv-action: #132a4c; --p-inv-action-ink: #f2f0ea;
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.035em;
  --rule: #2e4670;
}

/* DESIGN.md: mono uppercase for nav words, eyebrows, labels and buttons */
.t-label, .nav__link, .btn, .hero__facts dt, .pf__sector, .pf__year {
  font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em;
}
.t-label, .hero__facts dt, .pf__sector, .pf__year { font-size: 13px; }
.nav__link { font-size: 13px; }
.btn { font-size: 13px; }
.btn--xl { font-size: 15px; }

/* the client's logo in the nav and footer */
.nav__logo--img { display: inline-flex; align-items: center; }
.nav__logo--img img { height: 40px; width: auto; display: block; }
@media (max-width: 639px) { .nav__logo--img img { height: 32px; } }
.footer .nav__logo--img img { height: 48px; }

/* hero: the sage horizon arc (DESIGN.md, Shapes): one thin curve from line to line, above the facts */
.hero--statement .arc { display: block; width: 100%; height: clamp(56px, 11vh, 120px); margin-top: auto; margin-bottom: var(--s-6); overflow: visible; pointer-events: none; }
.hero--statement .arc path { fill: none; stroke: var(--p-accent); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.hero--statement .arc + .hero__facts { margin-top: 0; }
@media (max-width: 639px) { .hero--statement .arc { height: 48px; margin-bottom: var(--s-5); } }
.body-l { font-size: 18px; line-height: 1.6; }

/* about: the Gea mark, as supplied, with clear space */
.about__mark { display: flex; align-items: flex-start; justify-content: center; }
.about__mark img { width: min(100%, 440px); height: auto; }
@media (max-width: 639px) { .about__mark { justify-content: flex-start; } .about__mark img { width: 120px; } }
.help { display: grid; gap: var(--s-3); }
.help__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); font-size: var(--t-lead); }

/* team: the firm logos, off-white, on the column lines */
.wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter, 24px); row-gap: var(--s-7); }
.wall li { display: flex; align-items: center; justify-content: flex-start; height: 100px; }
.wall img { width: auto; height: 100px; max-width: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(0.95); }
@media (max-width: 1023px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .wall { row-gap: var(--s-5); } .wall li { height: 72px; } .wall img { height: 72px; } }

/* portfolio rows: logo, name, sector, year; the summary on the portfolio page */
.pf { list-style: none; padding: 0; margin: 0; }
.pf__row { border-bottom: 1px solid var(--rule); }
.pf__link { display: grid; grid-template-columns: 2fr 3fr 3fr 1fr 24px; align-items: center; column-gap: var(--gutter, 24px);
  min-height: 96px; padding: var(--s-5) 0; color: var(--ink); text-decoration: none; }
.pf--detail .pf__link { grid-template-columns: 2fr 2fr 5fr 1fr 24px; grid-template-areas: "logo name summary year arrow" "logo sector summary year arrow"; row-gap: var(--s-1); min-height: 120px; }
.pf--detail .pf__logo { grid-area: logo; } .pf--detail .pf__name { grid-area: name; } .pf--detail .pf__sector { grid-area: sector; }
.pf--detail .pf__summary { grid-area: summary; } .pf--detail .pf__year { grid-area: year; } .pf--detail .pf__arrow { grid-area: arrow; }
.pf__logo img { height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(0.95); display: block; }
.pf__name { font-size: var(--t-lead); font-weight: 500; }
.pf__sector, .pf__year { color: var(--muted); }
.pf__summary { font-size: 16px; line-height: 1.55; }
.pf__year { text-align: right; }
.pf__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur, .2s) var(--ease, ease); }
.pf__link:hover .pf__arrow, .pf__link:focus-visible .pf__arrow { transform: translate(2px, -2px); }
.pf__link:hover .pf__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 1023px) {
  .pf__link, .pf--detail .pf__link { grid-template-columns: 1fr auto 16px; grid-template-areas: "logo year arrow" "name name name" "sector sector sector" "summary summary summary"; row-gap: var(--s-2); }
  .pf__logo { grid-area: logo; } .pf__name { grid-area: name; } .pf__sector { grid-area: sector; } .pf__summary { grid-area: summary; } .pf__year { grid-area: year; } .pf__arrow { grid-area: arrow; }
  .pf:not(.pf--detail) .pf__link { grid-template-areas: "logo year arrow" "name sector sector"; }
}
@media (max-width: 639px) { .pf__link { min-height: 0; padding: var(--s-4) 0; row-gap: var(--s-1); } .pf__logo img { height: 24px; } .pf__name { font-size: 17px; } }

.footer__tm { color: var(--muted); }
.footer__col a { overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .btn--xl, .btn--xl.btn--wide { height: 44px; font: 400 13px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
  .footer__lede { font-size: 17px; }
  .closing__links { gap: var(--s-5); }
  footer.closing { padding-top: 56px; }
  footer.closing > .wrap { row-gap: 32px; gap: 32px; }
  .closing__links .grid { row-gap: var(--s-5); }
  .closing__links .footer__legal { padding-top: var(--s-4); gap: var(--s-2) var(--s-5); }
  .footer .nav__logo--img img { height: 36px; }
  .nav:not(.is-open) .nav__actions .btn { letter-spacing: 0.02em; font-size: 12px; padding-inline: var(--s-3); }
}

/* very narrow phones (under 380): the logo, the main button and the menu button do not fit one line;
   the main button moves into the menu sheet, the hero's own button is on the same screen */
@media (max-width: 379px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle { margin-left: auto; }
}
@media (max-width: 639px) { .about__mark { margin-top: var(--s-6); } }
/* short desktop screens (768 tall): the five rows fit one screen */
@media (min-width: 1024px) and (max-height: 820px) {
  .pf__link { min-height: 72px; padding: var(--s-3) 0; }
  .pf--detail .pf__link { min-height: 96px; }
}
