/* industry.css — the industry hub, industry pages and location pages, built on service.css (load that first).
   Same Harbor at Dusk grammar as the service pages: photo hero, trust band, light and dusk bands, proof on dusk.
   Edit here, then run python3 tools/stamp_assets.py. */

/* ─── Hero: the industry's own scene, full-bleed (no wave art) ─── */
.ind-hero { background-position: 72% center; }

/* Photo treatment (2026-11-27): the scene is atmosphere, not the subject. Desaturated, softened (AI scenes only) and fine grain,
   with each photo cropped toward its view so the staged props fall away. Its own layer, so the text stays sharp. */
.ind-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; isolation: isolate; pointer-events: none; }
.ind-hero-img { position: absolute; inset: -10px; background-image: var(--ind-img); background-repeat: no-repeat;
  background-size: var(--ind-size, cover); background-position: var(--ind-pos, 72% center);
  filter: saturate(0.5) brightness(0.84) contrast(1.05) blur(2.5px); }
/* Purple tint: on for the real city photos only (their blue-hour skies read teal). The AI scenes are already dusk-toned, and a tint turns their warm lamplight lavender. */
.ind-hero-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--purple); mix-blend-mode: color; opacity: 0; }
.ind-hero:is(.ind-hero--seattle, .ind-hero--tacoma) .ind-hero-bg::before { opacity: 0.3; }
.ind-hero-bg::after { content: ''; position: absolute; inset: 0; z-index: 2; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.ind-hero--law { --ind-img: url('/images/ind-law-firms-wide.jpg'); --ind-size: cover; --ind-pos: 72% center; }
.ind-hero--accounting { --ind-img: url('/images/ind-accounting-office.jpg'); --ind-size: cover; --ind-pos: 70% center; }
.ind-hero--foundations { --ind-img: url('/images/ind-foundation-room.jpg'); --ind-size: cover; --ind-pos: 70% center; }
.ind-hero--seattle { --ind-img: url('/images/seattle-skyline.jpg'); --ind-size: cover; --ind-pos: 0% 80%; }
/* Real photos: no softening, only the grade and grain. Seattle sits right of the headline (downtown is on the left of the frame, and a real skyline isn't mirrored). */
.ind-hero--tacoma { --ind-img: url('/images/tacoma-skyline.jpg'); --ind-size: cover; --ind-pos: 30% 78%; }
/* Real city photos have bright lights under the copy: the fade stays deep until past the end of the text (checked: 4.5:1 or better for the subhead) */
.ind-hero:is(.ind-hero--tacoma, .ind-hero--seattle)::after { background:
  linear-gradient(to top, rgba(14,10,26,1) 0%, rgba(14,10,26,0.5) 14%, transparent 32%),
  linear-gradient(to right, rgba(8,4,18,0.96) 0%, rgba(8,4,18,0.93) 46%, rgba(8,4,18,0.55) 64%, rgba(8,4,18,0.12) 100%); }
@media (min-width: 961px) and (max-width: 1240px) {
  .ind-hero:is(.ind-hero--tacoma, .ind-hero--seattle, .ind-hero--law)::after { background:
    linear-gradient(to top, rgba(14,10,26,1) 0%, rgba(14,10,26,0.5) 14%, transparent 32%),
    linear-gradient(to right, rgba(8,4,18,0.96) 0%, rgba(8,4,18,0.93) 58%, rgba(8,4,18,0.5) 74%, rgba(8,4,18,0.12) 100%); }
}
.ind-hero--tacoma .ind-hero-img { left: 24%; filter: saturate(0.65) brightness(1.05) contrast(1.08);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.ind-hero--seattle .ind-hero-img { left: 30%; filter: saturate(0.65) brightness(1.05) contrast(1.08);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.ind-hero::after {
  background:
    linear-gradient(to top, rgba(14,10,26,1) 0%, rgba(14,10,26,0.5) 14%, transparent 32%),
    linear-gradient(to right, rgba(8,4,18,0.92) 0%, rgba(8,4,18,0.78) 36%, rgba(8,4,18,0.2) 68%, rgba(8,4,18,0.08) 100%);
}
.ind-hero .sv-title { max-width: 700px; }
.ind-hero--foundations .sv-hero-content .sv-title { max-width: 860px; font-size: clamp(40px, 4.3vw, 56px); }

/* Hub hero: the three industry scenes as tall slices on the right, fading into the night on the left */
.ind-hero--hub { min-height: min(92vh, 780px); }
.ind-hero--hub .sv-hero-content { max-width: 640px; }
.ind-hero--hub .sv-hero-content .sv-title { font-size: clamp(40px, 4.2vw, 54px); }
.ind-hero--hub .sv-hero-content .sv-lead { max-width: 520px; }
.ind-strip { position: absolute; top: 0; bottom: 0; right: 0; width: 42%; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--dark); }
.ind-strip img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; animation: indSlice 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(0.2s + var(--i) * 0.14s); }
@keyframes indSlice { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.ind-hero--hub::after {
  background:
    linear-gradient(to top, rgba(14,10,26,1) 0%, rgba(14,10,26,0.4) 16%, transparent 34%),
    linear-gradient(to right, var(--dark) 0%, var(--dark) 56%, rgba(14,10,26,0.55) 64%, rgba(14,10,26,0.12) 80%, rgba(14,10,26,0.05) 100%);
}

/* ─── Risks: hairline columns on the light band ─── */
.ind-risks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; margin-top: 40px; }
.ind-risk { border-top: 1px solid var(--border); padding-top: 22px; position: relative; }
.ind-risk::before { content: ''; position: absolute; top: -1px; left: 0; width: 36px; height: 2px; background: var(--purple); }
.ind-risk h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--text); margin-bottom: 10px; }
.ind-risk p { font-size: 16px; font-weight: 300; line-height: 1.72; color: var(--text-mid); max-width: 500px; }

