/* r41: subpage round of 29 Oct 2026, layered after each page's stack (injected by build-templates.py).
   Image pins drawn like the homepage detail squares, the exploded diagrams as a tactile keypad,
   the live-terminal figure on charcoal, and new Projects and Related services compositions. */

/* ---------- Image pins: a 12px red square that grows into its note, as on the homepage ---------- */
html body .t-insight{width:0;height:0;z-index:3}
html body .t-insight.open{z-index:5}
html body .t-insight .t-insight-trigger{position:absolute;left:0;top:0;width:44px;height:44px;transform:translate(-50%,-50%);border:0;background:transparent;box-shadow:none;z-index:2;transition:none}
html body .t-insight .t-insight-trigger:hover{transform:translate(-50%,-50%)}
html body .t-insight .t-insight-trigger:focus-visible{outline:1px solid #fff;outline-offset:-10px}
html body .t-insight .t-insight-panel{position:absolute;left:-6px;right:auto;top:auto;bottom:-6px;width:260px;min-height:138px;padding:42px 17px 18px;background:#b4462c;color:#fff;visibility:visible;pointer-events:none;
  clip-path:inset(calc(100% - 12px) calc(100% - 12px) 0 0);transition:clip-path .4s cubic-bezier(.22,.61,.36,1)}
html body .t-insight.t-flip .t-insight-panel{left:auto;right:-6px;clip-path:inset(calc(100% - 12px) 0 0 calc(100% - 12px))}
html body .t-insight.open .t-insight-panel{clip-path:inset(0);pointer-events:auto}
html body .t-insight.open .t-insight-trigger{visibility:hidden}
html body .t-insight .t-insight-panel>*{opacity:0;transform:translateY(5px);transition:opacity .18s,transform .35s}
html body .t-insight.open .t-insight-panel>*{opacity:1;transform:none;transition-delay:.2s}
html body .t-insight .t-insight-panel h3{font:500 11px/1.5 var(--sans)!important;letter-spacing:.06em!important;text-transform:uppercase;margin:0 0 6px}
html body.template-page .t-insight .t-insight-panel p{font:500 14px/1.35 var(--sans);text-transform:uppercase;letter-spacing:.01em;margin:0;max-width:224px}
html body .t-insight .t-insight-close{position:absolute;right:9px;top:9px;width:22px;height:22px;padding:0;border:0;background:#fff;color:#b4462c;font:18px/1 var(--sans);display:grid;place-items:center;cursor:pointer}
@media(max-width:560px){html body .t-insight .t-insight-panel{width:220px}}
@media(prefers-reduced-motion:reduce){html body .t-insight .t-insight-panel,html body .t-insight .t-insight-panel>*{transition:none!important}}

/* ---------- Exploded diagrams: rests assembled, opens from a tactile keypad ---------- */
.dg-tactile .dg-figure{border:0;background:#f3f4f4;border-radius:0}
.dg-tactile .dg-svg{padding:clamp(18px,3vw,44px)}
.dg-tactile .dg-figure figcaption{border-top:1px solid #e1e4e5;background:#fff;min-height:48px}
.dg-tactile .dg-svg polygon{stroke-width:1.3}
.dg-tactile .dg-wood{--t:#fff;--f:#eef0f0;--s:#dde1e3}
.dg-tactile .dg-face{--t:#fff;--f:#f7f8f8;--s:#e6e9ea}
.dg-tactile .dg-surface{--t:#fff;--f:#f1f3f3;--s:#e2e6e7}
.dg-tactile .dg-steel{--t:#e2e6e9;--f:#cfd5d9;--s:#bcc4c9}
.dg-tactile .dg-part.dg-fixed{cursor:default}
.dg-tactile.has-active .dg-part:not(.is-active){opacity:.4}
.dg-tactile .dg-part.is-active polygon{stroke-width:2}

/* Keys on the drawing: a raised square that presses down when picked. */
.dg-tactile .dg-mark{pointer-events:auto;cursor:pointer}
.dg-tactile .dg-mark .dg-ks{fill:var(--dg-ink);stroke:var(--dg-ink);stroke-width:1;vector-effect:non-scaling-stroke}
.dg-tactile .dg-mark .dg-kt rect{fill:#fff;stroke:var(--dg-ink);stroke-width:1.2;vector-effect:non-scaling-stroke}
.dg-tactile .dg-mark .dg-kt{transition:transform .12s}
.dg-tactile .dg-mark text{font:600 14px/1 var(--sans);fill:var(--dg-ink)}
.dg-tactile .dg-mark.is-active .dg-kt{transform:translateY(2.5px)}
.dg-tactile .dg-mark.is-active .dg-kt rect{fill:var(--dg-accent);stroke:#7e2a1b}
.dg-tactile .dg-mark.is-active .dg-ks{fill:#7e2a1b;stroke:#7e2a1b}
.dg-tactile .dg-mark.is-active text{fill:#fff}

/* Keypad: one raised key per part, a note panel for the picked one. */
.dg-tactile .dg-panel{display:grid;gap:14px;align-content:start}
.dg-tactile .dg-hint{margin:0;font:500 12px/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#586168}
html body .dg-tactile .dg-legend{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0}
html body .dg-tactile .dg-legend li{border:0}
html body .dg-tactile .dg-key{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 12px 12px;border:1px solid #c9ced2;border-radius:6px;background:#fff;
  box-shadow:0 3px 0 #c9ced2;transform:none;transition:transform .12s,box-shadow .12s,background .12s;cursor:pointer}
html body .dg-tactile .dg-key:hover{background:#fff;padding:10px 12px 12px}
html body .dg-tactile .dg-key:active{transform:translateY(2px);box-shadow:0 1px 0 #c9ced2}
html body .dg-tactile .dg-key .dg-num{flex:none;width:30px;height:30px;border:1px solid var(--dg-ink);border-radius:4px;background:#fff;color:var(--dg-ink);box-shadow:0 2px 0 var(--dg-ink);font:600 13px/1 var(--sans)}
html body .dg-tactile .dg-key strong{font:500 15px/1.25 var(--sans);letter-spacing:-.01em;color:var(--dg-ink)}
html body .dg-tactile .dg-key[aria-pressed="true"]{background:var(--dg-dark);border-color:var(--dg-dark);box-shadow:0 1px 0 #0b0f12;transform:translateY(2px)}
html body .dg-tactile .dg-key[aria-pressed="true"] strong{color:#fff}
html body .dg-tactile .dg-key[aria-pressed="true"] .dg-num{background:var(--dg-accent);border-color:var(--dg-accent);color:#fff;box-shadow:none}
.dg-tactile .dg-note{min-height:150px;padding:22px;background:var(--dg-dark);color:rgba(255,255,255,.74);display:flex;gap:16px;align-items:flex-start}
.dg-tactile .dg-note>p{margin:0;font-size:15px;line-height:1.5}
.dg-tactile .dg-note-num{flex:none;width:30px;height:30px;display:grid;place-items:center;background:var(--dg-accent);color:#fff;font:600 13px/1 var(--sans);border-radius:4px}
.dg-tactile .dg-note h3{margin:2px 0 8px;font:500 20px/1.2 var(--sans)!important;letter-spacing:-.02em;color:#fff}
.dg-tactile .dg-note div p{margin:0;font-size:15px;line-height:1.5}
.dg-tactile .dg-toggle{border-left:1px solid #e1e4e5}
@media(max-width:560px){html body .dg-tactile .dg-legend{grid-template-columns:1fr 1fr;gap:8px}html body .dg-tactile .dg-key{min-height:58px;gap:9px;padding:8px 9px 10px}html body .dg-tactile .dg-key strong{font-size:13.5px}.dg-tactile .dg-note{min-height:0}}
@media(prefers-reduced-motion:reduce){.dg-tactile .dg-mark .dg-kt,html body .dg-tactile .dg-key{transition:none}}

/* ---------- Live terminal installs: the drawing sits on the charcoal, below the text, no frame ---------- */
html body .t-story.t-live{grid-template-rows:auto auto;padding-bottom:0!important;overflow:hidden}
/* r41b: the check-in hall runs edge to edge and down to the section's bottom edge; the room is cropped by the frame. */
html body .t-story.t-live .t-terminal-figure{grid-column:1/-1;width:auto;margin:clamp(32px,4vw,60px) calc(-1 * var(--gutter,4.5vw)) 0;aspect-ratio:2/1;max-height:82vh;background:transparent;border:0;--vmf-bg:#1c242a}
.t-story.t-live .t-terminal-figure .vmf-bar{top:0;bottom:auto;border:0;padding:14px var(--gutter,4.5vw);background:#1c242a}
.vmf-svg .vmf-hall{fill:#e9ecee;stroke:none}
.vmf-svg .vmf-wallf{fill:#f4f5f6;stroke:none}
@media(max-width:750px){html body .t-story.t-live .t-terminal-figure{aspect-ratio:4/3;max-height:none}}

/* ---------- Shared card: photo, short text, square arrow ---------- */
.tc-project,.tc-service{position:relative;display:flex;flex-direction:column;color:var(--ink,#22272b);text-decoration:none;background:#fff}
.tc-project figure,.tc-service figure{margin:0;overflow:hidden;background:#e9ecee}
.tc-project img,.tc-service img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.16,1,.3,1)}
.tc-project:hover img,.tc-service:hover img{transform:scale(1.04)}
.tc-project>div,.tc-service>div{padding:18px 64px 4px 0}
.tc-project h3,.tc-service h3{margin:0 0 6px;font:500 clamp(20px,1.7vw,26px)/1.15 var(--sans)!important;letter-spacing:-.03em}
.tc-project p,.tc-service p{margin:0;font-size:15px;line-height:1.45;color:#586168}
.tc-code{display:block;margin-bottom:8px;font:500 12px/1 var(--sans);letter-spacing:.08em;color:var(--accent,#b43f29)}
.tc-arrow{position:absolute;right:0;bottom:4px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #c9ced2;font-size:16px;transition:background .3s,color .3s,border-color .3s}
.tc-project:hover .tc-arrow,.tc-service:hover .tc-arrow{background:var(--accent,#b43f29);border-color:var(--accent,#b43f29);color:#fff}
.tc-project:focus-visible,.tc-service:focus-visible{outline:2px solid var(--accent,#b43f29);outline-offset:4px}

/* ---------- Projects: one lead photo and three beside it ---------- */
html body .tc-projects{border-top:1px solid #d7dbdb}
.tc-project-grid{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:clamp(28px,3vw,44px) clamp(20px,2.4vw,36px);margin-top:clamp(28px,3.5vw,52px)}
.tc-project figure{aspect-ratio:4/3}
.tc-project.tc-lead{grid-row:1/3}
.tc-project.tc-lead figure{aspect-ratio:auto;flex:1;min-height:420px}
.tc-project.tc-lead h3{font-size:clamp(26px,2.4vw,36px)!important}
.tc-project-grid .tc-project:nth-child(4){grid-column:2/4}
.tc-project-grid .tc-project:nth-child(4) figure{aspect-ratio:2.2/1}
@media(max-width:900px){.tc-project-grid{grid-template-columns:1fr 1fr}.tc-project.tc-lead{grid-column:1/-1;grid-row:auto}.tc-project.tc-lead figure{min-height:0;aspect-ratio:16/10}.tc-project-grid .tc-project:nth-child(4){grid-column:auto}.tc-project-grid .tc-project:nth-child(4) figure{aspect-ratio:4/3}}
@media(max-width:560px){.tc-project-grid{grid-template-columns:1fr}}

/* ---------- Related services: four photo cards on one row ---------- */
html body .tc-services{border-top:1px solid #d7dbdb}
.tc-service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,2.4vw,36px);margin-top:clamp(28px,3.5vw,52px)}
.tc-service figure{aspect-ratio:4/5}
@media(max-width:1000px){.tc-service-grid{grid-template-columns:1fr 1fr}.tc-service figure{aspect-ratio:4/3}}
@media(max-width:560px){.tc-service-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.tc-project img,.tc-service img{transition:none}.tc-project:hover img,.tc-service:hover img{transform:none}}

/* ---------- Service hero, r42 (30 Oct 2026): compact split, copy left, a modest framed photo right, all inside one screen ---------- */
html body .t-split-cover.t-service-cover{display:grid!important;grid-template-columns:minmax(0,7fr) minmax(0,5fr)!important;gap:clamp(32px,5vw,88px)!important;align-items:center!important;padding:clamp(28px,3.4vw,52px) var(--gutter,4.5vw) clamp(40px,4.4vw,64px)!important;min-height:0!important;background:#fff}
html body .t-service-cover>div:first-child{position:relative;z-index:2;max-width:760px;margin:0!important;padding:0!important;background:none;color:#22272b}
html body.subpage .t-service-cover h1{color:#22272b!important;margin:16px 0 22px;font-size:clamp(40px,4.3vw,66px)!important;line-height:1.02!important}
html body .t-service-cover h1 em{color:#b43f29}
html body .t-service-cover>div:first-child>p{max-width:56ch}
html body .t-service-cover .t-vendor-note{margin-top:22px!important}
html body .t-service-cover>.t-product-image{position:relative;width:100%;height:min(60vh,540px);margin:0!important;overflow:visible}
html body .t-service-cover>.t-product-image>.t-photo{position:absolute;inset:0;height:100%!important;min-height:0!important;margin:0;overflow:hidden;background:#eef0f1}
html body .t-service-cover>.t-product-image>.t-photo img{width:100%;height:100%!important;object-fit:cover;display:block}
html body .t-service-cover>.t-product-image::after{content:"";position:absolute;left:-14px;bottom:-14px;width:46%;height:46%;border-left:1px solid #22272b;border-bottom:1px solid #22272b;pointer-events:none}
@media(max-width:900px){
  html body .t-split-cover.t-service-cover{grid-template-columns:1fr!important;gap:28px!important;padding:20px 16px 40px!important}
  html body .t-service-cover>.t-product-image{height:auto;aspect-ratio:4/3}
  html body .t-service-cover>.t-product-image::after{left:-8px;bottom:-8px}
}

/* r42 Related services: uneven photo grid (option B, picked 30 Oct) */
.tc-svb-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(20px,2.4vw,36px);align-items:start;margin-top:clamp(28px,3vw,48px)}
.tc-svb-grid a{display:block;color:#22272b;text-decoration:none}
.tc-svb-grid figure{margin:0;overflow:hidden;background:#eef0f1}
.tc-svb-grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.16,1,.3,1)}
.tc-svb-grid a:hover img,.tc-svb-grid a:focus-visible img{transform:scale(1.04)}
.tc-svb-0{grid-column:1/6}.tc-svb-0 figure{aspect-ratio:4/5}
.tc-svb-1{grid-column:7/13;margin-top:18%}.tc-svb-1 figure{aspect-ratio:3/2}
.tc-svb-2{grid-column:2/7}.tc-svb-2 figure{aspect-ratio:3/2}
.tc-svb-3{grid-column:8/12;margin-top:-12%}.tc-svb-3 figure{aspect-ratio:4/5}
.tc-svb-cap{display:grid;gap:4px;padding-top:14px}
.tc-svb-cap b{font:500 22px/1.2 var(--sans);letter-spacing:-.02em}
.tc-svb-cap span{font-size:15px;line-height:1.45;color:#586168}
.tc-svb-grid a:hover .tc-svb-cap b{color:#b43f29}
@media(max-width:900px){.tc-svb-grid>a{grid-column:1/-1!important;margin-top:0!important}}
@media(prefers-reduced-motion:reduce){.tc-svb-grid img{transition:none}}
