/* ANKYLO — shared styles for every page. No build step: edit and ship. */

:root {
  --bg: #070809;
  --bg-2: #0c0e10;
  --bg-3: #131619;
  --bg-4: #1a1e22;
  --line: rgba(243, 241, 234, .09);
  --line-2: rgba(243, 241, 234, .16);
  --fg: #f3f1ea;
  --fg-2: #b8bbbf;
  --fg-3: #80858b;
  --bone: #f3f1ea;
  --bone-2: #e9e6dd;
  --ink: #0b0c0e;
  --graphite: #3a3e44;
  --amber: #e3a53c;
  --amber-2: #f0b955;
  --az: #3dbba5;
  --px: #52b957;
  --tac: #b7bf74;
  --resp: #ff7a2e;
  --display: 'Saira', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 4.2vw, 56px);
  --max: 1320px;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--bone); color: var(--ink); padding: 10px 14px; font-family: var(--mono); font-size: 12px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--amber-2); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow.plain::before { display: none; }
.display {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(46px, 9.4vw, 140px); line-height: .9; letter-spacing: -.02em;
}
.h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(34px, 5.6vw, 76px); line-height: .96; letter-spacing: -.015em;
}
.h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(22px, 2.3vw, 30px); line-height: 1.04; letter-spacing: -.005em;
}
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--fg-2); max-width: 40em; }
.dim { color: var(--fg-3); }
.am { color: var(--amber-2); }
.mono { font-family: var(--mono); }
.head { max-width: 920px; }
.head .h2, .head .display { margin-top: 22px; }
.head .lede { margin-top: 24px; }
.head.center { margin: 0 auto; text-align: center; }
.head.center .lede { margin-left: auto; margin-right: auto; }
.head.center .eyebrow::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 22px; border: 1px solid var(--fg); background: var(--fg); color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.amber:hover { background: transparent; color: var(--amber-2); border-color: var(--amber-2); }
.btn.sm { padding: 10px 16px; font-size: 11.5px; }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn.ink:hover { background: transparent; color: var(--ink); }
.btn .ar { font-family: var(--body); transition: transform .2s; }
.btn:hover .ar { transform: translateX(3px); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.textlink {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
  display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
  transition: border-color .2s, color .2s;
}
.textlink:hover { border-color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid, .nav.open {
  background: rgba(7, 8, 9, .82); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand svg { width: 34px; height: auto; }
.brand img { height: 13px; width: auto; }
.navlinks { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.navlinks a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
  transition: color .2s; position: relative;
}
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--fg); }
.navlinks a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--amber); }
.navlinks .btn { color: var(--ink); padding: 10px 16px; font-size: 11.5px; }
.navlinks .btn:hover { color: var(--fg); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; margin-right: -10px; }
.menu-btn i { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: transform .25s, opacity .25s; }
.nav.open .menu-btn i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { opacity: 0; }
.nav.open .menu-btn i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: rgba(7, 8, 9, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 28px var(--gutter) 40px; display: none; flex-direction: column; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--display); font-weight: 600; font-size: 34px; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; color: var(--fg-3); margin-top: 4px; }
.mobile-menu .btn { margin-top: 28px; justify-content: center; font-family: var(--mono); font-size: 13px; padding: 18px; border-bottom: 1px solid var(--fg); }
@media (max-width: 900px) {
  .navlinks { display: none; }
  .menu-btn { display: flex; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 176px) 0; }
