/* SPDX-License-Identifier: Apache-2.0 */
:root {
  --ink:#101d3f;
  --muted:#52617c;
  --blue:#165fe5;
  --line:#dce3ec;
  --surface:#f4f6f9;
  --white:#fff;
  --radius:4px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--white);
  font-size:16px;
  line-height:1.65
}

* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  margin:0
}
a {
  color:var(--blue);
  text-underline-offset:4px
}
a:hover {
  text-decoration-thickness:2px
}
a:focus-visible,summary:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:5px;
  border-radius:2px
}
img {
  max-width:100%;
  height:auto
}
p {
  margin:0 0 1.25rem
}
h1,h2 {
  line-height:1.16;
  letter-spacing:-.035em
}
h1 {
  font-size:clamp(2.25rem,5vw,3.5rem);
  font-weight:650;
  margin:0 0 1rem
}
h2 {
  font-size:1.15rem;
  font-weight:650;
  margin:0 0 .65rem;
  letter-spacing:-.02em
}
p+h2,details h2 {
  margin-top:1.5rem
}
.shell {
  max-width:1088px;
  padding:0 40px;
  margin:auto
}
.site-header {
  display:flex;
  align-items:center;
  gap:32px;
  min-height:108px;
  border-bottom:1px solid var(--line)
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
  letter-spacing:-.04em;
  font-size:1.5rem;
  flex-shrink:0
}
.brand img {
  object-fit:contain
}
.site-header>nav:first-of-type {
  margin-left:auto
}
.site-header nav,.site-footer nav {
  display:flex;
  align-items:center;
  gap:28px
}
.site-header nav a,.site-footer nav a {
  color:var(--muted);
  font-size:.875rem;
  text-decoration:none;
  white-space:nowrap;
  padding:12px 0
}
.site-header nav a:hover,.site-footer nav a:hover {
  color:var(--blue)
}
.site-header nav a[aria-current] {
  color:var(--ink);
  box-shadow:0 2px 0 var(--blue)
}
.site-header .languages {
  gap:12px;
  padding-left:24px;
  border-left:1px solid var(--line)
}
.languages a {
  font-size:.8rem;
  font-weight:600
}
.languages a[aria-current] {
  box-shadow:none!important;
  text-decoration:underline;
  text-decoration-color:var(--blue);
  text-underline-offset:7px
}
main {
  padding:64px 0;
  min-height:0
}
main>h1,main>.lead {
  max-width:820px
}
.lead {
  color:var(--muted);
  font-size:1.2rem;
  line-height:1.6;
  margin-bottom:2.5rem
}
.hero {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:center;
  gap:48px;
  padding:8px 0 64px
}
.hero h1 {
  font-size:clamp(2.5rem,5.4vw,4.5rem);
  line-height:1.04;
  margin:12px 0 24px
}
.hero .lead {
  margin-bottom:28px
}
.eyebrow {
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:12px;
  display:block
}
.passport {
  width:280px;
  justify-self:center
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--blue);
  color:var(--white);
  padding:12px 22px;
  border-radius:var(--radius);
  text-decoration:none;
  font-size:.9rem;
  font-weight:550;
  min-height:46px
}
.button:hover {
  background:#104dbb;
  text-decoration:none
}
.icon {
  height:30px;
  width:30px;
  flex-shrink:0
}
.features {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  padding-top:40px;
  gap:40px
}
.features h2 {
  margin:18px 0 10px;
  font-size:1rem
}
.features p,.quiet-note {
  font-size:.9rem;
  color:var(--muted)
}
.quiet-note {
  margin-top:32px;
  margin-bottom:0;
  max-width:820px
}
.steps {
  list-style:none;
  counter-reset:step;
  padding:0;
  margin:0 0 32px
}
.steps>li {
  position:relative;
  padding:0 0 28px 60px;
  margin-bottom:28px;
  border-bottom:1px solid var(--line);
  counter-increment:step
}
.steps>li:before,.relink-steps>li:before {
  content:counter(step);
  position:absolute;
  left:0;
  top:0;
  background:var(--surface);
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-weight:600
}
.steps p {
  margin-bottom:12px;
  color:var(--muted)
}
code {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:.84rem;
  overflow-wrap:anywhere;
  word-break:break-word
}
.address {
  display:block;
  padding:15px 18px;
  background:var(--surface);
  border-radius:var(--radius)
}
details {
  border-block:1px solid var(--line);
  padding:18px 0;
  margin:24px 0
}
details details {
  border:0
}
summary {
  cursor:pointer;
  font-size:.9rem;
  font-weight:600
}
details[open] summary {
  margin-bottom:18px
}
details p {
  font-size:.9rem;
  color:var(--muted);
  margin-top:12px;
  margin-bottom:0
}
.steps details {
  border:0;
  margin:12px 0 0;
  padding:4px 0
}
.notice {
  background:var(--surface);
  padding:24px;
  margin:32px 0;
  border-radius:var(--radius);
  max-width:880px
}
.notice h2 {
  font-size:1rem;
  letter-spacing:0
}
.notice p {
  font-size:.9rem;
  color:var(--muted);
  margin-bottom:0
}
.notice a {
  display:inline-block;
  margin-top:12px;
  font-size:.9rem
}
.muted {
  color:var(--muted)
}
.release {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  background:var(--surface);
  padding:24px;
  margin:32px 0;
  border-radius:var(--radius)
}
.release h2 {
  margin:0;
  font-size:1.35rem
}
.release .eyebrow {
  margin-bottom:8px
}
.badge {
  display:inline-block;
  vertical-align:middle;
  font-size:.65rem;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:3px;
  padding:4px 6px;
  letter-spacing:0;
  margin-left:8px
}
.downloads {
  list-style:none;
  padding:0;
  margin:0
}
.downloads li {
  display:flex;
  align-items:center;
  gap:24px;
  border-bottom:1px solid var(--line);
  padding:20px 0
}
.downloads .icon {
  width:22px;
  height:22px
}
.downloads strong {
  font-size:.95rem;
  font-weight:600
}
.downloads span {
  display:block;
  font-size:.82rem;
  color:var(--muted)
}
.file-link {
  margin-left:auto;
  font-size:.85rem;
  flex-shrink:0
}
table {
  border-collapse:collapse;
  width:100%;
  margin:32px 0;
  font-size:.95rem;
  text-align:left
}
th,td {
  padding:18px 8px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  overflow-wrap:anywhere
}
thead {
  color:var(--muted);
  font-size:.78rem
}
tbody th {
  font-weight:600;
  width:46%
}
td {
  color:var(--muted)
}
.text-links {
  padding-left:20px;
  font-size:.9rem
}
.text-links li {
  margin-bottom:10px
}
.relink-steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  list-style:none;
  padding:32px 0;
  margin:40px 0;
  border-block:1px solid var(--line);
  counter-reset:step
}
.relink-steps li {
  counter-increment:step;
  position:relative;
  padding-top:54px
}
.relink-steps h2 {
  font-size:1rem
}
.relink-steps p {
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:0
}
pre {
  background:var(--surface);
  padding:16px;
  white-space:pre-wrap
}
.privacy-sections {
  margin-top:40px
}
.privacy-sections section {
  display:flex;
  gap:28px;
  padding:28px 0;
  border-bottom:1px solid var(--line)
}
.privacy-sections h2 {
  font-size:1rem
}
.privacy-sections p {
  color:var(--muted);
  font-size:.95rem;
  max-width:760px;
  margin:0
}
.privacy-sections a {
  display:inline-block;
  font-size:.9rem;
  margin-top:12px
}
.site-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  gap:24px;
  padding:24px 0
}
.site-footer .brand {
  font-size:1rem;
  gap:8px
}
.site-footer nav {
  gap:24px;
  flex-wrap:wrap
}
.site-footer nav a {
  font-size:.8rem
}
.preview-note {
  color:var(--muted);
  font-size:.75rem;
  margin:0 0 20px
}
.sr-only,.skip:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0
}
.skip:focus {
  position:absolute;
  z-index:10;
  top:10px;
  left:10px;
  background:white;
  padding:12px
}

