/* S&T Law Firm — royal, light, simple */
:root {
  --ivory: #faf6ee;
  --cream: #f2ebdb;
  --white: #fffdf8;
  --ink: #1d1a16;
  --muted: #5e584e;
  --royal: #0f3d2f;
  --royal-2: #16503f;
  --royal-ink: #0a2b21;
  --gold: #c9a24a;
  --gold-dk: #a8842e;
  --gold-pale: #ecdfbd;
  --gold-line: rgba(168, 132, 46, .35);
  --shadow: 0 24px 60px rgba(60, 45, 10, .12);
  --shadow-sm: 0 8px 24px rgba(60, 45, 10, .08);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --gutter: clamp(18px, 5vw, 64px);
  --maxw: 1180px;
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23a8842e' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 48h20M76 48h20M48 0v20M48 76v20'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ivory); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; color: var(--royal-ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; }
::selection { background: var(--gold-pale); }
:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.urdu { font-family: var(--urdu); font-size: 1.35rem; color: var(--gold-dk); line-height: 2; text-align: left; }
.urdu-sm { font-size: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.eyebrow::after { content: "◆"; font-size: .55rem; color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .95rem; line-height: 1; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn .ic { width: 18px; height: 18px; }
.btn-royal { background: var(--royal); color: #fff; border-color: var(--royal); }
.btn-royal:hover { background: var(--royal-2); }
.btn-gold { background: var(--gold); color: var(--royal-ink); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--royal-ink); border-color: var(--gold-dk); }
.btn-outline:hover { background: var(--gold-pale); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.textlink { font-weight: 600; color: var(--royal); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* floating whatsapp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--royal); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  border: 1px solid var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .18), 0 14px 34px rgba(10, 43, 33, .35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 26px; height: 26px; color: var(--gold); }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 0 0 6px rgba(201, 162, 74, .22), 0 18px 40px rgba(10, 43, 33, .4); }
.wa-float::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--gold); animation: pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) { .wa-float { padding: 14px; right: 14px; bottom: 14px; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* header */
.top { position: sticky; top: 0; z-index: 900; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 10px var(--gutter); background: rgba(250, 246, 238, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold-line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--royal-ink); }
.brand small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); font-weight: 700; margin-top: 3px; }
.nav { display: flex; justify-content: center; gap: 4px; }
.nav a { padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); border-radius: 999px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--royal-ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .top { grid-template-columns: 1fr auto; }
  .nav, .top-cta { display: none; }
  .burger { display: flex; }
  .top.open .nav, .top.open .top-cta { display: flex; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0; }
  .top.open .nav a { padding: 14px 4px; border-top: 1px solid var(--gold-line); border-radius: 0; }
  .top.open .top-cta { padding: 12px 0 8px; }
  .top.open .top-cta .btn { justify-content: center; }
}

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--cream); background-image: var(--pattern); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .sub { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); background-image: var(--pattern); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250, 246, 238, .2), var(--ivory)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 4px; }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--gold-line); width: fit-content; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--royal-ink); }
.trust svg { width: 18px; height: 18px; color: var(--gold-dk); flex: 0 0 auto; }

