
:root{
  --paper:#f6f8f9;
  --surface:#eef3f6;
  --ink:#14202b;
  --accent:#b48a4a;
  --line:rgba(20,32,43,.12);
  --shadow:0 10px 30px rgba(0,0,0,.06);
  --city-front:#1f3a8a;
  --city-mid:#3554a5;
  --city-back:#4f6ab8;
}
:root[data-theme="dark"]{
  --paper:#0a1218;
  --surface:#0f1820;
  --ink:#e8eef3;
  --accent:#dabc86;
  --line:rgba(255,255,255,.14);
  --shadow:0 10px 30px rgba(0,0,0,.40);
  --city-front:#ffffff;
  --city-mid:#ffffff;
  --city-back:#ffffff;
}

/* Sections */
.section{padding:72px 0; border-top:1px solid var(--line); background: var(--paper)}
#practice.section{ background: color-mix(in srgb, var(--paper) 78%, transparent) } /* translucent */
#contact.section{  background: color-mix(in srgb, var(--surface) 76%, transparent) } /* translucent */

/* Weather layer */



:root[data-theme="dark"] 

:root[data-theme="dark"] 


 to{ background-position: 600px 900px, 480px 720px } }
@keyframes lightning{
  0%,92%,100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0) }
  94% { box-shadow: inset 0 0 120vmax 0 rgba(255,255,255,.06) }
  96% { box-shadow: inset 0 0 120vmax 0 rgba(255,255,255,.10) }
  98% { box-shadow: inset 0 0 120vmax 0 rgba(255,255,255,.04) }
}

/* City float (vertical only, no scroll) */
 50%{ transform: translateY(-18px) } 100%{ transform: translateY(0) } }






/* ===== Tokens: Light ===== */


/* ===== Tokens: Dark ===== */


*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font:16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink); background:var(--paper);
  -webkit-font-smoothing:antialiased; text-rendering: optimizeLegibility;
  transition: background .2s ease, color .2s ease;
}

.wrap{max-width:1140px; margin:0 auto; padding:0 24px}