@media(max-width:768px) {
  .shell {
  padding:0 24px
}
.site-header {
  flex-wrap:wrap;
  gap:12px;
  padding:20px 0;
  min-height:100px
}
.site-header .brand {
  font-size:1.3rem
}
.site-header>nav:first-of-type {
  order:3;
  flex-basis:100%;
  margin-left:0;
  gap:24px
}
.site-header .languages {
  margin-left:auto;
  padding-left:16px;
  gap:12px
}
.site-header nav a {
  font-size:.8rem;
  padding:8px 0
}
main {
  padding:40px 0
}
.hero {
  gap:20px;
  padding:0 0 40px
}
.passport {
  width:200px
}
.hero h1 {
  font-size:2.6rem
}
.lead {
  font-size:1.05rem
}
.features {
  gap:24px
}
.release {
  padding:20px;
  align-items:flex-start
}
.release h2 {
  font-size:1.15rem
}
.site-footer {
  align-items:flex-start
}
.site-footer nav {
  gap:12px 20px;
  justify-content:flex-end
}
.relink-steps {
  gap:20px
}

}

@media(max-width:480px) {
  .shell {
  padding:0 20px
}
.hero {
  grid-template-columns:1fr;
  gap:20px
}
.hero h1 {
  font-size:2.75rem
}
.hero .passport {
  width:180px;
  justify-self:end;
  margin-top:-20px
}
.features {
  grid-template-columns:1fr;
  gap:24px;
  padding-top:28px
}
.features article {
  display:grid;
  grid-template-columns:30px 1fr;
  column-gap:20px
}
.features .icon {
  grid-row:1/3
}
.features h2 {
  margin:0 0 6px
}
.features p {
  grid-column:2;
  margin:0
}
.steps>li {
  padding-left:48px
}
.release {
  flex-direction:column
}
.downloads li {
  gap:14px;
  flex-wrap:wrap
}
.downloads li>div {
  flex:1;
  min-width:160px
}
.file-link {
  margin-left:36px
}
.relink-steps {
  grid-template-columns:1fr;
  gap:28px
}
.relink-steps li {
  padding:0 0 0 50px;
  min-height:36px
}
.relink-steps>li:before {
  width:32px;
  height:32px
}
.site-footer {
  flex-direction:column;
  gap:12px
}
.site-footer nav {
  gap:12px 20px;
  justify-content:flex-start
}
.site-footer nav a {
  white-space:normal
}
table {
  font-size:.85rem
}
th,td {
  padding:14px 5px
}
.privacy-sections section {
  gap:18px
}
.notice {
  padding:20px
}
h1 {
  font-size:2.2rem
}

}

