@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --black: #141915;
  --black-2: #181f19;
  --black-3: #202820;
  --surface: #222a23;
  --surface-2: #2b342c;
  --green: #b89558;
  --green-dim: #8f7650;
  --green-glow: rgba(184, 149, 88, 0.16);
  --blue: #6f7b67;
  --blue-light: #9da18d;
  --blue-glow: rgba(111, 123, 103, 0.16);
  --text: #f4f0e8;
  --text-muted: #b4ad9f;
  --border: rgba(244, 240, 232, 0.1);
  --border-accent: rgba(184, 149, 88, 0.32);
  --shadow-soft: 0 18px 48px rgba(7, 10, 8, 0.22);
  --shadow-deep: 0 28px 80px rgba(5, 8, 6, 0.34);
  --radius: 10px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at top, rgba(184, 149, 88, 0.08), transparent 20%), linear-gradient(180deg, #141915 0%, #181f19 55%, #141915 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

code, .mono { font-family: 'Manrope', sans-serif; }

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

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

/* ── SUBTLE ATMOSPHERE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 149, 88, 0.05), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(111, 123, 103, 0.06), transparent 24%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 25, 21, 0.86);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo-text span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.btn-primary {
  background: var(--green);
  color: #1a1711;
  box-shadow: 0 16px 28px rgba(184, 149, 88, 0.18);
}
.btn-primary:hover {
  background: #c7a66a;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(184, 149, 88, 0.24);
}

.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn-login {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--border-accent);
  font-size: 12px;
  padding: 9px 16px;
}
.btn-login:hover {
  background: rgba(184, 149, 88, 0.08);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(20, 25, 21, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 5%;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  font-family: 'Manrope', sans-serif;
}
.section-label::before {
  content: '>';
  color: var(--green);
}

/* ── SECTION BASE ── */
section {
  padding: 96px 5%;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 62ch;
  margin: 0 auto;
}

.page-hero {
  padding: 130px 5% 76px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at top right, rgba(184, 149, 88, 0.09), transparent 32%), linear-gradient(180deg, var(--black-2) 0%, var(--black) 100%);
}

.page-hero-bg,
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(184,149,88,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(184,149,88,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 20%, black 30%, transparent 100%);
  pointer-events: none;
}

.page-hero-content,
.hero-layout {
  position: relative;
  z-index: 2;
}

.page-hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.hero-copy p {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 50px);
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.page-hero p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 56ch;
  margin: 0 auto;
}

.hero-note {
  background: rgba(8, 20, 8, 0.78);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
}

.hero-note h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.hero-note p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-note ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-note li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-note li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.content-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.reading-copy p,
.content-narrow p {
  max-width: 64ch;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.panel-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-deep);
}

.text-link {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.text-link:hover {
  color: var(--text);
}

.text-center {
  text-align: center;
}

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

.contain-image {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: contain;
}

.microcopy-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 24px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-heading {
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 800;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.85;
}

.btn-wide {
  font-size: 13px;
  padding: 12px 28px;
}

.btn-compact {
  font-size: 11px;
  padding: 7px 14px;
}

.portal-page-hidden {
  display: none;
  align-items: flex-start;
  padding-top: 90px;
}

.contact-method-static {
  cursor: default;
}

.project-muted-inline {
  margin-bottom: 4px;
}

.progress-empty {
  width: 0%;
}

.matrix-opacity-soft {
  opacity: 0.22;
}

.matrix-opacity-medium {
  opacity: 0.4;
}

.glow-center-lg {
  width: 400px;
  height: 400px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.04;
}

.glow-center-md {
  width: 300px;
  height: 300px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.06;
}

.glow-hero-services {
  width: 420px;
  height: 420px;
  top: -100px;
  right: -120px;
  opacity: 0.05;
}

.glow-login-left {
  width: 400px;
  height: 400px;
  top: 10%;
  left: -100px;
  opacity: 0.04;
}

.glow-login-right {
  width: 350px;
  height: 350px;
  bottom: 0;
  right: -80px;
  opacity: 0.05;
}

.cta-panel {
  background: linear-gradient(135deg, rgba(34,42,35,0.98) 0%, rgba(24,31,25,0.98) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 48px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.cta-panel h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 800;
}

.cta-panel p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.85;
}

.process-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-soft);
}

.process-band h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  text-align: center;
}

.process-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.process-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.process-chip strong {
  color: var(--green);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.microcopy {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.value-card,
.team-card,
.case-card,
.contact-method,
.contact-form-wrap,
.portal-card,
.portal-projects,
.proof-item,
.meta-card,
.fit-card,
.process-card,
.consult-panel,
.hero-note {
  box-shadow: var(--shadow-soft);
}

/* ── PLACEHOLDER IMAGE ── */
.placeholder-img {
  background: var(--surface-2);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.placeholder-img svg { opacity: 0.4; }

/* ── FOOTER ── */
footer {
  position: relative;
  overflow: hidden;
  background: #000;
  border-top: 1px solid var(--border);
  padding: 48px 5% 24px;
}

.footer-matrix {
  opacity: 0.9;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.04em;
}

/* ── GLOW ACCENTS ── */
.glow-green {
  position: absolute;
  border-radius: 50%;
  background: var(--green);
  filter: blur(90px);
  opacity: 0.07;
  pointer-events: none;
}
.glow-blue {
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(110px);
  opacity: 0.08;
  pointer-events: none;
}

/* ── TAG / BADGE ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tag.green { background: var(--green-glow); border-color: var(--border-accent); color: var(--green); }
.tag.blue { background: rgba(111, 123, 103, 0.12); border-color: rgba(111, 123, 103, 0.28); color: var(--blue-light); }

/* ── MATRIX RAIN ── */
.matrix-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.matrix-rain-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.75;
}
.matrix-rain canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.32;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse-border {
  0%, 100% { border-color: var(--border-accent); }
  50% { border-color: var(--green); box-shadow: 0 0 0 4px rgba(184, 149, 88, 0.08); }
}

.animate-up { animation: fadeUp 0.7s ease forwards; }
.animate-in { animation: fadeIn 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 5%; }
  .hero-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  section { padding: 60px 5%; }
  .process-band { padding: 24px; }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero-actions .btn { justify-content: center; }
}
