/* Victory Commercial
   Palette: Ink #131541, Slate #2B4568, Graphite #686F8C, Mist #9A9FB3, Oxblood #7E1516
   Type: Nexa (display, licensed webfont required), Barlow (body and data)
   Nexa stand-in until license files are supplied: Hanken Grotesk.
   To activate Nexa, add @font-face rules here and it will take over automatically. */

/*
@font-face {
  font-family: "Nexa";
  src: url("fonts/Nexa-Light.woff2") format("woff2");
  font-weight: 300;
}
@font-face {
  font-family: "Nexa";
  src: url("fonts/Nexa-Bold.woff2") format("woff2");
  font-weight: 700;
}
*/

:root {
  --ink: #131541;
  --slate: #2B4568;
  --graphite: #686F8C;
  --mist: #9A9FB3;
  --oxblood: #7E1516;
  --paper: #FAFBFC;
  --display: "Nexa", "Hanken Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --measure: 62ch;
  --margin: clamp(1.25rem, 6vw, 6rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */

header {
  padding: 2rem var(--margin) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--graphite); font-weight: 300; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav a {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
nav a:hover { color: var(--ink); border-color: var(--mist); }
nav a[aria-current="page"] { color: var(--oxblood); border-color: var(--oxblood); }
nav a:focus-visible, a:focus-visible, .contact-link:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

/* ---------- Page scaffold: document column with exhibit rail ---------- */

main { padding: 0 var(--margin) 6rem; }

.doc {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(12rem, 20rem);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.doc > .rail { padding-top: 0.6rem; }

@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc > .rail { padding-top: 0; }
}

section { padding-top: 4.5rem; }
section + section { border-top: 1px solid var(--mist); margin-top: 4.5rem; }

/* ---------- Type scale ---------- */

h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 24ch;
}
h1 strong { font-weight: 700; }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

p { max-width: var(--measure); }
p + p { margin-top: 1rem; }

a { color: var(--slate); }

.lede { font-size: 1.15rem; color: var(--ink); }

.kicker {
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 1rem;
}

/* ---------- Rail metadata, set like a document's margin notes ---------- */

.rail dl { border-top: 2px solid var(--ink); }
.rail .meta-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--mist);
}
.rail dt {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.rail dd {
  font-size: 0.95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Signature: the reporting package index ---------- */

.package {
  border-top: 2px solid var(--ink);
  max-width: var(--measure);
}
.package li {
  list-style: none;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--mist);
}
.package .no {
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.package .item { color: var(--ink); }
.package .item a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--mist); transition: border-color 120ms ease; }
.package .item a:hover { border-color: var(--slate); }
.package .freq {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* Section reference numbers on Approach, mapped to the index above */
.secref {
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--graphite);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

/* ---------- Facts pending. Never invented, always visible. ---------- */

.needs-fact {
  font-weight: 500;
  color: var(--graphite);
  border: 1px dashed var(--mist);
  padding: 0 0.35em;
  white-space: nowrap;
}

/* ---------- Portfolio schedule ---------- */

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem 2.5rem;
  padding-top: 2rem;
}
.asset figure { margin: 0; }
.asset .plate {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(154,159,179,0.16) 14px, rgba(154,159,179,0.16) 15px),
    #EFF1F5;
  border: 1px solid var(--mist);
  display: grid;
  place-items: center;
}
.asset .plate span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  text-align: center;
  padding: 0 1rem;
}
.asset figcaption {
  border-top: 2px solid var(--ink);
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  font-size: 0.9rem;
}
.asset .aname { font-weight: 800; color: var(--ink); }
.asset .ameta { color: var(--graphite); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Team ---------- */

.principals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3rem 2.5rem; padding-top: 2rem; }
.principal .plate {
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(154,159,179,0.16) 14px, rgba(154,159,179,0.16) 15px),
    #EFF1F5;
  border: 1px solid var(--mist);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.principal .plate span {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--graphite); text-align: center; padding: 0 1rem;
}
.principal h3 { margin-bottom: 0.2rem; }
.principal .role { font-size: 0.9rem; color: var(--graphite); margin-bottom: 0.75rem; }
.principal p { font-size: 0.95rem; }

/* ---------- Contact, set like a cover sheet ---------- */

.coversheet { border-top: 2px solid var(--ink); max-width: var(--measure); }
.coversheet .row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--mist);
}
.coversheet .label {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-top: 0.2rem;
}
.coversheet .value { color: var(--ink); font-variant-numeric: tabular-nums; }
.coversheet .value a { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--mist); }
.coversheet .value a:hover { border-color: var(--slate); }
@media (max-width: 560px) {
  .coversheet .row { grid-template-columns: 1fr; gap: 0.2rem; }
}

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

.contact-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 2px solid var(--oxblood);
  padding-bottom: 0.3rem;
  transition: opacity 120ms ease;
}
.contact-link:hover { opacity: 0.75; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--mist);
  padding: 2rem var(--margin) 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--graphite);
}
footer a { color: var(--graphite); }
