/* ═══════════════════════════════════════════════════════
   CORVUS LEGAL & ADVISORY — styles.css
   Palette · Deep Navy / Gold / Ivory
   ═══════════════════════════════════════════════════════ */

:root {
  --navy: #0E1A2E;
  --navy-mid: #1C2B4A;
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --ivory: #F5F0E8;
  --white: #FFFFFF;
  --dark: #1A1A1A;
  --mid: #5A6A7A;
  --light: #8A9BB0;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Calibri, Carlito, 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: .01em; margin-bottom: 24px; }
h3 { font-size: 22px; }

/* ── Utilities ─────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 860px; text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
  opacity: .8;
}
.eyebrow--dark { color: #A08430; }

.section { position: relative; padding: 110px 0; overflow: hidden; }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--ivory { background: var(--ivory); color: var(--dark); }
.section--ivory h2, .section--ivory h3 { color: var(--navy); }

.section__sub { max-width: 640px; color: var(--light); margin-bottom: 56px; }
.section--ivory .section__sub { color: var(--mid); }

/* ghost watermark in transition sections */
.section__watermark {
  position: absolute; right: -140px; top: 50%;
  transform: translateY(-50%);
  width: 620px; opacity: .035; pointer-events: none;
}
.section__watermark--center {
  right: 50%; transform: translate(50%, -50%);
  width: 760px; opacity: .04;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700;
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid var(--gold);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 168, 76, .25); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(201, 168, 76, .5); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; }
.btn--xl { padding: 18px 40px; font-size: 16px; }

/* ── Scroll progress ───────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 300; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ═══ NAVIGATION ═════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.scrolled {
  background: rgba(14, 26, 46, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35), 0 1px 0 rgba(201, 168, 76, .18);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 38px; height: 38px; }
.nav__wordmark {
  font-family: var(--serif); font-weight: 700;
  font-size: 21px; letter-spacing: .32em;
  color: var(--white); line-height: 1;
  display: flex; flex-direction: column; gap: 3px;
}
.nav__wordmark small {
  font-family: var(--sans); font-weight: 400;
  font-size: 8.5px; letter-spacing: .42em;
  color: var(--gold);
}

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  position: relative;
  font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ivory);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-light); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__cta { padding: 10px 20px; font-size: 13px; }

.lang-toggle { display: flex; align-items: center; gap: 8px; color: rgba(201, 168, 76, .45); font-size: 13px; }
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: var(--light);
  padding: 4px 2px;
  transition: color .25s var(--ease);
}
.lang-toggle button:hover { color: var(--gold-light); }
.lang-toggle button.active { color: var(--gold); }

.nav__burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
body.menu-open .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 48px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 26px; color: var(--ivory);
  letter-spacing: .06em;
  transition: color .25s var(--ease);
}
.mobile-menu nav a:hover { color: var(--gold); }

/* ═══ HERO ═══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(28, 43, 74, .9) 0%, transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, #0A1424 100%);
  color: var(--ivory);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__watermark {
  position: absolute;
  right: -8%; top: 50%;
  width: min(64vw, 820px);
  transform: translateY(-52%);
  opacity: .07;
  will-change: transform;
}
.hero__glow {
  position: absolute; left: -20%; bottom: -40%;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse, rgba(201, 168, 76, .10) 0%, transparent 65%);
}
@keyframes markDrift {
  0%, 100% { transform: translateY(-52%) scale(1); }
  50% { transform: translateY(-48%) scale(1.03); }
}
.hero__content {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 28px 80px;
  width: 100%;
}
.hero__title {
  font-size: clamp(44px, 6.6vw, 80px);
  letter-spacing: .01em;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero__sub {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--light);
  max-width: 560px;
  margin-bottom: 44px;
}
.hero__ctas { display: flex; gap: 18px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 34px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--light);
  transition: color .25s var(--ease);
}
.hero__scroll:hover { color: var(--gold-light); }
.hero__scroll i {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.55); opacity: .5; }
}

/* ═══ ABOUT ══════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: start;
}
.about__lead p { color: var(--mid); margin-bottom: 20px; max-width: 58ch; }
.about__quote {
  margin-top: 40px;
  padding-left: 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 23px; line-height: 1.45;
  color: var(--navy);
}

.founder {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 42px 38px;
  box-shadow: 0 24px 60px rgba(14, 26, 46, .10);
  overflow: hidden;
}
.founder__photo {
  margin: -42px -38px 28px;
  position: relative;
}
.founder__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.03);
  display: block;
}
.founder__photo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}
.founder__label {
  font-size: 12px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: #A08430; margin-bottom: 14px;
}
.founder__name { color: var(--navy); font-size: 24px; margin-bottom: 4px; }
.founder__role { font-size: 14px; letter-spacing: .06em; color: var(--mid); margin-bottom: 18px; }
.founder__bio { font-size: 16px; color: var(--mid); margin-bottom: 26px; }
.founder__linkedin {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(201, 168, 76, .55);
  padding: 10px 18px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.founder__linkedin:hover { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }

/* ═══ SERVICES — PILLARS ═════════════════════ */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(201, 168, 76, .22);
  border: 1px solid rgba(201, 168, 76, .22);
}
.pillar {
  position: relative;
  background: var(--navy);
  padding: 48px 44px 52px;
  transition: background .35s var(--ease);
  overflow: hidden;
}
.pillar:hover { background: var(--navy-mid); }
.pillar::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.pillar:hover::after { transform: scaleX(1); }

