/* Allan Digital — Dark Studio design system */
:root {
  --charcoal: #1d2126;
  --charcoal-deep: #12161b;
  --card: #232830;
  --line: #2a2f36;
  --blue: #2f6bff;
  --red: #e8483f;
  --light: #f4f5f7;
  --slate: #8b93a0;
  --slate-dim: #5a6270;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--charcoal);
  color: var(--light);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.dot { color: var(--red); }

/* nav */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(29, 33, 38, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.site img.logo { height: 22px; display: block; }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--slate); font-size: 14px; font-weight: 500; }
nav.main a:hover { color: var(--light); text-decoration: none; }
nav.main a.active { color: var(--light); }
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700;
  font-size: 14px; padding: 10px 22px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn:hover { background: #2558d6; text-decoration: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--light); }
.btn-ghost:hover { border-color: var(--slate); background: transparent; }

/* hero video */
.hero-video { background: var(--charcoal-deep); border-bottom: 1px solid var(--line); }
.hero-video video { width: 100%; max-height: 62vh; display: block; margin: 0 auto; cursor: pointer; }

/* type */
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 700; }
.kicker { color: var(--slate-dim); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.lede { color: var(--slate); font-size: 18px; max-width: 560px; }
section { padding: 64px 0; }
section.tight { padding: 40px 0; }

/* work cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.workcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: block; color: var(--light); transition: transform 0.15s, border-color 0.15s;
}
.workcard:hover { transform: translateY(-3px); border-color: var(--slate-dim); text-decoration: none; }
.workcard .thumb { aspect-ratio: 16/10; background: var(--charcoal-deep); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.workcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.workcard .thumb img.contain { object-fit: contain; padding: 18px; }
.workcard .meta { padding: 16px 18px; }
.workcard .meta .tag { color: var(--slate-dim); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

/* services list */
.svc { border-top: 1px solid var(--line); }
.svc a.row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--light); font-size: 19px; font-weight: 600;
}
.svc a.row:hover { color: var(--blue); text-decoration: none; }
.svc a.row span.arrow { color: var(--blue); }

/* CTA panel */
.cta {
  background: linear-gradient(135deg, rgba(47,107,255,0.16), rgba(47,107,255,0.04));
  border: 1px solid rgba(47,107,255,0.35); border-radius: 16px; padding: 40px; text-align: left;
}

/* forms */
form.lead { display: grid; gap: 16px; max-width: 560px; }
form.lead label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
form.lead input, form.lead select, form.lead textarea {
  background: var(--charcoal-deep); border: 1px solid var(--line); border-radius: 8px;
  color: var(--light); padding: 12px 14px; font: inherit; font-size: 15px;
}
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { outline: none; border-color: var(--blue); }
form.lead textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; color: var(--slate); }
.form-note.ok { color: #4caf6e; }
.form-note.err { color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* case pages */
.case-hero { padding: 56px 0 32px; }
.case-body img { width: 100%; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; background: var(--charcoal-deep); }
.case-body img.pad { padding: 28px; }
.case-body .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
footer.site, footer.site a { color: var(--slate-dim); font-size: 13px; }

@media (max-width: 640px) {
  nav.main { gap: 14px; }
  nav.main a.hide-m { display: none; }
  .cta { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .workcard { transition: none; }
}
