/* ============================================================
   Falcon Law Office PLLC — Components
   ============================================================ */

/* ---------- HOME HERO (after the Dribbble reference, in beige) ---------- */
.hero-shell { padding: 12px; }
.hero {
  position: relative;
  min-height: max(640px, min(100svh - 24px, 900px));
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(42% 52% at 50% 38%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #FBF8F2 0%, #F3EBDD 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  padding: 120px clamp(20px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
/* Animated lattice grid (drawn by site.js) */
.lattice {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 42%, #000 35%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 42%, #000 35%, transparent 100%);
}
.hero-top { display: grid; gap: 32px; align-content: start; align-items: center; }
@media (min-width: 1000px) { .hero-top { grid-template-columns: 230px 1fr 430px; } }

/* Glass orb holding the spinning 3D emblem */
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.orb-wrap { display: grid; justify-items: center; gap: 18px; }
.orb {
  position: relative; width: clamp(230px, 27vw, 390px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #FFFFFF 0%, #FAF5EC 48%, #EDE2CF 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 40px rgba(169, 142, 74, 0.12),
    0 50px 90px -40px rgba(140, 116, 56, 0.55),
    0 0 110px rgba(201, 166, 90, 0.22);
  opacity: 0; transform: scale(0.92);
  transition: opacity 1200ms var(--ease-out) 150ms, transform 1400ms var(--ease-out) 150ms;
}
.hero.ready .orb { opacity: 1; transform: none; }
.orb::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from var(--ring), #C9A65A, #FFFFFF 22%, #CBB89B 48%, #FFFFFF 72%, #C9A65A);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 9s linear infinite;
}
.orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(60% 35% at 50% 6%, rgba(255, 255, 255, 0.85), transparent 70%);
}
@keyframes ring { to { --ring: 360deg; } }
.logo3d { position: absolute; inset: 0; display: grid; z-index: 1; }
.logo3d canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 900ms var(--ease); }
.logo3d.is-ready canvas { opacity: 1; }
.orb-label {
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.orb-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 166, 90, 0.18); animation: pulse 2.4s var(--ease) infinite; }
.hero-copy p strong { display: block; margin-top: 10px; font-weight: 500; color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201, 166, 90, 0); } }

/* Curved focus list (the arc of dots in the reference) */
.arc { position: relative; height: 290px; display: none; }
@media (min-width: 1000px) { .arc { display: block; } }
.arc svg { position: absolute; left: 0; top: 0; width: 80px; height: 290px; overflow: visible; }
.arc path { fill: none; stroke: rgba(26, 24, 20, 0.28); stroke-width: 1; stroke-dasharray: 2 5; }
.arc-item {
  position: absolute; display: flex; align-items: center; gap: 12px;
  font-size: 0.86rem; color: var(--ink-soft); text-decoration: none;
  transform: translateY(-50%);
  transition: color var(--dur) var(--ease);
}
.arc-item .node {
  position: relative; width: 13px; height: 13px; border-radius: 50%;
  background: var(--white); border: 1px solid rgba(26, 24, 20, 0.35);
  transition: transform 400ms var(--ease-out), border-color var(--dur);
}
.arc-item .node::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); transform: scale(0);
  transition: transform 400ms var(--ease-out);
}
.arc-item .node::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; transform: scale(0.6);
  transition: opacity 400ms var(--ease), transform 600ms var(--ease-out);
}
.arc-item.active, .arc-item:hover { color: var(--ink); }
.arc-item.active .node::after, .arc-item:hover .node::after { transform: scale(1); }
.arc-item.active .node::before { opacity: 1; transform: scale(1); }
.arc-item .tip {
  font-size: 0.74rem; color: var(--muted); width: 210px; line-height: 1.4;
  position: absolute; left: 25px; top: 100%; margin-top: 4px;
  opacity: 0; transform: translateY(-4px); transition: opacity var(--dur), transform var(--dur);
  pointer-events: none;
}
.arc-item.active .tip { opacity: 1; transform: none; }

.hero-copy { justify-self: end; max-width: 430px; }
.hero-copy h1 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.1; }
.hero-copy p { margin: 20px 0 28px; color: var(--ink-soft); max-width: 46ch; }
.hero-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-copy .actions .textlink { font-size: 0.92rem; }

