/* ==========================================================================
   1983CIVILRIGHTS.COM: additions on top of the re-toned system
   Loaded after cr.css and cr.motion.css. retone.py never touches this file,
   so layout additions live here. Colors are tokens only (SOUL.md 5.1).
   ========================================================================== */

/* ---- line icons on cards ------------------------------------------------- */
.ico{width:34px;height:34px;display:block;margin-bottom:12px;color:var(--gold-2)}
.dark .ico,.darker .ico{color:var(--gold)}
.ico svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ---- photo cards used for services and statuses ------------------------- */
.postcard .p-media{aspect-ratio:3/2}
.postcard.trackcard{padding-top:0}
.postcard.trackcard::before{z-index:2;left:0;right:0;border-radius:0}
.postcard .p-body .track-badge{margin-bottom:10px}
.postgrid.four{grid-template-columns:repeat(4,1fr)}
@media(max-width:1060px){.postgrid.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.postgrid.four{grid-template-columns:1fr}}
.postcard .p-media img.shot{transition:transform .5s ease}

/* ---- feature blocks (photo beside text), alternating -------------------- */
.feature.flip{grid-template-columns:.95fr 1.05fr}
.feature.flip .f-media{order:2}
@media(max-width:860px){.feature.flip{grid-template-columns:1fr}.feature.flip .f-media{order:0}}
.feature .f-media img.shot{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.feature+.feature{margin-top:var(--s-4)}
.feature .f-body h3{font-size:clamp(1.3rem,2.4vw,1.75rem);margin-bottom:.4em}
.feature .f-body ul{margin:.6rem 0 1rem;padding-left:1.15em}
.feature .f-body li{margin:.35em 0;font-size:.97rem}
.feature .f-body .ctarow{margin-top:14px}

/* ---- attorney strip ------------------------------------------------------ */
.team{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-3)}
@media(max-width:760px){.team{grid-template-columns:1fr}}
.team a{display:flex;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--radius);padding:14px 16px;color:var(--ink);text-decoration:none;transition:border-color .2s,transform .2s}
.team a:hover{border-color:var(--gold-2);transform:translateY(-2px);text-decoration:none}
.team img{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:2px solid var(--ivory-2)}
.team b{display:block;font-family:var(--font-display);font-size:1.05rem;font-weight:600}
.team small{display:block;color:var(--muted);font-size:.84rem;line-height:1.4}

/* ---- tool preview (a static mock of the result, no script) ------------- */
.mock{background:var(--surface);border:1px solid rgba(238,223,176,.25);border-radius:var(--radius);padding:18px 20px;color:var(--ink-soft);
  box-shadow:var(--shadow-lg);position:relative;transform:rotate(-1.2deg);max-width:520px;margin:0 auto}
