:root {
  --ink: #163f48;
  --teal: #247f86;
  --blue: #356d91;
  --saffron: #d99a2b;
  --paper: #f4ead2;
  --paper-light: #fff9ec;
  --charcoal: #24343a;
  --muted: #68797d;
  --line: #c9b992;
  --shadow: 0 18px 60px rgba(22, 63, 72, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(rgba(22,63,72,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,63,72,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--ink); text-underline-offset: .2em; }
a:hover { color: var(--teal); }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .8rem 1rem; border-radius: .6rem; background: var(--ink); color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(22,63,72,.16);
  background: rgba(244,234,210,.94);
  backdrop-filter: blur(14px);
}
.header-inner { max-width: 1180px; margin: auto; padding: .8rem 1.3rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand small { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--paper-light); border-radius: .7rem; padding: .6rem .8rem; font-weight: 800; }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .2rem; }
.site-nav a { padding: .55rem .7rem; border-radius: .55rem; text-decoration: none; font-size: .87rem; font-weight: 750; }
.site-nav a[aria-current="page"], .site-nav a:hover { background: var(--ink); color: white; }

main { min-height: 70vh; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.hero { padding: clamp(3rem, 8vw, 7.5rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--teal); font-weight: 900; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 6.4rem); letter-spacing: -.055em; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: -.04em; }
h3 { margin: 0 0 .55rem; font-size: 1.25rem; }
.lead { max-width: 62ch; margin: 1.3rem 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #40565c; }
.hero-art { position: relative; border: 1px solid var(--line); padding: .75rem; background: var(--paper-light); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-art::after { content: "OFFLINE FIELD DESK"; position: absolute; right: 1.5rem; bottom: -1rem; padding: .45rem .75rem; color: white; background: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; padding: .7rem 1rem; border: 1px solid var(--ink); border-radius: .7rem; font-weight: 850; text-decoration: none; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; color: var(--ink); }

.lane-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; margin: 3rem 0 0; align-items: end; }
.lane-tab { min-height: 120px; padding: 1.3rem; color: white; text-decoration: none; box-shadow: var(--shadow); }
.lane-tab:nth-child(1) { background: var(--ink); clip-path: polygon(0 12%, 10% 0, 100% 0, 100% 100%, 0 100%); }
.lane-tab:nth-child(2) { background: var(--teal); }
.lane-tab:nth-child(3) { background: var(--saffron); color: var(--charcoal); clip-path: polygon(0 0, 90% 0, 100% 12%, 100% 100%, 0 100%); }
.lane-tab span { display: block; font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.lane-tab strong { display: block; margin-top: .3rem; font-size: 1.35rem; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section.alt { background: rgba(255,249,236,.75); border-block: 1px solid rgba(22,63,72,.12); }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); background: var(--paper-light); padding: 1.35rem; box-shadow: 0 10px 28px rgba(22,63,72,.06); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1rem; }
.card p:last-child { margin-bottom: 0; }
.number { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding-inline: .4rem; margin-bottom: .8rem; color: white; background: var(--teal); border-radius: 50%; font-weight: 900; }
.note { border-left: .45rem solid var(--saffron); background: #fff6df; padding: 1rem 1.2rem; }
.boundary { border: 1px solid var(--teal); background: rgba(36,127,134,.08); padding: 1.2rem; }
.policy-list { display: grid; gap: 1rem; counter-reset: policy; }
.policy-section { position: relative; padding: 1.4rem 1.4rem 1.4rem 5rem; border: 1px solid var(--line); background: var(--paper-light); }
.policy-section::before { counter-increment: policy; content: counter(policy, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.2rem; color: var(--teal); font-size: 1.35rem; font-weight: 950; }
.policy-section h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.policy-section p { margin-bottom: 0; }
.source-url { overflow-wrap: anywhere; font-size: .85rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 850; }
.faq details p { max-width: 75ch; }

.site-footer { margin-top: 3rem; padding: 3rem 0; color: #dbe8e8; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: white; font-size: 1.35rem; }
.site-footer a { color: white; }
.site-footer ul { padding-left: 1.2rem; }
.fine { color: #b6c9ca; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; margin: .8rem 0 0; flex-direction: column; }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { transform: none; }
  .lane-tabs { grid-template-columns: 1fr; }
  .lane-tab { min-height: 95px; clip-path: none !important; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.7rem; }
  .shell { width: min(100% - 1.25rem, 1120px); }
  .policy-section { padding-left: 1.2rem; padding-top: 4rem; }
  .policy-section::before { left: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

