/* ==========================================================================
   Automated PAR Index Calculation System — Project Showcase
   Design tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --ink:        #0a0f1a;
  --bg:         #0b1220;
  --surface:    #101a2c;
  --surface-2:  #16233a;
  --surface-3:  #1d2d48;
  --line:       #22314d;
  --line-soft:  #1a2740;

  /* Text */
  --text:       #eaf2fa;
  --text-muted: #93a4bd;
  --text-dim:   #5f7290;

  /* Accents — echoes the project's own landmark-mesh visual identity */
  --cyan:       #35d0dd;
  --cyan-dim:   #1c8b96;
  --violet:     #8b7cf6;
  --coral:      #ff7a59;
  --green:      #34d399;
  --amber:      #f6c945;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--cyan); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 208, 221, 0.16);
}

.section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  max-width: 680px;
  margin: 0 0 56px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; }
.section-head p { font-size: 17px; }
.section:nth-of-type(even) { background: linear-gradient(180deg, transparent, rgba(22,35,58,0.35) 12%, rgba(22,35,58,0.35) 88%, transparent); }

/* Landmark-dot texture — the site's signature motif, echoing the 3D
   landmark points placed on dental arches throughout the actual system */
.landmark-field {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(53,208,221,0.35) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(10, 15, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 15, 26, 0.92);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.nav-links a.active { color: var(--ink); background: var(--cyan); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn span.long { display: none; }
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 20px 24px 40px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:hover { color: var(--cyan); text-decoration: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #24a7b3);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(53, 208, 221, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(53, 208, 221, 0.7); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(139,124,246,0.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -30%; left: -15%;
  width: 55%; height: 120%;
  background: radial-gradient(closest-side, rgba(53,208,221,0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.hero-meta span b { color: var(--text-muted); font-weight: 500; }

.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  animation: float 7s ease-in-out infinite;
}
.hero-visual img { width: 100%; height: auto; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  padding: 46px 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat-num .unit { font-size: 0.5em; color: var(--cyan); font-weight: 600; }
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-dim);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.6);
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--cyan);
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 14.5px; }
.card ul li { margin-bottom: 4px; }

.card.accent-violet .card-icon { color: var(--violet); }
.card.accent-coral .card-icon { color: var(--coral); }
.card.accent-green .card-icon { color: var(--green); }
.card.accent-amber .card-icon { color: var(--amber); }

/* ==========================================================================
   Problem / Solution split
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pill-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.pill-list .dot {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
  font-size: 12px;
}
.pill-list.problem .dot { background: rgba(255,122,89,0.14); color: var(--coral); }
.pill-list.solution .dot { background: rgba(52,211,153,0.14); color: var(--green); }
.pill-list b { color: var(--text); }
.pill-list span.desc { color: var(--text-muted); font-size: 14.5px; display: block; margin-top: 2px; }

/* ==========================================================================
   Workflow / timeline
   ========================================================================== */

.workflow {
  position: relative;
  display: grid;
  gap: 0;
}
.workflow-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 34px;
}
.workflow-step:last-child { padding-bottom: 0; }
.workflow-num {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
  position: relative;
  z-index: 1;
}
.workflow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: -0px;
  width: 2px;
  background: linear-gradient(var(--line), transparent);
}
.workflow-body { padding-top: 8px; }
.workflow-body h4 { color: #fff; font-size: 16.5px; margin-bottom: 4px; }
.workflow-body p { font-size: 14.5px; margin-bottom: 0; }
.workflow-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  background: rgba(53,208,221,0.1);
  border: 1px solid rgba(53,208,221,0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ==========================================================================
   Architecture diagram (pure CSS/HTML)
   ========================================================================== */

.arch-diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px clamp(16px, 4vw, 48px);
  overflow-x: auto;
}
.arch-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.arch-box {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
}
.arch-box.highlight { border-color: var(--cyan-dim); box-shadow: 0 0 0 1px rgba(53,208,221,0.25) inset; }
.arch-box .arch-icon { font-size: 20px; margin-bottom: 6px; }
.arch-box b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 3px; }
.arch-box small { display: block; color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }
.arch-connector {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}
.arch-connector svg { color: var(--text-dim); }

