/* Stealth Worker — site styles. No frameworks, no third-party requests. */

@font-face { font-family: "Lora"; src: url("../fonts/lora-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-500-italic.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --paper-2: #F3F0E9;
  --ink: #0B1622;
  --ink-2: #3B4654;
  --rule: #DED8CB;
  --brass: #9A7638;       /* lines and ornaments */
  --brass-text: #7A5B25;  /* small text on paper (AA contrast) */
  --brass-light: #C6A46A; /* on ink */
  --cream: #F4F1EA;
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-family: var(--serif); font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-text); margin: 0 0 1.25rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 40em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, 0.94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.92rem; text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.nav .btn { color: var(--cream); border-bottom: 0; padding: 10px 18px; }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--rule); color: var(--ink); font: 600 0.85rem var(--sans); padding: 0 14px; height: 44px; cursor: pointer; }
.menu-btn .bars { width: 16px; height: 10px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }

@media (max-width: 900px) {
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; }
  .brand img { height: 36px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 18px; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
  .nav .btn { margin-top: 16px; text-align: center; padding: 14px 18px; border-bottom: 0; }
}
@media (max-width: 380px) { .brand img { height: 27px; } .menu-btn { padding: 0 11px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--ink); color: var(--cream); font: 600 0.92rem/1.2 var(--sans); letter-spacing: 0.01em; text-decoration: none; padding: 15px 26px; border: 1px solid var(--ink); transition: background 0.15s, color 0.15s; }
.btn:hover { background: #1B2A3C; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.on-ink { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.on-ink:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }
.more { font-weight: 600; font-size: 0.95rem; }
.more::after { content: " \2192"; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 8vw, 104px); }
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: 1.6rem; }
.hero-meta { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-meta a { display: block; text-decoration: none; padding: 22px 24px 4px 0; }
.hero-meta a + a { padding-left: 24px; border-left: 1px solid var(--rule); }
.hero-meta .n { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; color: var(--brass-text); }
.hero-meta .t { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin-top: 6px; display: block; }
.hero-meta .d { font-size: 0.92rem; color: var(--ink-2); margin-top: 6px; display: block; }
.hero-meta a:hover .t { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: minmax(0, 1fr); }
  .hero-meta a, .hero-meta a + a { padding: 18px 0; border-left: 0; }
  .hero-meta a + a { border-top: 1px solid var(--rule); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--rule); }
