/* Shared styles for /industries/ and the industry pages. */
:root {
  --paper: #f1ecdf;
  --cream: #faf7f0;
  --ink: #14130f;
  --ink-2: #3a372f;
  --muted: #6e685c;
  --rule: rgba(25, 24, 20, 0.14);
  --clay: #c2422d;
  --lime: #c8ff2d;
  --clay-soft: #e8a383;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Header copied from the homepage so the site reads as one product. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header::after { content: ""; display: block; height: 3px; border-top: 1px solid var(--ink); background: var(--paper); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 32px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.brand-logo { width: 96px; height: 32px; flex: 0 0 auto; display: block; overflow: visible; }
.brand-orb { fill: var(--lime); }
.nav { display: flex; gap: 24px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; }
.nav a { display: inline-flex; gap: 6px; align-items: baseline; text-decoration: none; }
.nav a:hover { color: var(--clay); }
.nav .num { color: var(--clay); }
.nav .nav-book-mobile { min-height: 36px; padding: 8px 13px; border: 1.5px solid var(--ink); background: var(--lime); color: var(--ink); font-weight: 600; transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease; }
.nav .nav-book-mobile:hover { background: var(--ink); color: var(--lime); transform: translateY(-1px); }
.menu-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.menu-toggle-box { display: grid; gap: 5px; width: 20px; }
.menu-toggle-box span { display: block; height: 2px; background: currentColor; transition: transform 0.18s ease, opacity 0.18s ease; }
.site-header.nav-open .menu-toggle-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .menu-toggle-box span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav { position: absolute; top: calc(100% + 15px); right: 24px; left: 24px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease; }
  .site-header.nav-open .nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav a { min-height: 48px; justify-content: space-between; padding: 14px 12px; border-bottom: 1px dashed var(--rule); }
  .nav a:last-child { border-bottom: 0; }
  .nav .nav-book-mobile { margin-top: 8px; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .header-inner { padding: 12px 16px; }
  .brand { gap: 8px; font-size: 24px; }
  .brand-logo { width: 84px; height: 28px; }
  .menu-toggle { width: 44px; height: 44px; }
  .nav { right: 16px; left: 16px; }
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(56px, 8vw, 108px); line-height: 0.92; letter-spacing: -0.035em; max-width: 15ch; text-wrap: balance; }
h1 .mark { position: relative; display: inline-block; font-style: italic; white-space: nowrap; }
h1 .mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.1em; z-index: -1; height: 0.13em; background: var(--lime); opacity: 0.75; }
h1 .red { color: var(--clay); }
.lede .value-mark { color: var(--ink); font-weight: 500; background: linear-gradient(transparent 58%, rgba(196, 241, 119, 0.72) 58%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; max-width: 24ch; text-wrap: balance; }
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 7vw, 88px); }
.lede { max-width: 60ch; margin: 28px 0 0; font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 500; }
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.section-label { margin: 0 0 16px; }
.intro { max-width: 62ch; margin: 18px 0 40px; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--cream); border: 1px solid var(--rule); border-radius: 18px; }
.card .num { font-family: var(--serif); font-size: clamp(52px, 5.4vw, 76px); line-height: 0.95; color: var(--clay); letter-spacing: -0.03em; }
.card .what { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.chart { margin: 4px 0 0; display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { position: relative; height: 10px; border-radius: 999px; background: rgba(20, 19, 15, 0.07); overflow: hidden; }
.bar { position: absolute; top: 0; bottom: 0; left: var(--from); width: max(3px, calc(var(--to) - var(--from))); border-radius: 999px; background: var(--muted); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .card:not(.in) .bar { transform: scaleX(0); }
.hi .bar { background: var(--clay); }
.hi .bar-val { color: var(--ink); font-weight: 500; }
.bar-val { font-family: var(--mono); font-size: 12px; text-align: right; min-width: 7ch; }
.chart figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.card .took { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.card .took p { margin: 6px 0 0; }
.card .src { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.card .src a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.card .src a:hover { color: var(--clay); }
.cards.single .card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.cards.single .took { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0 0 0 40px; border-top: 0; border-left: 1px solid var(--rule); }
.cards.single .src { grid-column: 2; padding-left: 41px; }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.fde { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin: 24px 0 48px; }
.fde > p { margin: 0; color: var(--ink-2); font-size: 18px; }
.who { padding: 26px; border-radius: 18px; background: var(--ink); color: var(--paper); font-size: 15px; }
.who .label { color: var(--clay-soft); }
.who p { margin: 10px 0 0; color: rgba(244, 239, 228, 0.8); }
.who a { color: var(--paper); text-decoration-color: var(--clay-soft); text-underline-offset: 3px; }
.who strong { color: var(--paper); font-weight: 500; }
.decisions { width: 100%; border-collapse: collapse; font-size: 15px; }
.decisions th { text-align: left; padding: 0 20px 12px 0; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.decisions td { padding: 20px 20px 20px 0; vertical-align: top; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.decisions td:first-child { width: 26%; font-family: var(--serif); font-size: 23px; line-height: 1.15; color: var(--ink); }
.decisions td:last-child { width: 30%; color: var(--ink); }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; border-top: 1px solid var(--ink); }
.timeline li { position: relative; padding-top: 30px; font-size: 15px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.timeline li.gate-step::before { background: var(--clay); border-color: var(--clay); }
.timeline b { display: block; margin-bottom: 6px; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); }
.gate { margin-top: 44px; padding: clamp(24px, 3vw, 36px); border-radius: 18px; background: var(--cream); border: 1px solid var(--rule); }
.gate h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.gate h3 em { color: var(--clay); }
.gate > p { margin: 8px 0 18px; color: var(--muted); font-size: 15px; }
.run { margin-top: 4px; border-radius: 14px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 13px; overflow: hidden; }
.run-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid rgba(241, 236, 223, 0.14); color: rgba(241, 236, 223, 0.6); }
.run-count { color: var(--lime); }
.run-row { display: grid; grid-template-columns: 44px 1fr 64px; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(241, 236, 223, 0.08); align-items: start; }
.run-row:last-child { border-bottom: 0; }
.run-id { color: var(--clay-soft); }
.run-text { font-family: var(--sans); font-size: 14px; color: rgba(241, 236, 223, 0.88); }
.run-status { text-align: right; color: var(--lime); }
.run-status::after { content: "PASS"; }
.run.pending .run-row .run-status::after { content: "..."; color: rgba(241, 236, 223, 0.4); }
.run.pending .run-row.done .run-status::after { content: "PASS"; color: var(--lime); }
.run.pending .run-row.active { background: rgba(241, 236, 223, 0.05); }
.run-note { margin: 12px 0 0 !important; font-size: 13px !important; }
/* Content is visible without JavaScript; js/industries.js adds .js and animates on scroll. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .js .card .bar { transform: none; transition: none; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 40px; }
.two .label { margin: 0; }
.two ul { margin: 14px 0 0; padding: 0; list-style: none; }
.two li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }

.faq { margin-top: 32px; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; margin-left: 16px; font-family: var(--mono); font-size: 18px; color: var(--clay); }
.faq details[open] summary::after { content: "-"; }
.faq p { margin: 10px 0 0; max-width: 68ch; color: var(--ink-2); font-size: 16px; }
.reading { margin-top: 48px; }
.reading .label { margin: 0; }
.reading ul { margin: 12px 0 0; padding: 0; list-style: none; }
.reading li { padding: 10px 0; border-top: 1px solid var(--rule); }
.reading a { text-decoration: none; }
.reading a:hover { color: var(--clay); }
.reading a::after { content: " \2192"; color: var(--clay); }

.why-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin: 24px 0 40px; }
.why-copy p { margin: 0; color: var(--ink-2); }
.why-copy a { text-decoration-color: var(--clay); text-underline-offset: 3px; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(241, 236, 223, 0.18); }
.reasons b { display: block; margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--lime); }
.reasons span { font-size: 15px; color: rgba(241, 236, 223, 0.78); }
.cta .label { color: var(--clay-soft); margin: 0 0 16px; }
.cta h2 { max-width: 22ch; }
.cta .actions { margin-top: 44px; }
.cta { background: var(--ink); color: var(--paper); border-top: 0; }
.cta p { max-width: 58ch; margin: 18px 0 0; color: rgba(244, 239, 228, 0.76); }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.cta .btn.alt { background: transparent; color: var(--paper); border-color: rgba(244, 239, 228, 0.4); }
footer { padding: 36px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

.crumbs { margin: 0 0 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--clay); }
.offer { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink); }
.offer li::before { content: "\2713  "; color: var(--clay); font-weight: 600; }
.bring { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.cta .bring { color: rgba(244, 239, 228, 0.6); }

/* Deployment gap: three.js stage (js/deployment-gap.js) with the SVG as fallback. */
.gap-stage { position: relative; margin: 36px 0 0; aspect-ratio: 16 / 8; border-radius: 22px; background: var(--ink); overflow: hidden; }
.gap-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gap-stage .gap-fallback { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4% 3%; }
.is-3d .gap-fallback { display: none; }
.gap-tags { display: none; }
.is-3d .gap-tags { display: block; position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; translate: -50% -50%; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); background: rgba(20, 19, 15, 0.72); border: 1px solid rgba(241, 236, 223, 0.22); }
.tag-cap { color: var(--lime); border-color: rgba(200, 255, 45, 0.45); }
.tag-fde { background: var(--clay); border-color: var(--clay); color: #fff; }
.tag-gap { padding: 0; background: none; border: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 34px); letter-spacing: 0; text-transform: none; color: rgba(241, 236, 223, 0.8); }
.closers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.closer { padding: 24px; border-radius: 18px; border: 1px solid var(--rule); background: var(--cream); }
.closer h3 { margin: 8px 0 10px; font-size: 30px; line-height: 1; }
.closer p { margin: 0; font-size: 15px; color: var(--ink-2); }
.closer a { color: var(--clay); text-decoration: none; }
.closer.us { background: var(--lime); border-color: var(--ink); }
.closer.us .label { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { display: grid; gap: 6px; padding: 20px 24px; border-radius: 18px; background: var(--ink); color: var(--paper); }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--lime); }
.stat span { font-size: 14px; color: rgba(241, 236, 223, 0.74); }
.lab-src { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.lab-src a { text-decoration-color: var(--clay); text-underline-offset: 3px; }
.gap-chart { display: block; width: 100%; height: auto; overflow: visible; }
.gap-chart .axis { stroke: rgba(241, 236, 223, 0.3); stroke-width: 1; }
.gap-chart .cap { fill: none; stroke: var(--lime); stroke-width: 2.5; }
.gap-chart .biz { fill: none; stroke: var(--paper); stroke-width: 2.5; opacity: 0.6; }
.gap-chart .fde { fill: none; stroke: var(--clay); stroke-width: 3.5; stroke-linecap: round; }
.gap-chart .gap-area { fill: var(--lime); opacity: 0.1; }
.gap-chart .lbl { font-family: var(--mono); font-size: 13px; fill: var(--lime); }
.gap-chart .lbl.m { fill: var(--paper); }
.gap-chart .lbl.c { fill: var(--clay); font-weight: 600; }
.gap-chart .big { font-family: var(--serif); font-size: 30px; font-style: italic; fill: rgba(241, 236, 223, 0.8); }
.fromto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.fromto .from { padding: 6px 12px; border-radius: 999px; background: rgba(20, 19, 15, 0.07); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(20, 19, 15, 0.35); }
.fromto .to { padding: 6px 12px; border-radius: 999px; background: var(--clay); color: var(--paper); font-weight: 500; }
.fromto .arrow { color: var(--clay); }
.related { margin-top: 40px; }
.related .label { margin: 0; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.related-links a { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 15px; }
.related-links a:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 860px) {
  .gap-stage { aspect-ratio: 4 / 5; }
  .closers, .stats { grid-template-columns: 1fr; }
  h1 { font-size: clamp(44px, 12.5vw, 76px); }
  .fde, .two, .why-copy { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .cards.single .card { display: flex; }
  .cards.single .took { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cards.single .src { padding-left: 0; }
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .run-row { grid-template-columns: 36px 1fr 44px; padding: 12px 14px; }
  .run-head { padding: 12px 14px; font-size: 11px; }
  .timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1px solid var(--ink); }
  .timeline li { padding: 0 0 0 32px; }
  .decisions thead { display: none; }
  .decisions, .decisions tbody, .decisions tr, .decisions td { display: block; width: 100% !important; }
  .decisions tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .decisions td { padding: 4px 0; border: 0; }
  .decisions td:nth-child(2)::before { content: "What we look at: "; color: var(--muted); }
  .decisions td:nth-child(3)::before { content: "Outcome: "; color: var(--muted); }
}
