/* Veil Security site styles. Rebuilt from the WordPress site, November 2026. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-var.woff2") format("woff2");
}

:root {
  --bg: #0a0a0a;
  --bg-deep: #080808;
  --bg-black: #000;
  --surface: #111;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #fff;
  --muted: #9ca3af;
  --dim: #858d9a;      /* labels; raised from #6b7280 for contrast */
  --faint: #6b7280;
  --green: #22c55e;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1100px;
  --gutter: 40px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 200; line-height: 1.3; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; font-size: 0.875rem; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.6); outline-offset: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--gutter);
  position: relative; z-index: 100;
}
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; }
.site-header .brand img { width: 88px; }
.site-header.overlay .brand { visibility: hidden; }
.site-nav { display: flex; gap: 36px; margin-left: auto; }
.site-nav a {
  position: relative;
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.3s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: #fff; transition: width 0.3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-black); overflow: hidden; text-align: center;
  padding: 120px 24px 100px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .glow-a, .hero .glow-b, .hero .scanlines, .hero .fade-bottom { position: absolute; inset: 0; pointer-events: none; }
.hero .glow-a { background: radial-gradient(ellipse at 30% 20%, rgba(30, 30, 80, 0.3) 0%, transparent 60%); }
.hero .glow-b { background: radial-gradient(ellipse at 70% 80%, rgba(20, 60, 60, 0.2) 0%, transparent 60%); }
.hero .scanlines { background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.012) 2px, rgba(255, 255, 255, 0.012) 4px); }
.hero .fade-bottom { top: auto; height: 30%; background: linear-gradient(to top, var(--bg), transparent); }
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 22px; animation: veilFadeUp 1.2s var(--ease) both; }
.hero-title img { width: 180px; }
.hero-title .word {
  font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 200; letter-spacing: 0.3em; text-transform: uppercase;
  margin-right: -0.3em; /* balance the trailing letter-spacing */
}
.hero .rule {
  width: 60px; height: 1px; margin: 28px auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: veilFadeIn 1.5s 0.6s both;
}
.tagline {
  min-height: 1.4em; margin-bottom: 30px;
  font-size: 0.96rem; letter-spacing: 0.25em; color: var(--dim);
}
.tagline.typing::after { content: "|"; color: var(--faint); font-weight: 200; animation: blink 1s step-end infinite; }
.hero-lede {
  max-width: 550px; margin: 0 auto 14px;
  font-size: 1.15rem; line-height: 1.8; color: var(--muted);
  animation: veilFadeUp 1.2s 0.9s var(--ease) both;
}
.hero-location {
  margin-bottom: 44px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--dim);
  animation: veilFadeUp 1.2s 1s var(--ease) both;
}
.hero .actions { animation: veilFadeUp 1.2s 1.1s var(--ease) both; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 36px; z-index: 2; width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  transform-origin: top; animation: veilScrollPulse 2.4s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.actions.start { justify-content: flex-start; margin-top: 8px; }
.label.spaced { margin-top: 48px; }
.btn {
  position: relative; overflow: hidden; display: inline-block;
  padding: 18px 44px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s ease, border-color 0.3s ease;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.5s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 100%; }
.btn-solid { background: #fff; color: #000; }
.btn-solid:hover { box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--muted); font-weight: 400; }
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px var(--gutter); background: var(--bg); }
.section.deep { background: var(--bg-deep); }
.section.raised { background: var(--surface); }
.section.grid-bg {
  background-color: var(--bg-deep);
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.section.glow-top::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.center { text-align: center; }

.label {
  margin-bottom: 20px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--dim);
}
.label.live { color: var(--green); }
.pulse {
  display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px;
  border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite;
}
.section h2 { font-size: clamp(1.6rem, 3.4vw, 1.95rem); letter-spacing: -0.006em; margin-bottom: 24px; }
.section .intro { max-width: 720px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.center .intro { margin-left: auto; margin-right: auto; }

/* Cards */
.cards { display: grid; gap: 24px; margin-top: 56px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 2px;
  padding: 40px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.1); }