/* ==========================================================================
   PAR components table
   ========================================================================== */

.par-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.par-table th, .par-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.par-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-2);
}
.par-table td.weight { font-family: var(--font-mono); color: var(--cyan); }
.par-table tr:last-child td { border-bottom: none; }
.par-table tr.total td { background: var(--surface-2); font-weight: 600; color: #fff; }

/* ==========================================================================
   Tech stack
   ========================================================================== */

.stack-group h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text);
}

/* ==========================================================================
   Testing status table
   ========================================================================== */

.status-table { width: 100%; border-collapse: collapse; }
.status-table th, .status-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 14px;
}
.status-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge.ok { background: rgba(52,211,153,0.12); color: var(--green); }
.badge.ok::before { background: var(--green); }
.badge.partial { background: rgba(246,201,69,0.12); color: var(--amber); }
.badge.partial::before { background: var(--amber); }
.badge.none { background: rgba(147,164,189,0.12); color: var(--text-muted); }
.badge.none::before { background: var(--text-dim); }

/* ==========================================================================
   Team & supervisors
   ========================================================================== */

.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.person-card:hover { transform: translateY(-3px); border-color: var(--cyan-dim); }
.avatar {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card.lead {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 1px rgba(53,208,221,0.2) inset;
  position: relative;
}
.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cyan);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.person-card h4 { color: #fff; font-size: 15.5px; margin-bottom: 3px; }
.person-card .role { font-family: var(--font-mono); font-size: 11.5px; color: var(--cyan); margin-bottom: 10px; display: block; }
.person-card .enum { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.person-card a.mail { font-size: 12.5px; }

/* ==========================================================================
   Gallery
   ========================================================================== */

/* ==========================================================================
   Gallery grid layout
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid[data-empty="true"] { display: none; }

/* ==========================================================================
   Media card — the reusable image/placeholder component
   Used for every future-photo slot on the site (screenshots, ML visuals,
   development photos, demo photos). Swap the placeholder <div> for an
   <img> and the card styling stays identical — see index.html comments.
   ========================================================================== */

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.media-card:hover { transform: translateY(-3px); border-color: var(--cyan-dim); }
.media-frame {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.media-frame img:hover { transform: scale(1.04); }
.media-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
}
.media-caption b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; font-size: 13.5px; }

/* Placeholder state — shown until a real image replaces it */
.media-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
  background:
    repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 9px, var(--surface) 9px, var(--surface) 18px);
  color: var(--text-dim);
}
.media-placeholder svg { opacity: 0.7; }
.media-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  max-width: 200px;
}
.media-placeholder .ph-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px dashed var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
}

/* Category filter chips (Gallery) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--cyan-dim); }
.filter-chip.active { background: var(--cyan); color: var(--ink); border-color: var(--cyan); font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 10, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 1000px); max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-caption { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--text-muted); font-size: 13.5px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--cyan); color: var(--cyan); }

/* ==========================================================================
   Note / callout boxes
   ========================================================================== */

.callout {
  border: 1px solid var(--line);
  background: var(--surface);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.callout b { color: var(--text); }
.callout.warn { border-left-color: var(--amber); }
.callout.warn b { color: var(--amber); }

/* ==========================================================================
   Resources
   ========================================================================== */

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.resource-card:hover { transform: translateY(-3px); border-color: var(--cyan-dim); }
.resource-card .card-icon { margin-bottom: 4px; }
.resource-card a.resource-link { font-size: 13.5px; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 56px 0 28px;
  background: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: #fff; }
footer h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: var(--text-muted); font-size: 14px; }
footer ul a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Skip link (accessibility)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--cyan);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 2000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }
