/* ---------------------------------------------
   Sacra Consulting — tokens (shared identity with Sacra Corp)
--------------------------------------------- */
:root {
  --bg: #060606;
  --bg-raised: #0d0d0d;
  --fg: #f3f2ee;
  --muted: #8c8c86;
  --border: #232323;
  --border-hover: #4a4a45;
  --accent: #e07b39;

  --font-display: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-w: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

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

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(6, 6, 6, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.75; }

.brand-mark { height: 30px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 32px; }

.site-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 0.75rem; }
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: hero-in 900ms ease-out both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-mark { height: 110px; width: auto; margin-bottom: 28px; }

.hero-wordmark { width: min(460px, 82vw); height: auto; margin-bottom: 20px; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(243, 242, 238, 0.14);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  animation: cue-bounce 1.8s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ---------------------------------------------
   Shared section layout
--------------------------------------------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-head { max-width: 560px; margin-bottom: 56px; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------------------------------------------
   Services
--------------------------------------------- */
.services-section { border-top: 1px solid var(--border); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-raised);
  padding: 36px 32px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: #111110;
}

.service-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------------------------------------------
   Work / case study
--------------------------------------------- */
.work-section {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.case-study {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .case-study { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .case-study { grid-template-columns: 1fr; }
}

.case-media {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 9 / 16;
  max-height: 560px;
}

.case-media:has(.case-logo) {
  aspect-ratio: 9 / 16;
  max-height: 560px;
}

.case-caption {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 28px 0 0;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.footer-cta-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0;
}

.btn-footer { margin-bottom: 8px; }

.copyright {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
}