@media(max-width:860px){.mock{transform:none;max-width:none}}
.mock .m-head{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:10px}
.mock .m-bar{height:5px;background:var(--ivory-2);border-radius:3px;margin-bottom:14px;overflow:hidden}
.mock .m-bar i{display:block;width:100%;height:100%;background:linear-gradient(90deg,var(--gold-2),var(--gold))}
.mock .m-verdict{font-family:var(--font-display);font-size:1.05rem;color:var(--ink);line-height:1.45;margin:0 0 12px}
.mock .m-verdict mark{background:#F7F1E4;color:var(--gold-2);padding:0 .2em;border-radius:4px}
.mock .m-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:9px 11px;border-radius:var(--radius-sm);border:1px solid var(--line-strong);margin:0 0 7px;font-size:.84rem}
.mock .m-row .lvl{font-size:.64rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:999px;border:1px solid currentColor;white-space:nowrap;margin-top:1px}
.mock .m-row.risk{background:#FBEDE4;border-color:#7A3319;color:#7A3319}
.mock .m-row.warn{background:#F7F1E4;border-color:var(--gold-2);color:var(--gold-2)}
.mock .m-row.ok{background:#EAF3EC;border-color:#154A33;color:#154A33}
.mock .m-row b{display:block;font-weight:700}
.mock .m-foot{font-size:.76rem;color:var(--muted);margin:10px 0 0}
.tool-split{display:grid;grid-template-columns:1.05fr .95fr;gap:var(--s-5);align-items:center}
@media(max-width:860px){.tool-split{grid-template-columns:1fr;gap:var(--s-4)}}

/* ---- photo band with copy over it --------------------------------------- */
.band{position:relative;border-radius:var(--radius-lg);overflow:hidden;min-height:340px;display:flex;align-items:flex-end;color:#fff;
  border:1px solid var(--line-strong)}
.band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.band .b-copy{position:relative;padding:var(--s-5) var(--s-4);max-width:60ch;
  background:linear-gradient(180deg,rgba(15,31,61,0) 0%,rgba(15,31,61,.86) 45%);width:100%}
@media(max-width:560px){.band .b-copy{padding:var(--s-4) 20px}}
.band h2{color:#fff;margin-bottom:.4em}
.band p{color:#D5DBE6;margin-bottom:1rem}

/* ---- numbered process with photos --------------------------------------- */
.steps{counter-reset:step;display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-3)}
@media(max-width:900px){.steps{grid-template-columns:1fr}}
.steps .card{position:relative;padding-top:28px}
.steps .card::before{counter-increment:step;content:counter(step);position:absolute;top:-16px;left:var(--s-3);width:36px;height:36px;border-radius:50%;
  background:var(--gold-2);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-family:var(--font-display)}
.dark .steps .card::before{background:var(--gold);color:var(--indigo-2)}

/* ==========================================================================
   DESIGN PASS 3 (2026-09-16): serious, and we have this
   Mobbin references: Harvey and Legora heroes (full-bleed photograph of the
   people at work, copy on a dark left gradient, a quiet credentials rule
   underneath); Wise and YLLW service rows (equal photo cards, one ratio);
   Origin and Loom trust bands (a calm dark band, a few large serif figures).
   Every color is a token or a pair already in tools/retone.py's audit table.
   Motion is light: one drifting gold pool, one slow push-in on the
   photograph, an optional low-opacity loop, all off under reduced motion.
   ========================================================================== */

/* ---- 1. Photographic hero ------------------------------------------------ */
.hero.hero-photo{padding:0;min-height:min(84vh,720px);display:flex;flex-direction:column;justify-content:flex-end;border-bottom:0}
.hero-photo .hero-bg{position:absolute;inset:0;z-index:0;overflow:hidden;background:var(--indigo-2)}
.hero-photo .hero-bg .shot,.hero-photo .hero-bg .hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:64% 42%;display:block}
.hero-photo .hero-bg::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(15,31,61,.97) 0%,rgba(15,31,61,.9) 36%,rgba(15,31,61,.58) 64%,rgba(15,31,61,.3) 100%),
             linear-gradient(180deg,rgba(15,31,61,.42) 0%,rgba(15,31,61,0) 28%,rgba(15,31,61,.62) 100%)}
.hero-photo::before{z-index:1}                       /* the gold pool drifts over the picture */
.hero-photo>.wrap{position:relative;z-index:2;flex:1 1 auto;display:flex;align-items:center;padding-top:84px;padding-bottom:56px}
.hero-photo .hero-copy{max-width:660px}
.hero-photo h1{max-width:15ch;font-size:clamp(2.5rem,5.4vw,4.3rem);line-height:1.04;text-shadow:0 2px 24px rgba(15,31,61,.35)}
.hero-photo .lede{max-width:56ch;font-size:1.06rem;line-height:1.6}
.hero-photo .ctarow{margin-top:30px}
.hero-photo .hero-note{margin:22px 0 0;font-size:.9rem;color:#B3BBCC;max-width:54ch}
.hero-photo .hero-note a{color:var(--gold-soft);font-weight:600}
.hero-cred{position:relative;z-index:2;border-top:1px solid rgba(238,223,176,.22);background:rgba(15,31,61,.58);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hero-cred ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr)}
.hero-cred li{padding:18px 24px 18px 24px;font-size:.88rem;line-height:1.45;color:#CDD3E0;border-left:1px solid rgba(238,223,176,.18)}
.hero-cred li:first-child{padding-left:0;border-left:0}
.hero-cred li b{display:block;font-family:var(--font-display);font-weight:600;font-size:1.06rem;color:#fff;margin-bottom:2px;letter-spacing:-.01em}
.hero-cred li a{color:#fff;font-weight:600}
@media(max-width:1000px){.hero-cred ul{grid-template-columns:repeat(2,1fr)}
  .hero-cred li:nth-child(3){padding-left:0;border-left:0}.hero-cred li{padding-top:14px;padding-bottom:14px}}
@media(max-width:900px){.hero.hero-photo{min-height:0}.hero-photo>.wrap{padding-top:72px;padding-bottom:52px}
  .hero-photo .hero-bg .shot,.hero-photo .hero-bg .hero-video{object-position:70% 40%}
  .hero-photo .hero-bg::after{background:linear-gradient(90deg,rgba(15,31,61,.94) 0%,rgba(15,31,61,.86) 60%,rgba(15,31,61,.7) 100%)}}
@media(max-width:560px){.hero-cred ul{grid-template-columns:1fr}
  .hero-cred li{padding:12px 0;border-left:0;border-top:1px solid rgba(238,223,176,.14)}.hero-cred li:first-child{border-top:0}
  .hero-photo>.wrap{padding-top:56px;padding-bottom:40px}}

/* ---- 2. Even grids: one ratio per row, equal card heights ---------------- */
.postgrid .postcard figure.framed.p-media{aspect-ratio:3/2}
.postgrid.four .postcard figure.framed.p-media{aspect-ratio:4/3}
.postgrid .postcard,.grid .card,.steps .card,.newsrow .lawchange{height:100%}
.grid a.card{display:flex;flex-direction:column}
.grid a.card .more{margin-top:auto;padding-top:14px}
.grid a.card p:last-of-type{margin-bottom:0}
.newsrow .lawchange{display:flex;flex-direction:column}
.newsrow .lawchange .src{margin-top:auto;padding-top:6px}
.steps.six{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.steps.six{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.steps.six{grid-template-columns:1fr}}
.g4.even{grid-template-columns:repeat(4,1fr)}
@media(max-width:920px){.g4.even{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.g4.even{grid-template-columns:1fr}}

/* ---- 3. Trust band: large serif figures on a calm dark ground ----------- */
.stats.band-stats{margin-top:var(--s-4)}
.stats.band-stats .stat .n{display:flex;align-items:flex-end;min-height:4.2rem;font-size:clamp(1.35rem,2.1vw,1.7rem);line-height:1.15}
.stats.band-stats .stat .n.big{font-size:clamp(2rem,3.4vw,2.8rem);line-height:1}
@media(max-width:900px){.stats.band-stats .stat .n{min-height:0}}

/* ---- 4. Ambient light on dark sections (CSS pool + optional loop) -------- */
.ambient{position:relative;overflow:hidden}
.ambient>.wrap{position:relative;z-index:1}
.ambient::before{content:"";position:absolute;inset:-25% -15%;z-index:0;pointer-events:none;
  background:radial-gradient(34% 48% at 50% 50%,rgba(201,162,74,.10),rgba(201,162,74,0) 72%);
  transform:translate3d(12%,8%,0);animation:cr-drift 24s ease-in-out infinite alternate-reverse;will-change:transform}
.ambient .amb-video{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;opacity:0;
  transition:opacity 1.6s ease;pointer-events:none;mix-blend-mode:screen}
.ambient.is-playing .amb-video{opacity:.14}
.ambient.no-video .amb-video{display:none}
@media(prefers-reduced-motion:reduce){.ambient::before{display:none}.ambient .amb-video{display:none}}
@media print{.ambient::before,.ambient .amb-video{display:none}}

/* ---- 5. Rhythm and micro-motion ------------------------------------------ */
h2{letter-spacing:-.02em}
.sec-head h2{font-size:clamp(1.7rem,3.4vw,2.5rem);line-height:1.15}
.sec-head p{color:var(--ink-soft)}
.btn-gold:hover{box-shadow:0 10px 24px rgba(201,162,74,.28)}
.postgrid .reveal:nth-child(2),.grid .reveal:nth-child(2),.newsrow .reveal:nth-child(2){transition-delay:.08s}
.postgrid .reveal:nth-child(3),.grid .reveal:nth-child(3),.newsrow .reveal:nth-child(3){transition-delay:.16s}
.postgrid .reveal:nth-child(4),.grid .reveal:nth-child(4){transition-delay:.24s}
.postcard .p-media img.shot,.feature .f-media img.shot{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.postcard:hover .p-media img.shot{transform:scale(1.04)}
.feature:hover .f-media img.shot{transform:scale(1.02)}
.postcard .postmeta .cat{color:var(--gold-2);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.72rem}
.postcard .postmeta .cat::before{content:"";display:inline-block;width:18px;height:1px;background:var(--gold-2);margin-right:8px;vertical-align:middle}
.mock{transform:rotate(-1.2deg) translateZ(0);transition:transform .6s ease}
.tool-split:hover .mock{transform:rotate(0) translateZ(0)}
@media(prefers-reduced-motion:reduce){.postcard:hover .p-media img.shot,.feature:hover .f-media img.shot,.tool-split:hover .mock{transform:none}}

/* ---- 6. Reviewer requests (evenness sweep, 2026-09-16) ------------------ */
@media(max-width:480px){.btn{white-space:normal;height:auto;line-height:1.3;text-align:center;padding-top:12px;padding-bottom:12px;min-height:44px}}
.wrap>figure.framed{margin-top:var(--s-3)}
@media(max-width:560px){header.nav .nav-cta .btn{display:inline-flex;align-items:center;min-height:var(--tap)}}
.wrap>.prose+.grid,.wrap>.prose+.postgrid,.wrap>.prose+figure.framed,.wrap>.grid+.prose,.wrap>.postgrid+.prose{margin-top:var(--s-4)}
.grid.g2>.sibling:first-child:nth-last-child(odd){grid-column:1/-1}
.grid+.prose,.steps+.prose{margin-top:1.6rem}
.prose+.steps{margin-top:2rem}
.wrap>figure.framed+.grid{margin-top:var(--s-4)}
.grid>.sibling{margin:0}

