/* Porter Nexus Technologies: dark brushed-metal ground, silver type, circuit green.
   Layout: header bar, wide hero, then sections on a 1120px measure with traced "circuit" rules between them. */
:root {
  color-scheme: dark;
  --bg: #070908;
  --surface: #0d1210;
  --surface-2: #121916;
  --line: #1e2824;
  --line-bright: #2c3a34;
  --fg: #e6ebe8;
  --silver: #b9c1bd;
  --muted: #86918c;
  --green: #2cc276;
  --green-soft: #1f8f57;
  --green-glow: rgba(44, 194, 118, 0.14);
  --warn: #d9a441;
  --font-display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --measure: 1120px;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.3rem, 5vw, 3.6rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: calc(var(--measure) + 64px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(7, 9, 8, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font: 400 0.78rem/1.2 var(--font-display); letter-spacing: 0.14em; }
.brand b { color: var(--green); font-weight: 400; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--silver); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav a.cta { color: var(--bg); background: var(--green); }
.nav a.cta:hover { background: var(--fg); }
@media (max-width: 560px) { .brand span { display: none; } .nav a { padding: 8px 9px; font-size: 0.9rem; } }

/* Shared type */
.eyebrow {
  font: 500 var(--step--1)/1 var(--font-mono);
  color: var(--green); letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--green); }
.display { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1.2; }
.lede { color: var(--silver); font-size: var(--step-1); max-width: 60ch; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--font-body); letter-spacing: 0.02em;
  padding: 14px 22px; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--green); background: var(--green); color: var(--bg);
}
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-bright); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: clamp(56px, 9vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.section-head h2 { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: 0.03em; line-height: 1.25; }

/* Circuit trace divider: a line ending in a node, echoing the logo */
.trace { position: relative; height: 1px; background: linear-gradient(90deg, var(--green) 0, var(--line) 22%, var(--line) 100%); }
.trace::before, .trace::after { content: ""; position: absolute; top: -4px; width: 9px; height: 9px; }
.trace::before { left: 0; border: 1px solid var(--green); border-radius: 50%; background: var(--bg); }
.trace::after { left: 22%; background: var(--green); }

/* Hero (home) */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 30% 40%, var(--green-glow), transparent 70%);
}
.hero-lockup { width: 100%; max-width: 980px; margin: 0 auto 8px; }
.hero-copy { display: grid; gap: 24px; justify-items: center; text-align: center; }
.hero-copy h1 { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: 0.05em; line-height: 1.3; max-width: 26ch; }
.hero-copy h1 em { font-style: normal; color: var(--green); }

/* Pyramid */
.pyramid-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 820px) { .pyramid-grid { grid-template-columns: 1fr; } }
.pyramid { width: 100%; max-width: 460px; margin: 0 auto; }
.tiers { display: grid; gap: 0; }
.tier { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tier:last-child { border-bottom: 1px solid var(--line); }
.tier h3 { font: 400 0.8rem/1.4 var(--font-display); letter-spacing: 0.1em; white-space: nowrap; color: var(--fg); padding-top: 3px; }
.tier p { color: var(--silver); }
.tier .verbs { font: 500 var(--step--1)/1.4 var(--font-mono); color: var(--green); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 560px) { .tier { grid-template-columns: 1fr; gap: 6px; } }

/* Capabilities: six brand verbs */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 860px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr; } }
.cap { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.cap svg { width: 34px; height: 34px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.cap h3 { font: 400 0.9rem/1.3 var(--font-display); letter-spacing: 0.14em; color: var(--green); }
.cap p { color: var(--silver); font-size: 1rem; }

/* Product feature (home) */
.product {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center;
  border: 1px solid var(--line-bright); background: var(--surface); border-radius: 6px;
  padding: clamp(24px, 4vw, 48px);
}
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product-copy { display: grid; gap: 20px; }
.wordmark { font: 400 var(--step-4)/1 var(--font-display); letter-spacing: 0.12em; color: var(--fg); }
.wordmark span { color: var(--green); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--silver); }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; background: var(--green); }

