/*
 * Lawyer Lead Generation Services.
 *
 * The page is a case being built, coloured from the owner's art: ivory
 * marble, brass from the scales and icons, night ink from the suits and
 * leather spines, a touch of oxblood for the red-pen markup. Display lines
 * are Cormorant Garamond (enqueued for this page only).
 *
 * Everything is scoped under .lw-page. landing.css still loads (the button
 * set and the shared FAQ accordion).
 *
 * Motion contract: [data-reveal] gets .is-in from lawyer-lead-gen.js and each
 * child staggers off its own --i. [data-scrub] gets --p (0..1) tied to scroll,
 * both ways; [data-step] children get .is-lit as --p passes them. Every rule
 * reading --p defaults to the finished state, so with no JS the page rests
 * complete. Hiding is gated on .lw-js. Everything settles under
 * prefers-reduced-motion at the foot of this file.
 *
 * Order: tokens, type, buttons, motion, hero, why, how, grow, bands, cases,
 * convert, choose, FAQ, responsive, reduced motion.
 */
.lw-page {
  --lw-ink: #141a2e;
  --lw-night: #0f1424;
  --lw-navy: #1d2742;
  --lw-ivory: #fbf8f1;
  --lw-paper: #f5eedf;
  --lw-brass: #b08640;
  --lw-gold: #d6b36a;
  --lw-gold-soft: #ead7a8;
  --lw-oxblood: #8e2a32;
  --lw-muted: #5b5f6d;
  --lw-line: rgba(20, 26, 46, 0.12);

  --lw-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --lw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lw-sec-y: clamp(64px, 8vw, 120px);
  --lw-top: clamp(96px, 9vw, 124px); /* the theme's header-clearing offset */

  background: var(--lw-ivory);
  color: var(--lw-ink);
  overflow-x: clip;
}

.lw-sec {
  position: relative;
  padding-block: var(--lw-sec-y);
}

.lw-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */
.lw-page .lw-h2 {
  margin: 0;
  font-family: var(--lw-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--lw-ink);
  text-wrap: balance;
}

.lw-page .lw-lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--lw-muted);
}

.lw-page .lw-lead strong,
.lw-page .lw-band-copy p strong,
.lw-page .lw-hero-text strong {
  color: var(--lw-ink);
  font-weight: 700;
}

