:root {
  --bg: #080b10;
  --bg2: #0b0f16;
  --surface: #0e141d;
  --surface2: #121a25;
  --text: #f4f7fa;
  --muted: #8c98a8;
  --dim: #566171;
  --line: rgba(181, 202, 225, 0.14);
  --line2: rgba(181, 202, 225, 0.07);
  --blue: #168fff;
  --blue2: #53b7ff;
  --green: #45d18b;
  --sans: "Manrope", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --shell: min(1560px, calc(100% - 96px));
  --header: 74px;
  --z-grid: 0;
  --z-content: 1;
  --z-header: 20;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--blue);
  color: #fff;
}
.shell {
  width: var(--shell);
  margin-inline: auto;
  position: relative;
  z-index: var(--z-content);
}
.mono,
.eyebrow,
.section-tag {
  font-family: var(--mono);
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
}
.skip-link:focus {
  transform: none;
}
.page-grid {
  position: fixed;
  z-index: var(--z-grid);
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(187, 207, 230, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 207, 230, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.site-header {
  position: fixed;
  z-index: var(--z-header);
  inset: 0 0 auto;
  height: var(--header);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.2s ease-out,
    border-color 0.2s ease-out;
}
.site-header.is-scrolled {
  background: rgba(8, 11, 16, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font: 700 14px var(--mono);
}
.brand > span > span {
  color: var(--blue);
}
.brand-mark {
  width: 28px;
  height: 28px;
  fill: var(--text);
}
.brand-pulse {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
}
.nav-links {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--muted);
  font: 500 11px var(--mono);
  text-transform: uppercase;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  transition: right 0.2s ease-out;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  right: 0;
}
.header-cta {
  justify-self: end;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font: 500 10px var(--mono);
  text-transform: uppercase;
  transition:
    border-color 0.2s ease-out,
    background-color 0.2s ease-out;
}
.header-cta span {
  color: var(--blue);
  margin-left: 10px;
}
.header-cta:hover {
  border-color: var(--blue);
  background: rgba(22, 143, 255, 0.06);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 12px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  margin: 6px;
}
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-layout {
  min-height: 100svh;
  padding-top: calc(var(--header) + 8vh);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(380px, 0.7fr);
  align-items: center;
  gap: 6vw;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.eyebrow span {
  color: var(--blue);
  margin-right: 16px;
}
.hero-title {
  margin: 0;
  font-size: clamp(70px, 9.2vw, 174px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.07em;
}
.title-line {
  display: block;
  overflow: hidden;
  padding: 0 0.08em 0.08em 0;
}
.title-line > span {
  display: block;
  transform: translateY(110%);
  animation: title-in 0.9s var(--ease) 0.15s forwards;
}
.title-line:nth-child(2) > span {
  animation-delay: 0.27s;
}
.title-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 247, 250, 0.75);
}
@keyframes title-in {
  to {
    transform: none;
  }
}
.hero-summary {
  margin: 40px 0 0 14%;
  padding-left: 22px;
  border-left: 1px solid var(--blue);
  width: min(540px, 80%);
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 0 15px;
}
.summary-index {
  font: 10px var(--mono);
  color: var(--blue);
  grid-row: 1/3;
}
.hero-summary p {
  margin: 0;
  color: #c1c8d1;
  font-size: clamp(14px, 1.1vw, 18px);
  text-wrap: pretty;
}
.text-link {
  margin-top: 20px;
  width: max-content;
  font: 500 11px var(--mono);
  text-transform: uppercase;
}
.text-link span {
  color: var(--blue);
  margin-left: 8px;
}
.system-panel {
  align-self: center;
  position: relative;
  background: rgba(11, 15, 22, 0.82);
  border: 1px solid var(--line);
  box-shadow: 20px 24px 0 rgba(0, 0, 0, 0.12);
  min-height: 410px;
  padding: 20px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.system-panel::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-left: 18px solid transparent;
  border-bottom: 18px solid var(--line);
}
.panel-head,
.panel-services p,
.panel-foot,
.diag-head,
.diag-row,
.diag-foot {
  font-family: var(--mono);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.live {
  color: var(--text);
}
.live i,
.panel-services i,
.diag-row i,
.footer-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(69, 209, 139, 0.6);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.signal {
  height: 90px;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-items: center;
}
.signal svg {
  width: 100%;
  height: 70px;
}
.signal path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 7 6;
  animation: signal 12s linear infinite;
}
@keyframes signal {
  to {
    stroke-dashoffset: -130;
  }
}
.panel-services {
  padding: 10px 0;
}
.panel-services p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 9px 0;
  font-size: 9px;
  color: var(--muted);
}
.panel-services b {
  font-weight: 500;
  color: var(--text);
}
.panel-services i {
  width: 4px;
  height: 4px;
}
.panel-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.panel-foot > div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.panel-foot small {
  display: block;
  color: var(--dim);
  font-size: 8px;
}
.panel-foot strong {
  font-size: 15px;
  font-weight: 500;
}
.panel-corner {
  position: absolute;
  right: 20px;
  bottom: 20px;
  text-align: right;
  font: 8px/1.5 var(--mono);
  color: var(--dim);
}
.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 50vw;
  aspect-ratio: 1;
  right: -22vw;
  top: 18vh;
  border: 1px solid var(--line2);
  border-radius: 50%;
}
.hero-orbit::after,
.hero-orbit::before {
  content: "";
  position: absolute;
  border: 1px solid var(--line2);
  border-radius: 50%;
  inset: 12%;
}
.hero-orbit::after {
  inset: 28%;
}
.hero-cursor-light {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(22, 143, 255, 0.09),
    transparent 67%
  );
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  transition: opacity 0.2s;
}
.hero:hover .hero-cursor-light {
  opacity: 1;
}
.network-labels .node {
  position: absolute;
  color: var(--dim);
  font: 8px var(--mono);
}
.node i {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--blue);
  margin-left: 7px;
}
.n1 {
  left: 1%;
  top: 29%;
}
.n2 {
  left: 40%;
  top: 20%;
}
.n3 {
  left: 53%;
  top: 72%;
}
.n4 {
  right: 4%;
  top: 24%;
}
.n5 {
  left: 2%;
  bottom: 17%;
}
.n6 {
  right: 30%;
  bottom: 8%;
}
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 0;
  display: flex;
  gap: 15px;
  align-items: center;
  color: var(--dim);
  font: 8px var(--mono);
  text-transform: uppercase;
}
.scroll-cue i {
  display: block;
  width: 46px;
  height: 1px;
  background: var(--line);
  position: relative;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  50% {
    transform: translateX(-38px);
  }
}
.metrics {
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.metrics-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  min-height: 200px;
  padding: 35px 3vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.metric:first-child {
  padding-left: 0;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric strong {
  font-size: clamp(44px, 5vw, 82px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric span {
  margin-top: 14px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.section {
  padding-block: clamp(100px, 13vw, 210px);
}
.section-tag {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
}
.section-tag span {
  color: var(--blue);
  margin-right: 22px;
}
.build-section {
  min-height: 900px;
}
.build-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px 7vw;
  margin-top: 110px;
}
.build-heading {
  position: relative;
}
.ghost-word {
  position: absolute;
  z-index: -1;
  left: -12vw;
  top: -190px;
  margin: 0;
  color: rgba(255, 255, 255, 0.018);
  font-size: clamp(100px, 20vw, 340px);
  font-weight: 800;
  letter-spacing: -0.08em;
  white-space: nowrap;
}
.display-heading,
.section-intro h2,
.flow-head h2,
.work-head h2,
.diagnostic-copy h2 {
  font-size: clamp(52px, 6vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 0;
  text-wrap: balance;
}
.build-statement {
  align-self: end;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.build-statement p {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1.15;
}
.build-statement span {
  color: var(--muted);
  max-width: 520px;
  display: block;
  text-wrap: pretty;
}
.capability-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}
.capability-list span {
  border: 1px solid var(--line);
  padding: 12px 16px;
  font: 10px var(--mono);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.capability-list span:nth-child(3n + 1) {
  transform: translateY(18px);
}
.capability-list span:hover {
  border-color: var(--blue);
  background: rgba(22, 143, 255, 0.05);
}
.build-note {
  color: var(--dim);
  font-size: 10px;
  line-height: 2;
}
.build-note b {
  color: var(--blue);
  font-weight: 500;
}
.platforms {
  background: var(--bg2);
  border-block: 1px solid var(--line);
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  margin-bottom: 80px;
}
.section-intro h2 {
  grid-column: 2;
}
.section-intro > p {
  grid-column: 3;
  margin: 0 0 6px 30px;
  color: var(--muted);
  font-size: 14px;
}
.platform-item {
  border-top: 1px solid var(--line);
  transition: background-color 0.2s;
}
.platform-item:last-child {
  border-bottom: 1px solid var(--line);
}
.platform-item:hover,
.platform-item.is-open {
  background: rgba(22, 143, 255, 0.025);
}
.platform-trigger {
  width: 100%;
  min-height: 110px;
  padding: 0 22px;
  background: none;
  border: 0;
  color: var(--text);
  display: grid;
  grid-template-columns: 80px 1fr 240px 30px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
.platform-trigger:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: -2px;
}
.platform-num,
.platform-type {
  font: 9px var(--mono);
  color: var(--dim);
}
.platform-trigger strong {
  font-size: clamp(25px, 3vw, 45px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.platform-trigger i {
  font: normal 22px var(--mono);
  color: var(--blue);
  transition: transform 0.2s;
}
.is-open .platform-trigger i {
  transform: rotate(45deg);
}
.platform-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.is-open .platform-content {
  grid-template-rows: 1fr;
}
.platform-content-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 5vw;
  padding: 0 7vw 0 102px;
}
.is-open .platform-content-inner {
  padding-bottom: 46px;
}
.platform-content p {
  margin: 0;
  color: #c1c8d1;
  font-size: 17px;
  max-width: 430px;
}
.platform-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.platform-content li {
  font: 9px var(--mono);
  color: var(--muted);
  padding: 5px 0;
}
.platform-content li::before {
  content: "+";
  color: var(--blue);
  margin-right: 9px;
}
.platform-visual {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 14px;
  font: 7px var(--mono);
  color: var(--muted);
  background-image:
    linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 14px 14px;
}
.platform-visual span {
  padding: 6px;
  background: var(--surface);
}
.platform-visual b {
  color: var(--blue);
}
.flow {
  padding-bottom: clamp(120px, 15vw, 230px);
}
.flow-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 85px;
}
.flow-head h2 {
  grid-column: 2;
}
.architecture {
  display: grid;
  grid-template-columns: 1fr 90px 1.2fr 90px 1fr 90px 1fr;
  align-items: stretch;
}
.arch-node {
  border: 1px solid var(--line);
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}
.arch-node.core {
  border-color: rgba(22, 143, 255, 0.5);
  background: rgba(22, 143, 255, 0.035);
}
.arch-node small {
  font: 8px var(--mono);
  color: var(--blue);
}
.arch-node strong {
  font-size: 18px;
  font-weight: 500;
}
.arch-node span {
  font: 9px var(--mono);
  color: var(--dim);
}
.data-line {
  align-self: center;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.data-line i {
  position: absolute;
  width: 14px;
  height: 3px;
  top: -1px;
  background: var(--blue);
  box-shadow: 0 0 9px var(--blue);
  animation: data-travel 2.7s linear infinite;
}
.data-line:nth-of-type(4) i {
  animation-delay: 0.5s;
}
.data-line:nth-of-type(6) i {
  animation-delay: 1s;
}
@keyframes data-travel {
  from {
    transform: translateX(-15px);
  }
  to {
    transform: translateX(100px);
  }
}
.flow-caption {
  text-align: right;
  color: var(--dim);
  font-size: 8px;
  margin-top: 16px;
}
.work {
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.work-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  margin-bottom: 120px;
}
.work-head h2 {
  grid-column: 2;
}
.work-head > p {
  color: var(--muted);
  margin: 0 0 7px 30px;
}
.work-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 140px 20px;
}
.project {
  margin: 0;
  grid-column: 2/9;
}
.project-right {
  grid-column: 7/12;
}
.project-left {
  grid-column: 1/7;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font: 9px var(--mono);
}
.project-meta small {
  color: var(--dim);
}
.project-image {
  height: clamp(290px, 34vw, 540px);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background-color: #0a0e14;
  background-image:
    linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project-image::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line2);
  pointer-events: none;
}
.project-image img {
  width: 45%;
  height: 55%;
  object-fit: contain;
  filter: grayscale(0.2);
  transition:
    transform 0.7s var(--ease),
    filter 0.2s;
}
.project:hover img {
  transform: scale(1.06);
  filter: none;
}
.project-placeholder span {
  font: 700 clamp(34px, 5vw, 80px) / 0.85 var(--sans);
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}
.project-index {
  margin-top: 150px;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.project-index span {
  padding: 18px 10px;
  font: 8px var(--mono);
  color: var(--muted);
}
.project-index span + span {
  border-left: 1px solid var(--line);
}
.reliability {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 9vw;
  align-items: center;
}
.diagnostic-copy h2 {
  font-size: clamp(48px, 5vw, 82px);
  margin: 45px 0 30px;
}
.diagnostic-copy > p {
  color: var(--muted);
  max-width: 560px;
}
.diagnostic {
  border: 1px solid var(--line);
  background: var(--bg2);
}
.diag-head,
.diag-foot {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 8px;
  color: var(--dim);
}
.diag-head {
  border-bottom: 1px solid var(--line);
}
.diag-row {
  display: grid;
  grid-template-columns: 50px 1fr 140px;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
.diag-row > span {
  color: var(--dim);
}
.diag-row strong {
  font-size: 10px;
  font-weight: 500;
}
.diag-row em {
  font-style: normal;
  color: #b6c2ce;
}
.diag-row i {
  width: 5px;
  height: 5px;
}
.diag-foot {
  color: var(--blue);
}
.final-cta {
  position: relative;
  min-height: 95svh;
  padding-block: 110px 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #080c12;
}
.final-cta::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  background: var(--line2);
}
.final-cta::after {
  content: "LIS // 2026";
  position: absolute;
  right: 28px;
  top: 50%;
  writing-mode: vertical-rl;
  color: var(--dim);
  font: 8px var(--mono);
}
.final-layout {
  width: var(--shell);
}
.final-cta h2 {
  margin: 0;
  font-size: clamp(68px, 11.5vw, 210px);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.075em;
}
.final-cta h2 span {
  display: block;
  font: 10px var(--mono);
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 35px 50%;
}
.final-cta h2 strong {
  display: block;
}
.final-cta h2 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(83, 183, 255, 0.9);
  margin-left: 9%;
}
.cta-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin: 65px 0 0 45%;
}
.cta-bottom p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}
.magnetic-button {
  width: 190px;
  height: 190px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  margin-left: 50px;
  text-transform: uppercase;
  font: 10px var(--mono);
  background: rgba(22, 143, 255, 0.03);
  transition:
    background-color 0.2s ease-out,
    transform 0.2s ease-out;
}
.magnetic-button b {
  align-self: flex-end;
  color: var(--blue);
  font-size: 28px;
}
.magnetic-button:hover {
  background: var(--blue);
  color: #fff;
}
.magnetic-button:hover b {
  color: #fff;
}
.cta-crosshair {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 11px;
  height: 11px;
  border: 1px solid var(--blue);
  transform: translate(-50%, -50%);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 25px;
  background: #070a0e;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
}
.footer-brand p {
  color: var(--dim);
  font: 8px var(--mono);
  margin-top: 18px;
}
.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-links a,
.footer-social a {
  font: 9px var(--mono);
  color: var(--muted);
}
.footer a:hover {
  color: var(--blue);
}
.footer-status span {
  display: block;
  color: var(--dim);
  font: 8px var(--mono);
  margin-bottom: 12px;
}
.footer-status strong {
  font: 9px var(--mono);
  font-weight: 500;
}
.footer-legal {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font: 8px var(--mono);
}
.footer-legal b {
  color: #ff5d67;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}
.reveal.from-left {
  transform: translateX(-20px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 48px, 1000px);
  }
  .hero-layout {
    grid-template-columns: 1fr 0.72fr;
  }
  .hero-title {
    font-size: clamp(64px, 9vw, 104px);
  }
  .network-labels {
    display: none;
  }
  .section-intro,
  .work-head {
    grid-template-columns: 1fr 2fr;
  }
  .section-intro h2,
  .work-head h2 {
    grid-column: 2;
  }
  .section-intro > p,
  .work-head > p {
    grid-column: 2;
    margin: 25px 0 0;
  }
  .architecture {
    grid-template-columns: 1fr 45px 1.2fr 45px 1fr 45px 1fr;
  }
  .arch-node {
    padding: 15px;
  }
  .platform-content-inner {
    grid-template-columns: 1fr 1fr;
    padding-left: 102px;
  }
  .platform-visual {
    display: none;
  }
  .reliability {
    gap: 5vw;
  }
  .cta-bottom {
    margin-left: 30%;
  }
}
@media (max-width: 800px) {
  :root {
    --shell: calc(100% - 32px);
    --header: 64px;
  }
  .site-header {
    background: rgba(8, 11, 16, 0.9);
    border-color: var(--line);
  }
  .nav {
    grid-template-columns: 1fr auto;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
    justify-self: end;
  }
  .nav-links {
    position: fixed;
    inset: var(--header) 0 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }
  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav-links a {
    height: auto;
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: block;
    font-size: 18px;
  }
  .hero-layout {
    padding-top: 110px;
    padding-bottom: 90px;
    display: block;
    min-height: auto;
  }
  .hero {
    min-height: 100svh;
  }
  .hero-title {
    font-size: clamp(55px, 16vw, 105px);
  }
  .hero-summary {
    margin-left: 0;
    width: 100%;
    grid-template-columns: 45px 1fr;
  }
  .system-panel {
    margin-top: 70px;
    min-height: 350px;
  }
  .scroll-cue {
    bottom: 20px;
  }
  .n1,
  .n2,
  .n3,
  .n4,
  .n5,
  .n6 {
    display: none;
  }
  .metrics-rail {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    min-height: 155px;
    padding: 25px;
  }
  .metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .build-grid {
    grid-template-columns: 1fr;
    gap: 55px;
    margin-top: 70px;
  }
  .build-statement {
    max-width: 620px;
  }
  .section-intro,
  .flow-head,
  .work-head {
    display: block;
  }
  .section-intro h2,
  .flow-head h2,
  .work-head h2 {
    margin-top: 45px;
  }
  .section-intro > p,
  .work-head > p {
    margin: 25px 0 0;
  }
  .platform-trigger {
    grid-template-columns: 45px 1fr 25px;
    min-height: 85px;
    padding: 0 10px;
  }
  .platform-type {
    display: none;
  }
  .platform-content-inner {
    grid-template-columns: 1fr;
    padding: 0 25px 0 55px;
  }
  .is-open .platform-content-inner {
    padding-bottom: 35px;
  }
  .architecture {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .data-line {
    height: 55px;
    width: 1px;
    justify-self: center;
  }
  .data-line i {
    width: 3px;
    height: 12px;
    animation-name: data-travel-y;
  }
  @keyframes data-travel-y {
    from {
      transform: translateY(-15px);
    }
    to {
      transform: translateY(55px);
    }
  }
  .arch-node {
    min-height: 125px;
  }
  .flow-caption {
    text-align: left;
  }
  .work-head {
    margin-bottom: 70px;
  }
  .work-list {
    display: block;
  }
  .project,
  .project-left,
  .project-right {
    margin: 0 0 90px;
  }
  .project-image {
    height: 65vw;
  }
  .project-index {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 70px;
  }
  .project-index span {
    border-bottom: 1px solid var(--line);
  }
  .project-index span:nth-child(odd) {
    border-left: 0;
  }
  .reliability {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  .final-cta {
    min-height: 85svh;
  }
  .final-cta h2 {
    font-size: clamp(60px, 16vw, 120px);
    line-height: 0.82;
  }
  .final-cta h2 span {
    margin-left: 0;
  }
  .final-cta h2 .outline {
    margin-left: 0;
  }
  .cta-bottom {
    margin: 50px 0 0;
    grid-template-columns: 1fr;
  }
  .magnetic-button {
    width: 150px;
    height: 150px;
    margin: 35px 0 0 auto;
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-status {
    grid-column: 1/-1;
  }
  .footer-legal {
    flex-direction: column;
    gap: 9px;
  }
}
@media (max-width: 430px) {
  .hero-title {
    font-size: 15vw;
  }
  .hero-summary {
    padding-left: 15px;
  }
  .summary-index {
    display: none;
  }
  .hero-summary {
    grid-template-columns: 1fr;
  }
  .system-panel {
    padding: 15px;
    min-height: 330px;
  }
  .panel-foot strong {
    font-size: 12px;
  }
  .metric {
    min-height: 140px;
    padding: 20px 12px;
  }
  .metric strong {
    font-size: 40px;
  }
  .section {
    padding-block: 90px;
  }
  .display-heading,
  .section-intro h2,
  .flow-head h2,
  .work-head h2,
  .diagnostic-copy h2 {
    font-size: 45px;
  }
  .capability-list span:nth-child(3n + 1) {
    transform: none;
  }
  .platform-trigger strong {
    font-size: 22px;
  }
  .platform-content-inner {
    padding-left: 55px;
  }
  .project-meta small {
    display: none;
  }
  .diag-row {
    grid-template-columns: 35px 1fr 100px;
    padding: 0 12px;
  }
  .final-cta {
    padding-block: 95px 55px;
  }
  .final-cta h2 {
    font-size: 16vw;
  }
  .cta-bottom p {
    font-size: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-status {
    grid-column: auto;
  }
  .footer-legal {
    grid-column: auto;
  }
  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero-cursor-light {
    display: none;
  }
  .hero-orbit {
    transform: none !important;
  }
  .magnetic-button {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .title-line > span {
    transform: none;
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  :root {
    --shell: min(calc(100% - 48px), 1000px);
  }
}

/* Brand, selected work and legal surfaces */
.brand img {
  width: 190px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}
.footer .brand img {
  width: 230px;
  height: 48px;
}
.project-marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 28px 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.project-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: project-scroll 58s linear infinite;
}
.project-marquee:hover .project-track,
.project-marquee:focus-within .project-track {
  animation-play-state: paused;
}
.project-tile {
  position: relative;
  width: 290px;
  height: 340px;
  margin: 0;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background-color: #090d13;
  background-image:
    linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}
.project-tile::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line2);
}
.project-tile img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: grayscale(0.35);
  transition:
    transform 0.2s ease-out,
    filter 0.2s ease-out,
    opacity 0.2s ease-out;
}
.project-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(transparent, rgba(5, 8, 12, 0.95) 45%);
  font: 500 13px var(--mono);
  text-transform: uppercase;
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.2s ease-out,
    opacity 0.2s ease-out;
}
.project-tile:hover {
  border-color: rgba(22, 143, 255, 0.55);
}
.project-tile:hover img {
  transform: scale(1.06);
  filter: none;
}
.project-tile:hover figcaption {
  transform: none;
  opacity: 1;
}
@keyframes project-scroll {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}
.footer {
  font-size: 15px;
}
.footer-grid {
  grid-template-columns: 1.25fr 0.9fr 1fr;
}
.footer-brand p,
.footer-status span {
  font-size: 10px;
}
.footer-links button,
.footer-links a,
.footer-social a {
  font: 500 12px var(--mono);
  color: #aeb8c5;
  background: none;
  border: 0;
  padding: 3px 0;
  cursor: pointer;
  text-align: left;
}
.footer-links button:hover {
  color: var(--blue);
}
.footer-status strong {
  font-size: 11px;
}
.footer-legal {
  font-size: 10px;
  line-height: 1.6;
}
.final-cta {
  min-height: 100svh;
}
.cta-bottom p {
  font-size: 17px;
  line-height: 1.7;
}
.magnetic-button {
  width: 210px;
  height: 210px;
  padding: 34px;
  font-size: 12px;
  background: rgba(22, 143, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(83, 183, 255, 0.12);
}
.legal-modal {
  width: min(920px, calc(100% - 32px));
  max-height: min(84svh, 850px);
  padding: 0;
  border: 1px solid rgba(83, 183, 255, 0.3);
  background: #0b1017;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out,
    overlay 0.25s allow-discrete,
    display 0.25s allow-discrete;
}
.legal-modal[open] {
  opacity: 1;
  transform: none;
}
@starting-style {
  .legal-modal[open] {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}
.legal-modal::backdrop {
  background: rgba(2, 5, 9, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition:
    opacity 0.25s ease-out,
    overlay 0.25s allow-discrete,
    display 0.25s allow-discrete;
}
.legal-modal[open]::backdrop {
  opacity: 1;
}
@starting-style {
  .legal-modal[open]::backdrop {
    opacity: 0;
  }
}
.legal-shell > header {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 23, 0.96);
  font: 10px var(--mono);
  color: var(--blue);
}
.legal-shell > header button {
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  padding: 9px 12px;
  font: 10px var(--mono);
  cursor: pointer;
}
.legal-copy {
  padding: clamp(28px, 6vw, 70px);
  max-width: 780px;
}
.legal-copy h2 {
  margin: 0 0 50px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.legal-copy h3 {
  margin: 38px 0 10px;
  font: 600 14px var(--mono);
  color: var(--blue);
}
.legal-copy p {
  color: #b7c0cb;
  line-height: 1.8;
  text-wrap: pretty;
}
.legal-modal:focus-visible {
  outline: none;
}
@media (max-width: 800px) {
  .brand img {
    width: 155px;
  }
  .project-tile {
    width: 230px;
    height: 280px;
  }
  .project-track {
    animation-duration: 45s;
  }
  .project-tile figcaption {
    opacity: 1;
    transform: none;
    font-size: 11px;
  }
  .footer .brand img {
    width: 190px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-status {
    grid-column: 1/-1;
  }
  .cta-bottom p {
    font-size: 15px;
  }
  .magnetic-button {
    width: 170px;
    height: 170px;
    font-size: 10px;
  }
  .legal-copy {
    padding: 30px 22px;
  }
  .legal-copy p {
    font-size: 14px;
  }
  .legal-shell > header {
    padding: 0 16px;
  }
}
@media (max-width: 430px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-status {
    grid-column: auto;
  }
  .footer-legal {
    font-size: 10px;
  }
  .project-tile {
    width: 205px;
    height: 250px;
  }
}
.magnetic-button {
  width: 270px;
  height: 72px;
  padding: 0 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  font-size: 11px;
}
.magnetic-button b {
  align-self: auto;
  font-size: 22px;
}
@media (max-width: 800px) {
  .magnetic-button {
    width: min(270px, 100%);
    height: 66px;
    font-size: 10px;
  }
}

/* Platform identities and live diagnostics */
.platform-name {
  display: flex;
  align-items: center;
  gap: 18px;
}
.platform-trigger .platform-icon {
  display: inline-block;
  width: 1.1em;
  flex: 0 0 1.1em;
  color: var(--blue);
  font-family: "bootstrap-icons" !important;
  font-size: 0.7em;
  font-style: normal;
  font-weight: 400 !important;
  text-align: center;
  transition: none;
  transform: none !important;
}
.platform-toggle {
  font: normal 22px var(--mono);
  color: var(--blue);
  transition: transform 0.2s ease-out;
}
.is-open .platform-toggle {
  transform: rotate(45deg);
}
.diagnostic {
  font-variant-numeric: tabular-nums;
}
.diagnostic-copy > p {
  max-width: 560px;
  text-wrap: pretty;
}
.diag-head,
.diag-foot {
  align-items: center;
}
.diag-live {
  color: var(--muted);
}
.diag-summary {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
}
.diag-status-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 18px;
}
.diag-summary small {
  display: block;
  color: var(--dim);
  font: 8px var(--mono);
  margin-bottom: 5px;
}
.diag-summary strong {
  display: block;
  font: 600 15px var(--mono);
}
.diag-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font: 9px/1.5 var(--mono);
  text-wrap: pretty;
}
.diag-row {
  grid-template-columns: 50px 1fr minmax(125px, auto);
  min-height: 60px;
}
.diag-row em {
  text-align: right;
}
.diag-live i {
  display: inline-block;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(69, 209, 139, 0.6);
  animation: blink 2.2s ease-in-out infinite;
}
.diag-foot a {
  color: var(--blue);
}
.diag-foot a i {
  margin-left: 6px;
}
.diagnostic.is-offline .diag-live i,
.diagnostic.is-offline [data-monitor-state] i {
  background: #ff5d67;
  box-shadow: none;
}
.diagnostic.is-degraded .diag-live i,
.diagnostic.is-degraded [data-monitor-state] i {
  background: #f1b84b;
  box-shadow: none;
}
@media (max-width: 430px) {
  .platform-name {
    gap: 10px;
  }
  .diag-summary {
    grid-template-columns: 42px 1fr;
    padding: 20px 12px;
  }
  .diag-status-icon {
    width: 42px;
    height: 42px;
  }
  .diag-summary strong {
    font-size: 12px;
  }
}

/* Larger project marks with a tighter technical frame */
.project-tile::before {
  inset: 7px;
}
.project-tile img {
  width: 70%;
  height: 70%;
}
@media (max-width: 800px) {
  .project-tile::before {
    inset: 6px;
  }
  .project-tile img {
    width: 72%;
    height: 72%;
  }
}

/* Scrollbar shared with the main Lisboadas.dev site */
* {
  scrollbar-width: thin;
  scrollbar-color: #1a4080 #171a1f;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #171a1f;
}
::-webkit-scrollbar-thumb {
  background: #1a4080;
  border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2266d7;
}

/* Final CTA aligned to the vertical rhythm used by the other sections */
.final-cta {
  min-height: auto;
  padding-block: clamp(100px, 13vw, 210px);
  border-block: 1px solid var(--line);
}
.final-cta h2 {
  line-height: 0.82;
}
.cta-bottom {
  margin-top: clamp(42px, 5vw, 72px);
}

/* Stable mobile framing */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
@media (max-width: 800px) {
  .final-cta {
    min-height: auto;
    padding-block: 100px;
  }
  .final-cta::before,
  .final-cta::after,
  .cta-crosshair {
    display: none;
  }
  .final-cta h2 {
    font-size: clamp(48px, 13vw, 74px);
    line-height: 0.9;
    letter-spacing: -0.055em;
  }
  .final-cta h2 span {
    margin: 0 0 24px;
    font-size: 9px;
  }
  .final-cta h2 strong {
    width: 100%;
    white-space: nowrap;
  }
  .cta-bottom {
    margin: 42px 0 0;
    gap: 30px;
    align-items: start;
  }
  .cta-bottom p {
    max-width: 520px;
    font-size: 15px;
    line-height: 1.65;
  }
  .magnetic-button {
    margin: 0;
    width: 100%;
    max-width: 270px;
    justify-self: end;
  }
  .footer {
    padding: 56px 0 24px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .footer-brand,
  .footer-links,
  .footer-status,
  .footer-social,
  .footer-legal {
    grid-column: 1;
  }
  .footer .brand img {
    width: min(190px, 75vw);
    height: auto;
  }
  .footer-links {
    gap: 13px;
  }
  .footer-links button,
  .footer-links a,
  .footer-social a {
    font-size: 11px;
    line-height: 1.5;
  }
  .footer-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }
  .footer-status {
    padding: 18px;
    border: 1px solid var(--line);
  }
  .footer-legal {
    margin-top: 4px;
    padding-top: 20px;
    gap: 10px;
    align-items: flex-start;
  }
}
@media (max-width: 430px) {
  :root {
    --shell: calc(100% - 36px);
  }
  .final-cta {
    padding-block: 90px;
  }
  .final-cta h2 {
    font-size: 13vw;
    line-height: 0.92;
  }
  .cta-bottom {
    margin-top: 34px;
  }
  .magnetic-button {
    max-width: none;
  }
  .footer {
    padding-top: 48px;
  }
}

/* Secret room — retro console */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.secret-chat {
  width: min(960px, calc(100% - 32px));
  height: min(680px, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid #2f8dcc;
  background: #07111b;
  color: #dcefff;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.35);
}
.secret-chat::backdrop {
  background: rgba(2, 6, 10, 0.84);
}
.chat-window {
  height: 100%;
  display: grid;
  grid-template-rows: 48px 1fr 30px;
  border: 3px solid #0d2638;
  font-family: var(--mono);
}
.chat-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid #2f8dcc;
  background: #0b1b28;
}
.chat-titlebar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-titlebar strong {
  font-size: 11px;
}
.chat-titlebar small {
  color: #6991aa;
  font-size: 8px;
}
.chat-titlebar button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #31566d;
  background: #102838;
  color: #dcefff;
  cursor: pointer;
  font-size: 19px;
}
.chat-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49d794;
  box-shadow: 0 0 8px rgba(73, 215, 148, 0.6);
}
.chat-gate,
.chat-identity {
  align-self: center;
  width: min(520px, calc(100% - 40px));
  margin: auto;
}
.chat-kicker {
  margin: 0 0 18px !important;
  color: #49aeea !important;
  font-size: 9px !important;
}
.chat-gate h2 {
  margin: 0 0 22px;
  font: 700 clamp(32px, 5vw, 58px) / 0.95 var(--sans);
  text-wrap: balance;
}
.chat-gate > p {
  max-width: 470px;
  color: #8eabba;
  font: 12px/1.7 var(--mono);
}
.chat-privacy {
  padding: 12px;
  border-left: 2px solid #2f8dcc;
  background: #0a1924;
  font-size: 9px !important;
}
.chat-turnstile {
  min-height: 70px;
  margin-top: 20px;
}
.chat-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #ff7880;
  font: 10px var(--mono);
}
.chat-identity {
  display: flex;
  flex-direction: column;
}
.chat-identity[hidden],
.chat-room[hidden],
.chat-gate[hidden] {
  display: none;
}
.chat-identity label {
  margin-bottom: 15px;
  font: 600 clamp(20px, 3vw, 34px) var(--sans);
}
.chat-identity input,
.chat-compose input {
  min-width: 0;
  border: 1px solid #31566d;
  background: #06101a;
  color: #e8f6ff;
  font: 13px var(--mono);
  outline: none;
}
.chat-identity input {
  height: 54px;
  padding: 0 16px;
}
.chat-identity input:focus,
.chat-compose input:focus {
  border-color: #49aeea;
}
.chat-identity small {
  margin: 9px 0 24px;
  color: #6991aa;
  font-size: 8px;
}
.chat-identity button,
.chat-compose button {
  border: 1px solid #2f8dcc;
  background: #113b55;
  color: #e8f6ff;
  font: 600 9px var(--mono);
  cursor: pointer;
}
.chat-identity > button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.chat-room {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
}
.chat-feed-wrap {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 52px;
}
.chat-feed {
  overflow-y: auto;
  padding: 18px;
  scrollbar-color: #31566d #07111b;
}
.chat-line {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.55;
}
.chat-line time {
  color: #51758b;
  font-size: 8px;
  padding-top: 3px;
}
.chat-line p {
  margin: 0;
  overflow-wrap: anywhere;
}
.chat-line b {
  color: #49aeea;
  font-weight: 600;
}
.chat-line.is-system p {
  color: #6991aa;
  font-style: italic;
}
.chat-compose {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 76px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #244356;
  background: #081722;
}
.chat-compose > span {
  color: #49aeea;
}
.chat-compose input {
  height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}
.chat-compose button {
  height: 34px;
}
.chat-roster {
  min-width: 0;
  border-left: 1px solid #244356;
  background: #081722;
}
.chat-roster header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #244356;
  color: #6991aa;
  font-size: 8px;
}
.chat-roster header b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border: 1px solid #31566d;
  color: #49aeea;
}
.chat-roster ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  overflow: auto;
}
.chat-roster li {
  padding: 8px;
  border-bottom: 1px solid #142d3d;
  color: #aac8d8;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-roster li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: #49d794;
}
.chat-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-top: 1px solid #244356;
  background: #0b1b28;
  color: #51758b;
  font-size: 7px;
}
.chat-statusbar [data-chat-status] {
  color: #49aeea;
}
@media (max-width: 650px) {
  .secret-chat {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
  }
  .chat-window {
    border: 0;
  }
  .chat-titlebar small {
    display: none;
  }
  .chat-room {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-roster {
    position: absolute;
    right: 0;
    top: 48px;
    bottom: 30px;
    width: 170px;
    display: none;
  }
  .chat-roster.is-open {
    display: block;
  }
  .chat-feed {
    padding: 14px;
  }
  .chat-line {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 7px;
  }
  .chat-compose {
    grid-template-columns: 14px minmax(0, 1fr) 62px;
    padding-inline: 8px;
  }
  .chat-statusbar span:last-child {
    display: none;
  }
  .chat-gate,
  .chat-identity {
    width: calc(100% - 32px);
  }
}
.chat-window-actions {
  display: flex;
  gap: 6px;
}
.chat-users-toggle {
  display: none !important;
}
@media (max-width: 650px) {
  .chat-users-toggle {
    display: grid !important;
  }
}

/* One-time cookie notice */
.cookie-notice {
  position: fixed;
  z-index: var(--z-header);
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 40px));
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(83, 183, 255, 0.35);
  background: #0b1119;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cookie-copy p {
  margin: 0;
  color: #aebac7;
  font-size: 10px;
  line-height: 1.65;
  text-wrap: pretty;
}
.cookie-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 15px;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.cookie-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: #aebac7;
  font: 500 8px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.cookie-actions button:hover {
  border-color: var(--blue);
  color: var(--text);
}
.cookie-actions .cookie-confirm {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-notice {
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: calc(100% - 36px);
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .cookie-actions button {
    padding-inline: 11px;
  }
}
