/* Homepage flow pass: one content grid, grouped modules, existing palette/content. */
:root {
  --flow-frame: 1280px;
  --flow-gutter: clamp(24px, 5vw, 72px);
  --flow-micro: 8px;
  --flow-component: 16px;
  --flow-group: 24px;
  --flow-content: 40px;
  --flow-feature: 64px;
  --flow-section: 96px;
}
.frame, .shell { width: min(calc(100% - 2 * var(--flow-gutter)), var(--flow-frame)); }
.site-header, .hero { --opening-frame: var(--flow-frame); --opening-gutter: var(--flow-gutter); }
.hero h1 { font-size: clamp(44px, 3.9vw, 56px); }
.story { padding: var(--flow-section) 0; scroll-margin-top: 104px; }
.story-number { display: none; }
.story h2, .service-intro h2, .process-heading h2, .handover-copy h2, .why-copy h2, .company-main h2, .contact-stage h2 {
  font-size: clamp(36px, 3.2vw, 46px); line-height: 1.16; letter-spacing: -.035em;
  max-width: 840px; margin: 0;
}
.story-kicker { justify-content: flex-start; gap: var(--flow-group); margin-bottom: var(--flow-group); max-width: none; }
.story-kicker small { color: var(--muted); }
.story-kicker span, .story-kicker small { font-size: 11px; line-height: 1.6; letter-spacing: .1em; }
.story-layout, .service-intro, .process-heading { display: block; }
.who-statement p, .service-intro > p { margin: var(--flow-group) 0 0; max-width: 680px; font-size: 17px; line-height: 1.7; padding: 0; }
.benefit-rail {
  width: min(calc(100% - 2 * var(--flow-gutter)), 840px); margin: var(--flow-content) 0 0 max(var(--flow-gutter), calc((100% - var(--flow-frame)) / 2));
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--flow-group); border: 0;
}
.benefit-rail > div { min-height: 0; padding: var(--flow-group) 0; border: 0; border-top: 1px solid var(--line); gap: var(--flow-component); }
.benefit-rail strong { font-size: 18px; }
.benefit-rail span { font-size: 11px; }
.benefit-rail small { font-size: 14px; }
.story-who .story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: var(--flow-feature);
  row-gap: var(--flow-group);
  align-items: start;
}
.story-who .story-kicker { grid-column: 1 / -1; margin-bottom: 0; }
.story-who .who-statement h2 { font-size: clamp(36px, 3vw, 42px); }
.story-who .benefit-rail { width: 100%; margin: 0; gap: var(--flow-group); }
.story-who .benefit-rail > div { padding: var(--flow-group) 0; }
.benefit-explorer { min-width: 0; }
.benefit-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--flow-component); }
.benefit-tabs button {
  position: relative; display: flex; align-items: center; gap: var(--flow-component);
  text-align: left; min-height: 64px; padding: var(--flow-component) 0;
  border: 0; border-bottom: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.benefit-tabs button span { font-size: 11px; font-weight: 400; }
.benefit-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--spectrum); opacity: 0; }
.benefit-tabs button[aria-selected="true"] { color: var(--text); }
.benefit-tabs button[aria-selected="true"]::after { opacity: 1; }
.benefit-tabs button:hover { color: var(--text); }
.benefit-tabs button:focus-visible, .benefit-panels [role="tabpanel"]:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
.benefit-panels { padding-top: var(--flow-content); }
.benefit-panels [role="tabpanel"] { min-height: 180px; padding-block: var(--flow-component); }
.benefit-panels [role="tabpanel"][hidden] { display: none; }
.benefit-panels h3 { margin: 0 0 var(--flow-group); font-size: clamp(26px,2.4vw,34px); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.benefit-panels p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--soft); }
@media (prefers-reduced-motion:no-preference) {
  .benefit-panels [role="tabpanel"]:not([hidden]) { animation: benefit-enter 180ms ease-out; }
  @keyframes benefit-enter { from { opacity: 0; transform: translateX(var(--benefit-shift,12px)); } to { opacity: 1; transform: none; } }
}
.story-services .service-intro {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--flow-group) var(--flow-feature); align-items: end;
}
.story-services .story-kicker { grid-column: 1 / -1; margin-bottom: 0; }
.story-services .service-intro > p { margin: 0; max-width: 440px; }
.service-field {
  width: min(calc(100% - 2 * var(--flow-gutter)), var(--flow-frame)); margin: var(--flow-feature) auto 0;
  grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: auto;
  gap: var(--flow-content); border: 0;
}
.service-field .service-panel {
  grid-column: span 2; grid-row: auto; min-height: 280px; padding: var(--flow-group);
  border: 0; border-top: 1px solid var(--line-strong); background: transparent;
  display: flex; flex-direction: column;
}
.service-field .service-panel:nth-child(n+4) { grid-column: span 3; }
.service-field .service-panel::before {
  left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px;
  background: var(--spectrum); opacity: .35;
}
.service-field .service-panel:hover::before,
.service-field .service-panel:focus-visible::before { opacity: 1; }
.service-field .service-panel:hover,
.service-field .service-panel:focus-visible { background: rgba(255,255,255,.024); }
.service-field .service-panel::after { display: none; }
.service-no { font-size: 12px; color: var(--muted); }
.service-field .service-tag { position: absolute; top: var(--flow-group); right: var(--flow-group); margin: 0; font-size: 10px; color: var(--muted); }
.service-field .service-panel h3 { margin: var(--flow-group) 0 var(--flow-component); font-size: clamp(24px,2.1vw,30px); line-height: 1.25; letter-spacing: -.02em; }
.service-panel p { font-size: 15px; line-height: 1.65; }
.service-go { position: static; margin-top: auto; padding-top: var(--flow-group); font-size: 11px; }
.story-process .process-heading h2 { margin-top: 0; }
.process-canvas {
  --process-marker: 56px;
  width: min(calc(100% - 2 * var(--flow-gutter)), var(--flow-frame)); margin: var(--flow-feature) auto 0;
  min-height: 0; padding: 0; gap: var(--flow-group);
}
.process-spine {
  left: calc(var(--process-marker) / 2);
  right: calc((100% - 5 * var(--flow-group)) / 6 - var(--process-marker) / 2);
  top: calc(var(--process-marker) / 2); height: 2px; width: auto; bottom: auto;
  background: var(--spectrum); opacity: .65;
}
.process-spine span { display: none; }
.process-node, .process-node:nth-of-type(even) {
  align-self: start; min-height: 0; padding: 0; border: 0;
}
.process-node b {
  position: relative; display: grid; place-items: center;
  width: var(--process-marker); height: var(--process-marker);
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: #000b15; color: var(--soft); font-size: 14px; font-weight: 500;
}
.process-node i, .process-node:nth-of-type(even) i { display: none; }
.process-node h3, .process-node:nth-of-type(even) h3 {
  margin: var(--flow-group) 0 var(--flow-component);
  font-size: clamp(20px,1.6vw,23px); line-height: 1.25;
}
.process-node p { font-size: 16px; line-height: 1.65; max-width: none; color: var(--soft); }
.handover-stage, .company-stage {
  width: min(calc(100% - 2 * var(--flow-gutter)), var(--flow-frame)); margin-inline: auto;
  min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--flow-feature);
}
.handover-copy { grid-row: 1 / 3; }
.handover-copy, .company-main { padding: 0; border: 0; }
.handover-copy p, .company-main p { margin: var(--flow-group) 0 var(--flow-group); font-size: 17px; line-height: 1.7; }
.handover-visual { min-height: 430px; border: 0; }
.data-sheet { width: min(64%, 290px); }
.sheet-front strong { font-size: 32px; margin-bottom: var(--flow-content); }
.handover-stage { row-gap: var(--flow-group); }
.handover-spec { grid-column: 2; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: none; gap: var(--flow-component); border: 0; }
.handover-spec > div { padding: var(--flow-component) 0; min-height: 0; border: 0; border-top: 1px solid var(--line); gap: var(--flow-micro); }
.handover-spec strong { font-size: 11px; }
.why-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--flow-feature); }
.principle-lines article { grid-template-columns: 32px 1fr; gap: var(--flow-component); padding: var(--flow-group) 0; }
.principle-lines h3 { font-size: 18px; }
.principle-lines p { font-size: 15px; line-height: 1.65; }
.founder-panel { grid-template-rows: auto auto; }
.founder-signal { min-height: 220px; }
.founder-signal::before { width: 32%; }
.founder-signal::after { width: 48%; }
.founder-signal .mark-placeholder { width: 90px; }
.founder-copy { padding: var(--flow-group) 0 0; }
.founder-copy > span { font-size: 11px; }
.founder-copy h3 { font-size: 28px; }
.founder-copy p { font-size: 15px; }
.story-contact { min-height: 0; }
.contact-bottom { margin-top: var(--flow-group); grid-template-columns: minmax(0,680px) auto; justify-content: start; gap: var(--flow-content); align-items: center; }
.contact-bottom p { font-size: 17px; line-height: 1.7; }
.contact-arrow { width: 72px; font-size: 40px; }
.text-link, .founder-copy .text-link { font-size: 12px; }
.site-footer { padding-top: var(--flow-feature); }
.footer-grid { gap: var(--flow-content); grid-template-columns: 1fr .8fr 1.5fr 1.2fr; }
.footer-grid h2 { font-size: 12px; }
.footer-grid a, .footer-grid p { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.footer-bottom { font-size: 12px; }
.story a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
@media (max-width:1180px) {

  .hero h1 { font-size: clamp(36px, 3.9vw, 46px); }
}
@media (max-width:820px) {
  .story-who .story-layout { grid-template-columns: 1fr; row-gap: var(--flow-group); }
  .story-who .benefit-rail { margin-top: var(--flow-component); }
  .story { padding: var(--flow-feature) 0; scroll-margin-top: 88px; }
  .hero h1 { font-size: clamp(32px,6.8vw,52px); }
  .story-kicker { flex-wrap: wrap; gap: var(--flow-micro) var(--flow-group); }
  .benefit-rail, .service-field { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-services .service-intro { grid-template-columns: 1fr; }
  .story-services .service-intro > p { grid-column: 1; max-width: 680px; }
  .service-field .service-panel, .service-field .service-panel:nth-child(n+4) { grid-column: auto; }
  .service-field .service-panel:last-child { grid-column: 1 / -1; }
  .benefit-rail > div { border-right: 0; border-bottom: 0; }
  .process-canvas { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--flow-content); }
  .process-spine { display: none; }
  .process-node, .process-node:nth-of-type(even) { padding: var(--flow-group) 0; border-top: 1px solid var(--line); }
  .process-node i, .process-node:nth-of-type(even) i { display: none; }
  .process-node h3, .process-node:nth-of-type(even) h3 { margin-top: var(--flow-group); }
  .handover-stage, .company-stage, .why-layout { display: grid; grid-template-columns: 1fr; gap: var(--flow-content); }
  .handover-copy { grid-row: auto; }
  .handover-spec { grid-column: auto; }
  .handover-spec > div:last-child { grid-column: auto; }
  .principle-lines { margin-top: 0; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-bottom { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
  .service-field, .benefit-rail, .footer-grid { grid-template-columns: 1fr; }
  .benefit-rail > div { border-bottom: 0 !important; }
  .service-field .service-panel { min-height: 280px; }
  .story h2 { font-size: 34px; }
}

/* Process stages use a readable grid before the desktop line becomes cramped. */
@media (min-width:821px) and (max-width:1100px) {
  .process-canvas { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--flow-content); }
  .process-spine { display: none; }
  .process-node, .process-node:nth-of-type(even) { padding-top: var(--flow-group); border-top: 1px solid var(--line); }
}
@media (max-width:480px) {
  .process-canvas { grid-template-columns: 1fr; gap: var(--flow-group); }
  .process-node, .process-node:nth-of-type(even) {
    display: grid; grid-template-columns: var(--process-marker) minmax(0,1fr);
    column-gap: var(--flow-group); row-gap: var(--flow-micro); padding: var(--flow-group) 0 0;
  }
  .process-node b { grid-row: 1 / 3; }
  .process-node h3, .process-node:nth-of-type(even) h3 { margin: 0; align-self: end; }
  .process-node p { grid-column: 2; }
}

/* Technical handover: one shared section rule, content group and existing artwork. */
.story-handover .handover-stage { row-gap: var(--flow-content); align-items: start; }
.story-handover .story-kicker { grid-column: 1 / -1; max-width: none; margin: 0; }
.story-handover .handover-copy { grid-column: 1; grid-row: 2; }
.story-handover .handover-copy h2 { margin-top: 0; }
.story-handover .handover-spec { grid-column: 1; grid-row: 3; gap: var(--flow-component) var(--flow-group); }
.story-handover .handover-spec > div { display: flex; align-items: baseline; gap: var(--flow-component); padding-block: var(--flow-component); }
.story-handover .handover-spec span { font-size: 12px; color: var(--muted); }
.story-handover .handover-spec strong { font-size: 13px; letter-spacing: .06em; color: var(--soft); }
.story-handover .handover-visual { grid-column: 2; grid-row: 2 / 4; min-height: 480px; align-self: center; }
@media (max-width:820px) {
  .story-handover .handover-copy, .story-handover .handover-spec, .story-handover .handover-visual { grid-column: 1; grid-row: auto; }
  .story-handover .handover-visual { min-height: 440px; }
}
@media (max-width:480px) {
  .story-handover .handover-spec { grid-template-columns: 1fr; }
  .story-handover .handover-visual { min-height: 400px; }
}
@media (max-width:820px) {
  .story-handover .data-sheet { width: min(64%,260px); }
  .story-handover .sheet-back { transform: translate(-24px,16px) rotate(-7deg); }
  .story-handover .sheet-mid { transform: translate(-12px,8px) rotate(-3deg); }
  .story-handover .sheet-front strong { font-size: clamp(24px,5.5vw,32px); }
}
@media (max-width:820px) {
  .story-handover .sheet-front { padding: var(--flow-group); }
}

/* Why VIT: shared section rule and four grouped principles. */
.story-why .why-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); row-gap: var(--flow-content); }
.story-why .story-kicker { grid-column: 1 / -1; max-width: none; margin: 0; }
.story-why .why-copy h2 { margin-top: 0; }
.story-why .principle-lines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--flow-content); border: 0; margin: 0; }
.story-why .principle-lines article {
  display: block; min-width: 0; padding: var(--flow-group) 0 0;
  border: 0; border-top: 1px solid var(--line); transition: none;
}
.story-why .principle-lines article:hover { padding: var(--flow-group) 0 0; background: transparent; }
.story-why .principle-lines span { display: block; margin-bottom: var(--flow-component); font-size: 12px; color: var(--muted); }
.story-why .principle-lines h3 { font-size: clamp(20px,1.7vw,24px); line-height: 1.25; margin: 0 0 var(--flow-component); }
.story-why .principle-lines p { font-size: 16px; line-height: 1.65; color: var(--soft); }
@media (max-width:1100px) {
  .story-why .why-layout { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
  .story-why .principle-lines { grid-template-columns: 1fr; gap: var(--flow-group); }
}

/* Company: shared section rule and a compact founder profile. */
.story-company .company-stage { row-gap: var(--flow-content); align-items: start; }
.story-company .story-kicker { grid-column: 1 / -1; max-width: none; margin: 0; }
.story-company .company-main h2 { margin-top: 0; }
.story-company .founder-panel { grid-template-columns: 144px minmax(0,1fr); grid-template-rows: auto; gap: var(--flow-group); align-items: start; }
.story-company .founder-signal { min-height: 160px; }
.story-company .founder-signal::before { width: 70%; }
.story-company .founder-signal::after { width: 95%; }
.story-company .founder-signal .mark-placeholder { width: 72px; }
.story-company .founder-copy { border: 0; padding: 0; }
.story-company .founder-copy > span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.story-company .founder-copy h3 { margin: var(--flow-component) 0 var(--flow-component); font-size: 30px; line-height: 1.2; }
.story-company .founder-copy p { font-size: 16px; line-height: 1.65; color: var(--soft); margin-bottom: var(--flow-group); }
@media (max-width:1100px) {
  .story-company .company-stage { grid-template-columns: 1fr; }
  .story-company .founder-panel { max-width: 760px; padding-top: var(--flow-content); border-top: 1px solid var(--line); }
}
@media (max-width:480px) {
  .story-company .founder-panel { grid-template-columns: 1fr; }
  .story-company .founder-signal { width: 144px; }
}

/* Contact and footer: clear closing action and shared content alignment. */
.story-contact .story-kicker { max-width: none; margin-bottom: var(--flow-content); }
.story-contact .contact-stage h2 { margin: 0; }
.story-contact .contact-bottom { grid-template-columns: minmax(0,680px) auto; justify-content: start; margin-top: var(--flow-content); }
.story-contact .contact-bottom p { color: var(--soft); }
.story-contact .contact-arrow {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--flow-group);
  width: auto; min-height: 56px; aspect-ratio: auto; padding: var(--flow-component) var(--flow-group);
  font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: .06em;
}
.story-contact .contact-arrow span { font-size: 24px; line-height: 1; font-weight: 400; }
.story-contact .contact-arrow:hover { transform: none; }
.site-footer .footer-grid { grid-template-columns: 1.1fr .7fr 1.4fr 1.4fr; padding-bottom: var(--flow-feature); }
.site-footer .footer-grid h2 { color: var(--soft); margin-bottom: var(--flow-group); }
.site-footer .footer-grid a, .site-footer .footer-grid p { color: var(--muted); margin-block: var(--flow-micro); }
.site-footer .footer-grid a:hover { color: var(--text); }
.site-footer .footer-bottom { color: var(--muted); padding-block: var(--flow-group); }
@media (max-width:1100px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
  .story-contact .contact-bottom { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width:480px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-bottom { flex-direction: column; gap: var(--flow-component); }
}

/* Composition rhythm: connected service field, process-led band, central principles. */
.story-services .service-field {
  grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0;
  border-top: 2px solid transparent;
  border-image: var(--spectrum) 1;
}
.story-services .service-field .service-panel {
  grid-column: auto; min-height: 260px; border-top: 0;
  border-bottom: 1px solid var(--line); padding: var(--flow-content) var(--flow-group);
}
.story-services .service-field .service-panel::before { display: none; }
.story-services .service-field .service-panel-primary {
  grid-column: span 2; grid-row: span 2; justify-content: center;
  border-right: 1px solid var(--line); padding: var(--flow-feature) var(--flow-content);
  background: rgba(255,255,255,.018);
}
.story-services .service-panel-primary h3 { font-size: clamp(32px,3vw,42px); }
.story-services .service-panel-primary p { max-width: 360px; font-size: 17px; }
.story-services .service-panel-primary .service-go { margin-top: var(--flow-content); }
.story-services .service-panel-primary .service-tag { top: var(--flow-feature); right: var(--flow-content); }
.story-services .service-field .service-panel:nth-child(even) { border-right: 1px solid var(--line); }
.story-services .service-field .service-panel h3 { overflow-wrap: normal; }
.story-process .process-canvas { --process-marker: 72px; margin-top: var(--flow-feature); }
.story-process .process-summary { margin-top: var(--flow-feature); }
.story-process .process-summary h2 { font-size: clamp(24px,2vw,30px); line-height: 1.4; max-width: none; }
.story-process .process-summary h2 br { display: none; }
.story-process .process-summary h2 em::before { content: ' '; }
.story-why .why-layout {
  grid-template-columns: minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr);
  gap: var(--flow-content); align-items: center;
}
.story-why .why-copy { grid-column: 2; grid-row: 2 / 4; text-align: center; padding: var(--flow-content) 0; }
.story-why .why-copy h2 { font-size: clamp(32px,2.8vw,42px); }
.story-why .principle-lines { display: contents; }
.story-why .principle-lines article { padding: var(--flow-group) 0; }
.story-why .principle-lines article:hover { padding: var(--flow-group) 0; }
.story-why .principle-lines article:nth-child(1) { grid-column: 1; grid-row: 2; }
.story-why .principle-lines article:nth-child(2) { grid-column: 3; grid-row: 2; }
.story-why .principle-lines article:nth-child(3) { grid-column: 1; grid-row: 3; }
.story-why .principle-lines article:nth-child(4) { grid-column: 3; grid-row: 3; }
@media (max-width:1100px) {
  .story-services .service-field { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-services .service-field .service-panel-primary { grid-column: 1 / -1; grid-row: auto; border-right: 0; }
  .story-services .service-field .service-panel:last-child { grid-column: auto; }
  .story-why .why-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-why .why-copy { grid-column: 1 / -1; grid-row: auto; text-align: left; padding: 0; }
  .story-why .principle-lines { display: grid; grid-column: 1 / -1; }
  .story-why .principle-lines article:nth-child(n) { grid-column: auto; grid-row: auto; }
}
@media (max-width:480px) {
  .story-services .service-field { grid-template-columns: 1fr; }
  .story-services .service-field .service-panel:nth-child(n) {
    grid-column: 1; grid-row: auto; border-right: 0; min-height: 0;
    padding: var(--flow-content) var(--flow-group);
  }
  .story-services .service-panel-primary .service-tag { top: var(--flow-content); right: var(--flow-group); }
  .story-process .process-canvas { --process-marker: 56px; }
  .story-process .process-summary h2 { font-size: 24px; }
}

/* Selective emphasis uses the existing service tint and VIT spectrum. */
.story-why .why-copy {
  position: relative; padding: var(--flow-content) var(--flow-group);
  background: radial-gradient(ellipse at center,rgba(255,255,255,.018),transparent 72%);
}
.story-why .why-copy::after {
  content: ''; display: block; width: min(160px,60%); height: 2px;
  margin: var(--flow-group) auto 0; background: var(--spectrum); opacity: .65;
}
@media (max-width:1100px) {
  .story-why .why-copy { padding: var(--flow-group) 0; }
  .story-why .why-copy::after { margin-left: 0; }
}

/* Who We Help: a benefit statement leads; controls form a quiet navigation row. */
.story-who .story-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); row-gap: var(--flow-content); }
.story-who .who-statement h2 { font-size: clamp(30px,2.5vw,36px); }
.story-who .benefit-explorer { display: flex; flex-direction: column; }
.story-who .benefit-panels {
  order: -1; padding: var(--flow-content); margin-bottom: var(--flow-group);
  background: radial-gradient(ellipse at top left,rgba(255,255,255,.018),transparent 80%);
  border-left: 2px solid transparent; border-image: var(--spectrum) 1;
}
.story-who .benefit-panels [role="tabpanel"] { min-height: 180px; padding: 0; }
.story-who .benefit-panels h3 {
  font-size: 12px; line-height: 1.6; letter-spacing: .1em; color: var(--muted);
  margin-bottom: var(--flow-group);
}
.story-who .benefit-panels p { font-size: clamp(30px,3vw,44px); line-height: 1.2; letter-spacing: -.035em; color: var(--text); max-width: 480px; }
.story-who .benefit-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--flow-component); }
.story-who .benefit-tabs button { font-size: 11px; min-height: 48px; line-height: 1.5; align-items: center; }
.story-who .benefit-tabs button span { display: none; }
@media (max-width:820px) {
  .story-who .story-layout { grid-template-columns: 1fr; }
  .story-who .benefit-panels { padding: var(--flow-group); }
  .story-who .benefit-panels [role="tabpanel"] { min-height: 140px; }
}
@media (max-width:480px) {
  .story-who .benefit-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-who .benefit-panels p { font-size: 32px; }
}