.lw-head {
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.lw-head-center {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.lw-head-center .lw-lead {
  margin-inline: auto;
}

.lw-center {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}

/* ---------- Buttons ---------- */
.lw-page .btn-strategy.lw-btn {
  background-color: var(--lw-ink);
  border-color: var(--lw-ink);
  transition:
    padding 0.42s var(--lw-ease),
    background-color 0.42s var(--lw-ease),
    border-color 0.42s var(--lw-ease),
    box-shadow 0.42s var(--lw-ease),
    transform 0.42s var(--lw-ease);
}

.lw-page .btn-strategy.lw-btn .btn-text {
  color: #fff;
}

.lw-page .btn-strategy.lw-btn:hover {
  background-color: var(--lw-brass);
  border-color: var(--lw-brass);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(176, 134, 64, 0.35);
}

.lw-page .btn-strategy.lw-btn .icon-circle {
  background: var(--lw-gold);
}

.lw-page .btn-strategy.lw-btn:hover .icon-circle {
  background: #fff;
}

.lw-page .btn-strategy.lw-btn .icon-circle svg path {
  fill: var(--lw-ink);
}

.lw-page .btn-strategy.lw-btn-gold {
  background-color: var(--lw-gold);
  border-color: var(--lw-gold);
}

.lw-page .btn-strategy.lw-btn-gold .btn-text {
  color: var(--lw-night);
}

.lw-page .btn-strategy.lw-btn-gold .icon-circle {
  background: var(--lw-night);
}

.lw-page .btn-strategy.lw-btn-gold .icon-circle svg path {
  fill: var(--lw-gold);
}

.lw-page .btn-strategy.lw-btn-gold:hover {
  background-color: #fff;
  border-color: #fff;
}

.lw-page .btn-strategy.lw-btn-gold:hover .btn-text {
  color: var(--lw-night);
}

/* ---------- Motion ---------- */
.lw-js [data-reveal] > *,
.lw-js .lw-articles[data-reveal] > .lw-article {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--lw-ease),
    transform 0.8s var(--lw-ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.lw-js [data-reveal].is-in > *,
.lw-js .lw-articles[data-reveal].is-in > .lw-article {
  opacity: 1;
  transform: none;
}

/* A record reveals as one card, not child by child. */
.lw-js .lw-record[data-reveal] > * {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.lw-hero {
  position: relative;
  padding-top: calc(var(--lw-top) + clamp(16px, 3vw, 40px));
  background:
    radial-gradient(900px 520px at 85% 30%, rgba(214, 179, 106, 0.22), transparent 70%),
    linear-gradient(180deg, #fffdf8 0%, var(--lw-ivory) 70%, var(--lw-paper) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Legal-pad rules and a red margin, very faint. */
.lw-hero-rules {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent calc(6% - 1px), rgba(142, 42, 50, 0.12) 6%, transparent calc(6% + 1px)),
    repeating-linear-gradient(180deg, transparent 0 37px, rgba(20, 26, 46, 0.045) 37px 38px);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}

.lw-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), rgba(214, 179, 106, 0.18), transparent 70%);
  pointer-events: none;
}

.lw-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.lw-section-mark {
  display: inline-block;
  font-family: var(--lw-display);
  font-size: 42px;
  line-height: 1;
  color: var(--lw-brass);
}

.lw-page .lw-hero-title {
  margin: 10px 0 0;
  font-family: var(--lw-display);
  font-size: clamp(44px, 5.6vw, 86px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--lw-ink);
}

.lw-word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  vertical-align: top;
}

.lw-word > span {
  display: inline-block;
}

/* "#1" in brass italic. */
.lw-word:first-child > span {
  font-style: italic;
  color: var(--lw-brass);
}

.lw-js .lw-word > span {
  transform: translateY(105%);
  animation: lw-word-up 1s var(--lw-ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.08s);
}

@keyframes lw-word-up {
  to { transform: none; }
}

.lw-flourish {
  display: block;
  width: min(320px, 70%);
  height: 18px;
  margin: 14px 0 6px;
  overflow: visible;
}

.lw-flourish path {
  fill: none;
  stroke: var(--lw-brass);
  stroke-width: 1.6;
  stroke-dasharray: 360;
  stroke-dashoffset: 0;
}

.lw-flourish circle {
  fill: var(--lw-brass);
}

.lw-js .lw-flourish path {
  stroke-dashoffset: 360;
  animation: lw-draw 1.6s var(--lw-ease) 0.7s forwards;
}

.lw-js .lw-flourish circle {
  transform-origin: 160px 9px;
  transform: scale(0);
  animation: lw-pop 0.6s var(--lw-ease) 1.5s forwards;
}

@keyframes lw-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes lw-pop {
  to { transform: scale(1); }
}

.lw-page .lw-hero-sub {
  margin: 16px 0 0;
  font-family: var(--lw-display);
  font-size: clamp(22px, 2vw, 30px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  color: var(--lw-navy);
}

.lw-page .lw-hero-text {
  max-width: 600px;
  margin: 18px 0 32px;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.75;
  color: var(--lw-muted);
}

.lw-js .lw-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: lw-rise 0.9s var(--lw-ease) forwards;
  animation-delay: calc(0.35s + var(--i) * 0.12s);
}

@keyframes lw-rise {
  to { opacity: 1; transform: none; }
}

.lw-hero-stage {
  position: relative;
  aspect-ratio: 1327 / 1185;
  translate: calc(var(--tx, 0) * 1px) calc(var(--ty, 0) * 1px);
  transition: translate 0.6s var(--lw-ease);
}

.lw-arches {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 82%;
  height: auto;
  transform: translateX(-50%);
  overflow: visible;
}

.lw-arch {
  fill: none;
  stroke: var(--lw-brass);
  stroke-width: 1.4;
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
  opacity: 0.55;
}

.lw-arch-2 { opacity: 0.28; }
.lw-arch-3 { stroke-dasharray: 3 7; opacity: 0.45; }

.lw-js .lw-arch-1,
.lw-js .lw-arch-2 {
  stroke-dashoffset: 1400;
  animation: lw-draw 2.4s var(--lw-ease) 0.3s forwards;
}

.lw-js .lw-arch-2 {
  animation-delay: 0.55s;
}

.lw-seal-ring {
  position: absolute;
  top: 4%;
  left: -3%;
  width: 26%;
  height: auto;
  animation: lw-turn 40s linear infinite;
}

.lw-seal-ring text {
  font-family: var(--lw-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  fill: var(--lw-brass);
}

@keyframes lw-turn {
  to { transform: rotate(360deg); }
}

.lw-hero-art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(20, 26, 46, 0.16));
}