/* ─── How we protect: six specifics on dusk, in the service specifics grammar ─── */
.ind-protect::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 100% 0%, rgba(107,47,160,0.24) 0%, transparent 62%); }
.ind-protect .sv-wrap { position: relative; z-index: 1; }
.ind-how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 2px solid var(--purple-accent); }
.ind-how li { display: flex; gap: 12px; padding: 22px 0 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ind-how .sv-tick { width: 18px; height: 18px; margin-top: 4px; }
.ind-how b { display: block; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 21px; line-height: 1.25; color: #fff; margin-bottom: 8px; }
.ind-how span span { display: block; font-size: 15px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.68); }
.ind-how-foot { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.ind-how-foot p { font-size: 15px; color: rgba(255,255,255,0.68); max-width: 620px; }

/* ─── Hub rows: one industry per row, its scene on an angled purple slab ─── */
.ind-photo { position: relative; width: min(100%, 420px); margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(26,14,43,0.32); background: var(--dark); }
.ind-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s ease; }
.ind-row:hover .ind-photo img { transform: scale(1.03); }
.ind-row .sv-row-name a { color: inherit; text-decoration: none; }
.ind-row .sv-row-name a::after { content: ''; position: absolute; inset: 0; }
.ind-row { position: relative; }
.ind-watch { list-style: none; margin: 4px 0 24px; max-width: 520px; }
.ind-watch li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15.5px; font-weight: 400; color: var(--text); }
.ind-watch li::before { content: ''; flex: none; width: 10px; height: 2px; background: var(--purple); transform: translateY(-4px); }
.ind-link { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--purple); transition: gap 0.2s, color 0.2s; }
.ind-row:hover .ind-link { color: var(--gold-dark); gap: 12px; }
.ind-row:has(:focus-visible) .ind-photo { outline: 2px solid var(--purple); outline-offset: 4px; }
.ind-row .sv-row-name a:focus-visible { outline: none; }

/* Firms outside the three: one quiet line under the rows */
.ind-more { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 24px 28px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.ind-more p { font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--text-mid); max-width: 720px; }
.ind-more p b { font-weight: 600; color: var(--text); }
.ind-more a { color: var(--purple); font-weight: 500; }
.ind-more a:hover { color: var(--gold-dark); }

/* Foundations proof: two client quotes */
.ind-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ind-quote .rv-pull { font-size: 22px; }
.sv-proof h2 + .sv-rv-head { margin-top: 8px; }
.ind-more-links { display: inline-flex; flex-wrap: wrap; gap: 10px 28px; }

/* Proof: the case study card stays readable with a photo panel */
.sv-proof .mc-feature-photo img { object-position: center; }