/* Case file mock (INDAG) */
.casefile {
  background: var(--surface-2); border: 1px solid var(--line-bright); border-radius: 6px;
  font-size: 0.95rem; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.cf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.cf-bar .id { font: 500 var(--step--1)/1 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }
.sample { font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.1em; color: var(--warn); border: 1px solid currentColor; padding: 4px 6px; border-radius: 3px; }
.cf-head { padding: 16px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.cf-head strong { font-size: 1.15rem; font-weight: 600; }
.cf-head span { color: var(--muted); font-size: 0.9rem; }
.stages { list-style: none; margin: 0; padding: 8px 0; }
.stages li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 16px; }
.stages .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-bright); justify-self: center; }
.stages .done .dot { background: var(--green); border-color: var(--green); }
.stages .active .dot { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-glow); }
.stages .active { background: rgba(44, 194, 118, 0.06); }
.stages .when { font: 500 0.78rem/1 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.stages .todo { color: var(--muted); }
.pill { font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; padding: 5px 7px; border-radius: 3px; text-transform: uppercase; }
.pill.ok { color: var(--green); background: var(--green-glow); }
.pill.open { color: var(--warn); background: rgba(217, 164, 65, 0.12); }
.cf-note { border-top: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 4px; }
.cf-note .meta { font: 500 0.75rem/1.3 var(--font-mono); color: var(--muted); }
.cf-note p { color: var(--silver); font-size: 0.92rem; }

/* INDAG hero */
.p-hero { padding-block: clamp(40px, 7vw, 88px); }
.p-hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .p-hero .grid { grid-template-columns: 1fr; } }
.p-hero-copy { display: grid; gap: 24px; }
.p-hero-copy h1 { font-size: var(--step-4); }
.p-hero-copy .tagline { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: 0.04em; line-height: 1.5; color: var(--fg); max-width: 30ch; }

/* Pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline li { counter-increment: s; padding: 20px 18px 22px; border-top: 2px solid var(--line-bright); display: grid; gap: 6px; align-content: start; }
.pipeline li::before { content: counter(s, decimal-leading-zero); font: 500 var(--step--1)/1 var(--font-mono); color: var(--green); }
.pipeline li:hover { border-top-color: var(--green); }
.pipeline strong { font-weight: 600; }
.pipeline span { color: var(--muted); font-size: 0.95rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: var(--step-1); font-weight: 600; }
.feature p { color: var(--silver); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line-bright); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--silver); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-bright); border-radius: 4px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
textarea { min-height: 110px; resize: vertical; }
.form-status { font-size: 0.95rem; color: var(--silver); min-height: 1.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer .tag { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }

/* Etymology line under the INDAG wordmark */
.etym { font: 500 0.85rem/1.5 var(--font-mono); color: var(--muted); letter-spacing: 0.02em; }
.etym i { color: var(--silver); font-style: italic; }

/* Two workflows */
.flows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line-bright); border-radius: 6px; overflow: hidden; }
@media (max-width: 820px) { .flows { grid-template-columns: 1fr; } }
.flow { padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; background: var(--surface); }
.flow + .flow { border-left: 1px solid var(--line-bright); }
@media (max-width: 820px) { .flow + .flow { border-left: 0; border-top: 1px solid var(--line-bright); } }
.flow h3 { font: 400 1rem/1.3 var(--font-display); letter-spacing: 0.1em; color: var(--green); }
.flow .roles { font: 500 var(--step--1)/1.5 var(--font-mono); color: var(--muted); letter-spacing: 0.04em; }
.flow .link { border-top: 1px dashed var(--line-bright); padding-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* Memo type chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font: 500 0.85rem/1 var(--font-mono); letter-spacing: 0.04em; padding: 9px 12px; border: 1px solid var(--line-bright); border-radius: 3px; color: var(--silver); background: var(--surface); }
.chips li:hover { border-color: var(--green); color: var(--fg); }