.section.tight { padding: clamp(72px, 9vw, 120px) 0; }
.section.bone { background: var(--bone); color: var(--ink); color-scheme: light; }
.section.bone + .section.bone { border-top: 1px solid rgba(11, 12, 14, .14); }
.section.bone .lede { color: var(--graphite); }
.section.bone .eyebrow { color: #9a6514; }
.section.bone .dim { color: #6b7076; }
.section.raised { background: var(--bg-2); }
.rule { height: 1px; background: var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 0 clamp(64px, 9vh, 110px); overflow: hidden; isolation: isolate;
}
.hero canvas.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 20%, transparent 30%, rgba(7, 8, 9, .85) 85%),
    linear-gradient(180deg, rgba(7, 8, 9, .2) 0%, transparent 30%, rgba(7, 8, 9, .9) 100%);
}
.hero .display { max-width: 11ch; }
.hero .lede { margin-top: 30px; max-width: 34em; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 7vh, 80px); padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3);
}
.hero-foot .cue { display: inline-flex; align-items: center; gap: 12px; }
.hero-foot .cue::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--fg-3), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-4px); opacity: .3; } 50% { transform: translateY(4px); opacity: 1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- statement (big text) ---------- */
.statement {
  font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.08;
  letter-spacing: -.012em; max-width: 22ch;
}
.statement .dim { color: var(--fg-3); }
.section.bone .statement .dim { color: #8b8f94; }

/* ---------- principles list ---------- */
.principles { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.principle .n { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--amber-2); }
.principle h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.02; }
.principle p { color: var(--fg-2); font-size: 17px; }
@media (max-width: 820px) {
  .principle { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
}
.aside-note {
  margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 90px 1fr; gap: 32px;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--fg-2);
}
.aside-note b { color: var(--fg); font-weight: 500; }
@media (max-width: 820px) { .aside-note { grid-template-columns: 1fr; gap: 0; } .aside-note > span { display: none; } }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(11, 12, 14, .14); border: 1px solid rgba(11, 12, 14, .14); margin-top: clamp(48px, 6vw, 80px); }
.pillar { background: var(--bone); padding: 32px 28px 30px; display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.pillar .top { display: flex; justify-content: space-between; align-items: center; }
.pillar .n { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: #9a6514; }
.pillar svg.ico { width: 30px; height: 30px; color: var(--ink); }
.pillar h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.02; margin-top: 18px; }
.pillar .tag { font-family: var(--display); font-size: 19px; line-height: 1.25; color: var(--ink); }
.pillar p { font-size: 15px; color: var(--graphite); line-height: 1.6; }
.pillar .prod { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(11, 12, 14, .14); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #6b7076; }
.pillar .prod a { color: var(--ink); border-bottom: 1px solid rgba(11, 12, 14, .3); }
.pillar .prod a:hover { border-color: var(--ink); }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.closing { margin-top: clamp(48px, 6vw, 72px); font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; max-width: 30ch; }

/* ---------- product panels (home) ---------- */
.product {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  align-items: center; padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; }
.product .kicker { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.product .kicker b { font-weight: 500; color: var(--accent, var(--amber-2)); }
.product .name { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 8.6vw, 128px); line-height: .86; letter-spacing: -.02em; margin-top: 22px; }
.product .tagline { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; margin-top: 18px; max-width: 18ch; }
.product .lede { margin-top: 20px; font-size: 17.5px; }
.product .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); border: 1px solid var(--line-2); padding: 7px 11px; }
.product .stage { position: relative; display: flex; justify-content: center; }
.product.flip .copy { order: 2; }
.product.flip .stage { order: 1; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product.flip .copy, .product.flip .stage { order: 0; }
}

