/* =========================================================================
   Delam Advance Technologies — main stylesheet
   Palette: white surface, dark navy ink, red accent.
   Type: Space Grotesk (headings) / Inter (body + UI).
   ========================================================================= */

:root {
  /* Color tokens */
  --c-white:      #ffffff;
  --c-surface:    #f5f7fb;
  --c-surface-2:  #eef1f7;
  --c-navy:       #0b1f3a;
  --c-navy-2:     #16335c;
  --c-navy-tint:  #274670;
  --c-red:        #d6202a;
  --c-red-dark:   #a8161e;
  --c-line:       #e1e6ed;
  --c-text:       #17233b;
  --c-muted:      #5c6779;
  --c-on-navy:    #cdd8ea;

  /* Type */
  --f-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --f-body: 'Inter', 'Segoe UI', sans-serif;

  /* Scale */
  --step-1: clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.15rem);
  --step-3: 1.375rem;
  --step-0: 1rem;
  --step--1: 0.9rem;

  /* Layout */
  --max-w: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(11, 31, 58, 0.06);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------------
   Reset / base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-1); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-3); }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

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

ul, ol { padding-left: 1.15em; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

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

.section { padding-block: clamp(3rem, 2.4rem + 2.5vw, 5.5rem); }
.section--surface { background: var(--c-surface); }
.section--navy {
  background: linear-gradient(155deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  color: var(--c-on-navy);
}
.section--navy h2, .section--navy h3 { color: var(--c-white); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem);
}
.section-head p { color: var(--c-muted); }
.section--navy .section-head p { color: var(--c-on-navy); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 0.8rem;
  color: var(--c-red);
  margin-bottom: 0.6em;
  font-weight: 600;
}
.kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--c-red);
  display: inline-block;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--c-red); color: var(--c-white); }
.btn--primary:hover { background: var(--c-red-dark); }

.btn--outline { background: transparent; border-color: var(--c-navy); color: var(--c-navy); }
.btn--outline:hover { border-color: var(--c-red); color: var(--c-red); }

.section--navy .btn--outline { border-color: rgba(255,255,255,.5); color: var(--c-white); }
.section--navy .btn--outline:hover { border-color: var(--c-red); color: var(--c-white); }

.btn--ghost { background: transparent; color: var(--c-navy); padding: 0.5em 0; }
.btn--ghost:hover { color: var(--c-red); }

.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Top utility bar
   --------------------------------------------------------------------- */
.topbar { background: var(--c-navy); color: var(--c-on-navy); font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-block: 7px; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--c-on-navy); }
.topbar a:hover { color: var(--c-white); }
.topbar-left, .topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .topbar-right { display: none; } }

/* ---------------------------------------------------------------------
   Header / navigation
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--c-red) 0 12%, var(--c-line) 12% 100%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }

/* ===== LOGO IMAGE STYLES ===== */
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* If your logo is wide (horizontal), use this instead of the above:
.brand-mark {
  width: auto;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
}
.brand-mark img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
*/

.brand-text { font-family: var(--f-display); line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--c-navy); font-weight: 700; }
.brand-text span { display: block; font-size: 0.68rem; color: var(--c-red); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-navy);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-links a:hover { color: var(--c-red); }
.nav-links a.active { color: var(--c-red); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--c-red);
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-navy);
  margin: 5px 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    padding: 8px 24px 18px;
  }
  .site-header.is-open .nav-links a { padding: 12px 4px; }
  .site-header.is-open .nav-cta { margin: 10px 0 0; }
}