@media(prefers-reduced-motion:reduce) {
  html {
  scroll-behavior:auto
}

}

/* Compact overview; PNGs remain complete, unmodified and proportional. */
.hero { gap:32px; padding-bottom:40px; }
.hero h1 { font-size:clamp(2.3rem,4.7vw,3.7rem); }
.hero .lead { font-size:1.05rem; max-width:34rem; margin-bottom:24px; }
.app-previews { border-top:1px solid var(--line); padding-top:24px; }
.app-previews > h2 { font-size:1.8rem; margin:0 0 18px; }
.gallery-region { overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; padding:2px 1px 12px; }
.gallery-region:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.app-gallery { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 24px)/3); align-items:start; gap:12px; list-style:none; margin:0; padding:0; }
.preview-card { scroll-snap-align:start; min-width:0; border:1px solid var(--line); border-radius:6px; padding:16px; }
.preview-meta { display:flex; justify-content:space-between; gap:8px; font-size:.62rem; letter-spacing:.04em; color:var(--muted); margin-bottom:10px; }
.preview-card h3 { font-size:1rem; line-height:1.35; letter-spacing:-.02em; margin:0 0 6px; }
.preview-card > p { color:var(--muted); font-size:.85rem; line-height:1.5; margin:0 0 16px; }
.preview-card figure { margin:0; }
.app-capture { display:block; width:min(100%,210px); margin:0 auto; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.app-capture img { display:block; width:100%; height:auto; }
.app-capture:hover { outline:1px solid var(--blue); outline-offset:3px; }
.feature-details { margin-top:20px; }
.feature-details details { margin:0; padding:16px 0; }
.feature-details details + details { border-top:0; }
@media (max-width:1023px) { .app-gallery { grid-auto-columns:calc((100% - 12px)/2); } }
@media (max-width:600px) {
  .app-gallery { grid-auto-columns:86%; }
  .preview-card { padding:14px; }
  .hero { padding-bottom:28px; }
  .hero .passport { display:none; }
  .hero h1 { font-size:clamp(2.15rem,9vw,2.75rem); }
}

/* Synthetic document artwork stays separate from the original app gallery. */
.hero .document-art { display:block; width:100%; max-width:480px; height:auto; justify-self:center; }
.identity-art { display:block; max-width:660px; margin:20px 0 0; }
.identity-art img { display:block; width:100%; height:auto; }
@media (max-width:600px) { .hero .document-art { max-width:340px; } }

/* Scroll narrative: content stays readable without JavaScript. */
.feature-details { margin-top:48px; }
.feature-scene { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:44px; align-items:center; padding:44px 0; border-bottom:1px solid var(--line); scroll-margin-top:24px; }
.feature-scene:last-child { border-bottom:0; }
.feature-icon { display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:12px; color:var(--blue); }
.feature-icon svg { width:24px; height:24px; stroke:currentColor; stroke-width:1.5; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.scene-number { font-size:.65rem; letter-spacing:.09em; color:var(--muted); margin:20px 0 10px; }
.scene-copy h3 { font-size:clamp(1.6rem,2.7vw,2.15rem); line-height:1.15; margin:0 0 18px; letter-spacing:-.035em; }
.scene-copy > p:not(.scene-number) { font-size:.98rem; line-height:1.7; color:var(--muted); }
.feature-points { list-style:none; padding:0; margin:20px 0; }
.feature-points li { position:relative; padding-left:20px; margin:9px 0; font-size:.9rem; }
.feature-points li::before { content:'✓'; color:var(--blue); position:absolute; left:0; }
.scene-copy .feature-note { font-size:.78rem!important; line-height:1.65; }
.scene-art { width:100%; min-width:0; display:flex; align-items:center; justify-content:center; margin:0; }
.scene-art img { display:block; width:100%; height:auto; }
.scene-art .scene-passport { width:min(100%,300px); }
.trust-flow { list-style:none; padding:0; margin:0; }
.trust-flow li { display:flex; gap:18px; align-items:center; padding:22px 0; border-bottom:1px solid var(--line); }
.trust-flow li:last-child { border:0; }
.trust-flow li > span { color:var(--blue); font-size:1.6rem; width:32px; text-align:center; }
.trust-flow strong { font-weight:550; font-size:1rem; }
.trust-flow p { font-size:.84rem; color:var(--muted); margin:4px 0 0; }
@media(prefers-reduced-motion:no-preference) {
 .feature-scene.is-ready .scene-copy,.feature-scene.is-ready .scene-art,.feature-scene.is-ready .trust-flow { opacity:.18; transform:translateY(18px); transition:opacity .65s ease,transform .65s ease; }
 .feature-scene.is-visible .scene-copy,.feature-scene.is-visible .scene-art,.feature-scene.is-visible .trust-flow { opacity:1; transform:none; }
 .feature-scene.is-visible .scene-art,.feature-scene.is-visible .trust-flow { transition-delay:.1s; }
}
@media(max-width:700px) {
 .feature-scene { grid-template-columns:1fr; gap:20px; padding:32px 0; }
 .scene-art { max-width:440px; justify-self:center; }
 .feature-details { margin-top:28px; }
}

.interface-list .feature-icon { flex:0 0 40px; width:40px; height:40px; border:0; border-radius:0; }
.interface-list .feature-icon svg { width:30px; height:30px; stroke-width:1.6; }

.pqc-brand { flex-direction:column; gap:16px; padding:24px; }
.pqc-brand img { width:260px; height:260px; object-fit:contain; }
.pqc-wordmark { color:var(--navy); font-size:1.35rem; font-weight:550; letter-spacing:-.025em; text-align:center; line-height:1.4; max-width:260px; text-wrap:balance; }
@media(max-width:700px) { .pqc-brand img { width:200px; height:200px; } }

.feature-icon img { display:block; width:24px; height:24px; }

/* Unframed lattice-to-icon animation shared with the Phoenix project site. */
.pqc-brand.pqc-demo{display:block;padding:0;background:transparent;border:0;min-width:0}
.pqc-demo>svg{display:block;width:100%;height:auto;max-width:600px;aspect-ratio:600/440;overflow:visible}
.pqc-demo noscript img{display:block;margin:auto}
.pqc-edges line{stroke:#99b4ef;stroke-width:1.1}.pqc-nodes circle{fill:#4969ff}

.site-header .brand{font-size:1.7rem;gap:12px}
.site-header .brand img{width:52px;height:64px;object-fit:contain}
@media(max-width:700px){.site-header .brand{font-size:1.5rem}.site-header .brand img{width:46px;height:56px}}

.chip-feature{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px;padding:60px 0;border-top:1px solid var(--line)}
#pqc{border-bottom:0}
.chip-feature h2{font-size:clamp(1.8rem,3.3vw,2.5rem);line-height:1.15;letter-spacing:-.04em;margin:15px 0 22px}
.chip-feature>div>p:not(.scene-number){color:var(--muted);line-height:1.8}
.chip-standards{list-style:none;padding:0;margin:25px 0 0}.chip-standards li{padding:15px 0;border-top:1px solid var(--line)}.chip-standards a{font-size:1rem;font-weight:600}.chip-standards p{font-size:.87rem;line-height:1.7;color:var(--muted);margin:7px 0 0}
.chip-demo{min-width:0}.chip-stage{position:relative;width:100%;max-width:500px;aspect-ratio:.9;margin:auto;isolation:isolate}
.chip-stage .scene-layer{position:absolute;left:14%;top:36%;width:72%;aspect-ratio:1577/997;transform:rotateZ(-8deg);transform-origin:center}
.chip-stage .scene-layer>img,.chip-stage .scene-layer>svg{display:block;width:100%;height:100%;border:0;border-radius:12px}
.chip-stage .scene-board{z-index:1;filter:drop-shadow(0 3px 0 #18375c) drop-shadow(0 16px 12px #15345a22)}
.chip-stage .scene-face{z-index:2;overflow:hidden;border-radius:12px;filter:drop-shadow(0 5px 6px #193b5f15)}
@media(max-width:700px){.chip-feature{grid-template-columns:1fr;gap:10px;padding:40px 0}.chip-feature h2{font-size:2rem}.chip-stage{max-width:390px}}

.brand-subtitle{display:block;font-size:.65rem;font-weight:500;letter-spacing:0;line-height:1.5;color:var(--muted)}


.error-page{min-height:100svh;display:flex;flex-direction:column;align-items:center;padding:40px 24px 24px;text-align:center}
.error-brand{display:grid;justify-items:center;gap:4px}
.error-brand img{display:block;margin-bottom:8px}
.error-brand strong{font-size:1.75rem;letter-spacing:-.04em;line-height:1.2}
.error-brand span,.error-page footer{color:var(--muted);font-size:.75rem}
.error-content{flex:1;display:flex;flex-direction:column;justify-content:center;padding:40px 0;max-width:600px}
.error-content .error-code{font-size:clamp(7rem,28vw,12rem);font-weight:650;letter-spacing:-.07em;line-height:1;margin:0 0 24px;color:var(--blue)}
.error-content h1{font-size:clamp(1.75rem,5vw,2.5rem)}
.error-content>p:last-child{color:var(--muted);margin:0}
