/* ===========================================================
   VIGILUS — shared design system
   Palette + type per brief §6. Editorial, restrained, no gradients.
=========================================================== */

:root {
  /* Brand palette — exact per brief */
  --onyx: #0B0D0F;
  --deep-slate: #1C1F22;
  --bone: #E8E3D9;
  --warm-paper: #F5F2EB;
  --oxblood: #521C20;
  --oxblood-tint: #6B2A2F;   /* slightly lifted, for hover/links on dark */
  --muted-metal: #A08B6B;

  /* Functional aliases */
  --ink-on-dark: var(--bone);
  --text-on-dark: #C9C4B8;      /* dimmer bone for body copy on dark grounds */
  --faint-on-dark: #7C8188;
  --line-on-dark: #2A2E33;

  --ink-on-light: var(--onyx);
  --text-on-light: #34383C;
  --faint-on-light: #8A8577;
  --line-on-light: #D9D2C2;

  --max: 1180px;
  --shadow: 0 1px 2px rgba(11,13,15,.05), 0 12px 32px -18px rgba(11,13,15,.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--warm-paper);
  color: var(--text-on-light);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 560;
  color: inherit;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.label {
  font-family: "Public Sans", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--oxblood-tint); outline-offset: 3px; }

/* ---- section grounds ---- */
.ground-onyx    { background: var(--onyx); color: var(--text-on-dark); }
.ground-onyx h1, .ground-onyx h2, .ground-onyx h3, .ground-onyx h4 { color: var(--ink-on-dark); }
.ground-onyx .label { color: var(--muted-metal); }
.ground-onyx a.link { color: var(--bone); }

.ground-paper   { background: var(--warm-paper); color: var(--text-on-light); }
.ground-bone    { background: var(--bone); color: var(--text-on-light); }
.ground-paper .label, .ground-bone .label { color: var(--oxblood); }

section { padding: 88px 0; }
@media (max-width: 760px) { section { padding: 56px 0; } }

.eyebrow { display: block; margin-bottom: 18px; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   HEADER / NAV
=========================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; transition: background .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: var(--onyx); border-bottom-color: var(--line-on-dark); }
.site-header.is-static { position: relative; background: var(--onyx); border-bottom: 1px solid var(--line-on-dark); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border: 1px solid var(--muted-metal);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif; font-size: 16px; color: var(--bone); flex-shrink: 0;
}
.brand .word { display: flex; flex-direction: column; line-height: 1.1; }
.brand .word .name {
  font-family: "Fraunces", serif; font-size: 19px; letter-spacing: 0.22em;
  color: var(--bone); font-weight: 500;
}
.brand .word .tag {
  font-family: "Public Sans", sans-serif; font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--oxblood-tint); text-transform: uppercase; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.nav a.nav-link {
  font-family: "Public Sans", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--text-on-dark); padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--bone); border-color: var(--muted-metal); }

.navdrop { position: relative; }
.navdrop > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-family: "Public Sans", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark); padding: 4px 0;
}
.navdrop > summary::-webkit-details-marker { display: none; }
.navdrop > summary::marker { content: ""; }
.navdrop > summary:hover, .navdrop[open] > summary { color: var(--bone); }
.navdrop .caret { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -2px; }
.navdrop-panel {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  min-width: 260px; background: var(--onyx); border: 1px solid var(--line-on-dark);
  padding: 6px; box-shadow: var(--shadow); z-index: 60;
}
.navdrop-panel a {
  display: block; padding: 12px 14px; font-family: "Public Sans", sans-serif;
  font-size: 13px; color: var(--text-on-dark); text-decoration: none;
}
.navdrop-panel a:hover { background: var(--deep-slate); color: var(--bone); }
.navdrop-panel a.viewall {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-metal);
  border-top: 1px solid var(--line-on-dark); margin-top: 4px; padding-top: 14px;
}

.btn-outline {
  font-family: "Public Sans", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--bone); border: 1px solid var(--oxblood-tint); padding: 12px 22px;
  display: inline-block; background: transparent; transition: border-color .15s ease, background .15s ease;
}
.btn-outline:hover { background: var(--oxblood); border-color: var(--oxblood); }

.btn-outline.on-light { color: var(--onyx); border-color: var(--onyx); }
.btn-outline.on-light:hover { background: var(--onyx); color: var(--bone); }