/* Links & Buttons */
a{color:var(--ink); text-decoration:none}
a:hover{color:var(--accent)}
.button{display:inline-flex;align-items:center;gap:.55rem;padding:.78rem 1.1rem;border-radius:999px;font-weight:600;border:1px solid var(--line);transition:.2s ease;box-shadow:var(--shadow)}
.button.primary{background:var(--accent); color:#0b0f19; border-color:transparent}
:root[data-theme="dark"] .button.primary{color:#0a0e16}
.button.primary:hover{filter:brightness(1.06); transform:translateY(-1px)}
.button.ghost{background:transparent}
.button.ghost:hover{border-color:var(--accent); color:var(--accent)}

/* Header */
.site-
.site-header.is-scrolled{background:var(--glass-strong); box-shadow:0 6px 24px rgba(2,6,23,.1)}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between; padding:14px 24px}
.brand img{height:64px; width:auto; display:block}
.site-nav{display:flex; gap:20px; align-items:center}
.site-nav a{padding:8px 10px; border-radius:10px}
.site-nav .cta{border:1px solid var(--accent); color:var(--accent); padding:.55rem .9rem}
.nav-right{display:flex; gap:10px; align-items:center}
.nav-toggle{display:none; background:none; border:0; color:var(--ink)}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .site-header a,
:root[data-theme="dark"] .site-header .nav-toggle{ color:#fff; }
:root[data-theme="dark"] .site-header .site-nav .cta{ border-color: rgba(255,255,255,.7); color:#fff }
:root[data-theme="dark"] .brand img{ filter: brightness(0) invert(1); }

.theme-toggle{display:inline-flex; align-items:center; gap:.4rem; border:1px solid var(--line); border-radius:999px; padding:.45rem .7rem; background:transparent; cursor:pointer}
:root[data-theme="dark"] .theme-toggle{ color:#fff; border-color: rgba(255,255,255,.55) }
:root[data-theme="dark"] .theme-toggle:hover{ background: rgba(255,255,255,.08) }

.progress{height:2px;background:transparent}
.progress .bar{display:block;height:2px;width:0;background:var(--accent);transition: width .2s linear}

/* Mobile */
@media (max-width: 860px){
  .nav-toggle{display:inline-flex}
  .site-nav{
    position:absolute; left:16px; right:16px; top:68px; display:none; flex-direction:column; gap:8px;
    padding:12px; border-radius:14px; background: var(--glass-strong); border:1px solid var(--line); box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }
  .site-nav.open{display:flex}
  .brand img{height:48px;}
}

/* Hero */
.hero{position:relative; isolation:isolate; overflow:hidden; padding:110px 0 72px; background: linear-gradient(180deg, var(--paper), var(--surface)); grid-template-columns:1fr; place-items:center}
.hero .sub{display:inline-flex; align-items:center; gap:.6rem; color:var(--muted); text-transform:uppercase; letter-spacing:.16em; font-size:.9rem; font-weight:700; margin-bottom:.6rem}
.hero .sub::after{content:""; display:inline-block; width:44px; height:2px; background: var(--accent); border-radius:2px; opacity:.9}
.lede{color:var(--ink-2); max-width:760px; margin:.35rem auto 1rem}
.hero .lede{margin-bottom:2rem}

/* Sections */

.head h2::after{content:""; display:block; width:54px; height:3px; margin-top:.5rem; background: var(--accent); border-radius:2px}
.head .lede{margin:.35rem 0 0; text-align:left}
.section .head{margin-bottom:56px}

.grid{display:grid; gap:24px; grid-template-columns: repeat(12, 1fr)}
.card{grid-column: span 6; background:var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding:22px; box-shadow: var(--shadow)}
.card h3{margin-bottom:.5rem}
.card ul{margin:.5rem 0 0 1.2rem; padding:0}
.card li{margin:.4rem 0}
@media (max-width: 920px){ .card{grid-column: span 12} }

/* Attorneys */
.atty{display:flex; gap:16px; align-items:flex-start}
.atty .avatar{width:56px; height:56px; flex:0 0 56px; aspect-ratio:1/1; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem; letter-spacing:.04em; color:#0b0f19; background: linear-gradient(180deg, #f3f4f6, #e5e7eb); border:1px solid var(--line)}
:root[data-theme="dark"] .atty .avatar{color:#0c111b; background: linear-gradient(180deg, #d1d5db, #c7cbd1)}

/* Forms */
form label{display:flex;flex-direction:column; gap:.5rem}
.grid.form-grid{grid-template-columns: repeat(12,1fr)}
.grid.form-grid > label{grid-column: span 6}
.grid.form-grid > label.full{grid-column: span 12}
.grid.form-grid > label.check{flex-direction:row; align-items:flex-start; gap:.6rem}
input,select,textarea{background: var(--paper); color: var(--ink); border:1px solid var(--line); border-radius: 12px; padding:.7rem .9rem; outline: none}
input:focus,select:focus,textarea:focus{border-color: var(--accent)}

.map-wrap{aspect-ratio: 16/10; overflow:hidden; border-radius:12px; border:1px solid var(--line)}
.map-wrap iframe{width:100%;height:100%;border:0}

/* Footer */
.site-footer{border-top:1px solid var(--line); padding:24px 0; color:var(--muted); background:var(--paper)}
.site-footer .wrap{display:flex; align-items:center; justify-content:space-between; gap:12px}
.site-footer nav a{color:var(--muted)}
.site-footer nav a:hover{color:var(--accent)}

/* Splash */
#splash{position:fixed; inset:0; z-index:1000; display:grid; place-items:center; background: var(--paper); transition: opacity .5s ease, visibility .5s ease, background .2s ease}
#splash .mark{display:grid; place-items:center; gap:16px; padding:28px; border-radius:16px; border:1px solid var(--line); box-shadow: var(--shadow); background:var(--paper); transform: scale(.96); animation: pop 700ms cubic-bezier(.2,.7,.2,1) both}
#splash.hidden{opacity:0; visibility:hidden; pointer-events:none}
@keyframes pop{from{ transform: scale(.92); opacity:0 } to{ transform: scale(1); opacity:1 }}

/* Strong parallax layers */
.hero::before, .hero::after{content:""; position:absolute; inset:-25% -25% -25% -25%; z-index:-1; pointer-events:none; will-change: transform, background-position, opacity}
.hero::before{background: radial-gradient(900px 400px at 80% -10%, color-mix(in lab, var(--accent) 24%, transparent), transparent 60%), linear-gradient(180deg, var(--paper), var(--surface)); transform: translate3d(0, calc(var(--p1, 0px)), 0); opacity:.95}
.hero::after{background: radial-gradient(700px 350px at 10% 20%, color-mix(in lab, var(--accent-2) 20%, transparent), transparent 60%); transform: translate3d(0, calc(var(--p2, 0px)), 0) rotate(.001deg); mix-blend-mode: normal; opacity:.75}
:root[data-theme="dark"] .hero::after{ mix-blend-mode: screen; opacity:.55 }

:root[data-theme="dark"] 
@keyframes city-pan{ from{ background-position: 0% 100% } to{ background-position: 100% 100% } }

/* ==== City layers (fixed, scroll-reactive) ==== */

 /* ensure content sits above layers */

/* Color tokens for city layers */



/* Assign colors */




/* Depth & motion scales */



 to{ background-position: 100% 100% } }

/* Scene states per section (which layer is emphasized) */



:root[data-theme="dark"] 
:root[data-theme="dark"] 
:root[data-theme="dark"] 

#splash .mark{
  border:2px solid var(--accent);
}
#splash.exit .mark{
  animation: blowout 1600ms cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes blowout{
  0%{ transform: scale(1); filter: blur(0px); opacity:1 }
  50%{ transform: scale(8); filter: blur(4px); opacity:.95 }
  100%{ transform: scale(18); filter: blur(10px); opacity:0 }
}

/* Darker city blues (light theme) + reinforce dark theme whites */






/* Panel alternation: odd sections translucent (city visible), even sections solid */
main > .section:nth-of-type(odd){
  background: color-mix(in srgb, var(--paper) 82%, transparent);
}
main > .section:nth-of-type(odd).alt{
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
main > .
main > .

/* Subtle edge fades to avoid hard seams over the city */
.section::before, .section::after{
  content:""; position:absolute; left:0; right:0; height:18px; pointer-events:none;
}

.section::before{ top:-18px; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,0)) }
.section::after{ bottom:-18px; background: linear-gradient(0deg, rgba(0,0,0,.06), rgba(0,0,0,0)) }
:root[data-theme="dark"] .section::before,
:root[data-theme="dark"] .section::after{ background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)) }
:root[data-theme="dark"] .section::after{ background: linear-gradient(0deg, rgba(255,255,255,.10), rgba(255,255,255,0)) }

/* Alternating panels: city visible under Practice & Contact only */

#attorneys /* solid */


/* City layer visibility baseline + section emphasis */






/* Subtle star layer (dark mode only) */
.sky-stars{
  position:fixed; inset:0; z-index:0; pointer-events:none; opacity:0;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 4px 4px;
  transform: translateZ(0);
}
:root[data-theme="dark"] .sky-stars{ opacity:.06 }
 /* content above bg */

:root[data-theme="dark"] 
}

