/* ============================================================
   URang Technological Services — Design System
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #070d1c;
  --navy-800: #0b1428;
  --navy-700: #101d3a;
  --navy-600: #16264a;
  --blue-500: #1f6feb;
  --blue-400: #3b8bff;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --ink-100: #eef3fb;
  --ink-200: #c9d6ea;
  --ink-300: #9fb1cc;
  --ink-400: #6f83a3;

  --white: #ffffff;
  --surface: #0d1730;
  --surface-2: #111f3d;
  --line: rgba(120, 160, 220, 0.16);
  --line-strong: rgba(120, 160, 220, 0.32);

  --grad-brand: linear-gradient(135deg, #1f6feb 0%, #22d3ee 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --grad-dark: linear-gradient(180deg, #0b1428 0%, #070d1c 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(3, 8, 20, 0.45);
  --shadow-lg: 0 28px 70px rgba(3, 8, 20, 0.6);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 18px 50px rgba(31, 111, 235, 0.28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--navy-900);
  color: var(--ink-100);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan-300);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-lead { color: var(--ink-300); max-width: 62ch; font-size: 1.05rem; }
.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-brand); color: #04101f; box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(34,211,238,0.4), 0 22px 60px rgba(31,111,235,0.45); }
.btn--ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--ink-100); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); }
.btn--warm { background: var(--grad-warm); color: #241500; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 13, 28, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #04101f; font-weight: 900; font-size: 1.05rem;
  box-shadow: var(--glow); flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 1.02rem; }
.brand__sub { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan-300); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-200); transition: color 0.2s; position: relative; }
.nav__links a:hover { color: var(--white); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-brand); border-radius: 2px; transition: width 0.25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 0.8rem; }

.nav__toggle {
  display: none; background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong);
  border-radius: 10px; width: 44px; height: 44px; color: var(--ink-100);
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle span::before { content: ""; transform: translateY(-6px); }
.nav__toggle span::after { content: ""; transform: translateY(4px); }
.nav__toggle.open span { background: transparent; }
.nav__toggle.open span::before { transform: rotate(45deg); }
.nav__toggle.open span::after { transform: rotate(-45deg) translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(7rem, 16vw, 11rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(31,111,235,0.35), transparent 60%),
    radial-gradient(900px 500px at 8% 20%, rgba(34,211,238,0.18), transparent 55%),
    var(--grad-dark);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(120,160,220,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
.hero h1 .accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-200); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.6rem; }
.stat__num { font-size: 1.9rem; font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 0.8rem; color: var(--ink-300); letter-spacing: 0.04em; }

.hero__card {
  background: linear-gradient(160deg, rgba(22,38,74,0.9), rgba(11,20,40,0.9));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
}
.hero__card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero__list li { display: flex; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; color: var(--ink-200); }
.hero__list li:last-child { border-bottom: 0; }
.hero__list .dot { color: var(--cyan-400); flex: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(255,255,255,0.02); overflow: hidden; }
.marquee__track { display: flex; gap: 3rem; padding: 1rem 0; white-space: nowrap; animation: scroll 32s linear infinite; }
.marquee__track span { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300); display: inline-flex; align-items: center; gap: 0.6rem; }
.marquee__track span::before { content: "◆"; color: var(--cyan-400); font-size: 0.6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(31,111,235,0.14); border: 1px solid rgba(34,211,238,0.25);
  color: var(--cyan-300); margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-300); font-size: 0.95rem; margin-bottom: 0; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.28rem 0.65rem; border-radius: var(--radius-pill); background: rgba(34,211,238,0.1); color: var(--cyan-300); border: 1px solid rgba(34,211,238,0.2); }

/* ---------- Pricing / IT Packages ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.plan--featured { border-color: rgba(34,211,238,0.5); box-shadow: var(--glow); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #04101f; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
}
.plan__name { font-size: 1.25rem; margin-bottom: 0.2rem; }
.plan__for { color: var(--ink-300); font-size: 0.88rem; min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 0.35rem; margin: 1rem 0 0.2rem; }
.plan__price .amt { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; }
.plan__price .per { color: var(--ink-300); font-size: 0.85rem; }
.plan__note { font-size: 0.78rem; color: var(--ink-400); margin-bottom: 1.2rem; }
.plan__features { display: grid; gap: 0.6rem; margin: 0.4rem 0 1.6rem; }
.plan__features li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-200); }
.plan__features .check { color: var(--cyan-400); flex: none; font-weight: 900; }
.plan .btn { margin-top: auto; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,13,28,0.55)); }
.feature-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.feature-list li { display: flex; gap: 0.9rem; }
.feature-list .fi {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: rgba(31,111,235,0.14); border: 1px solid rgba(34,211,238,0.22); color: var(--cyan-300);
}
.feature-list .fi svg { width: 20px; height: 20px; }
.feature-list strong { display: block; font-size: 0.98rem; }
.feature-list span { color: var(--ink-300); font-size: 0.9rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--radius); background: rgba(255,255,255,0.025); border: 1px solid var(--line); }
.step__num {
  counter-increment: step; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--cyan-300); letter-spacing: 0.1em;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.05rem; margin-top: 0.5rem; }
.step p { color: var(--ink-300); font-size: 0.9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(34,211,238,0.22), transparent 60%),
    linear-gradient(135deg, #16264a, #0b1428);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 0.3rem; }
.cta-band p { color: var(--ink-200); margin: 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(31,111,235,0.14); border: 1px solid rgba(34,211,238,0.22); color: var(--cyan-300); }
.contact-info .ci svg { width: 20px; height: 20px; }
.contact-info strong { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); }
.contact-info a, .contact-info span { color: var(--ink-100); font-size: 0.98rem; }
.contact-info a:hover { color: var(--cyan-300); }

.form { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-200); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm);
  background: rgba(7,13,28,0.6); border: 1px solid var(--line-strong); color: var(--ink-100);
  font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-400); box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { font-size: 0.78rem; color: var(--ink-400); margin-top: 0.8rem; }
.form__success { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.35); color: #a7f3d0; font-size: 0.9rem; }
.form__success.show { display: block; }
.form__error { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.4); color: #fecaca; font-size: 0.9rem; }
.form__error.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-900); padding: 3rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 1rem; }
.footer-grid a, .footer-grid p { color: var(--ink-300); font-size: 0.9rem; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--cyan-300); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-400); font-size: 0.82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7,13,28,0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.4rem;
    transform: translateY(-120%); transition: transform 0.35s var(--ease); align-items: stretch;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta .btn { display: none; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav__toggle, .marquee, .hero__bg, .hero__grid, .cta-band .btn, .form { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .card, .plan, .step, .split__media { border: 1px solid #ccc; box-shadow: none; background: #fff; }
  .section { padding: 1.2rem 0; page-break-inside: avoid; }
  .hero { padding: 1rem 0; }
  a { color: #111; }
  .section-title, .hero h1 { color: #111; }
  .eyebrow, .stat__num, .hero h1 .accent { color: #1f6feb !important; -webkit-text-fill-color: #1f6feb; }
}

/* ============================================================
   Projects / Blog + Admin console  (v3)
   ============================================================ */