.link-arrow {
  font-family: "Public Sans", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

.menu-toggle { display: none; }
@media (max-width: 880px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--onyx);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 96px 32px 32px;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav .navdrop-panel { position: static; transform: none; box-shadow: none; border: none; background: none; padding-left: 14px; }
  .nav .btn-outline { margin-top: 18px; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 70;
  }
  .menu-toggle span { width: 22px; height: 1px; background: var(--bone); }
}

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background: var(--onyx); overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,13,15,.92) 0%, rgba(11,13,15,.55) 42%, rgba(11,13,15,.22) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 220px 0 72px; width: 100%; }
.hero h1 {
  color: var(--bone); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05;
  margin-bottom: 26px; max-width: 14ch;
}
.hero .lede { color: var(--text-on-dark); font-size: 1.1rem; max-width: 56ch; margin-bottom: 34px; }
.hero .ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===========================================================
   IMAGE PLACEHOLDER — replaceable without redesign
=========================================================== */
.img-ph {
  position: relative; width: 100%; height: 100%; min-height: 220px;
  background-color: var(--deep-slate);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cline x1='60' y1='36' x2='60' y2='256' stroke='%23A08B6B' stroke-width='1' opacity='0.4'/%3E%3Cline x1='150' y1='16' x2='150' y2='256' stroke='%23A08B6B' stroke-width='1' opacity='0.4'/%3E%3Cline x1='258' y1='52' x2='258' y2='256' stroke='%23A08B6B' stroke-width='1' opacity='0.4'/%3E%3Cline x1='338' y1='28' x2='338' y2='256' stroke='%23A08B6B' stroke-width='1' opacity='0.4'/%3E%3Cline x1='24' y1='198' x2='376' y2='198' stroke='%23A08B6B' stroke-width='1' opacity='0.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: min(62%, 340px) auto;
  box-shadow: inset 0 0 0 1px var(--line-on-dark);
  display: flex; align-items: flex-end; justify-content: flex-start; overflow: hidden;
}
.img-ph.on-light { background-color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-on-light); }
.img-ph .cap {
  position: relative; font-family: "Public Sans", sans-serif; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-metal); text-align: left; padding: 14px 16px; max-width: 34ch; line-height: 1.6;
}
.img-ph.on-light .cap { color: var(--faint-on-light); }

/* ===========================================================
   WHO WE SERVE — single clean statement
=========================================================== */
.statement { padding: 92px 0; }
.statement .wrap { max-width: 860px; }
.statement blockquote {
  margin: 0; font-family: "Fraunces", serif; font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.5; font-weight: 500; color: var(--ink-on-light); text-wrap: balance;
}

/* ===========================================================
   PRACTICE BLOCKS (01 Intelligence / 02 Protection)
=========================================================== */
.practice { padding: 0; }
.practice-inner {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 640px;
}
.practice-inner.reverse { direction: rtl; }
.practice-inner.reverse > * { direction: ltr; }
.practice-copy { display: flex; align-items: center; padding: 72px 56px; }
.practice-copy-in { max-width: 460px; }
.practice-num { font-family: "Public Sans", sans-serif; font-size: 12px; letter-spacing: 0.14em; color: var(--muted-metal); display: block; margin-bottom: 18px; }
.practice-copy h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 22px; }
.practice-sub {
  font-family: "Public Sans", sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 10px; display: block;
}
.practice-copy p.body { font-size: 1rem; margin-bottom: 8px; }
.practice-secondary { margin-top: 28px; padding-top: 26px; border-top: 1px solid; }
.ground-onyx .practice-secondary { border-color: var(--line-on-dark); }
.ground-bone .practice-secondary, .ground-paper .practice-secondary { border-color: var(--line-on-light); }
.practice-secondary .practice-sub { font-size: 10.5px; }
.practice-cta { margin-top: 30px; display: inline-block; }
.practice-note { margin-top: 22px; font-size: 12.5px; color: var(--faint-on-light); font-style: italic; }
.ground-onyx .practice-note { color: var(--faint-on-dark); }

@media (max-width: 880px) {
  .practice-inner, .practice-inner.reverse { grid-template-columns: 1fr; direction: ltr; }
  .practice-copy { padding: 56px 28px; }
  .practice-inner .img-ph { min-height: 320px; }
}

/* ===========================================================
   SPECIALIZED CAPABILITY — typography-led
=========================================================== */
.capability { text-align: left; }
.capability .wrap { max-width: 880px; }
.capability h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 26px; max-width: 16ch; }
.capability p { font-size: 1.08rem; color: var(--text-on-dark); max-width: 60ch; }