/* One homepage composition across wide screens; keep readable text measures. */
@media (min-width: 1601px) {
  .opening-depth {
    --flow-feature: 80px;
    --flow-section: 112px;
  }
  .opening-depth .hero h1 { font-size: clamp(56px, 3vw, 72px); }
  .opening-depth .hero .hero-lead { font-size: 20px; max-width: 740px; }
  .opening-depth .story h2 { font-size: 52px; }
  .opening-depth .story-who .who-statement h2 { font-size: 40px; }
  .opening-depth .story-process .process-summary h2 { font-size: 34px; }
  .opening-depth .story p { font-size: 19px; }
  .opening-depth .story-who .benefit-panels p { font-size: 48px; max-width: 600px; }
  .opening-depth .story-kicker span, .opening-depth .story-kicker small,
  .opening-depth .benefit-tabs button { font-size: 13px; }
  .opening-depth .site-header .desktop-nav a { font-size: 16px; }
}
.opening-depth .hero .hero-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.opening-depth .hero .hero-landscape {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  mask-image:
    linear-gradient(90deg, transparent 2%, #000 11%, #000 91%, transparent),
    linear-gradient(180deg, transparent, #000 14%, #000 85%, transparent);
  mask-composite: intersect;
}
.opening-depth .hero .hero-landscape img {
  position: absolute;
  inset: 50% 0 auto auto;
  width: 200%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
}
.opening-depth .hero .hero-landscape::after {
  background: linear-gradient(90deg, #000d19 0%, #000d1933 16%, transparent 42%);
}
.opening-depth .story-who {
  background: radial-gradient(ellipse at 70% 0%, color-mix(in srgb, var(--blue) 5%, transparent), transparent 72%);
}
@media (max-width: 820px) {
  .opening-depth .hero .hero-stage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: clamp(40px, 8vw, 64px) var(--flow-group);
  }
  .opening-depth .hero .hero-landscape {
    justify-self: center;
    width: min(100%, 520px);
  }
}

/* Who We Help: supplied artwork recedes behind the existing foreground. */
.opening-depth .story-who { isolation: isolate; }
.opening-depth .who-atmosphere {
  position: absolute; inset: 0; margin-inline: auto; z-index: -1; pointer-events: none;
  width: min(100%, calc(var(--flow-frame) + 2 * var(--flow-gutter)));
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent),
    linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
}
.opening-depth .who-atmosphere img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
}
.opening-depth .who-atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,13,25,.92), rgba(0,13,25,.78) 46%, rgba(0,13,25,.57) 78%, rgba(0,13,25,.64));
}
.opening-depth .story-who .benefit-panels {
  background: linear-gradient(90deg, rgba(0,13,25,.52), rgba(0,13,25,.12));
}
@media (max-width:820px) {
  .opening-depth .who-atmosphere img { object-position: 64% center; }
  .opening-depth .who-atmosphere::after { background: rgba(0,13,25,.82); }
}

