*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --mono: "Consolas", "Cascadia Mono", "Courier New", monospace;
  --ice: #cfe9ff;
  --ice-muted: rgba(140, 200, 255, 0.65);
  --ice-faint: rgba(140, 200, 255, 0.35);
  --border: rgba(140, 200, 255, 0.16);
  --border-hover: rgba(38, 101, 228, 0.65);
  --glow:
    0 0 10px rgba(0, 120, 255, 0.85),
    0 0 22px rgba(0, 120, 255, 0.7),
    0 0 44px rgba(0, 120, 255, 0.45);
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: var(--mono);
  overflow: hidden;
}

canvas#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  pointer-events: none;
  z-index: 0;
}

/* Aquila right-edge tab */
.top-right {
  position: fixed;
  top: 60px;
  right: 0;
  width: 20px;
  height: 115px;
  z-index: 4;
  display: block;
}

.top-right-rect {
  position: absolute;
  inset: 0;
  background: #2665e4a6;
  border-radius: 20px 0 0 20px;
  transition: background 0.15s ease;
}

.top-right:hover .top-right-rect {
  background: #2665e4;
}

.top-right-rect::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid #000;
}

/* Full-screen Aquila Hero */
.hero-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 780px;
  text-align: center;
}

.center-text {
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.04em;
  user-select: none;
  text-align: center;
  opacity: 0.9;
  text-shadow: var(--glow);
}

.intervention-line {
  margin: 16px 0 0;
  max-width: 58ch;
  color: #fff;
  font-size: clamp(14px, 1.8vw, 19px);
  line-height: 1.5;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.tagline {
  font-family: var(--mono);
  font-size: clamp(11px, 1.4vw, 15px);
  color: var(--ice-muted);
  letter-spacing: 0.12em;
  text-align: center;
  margin-top: 14px;
  min-height: 1.4em;
  user-select: none;
}

.auth-buttons {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.auth-btn {
  display: inline-block;
  padding: 6px 14px;
  color: var(--ice);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  cursor: pointer;
  transition: text-shadow 0.15s ease, color 0.15s ease;
}

.auth-btn:hover {
  text-shadow: var(--glow);
}

.auth-btn-warn {
  color: #fda4af;
}

.auth-btn-warn:hover {
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.85), 0 0 22px rgba(244, 63, 94, 0.6);
}

.status-line {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ice);
  text-shadow: 0 0 10px rgba(0, 120, 255, 0.6);
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ice-faint);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.scroll-hint:hover {
  color: var(--ice);
  text-shadow: var(--glow);
}

/* Below-the-fold content */
.content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section {
  margin-top: 48px;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(20px, 2.8vw, 30px);
  letter-spacing: 0.06em;
  text-shadow: var(--glow);
  margin-bottom: 10px;
}

.section-sub {
  margin: 0 auto;
  max-width: 60ch;
  font-size: 13px;
  color: var(--ice-muted);
  line-height: 1.6;
}

code {
  font-family: var(--mono);
  color: var(--ice);
  background: rgba(38, 101, 228, 0.14);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.aq-photo-tile {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aq-photo-tile:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(0, 120, 255, 0.25);
  transform: translateY(-2px);
}

.aq-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aq-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.aq-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.03) brightness(0.92);
}

.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(207, 233, 255, 0.5);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  transform: rotate(-16deg);
  pointer-events: none;
  user-select: none;
}

.aq-meta {
  padding: 16px;
}

.aq-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice-faint);
  margin-bottom: 6px;
}

.aq-meta h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ice);
}

.aq-meta p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ice-muted);
}

/* Receipt */
.receipt-wrap {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.receipt {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  font-size: 12.5px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ice-muted);
  border-bottom: 1px dashed rgba(140, 200, 255, 0.12);
  padding-bottom: 8px;
}

.receipt-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.receipt-row span:last-child {
  color: var(--ice);
  text-align: right;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ice-faint);
  border-top: 1px solid var(--border);
}

/* Start overlay */
.start-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 1);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 2.2vw, 20px);
  letter-spacing: 0.05em;
  z-index: 50;
  cursor: pointer;
  user-select: none;
  text-align: center;
  padding: 24px;
}

.start-overlay.hidden {
  display: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 36px rgba(0, 120, 255, 0.25);
}

.modal-bar {
  background: rgba(244, 63, 94, 0.2);
  border-bottom: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 10px;
}

.modal-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.modal-content {
  padding: 18px 20px;
  text-align: center;
}

.modal-content h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ice);
}

.modal-content p {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ice-muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hidden {
  display: none !important;
}