/* ===========================================================
   INSIGHTS
=========================================================== */
.insights-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.insight-featured { display: block; text-decoration: none; color: inherit; }
.insight-featured .img-ph { aspect-ratio: 16/10; margin-bottom: 22px; }
.insight-list { display: flex; flex-direction: column; gap: 28px; }
.insight-row { display: grid; grid-template-columns: 108px 1fr; gap: 18px; text-decoration: none; color: inherit; }
.insight-row .img-ph { aspect-ratio: 4/3; }
.insight-cat { font-size: 10.5px; }
.insight-title { font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 560; margin: 8px 0 6px; line-height: 1.3; }
.insight-featured .insight-title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.insight-date { font-family: "Public Sans", sans-serif; font-size: 11.5px; color: var(--faint-on-light); }
@media (max-width: 880px) { .insights-grid { grid-template-columns: 1fr; } }

.insights-viewall { display: flex; justify-content: flex-end; margin-bottom: 28px; }

/* ===========================================================
   PRIVATE INQUIRY (homepage minimal)
=========================================================== */
.inquiry-band { text-align: left; }
.inquiry-band .wrap { max-width: 760px; }
.inquiry-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 18px; }
.inquiry-band p { font-size: 1.02rem; color: var(--text-on-dark); margin-bottom: 30px; max-width: 52ch; }

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer { background: var(--onyx); color: var(--faint-on-dark); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line-on-dark); margin-bottom: 24px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-family: "Public Sans", sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-dark); text-decoration: none; }
.footer-nav a:hover { color: var(--bone); }
.footer-legal { font-family: "Public Sans", sans-serif; font-size: 11.5px; line-height: 1.8; color: var(--faint-on-dark); max-width: 74ch; }
.footer-legal p + p { margin-top: 10px; }

/* ===========================================================
   GENERIC PAGE HERO (non-homepage)
=========================================================== */
.page-hero { padding: 200px 0 64px; }
.page-hero.ground-onyx { }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 18ch; margin-bottom: 20px; }
.page-hero .lede { font-size: 1.08rem; max-width: 60ch; }
.breadcrumbs { font-family: "Public Sans", sans-serif; font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint-on-dark); margin-bottom: 22px; }
.breadcrumbs a { color: var(--faint-on-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--bone); }
.breadcrumbs .sep { margin: 0 8px; }

/* ---- restrained category list (replaces icon cards) ---- */
.category-list { display: flex; flex-direction: column; }
.category-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line-on-light); }
.category-row:first-child { padding-top: 0; }
.category-row:last-child { border-bottom: none; }
.category-row h3 { font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 560; }
.category-row p { font-size: .98rem; color: var(--text-on-light); max-width: 58ch; }
.ground-onyx .category-row { border-color: var(--line-on-dark); }
.ground-onyx .category-row p { color: var(--text-on-dark); }
@media (max-width: 700px) { .category-row { grid-template-columns: 1fr; gap: 8px; } }

.pull-note { border-left: 2px solid var(--oxblood); padding-left: 22px; margin: 36px 0; }
.pull-note p { font-family: "Fraunces", serif; font-style: italic; font-size: 1.15rem; color: var(--ink-on-light); }
.ground-onyx .pull-note p { color: var(--ink-on-dark); }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step .n { font-family: "Public Sans", sans-serif; font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted-metal); display: block; margin-bottom: 12px; }
.process-step h4 { font-family: "Fraunces", serif; font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: .92rem; color: var(--text-on-light); }
@media (max-width: 880px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.credibility-line { margin-top: 28px; padding: 20px 24px; background: var(--bone); border-left: 2px solid var(--oxblood); }
.credibility-line p { font-size: .95rem; color: var(--text-on-light); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; }
.tag-list span { font-family: "Public Sans", sans-serif; font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint-on-light); }
.tag-list span::before { content: "—"; margin-right: 8px; color: var(--oxblood); }

/* ---- pricing line (no cards, no ecommerce) ---- */
.pricing-line { padding: 32px 0; border-top: 1px solid var(--line-on-light); border-bottom: 1px solid var(--line-on-light); margin: 40px 0; }
.pricing-line p { font-family: "Fraunces", serif; font-size: 1.2rem; color: var(--ink-on-light); }
.pricing-line p.fine { font-family: "Public Sans", sans-serif; font-size: .9rem; color: var(--faint-on-light); margin-top: 8px; }

/* ===========================================================
   FORM (Private Inquiry)
=========================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: "Public Sans", sans-serif; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint-on-light); }
.form-field input, .form-field select, .form-field textarea {
  font-family: "Public Sans", sans-serif; font-size: 15px; color: var(--ink-on-light);
  background: var(--warm-paper); border: 1px solid var(--line-on-light); padding: 13px 14px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--oxblood); outline: none; }
.form-submit { margin-top: 8px; }
.form-note { font-size: .92rem; color: var(--faint-on-light); margin-bottom: 30px; font-style: italic; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- about page ---- */
.about-body p { font-size: 1.05rem; max-width: 62ch; margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }

/* ---- 404 ---- */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
