/* VigilaID — a technical research canvas. No external assets or fonts. */
:root {
  color-scheme: dark;
  --bg: #081421;
  --surface: #0d1c2c;
  --surface-light: #122436;
  --text: #eff5fa;
  --muted: #acbdcd;
  --cyan: #59e2df;
  --line: #243647;
  --font: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--cyan); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; }
p { color: var(--muted); }
.container { width: min(1200px, calc(100% - 6rem)); margin-inline: auto; }
.text-cyan { color: var(--cyan); }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; }
.icon { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: 1rem; padding: .75rem 1rem; background: var(--cyan); color: var(--bg); border-radius: 3px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(8, 20, 33, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.55rem; font-weight: 650; letter-spacing: -.045em; flex-shrink: 0; }
.brand-icon { width: 32px; height: 36px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.navigation { display: flex; gap: 1.65rem; align-items: center; }
.navigation a { color: var(--muted); font-size: .875rem; padding-block: .8rem; transition: color .2s; }
.navigation a:hover, .navigation a[aria-current="location"] { color: var(--cyan); }
.header-controls { display: flex; align-items: center; gap: 1rem; }
.language-switch { display: flex; align-items: center; gap: .2rem; font: .875rem var(--mono); color: #61788c; }
.language-switch button { color: var(--muted); border: 0; background: transparent; min-width: 40px; min-height: 44px; padding: .3rem; font: inherit; }
.language-switch button[aria-pressed="true"] { color: var(--cyan); }
.menu-toggle { width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 3px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 10px; }
.menu-toggle span { height: 1px; width: 21px; background: var(--text); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding-block: 6rem 5rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .8125rem; letter-spacing: .055em; color: var(--cyan); margin-bottom: 1.75rem; }
.small-line { width: 23px; height: 1px; background: var(--cyan); }
h1 { font-size: clamp(3rem, 5.3vw, 4.75rem); line-height: 1.06; font-weight: 600; letter-spacing: -.055em; }
.hero-description { margin-top: 1.75rem; max-width: 470px; font-size: 1.0625rem; line-height: 1.8; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .8rem 1.2rem; border-radius: 3px; font-size: .875rem; font-weight: 600; transition: background .2s, border-color .2s; }
.button-primary { color: var(--bg); background: var(--cyan); border: 1px solid var(--cyan); }
.button-primary:hover { background: #8eece9; border-color: #8eece9; }
.button-secondary { border: 1px solid #3c5369; }
.button-secondary:hover { background: var(--surface-light); border-color: var(--cyan); }
.hero-note { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; font-size: .8125rem; }
.outline-dot { width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; }
.system-figure { background: linear-gradient(145deg, #102435, #0a1928); border: 1px solid #2b4356; border-radius: 5px; position: relative; box-shadow: 0 20px 70px #020a1433; }
.system-figure::before, .system-figure::after { content: ""; position: absolute; width: 20px; height: 20px; pointer-events: none; }
.system-figure::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); border-radius: 5px 0 0; }
.system-figure::after { bottom: -1px; right: -1px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); border-radius: 0 0 5px; }
.diagram-top, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.diagram-tag { font: .75rem var(--mono); padding: .3rem .5rem; border: 1px solid #365169; color: #c1d4e0; border-radius: 2px; }
.system-diagram { aspect-ratio: 4 / 3; position: relative; background-image: linear-gradient(#24405230 1px, transparent 1px), linear-gradient(90deg, #24405230 1px, transparent 1px); background-size: 26px 26px; }
.circuit-lines { width: 100%; height: 100%; position: absolute; stroke: #4b8b9b; stroke-width: 1.4; }
.circuit-lines circle:not(.orbit) { fill: var(--cyan); stroke: none; }
.circuit-lines .orbit { stroke: #365569; stroke-width: 1; }
.circuit-lines .orbit-outer { stroke-dasharray: 2 7; opacity: .8; }
.diagram-node, .diagram-core { position: absolute; display: flex; align-items: center; justify-content: center; flex-direction: column; transform: translate(-50%, -50%); }
.diagram-node { width: 25%; min-height: 112px; background: #102435; border: 1px solid #365166; border-radius: 4px; padding: .75rem .3rem; gap: .3rem; }
.diagram-node .icon { color: var(--cyan); width: 27px; height: 27px; margin-bottom: .2rem; }
.diagram-node strong { font-size: .8125rem; font-weight: 500; text-align: center; }
.diagram-node span { font-size: .75rem; color: var(--muted); text-align: center; }
.node-camera { top: 25%; left: 18%; }
.node-fingerprint { top: 75%; left: 18%; }
.node-app { top: 50%; left: 82%; }
.diagram-core { top: 50%; left: 50%; width: 28%; aspect-ratio: 1; border: 1px solid #59e2df7a; border-radius: 50%; background: radial-gradient(circle, #173a48, #0d2835); gap: .25rem; box-shadow: 0 0 50px #59e2df0a, inset 0 0 20px #59e2df08; }
.diagram-core svg { fill: none; stroke: var(--cyan); stroke-width: 1.2; width: 40px; height: 40px; margin-bottom: .2rem; }
.diagram-core strong { font: .9375rem var(--mono); }
.diagram-core span { font-size: .75rem; color: var(--muted); text-align: center; }
.diagram-axis { position: absolute; font: .75rem var(--mono); color: #7892a5; }
.axis-top { top: 9px; left: calc(50% - 4px); }
.axis-right { right: 9px; top: calc(50% - 6px); }
figcaption { display: flex; gap: .6rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.caption-mark { color: var(--cyan); font-size: 1rem; }
.technology-strip { border-block: 1px solid var(--line); }
.technology-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.4rem; }
.technology-inner > span { color: var(--muted); }
.technology-inner ul { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; list-style: none; margin: 0; padding: 0; color: #cddae5; font-size: .9375rem; }
.section { padding-block: 6.5rem; scroll-margin-top: 1rem; }
.section-number { color: #809bad; font-family: var(--mono); letter-spacing: 0; }
.context-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6rem; }
.section-intro { font-size: 1.0625rem; margin-bottom: 2rem; }
.risk-item { display: flex; gap: 1.2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.risk-index { color: var(--cyan); font: .8125rem var(--mono); border: 1px solid #365169; width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; }
.risk-item h3 { margin-bottom: .65rem; font-size: 1.1875rem; }
.risk-item p { line-height: 1.75; }
.solution-section { background: var(--surface); border-block: 1px solid var(--line); }
.heading-wide { display: flex; justify-content: space-between; align-items: flex-end; gap: 4rem; margin-bottom: 3rem; }
.heading-wide > p { max-width: 370px; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { display: flex; flex-direction: column; padding: 2rem; border: 1px solid #2b4053; border-radius: 4px; background: linear-gradient(150deg, #13283a, #0e1f30); }
.feature-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.4rem; color: var(--cyan); }
.feature-top .mono { color: #8199ae; }
.feature-card h3 { margin-bottom: 1rem; }
.feature-card p { margin-bottom: 2rem; flex: 1; }
.feature-footer { padding-top: 1.2rem; border-top: 1px solid #2b4053; font-size: .8125rem; color: var(--cyan); }
.architecture-panel { border: 1px solid #2b4053; border-radius: 4px; overflow: hidden; }
.panel-heading { background: var(--surface); padding-inline: 1.75rem; }
.architecture-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.architecture-flow li { position: relative; display: flex; flex-direction: column; padding: 2.2rem 1.75rem 1.6rem; }
.architecture-flow li + li { border-left: 1px solid var(--line); }
.component-number { position: absolute; top: 2rem; right: 1.5rem; font: .75rem var(--mono); color: #8298a9; }
.architecture-flow .icon { color: var(--cyan); margin-bottom: 1.5rem; }
.architecture-flow h3 { font-size: 1.125rem; margin-bottom: .8rem; }
.architecture-flow p { font-size: .9375rem; margin-bottom: 1.5rem; flex: 1; }
.component-category { font: .75rem var(--mono); color: var(--cyan); }
.architecture-note { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.75rem; background: var(--surface); border-top: 1px solid var(--line); font-size: .875rem; }
.architecture-note .icon { width: 24px; height: 24px; color: var(--cyan); }
.research-section { border-block: 1px solid var(--line); background: linear-gradient(110deg, #0d1e2e, #091623); }
.research-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 6rem; align-items: center; }
.research-intro { margin-top: 1.75rem; }
.research-topics { list-style: none; margin: 1.5rem 0; padding: 0; }
.research-topics li { display: flex; gap: .85rem; align-items: baseline; padding-block: .7rem; font-size: .9375rem; border-bottom: 1px solid var(--line); }
.research-topics li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--cyan); flex-shrink: 0; }
.research-status { font-size: .875rem; line-height: 1.8; }
.claude-card { padding: 2.5rem; background: #122638; border: 1px solid #355368; border-radius: 4px; position: relative; }
.claude-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; color: var(--cyan); }
.planned-tag { font-size: .75rem; border: 1px solid #5a7082; border-radius: 2px; padding: .3rem .6rem; color: #d3e0e9; }
.claude-eyebrow { color: var(--cyan); margin-bottom: .9rem; line-height: 1.6; }
.claude-card h3 { font-size: 2.5rem; letter-spacing: -.04em; margin-bottom: 1.25rem; }
.claude-capability { display: flex; gap: 1rem; margin-top: 1.5rem; }
.claude-capability > span { color: var(--cyan); font: 1.25rem var(--mono); }
.claude-capability h4 { margin-bottom: .4rem; font-size: 1rem; font-weight: 500; }
.claude-capability p { font-size: .875rem; }
.claude-note { border-top: 1px solid #365066; padding-top: 1.2rem; margin-top: 1.75rem; font-size: .875rem; color: #c4d5e2; }
.author-section { display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; gap: 5rem; }
.author-card { display: flex; align-items: flex-start; gap: 1.75rem; }
.author-monogram { width: 88px; height: 88px; flex-shrink: 0; border: 1px solid #375469; color: var(--cyan); display: grid; place-items: center; font: 1.75rem var(--mono); background: var(--surface); position: relative; }
.monogram-corner { width: 13px; height: 13px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); position: absolute; bottom: -1px; right: -1px; }
.author-details h3 { font-size: 1.625rem; line-height: 1.3; }
.author-role { color: var(--cyan); font-size: .875rem; margin-top: .65rem; margin-bottom: 1.2rem; }
.contact-status { display: flex; gap: .65rem; align-items: center; color: var(--muted); margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; }
.contact-status .icon { width: 20px; height: 20px; }
.site-footer { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.footer-inner p, .back-top { font-size: .875rem; }
.back-top { padding-block: .7rem; }
.back-top:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; font-size: .75rem; color: var(--muted); }
@media (min-width: 901px) { .menu-toggle { display: none; } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 4rem); }
  .header-inner { gap: 1rem; }
  .navigation { gap: 1rem; }
  .hero { gap: 2.5rem; padding-block: 4.5rem; }
  .hero-actions { gap: .6rem; }
  .button { padding-inline: .9rem; }
  .diagram-node { min-height: 94px; }
  .diagram-node strong { font-size: .75rem; }
  .diagram-node span { font-size: .75rem; }
  .diagram-core svg { width: 32px; height: 32px; }
  .diagram-core strong { font-size: .8125rem; }
  .diagram-core span { font-size: .75rem; }
  .technology-inner ul { gap: 1rem 1.5rem; }
  .context-section, .research-grid, .author-section { gap: 3rem; }
  .feature-card { padding: 1.5rem; }
  .architecture-flow li { padding-inline: 1.2rem; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 76px; gap: 0; }
  .header-controls { margin-left: auto; }
  .navigation { order: 3; width: 100%; flex-wrap: wrap; padding-bottom: 1rem; gap: .4rem 1.4rem; }
  .js .navigation { display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .js .navigation.is-open { display: flex; }
  .navigation a { padding: .65rem 0; }
  .js .menu-toggle { display: flex; }
  .hero { grid-template-columns: 1fr 1fr; gap: 2rem; }
  h1 { font-size: clamp(2.75rem, 5.6vw, 4rem); }
  .hero-description { font-size: 1rem; }
  .system-figure { align-self: center; }
  .diagram-top { padding: .85rem; gap: .5rem; flex-wrap: wrap; }
  .diagram-top .mono { font-size: .75rem; }
  .diagram-node { min-height: 85px; }
  .diagram-node strong { font-size: .75rem; }
  .diagram-node span { display: none; }
  .diagram-core span { display: none; }
  .diagram-core svg { width: 28px; height: 28px; }
  figcaption { padding: .85rem; }
  .technology-inner { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .section { padding-block: 4.5rem; }
  .context-section, .author-section { grid-template-columns: 1fr 1.2fr; gap: 2rem; }
  .heading-wide { gap: 2rem; }
  .heading-wide > p { max-width: 280px; }
  .solution-grid { gap: .75rem; }
  .feature-card { padding: 1.25rem; }
  .feature-card h3 { font-size: 1.125rem; }
  .feature-card p { font-size: .9375rem; }
  .architecture-flow { grid-template-columns: repeat(2, 1fr); }
  .architecture-flow li { padding: 1.75rem; }
  .architecture-flow li:nth-child(3) { border-left: 0; }
  .architecture-flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .research-grid { gap: 2rem; }
  .claude-card { padding: 1.75rem; }
  .author-card { gap: 1.1rem; }
  .author-monogram { width: 65px; height: 65px; font-size: 1.3rem; }
  .author-details h3 { font-size: 1.375rem; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 6rem; }
  .container { width: calc(100% - 2.5rem); }
  .brand { font-size: 1.4rem; }
  .brand-icon { width: 28px; height: 32px; }
  .header-controls { gap: .4rem; }
  .header-inner { min-height: 72px; }
  .hero { grid-template-columns: 1fr; padding-block: 3.5rem; gap: 3rem; }
  h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .eyebrow { font-size: .75rem; margin-bottom: 1.5rem; }
  .hero-description { margin-top: 1.5rem; max-width: 100%; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-note { margin-top: 1.2rem; }
  .system-figure { width: 100%; max-width: 520px; justify-self: center; }
  .diagram-top { padding: 1rem; }
  .diagram-node { min-height: 100px; }
  .diagram-node strong { font-size: .75rem; }
  .diagram-core svg { width: 34px; height: 34px; }
  .diagram-core strong { font-size: .875rem; }
  figcaption { padding: 1rem; }
  .technology-inner ul { gap: .6rem 1.3rem; font-size: .875rem; }
  .section { padding-block: 3.75rem; }
  .context-section, .research-grid, .author-section { grid-template-columns: 1fr; gap: 2rem; }
  .heading-wide { display: block; margin-bottom: 2rem; }
  .heading-wide > p { max-width: 100%; margin-top: 1.5rem; }
  .solution-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.75rem; }
  .feature-top { margin-bottom: 1.5rem; }
  .feature-card h3 { font-size: 1.3rem; }
  .feature-card p { font-size: 1rem; margin-bottom: 1.5rem; }
  .architecture-flow li { padding: 1.5rem 1.1rem; }
  .architecture-flow p { font-size: .875rem; }
  .panel-heading { padding-inline: 1rem; flex-wrap: wrap; gap: .6rem; }
  .architecture-note { padding: 1.2rem; align-items: flex-start; }
  .claude-card { padding: 1.75rem; }
  .claude-top { margin-bottom: 2rem; }
  .author-card { gap: 1.2rem; }
  .author-monogram { width: 66px; height: 66px; }
  .footer-inner { flex-wrap: wrap; gap: 1rem 2rem; }
  .footer-inner p { order: 3; width: 100%; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 2rem); }
  .language-switch button { min-width: 32px; }
  .hero-actions { flex-direction: column; }
  .diagram-node { min-height: 80px; }
  .diagram-node strong { font-size: .75rem; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .author-card { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { --bg: #fff; --text: #142331; --muted: #394854; --cyan: #006563; --line: #b7c4cc; }
  body { font-size: 11pt; }
  .site-header { position: static; background: #fff; }
  .header-controls, .hero-actions, .back-top { display: none; }
  .section { padding-block: 2rem; }
  .container { width: 100%; }
  .hero { padding-block: 2rem; }
  .solution-section, .research-section, .feature-card, .claude-card, .architecture-note, .panel-heading { background: #fff; }
  .feature-card, .claude-card, .author-card { break-inside: avoid; }
  .system-figure { print-color-adjust: exact; color: #eff5fa; }
}
