/* ==========================================================================
   Big League Law — theatrical rebuild
   Palette and type match the current bigleaguelaw.com site.
   ========================================================================== */

:root {
  --ink: #050505;
  --chalk: #ffffff;
  --gold: #e4b363;
  --gold-deep: #c9973f;
  --charcoal: #515151;
  --slate: #757575;
  --mist: #c6c6c6;
  --paper: #f6f5f2;
  --line: rgba(228, 179, 99, 0.35);

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: Helvetica, Arial, "Helvetica Neue", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-stage: cubic-bezier(0.77, 0, 0.18, 1);
  --gutter: clamp(20px, 6vw, 96px);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
sup { font-size: 0.5em; vertical-align: super; letter-spacing: 0; }

/* Progress line ---------------------------------------------------------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none;
}
.progress span {
  display: block; height: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
}

/* Top bar --------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(5, 5, 5, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--chalk);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-stage);
}
.topbar.is-visible { transform: translateY(0); }
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-brand img { width: 26px; height: auto; }
.topbar-brand span {
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase;
}
.topbar-call {
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.06em; color: var(--gold);
  padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.topbar-call:hover { border-bottom-color: var(--gold); }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; background: var(--ink); color: var(--chalk);
}
.hero-media {
  position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; z-index: -3;
  will-change: transform;
}
.hero-video, .hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.hero-video { z-index: 1; opacity: 0; transition: opacity 2.4s ease 0.4s; }
.hero-still { z-index: 0; opacity: 0; transition: opacity 2.4s ease 0.4s; }
html.is-loaded .hero-video, html.is-loaded .hero-still { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,0) 60%, var(--ink) 100%);
}
/* Curtains part on load — the "house lights down" moment */
.hero-curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 5; background: var(--ink);
  transition: transform 1.6s var(--ease-stage) 0.2s;
}
.hero-curtain-l { left: 0; }
.hero-curtain-r { right: 0; }
html.is-loaded .hero-curtain-l { transform: translateX(-101%); }
html.is-loaded .hero-curtain-r { transform: translateX(101%); }

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 var(--gutter); will-change: transform, opacity;
}
.hero-logo {
  width: clamp(72px, 9vw, 110px); height: auto; margin-bottom: clamp(12px, 2vw, 24px);
  opacity: 0; transform: translateY(14px); filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6));
  transition: opacity 1.4s ease 0.9s, transform 1.4s var(--ease-out) 0.9s;
}
html.is-loaded .hero-logo { opacity: 1; transform: none; }

.hero-title {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.35em;
  font-size: clamp(40px, 8.6vw, 112px); line-height: 1.05; letter-spacing: 0.14em; text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0,0,0,0.55);
  margin-left: 0.14em; /* optical centering for tracking */
}
.hero-title .word { display: inline-flex; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word > span {
  display: inline-block; opacity: 0; transform: translateY(110%) rotate(2deg);
  transition: transform 1.2s var(--ease-out), opacity 0.8s ease;
}
html.is-loaded .hero-title .word > span { opacity: 1; transform: none; }

.hero-tag {
  margin-top: clamp(10px, 1.6vw, 18px);
  font-family: var(--serif); font-size: clamp(11px, 1.3vw, 15px);
  letter-spacing: 0.55em; text-transform: uppercase; margin-left: 0.55em;
  opacity: 0; transition: opacity 1.4s ease 1.9s;
}
html.is-loaded .hero-tag { opacity: 1; }

.hero-rule {
  display: block; width: 1px; height: clamp(40px, 7vh, 72px); margin: clamp(22px, 4vh, 40px) 0;
  background: linear-gradient(to bottom, var(--gold), rgba(228,179,99,0));
  transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease-stage) 2.1s;
}
html.is-loaded .hero-rule { transform: scaleY(1); }

.hero-call {
  font-family: var(--serif); font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 0.08em; color: var(--gold);
  opacity: 0; transition: opacity 1.2s ease 2.5s, color 0.3s;
}
.hero-call:hover { color: var(--chalk); }
html.is-loaded .hero-call { opacity: 1; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255,255,255,0.7);
  opacity: 0; transition: opacity 1s ease 3s;
}
html.is-loaded .scroll-cue { opacity: 1; }
.scroll-cue i {
  display: block; width: 1px; height: 44px; background: rgba(255,255,255,0.35); overflow: hidden; position: relative;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--gold); animation: cue 2.2s var(--ease-stage) infinite;
}
@keyframes cue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* Marquee --------------------------------------------------------------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; background: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; color: var(--gold);
}
.marquee-track {
  display: flex; align-items: center; gap: 44px; white-space: nowrap; width: max-content;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase;
  will-change: transform;
}
.marquee .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; opacity: 0.7; }

/* Acts ------------------------------------------------------------------ */
.acts {
  background: var(--chalk); color: var(--slate);
  padding: clamp(72px, 12vw, 150px) var(--gutter);
}
.acts-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px;
  max-width: 1180px; margin: 0 auto;
}
.act {
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;
  padding: 36px 20px 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.3s var(--ease-out);
}
.act:nth-child(2) { transition-delay: 0.18s; }
.act:nth-child(3) { transition-delay: 0.36s; }
.acts.in .act { opacity: 1; transform: none; }
.act-num {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.3em; color: var(--gold);
}
.act-num::after {
  content: ""; display: block; width: 1px; height: 18px; margin: 6px auto 0; background: var(--line);
}
.act-icon { width: 54px; height: 54px; color: var(--gold); margin: 26px 0 22px; }
.act h2 {
  font-size: 26px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); margin-left: 0.14em;
}
.act p { margin-top: 10px; font-size: 15px; max-width: 30ch; }

