/* ===================== Pisces Intelligence — Design System ===================== */

:root {
  /* Classic corporate palette: navy & white, with the brand blue/cyan used sparingly as accent */
  --navy-950: #050914;
  --navy-900: #0a1330;
  --navy-800: #0f1c42;
  --blue-700: #16336b;
  --blue-600: #1c4fd8;
  --blue-500: #2f5fe0;
  --cyan-500: #17c3e6;
  --cyan-300: #9db8e0;
  --gold-500: #a9832f;

  --ink-900: #0f1524;
  --ink-700: #33394a;
  --ink-600: #565f74;
  --ink-400: #8991a3;

  --surface: #ffffff;
  --surface-alt: #f6f7fb;
  --surface-dim: #eef0f6;
  --border: #dfe3ec;

  --gradient-dark: linear-gradient(170deg, var(--navy-950) 0%, var(--navy-900) 100%);

  --shadow-sm: 0 1px 2px rgba(15, 21, 36, 0.05), 0 1px 2px rgba(15, 21, 36, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 21, 36, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 21, 36, 0.12);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  color: var(--navy-900);
}

p { margin: 0 0 1em; color: var(--ink-600); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue-700);
}
.hero .eyebrow::before,
.page-hero .eyebrow::before {
  background: rgba(255,255,255,0.45);
}

section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ---------- Icons ---------- */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}
.icon-lg { width: 110px; height: 110px; stroke-width: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 8px 20px rgba(10, 19, 48, 0.22); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--navy-900); background: var(--surface-alt); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--navy-900);
}
.brand img { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-700);
  padding: 6px 2px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--navy-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy-900); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 10px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; border-bottom: 1px solid var(--surface-dim); }
  .nav-cta .btn-outline-mobile-hide { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 100px;
  background: var(--gradient-dark);
  color: #fff;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06), transparent 45%);
  pointer-events: none;
  animation: driftGlow 10s ease-in-out infinite alternate;
}
@keyframes driftGlow {
  from { opacity: 0.7; transform: translate(0, 0); }
  to { opacity: 1; transform: translate(-2%, 2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  color: #fff;
  font-weight: 600;
}
.hero .lede {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  font-family: var(--font-body);
}
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .glow-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 380px;
  transition: border-color 0.3s ease;
  animation: floatCard 6s ease-in-out infinite;
}
.hero-visual .glow-card:hover {
  border-color: rgba(255,255,255,0.3);
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-visual img { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual .glow-card { animation: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 220px; margin: 0 auto; }
}

.stat-strip {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 32px;
}
.stat-strip div { min-width: 140px; }
.stat-strip strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.stat-strip span { font-size: 0.84rem; color: rgba(255,255,255,0.6); }

/* ---------- Section headers ---------- */
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); color: var(--navy-900); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy-900);
  transform: translateY(-4px);
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1.4px solid var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  margin-bottom: 20px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.card:hover .icon-tile {
  background: var(--navy-900);
  color: #fff;
  transform: scale(1.06);
}

.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.94rem; margin-bottom: 0; }

.tag-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tag-list li {
  font-size: 0.88rem;
  color: var(--ink-700);
  padding-left: 20px;
  position: relative;
}
.tag-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--navy-900);
}

/* ---------- Alt background sections ---------- */
.section-alt { background: var(--surface-alt); }

/* ---------- Process ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 980px) { .process-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-track { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--navy-900);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.process-step:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.process-step .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-700);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: block;
}
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: 1.6rem; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--navy-900); }
.cta-band .btn-primary:hover { background: var(--cyan-300); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--gradient-dark);
  color: #fff;
  padding: 76px 0 60px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.7rem); }
.page-hero p { color: rgba(255,255,255,0.68); max-width: 620px; margin: 0 auto; font-family: var(--font-body); }

/* ---------- Values / About ---------- */
.value-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.value-row:last-child { border-bottom: none; }
.value-row .icon-tile { flex-shrink: 0; margin-bottom: 0; }
.value-row h4 { margin-bottom: 6px; font-size: 1.05rem; }
.value-row p { margin: 0; font-size: 0.95rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) .service-visual { order: 2; }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-visual { order: 0; }
}
.service-visual {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.25s ease;
}
.service-visual svg { transition: transform 0.35s ease; }
.service-block:hover .service-visual { background: var(--blue-700); }
.service-block:hover .service-visual svg { transform: scale(1.1); }
.service-copy h3 { font-size: 1.45rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-info-item .icon-tile { margin-bottom: 0; }
.contact-info-item h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }
.contact-info-item a { color: var(--blue-700); font-weight: 600; }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 8px;
}
.map-frame iframe { width: 100%; height: 220px; border: 0; display: block; }