.lw-js .lw-hero-art {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: lw-rise 1.2s var(--lw-ease) 0.4s forwards;
}

/* Pings over the art's two badges. */
.lw-hero-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lw-gold);
  box-shadow: 0 0 0 0 rgba(214, 179, 106, 0.7);
  animation: lw-ping 2.4s ease-out infinite;
}

.lw-hero-ping-a { top: 9%; right: 4%; }
.lw-hero-ping-b { bottom: 13%; left: 4%; animation-delay: 1.2s; }

@keyframes lw-ping {
  0% { box-shadow: 0 0 0 0 rgba(214, 179, 106, 0.7); }
  80%, 100% { box-shadow: 0 0 0 18px rgba(214, 179, 106, 0); }
}

/* Docket strip. */
.lw-docket {
  position: relative;
  margin-top: clamp(36px, 5vw, 64px);
  padding-block: 18px;
  border-block: 1px solid rgba(176, 134, 64, 0.35);
  background: var(--lw-ink);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lw-docket-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: lw-marquee 38s linear infinite;
}

.lw-docket:hover .lw-docket-track {
  animation-play-state: paused;
}

.lw-docket span {
  font-family: var(--lw-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-style: italic;
  color: var(--lw-ivory);
  white-space: nowrap;
}

.lw-docket i {
  font-style: normal;
  color: var(--lw-gold);
}

@keyframes lw-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Why: the legal pad ---------- */
.lw-why .lw-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}

.lw-why .lw-lead {
  margin: 0;
}

.lw-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

.lw-why-art {
  position: relative;
}

.lw-why-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 179, 106, 0.4), transparent 68%);
  filter: blur(10px);
}

/* The scales lean with the scroll: tipped one way coming in, the other leaving. */
.lw-why-art img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(calc((var(--p, 0.5) - 0.5) * 8deg)) translateY(calc((0.5 - var(--p, 0.5)) * 30px));
  transform-origin: 50% 85%;
}

.lw-pad {
  position: relative;
  margin: 0;
  padding: 26px 0 26px;
  list-style: none;
  background:
    linear-gradient(90deg, transparent 63px, rgba(142, 42, 50, 0.45) 63px 64px, transparent 64px),
    repeating-linear-gradient(180deg, #fffdf4 0 57px, rgba(36, 74, 140, 0.12) 57px 58px);
  background-color: #fffdf4;
  border-radius: 6px 6px 14px 14px;
  box-shadow:
    0 1px 0 rgba(20, 26, 46, 0.06),
    0 28px 60px -20px rgba(20, 26, 46, 0.28);
  counter-reset: none;
}

/* The binding strip. */
.lw-pad::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 22px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--lw-navy), var(--lw-ink));
}

.lw-pad li {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 24px 0 0;
}

.lw-pad-no {
  flex: 0 0 64px;
  font-family: var(--lw-display);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: rgba(142, 42, 50, 0.55);
  transition: color 0.5s var(--lw-ease);
}

.lw-pad-text {
  position: relative;
  padding-left: 18px;
  font-size: clamp(15px, 1.15vw, 17.5px);
  font-weight: 500;
  color: var(--lw-ink);
}

.lw-pad-text::after {
  content: "";
  position: absolute;
  left: 14px;
  right: -6px;
  bottom: -6px;
  height: 2.5px;
  border-radius: 2px 40% 2px 60%;
  background: linear-gradient(90deg, rgba(142, 42, 50, 0.95), rgba(142, 42, 50, 0.7));
  transform: rotate(-0.5deg);
  transform-origin: 0 50%;
}

.lw-js .lw-pad li .lw-pad-text::after {
  transform: rotate(-0.5deg) scaleX(0);
  transition: transform 0.9s var(--lw-ease);
}

.lw-js .lw-pad li.is-lit .lw-pad-text::after {
  transform: rotate(-0.5deg) scaleX(1);
}

.lw-pad li.is-lit .lw-pad-no {
  color: var(--lw-oxblood);
}

/* ---------- How: articles on a brass thread ---------- */
.lw-how {
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(214, 179, 106, 0.14), transparent 70%),
    linear-gradient(180deg, var(--lw-night), var(--lw-navy));
  color: #e9e4d8;
  overflow: hidden;
  isolation: isolate;
}

/* Faint colonnade. */
.lw-how-columns {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 120px, rgba(214, 179, 106, 0.05) 120px 122px, transparent 122px 140px, rgba(214, 179, 106, 0.05) 140px 142px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.lw-how .lw-h2 {
  color: #fff;
}

.lw-how .lw-lead {
  color: rgba(233, 228, 216, 0.75);
}

.lw-how .lw-lead strong {
  color: var(--lw-gold);
}

.lw-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
}

.lw-how-art {
  position: sticky;
  top: calc(var(--lw-top) + 20px);
  translate: calc(var(--tx, 0) * 1px) calc(var(--ty, 0) * 1px);
  transition: translate 0.6s var(--lw-ease);
}

.lw-how-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

.lw-thread {
  position: relative;
  padding-left: 76px;
}

.lw-thread ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lw-thread-line {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: rgba(214, 179, 106, 0.18);
}

.lw-thread-line::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--p, 1) * 100%);
  background: linear-gradient(180deg, var(--lw-gold-soft), var(--lw-brass));
}

.lw-thread-line i {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(var(--p, 1) * 100%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lw-gold);
  box-shadow: 0 0 0 6px rgba(214, 179, 106, 0.18), 0 0 24px 6px rgba(214, 179, 106, 0.55);
  transform: translate(-50%, -50%);
}

.lw-thread li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 12px 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(214, 179, 106, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: clamp(15px, 1.15vw, 17.5px);
  color: rgba(233, 228, 216, 0.6);
  transition:
    color 0.5s var(--lw-ease),
    background-color 0.5s var(--lw-ease),
    border-color 0.5s var(--lw-ease),
    transform 0.5s var(--lw-ease);
}

/* The numeral sits on the thread. */
.lw-roman {
  position: absolute;
  left: -76px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(214, 179, 106, 0.4);
  border-radius: 50%;
  background: var(--lw-night);
  font-family: var(--lw-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--lw-gold);
  transform: translateY(-50%);
  transition: background-color 0.5s var(--lw-ease), color 0.5s var(--lw-ease);
}

.lw-thread li.is-lit {
  color: #fff;
  border-color: rgba(214, 179, 106, 0.45);
  background: rgba(214, 179, 106, 0.08);
  transform: translateX(6px);
}

.lw-thread li.is-lit .lw-roman {
  background: var(--lw-gold);
  color: var(--lw-night);
}

.lw-page:not(.lw-js) .lw-thread li {
  color: #fff;
}

/* ---------- Grow: tabbed case files ---------- */
.lw-grow {
  background:
    linear-gradient(180deg, var(--lw-ivory), var(--lw-paper));
}

.lw-files {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.lw-files-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lw-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--lw-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--lw-ink);
  cursor: pointer;
  transition:
    background-color 0.4s var(--lw-ease),
    color 0.4s var(--lw-ease),
    border-color 0.4s var(--lw-ease),
    transform 0.4s var(--lw-ease),
    box-shadow 0.4s var(--lw-ease);
}

.lw-tab:hover {
  transform: translateX(4px);
  border-color: rgba(176, 134, 64, 0.5);
}

.lw-tab:focus-visible {
  outline: 2px solid var(--lw-brass);
  outline-offset: 3px;
}

.lw-tab-no {
  font-family: var(--lw-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--lw-brass);
}

.lw-tab[aria-selected="true"] {
  background: var(--lw-ink);
  border-color: var(--lw-ink);
  color: #fff;
  transform: translateX(10px);
  box-shadow: 0 16px 30px -12px rgba(20, 26, 46, 0.45);
}

.lw-tab[aria-selected="true"] .lw-tab-no {
  color: var(--lw-gold);
}

/* A brass tab-edge on the selected one, like a folder tab. */
.lw-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 10px;
  height: 46%;
  border-radius: 0 6px 6px 0;
  background: var(--lw-gold);
  transform: translateY(-50%);
}