@media (max-width: 1080px) {
  .ind-how { grid-template-columns: 1fr 1fr; }
  .ind-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .ind-hero { background-position: 70% 0; }
  .ind-hero:not(.ind-hero--hub) { padding-top: calc(54vw + 8px); }
  .ind-hero-img { inset: -10px -10px auto; height: calc(84vw + 20px); }
  .ind-hero-img { filter: saturate(0.55) brightness(1.05) contrast(1.05) blur(2px); }
  .ind-hero:not(.ind-hero--hub)::before { height: 110px; }
  .ind-hero--law { --ind-size: 150%; --ind-pos: 70% 0; }
  .ind-hero--accounting { --ind-size: 150%; --ind-pos: 78% 0; }
  .ind-hero--foundations { --ind-size: 150%; --ind-pos: 80% 0; }
  .ind-hero--seattle { --ind-size: 175%; --ind-pos: 22% 70%; }
  .ind-hero--tacoma { --ind-size: 160%; --ind-pos: 55% 40%; }
  .ind-hero--tacoma .ind-hero-img { left: -10px; -webkit-mask-image: none; mask-image: none; }
  .ind-hero--seattle .ind-hero-img { left: -10px; -webkit-mask-image: none; mask-image: none; }
  .ind-hero:not(.ind-hero--hub)::after { background: linear-gradient(to bottom, rgba(14,10,26,0.2) 0, transparent 14vw, rgba(14,10,26,0.75) 38vw, var(--dark) 54vw); }
  .ind-hero--hub { min-height: 0; padding-top: calc(56vw + 8px); }
  .ind-strip { width: 100%; bottom: auto; height: 62vw; }
  .ind-hero--hub::after { background: linear-gradient(to bottom, rgba(14,10,26,0.35) 0, rgba(14,10,26,0.2) 24vw, rgba(14,10,26,0.8) 46vw, var(--dark) 62vw); }
  .ind-risks { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .ind-photo { width: min(100%, 520px); }
}
@media (max-width: 640px) {
  .ind-how { grid-template-columns: 1fr; }
  .ind-more { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ind-strip img { animation: none; opacity: 1; }
  .ind-photo img, .ind-row:hover .ind-photo img { transition: none; transform: none; }
}
/* Mid widths: narrower strip so the headline never runs onto the photos */
@media (min-width: 961px) and (max-width: 1240px) {
  .ind-strip { width: 34%; }
  .ind-hero--hub::after { background:
    linear-gradient(to top, rgba(14,10,26,1) 0%, rgba(14,10,26,0.4) 16%, transparent 34%),
    linear-gradient(to right, var(--dark) 0%, var(--dark) 64%, rgba(14,10,26,0.5) 72%, rgba(14,10,26,0.1) 88%); }
}

/* ─── Location pages: the local team, as a byline (small round photo beside the name) ─── */
.loc-team-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.loc-team-who .ind-link { margin-top: 22px; }
.loc-team .sv-h2 { margin-bottom: 28px; }
.loc-byline { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.loc-byline img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--border); }
.loc-byline p { font-size: 14px; color: var(--text-mid); line-height: 1.4; }
.loc-byline strong { display: block; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--text); }
.loc-team-bio { font-size: 17px; font-weight: 300; line-height: 1.72; color: var(--text-mid); max-width: 680px; }
.loc-team-facts { list-style: none; border-top: 1px solid var(--border); }
.loc-team-facts li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; line-height: 1.5; color: var(--text); }
.loc-team-facts .sv-tick { stroke: var(--gold-dark); margin-top: 3px; }
@media (max-width: 960px) {
  .loc-team-grid { grid-template-columns: 1fr; gap: 28px; }
  .loc-team-facts li { padding: 12px 0; }
}

/* Local clients on dusk: white logos with where they are */
.loc-clients { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 8px; }
.loc-clients li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 26px 12px 22px; }
.loc-clients li + li { border-left: 1px solid rgba(255,255,255,0.08); }
.loc-clients img { display: block; width: auto; max-width: 100%; height: calc(var(--h) * 1px); opacity: 0.85; }
.loc-clients img.is-badge { filter: grayscale(1) brightness(1.15); opacity: 0.8; }
.loc-clients span { font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); }
@media (max-width: 760px) {
  .loc-clients { grid-template-columns: 1fr 1fr; }
  .loc-clients li + li { border-left: 0; }
  .loc-clients li { border-top: 1px solid rgba(255,255,255,0.08); }
  .loc-clients li:nth-child(-n+2) { border-top: 0; }
  .loc-clients li:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.08); }
  .loc-clients li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Foundations proof keeps one client quote card after Britta's moved up to the trust band */
.ind-quotes:has(> :only-child) { grid-template-columns: minmax(0, 720px); }
