/* =====================================================================
   DOSIK TECHNOLOGY · HOME PAGE ONLY
    1 prism zone (sticky WebGL canvas + CSS fallback field)
    2 hero · trust strip          3 one roof (pinned assembly)
    4 five pillars (glass tabs) · services index · consult band
    5 why Dosik (navy bento + kinetic values)
    6 support (steps + sticky ticket card + remote tools)
    7 who we serve (sector glass panel)
    8 testimonials   9 knowledge   10 contact
   11 high contrast  12 responsive
   Shared pieces that the inner pages reuse (trust strip, ticket card, sector panel, kinetic values,
   featured quote, ISO seals, contact chapter, ECG / monitoring tag) live in components.css §23.
   ===================================================================== */

/* ---------- 1. prism zone ---------- */
.zone { position: relative; isolation: isolate; background: var(--bg); }
.zone::before {
  /* CSS field (blooms + blueprint grid). The WebGL canvas paints the same field over it when it runs. */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 32% at 24% 16%, rgba(42, 174, 162, .13), transparent 70%),
    radial-gradient(36% 26% at 10% 30%, rgba(90, 186, 222, .12), transparent 70%),
    linear-gradient(rgba(11, 40, 64, .055) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(11, 40, 64, .055) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .25) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .25) 100%);
}
.prism {
  position: sticky; top: 0; z-index: 0; display: block;
  width: 100%; height: 100vh; height: 100lvh;
  margin-bottom: -100vh; margin-bottom: -100lvh;
  pointer-events: none; opacity: 0; transition: opacity 1.1s ease;
}
.gl-on .prism { opacity: 1; }
.zone > section { position: relative; z-index: 1; }

/* ---------- 2. hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 20px); padding-bottom: 28px;
}
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__copy { display: grid; justify-items: start; gap: 22px; max-width: 690px; }
.hero__eyebrow { font-size: var(--fz-sm); }
.hero__eyebrow::before { content: ""; width: 12px; height: 11px; flex: none; background: var(--grad-brand); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 2px; }
.hero__title { margin-top: 2px; letter-spacing: -.005em; }
.hero__title .line { display: block; overflow: clip; overflow-clip-margin: .2em; padding-bottom: .04em; }
/* the brand name at display size, the slogan a step smaller under it */
.hero__title .hero__slogan { margin-top: .15em; font-size: .58em; line-height: 1.25; font-weight: var(--fw-semibold); color: var(--text-2); }
.hero__lead { max-width: 570px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__ctas .btn { min-width: fit-content; }   /* one-line buttons while they fit (components.css .btn may wrap) */
.hero__meta { display: grid; gap: 14px; justify-items: start; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick__lbl { font: var(--fw-medium) var(--fz-sm)/1.2 var(--f-display); color: var(--text-2); margin-inline-end: 2px; }
.quick .chip { min-height: 36px; font-size: var(--fz-xs); background: var(--surface-glass-strong); }
.quick .chip .ico--ext { width: 14px; height: 14px; color: var(--text-3); }

.hero__visual {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: min(68vh, 640px);
  justify-self: center; container-type: size;
}
/* CSS-3D fallback stack: the same exploded mark when WebGL is off (reduced motion, software GL, no JS); layers 1-2 sit as in
   the logo (#mark: turned 14.65°, the back one 12.47 × 23.77 slab units left and down), layer 0 is the extra depth layer */
.stack3d { position: absolute; inset: 0; perspective: 1500px; transition: opacity .9s ease; }
.stack3d__l {
  position: absolute; left: 50%; top: 50%; width: 56cqmin; height: 56cqmin; margin: -28cqmin 0 0 -28cqmin; overflow: visible;
  filter: drop-shadow(0 26px 26px rgba(11, 40, 70, .2));
}
.stack3d__l--0 { transform: translateY(-4cqmin) rotateY(40deg) rotateX(23deg) translate3d(-1.9cqmin, 16.1cqmin, -29cqmin) rotate(-20deg) scale(.96); }
.stack3d__l--1 { transform: translateY(-4cqmin) rotateY(40deg) rotateX(23deg) translate3d(-3.795cqmin, 7.234cqmin, 0) rotate(-14.65deg); }
.stack3d__l--2 { transform: translateY(-4cqmin) rotateY(40deg) rotateX(23deg) translate3d(0, 0, 29cqmin) rotate(-14.65deg); }
.gl-on .stack3d { opacity: 0; }

/* the heartbeat tag: constant network monitoring, pulsing every 4.2 s */
.hero__tag {
  position: absolute; inset-inline-end: 4%; bottom: 7%; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: var(--r-pill);
  background: var(--surface-glass); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-2); font: var(--fw-medium) var(--fz-xs)/1 var(--f-display); color: var(--text);
}
.hero__tag svg { width: 54px; height: 18px; overflow: visible; }
/* ECG trace + trust strip: shared (components.css §23) */

/* ---------- 3. one roof (pinned assembly) ---------- */
.roof { position: relative; }
.motion-ok .roof { height: 125vh; height: 125svh; }
.roof__pin { display: flex; align-items: center; padding-block: var(--sec-y); }
.motion-ok .roof__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: calc(var(--hdr-h) + 12px) 24px; }
.roof__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 5vw, 80px); }
.roof__copy { display: grid; justify-items: start; gap: 22px; }
.roof__statement { font-size: var(--fz-statement); line-height: 1.2; font-weight: var(--fw-bold); }
.roof__statement .w { color: var(--text); }
/* word-by-word light-up: the floor stays at .5 (≥ 3:1 for this large text) */
.roof--live .roof__statement .w { opacity: calc(.5 + .5 * var(--on, 0)); transition: opacity .2s linear; }
/* the gradient words are never dimmed: their lightest stop is only 3.29:1 at full strength (WCAG 1.4.3, large text) */
.roof--live .roof__statement .w--hl { opacity: 1; }
.roof__statement .w--hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.roof__sub { max-width: 540px; font-size: var(--fz-lead); color: var(--text-3); line-height: 1.7; }
.roof__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.roof__visual { display: grid; place-items: center; }
.roof__slot { position: relative; width: min(100%, 480px); aspect-ratio: 1; }
.roof__mark { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 40px 40px rgba(11, 40, 70, .16)); transition: opacity .4s linear; }