.lw-files-stack {
  position: relative;
  display: grid;
}

/* Without JS every file shows, stacked. */
.lw-file {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  min-height: 100%;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(176, 134, 64, 0.28);
  border-radius: 6px 22px 22px 22px;
  background:
    radial-gradient(300px circle at var(--mx, 30%) var(--my, 30%), rgba(214, 179, 106, 0.2), transparent 70%),
    #fffdf7;
  box-shadow: 0 30px 60px -28px rgba(20, 26, 46, 0.35);
  overflow: hidden;
}

.lw-page:not(.lw-js) .lw-file + .lw-file {
  margin-top: 16px;
}

/* With JS the files share one grid cell; only the active one shows. */
.lw-js .lw-file {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transform: translateX(40px) rotate(1.5deg);
  transform-origin: 0 100%;
  transition:
    opacity 0.55s var(--lw-ease),
    transform 0.7s var(--lw-ease),
    visibility 0s linear 0.7s;
}

.lw-js .lw-file.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.lw-file-watermark {
  position: absolute;
  right: 18px;
  bottom: -30px;
  font-family: var(--lw-display);
  font-size: clamp(140px, 16vw, 240px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176, 134, 64, 0.22);
  pointer-events: none;
}

.lw-file-icon img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 20px 26px rgba(176, 134, 64, 0.3));
}

.lw-file.is-active .lw-file-icon img {
  animation: lw-float 5s ease-in-out infinite;
}

@keyframes lw-float {
  50% { transform: translateY(-10px) rotate(-2deg); }
}

.lw-file-body {
  position: relative;
}

.lw-page .lw-file h3 {
  margin: 0 0 16px;
  font-family: var(--lw-display);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--lw-ink);
}

.lw-page .lw-file p {
  margin: 0;
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  line-height: 1.8;
  color: var(--lw-muted);
}

.lw-page .lw-file p strong {
  color: var(--lw-ink);
}

/* Contents slide in a beat after the file. */
.lw-js .lw-file .lw-file-body > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--lw-ease), transform 0.6s var(--lw-ease);
}

.lw-js .lw-file.is-active .lw-file-body > * {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;
}

.lw-js .lw-file.is-active .lw-file-body > p {
  transition-delay: 0.28s;
}

/* ---------- Bands (both CTAs) ---------- */
.lw-band {
  position: relative;
  padding-block: clamp(72px, 9vw, 140px);
  overflow: hidden;
  isolation: isolate;
  background: #efe8da;
}

.lw-band-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.lw-band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}

.lw-band-copy {
  max-width: 600px;
}

.lw-band-copy p {
  margin: 0 0 30px;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.75;
  color: #3e4150;
}

.lw-rule {
  display: block;
  width: 120px;
  height: 2px;
  margin: 22px 0;
  background: linear-gradient(90deg, var(--lw-brass), var(--lw-gold-soft));
  transform-origin: 0 50%;
}

.lw-js .lw-band-copy[data-reveal] > .lw-rule {
  transform: scaleX(0);
}

.lw-js .lw-band-copy[data-reveal].is-in > .lw-rule {
  transform: scaleX(1);
  transition-duration: 1.2s;
}

/* Build: the photo eases from a slight zoom to rest. */
.lw-build .lw-band-photo img {
  transform: scale(calc(1.12 - var(--p, 1) * 0.12));
  transform-origin: 85% 50%;
}

/* Ready: the photo opens from a slit, both ways with the scroll. */
.lw-ready {
  background: var(--lw-ivory);
}

.lw-ready .lw-band-photo {
  clip-path: inset(calc((1 - var(--p, 1)) * 42%) calc((1 - var(--p, 1)) * 18%) round calc((1 - var(--p, 1)) * 40px));
}

.lw-shine {
  background: linear-gradient(100deg, var(--lw-ink) 40%, var(--lw-brass) 50%, var(--lw-ink) 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lw-shine 6s ease-in-out infinite;
}

@keyframes lw-shine {
  0%, 30% { background-position: 100% 0; }
  70%, 100% { background-position: 0 0; }
}

.lw-motes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.lw-motes i {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lw-gold);
  box-shadow: 0 0 10px 2px rgba(214, 179, 106, 0.6);
  opacity: 0;
  animation: lw-mote 9s linear infinite;
}