/* ---------- device frames ---------- */
.dev { position: relative; }
.dev video, .dev img.shot { display: block; width: 100%; height: auto; background: #0e1012; }
.dev-phone { width: min(100%, var(--pw, 330px)); container-type: inline-size; }
.dev-phone .screen {
  position: relative; overflow: hidden; background: #000;
  border: 3.3cqw solid #0d0e10; border-radius: 17cqw;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 .9cqw #24272b, 0 0 0 calc(.9cqw + 1px) rgba(255, 255, 255, .06),
    0 60px 100px -40px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.dev-phone .screen > video, .dev-phone .screen > img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; }
.dev-tablet { width: min(100%, var(--tw, 760px)); container-type: inline-size; }
.dev-tablet .screen {
  position: relative; overflow: hidden; background: #000;
  border: 1.9cqw solid #0d0e10; border-radius: 4.4cqw;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 .45cqw #24272b, 0 60px 110px -50px rgba(0, 0, 0, .9);
}
.dev-tablet .screen > video, .dev-tablet .screen > img { display: block; width: 100%; height: auto; aspect-ratio: 1180 / 820; object-fit: cover; }
.dev-laptop { width: min(100%, var(--lw, 980px)); container-type: inline-size; }
.dev-laptop .lid {
  padding: 2.1cqw 2.1cqw 2.6cqw; border-radius: 2.4cqw 2.4cqw 0 0; background: #0b0c0d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset;
}
.dev-laptop .screen { overflow: hidden; background: #000; aspect-ratio: 1280 / 800; border-radius: .5cqw; }
.dev-laptop .screen > video, .dev-laptop .screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dev-laptop .base {
  position: relative; height: 2.2cqw; margin: 0 -5.5cqw; border-radius: 0 0 2.6cqw 2.6cqw;
  background: linear-gradient(180deg, #3a3d42, #1d1f22 55%, #111214);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .9);
}
.dev-laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15cqw; height: .8cqw; transform: translateX(-50%); border-radius: 0 0 1cqw 1cqw; background: #101113; }
.dev-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); text-align: center; margin-top: 18px; }
.section.bone .dev-cap { color: #6b7076; }
.play-toggle {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(7, 8, 9, .62); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.screen { position: relative; isolation: isolate; }
.screen:hover .play-toggle, .play-toggle:focus-visible, .play-toggle.show { opacity: 1; }
.play-toggle svg { width: 14px; height: 14px; }

/* device trio (product heroes) */
.trio { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; margin-top: clamp(48px, 7vw, 88px); }
.trio .dev-laptop { --lw: 1000px; }
.trio .dev-tablet { position: absolute; left: 0; bottom: -2%; width: 37%; --tw: 9999px; }
.trio .dev-phone { position: absolute; right: 2%; bottom: -4%; width: 17%; --pw: 9999px; }
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
  .trio .dev-laptop { grid-column: 1 / -1; }
  .trio .dev-tablet, .trio .dev-phone { position: static; width: 100%; }
  .trio .dev-phone { width: 62%; justify-self: center; }
}

/* ---------- feature rows (product pages) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature.flip .copy { order: 2; }
.feature.flip .stage { order: 1; }
.feature.phone-stage { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feature.phone-stage.flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.feature .stage { display: flex; justify-content: center; }
.feature .h2 { margin-top: 20px; font-size: clamp(32px, 4.6vw, 62px); }
.feature .lede { margin-top: 22px; }
@media (max-width: 900px) {
  .feature, .feature.phone-stage, .feature.phone-stage.flip { grid-template-columns: 1fr; }
  .feature.flip .copy, .feature.flip .stage { order: 0; }
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.facts div { background: var(--bg); padding: 18px 18px 16px; }
.section.raised .facts div { background: var(--bg-2); }
.facts b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; letter-spacing: -.01em; }
.facts span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-top: 9px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ticks { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg-2); font-size: 16.5px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--accent, var(--amber-2)); }
.ticks li b { color: var(--fg); font-weight: 500; }
.ticks.two { grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 760px) { .ticks.two { grid-template-columns: 1fr; } }
.source-note { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-3); margin-top: 22px; line-height: 1.6; }

/* ---------- capability grid ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(44px, 6vw, 72px); }
.card { background: var(--bg); padding: 30px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.section.raised .card { background: var(--bg-2); }
.card .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent, var(--amber-2)); }
.card h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 21px; line-height: 1.05; }
.card p { color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.card .ex { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: .04em; }
.card .ex b { color: var(--fg-2); font-weight: 500; }
.grid-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-cards, .grid-cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-cards, .grid-cards.four { grid-template-columns: 1fr; } }


/* ---------- profile switcher (AZIMUTH, PHALANX) ---------- */
.profiles { margin-top: clamp(44px, 6vw, 72px); }
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); max-width: 100%;
}
.seg button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
  padding: 12px clamp(14px, 2.4vw, 26px); border-radius: 999px; transition: background .25s, color .25s; white-space: nowrap;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--ink); }