form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; display: block; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(15, 21, 36, 0.08);
}
textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.82rem; color: var(--ink-400); margin-top: -6px; }
.form-status { font-size: 0.9rem; margin-top: 4px; display: none; }
.form-status.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; }
.site-footer h5 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: #fff; color: var(--navy-900); border-color: #fff; transform: translateY(-2px); }
.footer-social .icon { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Status pills (registration / certification status) ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-pill.pending { background: #fbf3e4; color: #8a611c; border: 1px solid #ecdcb6; }
.status-pill.pending .dot { background: #c8912c; }
.status-pill.active { background: #e9f5ee; color: #256a45; border: 1px solid #bfdfcd; }
.status-pill.active .dot { background: #2f9464; }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 780px) { .badge-grid { grid-template-columns: 1fr; } }

.badge-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.badge-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy-900);
  transform: translateY(-4px);
}
.badge-tile .badge-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: transparent;
  border: 1.4px solid var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.badge-tile:hover .badge-icon {
  background: var(--navy-900);
  color: #fff;
  transform: scale(1.06);
}
.badge-tile h4 { font-size: 0.98rem; margin-bottom: 10px; }

.readiness-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.readiness-card h4 { margin-bottom: 4px; font-size: 1.02rem; }
.readiness-card p { margin: 0; font-size: 0.9rem; }

.naics-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}
.naics-table th, .naics-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.naics-table th {
  background: var(--surface-alt);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-600);
  font-weight: 600;
}
.naics-table tr:last-child td { border-bottom: none; }
.naics-table tbody tr { transition: background 0.2s ease; }
.naics-table tbody tr:hover { background: var(--surface-alt); }
.naics-table td:first-child { font-weight: 700; color: var(--navy-900); white-space: nowrap; font-family: var(--font-display); }

/* ---------- Reveal-on-scroll ---------- */
/* NOTE: elements combine .reveal with .card/.badge-tile/.process-step, and since the
   `transition` shorthand doesn't merge across rules of equal specificity, this list
   covers every property those combined hover states need (not just opacity/transform). */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.3s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger grid/track children so they cascade in rather than popping in together */
.grid > .reveal:nth-child(1), .process-track > .reveal:nth-child(1), .badge-grid > .reveal:nth-child(1) { transition-delay: 0s; }
.grid > .reveal:nth-child(2), .process-track > .reveal:nth-child(2), .badge-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3), .process-track > .reveal:nth-child(3), .badge-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4), .process-track > .reveal:nth-child(4), .badge-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5), .process-track > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }
.grid > .reveal:nth-child(7) { transition-delay: 0.48s; }
.grid > .reveal:nth-child(8) { transition-delay: 0.56s; }

/* ---------- Entrance splash (homepage only) ---------- */
/* #splash-screen's positioning/background is set inline in index.html itself
   (critical CSS, so it can never be delayed behind this stylesheet loading);
   everything here is the visual detail that's safe to arrive a beat later. */
#splash-screen {
  transition: opacity 0.6s ease;
}
#splash-screen.splash-fade { opacity: 0; pointer-events: none; }

.splash-logo {
  width: 84px; height: 84px;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}
#splash-screen.show-logo .splash-logo { opacity: 1; transform: scale(1); }
.splash-logo img { width: 100%; height: 100%; display: block; }

.splash-word {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#splash-screen.show-word .splash-word { opacity: 1; transform: translateY(0); }

.splash-bar-row {
  margin-top: 26px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#splash-screen.show-bar .splash-bar-row { opacity: 1; }
.splash-bar-track {
  width: 160px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  overflow: hidden;
}
.splash-bar-fill {
  height: 100%; width: 0%;
  background: var(--cyan-300);
  transition: width 1.5s cubic-bezier(.4,0,.2,1);
}
.splash-bar-pct {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
  width: 34px;
}

@media (prefers-reduced-motion: reduce) {
  #splash-screen, .splash-logo, .splash-word, .splash-bar-row, .splash-bar-fill { transition: none !important; }
}

/* ---------- News / Updates ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.news-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy-900); transform: translateY(-4px); }
.news-card-media {
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
  overflow: hidden;
}
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-media img.contain { object-fit: contain; padding: 16px; box-sizing: border-box; }
.news-card-body { padding: 24px; }
.news-date {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 10px;
}
.news-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-card-body p { font-size: 0.92rem; margin-bottom: 0; }

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}
.news-empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.news-empty p { max-width: 480px; margin: 0 auto; }
