/* ==========================================================================
   ONYCHA GROUP v1.3 — Production Stylesheet
   ========================================================================== */

:root {
  --sacred-dark:       #0F0D0B;
  --temple-stone:      #2A2520;
  --incense-charcoal:  #3D352E;
  --resin-teal:        #1A7A6D;
  --resin-teal-hover:  #1f8d7e;
  --burnished-gold:    #C9A84C;
  --amber-smoke:       #B87333;
  --parchment:         #E8DFD1;
  --bone-white:        #F3EDE4;
  --font-primary:   'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  background: var(--sacred-dark);
  color: var(--bone-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.78;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; border: none; background: none; outline: none; }

::selection { background: rgba(26, 122, 109, 0.20); color: var(--bone-white); }
::-moz-selection { background: rgba(26, 122, 109, 0.20); color: var(--bone-white); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 1.5px solid var(--resin-teal); outline-offset: 3px; }

/* --- GRAIN --- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.028; mix-blend-mode: overlay;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px;
}

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: .1s; }
.fade-in[data-delay="2"] { transition-delay: .2s; }
.fade-in[data-delay="3"] { transition-delay: .3s; }
.fade-in[data-delay="4"] { transition-delay: .4s; }
.fade-in[data-delay="5"] { transition-delay: .5s; }
.fade-in[data-delay="6"] { transition-delay: .6s; }
.fade-in[data-delay="7"] { transition-delay: .7s; }

.gold-line { width: 0; height: 1.5px; background: linear-gradient(90deg, var(--burnished-gold), var(--amber-smoke)); margin: 24px 0 40px; transition: width 1.2s var(--ease-out) 0.2s; }
.gold-line.is-visible { width: 60px; }
.gold-line--sm.is-visible { width: 44px; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .gold-line { width: 60px; transition: none; }
  .gold-line--sm { width: 44px; }
  .hero__scroll span { animation: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh;
  background: var(--sacred-dark); overflow: hidden;
}

.hero__banner {
  position: relative; width: 100%; max-width: 820px;
  margin: 0 auto; display: flex; justify-content: center;
}

.hero__banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px; pointer-events: none;
  background: linear-gradient(to top, var(--sacred-dark) 0%, rgba(15,13,11,0.85) 40%, rgba(15,13,11,0) 100%);
}

.hero__banner-img {
  width: 100%; max-width: 820px; height: auto;
  object-fit: contain; display: block;
}

.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px;
  margin-top: clamp(32px, 4vw, 56px);
}

.hero__wordmark {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400; letter-spacing: 0.38em;
  color: var(--bone-white); line-height: 1;
}

.hero__rule {
  width: 60px; height: 1.5px;
  margin: 32px auto 0; background: var(--resin-teal);
}

.hero__tagline {
  margin-top: 28px; font-family: var(--font-primary);
  font-size: clamp(16px, 1.8vw, 20px);
  font-style: italic; font-weight: 400;
  color: var(--burnished-gold); opacity: 0.88; line-height: 1.4;
}

.hero__scroll {
  position: absolute; bottom: clamp(28px, 4vh, 48px);
  left: 50%; transform: translateX(-50%); text-align: center;
}

.hero__scroll span {
  font-family: var(--font-secondary); font-size: 10px;
  font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--incense-charcoal);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } }

/* ==========================================================================
   SHARED SECTION
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(60px, 10vw, 140px) clamp(24px, 6vw, 120px);
}

.section__divider {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; max-width: 700px; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(61,53,46,0.3) 50%, transparent 95%);
}

.section__inner { max-width: 680px; margin: 0 auto; }

.section__label {
  display: block; font-family: var(--font-secondary);
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  color: var(--amber-smoke); text-transform: uppercase;
  line-height: 1; margin-bottom: 28px;
}

.section__headline {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400; line-height: 1.3;
  color: var(--bone-white); margin-bottom: 8px;
}

.section__body {
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400; line-height: 1.78;
  color: var(--bone-white);
}

.section__body + .section__body { margin-top: 24px; }
.section__body--muted { opacity: 0.73; }

/* ==========================================================================
   THE FIRM
   ========================================================================== */
.section--firm { background: var(--sacred-dark); }

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats {
  background: var(--sacred-dark);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 120px);
  border-top: 1px solid var(--incense-charcoal);
  border-bottom: 1px solid var(--incense-charcoal);
}

.stats__grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}

.stats__number {
  font-family: var(--font-primary);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400; color: var(--burnished-gold); line-height: 1.1;
}

.stats__label {
  font-family: var(--font-secondary); font-size: 10px;
  font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber-smoke); margin-top: 10px;
}

/* ==========================================================================
   LEADERSHIP
   ========================================================================== */
.section--leadership { background: var(--sacred-dark); }

.leader__name {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400; color: var(--bone-white);
  line-height: 1.2; margin-bottom: 8px;
}

.leader__title {
  display: block; font-family: var(--font-secondary);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber-smoke); margin-bottom: 4px;
}

.pullquote {
  margin: 48px 0 0; padding: 32px 0 32px 28px;
  border-left: 2px solid var(--resin-teal);
  background: var(--temple-stone); border-radius: 0 4px 4px 0;
}

.pullquote p {
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.4vw, 19px);
  font-style: italic; line-height: 1.72;
  color: var(--parchment); opacity: 0.9;
}

/* ==========================================================================
   THE PARTNERSHIP
   ========================================================================== */