.lw-motes i:nth-child(1) { left: 54%; animation-delay: 0s; }
.lw-motes i:nth-child(2) { left: 62%; animation-delay: 1.4s; width: 3px; height: 3px; }
.lw-motes i:nth-child(3) { left: 70%; animation-delay: 2.8s; }
.lw-motes i:nth-child(4) { left: 78%; animation-delay: 0.7s; width: 4px; height: 4px; }
.lw-motes i:nth-child(5) { left: 86%; animation-delay: 4.2s; }
.lw-motes i:nth-child(6) { left: 94%; animation-delay: 3.5s; width: 3px; height: 3px; }
.lw-motes i:nth-child(7) { left: 58%; animation-delay: 5.6s; width: 3px; height: 3px; }
.lw-motes i:nth-child(8) { left: 66%; animation-delay: 6.3s; }
.lw-motes i:nth-child(9) { left: 74%; animation-delay: 7s; width: 4px; height: 4px; }
.lw-motes i:nth-child(10) { left: 82%; animation-delay: 2.1s; width: 3px; height: 3px; }
.lw-motes i:nth-child(11) { left: 90%; animation-delay: 4.9s; }
.lw-motes i:nth-child(12) { left: 50%; animation-delay: 7.7s; width: 3px; height: 3px; }

@keyframes lw-mote {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate(-30px, -420px); opacity: 0; }
}

/* ---------- Cases: stacked records ---------- */
.lw-cases {
  background: var(--lw-ivory);
}

.lw-records {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.lw-record {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid rgba(176, 134, 64, 0.3);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 70px -40px rgba(20, 26, 46, 0.45);
  overflow: hidden;
}

.lw-js .lw-record[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.9s var(--lw-ease), transform 0.9s var(--lw-ease);
}

.lw-js .lw-record[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.lw-record-photo {
  position: relative;
  overflow: hidden;
}

.lw-record-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--lw-ease);
}

.lw-record:hover .lw-record-photo img {
  transform: scale(1.05);
}

.lw-record-body {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(20, 26, 46, 0.04) 33px 34px),
    #fffdf7;
}

.lw-record-no {
  font-family: var(--lw-display);
  font-size: 18px;
  font-style: italic;
  color: var(--lw-brass);
}

.lw-page .lw-record h3 {
  margin: 6px 0 22px;
  font-family: var(--lw-display);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--lw-ink);
}

.lw-record dl {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.lw-record dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lw-oxblood);
}

.lw-record dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lw-muted);
}

.lw-ruling {
  padding: 16px 20px;
  border-left: 3px solid var(--lw-brass);
  border-radius: 0 12px 12px 0;
  background: rgba(214, 179, 106, 0.14);
}

.lw-ruling-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lw-brass);
}

.lw-ruling p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lw-ink);
}

.lw-ruling-fig {
  font-family: var(--lw-display);
  font-size: 1.5em;
  color: var(--lw-brass);
}

/* The stamp: thumps down when the record arrives. */
.lw-stamp {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  display: grid;
  place-items: center;
  align-content: center;
  width: 108px;
  height: 108px;
  border: 3px double var(--lw-oxblood);
  border-radius: 50%;
  color: var(--lw-oxblood);
  transform: rotate(-12deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.lw-stamp b {
  font-family: var(--lw-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.lw-stamp small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lw-js .lw-record .lw-stamp {
  opacity: 0;
  transform: rotate(-30deg) scale(2.2);
}

.lw-js .lw-record.is-in .lw-stamp {
  animation: lw-stamp 0.55s cubic-bezier(0.5, 0, 0.75, 0) 0.6s forwards;
}

@keyframes lw-stamp {
  70% { opacity: 0.9; transform: rotate(-12deg) scale(0.92); }
  100% { opacity: 0.85; transform: rotate(-12deg) scale(1); }
}

/* Pin and stack, only where a whole record fits on screen. */
@media (min-width: 992px) and (min-height: 760px) {
  .lw-record {
    position: sticky;
    top: calc(var(--lw-top) + var(--n) * 22px);
    min-height: min(560px, calc(100vh - var(--lw-top) - 80px));
  }
}

/* ---------- Convert ---------- */
.lw-convert {
  background: linear-gradient(180deg, var(--lw-paper), var(--lw-ivory));
}

.lw-convert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

.lw-ticks {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.lw-meter {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: rgba(176, 134, 64, 0.18);
  overflow: hidden;
}

.lw-meter i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--lw-gold), var(--lw-brass));
  transform: scaleY(var(--p, 1));
  transform-origin: 50% 0;
}

.lw-ticks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--lw-line);
  border-radius: 14px;
  background: #fff;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--lw-ink);
  transition: border-color 0.5s var(--lw-ease), box-shadow 0.5s var(--lw-ease), transform 0.5s var(--lw-ease);
}