/* Giant statement type */
.hero-bottom { position: relative; }
.mega {
  font-family: var(--display);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-size: clamp(2.5rem, 8.6vw, 8.2rem);
  color: var(--ink);
}
.mega .line { display: flex; align-items: center; gap: 0.18em; white-space: nowrap; }
.mega .line + .line { justify-content: flex-end; }
.mega .word { display: inline-block; overflow: hidden; padding-bottom: 0.04em; }
.mega .word > span { display: inline-block; transform: translateY(105%); transition: transform 1100ms var(--ease-out); }
.hero.ready .mega .word > span { transform: none; }
.mega .line:nth-child(1) .word:nth-child(1) > span { transition-delay: 120ms; }
.mega .line:nth-child(1) .word:nth-child(2) > span { transition-delay: 220ms; }
.mega .line:nth-child(2) .word:nth-child(1) > span { transition-delay: 320ms; }
.mega .line:nth-child(2) .word:nth-child(2) > span { transition-delay: 420ms; }
.mega .ghost { color: transparent; -webkit-text-stroke: 1px rgba(26, 24, 20, 0.55); }


.hero-caption {
  display: grid; gap: 14px; max-width: 280px; margin-top: 18px;
  font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5;
}
@media (min-width: 1000px) {
  .hero-caption { position: absolute; left: 0; bottom: 0.4em; margin: 0; }
}
.person { display: flex; align-items: center; gap: 16px; }
.person img {
  width: 76px; height: 76px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 3px solid var(--white); box-shadow: 0 12px 26px -14px rgba(26, 24, 20, 0.45);
  transition: transform 500ms var(--ease-out);
}
a.person:hover img { transform: scale(1.06); }
.person .cap-line { display: block; margin-top: 6px; font-style: normal; font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft); }
.hero-caption { max-width: 340px; }
@media (min-width: 1000px) { .hero-caption { bottom: 0.15em; } }
.person b { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.person span { font-size: 0.8rem; color: var(--muted); }

/* Chips replace the arc on small screens */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line-soft); font-size: 0.82rem; text-decoration: none; }
@media (min-width: 1000px) { .hero-chips { display: none; } }
@media (max-width: 999px) {
  .hero { padding-top: 104px; min-height: auto; gap: 48px; }
  .hero-copy { justify-self: start; padding-top: 0; }
  .orb-wrap { order: -1; }
  .mega .line + .line { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .mega { font-size: 13.4vw; }
  .mega .line { flex-wrap: wrap; row-gap: 0; }
  .hero-copy .actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Marquee strip ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding: 22px 0; background: var(--cream); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--display); font-weight: 300; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink-soft); white-space: nowrap; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Affiliated asset management (home) ---------- */
.am { background: var(--white); scroll-margin-top: 80px; }
.am-head { display: grid; gap: 28px; margin-bottom: 56px; }
@media (min-width: 1000px) { .am-head { grid-template-columns: 5fr 6fr; gap: 72px; align-items: end; } }
.am-head h2 { max-width: 18ch; }
.muted-ink-am { color: var(--ink-soft); }
.am-lead { margin: -16px 0 18px; font-size: 1.05rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.am-lead::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.am-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .am-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .am-grid { grid-template-columns: repeat(4, 1fr); } }
.am-card {
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 28px 26px;
  border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), background 400ms var(--ease);
}
.am-card:hover { transform: translateY(-6px); background: var(--white); box-shadow: 0 30px 50px -34px rgba(26, 24, 20, 0.4); }
.am-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 699px) { .am-card { min-height: 0; } .am-k { padding-top: 18px; } }
.am-n { font-family: var(--display); font-weight: 200; font-size: 2.6rem; line-height: 1; color: var(--taupe); }
.am-k { margin-top: auto; padding-top: 28px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); }
.am-card h3 { margin: 8px 0 10px; }
.am-card p { font-size: 0.9rem; color: var(--ink-soft); }
.am-go { position: absolute; top: 24px; right: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background var(--dur), color var(--dur), transform 500ms var(--ease-out); }
.am-go svg { width: 13px; height: 13px; }
.am-card:hover .am-go { background: var(--ink); color: var(--white); transform: rotate(45deg); }
.am-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.am-stats { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.am-stats b { display: block; font-family: var(--display); font-weight: 300; font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; }
.am-stats span { font-size: 0.8rem; color: var(--muted); }
.am-disc { margin-top: 28px; font-size: 0.76rem; line-height: 1.6; color: var(--muted); max-width: 110ch; }

/* ---------- Statement block ---------- */
.statement { font-family: var(--display); font-weight: 300; font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 26ch; }
.statement em { font-family: var(--serif); font-style: italic; }
.statement .dim { color: var(--taupe); }

/* ---------- Services grid (copied from the saved services design) ---------- */
.svc { display: grid; gap: 40px; }
@media (min-width: 1000px) { .svc { grid-template-columns: 4fr 7fr; gap: 56px; } }
.svc-intro { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 1000px) { .svc-intro { position: sticky; top: 120px; align-self: start; min-height: 520px; } .svc-intro .btn-ghost { margin-top: auto; } }
.svc-intro h2 { font-size: clamp(2.6rem, 4.6vw, 3.8rem); }
.svc-intro p { margin: 20px 0 32px; color: var(--ink-soft); max-width: 36ch; }

.svc-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc-card {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  min-height: 300px; color: var(--white); text-decoration: none; background: #2a2620;
  isolation: isolate;
}
.svc-card.tall { min-height: 420px; }
.svc-card.wide { grid-column: 1 / -1; min-height: 280px; }
.svc-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: transform 1100ms var(--ease-out), filter 700ms var(--ease);
}
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 17, 14, 0) 35%, rgba(18, 17, 14, 0.78) 100%);
}
.svc-card:hover img { transform: scale(1.05); filter: grayscale(0.15) sepia(0.12) contrast(1.02) brightness(0.95); }
.svc-card .go {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background var(--dur), color var(--dur), transform 500ms var(--ease-out);
}
.svc-card .go svg { width: 13px; height: 13px; }
.svc-card:hover .go { background: var(--white); color: var(--ink); transform: rotate(45deg); }
.svc-card .txt { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.svc-card h3 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 300; }
.svc-card.small h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.svc-card p { font-size: 0.84rem; color: rgba(255, 255, 255, 0.86); margin-top: 6px; max-width: 42ch; }
.svc-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Benefit explorer (interactive) ---------- */
.explorer { display: grid; gap: 28px; }
@media (min-width: 1000px) { .explorer { grid-template-columns: 5fr 6fr; gap: 64px; align-items: stretch; } }
.explorer-list { list-style: none; border-top: 1px solid var(--line); }
.explorer-list button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 10px;
  padding: 20px 0; border-bottom: 1px solid var(--line); position: relative;
  font-family: var(--display); font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -0.015em; color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.explorer-list button small { font-family: var(--sans); font-size: 0.74rem; color: var(--taupe); letter-spacing: 0.08em; }