/* Thunder: occasional soft flash layered with rain */

:root[data-theme="dark"] 
@keyframes lightning{
  0%, 92%, 100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0) }
  94% { box-shadow: inset 0 0 120vmax 0 rgba(255,255,255,.06) }
  96% { box-shadow: inset 0 0 120vmax 0 rgba(255,255,255,.10) }
  98% { box-shadow: inset 0 0 120vmax 0 rgba(255,255,255,.04) }
}

/* Cloudy: gentle overcast from top */

:root[data-theme="dark"] 

/* Sunny: no overlay (keep professional) */


/* DEV: remove — Weather toggle button */
.dev-toggle{
  position: fixed; right: 16px; bottom: 16px; z-index: 5;
  font: 600 12px/1 ui-sans-serif, system-ui; letter-spacing:.02em;
  padding: 10px 12px; border-radius: 999px; border:1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--ink); box-shadow: var(--shadow); cursor:pointer;
}
.dev-toggle[aria-pressed="true"]{ border-color: var(--accent); }
:root[data-theme="dark"] .dev-toggle{
  background: color-mix(in srgb, var(--surface) 70%, transparent); color: #fff; border-color: rgba(255,255,255,.25);
}

/* DEV: remove — Weather panel */
.dev-panel{
  position:fixed; left:16px; bottom:16px; z-index:6;
  display:flex; align-items:center; gap:6px; padding:6px; border-radius:999px;
  background: color-mix(in srgb, var(--paper) 85%, transparent); border:1px solid var(--line); box-shadow: var(--shadow);
}
.dev-panel .dev-pill{
  appearance:none; border:1px solid var(--line); background:transparent; color:var(--ink);
  padding:8px 10px; border-radius:999px; font:600 12px/1 ui-sans-serif, system-ui; cursor:pointer;
}
.dev-panel .dev-pill.active{ border-color: var(--accent) }
.dev-panel .sep{ width:1px; height:20px; background: var(--line); margin:0 4px }
:root[data-theme="dark"] .dev-panel{ background: color-mix(in srgb, var(--surface) 70%, transparent); color:#fff; border-color: rgba(255,255,255,.25) }
:root[data-theme="dark"] .dev-panel .dev-pill{ color:#fff; border-color: rgba(255,255,255,.25) }

/* Vertical float (subtle) */
 50%{ transform: translateY(-10px) } 100%{ transform: translateY(0) } }
 50%{ transform: translateY(-16px) } 100%{ transform: translateY(0) } }
 50%{ transform: translateY(-22px) } 100%{ transform: translateY(0) } }

