/* ═══════════════════════════════════════
   FINOX 2.0 — MAIN STYLESHEET
   ═══════════════════════════════════════ */

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

:root {
  --black:      #080807;
  --black2:     #0F0F0E;
  --surface:    #111110;
  --surface2:   #161614;
  --white:      #F2EFE8;
  --white-dim:  rgba(242,239,232,0.12);
  --gold:       #C9A96E;
  --gold-dim:   #7D6540;
  --gold-pale:  rgba(201,169,110,0.12);
  --border:     rgba(201,169,110,0.14);
  --text-muted: #5A5248;
  --text-dim:   #807870;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --mono:       'DM Mono', monospace;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CURSOR ─── */
.cursor {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s;
}
.cursor-ring {
  position: fixed;
  width: 30px; height: 30px;
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body:not(:hover) .cursor,
body:not(:hover) .cursor-ring { opacity: 0; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(8,8,7,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 56px 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(201,169,110,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 20% 80%, rgba(201,169,110,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* WORDMARK */
.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  margin-bottom: 64px;
}
.letter {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(72px, 13vw, 180px);
  color: var(--white-dim);
  user-select: none;
  line-height: 1;
  letter-spacing: 0.04em;
}
.fox-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 13vw, 180px);
  height: clamp(72px, 13vw, 180px);
  flex-shrink: 0;
}

/* Hero content */
.hero-bottom {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.hero-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.85;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 56px;
  justify-content: center;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 200;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.scroll-text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out 1.6s infinite;
}

/* ─── BUTTONS ─── */
.btn-primary {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 36px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.22s, color 0.22s;
}
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-ghost {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 36px;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.22s, color 0.22s;
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--white); }

/* ─── LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}
.section-black { background: var(--black); }
.section-dark  { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section { padding: 120px 0; }

/* ─── SECTION LABELS & HEADINGS ─── */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.section-label::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold-dim);
}
.section-label.centered {
  justify-content: center;
}
.section-label.centered::after { display: none; }

.section-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 200;
  line-height: 1.08;
  color: var(--white);
}
.section-heading em { font-style: italic; color: var(--gold); }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}
.about-right p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.about-right p strong { color: var(--white); font-weight: 400; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar {
  padding: 36px 28px;
  background: var(--black);
  transition: background 0.3s;
}
.pillar:hover { background: var(--surface2); }
.pillar-num {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 10px;
}
.pillar-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── SERVICES ─── */
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.services-intro {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.85;
}

.services-list { border-top: 1px solid var(--border); }
.service-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: padding 0.3s;
}
.service-item:hover { padding-left: 12px; }
.service-item:hover .service-name { color: var(--gold); }
.service-item:hover .service-arrow { opacity: 1; transform: translateX(6px); }

.service-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}
.service-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 200;
  color: var(--white);
  transition: color 0.2s;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 4px 10px;
}
.service-arrow {
  color: var(--gold);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

/* ─── PARTNERS ─── */
.partners-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.partners-note {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.85;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.partner-card {
  background: var(--black);
  padding: 38px 32px;
  transition: background 0.3s;
}
.partner-card:hover { background: var(--surface2); }
.partner-category {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.partner-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 10px;
}
.partner-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── TEAM ─── */
.team-heading { margin-bottom: 72px; }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.team-card {
  background: var(--black);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.team-card:hover::before { opacity: 1; }
.team-card:hover { background: var(--surface2); }
.team-role {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.team-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 200;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}
.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 28px;
}
.credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.credentials li {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.credentials li::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

/* ─── CTA ─── */
.cta-container { text-align: center; }
.cta-heading {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 200;
  line-height: 1;
  color: var(--white);
  margin-bottom: 24px;
}
.cta-heading em { font-style: italic; color: var(--gold); }
.cta-sub {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.85;
  max-width: 480px;
  margin: 0 auto 48px;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.contact-details {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}
.contact-item {
  flex: 1;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.contact-item:last-child { border-right: none; }
.contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-val {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 44px 56px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }
.footer-legal {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

.reveal-hero       { animation: fadeUp 0.9s 0.2s both; }
.reveal-hero-slow  { animation: fadeUp 0.9s 0.5s both; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.23,1,0.32,1), transform 0.75s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    inset: 0;
    background: rgba(8,8,7,0.97);
    align-items: center;
    justify-content: center;
    z-index: 199;
  }
  .nav-links.open a { font-size: 16px; letter-spacing: 0.2em; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .container { padding: 0 28px; }
  section { padding: 80px 0; }
  .hero { padding: 100px 28px 60px; }
  .about-grid,
  .services-header,
  .partners-header,
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 32px; }
  .contact-details { flex-direction: column; }
  .contact-item { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 36px 1fr; }
  .service-tags, .service-arrow { display: none; }
  .wordmark { gap: 0; }
  .letter { font-size: clamp(44px, 13vw, 80px); }
  .fox-o { width: clamp(44px, 13vw, 80px); height: clamp(44px, 13vw, 80px); }
}