.card .num { display: block; margin-bottom: 22px; font-size: 0.8rem; letter-spacing: 0.15em; color: var(--dim); }
.card h3 { font-size: 1.06rem; font-weight: 400; letter-spacing: 0.04em; margin-bottom: 14px; }
.card p { margin: 0; font-size: 0.95rem; line-height: 1.75; color: var(--muted); }
.cards-4 .card { padding: 36px 28px; }
.cert { background: var(--bg); padding: 32px 20px; text-align: center; }
.cert .abbr { display: block; font-size: 1.5rem; font-weight: 300; letter-spacing: 0.12em; margin-bottom: 10px; }
.cert p { font-size: 0.8rem; line-height: 1.6; color: var(--dim); }

/* Service rows (home) */
.service-list { margin-top: 48px; border-top: 1px solid var(--border); }
.service-row {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px;
  padding: 30px 0; border-bottom: 1px solid var(--border);
}
.service-row h3 { font-size: 1.06rem; font-weight: 400; letter-spacing: 0.04em; }
.service-row p { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.75; color: var(--muted); }
.service-row .price { margin: 0; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--dim); }
.after-list { margin-top: 48px; }

/* Detailed services page */
.service-detail {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 48px 0; border-bottom: 1px solid var(--border);
}
.service-detail:first-child { border-top: 1px solid var(--border); }
.service-detail .num { font-size: 0.85rem; letter-spacing: 0.15em; color: var(--dim); padding-top: 6px; }
.service-detail h2 { font-size: 1.45rem; font-weight: 300; margin-bottom: 16px; }
.service-detail p { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 760px; }
.service-detail .price { margin: 0; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--text); }
.service-detail .price span { color: var(--dim); }

/* Inner page heading */
.page-hero { padding: 90px var(--gutter) 70px; background: var(--bg); position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 200; letter-spacing: -0.01em; margin-bottom: 22px; }
.page-hero .intro { max-width: 640px; color: var(--muted); font-size: 1.1rem; line-height: 1.8; margin: 0; }

/* Prose (about, privacy) */
.prose h2 { font-size: 1.5rem; font-weight: 300; margin: 0 0 18px; }
.prose p, .prose li { color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose a { color: #fff; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.prose .block + .block { margin-top: 64px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-email {
  display: inline-block; margin: 4px 0 22px; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 300;
  color: #fff; text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact-email:hover { border-color: #fff; }
.contact-grid p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 1rem;
}
.steps li:first-child { border-top: 1px solid var(--border); }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--dim); font-size: 0.85rem; letter-spacing: 0.15em; padding-top: 3px; }

/* CTA */
.cta { padding: 120px var(--gutter); text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 24px; }
.cta p.intro { margin: 0 auto 44px; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 32px var(--gutter); border-top: 1px solid var(--border);
  font-size: 0.8rem; letter-spacing: 0.05em; color: var(--dim);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* ---------- Reveal animations (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 0.12s); }
.js .stagger.visible > * { opacity: 1; transform: none; }

@keyframes veilFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes veilFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes veilScrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 0.6; transform: scaleY(1.3); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .site-header { padding: 18px var(--gutter); }
  .site-header .brand img { width: 64px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .section, .cta { padding: 80px var(--gutter); }
  .page-hero { padding: 56px var(--gutter) 48px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-5 { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .service-detail { grid-template-columns: 1fr; gap: 8px; padding: 36px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .card:hover { transform: none; }
  .btn { padding: 16px 28px; }
}
@media (max-width: 480px) {
  .cards-4 { grid-template-columns: 1fr; }
  .site-header.overlay .brand { display: none; }
  .site-header:not(.overlay) .site-nav { gap: 14px; }
  .actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
}