/* City layers clean baseline */
@keyframes floatFront {0%{transform:translateY(0)}50%{transform:translateY(-18px)}100%{transform:translateY(0)}}
@keyframes floatMid {0%{transform:translateY(0)}50%{transform:translateY(-24px)}100%{transform:translateY(0)}}
@keyframes floatBack {0%{transform:translateY(0)}50%{transform:translateY(-30px)}100%{transform:translateY(0)}}





/* Dark mode buildings pure white */
:root[data-theme="dark"] }





96%,97%{opacity:.6}98%{opacity:.2}}

/* Alternate panels translucent */
#practice
#contact

main, header, footer{ position:relative; z-index:2 }

/* reset scene CSS */
/* City layers: autonomous horizontal pan (to the right), vertical float removed */
 to{ background-position: 1200px 100% } }
 to{ background-position: 1000px 100% } }
 to{ background-position: 860px 100% } }






/* Weather only over the scene area (above buildings) */



:root[data-theme="dark"] 

:root[data-theme="dark"] 


 to{ background-position: 600px 900px, 480px 720px } }
@keyframes lightning{
  0%,92%,100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0) }
  94% { box-shadow: inset 0 0 70vmax 0 rgba(255,255,255,.06) }
  96% { box-shadow: inset 0 0 90vmax 0 rgba(255,255,255,.10) }
  98% { box-shadow: inset 0 0 70vmax 0 rgba(255,255,255,.04) }
}

/* visible only in these sections */
}

/* City layers use a single skyline sprite; depth by size/opacity and Y offset */

section.has-scene 
section.has-scene 
section.has-scene 

/* Weather confined to the scene band only */
section.has-scene 
section.has-scene 
section.has-scene 
:root[data-theme="dark"] section.has-scene 
section.has-scene 
:root[data-theme="dark"] section.has-scene 
section.has-scene 
@keyframes lightning{
  0%,92%,100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0) }
  94% { box-shadow: inset 0 0 60vmax 0 rgba(255,255,255,.06) }
  96% { box-shadow: inset 0 0 80vmax 0 rgba(255,255,255,.10) }
  98% { box-shadow: inset 0 0 60vmax 0 rgba(255,255,255,.04) }
}

/* Header translucency */
header{
  position:sticky; top:0; backdrop-filter:saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-bottom:1px solid var(--line); z-index:10
}
:root[data-theme="dark"] header{
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

/* Section-scoped scene (Apple/Google restraint): subtle, airy, legible */
section{ position:relative }


section.has-scene 
section.has-scene 
section.has-scene 

/* Weather bound to scene band only */
section.has-scene 
section.has-scene 
section.has-scene 
:root[data-theme="dark"] section.has-scene 
section.has-scene 
:root[data-theme="dark"] section.has-scene 

/* Thunder flash: confined to band via ::after, very tasteful */
section.has-scene 
section.has-scene 

  94% { opacity:.35 }
  96% { opacity:.18 }
  98% { opacity:.08 }
}