.lw-ticks svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.lw-ticks circle {
  fill: rgba(214, 179, 106, 0.16);
  stroke: var(--lw-brass);
  stroke-width: 1.2;
  transition: fill 0.5s var(--lw-ease);
}

.lw-ticks svg path {
  fill: none;
  stroke: var(--lw-brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--lw-ease) 0.1s, stroke 0.5s;
}

.lw-js .lw-ticks li:not(.is-lit) svg path {
  stroke-dashoffset: 16;
}

.lw-ticks li.is-lit {
  border-color: rgba(176, 134, 64, 0.45);
  box-shadow: 0 14px 30px -18px rgba(176, 134, 64, 0.6);
  transform: translateX(6px);
}

.lw-ticks li.is-lit circle {
  fill: var(--lw-ink);
}

.lw-ticks li.is-lit svg path {
  stroke: var(--lw-gold);
}

.lw-convert-art {
  position: relative;
  translate: calc(var(--tx, 0) * 1px) calc(var(--ty, 0) * 1px);
  transition: translate 0.6s var(--lw-ease);
}

.lw-convert-plate {
  position: absolute;
  inset: 6% -4% -4% 6%;
  border: 1px solid rgba(176, 134, 64, 0.5);
  border-radius: 28px;
}

.lw-convert-art img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 40px 70px -36px rgba(20, 26, 46, 0.5);
}

/* ---------- Choose: articles under seal ---------- */
.lw-choose {
  background:
    radial-gradient(800px 400px at 50% 0, rgba(214, 179, 106, 0.16), transparent 70%),
    var(--lw-paper);
}

.lw-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.lw-article {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(176, 134, 64, 0.25);
  border-radius: 20px;
  background: #fffdf7;
  overflow: hidden;
  isolation: isolate;
}

.lw-js .lw-articles[data-reveal].is-in > .lw-article {
  transition:
    opacity 0.8s var(--lw-ease) calc(var(--i) * 90ms),
    transform 0.5s var(--lw-ease),
    box-shadow 0.5s var(--lw-ease),
    border-color 0.5s var(--lw-ease);
}

/* Edge light that follows the pointer. */
.lw-article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(214, 179, 106, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--lw-ease);
}

.lw-article:hover,
.lw-js .lw-articles[data-reveal].is-in > .lw-article:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 134, 64, 0.6);
  box-shadow: 0 30px 50px -28px rgba(20, 26, 46, 0.4);
}

.lw-article:hover::before {
  opacity: 1;
}

.lw-article-no {
  display: block;
  margin-bottom: 16px;
  font-family: var(--lw-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--lw-brass);
  transition: color 0.5s var(--lw-ease);
}

.lw-article:hover .lw-article-no {
  color: var(--lw-brass);
}

.lw-page .lw-article h3 {
  margin: 0 0 12px;
  font-family: var(--lw-display);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--lw-ink);
}

.lw-page .lw-article p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--lw-muted);
}

.lw-seal-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 56px);
}

.lw-seal {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 10px 14px rgba(142, 42, 50, 0.35));
}

.lw-seal-wax {
  fill: var(--lw-oxblood);
}

.lw-seal-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
}

