:root {
  --ink: #141C2E;
  --paper: #FFFFFF;
  --concrete: #EEF1F4;
  --line: #D5DAE1;
  --text: #1B2333;
  --muted: #55607A;
  --accent: #F5811E;
  --accent-hover: #FF9440;
  --stripe: #141C2E;
  --link: #2D4A7A;
  --focus: #2D4A7A;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0A0F1B;
    --paper: #0F1626;
    --concrete: #161F33;
    --line: #2A3550;
    --text: #E7EBF3;
    --muted: #A3AEC6;
    --stripe: #0A0F1B;
    --link: #8FB0E8;
    --focus: #F5811E;
  }
}
:root[data-theme="dark"] {
  --ink: #0A0F1B;
  --paper: #0F1626;
  --concrete: #161F33;
  --line: #2A3550;
  --text: #E7EBF3;
  --muted: #A3AEC6;
  --stripe: #0A0F1B;
  --link: #8FB0E8;
  --focus: #F5811E;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--link); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-ink :focus-visible, .site-head .btn:focus-visible { outline-color: var(--accent); }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; min-height: 76px; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); line-height: 1.1; min-width: 0; }
.brand img { height: 54px; width: auto; display: block; }
.brand strong { font-family: var(--display); font-size: 1.55rem; font-weight: 700; display: block; }
.brand span { font-size: 0.875rem; color: var(--muted); display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.head-call { padding: 10px 18px; }
@media (max-width: 899px) {
  .head-call { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 22px; overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 520px) {
  .brand strong { font-size: 1.25rem; }
  .brand span { display: none; }
  .brand img { height: 46px; }
}

.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem; cursor: pointer; padding: 12px 22px; border: 2px solid var(--accent); border-radius: 4px; background: var(--accent); color: #141C2E; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--paper); border-color: var(--text); }
.on-ink .btn.ghost { color: #fff; border-color: #fff; }
.on-ink .btn.ghost:hover { background: #fff; color: #141C2E; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hazard { height: 16px; background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, var(--stripe) 16px 32px); }

/* Home hero */
.hero { background: var(--ink); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 9vw, 120px); }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: 0.94; max-width: 15ch; }
.hero .hero-logo { width: min(440px, 100%); height: auto; justify-self: center; display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .hero-logo { width: min(280px, 70%); justify-self: start; }
}

/* Page headers */
.page-head { background: var(--concrete); }
.page-head .wrap { padding-block: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 0.95; margin-bottom: 16px; }
.page-head p { font-size: 1.2rem; max-width: 40em; margin: 0; }

/* Overview plate */
.plate { background: var(--ink); color: #fff; border-top: 8px solid var(--accent); padding: 24px 26px 8px; }
.plate h2, .plate h3 { font-size: 1.7rem; margin-bottom: 8px; }
.plate dl { margin: 0; }
.plate .row { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.plate .row:first-child { border-top: 0; }
.plate dt { font-size: 0.875rem; color: #B7C0D4; }
.plate dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }

/* Welcome */
.welcome { padding-block: clamp(48px, 8vw, 96px); }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.welcome h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.welcome .lead { font-size: 1.25rem; }
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; } }

/* Values marquee */
.values { background: var(--accent); color: #141C2E; }
.values-row { display: flex; align-items: stretch; }
.values-label { flex: none; display: flex; align-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.3rem; padding: 0 22px; }
.marquee { overflow: hidden; flex: 1; min-width: 0; }
.track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.track ul { display: flex; flex: none; }
.track li { font-family: var(--display); font-weight: 700; font-size: 1.7rem; padding: 16px 0 16px 28px; white-space: nowrap; display: flex; align-items: center; }
.track li::after { content: ""; width: 9px; height: 9px; background: var(--ink); margin-left: 28px; flex: none; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; width: auto; flex-wrap: wrap; }
  .track ul { flex-wrap: wrap; }
  .track ul[aria-hidden="true"] { display: none; }
}

/* Sections */
.sec { padding-block: clamp(44px, 7vw, 88px); border-top: 1px solid var(--line); }
.page-head + .sec, .values + .sec { border-top: 0; }
.sec.tint { background: var(--concrete); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.sec-head { position: sticky; top: 100px; align-self: start; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 12px; }
.sec-head p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-head { position: static; }
}
.sec-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.sec-body h3:not(:first-child) { margin-top: 36px; }
.note { color: var(--muted); margin-top: 20px; margin-bottom: 0; }
.more { margin-top: 24px; }

/* Full-width section heading (home sections) */
.sec-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.sec-title h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.sec-title p { margin: 0; color: var(--muted); max-width: 30em; }

/* Ticked lists */
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ticks li { position: relative; padding: 11px 0 11px 24px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 10px; background: var(--accent); }
@media (max-width: 600px) { .ticks { grid-template-columns: 1fr; } }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles li { background: var(--paper); border-top: 5px solid var(--accent); padding: 22px 20px; min-height: 112px; font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; display: flex; align-items: flex-end; }
.sec.tint .tiles li { background: var(--paper); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles li { font-size: 1.25rem; min-height: 96px; padding: 18px 14px; } }

/* Steps */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.nine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { background: var(--paper); padding: 20px 20px 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.steps strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; margin-bottom: 4px; }
.steps span { color: var(--muted); display: block; }
.steps.nine li { font-weight: 600; }
@media (max-width: 960px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps.nine { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps.four, .steps.nine { grid-template-columns: 1fr; } }
.motto { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }

/* Org chart */
.org-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.org { display: flex; flex-direction: column; align-items: stretch; }
.org li { border: 2px solid var(--ink); background: var(--paper); padding: 14px 18px; font-family: var(--display); font-size: 1.35rem; font-weight: 700; position: relative; }
.org li + li { margin-top: 26px; }
.org li + li::before { content: ""; position: absolute; left: 50%; top: -28px; height: 26px; width: 2px; background: var(--ink); }
.org li:first-child { background: var(--ink); color: #fff; }
.support { border: 2px dashed var(--line); padding: 18px 20px; }
.support h3 { font-size: 1.35rem; margin-bottom: 4px; }
.support .ticks { grid-template-columns: 1fr; }
:root[data-theme="dark"] .org li { border-color: var(--line); }
:root[data-theme="dark"] .org li + li::before { background: var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .org li { border-color: var(--line); }
  :root:not([data-theme="light"]) .org li + li::before { background: var(--line); }
}
@media (max-width: 700px) { .org-wrap { grid-template-columns: 1fr; } }

/* Mission / vision / values */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 36px; }
.mv > div { background: var(--paper); padding: 24px; }
.mv h3 { font-size: 1.8rem; margin-bottom: 10px; }
.mv p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 2px solid var(--text); padding: 6px 14px; font-weight: 600; border-radius: 4px; }
@media (max-width: 700px) { .mv { grid-template-columns: 1fr; } }

/* Director */
.director { padding: 0 12px 12px 0; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.director img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 18%; display: block; background: var(--concrete); box-shadow: 12px 12px 0 var(--accent); }
.director h3 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 6px; }
.director .role { font-size: 1.2rem; margin: 0 0 4px; }
.director .role-sub { color: var(--muted); margin: 0 0 24px; }
@media (max-width: 700px) { .director { grid-template-columns: 1fr; } .director img { max-width: 300px; } }
.owner { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); flex: none; }
.owner .person.sub { margin-top: 0; }
.owner .role { margin: 0; }

/* Contact page */
.contact { background: var(--ink); color: #fff; padding-block: clamp(44px, 7vw, 88px); }
.contact a { color: #fff; }
.contact h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 0.95; margin-bottom: 32px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); }
.contact .logo-big { width: min(240px, 60%); height: auto; display: block; margin-bottom: 22px; }
.contact .person { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.contact .person.sub { font-size: 1.4rem; margin-top: 6px; }
.contact .role { color: #B7C0D4; margin-bottom: 18px; }
.contact address { font-style: normal; max-width: 26em; }
.contact dl { margin: 0; }
.contact .row { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.18); }
.contact dt { color: #B7C0D4; font-size: 0.9rem; }
.contact dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 500; overflow-wrap: anywhere; }
.contact dd a { text-decoration-color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--ink); color: #B7C0D4; }
.foot a { color: #fff; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.foot-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-block: clamp(40px, 6vw, 72px); }
.foot-main img { width: 200px; height: auto; display: block; margin-bottom: 14px; }
.foot-main h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.foot-main address { font-style: normal; }
.foot-main p { margin: 0 0 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.9rem; }
body[data-page="contact"] .foot-main { display: none; }
@media (max-width: 800px) { .foot-main { grid-template-columns: 1fr; } }