/* ---------- Nav active state ---------- */
.nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after { width: 100%; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(7rem, 15vw, 10rem) 0 clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.page-hero__inner { position: relative; max-width: 800px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .section-lead { font-size: 1.08rem; }

/* ---------- Projects head + filters ---------- */
.projects-head { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--ink-200);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { background: rgba(255,255,255,0.09); color: var(--white); }
.chip.is-active { background: var(--grad-brand); color: #04101f; border-color: transparent; box-shadow: var(--glow); }

/* ---------- Project grid ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.project-card__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #16264a, #0b1428); aspect-ratio: 16 / 10; overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 1rem; text-align: center;
  color: var(--ink-400); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem;
}
.project-card__cat {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  background: rgba(7,13,28,0.8); border: 1px solid var(--line-strong); color: var(--cyan-300); backdrop-filter: blur(6px);
}
.project-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.project-card__meta { font-size: 0.78rem; color: var(--ink-400); margin-bottom: 0.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.project-card__body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.project-card__body p { color: var(--ink-300); font-size: 0.92rem; }
.project-card__open { margin-top: auto; align-self: flex-start; }

.skeleton-card {
  height: 340px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-300); }
.empty-state__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center;
  background: rgba(31,111,235,0.14); border: 1px solid rgba(34,211,238,0.25); color: var(--cyan-300);
}
.empty-state__icon svg { width: 30px; height: 30px; }
.empty-state h3 { color: var(--ink-100); }
.empty-state p { max-width: 46ch; margin-inline: auto; }

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: clamp(1rem, 4vw, 3rem) 1rem; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(3,8,20,0.78); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative; width: min(880px, 100%); margin: auto;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(7,13,28,0.7); color: var(--ink-100);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.modal__close:hover { background: rgba(248,113,113,0.22); }
.modal__body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.modal__title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.modal__meta { display: flex; flex-wrap: wrap; gap: 0.9rem; color: var(--ink-400); font-size: 0.85rem; margin-bottom: 1.2rem; }
.modal__text p { color: var(--ink-200); }
.modal__rule { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.modal__loading { padding: 2.5rem 1rem; text-align: center; color: var(--ink-300); }

/* ---------- Gallery ---------- */
.gallery { margin-bottom: 1.4rem; }
.gallery__main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16 / 9; background: #0a1428; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.gallery__thumb { width: 84px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--cyan-400); }

/* ---------- Q & A ---------- */
.qa__title { font-size: 1.25rem; }
.qa__list { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.qa__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: rgba(255,255,255,0.02); }
.qa__q, .qa__a { display: flex; gap: 0.7rem; }
.qa__a { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); }
.qa__badge { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; background: rgba(31,111,235,0.2); color: var(--cyan-300); }
.qa__badge--a { background: rgba(52,211,153,0.18); color: #a7f3d0; }
.qa__item strong { font-size: 0.85rem; color: var(--ink-100); display: block; }
.qa__item p { margin: 0.15rem 0 0; color: var(--ink-200); font-size: 0.92rem; }
.qa__empty { color: var(--ink-400); font-size: 0.9rem; }
.qa__form { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: rgba(255,255,255,0.02); }
.qa__form h4 { font-size: 1rem; }

/* ---------- Admin ---------- */
.admin-top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(7,13,28,0.9); backdrop-filter: blur(12px); }
.admin-top__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.admin-top__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.admin-main { padding: 2.5rem var(--gutter) 5rem; }
.admin-login { display: grid; place-items: center; min-height: 60vh; }
.admin-login__card { width: min(460px, 100%); background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.admin-login__card h1 { font-size: 1.6rem; }
.admin-login__card p { color: var(--ink-300); font-size: 0.9rem; }
.admin-login__hint { font-size: 0.8rem; color: var(--ink-400); margin-top: 1rem; }
code { font-family: var(--font-mono); font-size: 0.85em; background: rgba(34,211,238,0.1); color: var(--cyan-300); padding: 0.1rem 0.35rem; border-radius: 5px; }

.admin-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tab { background: none; border: 0; padding: 0.8rem 1.1rem; color: var(--ink-300); font-weight: 700; font-size: 0.95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 0.5rem; }
.tab:hover { color: var(--white); }
.tab.is-active { color: var(--white); border-bottom-color: var(--cyan-400); }
.badge { font-size: 0.7rem; font-weight: 800; background: var(--amber-500); color: #241500; border-radius: var(--radius-pill); padding: 0.1rem 0.5rem; min-width: 20px; text-align: center; }

.admin-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.admin-bar h2 { font-size: 1.5rem; margin: 0; }
.admin-bar__sub { color: var(--ink-400); font-size: 0.88rem; margin: 0.2rem 0 0; }

.admin-list { display: grid; gap: 0.7rem; }
.admin-row { display: flex; align-items: center; gap: 1rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.admin-row__thumb { width: 64px; height: 48px; border-radius: 9px; overflow: hidden; flex: none; background: linear-gradient(135deg, #16264a, #0b1428); display: grid; place-items: center; }
.admin-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row__ph { font-weight: 800; color: var(--cyan-300); }
.admin-row__main { flex: 1; min-width: 0; }
.admin-row__title { font-weight: 700; font-size: 0.98rem; }
.admin-row__meta { font-size: 0.8rem; color: var(--ink-400); }
.admin-row__actions { display: flex; gap: 0.5rem; flex: none; }
.admin-loading, .admin-empty { padding: 1.4rem; text-align: center; color: var(--ink-400); border: 1px dashed var(--line); border-radius: var(--radius); font-size: 0.9rem; }
.pill { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); }
.pill--draft { background: rgba(251,191,36,0.16); color: var(--amber-400); border: 1px solid rgba(251,191,36,0.3); }

.admin-editor { margin-top: 1.6rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(165deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow-md); }
.admin-editor h3 { font-size: 1.3rem; }
.admin-editor__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.uploader { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.uploader__hint { font-size: 0.8rem; color: var(--ink-400); }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.7rem; margin-top: 0.9rem; }
.upload-item { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); }
.upload-item.is-cover { border-color: var(--cyan-400); }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item__x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(7,13,28,0.85); color: #fff; font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.upload-item__x:hover { background: #ef4444; }
.upload-item__cover { position: absolute; left: 0; right: 0; bottom: 0; border: 0; padding: 0.3rem; font-size: 0.68rem; font-weight: 700; background: rgba(7,13,28,0.82); color: var(--cyan-300); }
.upload-item.is-cover .upload-item__cover { background: rgba(34,211,238,0.9); color: #04101f; }

.switch { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-200); margin-top: 1rem; cursor: pointer; }
.switch input { width: auto; }

.btn--danger { background: rgba(248,113,113,0.14); border: 1px solid rgba(248,113,113,0.45); color: #fecaca; }
.btn--danger:hover { background: rgba(248,113,113,0.24); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.q-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: rgba(255,255,255,0.02); }
.q-card--new { border-color: rgba(251,191,36,0.4); box-shadow: 0 0 0 1px rgba(251,191,36,0.15); }
.q-card__head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--ink-400); margin-bottom: 0.6rem; }
.q-card__proj { font-weight: 700; color: var(--cyan-300); }
.q-card__q strong { font-size: 0.9rem; }
.q-card__q a { color: var(--ink-400); font-size: 0.82rem; }
.q-card__q p { margin: 0.3rem 0 0; color: var(--ink-100); }
.q-card__actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.q-card__ok { display: none; margin-top: 0.8rem; }
.q-card__ok.show { display: block; }

/* ---------- Responsive (projects + admin) ---------- */
@media (max-width: 980px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .projects-grid { grid-template-columns: 1fr; }
  .admin-row { flex-wrap: wrap; }
  .admin-row__actions { width: 100%; }
  .admin-top__inner { height: auto; padding-block: 0.7rem; gap: 0.6rem; flex-wrap: wrap; }
}

/* ---------- Print (projects + admin) ---------- */
@media print {
  .modal, .admin-top, .admin-tabs, .admin-editor, .uploader, .filters { display: none !important; }
}

/* ---------- Service pages: FAQ + prose ---------- */
.faq { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.025); overflow: hidden;
}
.faq details[open] { border-color: rgba(34,211,238,0.35); background: rgba(31,111,235,0.06); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.3rem;
  font-weight: 600; color: var(--ink-100); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--cyan-300);
  flex: none; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 1.3rem 1.2rem; color: var(--ink-300); font-size: 0.94rem; line-height: 1.7; }
.faq .faq__a p { margin: 0; }

.prose { max-width: 72ch; }
.prose p { color: var(--ink-200); line-height: 1.8; margin-bottom: 1.1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose ul { display: grid; gap: 0.5rem; margin: 0 0 1.2rem 1.1rem; }
.prose li { color: var(--ink-200); line-height: 1.7; }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip-list .chip { font-size: 0.82rem; }

.service-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 1.6rem; }
.service-links a {
  display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.025); color: var(--ink-100); font-weight: 600; font-size: 0.92rem;
  transition: border-color .2s, transform .2s;
}
.service-links a:hover { border-color: rgba(34,211,238,0.45); transform: translateY(-2px); }
.service-links a span { display: block; color: var(--ink-400); font-weight: 400; font-size: 0.8rem; margin-top: 0.2rem; }
@media (max-width: 760px) { .service-links { grid-template-columns: 1fr; } }

/* ---------- Card deep links ---------- */
.card__link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem;
  font-size: 0.85rem; font-weight: 700; color: var(--cyan-300); letter-spacing: 0.02em;
}
.card__link::after { content: "\2192"; transition: transform .2s; }
.card__link:hover { color: var(--cyan-400); }
.card__link:hover::after { transform: translateX(3px); }

/* ---------- Responsive picture wrappers ---------- */
.split__media picture { display: block; width: 100%; height: 100%; }
.split__media picture img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Dual phone numbers (Dayton primary / Michigan secondary) ---------- */
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ink-100);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__phone::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.nav__phone:hover {
  color: var(--cyan-300);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.07);
}
.phone-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.42rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-400);
  border: 1px solid var(--line);
  border-radius: 999px;
  vertical-align: 1px;
  white-space: nowrap;
}
.contact-info a + .phone-tag { margin-bottom: 0.15rem; }
.site-footer .phone-tag { margin-left: 0.35rem; }

@media (max-width: 980px) {
  .nav__phone { display: none; }
}
@media (max-width: 760px) {
  .phone-tag { font-size: 0.62rem; }
}
