/* SCENZ / Capabilities — three service lines on the shared homepage design system. */
.scenz-capabilities { letter-spacing: normal; }
.scenz-capabilities .site-nav > a[aria-current="page"] { color: var(--accent-light); opacity: 1; }
.scenz-capabilities .site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.scenz-capabilities .footer-column a[aria-current="page"] { color: var(--accent-light); }
.scenz-capabilities .button span svg, .scenz-capabilities .text-link span svg, .scenz-capabilities .chapter-link span svg,
.scenz-capabilities .cap-line-more span svg, .scenz-capabilities .nav-contact span svg, .scenz-capabilities .footer-intro-link span svg,
.scenz-capabilities .footer-contact a span svg { display: block; width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Hero: the three volumes in the image map to the three lines. A slow light sweep passes across them. */
.cap-hero { position: relative; display: flex; min-height: max(760px, min(920px, 100svh)); overflow: hidden; flex-direction: column; justify-content: center; background: var(--ink); color: var(--light); isolation: isolate; }
.cap-hero-image, .cap-hero-shade, .cap-hero-sweep { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cap-hero-image { z-index: -3; object-fit: cover; object-position: 72% 50%; }
.cap-hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(9,11,10,.94) 0%, rgba(9,11,10,.8) 34%, rgba(9,11,10,.2) 70%, rgba(9,11,10,.05) 100%), linear-gradient(0deg, rgba(9,11,10,.75), transparent 38%, rgba(9,11,10,.3)); }
.cap-hero-sweep { z-index: -1; background: linear-gradient(100deg, transparent 0%, transparent 38%, rgba(255,196,146,.16) 46%, transparent 54%, transparent 100%); background-size: 260% 100%; background-position: 110% 0; mix-blend-mode: screen; animation: cap-sweep 11s cubic-bezier(.45,.05,.35,1) infinite; }
@keyframes cap-sweep { 0% { background-position: 120% 0; opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { background-position: -20% 0; opacity: 0; } }
.cap-hero-layout { display: flex; min-height: inherit; align-items: center; padding-block: 9rem 8rem; }
.cap-hero-copy { max-width: 1000px; }
.cap-hero h1 { margin: 2rem 0 1.9rem; color: var(--light); font-size: clamp(3.2rem, 5.2vw, 6.2rem); font-weight: 900; letter-spacing: -.075em; line-height: 1.18; text-wrap: balance; }
.cap-hero h1 > span:not(.cap-h1-kicker) { color: var(--accent-light); }
.cap-h1-kicker { display: block; margin-bottom: 1.25rem; color: #d9d4ca; font-size: clamp(.92rem, 1.1vw, 1.08rem); font-weight: 700; letter-spacing: .12em; line-height: 1.6; }
.cap-hero-copy > p { max-width: 680px; margin: 0; color: #e0dfd8; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 2; }
.cap-hero-copy > p strong { color: var(--light); font-weight: 700; }
.cap-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2.6rem; }
.cap-hero-bottom { position: absolute; right: 0; bottom: 2.2rem; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: rgba(255,255,255,.62); font: 700 .64rem/1.4 var(--font-latin); letter-spacing: .15em; }
.cap-hero-bottom > span:last-child { font-family: var(--font-display); letter-spacing: .08em; }
.cap-hero-legend { display: inline-flex; align-items: center; gap: .9rem; }
.cap-hero-legend b { font-weight: 700; }
.cap-hero-legend i { display: inline-block; width: 42px; height: 1px; background: linear-gradient(90deg, rgba(245,176,139,.15), var(--accent-light), rgba(245,176,139,.15)); background-size: 200% 100%; animation: cap-legend 3.2s linear infinite; }
@keyframes cap-legend { to { background-position: -200% 0; } }

/* Sticky capability map */
.cap-index { position: sticky; z-index: 50; top: 86px; background: #e9e0d3; border-bottom: 1px solid rgba(20,21,19,.18); box-shadow: 0 8px 28px rgba(25,26,23,.05); }
.cap-index-inner { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(5, minmax(0, 1fr)); min-height: 72px; align-items: stretch; }
.cap-index-label { display: flex; align-items: center; color: #62665e; font: 700 .61rem/1.3 var(--font-latin); letter-spacing: .15em; }
.cap-index a { position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .7rem .45rem; border-left: 1px solid rgba(20,21,19,.11); color: #34362f; font-size: .79rem; font-weight: 700; white-space: nowrap; transition: background 200ms ease, color 200ms ease; }
.cap-index a span { color: #a84a31; font: 700 .65rem var(--font-latin); }
.cap-index a:hover, .cap-index a[aria-current="location"] { background: #f6f1e9; color: #a84a31; }
.cap-index a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transition: transform 260ms ease; }
.cap-index a[aria-current="location"]::after { transform: scaleX(1); }

/* Three lines overview: a production rail with a signal running through the three stations. */
.cap-lines { background: #f6f1e9; }
.cap-lines-head { display: grid; grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); }
.cap-lines h2, .cap-faq h2, .cap-next h2 { margin: 1.5rem 0 0; color: var(--ink); font-size: clamp(2.8rem, 5vw, 5.6rem); font-weight: 900; letter-spacing: -.075em; line-height: 1.22; text-wrap: balance; }
.cap-lines h2 span, .cap-faq h2 span, .cap-next h2 span { color: #ad553b; }
.cap-lines-head p { max-width: 760px; margin: 2rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 2; }
.cap-rail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); margin-top: clamp(3.5rem, 6vw, 6rem); padding-top: 2.6rem; }
.cap-rail-line { position: absolute; top: 0; left: 0; width: 100%; height: 12px; overflow: visible; }
.cap-rail-track { stroke: rgba(20,21,19,.2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cap-rail-signal { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 70 930; stroke-dashoffset: 1000; vector-effect: non-scaling-stroke; opacity: 0; }
.cap-rail.is-live .cap-rail-signal { opacity: 1; animation: cap-signal 5.5s linear infinite; }
@keyframes cap-signal { to { stroke-dashoffset: 0; } }
@keyframes cap-signal-v { from { top: 0; } to { top: calc(100% - 64px); } }
.cap-line-card { position: relative; display: flex; min-height: 420px; flex-direction: column; padding: 1.7rem 1.7rem 1.6rem; border: 1px solid rgba(20,21,19,.16); background: #fbf8f3; color: var(--ink); transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms ease, border-color 280ms ease; }
.cap-line-card:hover { border-color: rgba(168,74,49,.55); box-shadow: 0 24px 50px rgba(51,38,28,.12); transform: translateY(-6px); }
.cap-line-top { display: flex; align-items: center; justify-content: space-between; color: #8a5a45; font: 700 .66rem/1.4 var(--font-latin); letter-spacing: .16em; }
.cap-line-node { position: absolute; top: -2.6rem; left: 1.7rem; width: 13px; height: 13px; border: 2px solid var(--accent); border-radius: 50%; background: #f6f1e9; transform: translateY(-5px); transition: background 300ms ease, box-shadow 300ms ease; }
.cap-line-card:hover .cap-line-node, .cap-line-card.is-lit .cap-line-node { background: var(--accent); box-shadow: 0 0 0 7px rgba(228,119,84,.16); }
.cap-line-icon { display: grid; width: 88px; height: 88px; place-items: center; margin: 2.2rem 0 2rem; border: 1px solid rgba(20,21,19,.2); border-radius: 50%; color: #a84a31; }
.cap-line-icon svg, .cap-chapter-icon svg { width: 52px; height: 52px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap-line-card strong { font-size: clamp(1.35rem, 1.8vw, 1.7rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.35; }
.cap-line-desc { margin-top: .9rem; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.cap-line-more { display: inline-flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1.8rem; color: #a84a31; font-size: .84rem; font-weight: 800; }
.cap-line-more span { transition: transform 200ms ease; }
.cap-line-card:hover .cap-line-more span { transform: translate(2px, 3px); }

/* Drawn icons: strokes draw once when their section is read, then a small spark breathes. */
.cap-spark { fill: currentColor; stroke: none; }
.is-drawn .cap-draw { animation: cap-draw 1.3s cubic-bezier(.2,.75,.2,1) both; }
.is-drawn .cap-draw:nth-child(2) { animation-delay: .12s; }
.is-drawn .cap-draw:nth-child(3) { animation-delay: .24s; }
.is-drawn .cap-draw:nth-child(4) { animation-delay: .36s; }
.is-drawn .cap-draw:nth-child(5) { animation-delay: .48s; }
.is-drawn .cap-wave { animation: cap-draw 1.3s cubic-bezier(.2,.75,.2,1) .3s both, cap-wave 2.8s ease-in-out 1.7s infinite; }
.is-drawn .cap-spark { animation: cap-spark 2.4s ease-in-out 1.2s infinite; }
@keyframes cap-draw { from { stroke-dasharray: 180; stroke-dashoffset: 180; opacity: .35; } to { stroke-dasharray: 180; stroke-dashoffset: 0; opacity: 1; } }
@keyframes cap-wave { 50% { opacity: .45; } }
@keyframes cap-spark { 50% { opacity: .25; } }

/* Chapters */
.cap-chapter { position: relative; overflow: hidden; scroll-margin-top: 158px; padding: clamp(5.8rem, 8vw, 9rem) 0 clamp(6.2rem, 9vw, 9.5rem); }
.cap-production { background: var(--ink); color: var(--light); }
.cap-development { background: #efe7dc; color: var(--ink); }
.cap-development h2, .cap-development h3 { color: var(--ink); } /* Blocksy paints headings light; this chapter is paper-coloured */
.cap-training { background: #151714; color: var(--light); }
.cap-chapter-topline { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 1.3rem; border-bottom: 1px solid currentColor; font: 700 .69rem/1.4 var(--font-latin); letter-spacing: .17em; opacity: .8; }
.cap-chapter-topline span:last-child { font-family: var(--font-display); letter-spacing: .08em; }
.cap-production .cap-chapter-topline, .cap-training .cap-chapter-topline { border-color: rgba(255,255,255,.25); }
.cap-chapter-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: clamp(3.2rem, 6.5vw, 8rem); margin-top: clamp(3rem, 5.5vw, 6rem); }
.cap-chapter-grid-reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.cap-chapter-copy { max-width: 660px; }
.cap-chapter-icon { display: grid; width: 76px; height: 76px; place-items: center; margin-bottom: 1.8rem; border: 1px solid currentColor; border-radius: 50%; color: #a84a31; }
.cap-production .cap-chapter-icon, .cap-training .cap-chapter-icon { color: var(--accent-light); border-color: rgba(255,255,255,.45); }
.cap-chapter-icon svg { width: 44px; height: 44px; }
.cap-chapter h2 { margin: 0; font-size: clamp(2.8rem, 4.55vw, 4.85rem); font-weight: 900; letter-spacing: -.07em; line-height: 1.2; text-wrap: balance; }
.cap-chapter h2 span { color: #ad553b; }
.cap-production h2 span, .cap-training h2 span { color: var(--accent-light); }
.cap-lead { margin: 1.8rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 2; }
.cap-production .cap-lead, .cap-training .cap-lead { color: #cfcfc7; }

.cap-visual { position: sticky; top: 180px; min-width: 0; margin: 0; overflow: hidden; background: #191a17; isolation: isolate; }
.cap-visual::after { position: absolute; inset: 0; z-index: 2; border: 1px solid rgba(255,255,255,.2); content: ""; pointer-events: none; }
.cap-visual img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.cap-chapter.is-drawn .cap-visual img { transform: scale(1); }
.cap-production .cap-visual img { object-position: 42% 50%; }
.cap-development .cap-visual img { object-position: 60% 50%; }
.cap-training .cap-visual img { object-position: 62% 50%; }
.cap-visual-scan { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(255,190,140,.22) 48%, rgba(255,190,140,.05) 52%, transparent); background-size: 100% 240%; background-position: 0 -120%; mix-blend-mode: screen; pointer-events: none; }
.cap-chapter.is-drawn .cap-visual-scan { animation: cap-scan 1.8s cubic-bezier(.3,.1,.2,1) .15s both; }
@keyframes cap-scan { from { background-position: 0 -120%; opacity: 1; } to { background-position: 0 220%; opacity: .2; } }
.cap-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; display: flex; justify-content: space-between; gap: 1rem; padding: 2.6rem 1.1rem .95rem; background: linear-gradient(0deg, rgba(8,9,8,.82), transparent); color: rgba(255,255,255,.78); font: 700 .6rem/1.4 var(--font-latin); letter-spacing: .13em; }
.cap-visual figcaption span:last-child { font-family: var(--font-display); letter-spacing: .05em; text-align: right; }

.cap-services { display: grid; gap: 0; margin: 2.4rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(20,21,19,.16); }
.cap-production .cap-services, .cap-training .cap-services { border-color: rgba(255,255,255,.16); }
.cap-services li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(20,21,19,.16); transition: background 220ms ease; }
.cap-production .cap-services li, .cap-training .cap-services li { border-color: rgba(255,255,255,.16); }
.cap-service-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(168,74,49,.35); color: #a84a31; transition: background 220ms ease, color 220ms ease, border-color 220ms ease; }
.cap-production .cap-service-icon, .cap-training .cap-service-icon { border-color: rgba(245,176,139,.35); color: var(--accent-light); }
.cap-service-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap-services li:hover .cap-service-icon { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.cap-services h3 { margin: .15rem 0 0; font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; line-height: 1.45; }
.cap-services p { margin: .45rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.85; }
.cap-production .cap-services p, .cap-training .cap-services p { color: #b9bab2; }
.cap-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.cap-tags span { padding: .42rem .75rem; border: 1px solid rgba(20,21,19,.2); color: #4b4e47; font-size: .76rem; font-weight: 700; }
.cap-production .cap-tags span, .cap-training .cap-tags span { border-color: rgba(255,255,255,.22); color: #d8d6cf; }
.cap-chapter-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.2rem; }
.cap-chapter-foot .chapter-link { display: inline-flex; align-items: center; gap: 2rem; padding-bottom: .55rem; border-bottom: 1px solid currentColor; font-size: .86rem; font-weight: 800; }
.cap-chapter-foot .chapter-link span { transition: transform 200ms ease; }
.cap-chapter-foot .chapter-link:hover span { transform: translate(3px,-3px); }
.cap-read { color: var(--muted); font-size: .8rem; line-height: 1.8; }
.cap-production .cap-read, .cap-training .cap-read { color: #a9aaa2; }
.cap-read a { border-bottom: 1px solid currentColor; color: #a84a31; font-weight: 700; }
.cap-production .cap-read a, .cap-training .cap-read a { color: var(--accent-light); }

/* Capability matrix: choose a goal and the map lights the lines it needs. */
.cap-combos { position: relative; overflow: hidden; background: #0f110f; color: var(--light); isolation: isolate; }
.cap-combos-glow { position: absolute; z-index: -1; top: -30%; right: -10%; width: 70vw; height: 90%; background: radial-gradient(ellipse at center, rgba(228,119,84,.2), transparent 65%); pointer-events: none; }
.cap-combos-head { max-width: 1500px; }
.cap-combos-head h2 { max-width: 900px; margin: 1.5rem 0 0; font-size: clamp(2.8rem, 5vw, 5.6rem); font-weight: 900; letter-spacing: -.075em; line-height: 1.22; text-wrap: balance; }
.cap-combos-head h2 span { color: var(--accent-light); }
.cap-combos-head p { max-width: 720px; margin: 1.8rem 0 0; color: #bfc0b8; font-size: 1.02rem; line-height: 2; }
.cap-combos-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(3rem, 5vw, 5rem); }
.cap-goals { display: grid; align-content: start; gap: .7rem; }
.cap-goals button { display: grid; gap: .35rem; padding: 1.25rem 1.3rem; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.02); color: #e7e4dd; text-align: left; cursor: pointer; transition: border-color 220ms ease, background 220ms ease, transform 220ms ease; }
.cap-goals button small { color: #9d9e97; font: 700 .62rem/1.3 var(--font-latin); letter-spacing: .15em; }
.cap-goals button strong { font-size: 1.05rem; font-weight: 800; line-height: 1.5; }
.cap-goals button:hover { border-color: rgba(245,176,139,.55); transform: translateX(4px); }
.cap-goals button[aria-selected="true"] { border-color: var(--accent); background: linear-gradient(90deg, rgba(228,119,84,.2), rgba(228,119,84,.04)); color: var(--light); }
.cap-goals button[aria-selected="true"] small { color: var(--accent-light); }
.cap-matrix { display: flex; flex-direction: column; min-height: 520px; padding: 1.5rem 1.6rem 1.7rem; border: 1px solid rgba(255,255,255,.18); background: rgba(19,21,19,.82); }
.cap-matrix-top { display: flex; justify-content: space-between; color: #9d9e97; font: 700 .62rem/1.3 var(--font-latin); letter-spacing: .15em; }
.cap-matrix-top span:last-child { color: var(--accent-light); }
.cap-matrix-map { width: 100%; max-width: 560px; height: auto; margin: 1.6rem auto .4rem; overflow: visible; }
.map-link { stroke: rgba(255,255,255,.14); stroke-width: 1.5; stroke-dasharray: 5 7; transition: stroke 400ms ease, opacity 400ms ease; }
.map-link.is-on { stroke: var(--accent-light); stroke-dasharray: 10 12; animation: map-flow 1.4s linear infinite; }
@keyframes map-flow { to { stroke-dashoffset: -44; } }
.map-node circle:first-child { fill: #151714; stroke: rgba(255,255,255,.25); stroke-width: 1.5; transition: stroke 400ms ease, fill 400ms ease; }
.map-core { fill: rgba(255,255,255,.3); transition: fill 400ms ease; }
.map-node text { fill: #8d8e87; font: 700 12px var(--font-latin); letter-spacing: .15em; transition: fill 400ms ease; }
.map-node.is-on circle:first-child { fill: rgba(228,119,84,.14); stroke: var(--accent-light); }
.map-node.is-on .map-core { fill: var(--accent-light); }
.map-node.is-on text { fill: var(--light); }
.map-node.is-primary circle:first-child { fill: rgba(228,119,84,.32); stroke: var(--accent); stroke-width: 2.5; }
.map-node.is-primary .map-core { animation: map-core 1.8s ease-in-out infinite; }
@keyframes map-core { 50% { opacity: .35; } }
.cap-matrix-body { margin-top: auto; }
.cap-matrix-lines { margin: 0 0 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.14); color: var(--accent-light); font-size: .95rem; font-weight: 800; }
.cap-matrix-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.cap-matrix-cols span { display: block; margin-bottom: .6rem; color: #9d9e97; font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.cap-matrix-cols p { margin: 0; color: #dcdad3; font-size: .95rem; line-height: 1.85; }
.cap-matrix-cols ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.cap-matrix-cols li { position: relative; padding-left: 1.1rem; color: #dcdad3; font-size: .93rem; line-height: 1.7; }
.cap-matrix-cols li::before { position: absolute; top: .7em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
.cap-matrix.is-switching .cap-matrix-body { animation: cap-fade 420ms ease; }
@keyframes cap-fade { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* FAQ */
.cap-faq { background: #f6f1e9; scroll-margin-top: 150px; }
.cap-faq h2 { font-size: clamp(2.6rem, 3.9vw, 4.6rem); }
.cap-faq h2 span { white-space: nowrap; }
.scenz-capabilities .footer-form-link { display: inline-flex; align-items: center; gap: .55rem; }
.cap-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 7rem); }
.cap-faq-intro p { max-width: 420px; margin: 1.8rem 0 0; color: var(--muted); line-height: 1.95; }
.cap-faq-intro p a { border-bottom: 1px solid currentColor; color: #a84a31; font-weight: 700; }
.cap-faq-list { border-top: 1px solid rgba(20,21,19,.2); }
.cap-faq-list details { border-bottom: 1px solid rgba(20,21,19,.2); }
.cap-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.55rem 0; cursor: pointer; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 800; line-height: 1.5; list-style: none; }
.cap-faq-list summary::-webkit-details-marker { display: none; }
.cap-faq-list summary:hover { color: #a84a31; }
.cap-faq-list summary i { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid rgba(20,21,19,.3); border-radius: 50%; transition: transform 300ms ease, background 300ms ease, border-color 300ms ease; }
.cap-faq-list summary i::before, .cap-faq-list summary i::after { position: absolute; top: 50%; left: 50%; width: 12px; height: 1.6px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.cap-faq-list summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms ease; }
.cap-faq-list details[open] summary i { border-color: var(--accent); background: var(--accent); }
.cap-faq-list details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.cap-faq-list details p { max-width: 760px; margin: -.3rem 0 1.6rem; padding-right: 3rem; color: #4f534c; font-size: .98rem; line-height: 2; }
.cap-faq-list details p a { border-bottom: 1px solid currentColor; color: #a84a31; font-weight: 700; }
.cap-faq-list details[open] p { animation: cap-fade 360ms ease; }

/* Closing CTA */
.cap-next { position: relative; min-height: 560px; overflow: hidden; background: linear-gradient(120deg, #f2e7da, #d9bdab); isolation: isolate; }
.cap-next-lines { position: absolute; z-index: -1; top: -70%; right: -11%; width: min(95vw, 1100px); aspect-ratio: 1; }
.cap-next-lines span { position: absolute; inset: 5%; border: 1px solid rgba(116,74,58,.25); border-radius: 50%; animation: cap-ring 16s linear infinite; }
.cap-next-lines span:nth-child(2) { inset: 19%; animation-duration: 12s; animation-direction: reverse; }
.cap-next-lines span:nth-child(3) { inset: 33%; animation-duration: 9s; }
.cap-next-lines span::after { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(228,119,84,.7); content: ""; }
@keyframes cap-ring { to { transform: rotate(360deg); } }
.cap-next-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: end; }
.cap-next-side p { max-width: 380px; margin: 0 0 1.8rem; color: #4d4a44; line-height: 1.95; }
.cap-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; }

@media (min-width: 921px) {
  .cap-visual { align-self: start; }
}

@media (max-width: 1180px) {
  .cap-index-label { display: none; }
  .cap-index-inner { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cap-line-card { min-height: 390px; }
}

@media (max-width: 920px) {
  .cap-index { top: 74px; }
  .cap-hero { min-height: 740px; }
  .cap-hero-image { object-position: 78% 50%; }
  .cap-hero-shade { background: linear-gradient(90deg, rgba(8,9,8,.93), rgba(8,9,8,.55)), linear-gradient(0deg, rgba(8,9,8,.65), transparent 45%); }
  .cap-lines-head, .cap-faq-grid, .cap-next-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .cap-rail { grid-template-columns: 1fr; gap: 1rem; padding-top: 0; padding-left: 2.2rem; }
  .cap-rail-line { display: none; }
  .cap-rail::before { position: absolute; top: 0; bottom: 0; left: .7rem; width: 1.5px; background: rgba(20,21,19,.2); content: ""; }
  .cap-rail::after { position: absolute; top: 0; left: calc(.7rem - 1px); width: 3.5px; height: 64px; border-radius: 2px; background: var(--accent); content: ""; opacity: 0; }
  .cap-rail.is-live::after { opacity: 1; animation: cap-signal-v 5.5s linear infinite; }
  .cap-line-card { min-height: 0; }
  .cap-line-node { top: 1.9rem; left: -2.25rem; transform: none; }
  .cap-line-icon { width: 72px; height: 72px; margin: 1.5rem 0 1.4rem; }
  .cap-line-icon svg { width: 42px; height: 42px; }
  .cap-line-more { padding-top: 1.3rem; }
  .cap-chapter-grid, .cap-chapter-grid-reverse { grid-template-columns: 1fr; gap: 2.6rem; }
  .cap-chapter-grid-reverse .cap-visual { order: -1; }
  .cap-visual { position: relative; top: auto; }
  .cap-visual img { aspect-ratio: 3 / 2; }
  .cap-combos-grid { grid-template-columns: 1fr; }
  .cap-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-matrix { min-height: 0; }
}

@media (max-width: 640px) {
  .cap-hero { min-height: 700px; }
  .cap-hero-layout { padding-block: 7.5rem 7rem; }
  .cap-hero h1 { margin: 1.6rem 0 1.4rem; font-size: clamp(2.15rem, 9.6vw, 3.4rem); }
  .cap-h1-kicker { margin-bottom: 1rem; font-size: .8rem; letter-spacing: .06em; }
  .cap-hero-copy > p { font-size: .96rem; line-height: 1.9; }
  .cap-hero-actions { gap: 1.1rem 1.5rem; margin-top: 2rem; }
  .cap-hero-bottom { bottom: 1.3rem; font-size: .56rem; }
  .cap-hero-legend { display: none; }
  .cap-hero-bottom { justify-content: flex-end; }
  .cap-index { overflow: visible; }
  .cap-index-inner { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .cap-index a { min-width: 0; min-height: 46px; justify-content: flex-start; gap: .45rem; padding: .5rem .8rem; border-bottom: 1px solid rgba(20,21,19,.11); font-size: .72rem; }
  .cap-index a:nth-of-type(2n) { border-right: 0; }
  .cap-index a:last-child { grid-column: 1 / -1; }
  .cap-index a span { font-size: .62rem; }
  .cap-chapter { scroll-margin-top: 90px; padding-block: 3.8rem 4.6rem; }
  .cap-faq { scroll-margin-top: 90px; }
  .cap-chapter-topline { font-size: .56rem; letter-spacing: .12em; }
  .cap-chapter-topline span:first-child { max-width: 62%; }
  .cap-chapter-grid, .cap-chapter-grid-reverse { gap: 2rem; margin-top: 2.2rem; }
  .cap-lines h2, .cap-faq h2, .cap-next h2, .cap-combos-head h2 { font-size: clamp(2.3rem, 10vw, 3.6rem); }
  .cap-chapter h2 { font-size: clamp(2.3rem, 10vw, 3.5rem); }
  .cap-chapter-icon { width: 60px; height: 60px; margin-bottom: 1.3rem; }
  .cap-chapter-icon svg { width: 36px; height: 36px; }
  .cap-lead { font-size: .98rem; }
  .cap-services li { grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; padding: 1.05rem 0; }
  .cap-service-icon { width: 40px; height: 40px; }
  .cap-service-icon svg { width: 21px; height: 21px; }
  .cap-visual figcaption { font-size: .5rem; }
  .cap-chapter-foot { flex-direction: column; align-items: flex-start; }
  .cap-goals { grid-template-columns: 1fr; gap: .5rem; }
  .cap-goals button { padding: 1rem 1.1rem; }
  .cap-goals button strong { font-size: .98rem; }
  .cap-matrix { padding: 1.2rem 1.1rem 1.3rem; }
  .cap-matrix-map { margin-block: 1rem .2rem; }
  .cap-matrix-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .cap-faq-list summary { padding: 1.25rem 0; }
  .cap-faq-list details p { padding-right: 0; }
  .cap-next { min-height: 0; }
}
