/* ============================================
   Assassin’s Creed / Animus world overlay
   Loaded after style.css — cinematic portfolio feel
   (Fonts load from index.html — no @import here; @import delays CSS and causes white flash)
   ============================================ */

:root {
  --color-bg: #080a09;
  --color-bg-elevated: #101412;
  --color-bg-muted: #141916;
  --color-ink: #e9ece4;
  --color-ink-soft: #c5cbbd;
  --color-ink-muted: #8a9386;
  --color-border: rgba(92, 184, 168, 0.18);
  --color-border-strong: rgba(201, 162, 39, 0.45);

  --color-accent: #5cb8a8;
  --color-accent-hover: #7ed4c4;
  --color-accent-soft: rgba(92, 184, 168, 0.12);
  --color-accent-medium: rgba(92, 184, 168, 0.22);
  --color-gold: #c9a227;
  --gold: #c9a227;
  --color-gold-soft: rgba(201, 162, 39, 0.15);

  --font-display: "Cinzel", "Fraunces", Georgia, serif;
  --font-body: "Rajdhani", "Plus Jakarta Sans", sans-serif;

  --shadow-sm: 0 0 0 1px rgba(92, 184, 168, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(92, 184, 168, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(92, 184, 168, 0.08);

  --header-h: 4.5rem;
}

html {
  background: #050605;
}

body {
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(92, 184, 168, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(201, 162, 39, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(92, 184, 168, 0.06), transparent 45%),
    linear-gradient(180deg, #080a09 0%, #0c100e 50%, #080a09 100%);
  background-attachment: fixed;
  letter-spacing: 0.02em;
}

body.is-booting {
  background: #070908 !important;
  background-image: none !important;
}

body.is-booting::before,
body.is-booting::after {
  opacity: 0;
  visibility: hidden;
}

/* World grain + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Animus HUD chrome ---------- */
.ac-hud {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.ac-hud__corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: rgba(92, 184, 168, 0.55);
  border-style: solid;
  border-width: 0;
}

.ac-hud__corner--tl {
  top: 12px;
  left: 12px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.ac-hud__corner--tr {
  top: 12px;
  right: 12px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.ac-hud__corner--bl {
  bottom: 12px;
  left: 12px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.ac-hud__corner--br {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.ac-sync {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ac-sync__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent), #a8e0d4);
  box-shadow: 0 0 12px rgba(92, 184, 168, 0.7);
  transition: width 0.05s linear;
}

.ac-sync__label {
  position: fixed;
  top: 10px;
  right: 64px;
  z-index: 121;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(92, 184, 168, 0.75);
  pointer-events: none;
}

@media (max-width: 700px) {
  .ac-sync__label {
    display: none;
  }
  .ac-hud__corner {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Typography polish ---------- */
h1, h2, h3, h4,
.hero__brand,
.nav__brand,
.footer__brand,
.boot-loader__brand {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0.04em;
}

.section__eyebrow {
  color: var(--color-gold);
  letter-spacing: 0.2em;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  background: linear-gradient(135deg, #f2f0e6 20%, var(--color-accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lead {
  color: var(--color-ink-muted);
}

.section {
  position: relative;
  padding-block: var(--space-9);
}

.section--panel {
  background:
    linear-gradient(180deg, rgba(16, 20, 18, 0.9), rgba(10, 12, 11, 0.95));
  border-block: 1px solid var(--color-border);
}

/* Ornamental section frame */
.ac-frame {
  position: relative;
}

.ac-frame::before,
.ac-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  pointer-events: none;
}

.ac-frame::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.ac-frame::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* ---------- Header / Nav HUD ---------- */
.site-header {
  background: rgba(8, 10, 9, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(92, 184, 168, 0.15);
}

.site-header.is-scrolled {
  background: rgba(8, 10, 9, 0.92);
  border-bottom-color: rgba(92, 184, 168, 0.28);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.nav__brand {
  color: #f2f0e6;
  font-size: 1.35rem;
}

.nav__brand span,
.footer__brand span,
.hero__brand span,
.boot-loader__brand span {
  color: var(--color-accent);
}

.nav__links a {
  color: rgba(233, 236, 228, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
}

.nav__links a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(92, 184, 168, 0.45);
}

.nav__links a.nav-track,
.nav__mobile a.nav-track {
  color: var(--gold) !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
}

.nav__links a.nav-track:hover,
.nav__mobile a.nav-track:hover {
  color: #e0c15a !important;
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.45);
}

.nav__toggle span {
  background: var(--color-accent);
}

.nav__mobile {
  background: #0e1210;
  border-bottom-color: var(--color-border);
}

.nav__mobile a {
  color: var(--color-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn--primary {
  background: linear-gradient(135deg, #0a5448, #5cb8a8);
  color: #06110e;
  border: none;
  box-shadow: 0 0 24px rgba(92, 184, 168, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0d6b5c, #7ed4c4);
  color: #04100c;
  box-shadow: 0 0 32px rgba(92, 184, 168, 0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid rgba(92, 184, 168, 0.45);
}

.btn--secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-soft);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
}

.hero__canvas-wrap {
  background: linear-gradient(145deg, #050705 0%, #0c1411 40%, #0a1210 100%);
}

.hero__overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 10, 9, 0.94) 0%,
    rgba(8, 10, 9, 0.72) 42%,
    rgba(8, 10, 9, 0.25) 100%
  );
}

.hero__brand {
  color: #f2f0e6;
  text-shadow: 0 0 40px rgba(92, 184, 168, 0.25);
}

.hero__name {
  color: var(--color-gold);
  letter-spacing: 0.22em;
}

.hero__title {
  color: #e9ece4;
  max-width: 16ch;
}

.hero__statement {
  color: var(--color-ink-muted);
}

.hero__trust {
  color: var(--color-ink-muted);
}

.hero__stars {
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.45);
}

.hero__seq {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--space-4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(92, 184, 168, 0.8);
}

.hero__seq::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* ---------- Stats — Animus data strip ---------- */
.stats {
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.2), transparent 30%),
    linear-gradient(180deg, #0a100e, #121816);
  border-block: 1px solid rgba(92, 184, 168, 0.2);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "LIVE METRICS";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: rgba(201, 162, 39, 0.55);
  font-weight: 700;
}

.stats__item strong {
  color: var(--color-accent);
  text-shadow: 0 0 24px rgba(92, 184, 168, 0.35);
}

.stats__item span {
  color: rgba(233, 236, 228, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Panels / cards ---------- */
.credential,
.service-card,
.case-card,
.testimonial,
.contact__form {
  background: linear-gradient(160deg, rgba(18, 24, 21, 0.95), rgba(10, 13, 12, 0.98));
  border: 1px solid rgba(92, 184, 168, 0.2);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.credential::before,
.service-card::before,
.case-card::before,
.testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-gold), transparent);
  opacity: 0.7;
}

.service-card:hover,
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(92, 184, 168, 0.12);
}

.credential__icon,
.service-card__icon {
  background: rgba(92, 184, 168, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(92, 184, 168, 0.25);
  border-radius: 2px;
}

.case-card__tag {
  background: var(--color-gold-soft);
  color: var(--color-gold);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 2px;
}

.filter-btn {
  border-radius: 2px;
  border-color: rgba(92, 184, 168, 0.25);
  color: var(--color-ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.filter-btn:hover {
  color: var(--color-ink);
  border-color: var(--color-accent);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, #0a5448, #5cb8a8);
  border-color: transparent;
  color: #06110e;
}

/* ---------- Timeline memory lane ---------- */
.timeline::before {
  background: linear-gradient(180deg, transparent, var(--color-accent), var(--color-gold), transparent);
  width: 2px;
  box-shadow: 0 0 12px rgba(92, 184, 168, 0.4);
}

.timeline__marker {
  background: #080a09;
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.55);
}

.timeline__year {
  color: var(--color-gold);
}

.timeline__item h3 {
  color: #f2f0e6;
}

/* ---------- Testimonials ---------- */
.testimonial blockquote {
  color: #e9ece4;
  font-style: italic;
}

.testimonial cite {
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92, 184, 168, 0.12), transparent 55%),
    linear-gradient(160deg, #0c1210, #080a09);
  border-top-color: rgba(92, 184, 168, 0.2);
}

.form-group input,
.form-group textarea {
  background: rgba(5, 7, 6, 0.85);
  border-color: rgba(92, 184, 168, 0.25);
  color: var(--color-ink);
  border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(92, 184, 168, 0.15);
}

.form-group label {
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050705;
  border-top: 1px solid rgba(92, 184, 168, 0.15);
}

.footer__brand {
  color: #f2f0e6;
}

.footer__col h4 {
  color: var(--color-gold);
}

.footer__col a:hover {
  color: var(--color-accent);
}

.footer__privacy-link {
  color: rgba(92, 184, 168, 0.75);
}

.footer__trustpilot .stars {
  color: var(--color-gold);
}

/* ---------- Welcome / privacy / cookie ---------- */
.welcome-card__panel,
.privacy-modal__panel {
  background: linear-gradient(160deg, #141a17, #0c100e);
  border: 1px solid rgba(92, 184, 168, 0.3);
  border-radius: 2px;
  color: var(--color-ink);
}

.welcome-card__eyebrow {
  color: var(--color-gold);
}

.cookie-bar {
  background: #0a0e0c;
  border-top: 1px solid rgba(92, 184, 168, 0.25);
}

/* ---------- Reveal punchier ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ---------- Sequence badge in headers ---------- */
.seq-badge {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(92, 184, 168, 0.35);
  background: rgba(92, 184, 168, 0.08);
}

/* ---------- Cursor glow (desktop) ---------- */
.ac-cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 184, 168, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

.ac-cursor-glow.is-on {
  opacity: 1;
}

@media (max-width: 900px), (pointer: coarse) {
  .ac-cursor-glow {
    display: none;
  }
}

.about__text p {
  color: var(--color-ink-soft);
}

.p,
body p {
  color: var(--color-ink-soft);
}

a {
  color: var(--color-accent);
}

.site-header {
  top: 3px; /* sit under sync bar */
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    filter: none;
    transform: none;
    opacity: 1;
  }

  .ac-cursor-glow {
    display: none;
  }
}
