@font-face {
  font-family: Oxanium;
  src: url('/fonts/oxanium-200-800-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #181d2b;
  --ivory: #fcf8ec;
  --coral: #ff5668;
  --slate: #a9b0c1;
  --line: #d8d3c6;
  --muted: #555d6a;
  --shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { background: var(--coral); color: var(--ink); }
.shell { width: min(calc(100% - 80px), var(--shell)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 10;
  top: -100px;
  left: 16px;
  padding: 8px 14px;
  background: var(--coral);
  color: var(--ink);
}
.skip-link:focus { top: 12px; }
.eyebrow {
  margin: 0;
  font: 700 11px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark { display: inline-flex; flex-direction: column; align-items: center; flex: none; line-height: 1; }
.wordmark-main { font: 700 30px/1 Oxanium, Arial, sans-serif; letter-spacing: .35em; text-indent: .35em; }
.wordmark-sub { margin-top: 12px; color: var(--muted); font: 500 12px/1 Oxanium, Arial, sans-serif; letter-spacing: .8em; text-indent: .8em; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-nav a { font-size: 13px; font-weight: 700; }
.site-nav a:last-child { border: 1px solid var(--ink); padding: 9px 16px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--ivory); }
.hero-circuit { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-circuit svg { display: block; width: 100%; height: 100%; }
.circuit-trace { fill: none; stroke: var(--ivory); stroke-width: 1; stroke-opacity: .11; vector-effect: non-scaling-stroke; }
.circuit-terminal { fill: var(--ink); stroke: var(--ivory); stroke-width: 1; stroke-opacity: .2; vector-effect: non-scaling-stroke; }
.circuit-terminal-core { fill: var(--ivory); fill-opacity: .2; }
.circuit-terminal-label { fill: var(--ivory); fill-opacity: .24; font: 9px monospace; letter-spacing: 1.2px; }
.circuit-signal { opacity: 0; }
.circuit-signal-line { fill: none; stroke: var(--coral); stroke-width: 1.65; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.circuit-signal-halo { fill: none; stroke: var(--coral); stroke-width: 5; stroke-opacity: .25; stroke-linecap: round; filter: url(#circuit-soft-glow); vector-effect: non-scaling-stroke; }
.hero-inner { position: relative; z-index: 1; padding-block: 92px 100px; }
.hero-rule { display: block; width: 42px; height: 3px; margin-bottom: 30px; background: var(--coral); }
.hero h1 {
  max-width: 1060px;
  margin: 0;
  font: 600 clamp(54px, 6.3vw, 88px)/1.06 Oxanium, Arial, sans-serif;
  letter-spacing: -.045em;
}
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-lead { max-width: 760px; margin: 27px 0 28px; color: #d0d3d8; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button-hero { min-width: 225px; border: 1px solid var(--ivory); color: var(--ivory); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.button-coral { background: var(--coral); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; line-height: 1.4; }
.light-link { color: var(--ivory); }

.circuit-section { position: relative; isolation: isolate; --section-circuit-ink: var(--ink); --section-circuit-surface: var(--ivory); }
.section-circuit { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.section-circuit-route { fill: none; stroke: none; }
.section-circuit-rail, .section-circuit-branch { fill: none; stroke: var(--section-circuit-ink); stroke-width: 1; stroke-opacity: .19; vector-effect: non-scaling-stroke; }
.section-circuit-branch { stroke-opacity: .13; }
.section-circuit-node { fill: var(--section-circuit-surface); stroke: var(--section-circuit-ink); stroke-width: 1; stroke-opacity: .35; vector-effect: non-scaling-stroke; }
.section-circuit-node-core { fill: var(--section-circuit-ink); fill-opacity: .32; }
.section-circuit-signal { opacity: 0; }
.section-circuit-signal-line { fill: none; stroke: var(--coral); stroke-width: 1.65; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.section-circuit-signal-halo { fill: none; stroke: var(--coral); stroke-width: 5; stroke-opacity: .25; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.product-inner, .consulting-inner, .contact-inner { position: relative; z-index: 1; }
.product-section { padding-block: 82px 86px; scroll-margin-top: 20px; }
.product-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(45px, 6vw, 95px);
  align-items: center;
}
.product-heading .eyebrow { color: #b74352; margin-bottom: 20px; }
.product-title-row { display: inline-flex; align-items: center; gap: 20px; max-width: 100%; padding: 19px 24px; background: var(--ink); }
.vault-icon { display: block; flex: none; width: 80px; height: 80px; }
.product-title-row h2, .consulting-heading h2, .contact-inner h2, .page-intro h1 {
  margin: 0;
  font: 600 clamp(37px, 4vw, 59px)/1.12 Oxanium, Arial, sans-serif;
  letter-spacing: -.035em;
}
.product-title-row h2 { min-width: 0; font-size: clamp(36px, 3.5vw, 52px); }
.vault-title-cryptex { color: var(--ivory); }
.vault-title-vault { color: var(--coral); }
.product-detail .section-lead { margin: 0 0 20px; font-size: 21px; font-weight: 700; line-height: 1.4; }

.consulting-section { background: #f1ede3; scroll-margin-top: 0; --section-circuit-surface: #f1ede3; }
.consulting-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(70px, 9vw, 145px);
  padding-block: 100px 106px;
}
.consulting-heading .eyebrow { color: #b74352; margin-bottom: 22px; }
.consulting-heading h2 { max-width: 480px; }
.consulting-heading > p:last-child { max-width: 475px; margin: 21px 0 0; color: var(--muted); }
.service-list { border-top: 1px solid var(--ink); }
.service-item { padding: 20px 0 23px; }
.service-item h3 { margin: 0 0 7px; font: 600 clamp(20px, 2vw, 26px)/1.25 Oxanium, Arial, sans-serif; letter-spacing: -.02em; }
.service-item p { max-width: 540px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.story-link { padding-block: 30px 34px; }
.story-link p { margin: 0; color: var(--muted); font-size: 14px; }
.story-link a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.contact-section { background: var(--ink); color: var(--ivory); --section-circuit-ink: var(--ivory); --section-circuit-surface: var(--ink); }
.contact-section .section-circuit-rail { stroke-opacity: .22; }
.product-heading.circuit-lit .eyebrow { color: var(--coral); text-shadow: 0 0 12px rgba(255, 86, 104, .35); }
.product-heading.circuit-lit .product-title-row { box-shadow: 0 0 0 1px var(--coral), 0 0 24px rgba(255, 86, 104, .16); }
.service-item.circuit-lit h3 { color: #b74352; }
.contact-action .button.circuit-lit { box-shadow: 0 0 0 4px rgba(255, 86, 104, .16), 0 0 24px rgba(255, 86, 104, .25); }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 60px; padding-block: 83px 88px; }
.contact-inner .eyebrow { margin-bottom: 20px; color: var(--slate); }
.contact-inner h2 { font-size: clamp(35px, 3.7vw, 52px); }
.contact-inner > div:first-child > p:last-child { max-width: 500px; margin: 17px 0 0; color: var(--slate); }
.contact-action { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; flex: none; }
.contact-pending { color: var(--slate); font-size: 12px; }
.site-footer { background: #111723; color: var(--ivory); padding-block: 38px 29px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark-footer .wordmark-main { font-size: 26px; }
.wordmark-footer .wordmark-sub { color: var(--slate); font-size: 10px; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px 25px; color: var(--slate); font-size: 12px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 31px; padding-top: 18px; border-top: 1px solid #36404d; color: var(--slate); font-size: 12px; }

.contact-dialog {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(5, 10, 20, .23);
}
.contact-dialog::backdrop { background: rgba(12, 17, 28, .72); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 22px; }
.dialog-heading h2 { margin: 0; font: 600 clamp(27px, 4vw, 32px)/1.15 Oxanium, Arial, sans-serif; letter-spacing: -.025em; }
.dialog-close { flex: none; min-height: 32px; padding: 5px 4px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font: 700 12px/1.2 Arial, sans-serif; cursor: pointer; }
.form-status { margin: 12px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status[data-kind="error"] { padding: 9px 12px; border-left: 3px solid #a33746; background: #fff0ef; color: #862b39; font-weight: 700; }
.contact-form-fields { display: grid; min-width: 0; gap: 16px; margin: 0; padding: 0; border: 0; }
.contact-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.contact-field { display: grid; min-width: 0; gap: 6px; }
.contact-field label { font-size: 13px; font-weight: 700; }
.contact-form-fields input, .contact-form-fields textarea { display: block; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #9295a0; border-radius: 0; background: #fffdfa; color: var(--ink); font: 16px/1.5 Arial, sans-serif; }
.contact-form-fields textarea { min-height: 110px; resize: vertical; }
.contact-form-fields input:focus, .contact-form-fields textarea:focus { border-color: var(--ink); }
.contact-form-fields input:focus-visible, .contact-form-fields textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-form-fields:disabled { opacity: .55; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-container { min-height: 65px; }
.contact-form-fields .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form-fields .button:disabled { opacity: .5; cursor: not-allowed; }
.dialog-alternative { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.dialog-alternative a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.contact-success { padding: 13px 0 4px; }
.contact-success[hidden] { display: none; }
.contact-success::before { content: ''; display: block; width: 42px; height: 3px; margin-bottom: 24px; background: var(--coral); }
.contact-success p { max-width: 420px; margin: 0 0 27px; font-size: 17px; line-height: 1.6; }
.contact-success-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.contact-success-actions .button { min-width: 110px; border: 0; cursor: pointer; }
.contact-send-another { padding: 5px 0; border: 0; border-bottom: 1px solid var(--coral); background: transparent; color: var(--ink); font: 700 13px/1.4 Arial, Helvetica, sans-serif; cursor: pointer; }
.contact-send-another:hover { color: #c64051; }

.page-intro { padding-block: 90px 70px; border-bottom: 1px solid var(--ink); }
.page-intro .eyebrow { margin-bottom: 23px; color: #b74352; }
.page-intro h1 { font-size: clamp(48px, 5vw, 72px); }
.page-intro > p:last-child { max-width: 650px; margin: 17px 0 0; color: var(--muted); font-size: 18px; }
.journal-list { min-height: 350px; padding-block: 48px 105px; }
.journal-entry { max-width: 800px; padding-block: 25px 32px; border-bottom: 1px solid var(--line); }
.journal-entry:first-child { padding-top: 0; }
.journal-entry time { color: var(--muted); font-size: 13px; }
.journal-entry h2 { margin: 9px 0 12px; font: 600 clamp(26px, 3vw, 36px)/1.2 Oxanium, Arial, sans-serif; letter-spacing: -.02em; }
.journal-entry h2 a:hover, .post-intro .eyebrow a:hover { color: #c64051; }
.journal-entry p { margin: 0 0 17px; color: var(--muted); }
.post-intro .eyebrow a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.post-intro h1 { max-width: 960px; font-size: clamp(40px, 5vw, 68px); }
.post-content { padding-block: 48px 105px; }
.post-back { margin-top: 36px; }
.journal-empty { max-width: 820px; padding-block: 42px; }
.journal-empty p { max-width: 590px; margin: 17px 0 22px; color: var(--muted); }
.article-body { max-width: 800px; font-size: 17px; line-height: 1.78; }
.article-body h2, .article-body h3, .article-body h4 { font-family: Oxanium, Arial, sans-serif; line-height: 1.25; letter-spacing: -.02em; }
.article-body h2 { font-size: 32px; margin: 47px 0 18px; }
.article-body h3 { font-size: 25px; margin: 35px 0 14px; }
.article-body p { margin: 0 0 22px; }
.article-body a { text-decoration: underline; text-decoration-color: #be4353; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--coral); margin: 35px 0; padding: 4px 0 4px 24px; color: var(--muted); }
.article-body img { max-width: 100%; height: auto; }
.article-body figure { margin: 35px 0; }
.article-body figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.article-body pre { overflow: auto; padding: 20px; background: var(--ink); color: var(--ivory); font-size: 14px; }
.article-body code { font-size: .88em; }
.article-body ul, .article-body ol { padding-left: 25px; }

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 48px), var(--shell)); }
  .product-inner, .consulting-inner { gap: 45px; }
  .product-title-row { gap: 16px; padding: 17px 20px; }
  .vault-icon { width: 68px; height: 68px; }
  .contact-inner { gap: 30px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 0; flex-direction: column; align-items: center; gap: 20px; padding-block: 18px; }
  .wordmark-main { font-size: 27px; }
  .wordmark-sub { font-size: 11px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; overflow-x: auto; }
  .site-nav a { white-space: nowrap; font-size: 12px; }
  .site-nav a:last-child { border: 0; padding: 0; }
  .hero-inner { padding-block: 68px 74px; }
  .hero-rule { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(43px, 10vw, 59px); line-height: 1.08; }
  .hero-lead { margin: 23px 0 26px; font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .button-hero { width: 100%; }
  .product-section { padding-block: 68px 72px; }
  .product-inner, .consulting-inner { display: block; }
  .consulting-inner { padding-block: 68px 72px; }
  .product-title-row { gap: 14px; padding: 16px 18px; }
  .vault-icon { width: 64px; height: 64px; }
  .product-title-row h2 { font-size: clamp(30px, 7.8vw, 43px); }
  .consulting-heading h2 { font-size: clamp(34px, 8.5vw, 46px); }
  .product-detail { padding-top: 25px; }
  .consulting-heading > p:last-child { margin-bottom: 29px; }
  .service-item { padding: 19px 0 19px 26px; }
  .contact-inner { display: block; padding-block: 70px 74px; }
  .contact-action { margin-top: 26px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 27px; }
  .page-intro { padding-block: 70px 58px; }
  .page-intro h1 { font-size: 48px; }
  .page-intro > p:last-child { font-size: 17px; }
  .journal-list { padding-block: 30px 80px; }
  .post-content { padding-block: 35px 80px; }
  .journal-empty { padding-block: 37px; }
  .article-body { font-size: 16px; }
  .contact-dialog { padding: 22px 19px; }
  .dialog-heading { gap: 12px; }
  .dialog-heading h2 { font-size: 28px; }
}
@media (max-width: 520px) {
  .contact-form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circuit-signal { display: none; }
  .section-circuit-signal { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .product-title-row { transition: box-shadow 350ms ease; }
  .product-heading .eyebrow { transition: color 350ms ease, text-shadow 350ms ease; }
  .service-item h3 { transition: color 350ms ease; }
  .contact-action .button { transition: box-shadow 350ms ease, background-color 180ms ease, transform 120ms ease; }
  .site-nav a, .footer-nav a, .button, .dialog-close, .dialog-alternative a, .text-link, .story-link a, .article-body a {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, text-decoration-color 180ms ease;
  }
  .wordmark { transition: opacity 180ms ease; }
  .button { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 120ms ease; }
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .footer-nav a:hover { color: var(--coral); }
  .wordmark:hover { opacity: .84; }
  .site-nav a:last-child:hover { background: var(--ink); color: var(--ivory); }
  .button-hero:hover { border-color: var(--coral); background: var(--coral); color: var(--ink); }
  .button-coral:hover { background: #ff7683; }
  .text-link:hover, .story-link a:hover, .article-body a:hover { color: #c64051; }
  .light-link:hover { color: var(--coral); }
  .dialog-close:hover { color: var(--ink); border-color: var(--ink); }
  .dialog-alternative a:hover { color: #c64051; }
}
@media (prefers-reduced-motion: no-preference) {
  .button:active { transform: translateY(1px); }
}
.button:active { opacity: .92; }