/* Hero readability veil */
.hero .container, section.hero .container{
  position:relative; z-index:2;
}
section.hero::before{
  content:""; position:absolute; left:0; right:0; top:0; height:44vh; pointer-events:none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 65%, transparent), transparent 60%);
  z-index:1;
}
:root[data-theme="dark"] section.hero::before{
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 65%, transparent), transparent 60%);
}

/* === Single-line scene (vertical auto; no horizontal motion) === */
section{ position:relative }


/* City line */
 50%{ transform: translateY(-18px) } 100%{ transform: translateY(0) } }

:root[data-theme="dark"] 

/* Weather confined to scene band only (no full-page overlay) */
section.has-scene 
section.has-scene 
section.has-scene 
:root[data-theme="dark"] section.has-scene 

/* Rain: diagonal streaks inside band (CSS animation only; independent of scroll) */
 to{ background-position: 600px 900px, 480px 720px } }
section.has-scene 
:root[data-theme="dark"] section.has-scene 

/* Thunder: subtle flash confined to band */
 94%{opacity:.35} 96%{opacity:.18} 98%{opacity:.08} }
section.has-scene 
section.has-scene 

/* === v31 single skyline line — vertical only === */
 50%{ transform: translate3d(0,-18px,0) } 100%{ transform: translate3d(0,0,0) } }

section{ position:relative }



:root[data-theme="dark"] 

/* Weather confined to the band */
section.has-scene 
section.has-scene 
section.has-scene 
:root[data-theme="dark"] section.has-scene 
 to{ background-position: 600px 900px, 480px 720px } }
section.has-scene 
:root[data-theme="dark"] section.has-scene 
section.has-scene 
 94%{opacity:.35} 96%{opacity:.18} 98%{opacity:.08} }
section.has-scene 

/* === Global background stack: buildings (rear) + weather (front) === */


/* Buildings: one skyline, vertical auto motion only */
 50%{ transform: translate3d(0,-20px,0) } 100%{ transform: translate3d(0,0,0) } }

:root[data-theme="dark"] 

/* Weather (in front of buildings but behind content); visually confined to lower band */

#bg-stack .bg-weather.is-sunny{ opacity:0 }
#bg-stack .bg-weather.is-cloudy{ opacity:.12; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,0) 42%) }
:root[data-theme="dark"] #bg-stack .bg-weather.is-cloudy{ opacity:.14; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 42%) }

@keyframes rain-slide{ from{ background-position: 0 0, 0 0 } to{ background-position: 600px 900px, 480px 720px } }
#bg-stack .bg-weather.is-rain{
  opacity:.20;
  background-image:
    repeating-linear-gradient(120deg, rgba(0,0,0,.08) 0px, rgba(0,0,0,.08) 1px, rgba(0,0,0,0) 14px),
    repeating-linear-gradient(120deg, rgba(0,0,0,.06) 0px, rgba(0,0,0,.06) 1px, rgba(0,0,0,0) 22px);
  background-size: 300px 300px, 360px 360px;
  animation: rain-slide 16s linear infinite;
}
:root[data-theme="dark"] #bg-stack .bg-weather.is-rain{
  opacity:.18;
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,.14) 0px, rgba(255,255,255,.14) 1px, rgba(255,255,255,0) 16px),
    repeating-linear-gradient(120deg, rgba(255,255,255,.10) 0px, rgba(255,255,255,.10) 1px, rgba(255,255,255,0) 24px);
}

/* Thunder flash—confined to band via ::after */
@keyframes flash{ 0%,92%,100%{opacity:0} 94%{opacity:.35} 96%{opacity:.18} 98%{opacity:.08} }
#bg-stack .bg-weather::after{
  content:""; position:absolute; inset:0; opacity:0; pointer-events:none;
  background: radial-gradient(130% 130% at 60% 20%, rgba(255,255,255,.10), rgba(255,255,255,0) 70%);
}
#bg-stack .bg-weather.is-thunder::after{ animation: flash 7s ease-in-out infinite }