/* Data residency band */
.resid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .resid { grid-template-columns: 1fr; } }
.planes { display: grid; gap: 12px; }
.plane { border: 1px solid var(--line-bright); border-radius: 6px; padding: 18px 20px; display: grid; gap: 6px; background: var(--surface); }
.plane.agency { border-color: var(--green-soft); background: rgba(44, 194, 118, 0.05); }
.plane .tag { font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.plane.agency .tag { color: var(--green); }
.plane p { color: var(--silver); font-size: 0.98rem; }
.plane-arrow { font: 500 0.78rem/1.3 var(--font-mono); color: var(--muted); padding-left: 20px; border-left: 1px dashed var(--line-bright); margin-left: 20px; padding-block: 4px; }

/* Soften the edges of the logo artwork so its black plate melts into the page */
.hero-lockup, .product > img {
  -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, #000 62%, transparent 100%);
}

/* Spam trap: hidden from people, filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: var(--step--1); color: var(--muted); }

/* Release summaries and generated help. */
.docs-page{padding-block:3rem;max-width:80ch}.docs-page article{padding-block:1.5rem;border-bottom:1px solid var(--line-bright);scroll-margin-top:6rem}.docs-page h1,.docs-page h2,.docs-page h3{line-height:1.3}.docs-page li{margin-block:.5rem}.docs-page a{color:var(--green)}#contact-verification{min-height:65px;margin-block:1rem}

/* INDAG for IT page */
.it-hero { padding-block: clamp(40px, 6vw, 72px) 32px; }
.it-hero .wrap { display: grid; gap: 20px; }
.it-hero h1 { font-size: var(--step-3); max-width: 24ch; }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-bright); border-radius: 6px; background: var(--surface); margin-top: 8px; }
.glance > div { padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.glance > div + div { border-left: 1px solid var(--line); }
.glance b { font: 600 0.72rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.glance span { color: var(--fg); font-size: 0.98rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance > div:nth-child(3) { border-left: 0; } .glance > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .glance { grid-template-columns: 1fr; } .glance > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.it-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 24px 80px; }
@media (max-width: 900px) { .it-layout { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 2px; border-left: 1px solid var(--line-bright); padding-left: 14px; }
.toc-label { font: 500 var(--step--1)/1.6 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc a { color: var(--silver); text-decoration: none; font-size: 0.95rem; padding: 4px 0; }
.toc a:hover { color: var(--green); }
@media (max-width: 900px) { .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } .toc-label { grid-column: 1 / -1; } }
.it-body { display: grid; gap: 56px; min-width: 0; max-width: 820px; }
.it-body section { display: grid; gap: 16px; scroll-margin-top: 90px; padding: 0; }
.it-body h2 { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: 0.03em; line-height: 1.3; padding-top: 20px; border-top: 1px solid var(--line); }
.it-body h3 { font-size: var(--step-1); font-weight: 600; margin-top: 8px; }
.it-body p, .it-body li { color: var(--silver); }
.it-body strong { color: var(--fg); font-weight: 600; }
.it-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.it-body .ticks li::before { margin-top: 10px; }
.it-body code { font: 500 0.86em/1.4 var(--font-mono); color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; overflow-wrap: anywhere; }
.it-body pre { margin: 0; overflow-x: auto; background: var(--surface); border: 1px solid var(--line-bright); border-radius: 6px; padding: 14px 16px; }
.it-body pre code { background: none; border: 0; padding: 0; white-space: pre; overflow-wrap: normal; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-bright); border-radius: 6px; }
.it-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.it-body th { text-align: left; font: 600 0.72rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--line-bright); }
.it-body td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--silver); vertical-align: top; min-width: 9rem; }
.it-body tr:first-child td { border-top: 0; }
.it-body td:first-child { color: var(--fg); }
.it-body details { border: 1px solid var(--line-bright); border-radius: 6px; background: var(--surface); }
.it-body summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--fg); }
.it-body summary:hover { color: var(--green); }
.it-body details p { padding: 0 16px 16px; }
.copy-text { font-family: var(--font-mono); color: var(--fg); user-select: all; }

/* Sent confirmation that replaces the contact form */
.sent-panel { display: grid; gap: 14px; justify-items: start; background: var(--surface); border: 1px solid var(--green-soft); border-radius: 6px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 0 0 4px var(--green-glow); animation: sent-in 0.35s ease-out; }
.sent-panel:focus { outline: none; }
.sent-panel h3 { font: 400 var(--step-2)/1.25 var(--font-display); letter-spacing: 0.04em; color: var(--fg); }
.sent-panel p { color: var(--silver); max-width: 52ch; }
.sent-panel strong { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.sent-panel .muted { color: var(--muted); font-size: 0.95rem; }
.sent-mark { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--green); position: relative; }
.sent-mark::after { content: ""; position: absolute; left: 14px; top: 8px; width: 10px; height: 18px; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg); }
@keyframes sent-in { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