.section.tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .num { font-family: var(--serif); font-size: 1rem; color: var(--brass-text); display: block; margin-bottom: 14px; letter-spacing: 0.06em; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head p.eyebrow { color: var(--brass-text); font-size: 0.74rem; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); }
.services.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services li { border-top: 1px solid var(--ink); padding: 22px 0 34px; }
.services h3 { margin-bottom: 10px; }
.services p { color: var(--ink-2); font-size: 0.98rem; }
.services .tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 10px; }
@media (max-width: 900px) { .services, .services.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services, .services.two { grid-template-columns: minmax(0, 1fr); } .services li { padding-bottom: 26px; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; }
.chips li { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; border: 1px solid var(--rule); background: var(--paper); padding: 6px 12px; color: var(--ink-2); }

/* ---------- Approach ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: s; border-top: 1px solid var(--brass); padding-top: 18px; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); color: var(--brass-text); font-size: 0.95rem; letter-spacing: 0.06em; }
.steps h3 { margin: 8px 0 8px; font-size: 1.2rem; }
.steps p { font-size: 0.96rem; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); margin: 0; }
.facts div { border-top: 1px solid var(--rule); padding: 22px 0; }
.facts dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.facts dd { margin: 6px 0 0; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Price card (GDPR page) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.price { border: 1px solid var(--ink); padding: clamp(24px, 4vw, 36px); background: var(--paper); }
.price .amount { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; margin: 6px 0 10px; }
.price .amount small { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); letter-spacing: 0; }
.price p { font-size: 0.95rem; color: var(--ink-2); }
.price .eyebrow { color: var(--brass-text); font-size: 0.74rem; }
.price p.amount { color: var(--ink); font-size: clamp(2.4rem, 6vw, 3.4rem); }
.price .btn { margin-top: 18px; width: 100%; text-align: center; }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 1px; background: var(--brass); }

/* ---------- Contact band ---------- */
.contact { background: var(--ink); color: var(--cream); padding: clamp(64px, 9vw, 120px) 0; }
.contact .eyebrow { color: var(--brass-light); }
.contact h2 { max-width: 16em; }
.contact p { color: #C3CAD3; max-width: 36em; margin-top: 1.2rem; font-size: 1.08rem; }
.contact .mail { font-family: var(--serif); font-size: clamp(1.4rem, 4.4vw, 2.4rem); display: inline-block; margin-top: 2rem; color: var(--cream); text-decoration-color: var(--brass-light); text-underline-offset: 8px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #AEB6C0; border-top: 1px solid #23303F; padding: 36px 0 44px; font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer img { height: 34px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #D5DAE0; text-decoration: none; padding: 6px 0; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brass-light); }
.site-footer .legal { flex-basis: 100%; color: #8D97A3; }

/* ---------- Long-form (privacy notice) ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16em; }
.page-head .lede { margin-top: 1.2rem; }
.prose { max-width: 44em; padding-bottom: clamp(56px, 8vw, 104px); }
.prose h2 { font-size: 1.55rem; margin: 2.4em 0 0.6em; padding-top: 1.2em; border-top: 1px solid var(--rule); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.todo { border: 1px dashed #B4472B; background: #FBEDE7; color: #7A2A14 !important; padding: 12px 16px; font-size: 0.95rem; }

/* ---------- Dark hero with engraved rosette ---------- */
.hero.dark { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); }
.hero.dark .wrap { position: relative; z-index: 1; }
.hero.dark .eyebrow { color: var(--brass-light); }
.hero.dark .lede { color: #C3CAD3; }
.hero.dark h1 em { color: var(--brass-light); }
.hero.dark .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero.dark .btn:hover { background: #fff; }
.hero.dark .btn.ghost { background: transparent; color: var(--cream); border-color: #55616F; }
.hero.dark .btn.ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero.dark .hero-meta { border-top-color: #55616F; }
.hero.dark .hero-meta a + a { border-color: #2A3747; }
.hero.dark .hero-meta .n { color: var(--brass-light); }
.hero.dark .hero-meta .d { color: #AEB6C0; }
.hero.dark .hero-meta a:hover .t { text-decoration-color: var(--brass-light); }
.rosette { position: absolute; z-index: 0; right: -280px; top: 50%; width: 760px; height: 760px; max-width: none; margin-top: -400px; opacity: 0.4; pointer-events: none; animation: turn 240s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .rosette { opacity: 0.28; right: -300px; } }
@media (max-width: 720px) { .rosette { width: 520px; height: 520px; right: -260px; top: 0; margin-top: -150px; opacity: 0.32; } }

.hero.dark .eyebrow, .hero.dark h1, .hero.dark .lede, .hero.dark .actions, .hero.dark .hero-meta { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero.dark h1 { animation-delay: 0.08s; }
.hero.dark .lede { animation-delay: 0.18s; }
.hero.dark .actions { animation-delay: 0.28s; }
.hero.dark .hero-meta { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Figures band ---------- */
.figures { background: var(--paper); border-bottom: 1px solid var(--rule); }
.figures dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures dl > div { padding: clamp(26px, 4vw, 44px) 24px clamp(26px, 4vw, 44px) 0; }
.figures dl > div + div { padding-left: clamp(16px, 3vw, 32px); border-left: 1px solid var(--rule); }
.figures dt { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }
.figures dt.long { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.9; }
.figures dt small { font-size: 0.5em; letter-spacing: 0; }
.figures dd { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-2); max-width: 17em; }
@media (max-width: 820px) {
  .figures dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures dl > div, .figures dl > div + div { padding: 22px 16px 22px 0; border-left: 0; }
  .figures dl > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule); }
  .figures dl > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- Regimes strip ---------- */
.regimes { background: var(--ink); color: #C3CAD3; padding: 22px 0; border-top: 1px solid #23303F; }
.regimes .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.regimes .label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-light); margin: 0; }
.regimes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.regimes li { font-family: var(--serif); font-size: 1.02rem; color: var(--cream); white-space: nowrap; }
.regimes li { margin-right: 26px; }

/* ---------- Situations ---------- */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cases li { background: var(--paper); padding: clamp(22px, 3vw, 32px); transition: background 0.2s; position: relative; }
.cases li::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--brass); transition: width 0.35s ease; }
.cases li:hover { background: #fff; }
.cases li:hover::before { width: 100%; }
.cases .q { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.35; margin-bottom: 12px; color: var(--ink); }
.cases p { font-size: 0.95rem; color: var(--ink-2); }
.cases .who { display: block; margin-top: 14px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); }
@media (max-width: 900px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cases { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Livelier service rows ---------- */
.services li { position: relative; transition: border-color 0.25s; }
.services li::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--brass); transition: width 0.35s ease; }
.services li:hover::before { width: 56px; }

/* ---------- Statement band ---------- */
.statement { background: var(--ink); color: var(--cream); padding: clamp(56px, 8vw, 104px) 0; position: relative; overflow: hidden; }
.statement blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.3; max-width: 24em; position: relative; z-index: 1; }
.statement blockquote em { color: var(--brass-light); }
.statement p.by { margin-top: 1.6rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-light); position: relative; z-index: 1; }

/* ---------- Scroll reveal (only applied by JS; content is visible without it) ---------- */
.pre { opacity: 0; transform: translateY(22px); }
.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  .rosette, .hero.dark .eyebrow, .hero.dark h1, .hero.dark .lede, .hero.dark .actions, .hero.dark .hero-meta { animation: none; }
  .pre { opacity: 1; transform: none; }
  .in, .cases li::before, .services li::before { transition: none; }
}

/* ---------- Credentials ---------- */
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.certs li { background: var(--paper); padding: clamp(18px, 2.4vw, 28px); position: relative; }
.certs li::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--brass); transition: width 0.35s ease; }
.certs li:hover::before { width: 100%; }
.certs .abbr { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; display: block; }
.certs .full { display: block; font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.certs .area { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 12px; }
@media (max-width: 900px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .certs .abbr { font-size: 1.35rem; } .certs li { padding: 16px 14px; } }
.legal-note { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 5vw, 72px); border-top: 1px solid var(--ink); padding-top: 26px; }
.legal-note h3 { font-size: 1.5rem; }
.legal-note p { color: var(--ink-2); }
.legal-note .fine { font-size: 0.88rem; margin-top: 0.8em; }
@media (max-width: 820px) { .legal-note { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .certs li::before { transition: none; } }