/* Content above backgrounds */
main, header, footer{ position:relative; z-index:2 }

/* Horizontal pan for buildings */
@keyframes panX { from{ background-position: 0 100% } to{ background-position: -1200px 100% } }


@keyframes panCity { 
  from { background-position: 0 100%; } 
  to   { background-position: 1200px 100%; } 
}

/* Alternate translucent panels: every even section */

:root[data-theme="dark"] 


:root[data-theme="dark"] 

/* Alternate translucent panels starting with first (odd) */:root[data-theme="dark"] section:nth-of-type(odd){
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(6px);
}

/* Alternate translucent panels: start with the first (odd) */:root[data-theme="dark"] section:nth-of-type(odd){
  background: color-mix(in srgb, var(--surface) 48%, transparent);
  backdrop-filter: blur(8px);
}

/* Alternate translucent panels, starting with the first content section */
main > section:nth-of-type(odd),:root[data-theme="dark"] main > section:nth-of-type(odd),
/* Deterministic: sections with .reveal-city are translucent to show skyline */
main > section.reveal-city,
.section.reveal-city{
  background: color-mix(in srgb, var(--paper) 54%, transparent);
  backdrop-filter: blur(8px);
}
:root[data-theme="dark"] main > section.reveal-city,
:root[data-theme="dark"] .section.reveal-city{
  background: color-mix(in srgb, var(--surface) 38%, transparent);
  backdrop-filter: blur(10px);
}



/* === Fixed bottom background band (contains skyline + weather) === */
#bg-stack{ position:fixed; inset:0; z-index:0; pointer-events:none }
#bg-stack .bg-band{
  position:absolute; left:0; right:0; bottom:0; height:40vh;
}
/* Soft top fade inside the band to ground it */
#bg-stack .bg-band::before{
  content:""; position:absolute; left:0; right:0; top:-10vh; height:10vh; pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.05));
}
:root[data-theme="dark"] #bg-stack .bg-band::before{
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.06));
}

/* Rear: buildings (horizontal pan only) */
@keyframes panCity { from { background-position: 0 100%; } to { background-position: 1200px 100%; } }
#bg-stack .bg-buildings{
  position:absolute; left:0; right:0; bottom:0; height:36vh;
  background-image:url('../img/skyline-light.svg'); background-repeat:repeat-x; background-size:1200px auto; background-position: 0 100%;
  will-change: background-position; animation: panCity 120s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.22)); opacity:.33;
}
:root[data-theme="dark"] #bg-stack .bg-buildings{
  background-image:url('../img/skyline-dark.svg'); opacity:.52; filter: drop-shadow(0 18px 36px rgba(0,0,0,.55));
}

/* Front: weather (confined to band) */
@keyframes rain-slide{ from{ background-position: 0 0, 0 0 } to{ background-position: 600px 900px, 480px 720px } }
#bg-stack .bg-weather{
  position:absolute; left:0; right:0; bottom:0; height:40vh; opacity:0; background: transparent;
}
#bg-stack .bg-weather.is-sunny{ opacity:0 }
#bg-stack .bg-weather.is-cloudy{ opacity:.12; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,0) 45%) }
:root[data-theme="dark"] #bg-stack .bg-weather.is-cloudy{ opacity:.14; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 45%) }
#bg-stack .bg-weather.is-rain{
  opacity:.20;
  background-image:
    repeating-linear-gradient(120deg, rgba(0,0,0,.08) 0px, rgba(0,0,0,.08) 1px, rgba(0,0,0,0) 14px),
    repeating-linear-gradient(120deg, rgba(0,0,0,.06) 0px, rgba(0,0,0,.06) 1px, rgba(0,0,0,0) 22px);
  background-size: 300px 300px, 360px 360px;
  animation: rain-slide 16s linear infinite;
}
:root[data-theme="dark"] #bg-stack .bg-weather.is-rain{
  opacity:.18;
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,.14) 0px, rgba(255,255,255,.14) 1px, rgba(255,255,255,0) 16px),
    repeating-linear-gradient(120deg, rgba(255,255,255,.10) 0px, rgba(255,255,255,.10) 1px, rgba(255,255,255,0) 24px);
}