@media (max-width: 520px) { .seg { display: grid; width: 100%; } .seg button { padding: 12px 6px; font-size: 10.5px; letter-spacing: .08em; } }
@media (max-width: 360px) { .seg button { padding: 11px 3px; font-size: 9.5px; letter-spacing: .04em; } .seg button i { margin-right: 5px; } }
.profile-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: center; margin-top: clamp(36px, 5vw, 56px); }
.profile-panel[hidden] { display: none; }
@media (max-width: 900px) {
  .profile-panel { grid-template-columns: 1fr; }
  .profile-panel .stage { order: -1; }
  .profile-panel .dev-phone { --pw: 300px !important; }
}
.profile-panel .h3 { font-size: clamp(30px, 3.6vw, 48px); margin-top: 18px; }
.profile-panel .lede { margin-top: 18px; }
.profile-panel .stage { display: flex; justify-content: center; }
.profile-panel .badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.profile-panel .badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 30px; }
.kv div { background: var(--bg); padding: 14px 16px; }
.kv dt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.kv dd { font-family: var(--display); font-size: 18px; margin-top: 6px; line-height: 1.15; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr 1fr; } }
.symbol-sets { margin-top: 26px; }
.symbol-sets h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.symbol-sets ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.symbol-sets li { font-size: 14px; color: var(--fg); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); padding: 7px 12px; border-radius: 999px; }
.symbol-sets li small { color: var(--fg-3); font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.words { margin-top: 22px; font-size: 15px; color: var(--fg-2); line-height: 1.7; }
.words b { color: var(--fg); font-weight: 500; }
.profile-civilian { --accent: var(--az); }
.profile-tactical { --accent: var(--tac); }
.profile-responder { --accent: var(--resp); }

/* ---------- page-wide profile (PHALANX, AZIMUTH) ---------- */
/* <body data-profile> picks the profile; [data-p="a b"] shows only for those profiles.
   PHALANX's fire / ems / law-enforcement / sar are First Responder disciplines: "responder" in
   data-p covers all four. */
body[data-profile="civilian"] { --accent: var(--az); }
body[data-profile="tactical"] { --accent: var(--px); }
body.az[data-profile="tactical"] { --accent: var(--tac); }
body[data-profile="responder"], body[data-profile="fire"] { --accent: var(--resp); }
body[data-profile="ems"] { --accent: #2196F3; }
body[data-profile="law-enforcement"] { --accent: #8C9EFF; }
body[data-profile="sar"] { --accent: #C0CA33; }
body[data-profile="civilian"] [data-p]:not([data-p~="civilian"]),
body[data-profile="tactical"] [data-p]:not([data-p~="tactical"]),
body[data-profile="responder"] [data-p]:not([data-p~="responder"]),
body[data-profile="fire"] [data-p]:not([data-p~="fire"]):not([data-p~="responder"]),
body[data-profile="ems"] [data-p]:not([data-p~="ems"]):not([data-p~="responder"]),
body[data-profile="law-enforcement"] [data-p]:not([data-p~="law-enforcement"]):not([data-p~="responder"]),
body[data-profile="sar"] [data-p]:not([data-p~="sar"]):not([data-p~="responder"]) { display: none !important; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.seg button i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; background: var(--c); }
.seg [data-set-profile="civilian"] { --c: var(--az); }
.seg [data-set-profile="tactical"] { --c: var(--px); }
body.az .seg [data-set-profile="tactical"] { --c: var(--tac); }
.seg [data-set-profile="responder"], .seg [data-set-profile="fire"] { --c: var(--resp); }
.seg [data-set-profile="ems"] { --c: #2196F3; }
.seg [data-set-profile="law-enforcement"] { --c: #8C9EFF; }
.seg [data-set-profile="sar"] { --c: #C0CA33; }
/* the discipline row under First Responder */
.subseg { display: none; margin-top: 10px; }
body[data-family="responder"] .subseg { display: inline-grid; }
.subseg button { padding: 8px clamp(10px, 1.6vw, 16px); font-size: 10.5px; }
.pswitch-float .subseg { display: none !important; }
@media (max-width: 560px) {
  body[data-family="responder"] .subseg { display: grid; width: 100%; grid-auto-flow: row; grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .subseg button { padding: 10px 4px; }
}
.pswitch-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin: clamp(30px, 4vw, 44px) 0 12px; }
.pswitch-float {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 140%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); background: rgba(14, 16, 18, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: auto;
}
.pswitch-float.on { transform: translate(-50%, 0); }
.pswitch-float button { padding: 9px clamp(12px, 1.8vw, 18px); font-size: 11px; }
@media (max-width: 520px) { .pswitch-float { width: calc(100% - 24px); } .pswitch-float button { padding: 10px 4px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .pswitch-float { transition: none; } }

/* ---------- print sheet ---------- */
.paper { background: #fff; padding: 0; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-1.4deg); }
.paper img { width: 100%; height: auto; }
.print-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(44px, 6vw, 72px); }
@media (max-width: 900px) { .print-pair { grid-template-columns: 1fr; } .paper { max-width: 520px; margin: 0 auto; } }

/* ---------- field notes ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(11, 12, 14, .14); border: 1px solid rgba(11, 12, 14, .14); margin-top: clamp(48px, 6vw, 80px); }
.track { background: var(--bone); padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 18px; }
.track .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.track .n { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: #9a6514; text-transform: uppercase; }
.track svg.ico { width: 30px; height: 30px; color: var(--ink); }
.track h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.02; }
.track ul { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(11, 12, 14, .14); }
.track li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(11, 12, 14, .1); font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.track li span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #8b8f94; padding-top: 4px; }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr; } }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.formats span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(11, 12, 14, .22); padding: 8px 12px; color: var(--graphite); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9a6514; border: 1px solid rgba(154, 101, 20, .35); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.show-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid rgba(11, 12, 14, .14); align-items: start; }
.show-work p { font-size: 18px; line-height: 1.65; color: var(--graphite); }
.show-work.dark-rule { border-top-color: var(--line); }
.show-work.dark-rule p { color: var(--fg-2); }
.status-pill.dark { color: var(--amber-2); border-color: rgba(240, 185, 85, .4); }
.track-sub { font-size: 15.5px; line-height: 1.55; color: var(--graphite); margin-top: -6px; }
.btn.ink-ghost { background: transparent; color: var(--ink); border-color: rgba(11, 12, 14, .3); }
.btn.ink-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.fn-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.fn-split .h2 { margin-top: 22px; font-size: clamp(34px, 4vw, 56px); }
.fn-split .lede { margin-top: 22px; }
.fn-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.fn-list-head { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6b7076; margin-bottom: 14px; }
.fn-list { list-style: none; border-top: 1px solid rgba(11, 12, 14, .16); }
.fn-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 18px; align-items: center; padding: 22px 6px 22px 0; border-bottom: 1px solid rgba(11, 12, 14, .16); transition: background .2s, padding .2s; }
.fn-list a:hover { background: var(--bone-2); padding-left: 10px; }
.fn-list .n { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: #9a6514; }
.fn-list .t b { display: block; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.08; color: var(--ink); }
.fn-list .t span { display: block; font-size: 15px; line-height: 1.5; color: var(--graphite); margin-top: 6px; }
.fn-list svg { width: 26px; height: 26px; color: var(--ink); justify-self: end; }
@media (max-width: 900px) { .fn-split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fn-list a { grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 12px; } }
@media (max-width: 820px) { .show-work { grid-template-columns: 1fr; } }

/* ---------- PHALANX bits ---------- */
.steps { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: clamp(72px, 9vw, 120px); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 6vw, 96px); align-items: center; }
.step:nth-child(even) { grid-template-columns: 300px minmax(0, 1fr); }
.step:nth-child(even) .copy { order: 2; }
.step .no { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent, var(--px)); display: flex; align-items: center; gap: 14px; }
.step .no::after { content: ""; height: 1px; width: 70px; background: var(--line-2); }
.step h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(26px, 3vw, 40px); line-height: 1.02; margin-top: 18px; }
.step p { color: var(--fg-2); margin-top: 16px; max-width: 54ch; }
.step .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.step .chip b { color: var(--px); font-weight: 500; }
.step .dev-phone { --pw: 300px; }
@media (max-width: 900px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .copy { order: 0; }
  .step .dev-phone { --pw: 280px; margin: 0 auto; }
}
.shot-phone { border-radius: 13cqw; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: clamp(44px, 6vw, 72px); }
.gallery figure { background: var(--bg-2); border: 1px solid var(--line); cursor: zoom-in; transition: border-color .2s, transform .25s; display: flex; flex-direction: column; }
.gallery figure:hover { border-color: var(--line-2); transform: translateY(-3px); }
.gallery .thumb { height: 280px; overflow: hidden; border-bottom: 1px solid var(--line); background: #1c1c1e; }
.gallery .thumb img { width: 100%; height: auto; }
.gallery figcaption { padding: 13px 14px 15px; }
.gallery figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em; }
.gallery figcaption span { display: block; font-size: 12.5px; color: var(--fg-3); margin-top: 4px; line-height: 1.45; }
@media (max-width: 1150px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .gallery .thumb { height: 220px; } }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(4, 5, 6, .94); display: none; align-items: center; justify-content: center; padding: 32px; }
.lb.on { display: flex; }
.lb img { max-width: min(420px, 90vw); max-height: 86vh; width: auto; border-radius: 26px; box-shadow: 0 40px 90px -30px #000; }
.lb .x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; font-size: 24px; color: var(--fg); }
.lb .cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 0 20px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(44px, 6vw, 72px); }
.role { background: var(--bg-2); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.role .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--px); }
.role h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 22px; line-height: 1.06; }
.role p { color: var(--fg-2); font-size: 15.5px; line-height: 1.6; }
.role .then { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg); }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }
.note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--fg-3); margin-top: 24px; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta canvas.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .8; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: end; }
.cta .stack { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta .stack .btn { justify-content: space-between; }
.cta .addr { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--fg-3); margin-top: 6px; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 72px 0 0; background: var(--bg); }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.foot .fb svg { width: 46px; height: auto; color: var(--fg); }
.foot .fb img { height: 14px; width: auto; margin-top: 18px; }
.foot .fb p { font-family: var(--display); font-size: 20px; line-height: 1.2; margin-top: 22px; max-width: 16ch; }
.fcol h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.fcol a { display: block; font-size: 15px; color: var(--fg-2); margin-bottom: 11px; transition: color .2s; overflow-wrap: anywhere; }
.fcol a:hover { color: var(--fg); }
.disclaimer { border-top: 1px solid var(--line); padding: 24px 0 26px; }
.disclaimer p { font-size: 12.5px; line-height: 1.7; color: var(--fg-3); max-width: 100ch; }
.disclaimer p + p { margin-top: 10px; }
.disclaimer b { color: var(--fg-2); font-weight: 500; }
.foot-bar { border-top: 1px solid var(--line); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot .fb { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

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

/* ── Legal and support pages (azimuth-privacy, azimuth-terms, azimuth-support) ───────────────── */
.legal { max-width: 46rem; }
.legal .updated { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--fg-3); margin-top: 18px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin: 48px 0 14px; color: var(--fg); }
.legal h3 { font-family: var(--body); font-weight: 600; font-size: 18px; margin: 28px 0 8px; color: var(--fg); }
.legal p, .legal li { color: var(--fg-2); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--fg); border-bottom: 1px solid var(--line-2); }
.legal a:hover { border-color: var(--fg); }
.legal strong { color: var(--fg); font-weight: 600; }
.legal .summary { border-left: 2px solid var(--az); padding: 4px 0 4px 18px; margin-top: 28px; }
.legal .summary p { color: var(--fg); }
.legal ul + p { margin-top: 14px; }
