/* ================================================================
   VERDE COMPUTE - SHARED DESIGN SYSTEM
   "Pure Obsidian" - BlackRock meets Sovereign Tech
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* DESIGN TOKENS */
:root {
  /* Backgrounds - pure obsidian, zero green tint */
  --bg-primary:    #080808;
  --bg-secondary:  #0e0e0e;
  --bg-card:       #141414;
  --bg-elevated:   #1c1c1c;

  /* Gold - sole warm accent */
  --gold:          #c9a84c;
  --gold-light:    #d9bc6a;
  --gold-dim:      #8a6d2e;

  /* Platinum / silver - secondary elements */
  --platinum:      #9ca3af;
  --platinum-dim:  #4b5563;
  --platinum-bright: #d1d5db;

  /* Legacy verde aliases mapped to neutral (no green) */
  --verde:         #3a3a3a;
  --verde-light:   #9ca3af;
  --verde-dim:     #282828;

  /* Text */
  --text-primary:  #f5f5f5;
  --text-secondary:#a8a8a8;
  --text-muted:    #555555;

  /* Borders - neutral charcoal */
  --border:        #1f1f1f;
  --border-light:  #2a2a2a;

  /* Focus */
  --focus:         #c9a84c;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;
  --sp-4xl: 128px;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1240px;
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  0.22s;
}

/* BASE */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.serif { font-family: var(--font-serif); }
.mono  { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.688rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--sp-md);
}

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

/* LAYOUT */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

section {
  position: relative;
  z-index: 1;
}

.section-pad { padding: var(--sp-4xl) 0; }
.section-alt  { background-color: var(--bg-secondary); }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--dur) var(--ease);
}

.nav.scrolled { padding: 14px 60px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.nav-logo-verde {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav-logo-compute {
  font-family: var(--font-sans);
  font-size: 0.45rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 5px 8px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 100px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #080808;
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.28);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gold);
  color: #080808;
  padding: 14px 32px;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 32px;
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--platinum-dim);
}

/* DIVIDERS */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider-gold {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: var(--sp-lg) 0;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-xl);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--platinum-dim);
  transform: translateY(-2px);
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.688rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 12px;
}

.badge-verde {
  color: var(--platinum);
  border-color: var(--platinum-dim);
  background: rgba(156, 163, 175, 0.06);
}

.badge-gold {
  color: var(--gold);
  border-color: rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.06);
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--sp-2xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
  margin-top: var(--sp-md);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer-bottom a:hover { color: var(--text-secondary); }

.footer-legal {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.55;
  line-height: 1.6;
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--sp-xl);
}

/* FORMS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.form-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 12px 16px;
  transition: border-color var(--dur) var(--ease);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select { appearance: none; cursor: pointer; }

/* TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table td:first-child { color: var(--text-primary); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-elevated); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
}

.animate-up { animation: fadeUp 0.6s var(--ease) forwards; opacity: 0; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* STAR BULLET */
.star { color: var(--gold); margin-right: 8px; font-size: 0.875rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-xl); }
  .nav { padding: 18px 32px; }
  .nav.scrolled { padding: 12px 32px; }
  .nav-links { gap: var(--sp-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}

@media (max-width: 768px) {
  :root { --sp-4xl: 80px; }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .container { padding: 0 var(--sp-md); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-bottom { flex-direction: column; gap: var(--sp-md); text-align: center; }
}

/* PAGE OFFSET */
.page-top { padding-top: 80px; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  max-width: 520px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cookie-banner.hidden { display: none; }

.cookie-ok {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}

.cookie-ok:hover {
  border-color: var(--platinum-dim);
  color: var(--text-primary);
}

/* ── PAGE TRANSITIONS ──────────────────────────────────────────
   Smooth 250ms fade-in on every page load.
   Navigation links use .page-exit for outgoing animation.
──────────────────────────────────────────────────────────────── */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: page-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── COUNT-UP STATS ────────────────────────────────────────────
   .stat-value elements get animated when .counting class added by JS
──────────────────────────────────────────────────────────────── */
.stat-value {
  transition: opacity 0.3s ease;
}
.stat-value.counting {
  opacity: 0.6;
}

/* ── PRINT STYLESHEET ──────────────────────────────────────────
   Board meeting ready — clean black & white print output
──────────────────────────────────────────────────────────────── */
@media print {
  * { animation: none !important; transition: none !important; }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  .nav, .cookie-banner, .final-cta, footer { display: none !important; }

  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  p, li       { color: #222 !important; }

  .stat-value {
    color: #000 !important;
    font-size: 18pt;
  }

  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }

  .container { max-width: 100%; padding: 0; }

  section { page-break-inside: avoid; }
}

/* ══════════════════════════════════════════════════════════════
   CINEMATIC HERO SYSTEM — v1
   Used by: infrastructure, services, standards, company
══════════════════════════════════════════════════════════════ */

.cin-hero {
  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 560px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-primary);
}

.cin-hero__left {
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.cin-hero__text-wrap { padding: 0 48px; max-width: 540px; }

.cin-hero__divider {
  position: absolute; top: 0; bottom: 0; left: 44%;
  width: 1px; background: var(--border); z-index: 3;
}

.cin-hero__right { position: relative; overflow: hidden; }

/* 3-image mosaic (infrastructure) */
.cin-mosaic-3 {
  display: grid;
  grid-template-rows: 60% 40%;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  height: 100%;
}
.cin-card--top { grid-column: 1 / -1; grid-row: 1; }
.cin-card--bl  { grid-column: 1; grid-row: 2; }
.cin-card--br  { grid-column: 2; grid-row: 2; }

/* 2-image vertical stack (services) */
.cin-mosaic-2v {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  height: 100%;
}

/* Card base */
.cin-card { position: relative; overflow: hidden; }

.cin-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.72) contrast(1.08) saturate(0.9);
  transition: filter 0.5s ease;
  animation: cinKenBurns 14s ease-in-out infinite alternate;
  will-change: transform;
}
.cin-card:hover img { filter: brightness(0.88) contrast(1.1) saturate(1.0); }
.cin-card:nth-child(2) img { animation-direction: alternate-reverse; }
.cin-card:nth-child(3) img { animation-delay: -4s; }

@keyframes cinKenBurns {
  0%   { transform: scale(1.0) translate(0%, 0%); }
  100% { transform: scale(1.07) translate(-1.5%, -1%); }
}

/* Stagger reveal per card */
.cin-card { animation: cinReveal 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.cin-card:nth-child(1) { animation-delay: 0.05s; }
.cin-card:nth-child(2) { animation-delay: 0.22s; }
.cin-card:nth-child(3) { animation-delay: 0.38s; }

@keyframes cinReveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0% 0 0); }
}

