/* ============================================================
   ODYNEA — corporate stylesheet
   Self-hosted type, no JavaScript, no external requests.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrainsmono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------------- tokens ---------------- */

/* Palette derived from the ODYNEA logo:
   crimson #b71021 (ring and orbiting dot), near-black ink, cool grey #a2a2ac.
   Every neutral below is tinted toward that grey so the brand red never sits
   on a warm ground. */

:root {
  --ink:        #16161a;
  --ink-2:      #33333c;
  --paper:      #ffffff;
  --paper-warm: #f6f6f8;
  --paper-deep: #ececed;
  --rule:       #dcdce2;
  --rule-soft:  #e9e9ee;
  --muted:      #62626e;
  --accent:     #b71021;
  --accent-ink: #9c0d1c;

  --warn-bg:    #fdf3d8;
  --warn-text:  #6d4f06;
  --warn-rule:  #cfa93a;

  /* Dark surface used for the compositional bands — utility bar, CTA, footer.
     Kept separate from --ink so those bands stay dark on their own terms,
     independent of any later change to the page's text colour. */
  --surface-dark:      #16161a;
  --on-surface:        #f2f2f4;
  --on-surface-mut:    #a2a2ac;
  --surface-dark-rule: #2e2e36;
  --surface-dark-faint:#7a7a86;

  /* Brand red inside the logo mark. Lifted on dark grounds, where #b71021
     falls below a readable contrast against near-black. */
  --mark-accent: #b71021;
  --accent-on-dark: #e0505f;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1180px;
  --gut: 32px;
  --sect: 104px;

  /* The site commits to a light presentation. Declaring it here keeps browser
     UI — scrollbars, focus rings, native controls — light as well, instead of
     letting the visitor's OS preference recolour them against the page. */
  color-scheme: light;
}

/* No prefers-color-scheme override: the design is light in every context.
   The dark bands (utility bar, CTA, footer) are compositional, not a theme,
   and are driven by the fixed --surface-dark tokens above. */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

@media (max-width: 700px) { :root { --gut: 20px; --sect: 68px; } }

/* ---------------- type ---------------- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.042em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.032em;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.4;
}

p { margin: 0 0 18px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(17.5px, 1.9vw, 20.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

.muted { color: var(--muted); }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* eyebrow + section numbering */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 120px;
}

.snum {
  color: var(--muted);
  font-weight: 500;
}

/* ---------------- utility bar ---------------- */

.utility {
  background: var(--surface-dark);
  color: var(--on-surface-mut);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 38px;
  flex-wrap: wrap;
}

.utility a { color: var(--on-surface); text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility .sep { color: var(--surface-dark-rule); margin: 0 10px; }

@media (max-width: 620px) { .utility .hide-sm { display: none; } }

/* ---------------- masthead ---------------- */

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { display: block; flex: none; color: var(--ink); overflow: visible; }

/* Both parts of the mark carry the brand crimson. On near-black grounds the
   token lifts to a brighter red rather than losing the colour altogether. */
.mark-ring   { stroke: var(--mark-accent); }
.mark-orbit  { fill:   var(--mark-accent); }

.brand .word {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

nav.site { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

nav.site a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

nav.site a:hover { color: var(--ink); }

nav.site a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (max-width: 780px) {
  header.site .wrap { min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  nav.site { width: 100%; gap: 22px; }
  nav.site a { font-size: 14px; }
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .15s ease, color .15s ease;
}

.btn:hover { background: transparent; color: var(--ink); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

.btn.on-dark {
  background: var(--on-surface);
  border-color: var(--on-surface);
  color: var(--surface-dark);
}
.btn.on-dark:hover { background: transparent; color: var(--on-surface); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------------- hero ---------------- */

.hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 78%);
}

.hero h1 { max-width: 20ch; }

/* ---------------- sections ---------------- */

section { padding: var(--sect) 0; }

.band-warm { background: var(--paper-warm); }
.band-deep { background: var(--paper-deep); }

.band-dark {
  background: var(--surface-dark);
  color: var(--on-surface);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--on-surface); }
.band-dark p { color: var(--on-surface-mut); }
.band-dark .eyebrow { color: var(--accent-on-dark); }
.band-dark .eyebrow::after { background: var(--surface-dark-rule); }

.sect-head { max-width: 62ch; margin-bottom: 52px; }
.sect-head p { color: var(--muted); margin-bottom: 0; }
.sect-head h2 { margin-bottom: 16px; }

/* ---------------- columns ---------------- */

.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.cols-3 > .col {
  padding: 34px 32px 34px 0;
  border-bottom: 1px solid var(--rule);
}

.cols-3 > .col + .col {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}

@media (max-width: 860px) {
  .cols-3 > .col + .col { padding-left: 0; border-left: none; }
}

.col .kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.col h3 { margin-bottom: 10px; }
.col p { font-size: 15.5px; color: var(--muted); margin-bottom: 0; }

/* ---------------- numbered steps ---------------- */

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  counter-reset: step;
}

ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

ol.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

ol.steps h3 { margin-bottom: 8px; }
ol.steps p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }

@media (max-width: 640px) {
  ol.steps > li { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------------- lists ---------------- */

ul.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 66ch;
}

ul.ticks li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
  font-size: 15.5px;
}

ul.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 9px;
  height: 1.5px;
  background: var(--accent);
}