.pillar__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.pillar__icon { width: 48px; height: 48px; stroke: var(--gold); fill: var(--gold); }
.pillar__icon [fill="none"] { fill: none; }
.pillar__icon .fill { fill: var(--gold); }
.pillar__letter {
  font-family: var(--serif); font-size: 64px; font-weight: 700;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 76, .38);
  user-select: none;
  transition: -webkit-text-stroke-color .35s var(--ease);
}
.pillar:hover .pillar__letter { -webkit-text-stroke-color: rgba(226, 201, 126, .8); }
.pillar h3 { margin-bottom: 14px; letter-spacing: .01em; }
.pillar p { font-size: 16px; color: var(--light); max-width: 44ch; }

/* ═══ PROCESS — STEPS ════════════════════════ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 70px;
}
.steps__line {
  position: absolute; top: 26px; left: 0; right: 0;
  height: 1px;
  background: rgba(201, 168, 76, .25);
}
.steps__line span {
  display: block; height: 1px; width: 0;
  background: var(--gold);
  transition: width 1.6s var(--ease) .3s;
}
.steps.lit .steps__line span { width: 100%; }

.step { position: relative; padding-top: 68px; }
.step::before {
  content: ""; position: absolute; top: 19px; left: 0;
  width: 15px; height: 15px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
}
.step::after {
  content: ""; position: absolute; top: 24px; left: 5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.step__num {
  font-family: var(--serif); font-size: 15px;
  letter-spacing: .2em; color: #A08430;
  display: block; margin-bottom: 10px;
}
.step h3 { margin-bottom: 10px; font-size: 21px; }
.step p { font-size: 16px; color: var(--mid); }

/* ═══ MARKETS ════════════════════════════════ */
.map { margin: 20px 0 60px; }
.map__svg { width: 100%; height: auto; display: block; }
.map__arcs path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: .38;
}
.map__svg text {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em;
  fill: var(--light);
  text-anchor: middle;
}
.map__hq text { fill: var(--gold-light); }
.map__hq circle { fill: var(--gold); }
.map__hq .ring {
  fill: none; stroke: var(--gold); stroke-width: 1;
  animation: hqPulse 3s var(--ease) infinite;
  transform-origin: 400px 120px;
}
@keyframes hqPulse {
  0% { transform: scale(1); opacity: .9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.map__node circle { fill: var(--navy); stroke: var(--gold); stroke-width: 1.5; }
.map__minor circle { fill: rgba(201, 168, 76, .5); }
.map__minor text { fill: var(--mid); font-size: 10.5px; }

.markets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201, 168, 76, .2);
  border: 1px solid rgba(201, 168, 76, .2);
}
.market { background: var(--navy); padding: 34px 28px 38px; transition: background .35s var(--ease); }
.market:hover { background: var(--navy-mid); }
.market__tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.market h3 { font-size: 21px; margin-bottom: 12px; }
.market p { font-size: 15px; color: var(--light); }