.crest { justify-self: center; width: min(100%, 400px); }
.crest-frame { position: relative; background: var(--white); border: 1px solid var(--gold); border-radius: 6px; padding: 30px 26px 26px; box-shadow: var(--shadow); }
.crest-frame::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold-line); border-radius: 3px; pointer-events: none; }
.crest-frame::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: radial-gradient(circle at 50% 38%, rgba(201, 162, 74, .18), transparent 60%); pointer-events: none; }
.crest-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); z-index: 1; }
.crest-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.crest-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.crest-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.crest-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.crest-ring { position: relative; width: min(100%, 270px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.ring-text { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold-dk); font-family: var(--body); font-weight: 700; animation: spin 48s linear infinite; }
.crest-emblem { width: 60%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(168, 132, 46, .25)); }
.crest-name { position: relative; z-index: 1; margin-top: 18px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.crest-name strong { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.05; color: var(--royal-ink); }
.crest-name small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dk); font-weight: 700; }
.crest-rule { display: flex; align-items: center; gap: 8px; color: var(--gold); width: 120px; }
.crest-rule i { flex: 1; height: 1px; background: var(--gold); }
.crest-rule b { font-size: .5rem; }
.crest-name .crest-rule:first-child { margin-bottom: 8px; }
.crest-name .crest-rule:last-child { margin-top: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring-text { animation: none; } }
.plaque-caption { text-align: center; margin-top: 14px; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--gold-dk); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .crest { order: -1; width: min(100%, 300px); } .crest-frame { padding: 22px 18px 20px; } .crest-ring { width: min(100%, 210px); } .crest-name strong { font-size: 1.6rem; } .trust { grid-template-columns: 1fr 1fr; width: 100%; } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* intake */
.intake { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { padding: 12px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--gold-line); font-weight: 600; font-size: .92rem; text-align: left; transition: all .25s var(--ease); }
.chips button:hover { border-color: var(--gold-dk); transform: translateY(-1px); }
.chips button[aria-selected="true"] { background: var(--royal); color: #fff; border-color: var(--royal); }
.intake-card { position: relative; background: var(--white); border: 1px solid var(--gold); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); }
.intake-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-line); border-radius: 6px; pointer-events: none; }
.intake-card.swap > * { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intake-label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 10px; }
.intake-card h3 { font-size: 1.7rem; margin-bottom: 12px; }
.intake-card > p:not(.intake-label) { color: var(--muted); }
.first-step { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 20px 0 22px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 6px 6px 0; }
.first-step b { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); padding-top: 4px; }
.first-step span { font-size: .95rem; }
.intake-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 860px) { .intake { grid-template-columns: 1fr; } }

/* services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc { position: relative; background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 26px 22px 22px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.svc.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--gold); } }
.svc-ic { width: 44px; height: 44px; color: var(--gold-dk); margin-bottom: 16px; }
.svc h3 { font-size: 1.45rem; margin-bottom: 6px; }
.svc > p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.svc li { position: relative; padding: 7px 0 7px 18px; font-size: .9rem; border-top: 1px dashed var(--gold-line); }
.svc li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--gold); }
.note { margin-top: 28px; color: var(--muted); }
.note a { color: var(--royal); font-weight: 600; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why { background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 26px 22px; }
.why-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-dk); font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.why h3 { font-size: 1.35rem; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: .93rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* how */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 28px 24px 24px; background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r); }
.step-n { position: absolute; top: -18px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--royal); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; border: 1px solid var(--gold); }
.steps h3 { margin: 6px 0 8px; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 26px; }
.avatar { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: var(--royal); border: 2px solid var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--gold-pale); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar span { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--gold); }
.role { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 6px; }
.person h3 { margin-bottom: 8px; }
.person p:not(.role) { color: var(--muted); font-size: .95rem; }
.social-sm { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--royal); }
.social-sm svg { width: 18px; height: 18px; color: var(--gold-dk); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } }

/* faq */
.faq details { background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--royal-ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-dk); font-family: var(--body); font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.ways { display: grid; gap: 14px; }
.way { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "ic b" "ic s" "ic sm"; column-gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.way:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.way > svg { grid-area: ic; width: 40px; height: 40px; color: var(--gold-dk); align-self: start; }
.way b { grid-area: b; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); }
.way span { grid-area: s; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--royal-ink); line-height: 1.15; }
.way small { grid-area: sm; color: var(--muted); font-size: .85rem; }
.way-social { grid-template-columns: 1fr; grid-template-areas: "b" "s"; row-gap: 10px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--royal); transition: background .25s, color .25s; }
.social-row a:hover { background: var(--royal); color: var(--gold); }
.social-row svg { width: 20px; height: 20px; }

