@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #16213A;
  --ink-2: #3A4660;
  --muted: #5E6A80;
  --line: #DDE2EA;
  --bg: #FFFFFF;
  --soft: #F5F7FA;
  --sand: #F7F3EC;
  --teal: #0B7F78;
  --teal-dark: #08625C;
  --teal-soft: #E5F3F1;
  --amber: #B7791F;
  --amber-soft: #FBF3E3;
  --navy: #0F1A30;
  --radius: 10px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* status strip */
.status { background: var(--navy); color: #C9D3E4; font-size: 13.5px; }
.status .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3CCB7F; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(60, 203, 127, 0.18); }
.status a { color: #fff; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 750; font-size: 22px; letter-spacing: -0.03em; line-height: 1; }
.brand-sub { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .portal-link { margin-left: 6px; border: 1px solid var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 8px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 26, 48, 0.92) 0%, rgba(15, 26, 48, 0.65) 50%, rgba(15, 26, 48, 0.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero .eyebrow { color: #9FE3DC; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 760px; margin-top: 14px; font-weight: 700; }
.hero p.lede { color: #D6DEEA; font-size: 19px; max-width: 600px; margin-top: 18px; }
.hero .btn-row { margin-top: 30px; }
.hero.small .wrap { padding-top: 72px; padding-bottom: 72px; }
.hero.small h1 { font-size: clamp(34px, 4.6vw, 52px); }

.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

/* sections */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section.sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); margin-top: 10px; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }

.photo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.photo-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.photo-card h3 { font-size: 20px; }
.photo-card p { color: var(--muted); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.tag.amber { background: var(--amber-soft); color: #8A5A12; }
.tag.grey { background: var(--soft); color: var(--muted); }

/* split */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.split p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: 15px; margin-top: 4px; }
.stat .foot { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
@media (max-width: 700px) { .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* companions */
.companions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.companion { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.companion img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--soft); border-radius: 8px; padding: 10px; }
.companion h3 { font-size: 17px; margin-top: 12px; }
.companion p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* news */
.news { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news article { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.news h3 { font-size: 19px; }
.news p { color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .news article { grid-template-columns: 1fr; gap: 6px; } }

/* notice */
.notice { display: flex; gap: 16px; align-items: flex-start; background: var(--amber-soft); border: 1px solid #EED9B0; border-radius: var(--radius); padding: 20px 22px; color: #6B4A12; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice strong { color: #57390A; }

/* safety board */
.board { background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 26px 28px; font-weight: 600; max-width: 460px; box-shadow: 6px 6px 0 var(--ink); }
.board .big { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.board .count { font-size: 64px; font-weight: 800; line-height: 1; margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.board ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-weight: 500; }
.board li + li { margin-top: 6px; }
.board .updated { margin-top: 16px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.portrait { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #E9EDF3, #D5DCE6); display: grid; place-items: center; position: relative; }
.portrait svg { width: 38%; height: auto; color: #B3BDCB; }
.portrait .cap { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.person .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.person h3 { font-size: 20px; }
.person .role { color: var(--teal-dark); font-weight: 600; font-size: 15px; }
.person p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.person blockquote { margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--teal-soft); color: var(--ink-2); font-style: italic; font-size: 15.5px; }
.redact { background: var(--ink); color: var(--ink); border-radius: 2px; padding: 0 4px; user-select: none; }

.feature-person { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.feature-person .portrait { flex: 1 1 320px; max-width: 440px; border-radius: var(--radius); border: 1px solid var(--line); }
.feature-person > div:last-child { flex: 1 1 420px; min-width: 0; }
.feature-person h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 8px; }
.feature-person p { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* files */
.files { display: flex; flex-direction: column; gap: 12px; }
.file { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.file code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; color: var(--ink-2); }
.file h3 { font-size: 17px; }
.file p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
@media (max-width: 640px) { .file { grid-template-columns: 1fr; gap: 8px; } }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 760px; }
.fine { font-size: 13px; color: var(--muted); }

/* portal */
.portal { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 60px 20px; background: var(--soft); }
.login { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px 32px; }
.login h1 { font-size: 26px; margin-top: 18px; }
.login p.sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.login form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.login label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.login input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.login input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.login .btn { justify-content: center; margin-top: 4px; }
.login .msg { min-height: 22px; font-size: 14.5px; color: #A1361E; font-weight: 550; }
.login .msg.glitch { color: #6B3FA0; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 500; letter-spacing: 0.02em; }
.login .links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }

/* footer */
.site-footer { background: var(--navy); color: #AEB9CC; font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: #8D9AB1; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #D2DAE6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .tagline { margin-top: 16px; max-width: 320px; }
.legal { border-top: 1px solid #22304D; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7F8CA3; }
