/* ============================================================
   Kaleo Legal — modern business-law design system (v3)
   Direction: 80% white / 15% blue / 5% green. White-dominant,
   AmLaw-100 polish, Apple-simple, Stripe-clear. Bright Kaleo
   blue is the action color; logo green is a 5% accent; deep
   navy is reserved for occasional deep sections. Serif display
   (Source Serif 4) for credibility + Inter body for clarity.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Inter:wght@400;450;500;600&display=swap');

:root {
  /* ---- Color: neutrals (white-dominant) ---- */
  --bg:        #FFFFFF;                    /* background white */
  --surface:   #FFFFFF;                    /* card white */
  --surface-2: #F6F8FA;                    /* light gray panel */
  --fg:        #1A1A1A;                    /* primary text */
  --fg-soft:   #333333;
  --muted:     #555555;                    /* secondary text */
  --border:    #E8EDF2;
  --border-strong: #D2DBE4;

  /* ---- Brand: Kaleo blue (action) + green (5% accent) + navy (deep) ----
     Primary #0A84D6, secondary #2B9BE8, green #A8CF3A, navy #12324A.
     accent-ink is a slightly deepened blue for AA text on white. */
  --ink:       #12324A;                    /* deep navy — occasional deep sections */
  --ink-2:     #0E2942;                    /* darker navy */
  --accent:    #0A84D6;                    /* bright Kaleo blue — primary action / large use */
  --accent-2:  #2B9BE8;                    /* secondary blue */
  --accent-ink:#0A6FB4;                    /* blue for TEXT on white (AA ~4.6:1) */
  --accent-on-ink:#5BB6F0;                 /* blue for text/marks on navy (AA) */
  --green:     #A8CF3A;                    /* logo green — 5% accent, fills/marks only */
  --green-ink: #5E7A12;                    /* green for TEXT on white (AA) */
  --on-ink:    #F4F8FC;                    /* text on navy */
  --on-ink-mut:#A9C2D6;

  /* ---- Status ---- */
  --success:   #2F8F4E;
  --warn:      #B5701A;

  /* ---- Type ---- */
  --font-display: 'Source Serif 4', 'Tiempos Headline', 'Iowan Old Style', Georgia, serif;
  --font-serif:   'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'SFMono-Regular', ui-monospace, Menlo, monospace;

  /* ---- Type scale (1.25) ---- */
  --t-display: clamp(2.8rem, 1.8rem + 4.4vw, 5.2rem);
  --t-h1:      clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --t-h2:      clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem);
  --t-h3:      clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-lead:    clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --t-body:    1.0625rem;
  --t-small:   0.875rem;
  --t-cap:     0.75rem;

  /* ---- Space ---- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem; --sp-10: 8rem;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --shadow-1: 0 1px 2px rgba(18,50,74,0.05), 0 4px 16px rgba(18,50,74,0.05);
  --shadow-2: 0 18px 50px rgba(18,50,74,0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Type helpers ----
   Libre Caslon Display ships a single 400 weight — its display cut already
   carries the authority, so we set weight:400 (no faux-bold) and ease off the
   negative tracking Fraunces needed; Caslon's formal serifs collide if over-
   tightened. */
.display { font-family: var(--font-display); font-weight: 400; font-size: var(--t-display);
  line-height: 1.06; letter-spacing: -0.012em; }
h1, .h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h1);
  line-height: 1.1; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h2);
  line-height: 1.16; letter-spacing: -0.008em; }
h3, .h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--t-h3);
  line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-family: var(--font-serif); font-size: var(--t-lead); line-height: 1.5;
  color: var(--fg-soft); max-width: 60ch; }
.body { font-size: var(--t-body); color: var(--fg-soft); max-width: 65ch; }
p { text-wrap: pretty; }