.opening-depth #services .service-field .service-panel:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.opening-depth .story-handover .sheet-front:has(details[open]) { transform: none; }
.handover-samples details { border-bottom: 1px solid var(--line-strong); }
.handover-samples summary {
  align-content: center;
  min-height: 46px;
  padding: 8px 3px;
  color: var(--text);
  cursor: pointer;
}
.handover-samples summary:focus-visible {
  outline: 2px solid #82c7f4;
  outline-offset: 2px;
}
.opening-depth .handover-samples :is(p, ul, dl) {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.handover-samples ul { padding-inline-start: 20px; }
.handover-samples ul ul { margin-bottom: 0; }
.handover-samples dt { font-weight: 650; }
.handover-samples dd { margin: 0 0 6px; }

.opening-depth .home-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--flow-component);
  padding: var(--flow-group);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-soft);
}
.home-tool h3 { margin: 0; font-size: 1.25rem; }
.opening-depth .home-tool p { margin: 8px 0; font-size: .95rem; color: var(--soft); }
.home-tool a { min-height: 44px; }
.home-tool-controls:not([hidden]) { display: grid; gap: 8px; }
.home-tool-controls input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #82a5be;
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  color-scheme: dark;
}
.home-tool-controls input:focus-visible {
  outline: 2px solid #82c7f4;
  outline-offset: 3px;
}
.home-tool-controls output { color: #a8d9fa; font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .opening-depth .home-tool { grid-template-columns: minmax(0, 1fr); }
}