/* ---------------- data table (legal / contact) ---------------- */

dl.facts {
  display: grid;
  grid-template-columns: minmax(190px, 290px) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--rule);
}

dl.facts dt,
dl.facts dd {
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

dl.facts dt {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 28px;
}

dl.facts dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 660px) {
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { padding: 18px 0 0; border-bottom: none; }
  dl.facts dd { padding-top: 4px; }
}

/* ---------------- leadership ---------------- */

.leader-grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

@media (max-width: 780px) {
  .leader-grid { grid-template-columns: minmax(0, 330px); }
}

.portrait { margin: 0; }

/* Circular medallion. The photograph's own backdrop is a slate grey that does
   not match the navy band, so a hairline ring keeps the disc edge deliberate. */
.portrait img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--surface-dark-rule);
  background: #30323b;
}

.portrait figcaption {
  max-width: 300px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-surface-mut);
}

.portrait figcaption strong {
  display: block;
  color: var(--on-surface);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 3px;
}

/* ---------------- notice ---------------- */

.notice {
  border-left: 3px solid var(--accent);
  background: var(--paper-warm);
  padding: 24px 28px;
  margin: 0;
}

.notice p { color: var(--ink-2); margin-bottom: 0; }

/* placeholder marker — deliberately conspicuous */
.todo {
  display: inline-block;
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px dashed var(--warn-rule);
  border-radius: 3px;
  padding: 1px 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  font-family: var(--sans);
}

/* ---------------- CTA band ---------------- */

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .cta-grid { grid-template-columns: 1fr; }
}

/* ---------------- footer ---------------- */

footer.site {
  background: var(--surface-dark);
  color: var(--on-surface-mut);
  padding: 72px 0 34px;
  font-size: 14.5px;
}

footer.site h2, footer.site .brand { color: var(--on-surface); }
footer.site .brand svg { color: var(--on-surface); }
footer.site, .band-dark, .utility { --mark-accent: var(--accent-on-dark); }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--surface-dark-rule);
}

@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 34px; } }

.foot-grid h2 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-surface-mut);
  margin-bottom: 18px;
}

.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 11px; }

.foot-grid a { color: var(--on-surface); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-on-dark); }

.foot-grid address {
  font-style: normal;
  line-height: 1.75;
  color: var(--on-surface-mut);
}

.foot-brandline { margin-bottom: 18px; }
.foot-brandline p { color: var(--on-surface-mut); font-size: 14.5px; max-width: 40ch; margin: 0; }

.colophon {
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  color: var(--surface-dark-faint);
  font-variant-numeric: tabular-nums;
}

.colophon a { color: var(--surface-dark-faint); text-decoration: none; }
.colophon a:hover { color: var(--on-surface); }