.kicker {
  font-family: var(--font-mono); font-size: var(--t-cap); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-ink);
}
.kicker--ink { color: var(--accent-on-ink); } /* small uppercase on navy — AA 6.0:1 */
.kicker .mark { color: var(--border-strong); margin: 0 0.5em; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--ink { background: var(--ink); color: var(--on-ink); position: relative; isolation: isolate; }
/* Faint geometric texture on every navy band — lifts flat navy without hurting
   text contrast. Sits behind content via a low-opacity ::before overlay. */
.section--ink::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('tex-navy-dotmatrix.png') center/cover no-repeat; opacity: 0.10;
}
.section--ink > * { position: relative; z-index: 0; }
.section--ink .lead, .section--ink .body { color: var(--on-ink-mut); }
.section--tint { background: var(--surface-2); }
/* Opt-in textured tint band — add .section--tint-tex for a faint light texture. */
.section--tint-tex { background: var(--surface-2); position: relative; isolation: isolate; }
.section--tint-tex::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('tex-isogrid.png') center/cover no-repeat; opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.section--tint-tex > * { position: relative; z-index: 0; }
.rule { height: 1px; background: var(--border); border: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--t-small);
  letter-spacing: 0.01em; padding: 0.85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--ink-2); }
/* Fill uses --accent-ink so white label clears AA (6.3:1); --accent was 3.8:1. */
.btn--accent { background: var(--accent-ink); color: #fff; box-shadow: 0 6px 18px rgba(10,111,180,0.22); }
.btn--accent:hover { background: #08598F; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--on-ink { background: transparent; color: var(--on-ink); border-color: rgba(255,255,255,0.28); }
.btn--on-ink:hover { background: rgba(255,255,255,0.08); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  font-weight: 600; font-size: var(--t-small); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid var(--accent);
  padding-bottom: 2px; transition: gap 0.2s var(--ease);
}
.textlink:hover { gap: 0.65rem; }
.textlink--on-ink { color: var(--on-ink); }

/* ---- Header / nav ---- */
.nav {
  position: sticky; top: 0; z-index: 60; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--fg); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem;
  letter-spacing: -0.01em; }
.brand__name span { color: var(--accent-ink); }
/* real Kaleo logo image */
.brand__logo { height: 30px; width: auto; display: block; }
.foot .brand__logo { height: 28px; filter: brightness(0) invert(1); opacity: 0.95; } /* white-out on dark footer */
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { text-decoration: none; color: var(--fg-soft); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.005em; transition: color 0.18s; position: relative; }
.nav__links a:hover { color: var(--fg); }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.22s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-6); transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }

/* practice-area tile */
.pa {
  display: flex; flex-direction: column; gap: 0.75rem; padding: var(--sp-5);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--fg); min-height: 132px; justify-content: space-between;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.pa:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.pa__ico { width: 26px; height: 26px; color: var(--accent-ink); }
.pa__name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.25; }
.pa__more { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }

/* attorney card */
.atty { text-decoration: none; color: var(--fg); display: flex; flex-direction: column; gap: 0; }
.atty__photo { aspect-ratio: 4/5; background: var(--surface-2); border-radius: var(--radius);
  overflow: hidden; position: relative; border: 1px solid var(--border); }
.atty__photo .ph-img { position: absolute; inset: 0; }
.atty__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center top; filter: grayscale(1) contrast(1.02); transition: filter 0.3s var(--ease), transform 0.4s var(--ease); }
.atty:hover .atty__photo img { filter: grayscale(0); transform: scale(1.03); }
.atty__name { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin-top: 0.9rem;
  letter-spacing: -0.01em; }
.atty__role { color: var(--muted); font-size: 0.9rem; margin-top: 0.1rem; }

/* ---- Placeholder image ---- */
.ph-img {
  background:
    linear-gradient(135deg, transparent 47%, var(--border) 47%, var(--border) 53%, transparent 53%),
    var(--surface-2);
  background-size: 22px 22px, auto;
  display: grid; place-items: center; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.ph-img span { background: var(--bg); padding: 0.25rem 0.6rem; border-radius: 2px; border: 1px solid var(--border); }

/* ---- Stats ---- */
.stat__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem,1.6rem+3vw,3.6rem);
  line-height: 1; letter-spacing: -0.02em; }
.stat__lbl { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; max-width: 22ch; }
.section--ink .stat__lbl { color: var(--on-ink-mut); }

/* ---- Footer ---- */
.foot { background: var(--ink-2); color: var(--on-ink); padding-block: var(--sp-8) var(--sp-6); }
.foot a { color: var(--on-ink-mut); text-decoration: none; transition: color 0.18s; }
.foot a:hover { color: var(--on-ink); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); }
.foot__title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-ink-mut); margin-bottom: 1rem; }
.foot__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 1rem; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: var(--on-ink-mut); }

/* ---- Eyebrow rows / labels for wireframes ---- */
.wf-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }

/* ---- Reveal on scroll ----
   One-shot entrance. M3 standard easing (front-loaded, settles fast); a
   12px lift over 0.55s reads as "arriving" without drawing attention to
   itself. Children of a [data-stagger] container cascade in sequence via
   --i set in JS. Fully stripped under prefers-reduced-motion. */
.reveal { opacity: 0; transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.2,0,0,1), transform 0.55s cubic-bezier(0.2,0,0,1); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
  html { scroll-behavior: auto; }
  .btn, .btn .arrow, .textlink, a, .atty__photo img, .pa, .card { transition: none !important; }
}

/* ---- Subtle elements ---- */
/* Hairline accent rule trailing each kicker — a quiet brand tick. */
.kicker--rule { display: inline-flex; align-items: center; gap: 0.7rem; }
.kicker--rule::after { content: ''; width: 28px; height: 1px; background: var(--accent);
  opacity: 0.7; }
/* ---------- Brand geometric device (derived from the Kaleo mark) ----------
   The logo is two interlocking right-angle "L" blocks. We abstract that to a
   monoline tick that inherits currentColor, so it reads on ink, light, or
   accent contexts. Used sparingly: section dividers + one hero watermark. */
.kglyph { display: inline-block; vertical-align: middle; color: var(--accent-ink); }
.kglyph svg { display: block; width: 100%; height: 100%; }

/* Centered divider: hairline — tick — hairline. Quiet section punctuation. */
.divider-tick { display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  margin: 0 auto; max-width: 280px; color: var(--border-strong); }
.divider-tick::before, .divider-tick::after { content: ''; height: 1px; flex: 1; background: currentColor; opacity: 0.6; }
.divider-tick .kglyph { width: 22px; height: 22px; color: var(--accent); flex: none; }
.section--ink .divider-tick { color: var(--on-ink-mut); }
.section--ink .divider-tick .kglyph { color: var(--accent-on-ink); }

/* Skip-link — WCAG 2.4.1 Bypass Blocks. Visually hidden until focused. */
.skip-link { position: absolute; left: 0; top: -100%; z-index: 2000;
  background: var(--ink); color: var(--on-ink); padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-md, 8px) 0; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: top 0.15s var(--ease); }
.skip-link:focus { top: 0; outline: 2px solid var(--accent-on-ink); outline-offset: 2px; }

/* Hero watermark: large, very faint corner mark — one per hero, never loud. */
.hero__watermark { position: absolute; pointer-events: none; z-index: 0;
  width: clamp(180px, 26vw, 340px); height: clamp(180px, 26vw, 340px);
  right: clamp(1rem, 4vw, 4rem); bottom: clamp(1rem, 4vw, 3rem);
  color: var(--on-ink); opacity: 0.06; }
.hero__watermark--ink { color: var(--accent-ink); opacity: 0.10; }
@media (prefers-reduced-motion: no-preference) {
  .hero__watermark { transition: opacity 0.8s var(--ease); }
}

/* Tabular figures wherever numbers must align (stats, dates, meta). */
.stat__num, .meta-row .v, .art-meta, .tnum { font-variant-numeric: tabular-nums; }
/* Underline-draw on text links: grows from the left on hover/focus. */
.ulink { color: var(--fg); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease); padding-bottom: 1px; }
.ulink:hover, .ulink:focus-visible { background-size: 100% 1.5px; }
/* Lead accent: a thin vertical rule on a detail-page lead paragraph. */
.lead--accent { border-left: 2px solid var(--accent); padding-left: 1.1rem; }

/* ---- Accessibility: visible keyboard focus (WCAG 2.4.7 / 2.4.13) ---- */
/* Mouse clicks stay clean; keyboard focus gets a clear 2px accent ring
   with offset so it reads against any surface. */
a:focus-visible, button:focus-visible, .btn:focus-visible, .chip:focus-visible,
.atty:focus-visible, .pa:focus-visible, .fbtn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: var(--radius);
}
/* Cards already round their corners — match the ring to the shape. */
.atty:focus-visible, .pa:focus-visible, .card:focus-visible { border-radius: var(--radius-lg); }