/* ---------------------------------------------------------------------
   Power-on intro sequence (homepage only)
   --------------------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.intro[hidden] { opacity: 0; visibility: hidden; display: flex; }
.intro-inner { text-align: center; color: var(--c-white); }
.intro svg { width: min(70vw, 420px); height: auto; }
.intro-word {
  margin-top: 22px;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: .32em;
  color: var(--c-on-navy);
  opacity: 0;
  animation: intro-word-in .5s var(--ease) forwards;
  animation-delay: 1.55s;
}
.intro-skip {
  position: absolute;
  bottom: 26px;
  right: 26px;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--c-on-navy);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
}
.intro-skip:hover { border-color: var(--c-red); color: var(--c-white); }

.intro-trace {
  fill: none;
  stroke: var(--c-navy-tint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: intro-draw 0.9s var(--ease) forwards;
}
.intro-node {
  fill: var(--c-navy-tint);
  opacity: 0;
  animation: intro-node-on .2s ease forwards;
}
.intro-node.n-final { fill: var(--c-red); }

@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-node-on { to { opacity: 1; } }
@keyframes intro-word-in { to { opacity: 1; } }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero-lead {
  color: var(--c-muted);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.75em;
}

/* Image fills the entire frame – no white space */
.hero-art {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;          /* clean rectangular shape */
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;             /* clips any overflow */
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.09);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* fills completely, crops if needed */
  display: block;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-art {
    order: -1;
    max-width: 380px;
    aspect-ratio: 4 / 3;
  }
}
.stats {
  background: var(--c-navy);
  color: var(--c-white);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
}
.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  color: var(--c-white);
}
.stat span { color: var(--c-on-navy); font-size: 0.9rem; }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------
   Service list
   --------------------------------------------------------------------- */
.service-list { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.service-row {
  background: var(--c-white);
  display: grid;
  grid-template-columns: 44px 1.1fr 1.6fr;
  gap: 28px;
  align-items: start;
  padding: 26px 28px;
}
.service-row .num { font-family: var(--f-display); color: var(--c-red); font-weight: 600; }
.service-row h3 { margin-bottom: 0.3em; font-size: 1.15rem; }
.service-row p { color: var(--c-muted); margin: 0; }
.service-row ul { margin: 0.6em 0 0; padding-left: 1.1em; color: var(--c-muted); font-size: 0.92rem; }
.service-row ul li { margin-bottom: 0.25em; }

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 6px; }
}

.service-icon { width: 44px; height: 44px; }
.service-icon svg { width: 100%; height: 100%; stroke: var(--c-navy); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------------
   Process steps
   --------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step { position: relative; padding-top: 14px; border-top: 2px solid var(--c-navy); }
.process-step .step-index { font-family: var(--f-display); color: var(--c-red); font-size: 0.85rem; font-weight: 700; }
.process-step h3 { font-size: 1.05rem; margin: 0.35em 0 0.3em; }
.process-step p { color: var(--c-muted); font-size: 0.93rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

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

.card-work {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.card-work:hover { border-color: var(--c-navy); box-shadow: var(--shadow-card); }
.card-media { aspect-ratio: 4/3; background: var(--c-surface-2); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.card-media .play-badge span {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(11,31,58,.75);
  display: flex; align-items: center; justify-content: center;
}
.card-body { padding: 20px; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-red);
  border: 1px solid var(--c-red);
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 0.7em;
}
.card-body h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.card-body p { color: var(--c-muted); font-size: 0.92rem; }

.placeholder-media {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--c-navy-tint);
  background:
    linear-gradient(var(--c-surface-2) 1px, transparent 1px) 0 0/100% 14px,
    var(--c-surface);
}
.placeholder-media svg { width: 34px; height: 34px; opacity: .7; }
.placeholder-media span { font-size: 0.78rem; color: var(--c-muted); }

.card-team { text-align: left; }
.team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface-2);
  margin-bottom: 14px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--c-white);
  background: linear-gradient(155deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
}
.card-team h3 { font-size: 1.02rem; margin-bottom: 0.15em; }
.card-team .role { color: var(--c-red); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5em; display: block; }
.card-team p { color: var(--c-muted); font-size: 0.88rem; }