.form { background: var(--white); border: 1px solid var(--gold); border-radius: var(--r); padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.6rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dk); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--ivory); border: 1px solid var(--gold-line); border-radius: 8px; padding: 12px 14px; outline: none; transition: border-color .25s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dk); }
.field textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-status { color: var(--royal); font-weight: 600; font-size: .92rem; min-height: 1.2em; }
.form-note { color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--royal-ink); color: rgba(255, 253, 248, .85); padding: 56px 0 28px; border-top: 3px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand img { width: 96px; margin-bottom: 14px; }
.foot-brand strong { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.foot-brand .urdu { margin-top: 8px; color: var(--gold); }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col b { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.foot-col a { text-decoration: none; font-size: .95rem; }
.foot-col a:hover { color: var(--gold); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(201, 162, 74, .3); display: grid; gap: 10px; }
.disclaimer { font-size: .84rem; color: rgba(255, 253, 248, .65); max-width: 72ch; }
.copy { font-size: .8rem; color: rgba(255, 253, 248, .55); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .eyebrow { flex-wrap: wrap; } .eyebrow::after { display: none; } }

/* =========================================================
   Motion layer
   ========================================================= */

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 950; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dk), var(--gold)); transition: width .15s linear; }

/* header compacts on scroll */
.top { transition: padding .3s var(--ease), box-shadow .3s; }
.top.scrolled { padding-top: 6px; padding-bottom: 6px; box-shadow: 0 6px 24px rgba(60, 45, 10, .08); }

/* hero entrance (after the doors) */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); }
.js.ready .hero-copy > * { animation: enter .8s var(--ease) forwards; }
.js.ready .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js.ready .hero-copy > :nth-child(2) { animation-delay: .15s; }
.js.ready .hero-copy > :nth-child(3) { animation-delay: .25s; }
.js.ready .hero-copy > :nth-child(4) { animation-delay: .4s; }
.js.ready .hero-copy > :nth-child(5) { animation-delay: .55s; }
.js.ready .hero-copy > :nth-child(6) { animation-delay: .7s; }
@keyframes enter { to { opacity: 1; transform: none; } }
.js .crest.reveal { transition-delay: .5s !important; }
.js .crest { opacity: 0; transform: translateY(18px) scale(.96); }
.js.ready .crest { opacity: 1; transform: none; transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s; }

/* gold shimmer sweeping across the crest frame */
.crest-frame { overflow: hidden; }
.crest-frame .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-120%); animation: shine 7s ease-in-out 2s infinite; pointer-events: none; z-index: 2; }
@keyframes shine { 0% { transform: translateX(-120%); } 25%, 100% { transform: translateX(120%); } }

/* section headings: gold underline draws in */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 2px; background: linear-gradient(90deg, var(--gold-dk), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .2s; }
.section-head.in h2::after { transform: scaleX(1); }

/* alt sections: pattern drifts very slowly */
.section.alt, .hero { animation: drift 90s linear infinite; }
@keyframes drift { to { background-position: 96px 96px; } }

/* buttons: light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn:hover::after { left: 120%; }

/* service cards: icon lifts, card border glows */
.svc-ic { transition: transform .4s var(--ease), color .3s; }
.svc:hover .svc-ic { transform: translateY(-4px) rotate(-6deg) scale(1.1); color: var(--royal); }
.svc li { transition: transform .3s var(--ease); }
.svc:hover li { transform: translateX(3px); }