/* Contact --------------------------------------------------------------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 72vh; display: grid; place-items: center;
  background: var(--ink); color: var(--chalk);
  padding: clamp(80px, 12vw, 150px) var(--gutter);
}
.contact-media { position: absolute; left: 0; right: 0; top: -18%; bottom: -18%; z-index: -2; will-change: transform; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(0.85); }
.contact-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.72) 100%),
    linear-gradient(to bottom, var(--ink) 0%, rgba(5,5,5,0.15) 18%, rgba(5,5,5,0.15) 82%, var(--ink) 100%);
}
.contact-inner {
  text-align: center; max-width: 880px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.4s var(--ease-out);
}
.contact.in .contact-inner { opacity: 1; transform: none; }
.contact-label {
  font-size: 15px; font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); margin-left: 0.5em;
}
.contact-number {
  display: inline-block; margin-top: 10px;
  font-family: var(--serif); font-size: clamp(44px, 9vw, 104px); line-height: 1.1; letter-spacing: 0.04em;
  text-shadow: 0 12px 50px rgba(0,0,0,0.6);
  transition: color 0.3s;
}
.contact-number:hover { color: var(--gold); }
.contact-quote { margin: clamp(28px, 5vw, 52px) auto 0; max-width: 44ch; }
.contact-quote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.5; color: #e0e0e0;
}
.contact-quote footer { margin-top: 16px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist); }

/* Offices --------------------------------------------------------------- */
.offices {
  background: var(--chalk); color: var(--slate);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.offices-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; margin: 0 auto;
}
.office {
  text-align: center; padding: 8px 24px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s ease, transform 1.1s var(--ease-out);
}
.office + .office { border-left: 1px solid #ebebeb; }
.office:nth-child(2) { transition-delay: 0.14s; }
.office:nth-child(3) { transition-delay: 0.28s; }
.offices.in .office { opacity: 1; transform: none; }
.office h3 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-left: 0.34em;
}
.office address { margin-top: 14px; font-size: 14px; line-height: 1.9; }
.office a { border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.office a:hover { color: var(--charcoal); border-bottom-color: var(--gold); }

/* Foul play ------------------------------------------------------------- */
.foul {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--chalk);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.foul-media { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; z-index: -2; will-change: transform; }
.foul-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.06); filter: grayscale(0.25);
  transition: opacity 2.2s ease, transform 7s linear;
}
.foul-media img.is-on { opacity: 1; transform: scale(1); }
.foul-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.82) 100%),
    linear-gradient(to bottom, var(--ink) 0%, rgba(5,5,5,0.1) 20%, rgba(5,5,5,0.1) 80%, var(--ink) 100%);
}
.foul-inner {
  display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 560px); gap: clamp(36px, 8vw, 120px);
  align-items: center; justify-content: center; max-width: 1180px; margin: 0 auto;
}
.foul-logo {
  width: 100%; max-width: 320px; height: auto; justify-self: center;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6));
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 1.4s ease, transform 1.6s var(--ease-out);
}
.foul-copy { opacity: 0; transform: translateY(24px); transition: opacity 1.2s ease 0.2s, transform 1.4s var(--ease-out) 0.2s; }
.foul.in .foul-logo, .foul.in .foul-copy { opacity: 1; transform: none; }
.foul h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; }
.foul h3 { margin-top: 14px; font-size: 18px; color: var(--gold); }
.foul p { margin-top: 18px; font-size: 15px; line-height: 1.85; color: #d9d9d9; max-width: 56ch; }
.button {
  display: inline-block; margin-top: 30px; padding: 14px 30px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.35s, color 0.35s;
}
.button:hover { background: var(--gold); color: var(--ink); }

/* Footer ---------------------------------------------------------------- */
.footer {
  background: var(--paper) url("../assets/texture.png") repeat;
  color: #8a8a8a; padding: 40px var(--gutter) 36px; font-size: 10px; line-height: 1.7;
}
.footer-legal { max-width: 1180px; margin: 0 auto; }
.footer-row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 1180px; margin: 28px auto 0;
}
.footer-copy { text-align: right; }
.footer a { color: #6b6b6b; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer a:hover { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .foul-inner { grid-template-columns: 1fr; text-align: center; }
  .foul-logo { max-width: 200px; }
  .foul p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .acts-list { grid-template-columns: 1fr; gap: 40px; }
  .offices-list { grid-template-columns: 1fr; gap: 32px; }
  .office + .office { border-left: 0; border-top: 1px solid #ebebeb; padding-top: 36px; }
  .hero-title { letter-spacing: 0.1em; gap: 0 0.3em; }
  .topbar-brand span { display: none; }
  .footer-row, .footer-copy { text-align: left; flex-direction: column; }
}

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .hero-curtain { display: none; }
  .hero-video, .hero-still, .hero-logo, .hero-tag, .hero-call, .scroll-cue,
  .hero-title .word > span, .act, .contact-inner, .office, .foul-logo, .foul-copy { opacity: 1; transform: none; }
  .hero-rule { transform: scaleY(1); }
  .marquee-track { transform: none !important; }
}