/* Thunder flash inside band only */
@keyframes flash{ 0%,92%,100%{opacity:0} 94%{opacity:.35} 96%{opacity:.18} 98%{opacity:.08} }
#bg-stack .bg-weather::after{
  content:""; position:absolute; inset:0; opacity:0; pointer-events:none;
  background: radial-gradient(130% 130% at 60% 20%, rgba(255,255,255,.10), rgba(255,255,255,0) 70%);
}
#bg-stack .bg-weather.is-thunder::after{ animation: flash 7s ease-in-out infinite }

/* Foreground content sits above */
main, header, footer{ position:relative; z-index:2 }

/* Attorney cards — tasteful borders */
.attorney-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:1.2rem;
  background: var(--paper);
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.attorney-card:hover{
  transform: translateY(-3px);
  box-shadow:0 6px 14px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.18);
}
:root[data-theme="dark"] .attorney-card{
  background: var(--surface);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 2px 6px rgba(0,0,0,.40);
}

/* Clouds layer inside weather band */
#bg-stack .bg-weather.has-clouds::before{
  content:""; position:absolute; left:-20vw; right:-20vw; top:0; height:22vh;
  background-image:
    radial-gradient(40px 24px at 10% 40%, rgba(255,255,255,.70), rgba(255,255,255,0)),
    radial-gradient(60px 30px at 25% 50%, rgba(255,255,255,.70), rgba(255,255,255,0)),
    radial-gradient(50px 24px at 45% 35%, rgba(255,255,255,.70), rgba(255,255,255,0)),
    radial-gradient(70px 36px at 65% 55%, rgba(255,255,255,.70), rgba(255,255,255,0)),
    radial-gradient(55px 26px at 85% 40%, rgba(255,255,255,.70), rgba(255,255,255,0));
  background-repeat:no-repeat; filter: blur(2px);
  opacity:.5; animation: clouds-drift 140s linear infinite;
}
:root[data-theme="dark"] #bg-stack .bg-weather.has-clouds::before{
  opacity:.35; filter: blur(2px) brightness(0.9);
}
@keyframes clouds-drift{
  from{ transform: translateX(0) } to{ transform: translateX(10vw) }
}

/* Snow inside band */
@keyframes snow-fall { 
  0%{ background-position: 0 -200px, 0 -200px, 0 -200px } 
  100%{ background-position: 120px 200px, -60px 200px, 60px 200px } 
}
#bg-stack .bg-weather.is-snow{
  opacity:.28;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 51%),
    radial-gradient(2px 2px at 80px 10px, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 51%),
    radial-gradient(3px 3px at 50px 70px, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 51%);
  background-size: 120px 200px, 120px 200px, 120px 200px;
  animation: snow-fall 18s linear infinite;
}
:root[data-theme="dark"] #bg-stack .bg-weather.is-snow{ opacity:.32 }

/* Strengthen thunder flash slightly, keep band-bounded */
#bg-stack .bg-weather.is-thunder::after{
  animation: flash 6s ease-in-out infinite;
}

#bg-stack .bg-weather.is-cloudy{ opacity:.14 }
#bg-stack .bg-weather.is-cloudy.has-clouds{ opacity:.18 }
#bg-stack .bg-weather.is-snow.has-clouds{ opacity:.32 }


/* Underline motion for section headings */
h2.reveal-line, h3.reveal-line{
  position: relative;
}
h2.reveal-line::after, h3.reveal-line::after{
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 3px;
  width: 0%;
  background: currentColor;
  opacity: .9;
  transition: width 500ms ease, opacity 300ms ease;
}
h2.reveal-line.is-visible::after, h3.reveal-line.is-visible::after{
  width: 56%;
  opacity: 1;
}
/* Slight parallax tilt for the line on scroll */
h2.reveal-line::after{ transform-origin: left center; }


/* Sticky header (upper tab) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}


/* Gold underline for reveal lines */
:root{ --aini-gold: #c9a227; }
h2.reveal-line::after, h3.reveal-line::after{
  background: var(--aini-gold) !important;
}
