/* ============================================================
   Panthryx — marketing site
   Palette: ink #0D0A22 · porcelain #F6F6FA · brand indigo #2A1E9E
            (from wordmark gradient #010006 → #0C006E) · signal #C0392B
   Type:    Bricolage Grotesque (display) · Public Sans (body)
            IBM Plex Mono (reference tags)
   ============================================================ */

/* ---------- Self-hosted fonts (latin subsets) ---------- */
/* IBM Plex Mono 400 (latin) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 500 (latin) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Sans 500 (latin) */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Sans 600 (latin) */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Sans 700 (latin) */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans 400 (latin) */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/public-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans 500 (latin) */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/public-sans-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans 600 (latin) */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/public-sans-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --ink: #0D0A22;
  --ink-soft: #43405C;
  --porcelain: #F6F6FA;
  --paper: #FFFFFF;
  --brand: #2A1E9E;        /* logo indigo, lifted for contrast on light */
  --brand-deep: #16104F;
  --brand-tint: #EAE8F8;
  --brand-bright: #B0A8F0; /* periwinkle for use on dark */
  --signal: #C0392B;
  --signal-tint: #FBEEEC;
  --line: #DBDAE4;
  --line-strong: #BEBCCD;

  --font-display: "Instrument Sans", "Public Sans", sans-serif;
  --font-body: "Public Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1120px;
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Incident strip (persistent, every page) ---------- */
.incident-strip {
  background: var(--signal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.incident-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.incident-strip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.incident-strip a:hover { color: #FBD9D4; }
.incident-strip .strip-label { display: flex; align-items: center; gap: 10px; }
.incident-strip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Header ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo img { display: block; height: 30px; width: auto; }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
nav.main a:hover { color: var(--ink); }
nav.main a.active { color: var(--ink); box-shadow: 0 2px 0 var(--brand); }
nav.main a.cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
}
nav.main a.cta:hover { background: var(--brand-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 12px; font-family: var(--font-mono); font-size: 13px; cursor: pointer; color: var(--ink); }

/* ---------- Reference eyebrow (signature) ---------- */
.ref {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ref::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero-grid h1 { font-size: clamp(34px, 4.4vw, 48px); max-width: none; }
.hero .lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; }
.hero-facts { border-left: 1px solid var(--line-strong); padding-left: 28px; display: grid; gap: 20px; }
.fact .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.fact .v { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 2px; }

.reveal { animation: rise 0.6s ease both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); color: #fff; }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.signal { background: var(--signal); color: #fff; }
.btn.signal:hover { background: #A32F23; color: #fff; }

/* ---------- Sections ---------- */
section.band { padding: 76px 0; }
section.band.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 24ch;
}
.section-intro { margin-top: 16px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Service ledger (scope-of-work table) ---------- */
.ledger { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.ledger-row {
  display: grid;
  grid-template-columns: 150px 1fr 1.4fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row .code { font-family: var(--font-mono); font-size: 13px; color: var(--brand); letter-spacing: 0.05em; padding-top: 5px; }
.ledger-row h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.ledger-row h3 a { color: var(--ink); }
.ledger-row h3 a:hover { color: var(--brand); }
.ledger-row p { color: var(--ink-soft); font-size: 15.5px; }
.ledger-row .scope { font-size: 15px; color: var(--ink-soft); }
.ledger-row .scope li { margin-left: 18px; margin-bottom: 4px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.band.paper .card { background: var(--porcelain); }
.card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.card p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.card .more { font-size: 14.5px; font-weight: 600; }

/* ---------- IR band ---------- */
.ir-band { background: var(--ink); color: #EAE8F4; }
.ir-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-top: 68px; padding-bottom: 68px; }
.ir-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.ir-band p { margin-top: 14px; color: #B4B1CC; max-width: 52ch; }
.ir-band .ref { color: #E88A7D; }
.ir-band .ref::before { background: var(--signal); }
.ir-contact { border: 1px solid #2C2760; border-radius: var(--radius); padding: 28px; background: #191540; }
.ir-contact .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8D89AC; }
.ir-contact .v { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; margin: 4px 0 16px; }
.ir-contact .v a { color: #fff; }
.ir-contact .v a:hover { color: var(--brand-bright); }

/* ---------- Framework list ---------- */
.frameworks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.frameworks span {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 7px 14px;
  color: var(--ink-soft);
  background: var(--paper);
}

/* ---------- Prose (about) ---------- */
.prose { max-width: 66ch; margin-top: 28px; display: grid; gap: 18px; color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; margin-top: 44px; }
.contact-details { display: grid; gap: 26px; align-content: start; }
.cd .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cd .v { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-top: 3px; }
.cd .v a { color: var(--ink); }
.cd .v a:hover { color: var(--brand); }
form.contact { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
form.contact label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); display: grid; gap: 7px; }
form.contact input, form.contact textarea {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--ink);
  width: 100%;
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--font-mono); font-size: 13.5px; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: var(--signal); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #8D89AC; margin-top: 0; }
footer.site .wrap { padding-top: 56px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #B4B1CC; margin-bottom: 14px; font-weight: 500; }
.foot-grid a, .foot-grid span { color: #8D89AC; display: block; margin-bottom: 8px; font-size: 14.5px; }
.foot-grid a:hover { color: #fff; }
.foot-logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; }
.foot-logo img { display: block; height: 26px; width: auto; }
.foot-tag { margin-top: 10px; font-size: 14px; max-width: 34ch; }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid #262155; font-family: var(--font-mono); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 8px; color: var(--line-strong); }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line-strong); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--brand); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 22px; color: var(--ink-soft); max-width: 64ch; display: grid; gap: 10px; }

/* ---------- Article prose ---------- */
.prose h2 { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-top: 24px; }
.prose h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-top: 10px; }
.prose ul, .prose ol { margin-left: 20px; display: grid; gap: 8px; }
.prose .callout { border-left: 3px solid var(--signal); background: var(--paper); padding: 18px 22px; border-radius: var(--radius); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .ir-band .wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero-facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 24px; grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
  }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
  .incident-strip .strip-note { display: none; }
}
