/* =========================================================
   Lucent Legal Advisors — White & Gold, high-end, minimalist
   ========================================================= */

:root {
  --gold:        #c9a24b;
  --gold-soft:   #e6cf94;
  --gold-deep:   #a6802f;
  --ink:         #14130f;   /* near-black for dark sections */
  --ink-soft:    #26241d;
  --white:       #ffffff;
  --cream:       #faf8f3;
  --cream-2:     #f3efe6;
  --line:        rgba(20, 19, 15, 0.10);
  --line-light:  rgba(255, 255, 255, 0.16);
  --text:        #2b2a24;
  --text-muted:  #6a675c;
  --shadow:      0 30px 80px -40px rgba(30, 26, 12, 0.35);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #fff; }

.container { width: min(1180px, 90vw); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase;
  font-weight: 500; color: var(--gold-deep); margin-bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.8rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow--light { color: var(--gold-soft); }

.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08;
  letter-spacing: -0.01em; color: #1c1b16;
}
.section__title em { font-style: italic; color: var(--gold-deep); }
.section__title--light { color: #fff; }
.section__title--light em { color: var(--gold-soft); }

.section__text {
  font-size: 1.05rem; color: var(--text-muted); max-width: 54ch;
  margin-top: 1.4rem;
}
.section__text--light { color: rgba(255,255,255,0.66); }

.section { padding: clamp(5rem, 11vw, 9.5rem) 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: 3.5rem; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 1.05rem 2.2rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: var(--pad); font-family: var(--sans); font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  position: relative; overflow: hidden; transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--gold { background: linear-gradient(120deg, var(--gold), var(--gold-deep)); color: #fff; box-shadow: 0 16px 40px -18px rgba(166,128,47,.7); }
.btn--gold::after { background: #fff; }
.btn--gold:hover { color: var(--gold-deep); }
.btn--gold:hover::after { transform: translateY(0); }

.btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost::after { background: #fff; }
.btn--ghost:hover { color: var(--ink); border-color: #fff; }
.btn--ghost:hover::after { transform: translateY(0); }

.btn--dark { background: var(--ink); color: #fff; margin-top: 2.2rem; }
.btn--dark::after { background: linear-gradient(120deg, var(--gold), var(--gold-deep)); }
.btn--dark:hover { color: #fff; }
.btn--dark:hover::after { transform: translateY(0); }

.btn--full { width: 100%; margin-top: 0.5rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--cream);
  display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.preloader__letter {
  font-family: var(--serif); font-size: 3.4rem; color: var(--gold-deep);
  letter-spacing: 0.1em; animation: fadeUp .9s var(--ease) both;
}
.preloader__line { width: 0; height: 1px; background: var(--gold); animation: lineGrow 1.4s var(--ease) .2s forwards; }
@keyframes lineGrow { to { width: 120px; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-deep));
  z-index: 999; transition: width .1s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  transition: background .5s var(--ease), backdrop-filter .5s, box-shadow .5s, padding .5s;
  padding: 1.6rem 0;
}
.nav.is-scrolled {
  background: rgba(250, 248, 243, 0.82); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); padding: 0.9rem 0;
}
.nav__inner { width: min(1180px, 90vw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }

.nav__brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.nav__mark { height: 42px; width: auto; transition: height .5s var(--ease); }
.nav.is-scrolled .nav__mark { height: 34px; }

.nav__logo-text {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.16em; font-weight: 600;
  color: #1c1b16; display: flex; flex-direction: column; line-height: 1;
}
.nav__logo-thin { font-family: var(--sans); font-size: 0.52rem; letter-spacing: 0.44em; font-weight: 400; color: var(--gold-deep); margin-top: 4px; }
.hero-active .nav:not(.is-scrolled) .nav__logo-text { color: #fff; }
.hero-active .nav:not(.is-scrolled) .nav__logo-thin { color: var(--gold-soft); }

.nav__links { display: flex; align-items: center; gap: 2.4rem; }
.nav__link { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); position: relative; padding: 4px 0; transition: color .3s; }
.hero-active .nav:not(.is-scrolled) .nav__link { color: rgba(255,255,255,0.82); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .4s var(--ease); }
.nav__link:hover { color: var(--gold-deep); }
.hero-active .nav:not(.is-scrolled) .nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  padding: 0.7rem 1.5rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-deep);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav__cta:hover { background: var(--gold); color: #fff; }
.hero-active .nav:not(.is-scrolled) .nav__cta { color: #fff; border-color: var(--gold-soft); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: #1c1b16; transition: transform .4s var(--ease), opacity .3s; }
.hero-active .nav:not(.is-scrolled) .nav__toggle span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--ink);
  padding: 8.5rem 0 7rem;
}
.hero__video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.hero__fallback { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 120% at 70% 20%, #2a281f 0%, #14130f 55%, #0c0b08 100%); }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; mix-blend-mode: screen; }
.hero__orb--1 { width: 46vw; height: 46vw; top: -10%; right: -6%; background: radial-gradient(circle, rgba(201,162,75,.55), transparent 65%); animation: drift1 18s ease-in-out infinite; }
.hero__orb--2 { width: 38vw; height: 38vw; bottom: -14%; left: -8%; background: radial-gradient(circle, rgba(230,207,148,.32), transparent 65%); animation: drift2 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5%,6%) scale(1.12)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6%,-5%) scale(1.15)} }

.hero__grain { position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__veil { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(10,9,7,.55) 0%, rgba(10,9,7,.25) 40%, rgba(10,9,7,.7) 100%); }

.hero__content { position: relative; z-index: 3; width: min(1180px, 90vw); margin-inline: auto; max-width: 1180px; }
.hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; margin-bottom: 2.2rem; }

.hero__title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(1.75rem, 5.6vw, 4.6rem); line-height: 1.12; margin-bottom: 2.4rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; }
.hero__title .line__inner { white-space: nowrap; }
.hero__title .line__inner { display: block; transform: translateY(110%); animation: heroLine 1s var(--ease) forwards; }
.hero__title .line:nth-child(1) .line__inner { animation-delay: .5s; }
.hero__title .line:nth-child(2) .line__inner { animation-delay: .68s; }
.line__inner--gold { color: var(--gold-soft); font-style: italic; }
@keyframes heroLine { to { transform: translateY(0); } }

.hero__lead { max-width: 54ch; color: rgba(255,255,255,0.74); font-size: 1.08rem; line-height: 1.75; margin-bottom: 3rem; }
.hero__actions { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: rgba(255,255,255,.6); }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.7), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background:var(--gold-soft); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%{top:-50%} 100%{top:100%} }
.hero__scroll-text { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { position: relative; }
.about__card {
  aspect-ratio: 4/5; border-radius: 6px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #1c1b16, #2a281f 60%, #14130f);
  display: grid; place-content: center; text-align: center; box-shadow: var(--shadow);
  border: 1px solid rgba(201,162,75,.28);
}
.about__card::before { content:""; position:absolute; inset:14px; border:1px solid rgba(201,162,75,.35); border-radius: 3px; pointer-events:none; }
.about__monogram { font-family: var(--serif); font-size: clamp(3.5rem,8vw,5.5rem); color: var(--gold-soft); letter-spacing: .04em; }
.about__card-label { display:block; margin-top:.6rem; font-size:.7rem; letter-spacing:.4em; text-transform:uppercase; color: rgba(255,255,255,.55); }
.about__badge {
  position: absolute; bottom: -26px; right: -18px; background: #fff; border-radius: 4px;
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--line);
}
.about__badge-num { display:block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); }
.about__badge-text { font-size:.62rem; letter-spacing:.3em; text-transform:uppercase; color: var(--text-muted); }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 2.6rem 2rem 2.4rem; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.service::before { content:""; position:absolute; left:0; top:0; height:100%; width:2px; background: linear-gradient(var(--gold-soft), var(--gold-deep)); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleY(1); }
.service__num { font-family: var(--serif); font-size: .95rem; color: var(--gold-deep); letter-spacing: .1em; }
.service__icon { width: 52px; height: 52px; margin: 1.4rem 0 1.6rem; color: var(--gold-deep); }
.service__icon svg { width: 100%; height: 100%; }
.service__title { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color:#1c1b16; margin-bottom: .9rem; }
.service__text { font-size: .98rem; color: var(--text-muted); }

/* ---------- Why ---------- */
.why { background: var(--ink); color: #fff; overflow: hidden; }
.why__glow { position:absolute; top:-30%; right:-10%; width:50vw; height:50vw; border-radius:50%; background: radial-gradient(circle, rgba(201,162,75,.22), transparent 65%); filter: blur(40px); pointer-events:none; }
.why__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem,6vw,5rem); align-items: center; position: relative; z-index: 1; }
.why__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: 6px; overflow: hidden; }
.stat { background: var(--ink); padding: 2.2rem 1.6rem; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem,5vw,3.4rem); color: var(--gold-soft); }
.stat__sym { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft); }
.stat__label { display:block; margin-top:.5rem; font-size:.66rem; letter-spacing:.28em; text-transform:uppercase; color: rgba(255,255,255,.5); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
.contact__meta { list-style: none; margin-top: 2.4rem; display: grid; gap: 1rem; }
.contact__meta li { display:flex; flex-direction:column; padding-bottom:1rem; border-bottom:1px solid var(--line); font-size:1rem; color:#1c1b16; }
.contact__meta span { font-size:.66rem; letter-spacing:.28em; text-transform:uppercase; color: var(--gold-deep); margin-bottom:.3rem; }
.contact__email { color:#1c1b16; transition: color .3s; }
.contact__email:hover { color: var(--gold-deep); }

.contact__form { background:#fff; border:1px solid var(--line); border-radius:8px; padding: clamp(1.8rem,4vw,2.8rem); box-shadow: var(--shadow); }
.field { position: relative; margin-bottom: 1.5rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color:#1c1b16; font-weight: 300;
  padding: 1.1rem 0 .6rem; background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none;
  transition: border-color .4s;
}
.field textarea { resize: vertical; }
.field label {
  position: absolute; left: 0; top: 1.1rem; color: var(--text-muted); font-size: 1rem;
  pointer-events: none; transition: transform .35s var(--ease), color .35s, font-size .35s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.25rem); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
}
.contact__note { margin-top: 1rem; font-size: .85rem; min-height: 1.2em; text-align: center; }
.contact__note.is-ok { color: var(--gold-deep); }
.contact__note.is-err { color: #b4462f; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 3.5rem 0 2.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.footer__brand .nav__logo-text { color:#fff; }
.footer__lockup { display: inline-flex; align-items: center; gap: .8rem; }
.footer__mark { height: 56px; width: auto; }
.footer__brand p { margin-top:1rem; font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.05rem; }
.footer__nav { display:flex; gap:1.8rem; justify-content:flex-end; flex-wrap:wrap; }
.footer__nav a { font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; transition: color .3s; }
.footer__nav a:hover { color: var(--gold-soft); }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid var(--line-light); padding-top:1.6rem; margin-top:1rem; font-size:.78rem; letter-spacing:.05em; }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-up, .reveal-left { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal { transform: translateY(24px); }
.reveal-up { transform: translateY(46px); }
.reveal-left { transform: translateX(-46px); }
.is-visible { opacity: 1 !important; transform: none !important; }
.services__grid .service:nth-child(2) { transition-delay: .12s; }
.services__grid .service:nth-child(3) { transition-delay: .24s; }
.why__stats .stat:nth-child(2){transition-delay:.1s}.why__stats .stat:nth-child(3){transition-delay:.2s}.why__stats .stat:nth-child(4){transition-delay:.3s}

@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform:none;} }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); height: 100svh;
    background: var(--ink); flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.8rem; padding: 3rem; transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link, .hero-active .nav:not(.is-scrolled) .nav__link { color: rgba(255,255,255,.85); font-size: 1rem; }
  .nav__cta { color:#fff; border-color: var(--gold-soft); }
  .nav__toggle { display: flex; z-index: 950; }
  .nav__toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg);}
  .nav__toggle.is-open span:nth-child(2){ opacity:0;}
  .nav__toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg);}
  .hero-active .nav:not(.is-scrolled) .nav__toggle.is-open span { background:#fff; }

  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 360px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__nav { justify-content: center; }
  .footer__brand .nav__logo-text { align-items: center; }
}

@media (max-width: 520px) {
  .about__card { aspect-ratio: 3/4; }
  .why__stats { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1; }
}

/* Short viewports: prevent the scroll cue from crowding the buttons */
@media (max-height: 760px) {
  .hero { padding: 7rem 0 5rem; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-up, .reveal-left { opacity: 1; transform: none; }
  .hero__title .line__inner { transform: none; }
}