.opening-depth .home-renamer {
  position: relative;
  margin-top: var(--flow-content);
  background: #061827;
  border-color: #395367;
  border-top-color: var(--tool-line-colour);
}
.home-renamer-controls input {
  border-color: #6c8ca3;
  background: #000d19;
  color: #f5f7fa;
}
.home-renamer :is(a, input):focus-visible { outline-color: var(--tool-line-colour); }

.opening-depth .home-renamer :is(h3, a.text-link, .home-rename-result) { color: var(--tool-title-colour); }
.home-renamer-results { grid-column: 1 / -1; }
.home-renamer-columns,
.home-renamer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 12px;
}
.home-renamer-columns {
  color: var(--tool-title-colour);
  font-size: .85rem;
  font-weight: 650;
}
.home-renamer-files {
  border: 1px solid #395367;
  border-radius: 5px;
  background: #000d19;
}
.home-renamer-row + .home-renamer-row { border-top: 1px solid #395367; }
.home-renamer-row code { font-size: .85rem; overflow-wrap: anywhere; }
.home-renamer-row code:has(> .filename-part) { display: block; overflow-x: auto; overflow-wrap: normal; }
.home-renamer-row .filename-part { white-space: pre; overflow-wrap: normal; word-break: normal; }
.home-renamer .home-rename-result.has-error { color: #ffbcac; }
.opening-depth .home-renamer .home-renamer-status { margin: 0; padding: 8px 12px; }


.opening-depth .hero .workflow-ribbon { position: relative; }
.sample-file { padding-block: var(--flow-group); }
.sample-file h2, .home-problems h3 { margin: 0; font-size: 1.25rem; }
.sample-file {
  display: grid;
  grid-template-columns: minmax(290px, .85fr) minmax(0, 1.15fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 14px;
  padding-block: clamp(20px, 2.25vw, 32px);
}
.sample-file-intro > p { margin: 8px 0 12px; color: var(--soft); overflow-wrap: anywhere; }
.sample-file-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  border-bottom: 1px solid var(--line-strong);
}
.sample-file-controls button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soft);
  font: inherit;
  cursor: pointer;
}
.sample-file-controls button:hover { color: var(--text); background: var(--panel); }
.sample-file-controls button[aria-pressed="true"] {
  border-bottom-color: var(--tool-line-colour, #82c7f4);
  background: color-mix(in srgb, var(--tool-line-colour, #82c7f4) 13%, var(--panel));
  color: var(--text);
  font-weight: 650;
}
.sample-file.is-interactive .sample-file-results { display: grid; }
.sample-file-results > div {
  min-width: 0;
  padding: 12px 0 12px clamp(16px, 2vw, 24px);
  border-left: 1px solid #67b7ec80;
  background: linear-gradient(90deg, transparent, #0b213366 68%, transparent);
  overflow-wrap: anywhere;
}
.sample-file.is-interactive .sample-file-results > div { grid-area: 1 / 1; }
.sample-file.is-interactive .sample-file-results > [data-selected="false"] { visibility: hidden; }
.sample-file-results h3 { margin: 0 0 8px; font-size: 1rem; }
.sample-file-results p { margin: 6px 0; color: var(--soft); line-height: 1.55; }
.sample-file-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 8px 0;
}
.sample-file-checks dd { margin: 0; color: var(--soft); }
.sample-file-intro > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  text-decoration-color: #76afd4;
  text-underline-offset: 4px;
}
@media (max-width: 760px) {
  .sample-file { grid-template-columns: minmax(0, 1fr); }
}
.home-problem-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-problem-links a { border: 1px solid var(--line-strong); border-radius: 6px; }
.home-problems { padding-block: var(--flow-group); }
.home-problem-links { margin-top: 12px; }
.home-problem-links a {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px 12px;
  padding: 12px;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.home-problem-links small { grid-column: 1 / -1; color: var(--soft); line-height: 1.5; }
.home-problem-links a span { color: #a8d9fa; }
.home-problem-links a:hover { background: var(--panel); border-color: #82c7f4; }
.home-problem-links a:focus-visible, .sample-file-controls button:focus-visible {
  outline: 2px solid #82c7f4;
  outline-offset: 3px;
}
.opening-depth #why .why-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.opening-depth #why .why-copy { grid-column: auto; grid-row: auto; padding: 0; text-align: left; }
.opening-depth #why .why-copy::after { margin-left: 0; }
.opening-depth #why .principle-lines { display: block; grid-column: auto; }
.opening-depth #why .principle-lines article { display: block; padding-block: var(--flow-component); }
.opening-depth #why .why-copy .button { margin-top: var(--flow-component); white-space: normal; }
@media (max-width: 820px) {
  .sample-file-checks, .home-problem-links, .opening-depth #why .why-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .home-problem-links a { transition: none; }
}

.opening-depth .story-who .who-situations {
  align-self: center;
  padding: var(--flow-group);
}
.who-situations ul { margin: 0; padding-inline-start: 20px; color: var(--soft); line-height: 1.65; }
.who-situations li + li { margin-top: 8px; }
.opening-depth .hero .workflow-ribbon { padding-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sample-file-controls button { transition: border-color .16s ease, background-color .16s ease, color .16s ease; }
  .sample-file-results > [data-selected="true"] { animation: sample-file-enter .16s ease-out; }
  @keyframes sample-file-enter {
    from { opacity: .72; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .opening-depth :is(.vit-tools-home-entry > a, .home-renamer .text-link) {
    transition: background-color .16s ease, border-color .16s ease;
  }

  .opening-depth #services .service-panel .service-go {
    transition: background-color .16s ease, background-size .16s ease;
  }
}

/* Homepage service rows follow the Services directory. */
.opening-depth .home-problem-links { gap: 0; border-block: 1px solid #b5d8f033; }
.opening-depth .home-problem-links a {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px;
}
.opening-depth .home-problem-links a + a { border-inline-start: 1px solid #b5d8f033; }
.opening-depth .home-problem-links a:hover { background: #09406b26; }

.opening-depth .story-services .service-field {
  width: min(calc(100% - 2 * var(--flow-gutter)), var(--flow-frame));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
}
.opening-depth #services .service-field .service-panel {
  min-height: 0;
  padding: clamp(20px, 3vw, 42px) 0;
  border: 0;
  border-top: 1px solid #b5d8f033;
  background: transparent;
  justify-content: flex-start;
}
.opening-depth #services .service-field .service-panel::before {
  width: 72px;
  height: 2px;
  background: var(--service-row-accent);
  opacity: .8;
}
.opening-depth #services .service-field .service-panel:hover::before { opacity: 1; }
.opening-depth #services .service-panel:nth-child(1) { --service-row-accent: var(--blue); }
.opening-depth #services .service-panel:nth-child(2) { --service-row-accent: var(--green); }
.opening-depth #services .service-panel:nth-child(3) { --service-row-accent: var(--orange); }
.opening-depth #services .service-panel:nth-child(4) { --service-row-accent: var(--red); }
.opening-depth #services .service-field .service-no { display: none; }
.opening-depth #services .service-field .service-panel h3 { margin-top: 12px; }
.opening-depth #services .service-field .service-panel .service-go { margin-top: auto; }


@media (max-width: 820px) {
  .opening-depth .home-problem-links a + a { border-inline-start: 0; border-top: 1px solid #b5d8f033; }
}
@media (max-width: 560px) {
  .opening-depth .story-services .service-field { grid-template-columns: minmax(0, 1fr); }
}

/* Align the opening and supporting sections on the same content frame. */
.opening-depth {
  --home-column-gap: clamp(28px, 4vw, 64px);
  --home-section-space: clamp(36px, 5vw, 70px);
}
.opening-depth .hero .hero-stage {
  min-height: 0;
  gap: var(--home-column-gap);
  padding-block: clamp(32px, 4vw, 62px) clamp(20px, 2.5vw, 36px);
}
.opening-depth .hero .hero-copy :is(.hero-lead, .hero-actions) {
  margin-top: clamp(20px, 2.25vw, 32px);
}
.opening-depth main .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.opening-depth :is(#who, #process, #handover, #why) { padding-block: var(--home-section-space); }
.opening-depth #who .story-layout,
.opening-depth #handover .handover-stage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--home-column-gap);
  row-gap: 16px;
  min-height: 0;
}
.opening-depth #who .story-kicker { grid-column: 1 / -1; grid-row: 1; }
.opening-depth #who .who-statement { grid-column: 1; grid-row: 2; }
.opening-depth #who .who-situations {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: start;
  background: rgb(0 13 25 / 75%);
}
.opening-depth #who .who-situations h3 { margin-bottom: 12px; }
.opening-depth #who .who-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  margin: 0;
}
.opening-depth #who .who-atmosphere::after {
  background: linear-gradient(90deg, #000d19e8, #000d19c7 55%, #000d19a6);
}
.opening-depth #handover .handover-visual {
  grid-row: 2;
  min-height: 0;
  padding: 0 0 12px 24px;
  place-items: start;
  border: 0;
}
.opening-depth #handover .data-sheet { min-height: 0; }
.opening-depth #handover .sheet-front { width: min(100%, 450px); }
.opening-depth #handover .data-sheet[aria-hidden="true"] {
  inset: 8px auto 12px 38px;
  width: min(calc(100% - 38px), 450px);
}
.opening-depth #handover .handover-atmosphere img { opacity: .45; }
.opening-depth #handover .home-renamer { margin-top: var(--flow-group); }
.opening-depth #why .why-copy > p { margin-block: 12px; }
@media (min-width: 821px) {
  .opening-depth #why .why-copy { align-self: center; }
}
@media (max-width: 820px) {
  .opening-depth .hero .hero-stage { gap: 18px; padding-block: 30px 16px; }
  .opening-depth #who .story-layout,
  .opening-depth #handover .handover-stage { grid-template-columns: minmax(0, 1fr); }
  .opening-depth #who .who-situations { grid-column: 1; grid-row: 3; }
  .opening-depth #handover .handover-visual { grid-column: 1; grid-row: auto; }
}


/* Match the Services directory's content frame and responsive gutters. */
body.opening-depth {
  --flow-frame: 1080px;
  --flow-gutter: clamp(24px, 5vw, 64px);
}
.opening-depth .hero h1 { text-wrap: balance; }
.opening-depth #services :is(.service-intro, .service-field) {
  width: min(calc(100% - 2 * var(--flow-gutter)), var(--flow-frame));
}
.opening-depth #services .service-intro > p { max-width: 62ch; }
.opening-depth .home-contact-group {
  width: min(100%, 720px);
  margin-inline: auto;
  text-align: left;
}
.opening-depth #contact .home-contact-group .story-kicker { margin-bottom: var(--flow-component); }
.opening-depth #contact .home-contact-group .contact-bottom { margin-top: var(--flow-group); }
@media (max-width: 820px) {
  .opening-depth #contact .home-contact-group .contact-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: var(--flow-component);
  }
}

/* Homepage section accents use the same identity tokens as the tools. */
.opening-depth main > .story[data-tool-theme] .story-kicker > span,
.opening-depth main > .story[data-tool-theme] h2 .section-accent,
.opening-depth .hero .sample-file :is(h2, h3) {
  color: var(--tool-title-colour);
}
.opening-depth .hero .sample-file-controls button[aria-pressed="true"],
.opening-depth .hero .sample-file-results > div {
  border-color: var(--tool-line-colour);
}
.opening-depth #handover .package-rule {
  width: 40px;
  height: 1px;
  background: var(--tool-line-colour);
  opacity: 1;
}

.opening-depth main > :is(#services, #process, #handover) :is(.service-intro, .process-summary, .handover-copy) h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.16;
}
.opening-depth main > :is(#who, #why, #company) :is(.who-statement, .why-copy, .company-main) h2 {
  font-size: clamp(26px, 2.5vw, 36px);
}
.opening-depth main > #contact .home-contact-group h2 {
  font-size: clamp(32px, 3.6vw, 50px);
}
.opening-depth main > .story h2 { text-wrap: balance; }
.opening-depth #company .company-main h2 em { color: inherit; }