.explorer-list button svg { width: 14px; height: 14px; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur), transform var(--dur); }
.explorer-list button .bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--ink); }
.explorer-list button[aria-selected="true"] { color: var(--ink); }
.explorer-list button[aria-selected="true"] svg { opacity: 1; transform: none; }
.explorer-list button[aria-selected="true"] .bar { animation: fillbar var(--cycle, 6s) linear forwards; }
.explorer.paused .explorer-list button[aria-selected="true"] .bar { animation-play-state: paused; }
.explorer-list button:hover { color: var(--ink); }
@keyframes fillbar { to { width: 100%; } }
.explorer-panel { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; background: var(--beige); isolation: isolate; }
.explorer-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transform: scale(1.06); transition: opacity 900ms var(--ease), transform 1600ms var(--ease-out); }
.explorer-panel img.on { opacity: 1; transform: none; }
.explorer-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(251, 248, 243, 0) 30%, rgba(251, 248, 243, 0.9) 78%); }
.explorer-card { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 24px 26px; border-radius: 16px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.9); }
.explorer-card h3 { margin-bottom: 8px; }
.explorer-card p { font-size: 0.95rem; color: var(--ink-soft); }
.explorer-card .fade { animation: fadeup 600ms var(--ease-out); }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 32px 28px 30px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line-soft); overflow: hidden;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(26, 24, 20, 0.35); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--display); font-weight: 200; font-size: 3.4rem; line-height: 1; color: var(--taupe); margin-bottom: 26px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }
.step .line { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out); }
.step.in .line { transform: scaleX(1); }

/* Spotlight cards: a soft light follows the cursor */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 142, 74, 0.12), transparent 60%);
  opacity: 0; transition: opacity 400ms var(--ease);
}
.spot:hover::after { opacity: 1; }

/* ---------- Panels ---------- */
.panel { background: var(--beige); border-radius: 28px; padding: clamp(32px, 5vw, 72px); }
.panel-white { background: var(--white); border: 1px solid var(--line-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 80px);
  background: radial-gradient(80% 120% at 85% 0%, #FFFFFF 0%, #F3ECE1 45%, #E9DECC 100%);
  text-align: center;
}
.cta-band .emblem-wm { position: absolute; right: -40px; bottom: -60px; width: 360px; opacity: 0.07; z-index: -1; }
.cta-band h2 { max-width: 20ch; margin: 0 auto 18px; }
.cta-band p { margin: 0 auto 32px; color: var(--ink-soft); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .fine { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Interior page hero ---------- */
.page-hero { padding: 168px 0 clamp(48px, 7vw, 88px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 22px; max-width: 58ch; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