/* ═══ CONTACT ════════════════════════════════ */
.contact { padding: 150px 0 140px; }
.contact::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1124px, calc(100% - 56px)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, .45), transparent);
}
.contact__title { font-size: clamp(34px, 4.8vw, 54px); }
.contact .section__sub { margin: 0 auto 52px; }
.contact__ctas { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.contact__addr {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--gold-light);
  letter-spacing: .03em;
  border-bottom: 1px solid rgba(201, 168, 76, .45);
  padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact__addr:hover { color: var(--gold); border-color: var(--gold); }

/* ═══ FOOTER ═════════════════════════════════ */
.footer {
  background: #0A1424;
  color: var(--light);
  padding: 64px 0 48px;
  border-top: 1px solid rgba(201, 168, 76, .18);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand .nav__wordmark { font-size: 18px; }
.footer__brand p { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--light); }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--light);
  transition: color .25s var(--ease);
  width: fit-content;
}
.footer__links a:hover { color: var(--gold-light); }
.footer__meta { text-align: right; font-size: 13px; }
.footer__markets { color: var(--gold); letter-spacing: .1em; margin-bottom: 14px; }
.footer__social {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--light);
  margin-bottom: 14px;
  transition: color .25s var(--ease);
}
.footer__social:hover { color: var(--gold-light); }
.footer__legal { color: var(--mid); }
.footer__disclaimer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 168, 76, .12);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mid);
  max-width: 90ch;
}

/* ═══ FLOATING EMAIL CTA ═════════════════════ */
.email-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 180;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(201, 168, 76, .5);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s var(--ease);
  animation: waGlow 3.2s ease-in-out infinite;
}
.email-float.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.email-float:hover { background: var(--gold-light); }
@keyframes waGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(201, 168, 76, .45); }
  50% { box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 12px rgba(201, 168, 76, 0); }
}

/* ═══ REVEAL / I18N ANIMATIONS ═══════════════ */
body.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
body.js .reveal.visible { opacity: 1; transform: none; }

#i18nRoot, .nav, .footer, .mobile-menu { transition: opacity .3s ease; }
body.lang-fading #i18nRoot,
body.lang-fading .footer { opacity: 0; }

/* anchor offset for sticky nav */
section[id] { scroll-margin-top: calc(var(--nav-h) - 6px); }

/* ═══ TOUCH DEVICES ══════════════════════════
   No hover on touch — accents play by themselves,
   all CSS-only (compositor-friendly, no extra JS). */
@media (hover: none) {
  /* slow breathing drift on the hero mark (replaces hover-driven parallax feel) */
  .hero__watermark { animation: markDrift 16s ease-in-out infinite; }

  /* gold underline of each pillar draws itself once the card fades in */
  body.js .pillar.reveal.visible::after {
    transform: scaleX(1);
    transition-delay: .55s;
    transition-duration: .9s;
  }

  /* market tags warm up to light gold as the cards reveal */
  .market__tag { transition: color .9s var(--ease) .6s; }
  body.js .market.reveal.visible .market__tag { color: var(--gold-light); }
}

/* ═══ RESPONSIVE ═════════════════════════════ */
@media (max-width: 1024px) {
  .section { padding: 86px 0; }
  .hero__scroll { display: none; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .founder { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 36px; }
  .steps__line { display: none; }
  .markets__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__meta { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__watermark { right: -40%; width: 130vw; opacity: .05; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 36px 26px 42px; }
  /* vertical connector line that draws itself as the steps reveal */
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps__line {
    display: block;
    left: 7px; right: auto; top: 8px; bottom: 8px;
    width: 1px; height: auto;
  }
  .steps__line span { width: 1px; height: 0; transition: height 1.8s var(--ease) .3s; }
  .steps.lit .steps__line span { width: 1px; height: 100%; }
  .step { padding-top: 0; padding-left: 42px; }
  .step::before { top: 2px; }
  .step::after { top: 7px; }
  .map { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .email-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .lang-toggle { margin-right: 2px; }
}
