/* Zentior — site styles */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations"), url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --graphite: #151B1F;
  --graphite-2: #222B31;
  --amber: #F5B041;
  --amber-ink: #8A5A00;
  --paper: #F6F7F7;
  --steel: #D9DFE2;
  --slate: #56636D;
  --mist: #A9B4BB;
  --white: #FFFFFF;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2.0rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.7rem + 3.8vw, 4.6rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--graphite);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--amber); color: var(--graphite); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.08;
  margin: 0 0 0.6em;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; font-stretch: 78%; letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-stretch: 90%; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--graphite); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand img { width: 9.5rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--graphite); text-decoration: none; font-size: 0.97rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.nav .lang { font-weight: 600; color: var(--slate); padding-left: 1.2rem; border-left: 1px solid var(--steel); border-bottom: 0; }
.nav .btn { padding: .55rem 1rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--steel); border-radius: var(--radius); padding: .5rem .75rem; font: inherit; font-weight: 600; color: var(--graphite); }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--steel); padding: .5rem var(--gutter) 1.25rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--steel); }
  .nav .lang { border-left: 0; padding-left: 0; }
  .nav .btn { margin-top: 1rem; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 650; font-size: 1rem;
  background: var(--amber); color: var(--graphite) !important; text-decoration: none !important;
  padding: .85rem 1.35rem; border-radius: var(--radius); border: 2px solid var(--amber);
  transition: background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:hover { background: #FFC560; border-color: #FFC560; }
.btn.ghost { background: transparent; color: inherit !important; border-color: currentColor; }
.btn.ghost:hover { background: rgba(245,176,65,.12); }

/* Hero */
.hero { background: var(--graphite); color: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero .lede { font-size: var(--step-1); color: #C9D1D6; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .btn.ghost { color: var(--paper) !important; border-color: #56636D; }
.hero .standards { margin-top: 2.75rem; color: var(--mist); font-size: var(--step--1); max-width: 48ch; }
.hero .standards strong { color: var(--paper); font-weight: 600; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-figure { max-width: 34rem; } }

/* Zones & conduits schematic */
.schematic { width: 100%; }
.schematic text { font-family: var(--sans); font-size: 11px; fill: var(--mist); letter-spacing: .02em; }
.schematic .lvl { fill: none; stroke: #33404A; stroke-width: 1; }
.schematic .lvl-label { fill: #6E7C86; font-size: 10.5px; }
.schematic .zone { fill: var(--graphite-2); stroke: #4A5862; stroke-width: 1.2; }
.schematic .zone-it { stroke: #6E7C86; }
.schematic .zone-name { fill: #DDE3E6; font-size: 11.5px; font-weight: 600; }
.schematic .asset { fill: #3A4751; }
.schematic .conduit { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.schematic .gate { fill: var(--graphite); stroke: var(--amber); stroke-width: 2; }
.schematic .conduit-label { fill: var(--amber); font-size: 10.5px; }
@media (prefers-reduced-motion: no-preference) {
  .schematic .conduit { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.4s ease-out forwards; }
  .schematic .conduit.c2 { animation-delay: .35s; }
  .schematic .conduit.c3 { animation-delay: .7s; }
  .schematic .conduit.c4 { animation-delay: 1.05s; }
  .schematic .gate { opacity: 0; animation: appear .3s ease-out forwards; animation-delay: 1.5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}
.figure-caption { color: #7D8A93; font-size: .8rem; margin-top: .6rem; }

/* Sections */
section.block { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section.block + section.block { border-top: 1px solid var(--steel); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.section-head p { color: var(--slate); font-size: var(--step-1); margin: 0; }
.section-head h2 { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Service rows */
.services { border-top: 2px solid var(--graphite); }
.service-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 3rem; padding: 2.25rem 0; border-bottom: 1px solid var(--steel); }
.service-row h3 { margin: 0; font-size: var(--step-3); font-stretch: 80%; }
.service-row h3 a { color: inherit; text-decoration: none; }
.service-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.service-row p { margin: 0 0 .8rem; }
.service-row ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; color: var(--slate); }
.service-row li { padding: .3rem 0; border-top: 1px solid var(--steel); }
.service-row li:first-child { border-top: 0; padding-top: 0; }
.service-row .more { font-weight: 600; }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } }

/* Method (a real sequence) */
.method { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.method li { padding: 1.5rem 1.25rem 0 0; border-top: 2px solid var(--graphite); position: relative; }
.method li::before { counter-increment: step; content: counter(step); display: block; font-weight: 800; font-stretch: 75%; font-size: var(--step-3); color: var(--amber-ink); line-height: 1; margin-bottom: .6rem; }
.method li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--amber); border-radius: 50%; }
.method h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.method p { font-size: .95rem; color: var(--slate); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

/* Standards table */
.frameworks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--steel); border-left: 1px solid var(--steel); }
.frameworks div { padding: 1.25rem 1.25rem 1rem; border-right: 1px solid var(--steel); border-bottom: 1px solid var(--steel); background: var(--white); }
.frameworks strong { display: block; font-size: 1.05rem; font-stretch: 90%; }
.frameworks span { color: var(--slate); font-size: .92rem; }
@media (max-width: 860px) { .frameworks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .frameworks { grid-template-columns: 1fr; } }

/* NormSync band */
.band { background: var(--graphite); color: var(--paper); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.band h2 { color: var(--white); }
.band p { color: #C9D1D6; }
.band .btn.ghost { color: var(--paper) !important; border-color: #56636D; }
.band .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.ns-mark { font-weight: 800; font-stretch: 70%; letter-spacing: .08em; color: var(--amber); font-size: 1rem; margin-bottom: 1rem; display: block; }
.mapping { width: 100%; }
.mapping text { font-family: var(--sans); fill: #DDE3E6; font-size: 12px; }
.mapping .src { fill: var(--graphite-2); stroke: var(--amber); stroke-width: 1.5; }
.mapping .dst { fill: var(--graphite-2); stroke: #4A5862; stroke-width: 1.2; }
.mapping .line { stroke: #6E7C86; stroke-width: 1.2; fill: none; }
.mapping .src-label { fill: var(--amber); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

/* Page header for inner pages */
.page-head { background: var(--graphite); color: var(--paper); }
.page-head .wrap { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: var(--white); font-size: var(--step-4); max-width: 22ch; }
.page-head p { color: #C9D1D6; font-size: var(--step-1); max-width: 56ch; margin: 0; }
.crumbs { font-size: .9rem; color: var(--mist); margin-bottom: 1.5rem; }
.page-head a { color: var(--amber); }
.crumbs a { color: var(--mist); }

/* Prose */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; }
.split aside { border-top: 2px solid var(--graphite); padding-top: 1.25rem; align-self: start; position: sticky; top: 6rem; }
.split aside h2 { font-size: var(--step-1); }
.split aside ul { padding: 0; list-style: none; margin: 0 0 1.5rem; }
.split aside li { padding: .45rem 0; border-bottom: 1px solid var(--steel); font-size: .95rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .split aside { position: static; } }

.article { font-family: var(--serif); font-size: 1.14rem; line-height: 1.7; }
.article h2, .article h3 { font-family: var(--sans); }
.article p, .article li { max-width: 66ch; }
.article-meta { color: var(--mist); font-size: .95rem; margin-top: 1rem; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--graphite); }
.post-list li { padding: 1.75rem 0; border-bottom: 1px solid var(--steel); }
.post-list h2 { font-size: var(--step-2); margin-bottom: .4rem; }
.post-list h2 a { color: inherit; text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.post-list time { color: var(--slate); font-size: .9rem; }

/* CTA strip */
.cta { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--steel); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta h2 { font-size: var(--step-3); margin: 0; max-width: 24ch; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.form label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; color: var(--graphite); background: var(--white);
  border: 1px solid #B8C2C8; border-radius: var(--radius); padding: .75rem .85rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--graphite); }
.form textarea { min-height: 10rem; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form .consent { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--slate); }
.form .consent input { width: auto; margin-top: .3rem; }
.notice { padding: 1rem 1.2rem; border-left: 4px solid var(--amber); background: var(--white); margin-bottom: 1.5rem; }
.notice[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--graphite); color: var(--mist); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2rem; }
.site-footer img { width: 9rem; margin-bottom: 1rem; }
.site-footer h2 { font-size: 1rem; color: var(--paper); margin-bottom: .8rem; font-stretch: 100%; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2E3940; padding-top: 1.5rem; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .cta, .hero-figure { display: none; }
  .hero, .page-head, .band { background: none; color: #000; }
}
.prose > :first-child { margin-top: 0; }