/* ---------- 4. five pillars ---------- */
.pillars { padding-block: clamp(40px, 6vw, 80px) calc(var(--sec-y) + var(--chapter-r)); }
.ptabs {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  margin-top: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line-2);
}
.ptab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 20px; border-radius: 18px 18px 0 0; text-align: center; }
.ptab:hover { background: rgba(255, 255, 255, .45); }
.ptab__short { display: none; }
.ptab__glyph { position: relative; width: clamp(56px, 7.4vw, 104px); aspect-ratio: 1; display: block; margin-bottom: 4px; }
.ptab__glyph svg {
  width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 12px 14px rgba(11, 40, 70, .18));
  transform: scale(.84); opacity: .8;
  transition: transform var(--t-3) var(--e-spring), opacity var(--t-2) ease;
}
.ptab[aria-selected="true"] .ptab__glyph svg, .ptab:hover .ptab__glyph svg { transform: scale(1); opacity: 1; }
.ptab__num { font: var(--fw-medium) var(--fz-micro)/1 var(--f-display); color: var(--text-3); }
.ptab__name { max-width: 100%; overflow-wrap: anywhere; font: var(--fw-medium) clamp(.85rem, .74rem + .4vw, 1.05rem)/1.3 var(--f-display); color: var(--text-2); transition: color var(--t-2); }
.ptab:hover .ptab__name, .ptab[aria-selected="true"] .ptab__name { color: var(--text); }
.ptab[aria-selected="true"] .ptab__name { font-weight: var(--fw-semibold); }
.ptab::after {
  content: ""; position: absolute; bottom: -1px; inset-inline: 14%; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--c); transform: scaleX(0); transition: transform var(--t-3) var(--e-out);
}
.ptab[aria-selected="true"]::after { transform: scaleX(1); }

.ppanels { margin-top: 18px; }
.ppanel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 72px);
  padding: clamp(24px, 4vw, 56px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3);
}
.ppanel::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(to left, var(--c), transparent 75%); }
.ppanel::after {
  content: ""; position: absolute; inset-inline-start: -60px; bottom: -120px; width: 360px; height: 330px;
  background: var(--c); opacity: .06; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 40px;
  transform: rotate(-12deg); pointer-events: none;
}
.ppanel:focus-visible { outline-offset: 4px; }
.ppanel__intro { position: relative; z-index: 1; display: grid; justify-items: start; align-content: start; gap: 16px; }
.ppanel__kicker { display: inline-flex; align-items: center; gap: 10px; font: var(--fw-medium) var(--fz-sm)/1.2 var(--f-display); color: var(--link); }
.ppanel__kicker .ico { width: 22px; height: 22px; }
.ppanel__title { font-size: clamp(1.55rem, 1.15rem + 1.25vw, 2.3rem); line-height: 1.16; }
.ppanel__text { color: var(--text-2); max-width: 520px; }
.ppanel__intro .btn { margin-top: 8px; }
.ppanel__list { position: relative; z-index: 1; display: grid; align-content: start; gap: 4px; }
.ppanel__listhead { font: var(--fw-semibold) var(--fz-xs)/1.2 var(--f-display); color: var(--text-3); margin-bottom: 8px; }
.ppanel .feat { margin-bottom: 16px; }
.srow .icon-tile { --c: inherit; }