/* why cards: number fills on hover */
.why { transition: transform .3s var(--ease), box-shadow .3s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-n { transition: background .3s, color .3s; }
.why:hover .why-n { background: var(--royal); color: var(--gold); }

/* steps: badge pops on hover */
.steps li { transition: transform .3s var(--ease), box-shadow .3s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps li:hover .step-n { animation: pop .5s var(--ease); }
@keyframes pop { 50% { transform: scale(1.2); } }

/* chips: pop when chosen */
.chips button[aria-selected="true"] { animation: pop .4s var(--ease); }

/* faq content fades in */
.faq details[open] p { animation: fadeUp .4s var(--ease); }

/* team avatars: ring glows */
.avatar { transition: box-shadow .4s, transform .4s var(--ease); }
.person:hover .avatar { box-shadow: 0 0 0 8px var(--gold-pale), 0 12px 30px rgba(168, 132, 46, .3); transform: scale(1.03); }

/* back to top */
.totop { position: fixed; left: 20px; bottom: 20px; z-index: 990; width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid var(--gold); color: var(--royal); display: grid; place-items: center; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .3s, color .3s; }
.totop svg { width: 20px; height: 20px; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--royal); color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .crest { opacity: 1; transform: none; animation: none; }
  .crest-frame .shine, .section.alt, .hero { animation: none; }
  .btn::after { display: none; }
}

/* =========================================================
   Courtroom doors intro
   ========================================================= */
.intro { position: fixed; inset: 0; z-index: 3000; perspective: 1500px; overflow: hidden; }
.intro-seen .intro { display: none; }
body.intro-lock { overflow: hidden; }

.intro-jamb { position: absolute; inset: 0; border: 16px solid #1a110a; box-shadow: inset 0 0 0 3px #b8902e, inset 0 0 80px rgba(0, 0, 0, .7); pointer-events: none; z-index: 5; transition: opacity .6s; }

.door {
  position: absolute; top: 0; bottom: 0; width: 50.15%;
  background-color: #4a2b16;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 18%, transparent 82%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .09) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 9px);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .55);
  transition: transform 2s cubic-bezier(.7, 0, .25, 1) .55s;
  backface-visibility: hidden;
}
.door-l { left: 0; transform-origin: left center; border-right: 2px solid #2a170a; }
.door-r { right: 0; transform-origin: right center; border-left: 2px solid #2a170a; }
.intro.open .door-l { transform: rotateY(-110deg); }
.intro.open .door-r { transform: rotateY(110deg); }

.panel { position: absolute; left: 14%; right: 14%; border: 7px solid; border-color: #6e4524 #2a170a #2a170a #6e4524; background: #3d2211; box-shadow: inset 0 0 34px rgba(0, 0, 0, .5); display: grid; place-items: center; }
.panel-top { top: 9%; height: 40%; }
.panel-bottom { top: 55%; height: 34%; }
.panel img { width: 58%; max-width: 220px; opacity: .9; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.knob { position: absolute; top: 67%; width: 12px; height: 120px; border-radius: 7px; background: linear-gradient(90deg, #f3d98f, #c29a3a, #7d5c17); box-shadow: 0 6px 14px rgba(0, 0, 0, .6), inset 0 0 3px rgba(255, 255, 255, .4); }
.door-l .knob { right: 5%; } .door-r .knob { left: 5%; }

.intro-ui { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px; transition: opacity .5s, transform .5s var(--ease); }
.intro.open .intro-ui { opacity: 0; transform: scale(.94); pointer-events: none; }
.intro-plate { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); color: #f3d98f; letter-spacing: .02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); padding: 10px 28px; border-top: 1px solid #b8902e; border-bottom: 1px solid #b8902e; background: rgba(20, 12, 6, .55); }
.intro-sub { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: #e5c97a; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); margin-bottom: 26px; }
.intro-enter { display: grid; gap: 3px; padding: 16px 34px; border-radius: 999px; background: linear-gradient(180deg, #e2c272, #b8902e); color: #1a110a; border: 1px solid #f3d98f; box-shadow: 0 0 0 6px rgba(201, 162, 74, .18), 0 14px 34px rgba(0, 0, 0, .5); transition: transform .25s var(--ease), box-shadow .25s; animation: breathe 2.4s ease-in-out infinite; }
.intro-enter span { font-weight: 700; font-size: 1.05rem; }
.intro-enter small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.intro-enter:hover { transform: translateY(-2px); box-shadow: 0 0 0 10px rgba(201, 162, 74, .22), 0 18px 40px rgba(0, 0, 0, .55); }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(201, 162, 74, .08), 0 14px 34px rgba(0, 0, 0, .5); } }
.intro-skip { margin-top: 14px; color: #e5c97a; font-size: .85rem; text-decoration: underline; text-underline-offset: 4px; opacity: .85; }
.intro-skip:hover { opacity: 1; }

.intro.done { opacity: 0; transition: opacity .6s; pointer-events: none; }
.intro.open .intro-jamb { opacity: 0; transition-delay: 1.6s; }