/* ---- Placeholder vCard: a labelled, non-interactive stub (not a dead link) ---- */
.vcard-stub { color: var(--muted); font-size: inherit; display: inline-flex; align-items: center; gap: 0.35rem; }
.vcard-stub::after { content: 'soon'; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.05rem 0.4rem; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links { display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.5rem 0; }
  .nav.open .nav__links li { padding: 0; }
  .nav.open .nav__links a { display: block; padding: 0.9rem clamp(1.25rem,5vw,3rem); width: 100%; }
  .nav.open .nav__links a::after { display: none; }
  .foot__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ============================================================
   Mosaic tile system (v3) — Morgan Lewis / Hunton geometric grid.
   Bold blue/navy color-blocks, green as punctuation, mesh-texture
   feature tiles. Reusable across homepage + industries.
   ============================================================ */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
  padding: var(--sp-5); text-decoration: none; isolation: isolate;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile__eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.75; margin-bottom: 0.5rem; }
.tile__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.12; letter-spacing: -0.01em; }
.tile__desc { font-size: 0.92rem; line-height: 1.5; margin-top: 0.5rem; opacity: 0.82; }
.tile__more { font-size: 0.84rem; font-weight: 600; margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.tile .arrow { transition: transform 0.2s var(--ease); }
a.tile:hover .arrow { transform: translateX(3px); }

/* span helpers for the bento rhythm */
.tile--w2 { grid-column: span 2; } .tile--w3 { grid-column: span 3; } .tile--w4 { grid-column: span 4; }
.tile--h2 { grid-row: span 2; min-height: 414px; }

/* color-block variants — bold: blue/navy fills, green punctuation */
.tile--blue   { background: var(--accent-ink); color: #fff; border-color: transparent; }
.tile--blue2  { background: var(--accent); color: #fff; border-color: transparent; }
.tile--navy   { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.tile--green  { background: var(--green); color: #143a00; border-color: transparent; }
.tile--green .tile__eyebrow, .tile--green .tile__desc { opacity: 0.85; }
.tile--tint   { background: var(--surface-2); }
.tile--blue .tile__more, .tile--blue2 .tile__more, .tile--navy .tile__more { color: #fff; }

/* mesh-texture feature tile: generated image behind a navy scrim */
.tile--mesh { color: var(--on-ink); border-color: transparent; background: var(--ink); }
.tile--mesh .tile__bg { position: absolute; inset: 0; z-index: -2;
  background: center/cover no-repeat; opacity: 0.92; }
.tile--mesh .tile__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,41,66,0.15) 0%, rgba(14,41,66,0.78) 78%); }

/* ============ GEOMETRIC TEXTURE UTILITIES ============
   Drop-in backgrounds for any .tile (or .ethos__mesh, hero blocks, etc.).
   Dark textures carry light text; light textures carry dark text.
   Each tile still needs position:relative (provided by .tile).             */
[class*="tex-"] { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* dark-field textures — pair with light text. Light-field textures carry the
   shared .tex--light marker so the dark-text + scrim rules can exclude them
   once instead of enumerating each name. */
.tex-navy-grid       { background-color: var(--ink); background-image: url('tex-navy-grid.png'); }
.tex-circuit         { background-color: var(--ink); background-image: url('tex-circuit.png'); }
.tex-green-dots      { background-color: var(--ink); background-image: url('tex-green-dots.png'); }
.tex-folded-planes   { background-color: var(--ink); background-image: url('tex-folded-planes.png'); }
.tex-blue-arcs       { background-color: var(--accent); background-image: url('tex-blue-arcs.png'); }
.tex-dotwave         { background-color: var(--ink); background-image: url('tex-dotwave.png'); }
.tex-navy-dotmatrix  { background-color: var(--ink); background-image: url('tex-navy-dotmatrix.png'); }
/* Light-field texture names, grouped once so dark-text + scrim rules can
   exclude them in a single :not(:is(...)). Add new light textures here only. */
:where(.tile):is(.tex-navy-grid, .tex-circuit, .tex-green-dots, .tex-folded-planes,
  .tex-blue-arcs, .tex-dotwave, .tex-navy-dotmatrix) { color: var(--on-ink); border-color: transparent; }
:where(.tile):is(.tex-navy-grid, .tex-circuit, .tex-green-dots, .tex-folded-planes,
  .tex-blue-arcs, .tex-dotwave, .tex-navy-dotmatrix) .tile__eyebrow { color: var(--on-ink-mut); }
:where(.tile):is(.tex-navy-grid, .tex-circuit, .tex-green-dots, .tex-folded-planes,
  .tex-blue-arcs, .tex-dotwave, .tex-navy-dotmatrix) .tile__more { color: var(--on-ink); }

/* light-field textures — pair with dark text (default tile color) */
.tex-light-mesh          { background-color: var(--surface-2); background-image: url('tex-light-mesh.png'); }
.tex-light-facets        { background-color: var(--surface-2); background-image: url('tex-light-facets.png'); }
.tex-isogrid             { background-color: var(--surface-2); background-image: url('tex-isogrid.png'); }
.tex-light-constellation { background-color: var(--surface-2); background-image: url('tex-light-constellation.png'); }
.tex-facetband           { background-color: #fff;             background-image: url('tex-facetband.png'); }
.tex-arcs-corner         { background-color: var(--surface-2); background-image: url('tex-arcs-corner.png'); }

/* readability scrim for text-heavy DARK textured tiles only */
:where(.tile):is(.tex-navy-grid, .tex-circuit, .tex-green-dots, .tex-folded-planes,
  .tex-blue-arcs, .tex-dotwave, .tex-navy-dotmatrix)::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,41,66,0) 35%, rgba(14,41,66,0.55) 100%); }
.tile[class*="tex-"] > * { position: relative; z-index: 1; }

/* a thin geometric corner notch — the "boxes & shapes" brand tick */
.tile--notch::after { content: ''; position: absolute; top: 0; right: 0; width: 46px; height: 46px;
  background: linear-gradient(225deg, var(--green) 0 50%, transparent 50%); opacity: 0.9; z-index: 2; }

@media (max-width: 980px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .tile--w3, .tile--w4 { grid-column: span 2; }
  .tile--h2 { grid-row: span 1; min-height: 200px; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; }
  .tile--w2, .tile--w3, .tile--w4 { grid-column: span 1; }
}

/* ============ ETHOS BAND (geometric quote, replaces photo breakband) ============ */
.ethos__mesh { position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink); padding: clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,4vw,3.5rem);
  display: flex; align-items: center; min-height: 280px; }