.section--partnership { background: var(--temple-stone); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.section--how { background: var(--sacred-dark); }
.steps { max-width: 680px; margin: 0 auto; }

.step {
  padding: 32px 0;
  border-bottom: 1px solid rgba(61, 53, 46, 0.35);
}
.step:last-child { border-bottom: none; }

.step__number {
  font-family: var(--font-secondary); font-size: 13px;
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--resin-teal); opacity: 0.85; margin-bottom: 14px;
}

.step__title {
  font-family: var(--font-primary);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400; color: var(--parchment);
  line-height: 1.5; margin-bottom: 12px;
}

.step__desc {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 400; line-height: 1.72;
  color: var(--incense-charcoal);
}

/* ==========================================================================
   CAPITAL CORRIDORS
   ========================================================================== */
.section--corridors { background: var(--sacred-dark); }

.corridors__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 680px; margin: 0 auto;
}

.corridor {
  padding: 28px 24px; border: 1px solid var(--incense-charcoal);
  border-radius: 3px; transition: background 0.35s ease, border-color 0.35s ease;
}

.corridor:hover { background: var(--temple-stone); border-color: var(--amber-smoke); }
.corridor:hover .corridor__title { color: var(--burnished-gold); }

.corridor__title {
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400; color: var(--parchment);
  line-height: 1.4; margin-bottom: 10px;
  transition: color 0.35s ease;
}

.corridor__desc {
  font-family: var(--font-primary);
  font-size: clamp(14px, 1vw, 15.5px);
  font-weight: 400; line-height: 1.68; color: var(--incense-charcoal);
}

/* ==========================================================================
   SECTORS (Where We Operate)
   ========================================================================== */
.section--sectors { background: var(--sacred-dark); }

/* ==========================================================================
   CONVICTION
   ========================================================================== */
.section--conviction { background: var(--temple-stone); }

/* ==========================================================================
   CONTACT / FOOTER — Globe background, text left-aligned
   ========================================================================== */
.contact {
  background: var(--sacred-dark);
  padding: 0 0 clamp(32px, 4vw, 56px);
}

.contact__divider {
  width: 80%; max-width: 700px; height: 1px; margin: 0 auto;
  background: linear-gradient(90deg, transparent 5%, rgba(61,53,46,0.3) 50%, transparent 95%);
}

.contact__globe {
  position: relative;
  width: 100%;
  min-height: clamp(380px, 45vw, 540px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.contact__globe-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}

.contact__globe-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--sacred-dark) 0%, rgba(15,13,11,0.85) 30%, rgba(15,13,11,0.3) 60%, transparent 100%),
    linear-gradient(to top, var(--sacred-dark) 0%, transparent 25%),
    linear-gradient(to bottom, var(--sacred-dark) 0%, transparent 15%);
}

.contact__content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 8vw, 140px);
  max-width: 520px;
  text-align: left;
}

.contact__wordmark {
  font-family: var(--font-primary);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 400; letter-spacing: 0.38em;
  color: var(--bone-white); line-height: 1;
}

.contact__rule {
  width: 40px; height: 1.5px; margin: 24px 0 0;
  background: var(--resin-teal);
}

.contact__tagline {
  margin-top: 20px; font-family: var(--font-primary);
  font-size: clamp(15px, 1.4vw, 18px);
  font-style: italic; color: var(--burnished-gold); opacity: 0.88;
}

.contact__gate {
  margin-top: 20px; font-family: var(--font-primary);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400; line-height: 1.65;
  color: var(--parchment); opacity: 0.55;
  max-width: 380px;
}

.contact__gate--secondary {
  margin-top: 16px; opacity: 0.38;
  font-size: clamp(12px, 1vw, 14px);
}

.contact__email {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-primary); font-size: 16px;
  color: var(--parchment); opacity: 0.8;
  border-bottom: 1px solid rgba(232,223,209,0.2);
  padding-bottom: 2px;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.contact__email:hover { opacity: 1; border-bottom-color: rgba(232,223,209,0.4); }

.contact__legal {
  padding: 0 clamp(32px, 8vw, 140px);
  margin-top: 24px;
  font-family: var(--font-secondary);
  font-size: 10px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--incense-charcoal); opacity: 0.55;
  text-align: left;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .hero__banner { max-width: 100%; }
  .hero__wordmark { letter-spacing: 0.28em; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .corridors__grid { grid-template-columns: 1fr; }
  .pullquote { padding-left: 20px; }
  .contact__globe { min-height: 420px; }
  .contact__globe-fade {
    background:
      linear-gradient(to right, var(--sacred-dark) 0%, rgba(15,13,11,0.9) 35%, rgba(15,13,11,0.4) 70%, transparent 100%),
      linear-gradient(to top, var(--sacred-dark) 0%, transparent 20%),
      linear-gradient(to bottom, var(--sacred-dark) 0%, transparent 12%);
  }
  .contact__content { padding: 40px 24px; max-width: 68%; }
}

@media (max-width: 480px) {
  .hero__wordmark { letter-spacing: 0.22em; }
  .stats__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact__globe { min-height: 400px; }
  .contact__content { max-width: 75%; padding: 32px 20px; }
  .contact__globe-fade {
    background:
      linear-gradient(to right, var(--sacred-dark) 0%, rgba(15,13,11,0.94) 45%, rgba(15,13,11,0.55) 78%, transparent 100%),
      linear-gradient(to top, var(--sacred-dark) 0%, transparent 15%),
      linear-gradient(to bottom, var(--sacred-dark) 0%, transparent 10%);
  }
  .contact__legal { padding: 0 20px; }
  .contact__gate { max-width: 100%; }
}
