/* Shared page chrome for every URIM page: base, header, menu, dark bands, footer.
   Desktop values are taken verbatim from the handoff reference (reference-home-v8.html). */
@import url('./tokens.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--pearl); color: var(--ink); font: 400 var(--fs-body)/var(--lh-body) var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
section { position: relative; }
.sec { padding: 120px 0; }
/* section label: "01 — WHAT WE DO" followed by a short green-to-electric line */
.eyebrow-row { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.eyebrow-row::after { content: ""; width: 96px; height: 1px; background: linear-gradient(90deg, #82B9B2, #245D83); flex: none; transform: translateY(calc(var(--fs-label) * .1)); }  /* .1em = onto the height of the label's own dash, so the rule continues it (owner 2026-12-04) */
.t-h2 { max-width: 22ch; }
.lead { margin-top: 28px; }
.btn, .btn-dark-primary, .btn-dark-ghost { white-space: nowrap; }

/* Brushed silver — dark bands only: wordmark and display headlines */
.silver {
  background: linear-gradient(180deg, #E8EDF2 0%, #C5CED7 45%, #9AAAB7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Dark band base ---------- */
.dark { background: var(--graphite-950); color: var(--ink-inverse); }
.dark .t-eyebrow { color: var(--accent-dark); }
.dark .t-label { color: #9EB4C6; }
.dark p { color: #B4C7D9; }

/* ---------- Optical left edge ----------
   General Sans draws its straight-stemmed capitals (U R I B D E H…) 0.08em in from the text box, at every weight.
   That gap grows with size (72px headline: 6px, 16px paragraph: 1px), so text pulled back by .08em lands its ink,
   not its box, on the same line as buttons, rules and slider bars. */
.brand .wm, .brand .tagline, .hero :is(h1,h2), .hero .sub, .t-display, .t-h1, .t-h2 { margin-left: -.08em; }

/* ---------- Header ---------- */
.hdr { position: relative; z-index: 3; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; height: 96px; }
/* Wordmark is live text: thin, widely tracked, silver. The tracking also trails the last letter, so it is pulled back. */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; flex: none; }
.brand .wm { font: 300 24px/1 var(--font-display); letter-spacing: .47em; margin-right: -.47em;
  background: linear-gradient(180deg, #E8EDF2 0%, #C5CED7 45%, #9AAAB7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tagline { font: 400 10px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #C2CED8; white-space: nowrap; }
.hdr nav ul { display: flex; gap: 32px; list-style: none; }
.hdr nav a { display: block; padding: 10px 0; text-decoration: none; font: 500 var(--fs-nav)/1 var(--font-body); letter-spacing: .01em; color: #E7EDF2; border-bottom: 1px solid transparent; }
.hdr nav a:hover, .hdr nav a.on { color: #FFFFFF; border-bottom-color: var(--accent-vivid); }
.hdr .btn-dark-ghost { display: none; }  /* the 2026 header carries navigation only; the briefing CTA lives in the hero and the menu */
.menu { display: none; }

/* ---------- Shared content pieces ---------- */
.ph { color: var(--ink-muted); }
.s02 { background: var(--pearl-subtle); }
.link-dark { font: 500 var(--fs-button)/1.3 var(--font-body); color: var(--ink-inverse); text-decoration: none; border-bottom: 1.5px solid var(--accent-vivid); padding-bottom: 3px; display: inline-flex; gap: 8px; align-items: center; }

/* Dark hero band (Home, What we do) */
.hero { min-height: 900px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }  /* each page supplies its own picture or scene */
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,28,44,.92) 0%, rgba(8,28,44,.55) 46%, rgba(8,28,44,.15) 70%, rgba(8,28,44,.85) 100%); }
.hero :is(h1,h2) { font: var(--fw-display) var(--fs-display)/var(--lh-display) var(--font-display); letter-spacing: var(--ls-display); max-width: none; }
.hero :is(h1,h2) .silver { padding-bottom: .06em; }
.hero .rule { width: 160px; height: 1.5px; background: var(--aurora-line-dark); margin: 44px 0 36px; }
.hero .sub { font: 400 var(--fs-lead)/var(--lh-lead) var(--font-body); color: #C2D0DC; max-width: 36em; }
.hero .ctas { display: flex; gap: 28px; align-items: center; margin-top: 44px; }
/* Africa-at-night scene (home hero, lock screen): aurora light behind a globe that is transparent around the planet.
   The page sets --globe-w/-r/-t and --aurora-w/-r/-t/-o to place each layer. */
.hero-bg:has(.globe)::after { content: none; }
.hero-bg .aurora, .hero-bg .globe { position: absolute; aspect-ratio: 1844 / 853; background: center / 100% 100% no-repeat; }
.hero-bg .aurora { width: var(--aurora-w); right: var(--aurora-r); top: var(--aurora-t); opacity: var(--aurora-o); background-image: url(img/hero-aurora.webp);
  mix-blend-mode: screen; -webkit-mask-image: linear-gradient(transparent 0%, #000 16%, #000 39%, rgba(0,0,0,.7) 47%, transparent 57%); mask-image: linear-gradient(transparent 0%, #000 16%, #000 39%, rgba(0,0,0,.7) 47%, transparent 57%); }
.hero-bg .globe { width: var(--globe-w); right: var(--globe-r); top: var(--globe-t); background-image: url(img/hero-globe.webp); }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.chip.nda { background: var(--accent-vivid-tint); color: var(--accent-primary); border-color: rgba(36,93,131,.35); }


/* Closing CTA (light band with the light aurora artwork) */
.cta { padding: 160px 0; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; background: url(img/hero-light-v5.jpg) right center / cover no-repeat; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 70% at 45% 50%, rgba(231,237,242,.96) 30%, rgba(231,237,242,.55) 70%, rgba(231,237,242,.1) 100%); }
.cta .wrap { position: relative; }
.cta h2 { font: 300 72px/1.08 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.cta p { font-size: var(--fs-lead); color: var(--ink-secondary); margin: 24px auto 44px; max-width: 34em; }
.cta .alt { margin-top: 26px; }

/* Sideways-scrolling diagrams (classes set by site.js): fade the edge that hides more */
.more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.swipe-hint { margin: 10px 0 4px; color: var(--accent-primary); text-align: right; }
.swipe-hint[hidden] { display: none; }

/* ---------- Footer: wordmark, site links, social and legal; one quiet midnight band on every page ---------- */
.ftr { padding: 0 0 64px; background: #0B2336; color: var(--ink-inverse); }
.ftr-grid { display: grid; grid-template-columns: 1.1fr 1.15fr .55fr; gap: 64px; align-items: start; padding-top: 48px; border-top: 1px solid rgba(158,180,198,.27); }
.ftr-nav, .ftr-legal { display: grid; gap: 16px 24px; align-items: start; }
.ftr-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr-nav a, .ftr-legal a { justify-self: start; font-size: var(--fs-small); line-height: 1.5; color: #C2D0DC; text-decoration: none; }
.ftr-legal a { color: #9EB4C6; }
.ftr-legal span { margin-left: 4px; font-size: var(--fs-label); }
.ftr-nav a:hover, .ftr-legal a:hover { color: var(--ink-inverse); text-decoration: underline; text-decoration-color: var(--accent-vivid); text-underline-offset: 5px; }
.ftr a:focus-visible { outline: 2px solid var(--accent-vivid); outline-offset: 4px; }
.ftr-solo .ftr-grid { border-top: 0; }  /* legal pages: no closing band above, so no divider either */
/* the footer signs off with a larger wordmark than the header: by now the visitor has met URIM */
/* footer logo = the nav lockup, same size and silver */

/* ---------- Legal / document pages ---------- */
.page-head { padding-bottom: 88px; overflow: hidden; }
.page-head .page-title { padding-top: 96px; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 15% 0%, rgba(130,185,178,.09), transparent 70%), radial-gradient(50% 70% at 95% 100%, rgba(36,93,131,.10), transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { font: 300 var(--fs-display)/1.06 var(--font-display); letter-spacing: -0.02em; padding-bottom: .06em; }
.page-head .stand { margin-top: 24px; font-size: var(--fs-body); line-height: var(--lh-body); max-width: 44em; }
.doc { padding: 96px 0 120px; }
.doc .wrap > * { max-width: 760px; }
.doc h2 { font: 300 var(--fs-h3)/var(--lh-h3) var(--font-body); letter-spacing: -0.01em; color: var(--ink); margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--silver-300); }
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc p, .doc address, .doc li { font: 400 var(--fs-body)/var(--lh-body) var(--font-body); color: var(--ink-secondary); font-style: normal; }
.doc h2 + p, .doc h2 + address { margin-top: 16px; }
.doc p + p, .doc p + address, .doc address + p, .doc ul + p, .doc p + ul { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 4px; }
.doc li::marker { color: var(--accent-primary); }
.doc strong { font-weight: 500; color: var(--ink); }
.doc a { color: var(--accent-primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--ink); }
.doc .doc-note { margin-top: 64px; padding: 24px 28px; background: var(--pearl-card); border: 1px solid var(--silver-200); border-radius: var(--radius-md); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted); }

/* ================= Responsive (design is 1440 px) ================= */
@media (max-width: 1240px) {
  .hdr nav ul { gap: 28px; }
  .cta h2 { font-size: clamp(36px, 5.8vw, 72px); }
}
@media (max-width: 1080px) {
  .ftr-grid { gap: 24px; }
  .hdr nav, .hdr .btn-dark-ghost { display: none; }
  .menu { display: block; position: relative; }
  /* round menu button: two hairlines that cross into an X when open. "Menu" stays as the accessible name. */
  .menu summary { list-style: none; cursor: pointer; position: relative; width: 44px; height: 44px; border: 1px solid rgba(158,180,198,.4); border-radius: 50%; font-size: 0; color: #DAE4EB; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::before, .menu summary::after { content: ""; position: absolute; left: 13px; right: 13px; height: 1px; background: currentColor; transition: transform .15s; }
  .menu summary::before { top: 18px; }
  .menu summary::after { top: 24px; }
  .menu[open] summary::before { transform: translateY(3px) rotate(45deg); }
  .menu[open] summary::after { transform: translateY(-3px) rotate(-45deg); }
  .menu-panel { position: absolute; right: 0; top: 56px; z-index: 10; width: min(300px, calc(100vw - 40px)); display: grid; gap: 4px; padding: 12px; background: #05263E; border: 1px solid rgba(158,180,198,.36); border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.33); }
  .menu-panel a:not(.btn-dark-primary) { display: block; padding: 12px; font: 400 16px/1 var(--font-body); color: #C2D0DC; text-decoration: none; border-radius: var(--radius-sm); }
  .menu-panel a:not(.btn-dark-primary):hover { background: rgba(231,237,242,.06); color: #FFFFFF; }
  .menu-panel .btn-dark-primary { margin-top: 8px; }
  .t-h2 { max-width: 24ch; }
  h1, h2, h3 { text-wrap: balance; }
}
@media (max-width: 640px) {
  .ftr { padding-bottom: 48px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .ftr .brand .tagline { display: block; }  /* the footer has room for the full lockup */
  .ftr-legal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 24px; border-top: 1px solid rgba(158,180,198,.2); }
  .ftr-legal a:last-child { grid-column: 1 / -1; }
  .wrap { padding: 0 clamp(20px, 6.67vw, 34px); }
  .sec { padding: 80px 0; }
  .hdr .wrap { height: 72px; }
  .brand .wm { font-size: 20px; }
  .eyebrow-row { gap: 14px; }
  .eyebrow-row::after { width: 64px; }
  .brand .tagline { display: none; }  /* at phone size the tagline would be 8px: decoration, not reading */
  .cta { padding: 96px 0; }
  .cta h2 { font-size: 40px; }
  .cta p { font-size: 18px; margin: 20px auto 36px; }
  .cta-bg { background-position: 70% center; }
  .cta-bg::after { background: radial-gradient(90% 60% at 50% 50%, rgba(231,237,242,.96) 40%, rgba(231,237,242,.6) 80%, rgba(231,237,242,.2) 100%); }
  .page-head { padding-bottom: 56px; }
  .page-head .page-title { padding-top: 56px; }
  .page-head h1 { line-height: 1.1; }
  .doc { padding: 56px 0 80px; }
  .doc h2 { margin-top: 44px; padding-top: 28px; }
  .doc .doc-note { margin-top: 48px; padding: 20px; }
}
@media (max-width: 640px) {
  /* Silver headlines wrap on phones: each sentence becomes its own box so it can balance,
     and the gradient repeats per line so wrapped lines don't fade to grey. */
  h1 .silver, h2 .silver { display: inline-block; background-size: 100% 1lh; background-repeat: repeat-y; }
}
@media (max-width: 400px) {
  .cta h2 { font-size: 34px; }
}