/* services index: every sub-service, scannable without opening a tab */
.svc-index {
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-xl); background: var(--surface-glass-strong); border: 1px solid var(--line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.svc-index__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 20px; }
.svc-index__head h3 { font-size: var(--fz-h4); }
.svc-index__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 28px); }
.svc-group__h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--c); font: var(--fw-semibold) 1rem/1.25 var(--f-display); color: var(--text); }
.svc-group__h a:hover { color: var(--link); }
.svc-group ul { display: grid; }
.svc-group li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.4; color: var(--text-2);
  transition: color var(--t-1), padding var(--t-2) var(--e-out);
}
.svc-group li a .ico { width: 16px; height: 16px; flex: none; color: var(--text-3); opacity: 0; transform: translateX(6px); transition: opacity var(--t-2), transform var(--t-2) var(--e-out); }
.svc-group li a:hover { color: var(--link); }
.svc-group li a:hover .ico { opacity: 1; transform: none; color: var(--link); }

.consult {
  position: relative; overflow: hidden; margin-top: 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 28px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 40px); border-radius: var(--r-xl);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(42, 174, 162, .32), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(72, 132, 174, .34), transparent 60%),
    var(--night-2);
  color: var(--on-night-2);
}
.consult__glyph { --gs: 64px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.consult h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); color: var(--on-night); }
.consult p { margin-top: 6px; }
.consult .cluster { --cluster-gap: 10px 18px; }
.consult .link-arrow { white-space: nowrap; }

/* ---------- 5. why Dosik (navy) ---------- */
.why {
  overflow: clip; padding-block: var(--sec-y) calc(var(--sec-y) + var(--chapter-r));
  background:
    radial-gradient(48% 38% at 92% 0%, rgba(42, 174, 162, .22), transparent 70%),
    radial-gradient(44% 40% at 0% 62%, rgba(72, 132, 174, .24), transparent 70%),
    linear-gradient(180deg, #071633 0%, var(--night) 100%);
}
.why::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.why .container { position: relative; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.bcard {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--night-card) 0%, var(--night-card-2) 100%);
  border: 1px solid var(--night-line); box-shadow: var(--sh-night);
  transition: border-color var(--t-3) ease, transform var(--t-3) var(--e-out);
}
/* pointer spotlight (hover devices only, set by core.js) */
.bcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--t-3);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(95, 216, 204, .10), transparent 60%);
}
.bcard:hover { border-color: var(--night-600); transform: translateY(-3px); }
.bcard:hover::before { opacity: 1; }
.bcard--wide { grid-column: span 2; }
.bcard__viz { position: relative; height: 150px; display: grid; place-items: center; }
.bcard__viz svg { width: 100%; height: 100%; overflow: visible; }
.bcard__title { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); font-weight: var(--fw-semibold); margin-bottom: 8px; }
.bcard__body p { color: var(--on-night-2); font-size: 1rem; line-height: 1.7; }