/* ---------------------------------------------------------------------
   CTA band
   --------------------------------------------------------------------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 0.2em; }
.cta-band p { color: var(--c-on-navy); margin: 0; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--c-navy); color: var(--c-on-navy); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-block: 3.2rem 2.2rem;
}
.footer-grid h4 { color: var(--c-white); font-size: 0.95rem; margin-bottom: 0.9em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55em; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--c-white); }
.footer-brand p { color: var(--c-on-navy); font-size: 0.92rem; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; margin-top: 1em; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .02em;
}
.footer-social a:hover { border-color: var(--c-red); color: var(--c-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.1rem;
  font-size: 0.8rem;
  color: rgba(205,216,234,.7);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Generic page header
   --------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(2.4rem, 2rem + 2vw, 4rem) clamp(1.6rem, 1.3rem + 1vw, 2.4rem);
  border-bottom: 1px solid var(--c-line);
}
.page-head p { color: var(--c-muted); max-width: 60ch; }

/* ---------------------------------------------------------------------
   Two-column content
   --------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.value-list { list-style: none; margin: 0; padding: 0; }
.value-list li {
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
}
.value-list li:last-child { border-bottom: 1px solid var(--c-line); }
.value-list h3 { font-size: 1rem; margin-bottom: 0.25em; }
.value-list p { color: var(--c-muted); font-size: 0.92rem; margin: 0; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--c-navy); margin-bottom: 6px; }
.field .hint { font-size: 0.78rem; color: var(--c-muted); margin-top: 5px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="date"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-white);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--c-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,31,58,0.1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert--success { background: #e9f6ee; color: #1c6b3c; border: 1px solid #bfe4cd; }
.alert--error { background: #fdecec; color: var(--c-red-dark); border: 1px solid #f6c3c6; }

/* ---------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1.5rem + 2vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; margin: 1.5em 0 0; padding: 0; }
.contact-info-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.contact-info-list li:last-child { border-bottom: 1px solid var(--c-line); }
.contact-info-list svg { width: 20px; height: 20px; stroke: var(--c-red); fill: none; flex: none; margin-top: 2px; }
.contact-info-list b { display: block; color: var(--c-navy); font-size: 0.92rem; }
.contact-info-list span { color: var(--c-muted); font-size: 0.9rem; }
.map-frame { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; margin-top: 1.5em; }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------------------------------------------------------------------
   Lightbox
   --------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11,31,58,.82);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-panel {
  background: var(--c-white);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.lightbox-media { aspect-ratio: 16/9; background: var(--c-navy); }
.lightbox-media img, .lightbox-media video, .lightbox-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.lightbox-body { padding: 26px 28px 30px; }

/* ---------------------------------------------------------------------
   Filter chips
   --------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.filter-chip {
  border: 1px solid var(--c-line);
  background: var(--c-white);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.filter-chip.active { border-color: var(--c-red); color: var(--c-red); }

/* ---------------------------------------------------------------------
   Empty states
   --------------------------------------------------------------------- */
.empty-state {
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--c-muted);
}
.empty-state h3 { color: var(--c-navy); }

/* ---------------------------------------------------------------------
   Admin panel
   --------------------------------------------------------------------- */
.admin-body { background: var(--c-surface); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  flex: none;
  background: var(--c-navy);
  color: var(--c-on-navy);
  padding: 24px 18px;
}
.admin-sidebar .brand-text strong { color: var(--c-white); }
.admin-nav { list-style: none; margin: 28px 0 0; padding: 0; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--c-on-navy);
  margin-bottom: 2px;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: var(--c-white); }
.admin-nav a.active { background: var(--c-red); color: var(--c-white); }
.admin-main { flex: 1; padding: 32px clamp(20px, 4vw, 48px); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 1.5rem; margin: 0; }

.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 760px) { .admin-cards { grid-template-columns: 1fr; } }
.admin-metric {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.admin-metric b { display: block; font-family: var(--f-display); font-size: 1.9rem; color: var(--c-navy); }
.admin-metric span { color: var(--c-muted); font-size: 0.88rem; }

.panel {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 28px;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 1em; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.admin-table th { color: var(--c-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-table img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.row-actions { display: flex; gap: 10px; }
.row-actions a, .row-actions button { font-size: 0.85rem; font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; }
.row-actions .edit { color: var(--c-navy); }
.row-actions .delete { color: var(--c-red); }
.row-actions a:hover, .row-actions button:hover { text-decoration: underline; }
.badge-featured { font-size: 0.72rem; color: var(--c-red); border: 1px solid var(--c-red); padding: 2px 8px; border-radius: 100px; }

.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-navy);
  padding: 24px;
}
.login-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card h1 { font-size: 1.3rem; text-align: center; margin-bottom: 0.3em; }
.login-card .sub { text-align: center; color: var(--c-muted); font-size: 0.9rem; margin-bottom: 1.6em; }

/* ---------------------------------------------------------------------
   Motion accessibility
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-trace, .intro-node, .intro-word, .hero-trace-active {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}