.lw-seal-mark {
  fill: none;
  stroke: var(--lw-gold-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lw-js .lw-seal-wrap[data-reveal] > .lw-seal {
  transform: scale(1.8) rotate(-25deg);
}

.lw-js .lw-seal-wrap[data-reveal].is-in > .lw-seal {
  transform: none;
  transition: opacity 0.4s ease 0.3s, transform 0.6s cubic-bezier(0.5, 0, 0.6, 1.4) 0.3s;
}

/* ---------- FAQ ----------
   The shared accordion, re-inked. style.css paints #faq by id, so the page
   selector here has to carry the id too. */
.lw-page #faq.lw-faq {
  padding-block: var(--lw-sec-y);
  background-image: none;
  background-color: var(--lw-ivory);
}

.lw-page .lw-faq .faq-title {
  font-family: var(--lw-display);
  font-weight: 600;
  color: var(--lw-ink);
}

.lw-page .lw-faq .faq-card {
  background: linear-gradient(160deg, var(--lw-navy), var(--lw-night));
}

.lw-page .lw-faq .faq-list details.is-open,
.lw-page .lw-faq .faq-list details[open] {
  border-color: var(--lw-brass);
}

.lw-page .lw-faq .faq-list details.is-open > summary,
.lw-page .lw-faq .faq-list details[open] > summary,
.lw-page .lw-faq .faq-list details.is-open summary::after {
  color: var(--lw-brass);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .lw-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lw-file {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lw-file-icon img {
    max-width: 180px;
  }
}

@media (max-width: 991px) {
  .lw-hero-inner,
  .lw-why .lw-head,
  .lw-why-grid,
  .lw-how-grid,
  .lw-convert-grid,
  .lw-files,
  .lw-record {
    grid-template-columns: 1fr;
  }

  .lw-hero-stage {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .lw-why-art {
    max-width: 420px;
    margin-inline: auto;
  }

  .lw-how-art {
    position: relative;
    top: 0;
    max-width: 520px;
    margin-inline: auto;
  }

  .lw-files-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .lw-tab {
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
  }

  .lw-tab:hover,
  .lw-tab[aria-selected="true"] {
    transform: translateY(-2px);
  }

  .lw-tab[aria-selected="true"]::after {
    display: none;
  }

  .lw-record-photo {
    aspect-ratio: 4 / 3;
  }

  /* The photo would hide the copy at this width; let it sit beneath. */
  .lw-band {
    padding-top: 0;
  }

  .lw-band-photo {
    position: relative;
    z-index: 0;
    aspect-ratio: 2162 / 727;
    margin-bottom: 36px;
  }

  .lw-band-photo img {
    object-position: 100% 50%;
  }

  .lw-motes {
    display: none;
  }
}

@media (max-width: 767px) {
  .lw-articles {
    grid-template-columns: 1fr;
  }

  .lw-band-photo {
    aspect-ratio: 16 / 9;
  }

  .lw-thread {
    padding-left: 58px;
  }

  .lw-thread-line {
    left: 21px;
  }

  .lw-roman {
    left: -58px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .lw-pad li {
    min-height: 0;
    padding: 12px 16px 14px 0;
    align-items: flex-start;
  }

  .lw-pad {
    background:
      linear-gradient(90deg, transparent 47px, rgba(142, 42, 50, 0.45) 47px 48px, transparent 48px),
      #fffdf4;
  }

  .lw-pad li + li {
    border-top: 1px solid rgba(36, 74, 140, 0.12);
  }

  .lw-pad-no {
    flex-basis: 48px;
    font-size: 18px;
  }

  .lw-stamp {
    width: 84px;
    height: 84px;
  }

  .lw-stamp b {
    font-size: 26px;
  }

  .lw-record h3 {
    padding-right: 84px;
  }

  .lw-seal-ring {
    width: 30%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lw-page *,
  .lw-page *::before,
  .lw-page *::after {
    animation: none !important;
    transition: none !important;
  }

  .lw-js [data-reveal] > *,
  .lw-js .lw-articles[data-reveal] > .lw-article,
  .lw-js .lw-record[data-reveal],
  .lw-js .lw-rise,
  .lw-js .lw-hero-art,
  .lw-js .lw-record .lw-stamp,
  .lw-js .lw-seal-wrap[data-reveal] > .lw-seal {
    opacity: 1;
    transform: none;
  }

  .lw-js .lw-word > span,
  .lw-js .lw-band-copy[data-reveal] > .lw-rule {
    transform: none;
  }

  .lw-js .lw-flourish path,
  .lw-js .lw-arch-1,
  .lw-js .lw-arch-2 {
    stroke-dashoffset: 0;
  }

  .lw-js .lw-flourish circle {
    transform: none;
  }

  .lw-stamp {
    transform: rotate(-12deg) !important;
  }

  .lw-motes {
    display: none;
  }
}