/* bento visuals — loops run only while .why is on screen (.is-live), complete & static otherwise */
.viz-prism svg { max-width: 560px; }
.viz-prism__beam { stroke-width: 3; opacity: .75; }
.viz-prism__rays path { stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.viz-run, .viz-prism__beam-run, .viz-prism__runs path { fill: none; stroke-linecap: round; opacity: 0; stroke-dashoffset: 100; }
.viz-prism__beam-run { stroke: #fff; stroke-width: 3; stroke-dasharray: 16 84; }
.viz-prism__runs path { stroke-width: 3; stroke-dasharray: 18 82; }
.why.is-live :is(.viz-run, .viz-prism__beam-run, .viz-prism__runs path) { opacity: 1; animation: dashRun 2.2s linear infinite; }
.why.is-live .viz-prism__beam-run { animation-duration: 1.8s; }
.why.is-live .viz-prism__runs path { animation-duration: 1.8s; animation-delay: calc(.9s + var(--k) * .08s); }
@keyframes dashRun { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.viz-loop svg { max-width: 260px; }
.viz-loop__track { fill: none; stroke: #1E3260; stroke-width: 16; stroke-linecap: round; }
.viz-loop__glow { fill: none; stroke: url(#g-glow); stroke-width: 10; stroke-linecap: round; opacity: .85; }
.viz-loop__run { stroke: #CFFBF6; stroke-width: 10; stroke-dasharray: 22 78; }
.why.is-live .viz-loop__run { animation-duration: 3.2s; }
.viz-pulse svg { max-width: 300px; }
.viz-pulse__grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; fill: none; }
.viz-pulse__line { fill: none; stroke: var(--teal-300); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
.viz-pulse__run { stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 12 88; }
.why.is-live .viz-pulse__run { animation: dashRun var(--beat) linear infinite; }
.viz-pulse__end { fill: #fff; }
/* monitoring state tag (.mon): shared (components.css §23) */
.viz-path svg { max-width: 300px; }
.viz-path__a, .viz-path__b { fill: none; stroke-width: 3; stroke-linecap: round; }
.viz-path__a { stroke: #66C6E8; }
.viz-path__b { stroke: var(--teal-300); }
.viz-path__run { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 12 88; }
.why.is-live .viz-path__run--b { animation-delay: .5s; }
.viz-path__node { fill: #fff; }
.certs { display: flex; align-items: center; justify-content: center; gap: 14px; }
/* ISO seals (.seal) and kinetic values (.values): shared (components.css §23) */

/* ---------- 6. support ---------- */
.support { background: var(--bg); padding-block: var(--sec-y) calc(var(--sec-y) * .6); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.story__steps { position: relative; display: grid; }
.story__steps::before {
  content: ""; position: absolute; inset-inline-start: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, rgba(42, 174, 162, .55), rgba(72, 132, 174, .35) 70%, rgba(72, 132, 174, 0));
}
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; row-gap: 6px; align-content: start; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step__ico {
  position: relative; z-index: 1; grid-row: span 3; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; border: 1px solid transparent; box-shadow: 0 14px 26px -12px rgba(14, 92, 120, .85);
  transition: background var(--t-3), color var(--t-3), box-shadow var(--t-3), border-color var(--t-3), opacity var(--t-3);
}
.step__ico .ico { width: 26px; height: 26px; }
.step__num { font: var(--fw-semibold) var(--fz-xs)/1 var(--f-display); color: var(--link); padding-top: 6px; }
.step__title { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); font-weight: var(--fw-semibold); line-height: 1.25; }
.step p { color: var(--text-2); font-size: 1.04rem; max-width: 470px; }
.step a { color: var(--link); font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 3px; }
/* desktop scroll-telling: only the ICON dims on inactive steps — the text always keeps full contrast */
@media (min-width: 961px) {
  .story--live .step { min-height: 30vh; }
  .story--live .step:last-child { min-height: 0; }
  .story--live .step:not(.is-active) .step__ico { background: var(--surface); color: var(--text-3); border-color: var(--line-2); box-shadow: var(--sh-1); }
}

/* the ticket card (.tcard): shared (components.css §23) */

.remote {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px;
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  border-radius: var(--r-xl); background: var(--bg-2); border: 1px solid var(--line);
}
.remote .icon-tile { --it: 52px; }
.remote__t { font-size: var(--fz-h4); font-weight: var(--fw-semibold); }
.remote p { color: var(--text-2); font-size: var(--fz-sm); margin-top: 4px; }
.remote__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.remote__tools .chip { min-height: 40px; }

/* ---------- 7. who we serve ---------- */
.who { padding-block: calc(var(--sec-y) * .6) var(--sec-y); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.who__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
/* client chips (.clients) and the sector panel (.spanel): shared (components.css §23) */

/* ---------- 8. testimonials ---------- */
.voices { padding-block: calc(var(--sec-y) * .45) var(--sec-y); background: var(--bg-2); }
/* quote grid (.quotes) and the featured quote (.quote--feature): shared (components.css §23) */
.voices__more { margin-top: 22px; }

/* ---------- 9. knowledge ---------- */
.know { padding-block: clamp(64px, 7vw, 104px) calc(clamp(64px, 7vw, 104px) + var(--chapter-r)); background: var(--bg-2); border-top: 1px solid var(--line); }
.know__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.kcard { padding: 26px; }
.kcard .badge { align-self: flex-start; }
/* a guide's teaser is the first sentence of its excerpt (any guide, Razor): at most three lines, the card stays a card */
.kcard .card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* ---------- 10. contact (navy) ---------- */
/* the contact chapter (.contact, .cways): shared (components.css §23) */

/* ---------- 11. high contrast ---------- */
html.a11y-contrast .prism, html.a11y-contrast .zone::before, html.a11y-contrast .why::before { display: none; }
html.a11y-contrast :is(.svc-index, .ppanel, .remote, .hero__tag) { background: #fff; border: 2px solid #000; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-contrast :is(.why, .consult) { background: #000 !important; }
html.a11y-contrast .bcard { background: #000; border: 2px solid #fff; }
html.a11y-contrast .roof__statement .w { opacity: 1 !important; }
html.a11y-contrast .roof__statement .w--hl { background: none; color: #000; -webkit-text-fill-color: #000; }
html.a11y-contrast .step__ico { background: #000 !important; color: #fff !important; }
html.a11y-contrast .stack3d__l, html.a11y-contrast .roof__mark, html.a11y-contrast .ptab__glyph svg { filter: none; }

/* ---------- 12. responsive ---------- */
@media (max-width: 1180px) {
  .svc-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(14px, 2vw, 28px); }
  .consult { grid-template-columns: minmax(0, 1fr) auto; }
  .consult__glyph { display: none; }
}
@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 24px; gap: 22px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  /* phones & tablets: the glass leads the first screen (above the copy, never delaying the H1) */
  .hero__visual { order: -1; width: 100%; max-width: 560px; aspect-ratio: auto; height: clamp(190px, 28vh, 300px); max-height: none; margin-bottom: 4px; }
  .stack3d { transform: scale(1.12); }
  .hero__tag { display: none; }

  .roof__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .roof__visual { order: -1; }
  .roof__slot { width: min(58vw, 280px); }
  .motion-ok .roof { height: auto; }
  .motion-ok .roof__pin { position: static; height: auto; }
  .roof__pin { padding-block: clamp(48px, 9vw, 80px) 8px; }

  .ppanel { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard--wide { grid-column: 1 / -1; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .remote { grid-template-columns: auto minmax(0, 1fr); }
  .remote__tools { grid-column: 1 / -1; }
  .who__grid { grid-template-columns: minmax(0, 1fr); }
  .know__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* three cards on a tablet: 2 + 1 full width (phones have the swipe row below, which must not get this) */
@media (min-width: 641px) and (max-width: 960px) {
  .know__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero__copy { gap: 16px; }
  .hero__eyebrow { font-size: var(--fz-xs); min-height: 32px; padding: 5px 12px; gap: 8px; }
  .hero__ctas { width: 100%; gap: 10px; }
  .hero__ctas .btn { flex: 1 1 140px; padding-inline: 12px; --h: 54px; }
  .hero__meta { gap: 12px; }
  .quick .quick__lbl { width: 100%; }
  .hero__tag { display: none; }

  .roof__statement { line-height: 1.26; }
  .roof__sub { font-size: 1rem; }
  .roof__copy { gap: 14px; }
  .roof__slot { width: min(52vw, 210px); }

  .ptab { padding: 8px 2px 14px; gap: 4px; }
  .ptab__num { display: none; }
  .ptab__name { font-size: var(--fz-xs); line-height: 1.25; }
  .ptab__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ptab__short { display: inline; }
  .ptabs { gap: 2px; }
  .ppanel { padding: 22px 18px; border-radius: var(--r-l); gap: 24px; }

  .svc-index { padding: 20px 16px; }
  .svc-index__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .svc-group ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .svc-group li a { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--fz-xs); background: var(--surface); }
  .svc-group li a .ico { display: none; }
  .svc-group__h { padding-bottom: 8px; }
  .consult { grid-template-columns: minmax(0, 1fr); }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .bcard__viz { height: 118px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding-bottom: 30px; }
  .story__steps::before { inset-inline-start: 23px; }
  .step__ico { width: 48px; height: 48px; border-radius: 15px; }
  .remote { grid-template-columns: minmax(0, 1fr); }
  .remote .icon-tile { display: none; }
  .know__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: none;
  }
  .know__grid::-webkit-scrollbar { display: none; }
  .know__grid > * { scroll-snap-align: start; }
}
@media (max-width: 340px) {
  .hero__ctas .btn { flex-basis: 100%; }
}