.ethos__mesh .tile__bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.5; }
.ethos__mesh .tile__scrim { position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--ink) 8%, rgba(18,50,74,0.78) 55%, rgba(18,50,74,0.45) 100%); }
.ethos__body { position: relative; max-width: 38ch; }
.ethos__kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-on-ink); margin-bottom: 1rem; }
.ethos__quote { font-family: var(--font-display); font-size: clamp(1.5rem,1.1rem+1.6vw,2.4rem);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--on-ink); margin: 0; }
.ethos__cite { margin-top: 1.1rem; font-size: 0.92rem; color: var(--on-ink-mut); }

/* ============ ATTORNEY BIO TEXTURE (per-person geometric watermark) ============
   Each bio page sets --bio-tex to its own derived texture. Faint, fixed to the
   upper-right whitespace behind content; non-interactive; hidden on small screens
   where there is no spare horizontal room.                                       */
.bio { position: relative; }
.bio::before {
  content: ''; position: absolute; top: 0; right: -2%; width: min(420px, 38%); height: 560px;
  background-image: var(--bio-tex); background-repeat: no-repeat;
  background-position: top right; background-size: contain;
  opacity: 0.06; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.bio > * { position: relative; z-index: 1; }
@media (max-width: 900px) { .bio::before { display: none; } }

/* ============ HERO POINT-GRAPHIC (subtle, site-wide) ============
   Opt-in: add .hero-tex to any page hero section. Paints a faint geometric
   point-graphic in the top-right, masked to fade toward content. Non-
   interactive, sits behind everything, hidden where space is tight.        */
.hero-tex { position: relative; isolation: isolate; overflow: hidden; }
.hero-tex::after {
  content: ''; position: absolute; top: -8%; right: -4%; width: min(560px, 46%); height: 118%;
  background: var(--hero-tex, url('tex-light-constellation.png')) top right / contain no-repeat;
  opacity: 0.5; pointer-events: none; z-index: -1;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000 38%, transparent 72%);
          mask-image: radial-gradient(120% 120% at 100% 0%, #000 38%, transparent 72%);
}
.hero-tex > * { position: relative; z-index: 0; }
@media (max-width: 760px) { .hero-tex::after { opacity: 0.28; width: 60%; } }