/* Overlay */
.cin-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 60%, transparent 100%);
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(4px); transition: transform 0.3s ease;
}
.cin-card:hover .cin-card__overlay { transform: translateY(0); }
.cin-card__tag {
  font-family: var(--font-mono); font-size: 0.5rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.cin-card__title {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-primary); letter-spacing: -0.01em; line-height: 1.35;
}

/* Text stagger */
.cin-stagger-1 { animation: cinTextUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.00s both; }
.cin-stagger-2 { animation: cinTextUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.12s both; }
.cin-stagger-3 { animation: cinTextUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.24s both; }
@keyframes cinTextUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panoramic variant (standards) */
.cin-hero--panoramic {
  grid-template-columns: 1fr; min-height: auto;
  display: flex; flex-direction: column;
}
.cin-hero__center { display: flex; justify-content: center; padding: 100px 24px 60px; }
.cin-hero__text-wrap--center { text-align: center; max-width: 720px; padding: 0; }
.cin-hero__text-wrap--center .breadcrumb { justify-content: center; }
.cin-panorama {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--border); height: 240px; position: relative;
}
.cin-pan-card { position: relative; overflow: hidden; }
.cin-pan-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7) contrast(1.1) saturate(0.85);
  animation: cinKenBurns 16s ease-in-out infinite alternate;
  transition: filter 0.5s ease;
}
.cin-pan-card:hover img { filter: brightness(0.85) contrast(1.1); }
.cin-pan-rule {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); z-index: 2;
}
.cin-card__overlay--side { padding: 12px 16px 10px; }

/* Full-bleed variant (company) */
.cin-hero--fullbleed {
  grid-template-columns: 1fr; min-height: 520px;
  position: relative; border-bottom: 1px solid var(--border);
}
.cin-fb-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.cin-fb-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: brightness(0.55) contrast(1.1) saturate(0.8);
  animation: cinKenBurns 18s ease-in-out infinite alternate;
}
.cin-fb-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,10,0.95) 0%, rgba(8,8,10,0.55) 45%, rgba(8,8,10,0.1) 100%),
    linear-gradient(to top,   rgba(8,8,10,0.7)  0%, transparent 40%);
}
.cin-fb-panel {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 56px 80px; max-width: 640px; min-height: 520px;
}
.cin-fb-watermark {
  position: absolute; bottom: 20px; right: 24px;
  font-family: var(--font-mono); font-size: 0.5rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .cin-hero { grid-template-columns: 1fr; min-height: auto; }
  .cin-hero__left { padding: 100px 0 48px; border-right: none; border-bottom: 1px solid var(--border); }
  .cin-hero__text-wrap { padding: 0 24px; max-width: 100%; }
  .cin-hero__divider { display: none; }
  .cin-hero__right { min-height: 280px; }
  .cin-mosaic-3, .cin-mosaic-2v { height: 280px; }
  .cin-fb-panel { padding: 100px 24px 64px; max-width: 100%; }
  .cin-panorama { height: 200px; }
}