@media (max-width: 820px) {
  .opening-depth main > #contact .home-contact-group h2 {
    font-size: clamp(29px, 4.4vw, 36px);
  }
}


/* A continuous navy canvas for Home, with the section labels marking the rhythm. */
body.opening-depth,
.opening-depth main > :is(.hero, .story),
.opening-depth .hero .workflow-ribbon,
body.opening-depth > .site-footer {
  background: var(--bg);
  border-bottom: 0;
}
.opening-depth .hero .workflow-ribbon { border-top: 0; }
.opening-depth main > :is(.hero, .story)::before,
.opening-depth main > .story::after,
.opening-depth #why .why-copy::after,
.opening-depth #why .why-copy::before,
.opening-depth > .site-footer::before {
  content: none;
}
.opening-depth main > .story .story-kicker > span::after,
.opening-depth .hero .eyebrow::after,
.opening-depth .sample-file-intro > h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 6px;
  background: var(--tool-line-colour, var(--spectrum));
}
.opening-depth #who .story-layout { align-items: start; }
.opening-depth #who .who-situations {
  background: transparent;
  border-image: none;
  border-left: 1px solid var(--line-strong);
}
.opening-depth #why .why-copy { background: transparent; }
.opening-depth #handover .handover-visual { background: none; }
.opening-depth #handover .handover-visual::before { content: none; }
.opening-depth #contact { isolation: auto; background: transparent; }
body.opening-depth > .site-footer {
  min-height: 0;
  padding-block: 0;
  overflow: visible;
  isolation: auto;
}
body.opening-depth > .site-footer::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--closing-contact-height, 0px)) 0 0;
  height: auto;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/footer-blue-flow.svg") center bottom / 100% 100% no-repeat;
  filter: none;
  opacity: .25;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 85%, transparent);
}
.opening-depth #contact .contact-stage { position: relative; z-index: 1; }
body.opening-depth > .site-footer .footer-grid { padding-block: 24px; }
body.opening-depth > .site-footer .footer-bottom { margin-bottom: 0; padding-block: 16px; }
.opening-depth #services .home-problems > h3 { font-size: 1rem; }

/* Keep action feedback inside each homepage link's existing footprint. */
.opening-depth #services .service-panel:is(:focus-visible, :active)::before { opacity: 1; }
.opening-depth :is(.vit-tools-home-entry > a, .home-renamer .text-link):is(:hover, :focus-visible, :active),
.opening-depth #services .service-panel:is(:hover, :focus-visible, :active) .service-go {
  background-color: color-mix(in srgb, var(--tool-line-colour, var(--blue)) 12%, var(--panel));
}
.opening-depth :is(.vit-tools-home-entry > a, .home-renamer .text-link, .service-panel):focus-visible {
  outline: 2px solid var(--day-focus, #a8d9fa);
  outline-offset: 3px;
}

/* FIX 08: homepage Why VIT pull line; use existing identity colour. */
.opening-depth #why .why-copy > .why-pull-line {
  margin-block: 24px 0;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text);
}
.opening-depth #why .why-pull-line > span { color: var(--tool-title-colour); }
