/* C&W Seals: gaskets product page. Uses the tokens and components in main.css. */

/* tighter section rhythm so each section fits one desktop screen */
.gjobs, .gmat, .gtypes, .gmake, .gind, .genq { --sec-y: clamp(56px, 5.5vw, 96px); }
.gtypes { --sec-y: clamp(48px, 4vw, 80px); }
.gtypes .head { margin-bottom: clamp(24px, 2vw, 36px); }
.gjobs :focus-visible, .gtypes :focus-visible, .gmake .gm:focus-visible, .genq :focus-visible { outline-color: var(--petrol); }
.gmat .head .lede, .gind .head .lede { color: var(--fog); }
.gmat, .gind, .gsig { color: #fff; }

/* ---------------- hero ---------------- */
.ghero__facts { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--fog); font-size: .98rem; font-weight: 500; }
.ghero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.ghero__facts li::before { content: ""; width: 8px; height: 8px; background: var(--mint); clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 100%); }
.ghero__facts .mono { color: #fff; }

/* ---------------- what a gasket has to do ---------------- */
.gjobs__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 4.5vw, 80px); align-items: center; }
.gjobs__grid > *, .gsig__grid > *, .gmat__grid > *, .gmake__grid > *, .genq__grid > * { min-width: 0; }
.gjobs__fig { --jd-h: min(56vh, 500px); margin: 0; min-width: 0; width: min(100%, calc(var(--jd-h) * 1.25)); justify-self: center; }
.gjobs__draw { position: relative; background: var(--paper); box-shadow: 0 0 0 1px var(--line); aspect-ratio: 5 / 4; }
.jd { display: block; width: 100%; height: auto; max-width: 100%; overflow: visible; }
.jd__hatchline { stroke: rgba(8, 99, 118, .32); stroke-width: 1.4; }
.jd__fluid { fill: var(--mint); opacity: .13; transition: opacity .5s var(--ease-out); }
.jd__flow circle { fill: var(--petrol-2); opacity: .45; }
.jd__cl { stroke: rgba(8, 99, 118, .45); stroke-width: 1; stroke-dasharray: 14 4 3 4; fill: none; }
.jd__metal { fill: url(#gj-hatch); stroke: var(--petrol); stroke-width: 2; stroke-linejoin: miter; }
.jd__gasket rect { fill: var(--ink); transition: fill .45s var(--ease-out); }
.jd__bolts rect { fill: var(--paper); stroke: var(--petrol); stroke-width: 1.6; }
.jd__top, .jd__bot, .jd__bolts rect { transition: transform .7s var(--ease-out); }

.jx { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s .45s; pointer-events: none; }
.jx [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease-out) .1s; }
.jx__ring { fill: var(--paper); stroke: var(--petrol-2); stroke-width: 2.2; }
.jx__rubber { fill: var(--ink); }
.jx__metalz { fill: #cfe0df; stroke: var(--petrol); stroke-width: 1.6; }
.jx__lead { fill: none; stroke: var(--petrol-2); stroke-width: 1.6; }
.jx__dot { fill: var(--petrol-2); }
.jx__arrow, .jx__heat, .jx__wave, .jx__bolt { fill: none; stroke: var(--petrol-2); stroke-width: 2.4; stroke-linecap: square; }
.jx__stop, .jx__edge { stroke: var(--mint); stroke-width: 5; }
.jx__lbl { font-family: var(--f-mono); font-weight: 500; font-size: 16px; fill: var(--petrol); }
.jx__drop { fill: var(--petrol-2); opacity: .7; }
.jx__no { fill: none; stroke: var(--mint); stroke-width: 3; }
.jx__plan { fill: var(--ink); stroke: var(--petrol-2); stroke-width: 1.6; }
.jx__plan--in { fill: var(--paper); }

.jd[data-active="seal"] .jx--seal, .jd[data-active="leak"] .jx--leak, .jd[data-active="press"] .jx--press, .jd[data-active="chem"] .jx--chem,
.jd[data-active="vib"] .jx--vib, .jd[data-active="elec"] .jx--elec, .jd[data-active="shape"] .jx--shape { opacity: 1; visibility: visible; transition-delay: 0s; }
.jd[data-active="seal"] .jx--seal [pathLength], .jd[data-active="leak"] .jx--leak [pathLength], .jd[data-active="press"] .jx--press [pathLength],
.jd[data-active="vib"] .jx--vib [pathLength], .jd[data-active="elec"] .jx--elec [pathLength], .jd[data-active="shape"] .jx--shape [pathLength] { stroke-dashoffset: 0; }
.jd[data-active] .jd__gasket rect { fill: var(--petrol); }
.jd[data-active="chem"] .jd__fluid { opacity: .34; }
/* stop leaks: the flanges pull down onto the gasket and the gaps close */
.jd[data-active="leak"] .jd__top { transform: translateY(20px); }
.jd[data-active="leak"] .jd__bot { transform: translateY(-20px); }
.jd[data-active="leak"] .jd__bolts rect:nth-child(3n+2) { transform: translateY(20px); }
.jd[data-active="leak"] .jd__bolts rect:nth-child(3n) { transform: translateY(-20px); }
/* vibration: the joint shakes */
.jd[data-active="vib"] .jd__top { animation: jd-shake .14s linear infinite alternate; }
.jd[data-active="vib"] .jd__bot { animation: jd-shake .14s linear infinite alternate-reverse; }
@keyframes jd-shake { from { transform: translateX(-2.5px); } to { transform: translateX(2.5px); } }

.gjobs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gjobs__list li { border-bottom: 1px solid var(--line); }
.gjob { position: relative; display: grid; gap: 0; width: 100%; padding: 14px 8px 14px 30px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); transition: background-color .3s; }
.gjob::before { content: ""; position: absolute; left: 6px; top: 22px; width: 10px; height: 10px; border: 1.5px solid var(--petrol); clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%); transition: background-color .3s, border-color .3s; }
.gjob:hover { background: rgba(8, 99, 118, .05); }
.gjob.is-on::before { background: var(--mint); border-color: var(--mint); }
.gjob__t { font-family: var(--f-display); font-weight: 680; font-size: clamp(1.12rem, 1.35vw, 1.34rem); line-height: 1.2; font-variation-settings: "wdth" 99; }
.gjob.is-on .gjob__t { color: var(--petrol); }
.gjob__pw { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease-out); }
.gjob__p { display: block; min-height: 0; overflow: hidden; color: var(--steel); font-size: 1rem; line-height: 1.55; }
.gjob__p::before { content: ""; display: block; height: 6px; }
.js .gjob:not(.is-on) .gjob__pw { grid-template-rows: 0fr; }
.js .gjob:not(.is-on) .gjob__p { visibility: hidden; transition: visibility 0s .5s; }
.gjob__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--petrol); transform: scaleX(0); transform-origin: left; }

/* ---------------- materials ---------------- */
.gmat__grid { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.gmat__side { display: grid; gap: 26px; }
.gmat__rail { position: relative; display: grid; border-left: 1px solid var(--line-dark); }
.gmat__ind { position: absolute; left: -1px; top: 0; width: 3px; height: 44px; background: var(--mint); pointer-events: none; }
.gmat__tab { position: relative; display: flex; align-items: center; min-height: 44px; padding: 8px 12px 8px 20px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--fog); font-weight: 500; font-size: 1.02rem; transition: color .3s, background-color .3s; }
.gmat__tab:hover { color: #fff; background: rgba(29, 211, 176, .06); }
.gmat__tab[aria-selected="true"] { color: #fff; font-weight: 600; }
.no-js .gmat__rail { display: none; }
.gmat__all { margin: 0; }

.gmat__panels { display: grid; gap: 48px; }
.js .gmat__panel:not(.is-on) { display: none; }
.gmat__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.gmat__panel:focus-visible { outline-offset: 8px; }
.gmat__media { width: min(100%, calc(var(--media-cap) * 1.74)); }
.gmat__media .frame__img { aspect-ratio: 674 / 388; }
.gmat__copy { display: grid; gap: 14px; align-content: start; }
.gmat__name { font-size: clamp(1.6rem, 2.2vw, 2.1rem); color: #fff; }
.gmat__sub { margin: 0; color: var(--mint); font-weight: 500; }
.gmat__text { margin: 0; color: rgba(255, 255, 255, .88); }
.gmat__good { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; padding: 0; list-style: none; }
.gmat__good li { padding: 6px 12px; font-size: .92rem; font-weight: 500; color: #fff; box-shadow: inset 0 0 0 1px rgba(169, 195, 197, .35); }
.gmat .tlink { color: var(--mint); justify-self: start; }

/* ---------------- gasket types ---------------- */
.gtypes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); margin: 0; padding: 0; list-style: none; }
.gtypes__grid > li { display: flex; }
.gt { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; color: var(--ink); text-decoration: none; border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); transition: border-color .35s var(--ease-out), transform .45s var(--ease-out); }
.gt:hover, .gt:focus-visible { border-color: var(--petrol); transform: translateY(-4px); }
.gt:focus-visible { outline: none; }
.gt:focus-visible::after { content: ""; position: absolute; inset: 0; z-index: 3; box-shadow: inset 0 0 0 3px var(--petrol); pointer-events: none; }
.gt__img { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #fff; }
.gt__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gt:hover .gt__img img { transform: scale(1.05); }
.gt__body { display: grid; gap: 6px; padding: 14px 18px 20px; }
.gt__name { font-family: var(--f-display); font-weight: 680; font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.15; font-variation-settings: "wdth" 99; }
.gt__line { font-size: .95rem; line-height: 1.48; color: var(--steel); }
.gt__go { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: #fff; opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .45s var(--ease-out); }
.gt__go .i-arrow { width: 18px; height: 11px; }
.gt:hover .gt__go, .gt:focus-visible .gt__go { opacity: 1; transform: none; }
.gt--else { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.gt--else:focus-visible::after { box-shadow: inset 0 0 0 3px var(--mint); }
.gt--else .gt__line { color: rgba(255, 255, 255, .86); }
.gt--else .gt__go { background: var(--mint); color: var(--ink); opacity: 1; transform: none; }
.gt__plan { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; background-color: var(--ink);
  background-image: linear-gradient(rgba(29, 211, 176, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 211, 176, .08) 1px, transparent 1px); background-size: 20px 20px; }
.gt__plan svg { width: 58%; }
.gt__planpath { fill: none; stroke: var(--mint); stroke-width: 2; }
.gt__x { position: absolute; width: 34px; height: 34px; color: var(--laser); left: 62%; top: 28%; }

/* ---------------- signature: sheet to flange ---------------- */
.gsig__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.gsig__copy { position: relative; display: grid; gap: clamp(22px, 3vh, 36px); }
.gsig__track { position: relative; }
.gsig__steps { counter-reset: gstep; list-style: none; margin: 0; padding: 0 0 0 46px; display: grid; gap: clamp(14px, 2.4vh, 26px); }
.gsig__step { position: relative; display: grid; gap: 6px; transition: opacity .45s var(--ease-out); }
.gsig__step p { margin: 0; color: rgba(255, 255, 255, .84); }
.gsig__num { position: absolute; z-index: 1; left: -34px; top: 0; width: 28px; height: 28px; counter-increment: gstep; }
.gsig__num::before { content: counter(gstep); position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; font-weight: 600; line-height: 1; color: var(--mint); background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--mint); transition: background-color .35s, color .35s; }
.gsig__step.is-on .gsig__num::before { background: var(--mint); color: var(--ink); }
.gsig__t { font-size: clamp(1.18rem, 1.5vw, 1.45rem); font-weight: 680; --w: 99; line-height: 1.15; }
.js:not(.rm):not(.no-motion) .gsig__step:not(.is-on) { opacity: .4; }
.gsig__prog { position: absolute; z-index: 0; left: 26px; top: 16px; width: 2px; height: 0; background: var(--line-dark); display: none; }
.gsig__fill { position: absolute; inset: 0; background: var(--mint); transform: scaleY(0); transform-origin: top; }
.js:not(.rm):not(.no-motion) .gsig__prog.is-placed { display: block; }
.gsig__stage { margin: 0; min-width: 0; justify-self: end; width: min(100%, calc(var(--media-cap) * 1.25)); aspect-ratio: 5 / 4; background: rgba(6, 35, 41, .6); box-shadow: 0 0 0 1px var(--line-dark); }
.gsig__stage .crop::before, .gsig__stage .crop::after { background: var(--mint); }
.gsig__canvas { position: relative; width: 100%; overflow: hidden; }
.gs { display: block; width: 100%; height: auto; max-width: 100%; }

.gs__sheetrect { fill: #223b41; stroke: rgba(169, 195, 197, .45); stroke-width: 1.5; }
.gs__cl { fill: none; stroke: rgba(29, 211, 176, .45); stroke-width: 1; stroke-dasharray: 16 5 3 5; }
.gs__line { fill: none; stroke: rgba(29, 211, 176, .75); stroke-width: 1.3; stroke-dasharray: 7 5; }
.gs__shadow { fill: #000; opacity: 0; }
.gs__part { fill: #2c454c; stroke: var(--mint); stroke-width: 1.6; opacity: 0; }
.gs__cut { fill: none; stroke: var(--laser); stroke-width: 3; stroke-linecap: round; }
.gs__dim { fill: none; stroke: var(--mint); stroke-width: 1.4; }
.gs__dimbg { fill: var(--ink); stroke: rgba(29, 211, 176, .5); stroke-width: 1; }
.gs__dimtxt { font-family: var(--f-mono); font-weight: 500; font-size: 17px; fill: #fff; }
.gs__ok circle { fill: var(--mint); }
.gs__ok path { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.gs__dims { opacity: 0; }
.gs__xhring, .gs__xhline { fill: none; stroke: var(--laser); stroke-width: 2; }
.gs__xhdot { fill: #fff; }
.gs__read rect { fill: rgba(6, 35, 41, .88); stroke: rgba(255, 74, 50, .5); stroke-width: 1; }
.gs__read text { font-family: var(--f-mono); font-weight: 500; font-size: 13px; fill: #fff; }
.gs__xh { opacity: 0; }

.gs__fluid { fill: var(--mint); opacity: .14; }
.gs__flow circle { fill: var(--mint); opacity: .55; }
.gs__metal { fill: url(#gs-hatch); stroke: #cfe0df; stroke-width: 2; }
.gs__pads rect { fill: #2c454c; stroke: var(--mint); stroke-width: 1.6; }
.gs__bolts rect { fill: var(--ink-2); stroke: #cfe0df; stroke-width: 1.6; }
.gs__leak { opacity: 0; }
.gs__leakpath { fill: none; stroke: rgba(29, 211, 176, .5); stroke-width: 1.5; stroke-dasharray: 6 6; }
.gs__lp { fill: var(--mint); }
.gs__lbl { font-family: var(--f-body); font-weight: 600; font-size: 17px; fill: #fff; }
.gs__lbl--ok { fill: var(--mint); }
.gs__lead { fill: none; stroke: var(--mint); stroke-width: 1.5; }
.gs__sealed circle { fill: var(--mint); }

/* static and no-JS state: the sealed joint. With motion on, the scene starts at the sheet. */
.gs__plan, .gs__leak { display: none; }
.js:not(.rm):not(.no-motion) .gs__plan, .js:not(.rm):not(.no-motion) .gs__leak { display: inline; }
.js:not(.rm):not(.no-motion) .gs__sec { opacity: 0; }
.js:not(.rm):not(.no-motion) .gs__cuts { opacity: 0; }

@media (min-width: 900px) and (min-height: 600px) {
  .gsig { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 28px; }
  .gsig__grid { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
  .gsig__stage { --sh: min(calc(100svh - 150px), 660px); width: min(100%, calc(var(--sh) * 1.25)); }
}

/* ---------------- how we make them ---------------- */
.gmake__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 4.5vw, 80px); align-items: start; }
.gmake__methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.gm { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.gm__img { display: block; }
.gm__img .frame__img { display: block; aspect-ratio: 16 / 9; }
.gm__img img { transition: transform .8s var(--ease-out); }
.gm:hover .gm__img img { transform: scale(1.05); }
.gm__name { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-family: var(--f-display); font-weight: 680; font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.15; font-variation-settings: "wdth" 99; color: var(--petrol); }
.gm__name .i-arrow { width: 18px; height: 11px; transition: transform .35s var(--ease-out); }
.gm:hover .gm__name .i-arrow { transform: translateX(4px); }
.gm__line { font-size: .98rem; line-height: 1.55; color: var(--steel); }

.gspec { margin: 0; display: grid; background: var(--paper); border: 1px solid var(--line); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.gspec__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.gspec__row:last-child { border-bottom: 0; }
.gspec dt { font-weight: 600; font-size: .95rem; color: var(--steel); padding-top: 2px; }
.gspec dd { margin: 0; display: grid; gap: 3px; }
.gspec__fig { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; font-variation-settings: "wdth" 98; color: var(--ink); }
.gspec__fig.mono { font-family: var(--f-mono); font-weight: 500; font-size: 1.12rem; color: var(--petrol); word-spacing: .2em; }
.gspec__note { font-size: .95rem; line-height: 1.5; color: var(--steel); }

.gbuild { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding: clamp(20px, 2.4vw, 32px) clamp(22px, 3vw, 44px);
  background-color: var(--ink); color: #fff; text-decoration: none;
  background-image: linear-gradient(rgba(29, 211, 176, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 211, 176, .07) 1px, transparent 1px); background-size: 24px 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.gbuild:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--mint); }
.gbuild__vis { position: relative; display: grid; justify-items: center; gap: 6px; }
.gbuild__svg { width: clamp(120px, 11vw, 170px); height: auto; }
.gbuild__cl { fill: none; stroke: rgba(29, 211, 176, .4); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.gbuild__o { fill: none; stroke: var(--mint); stroke-width: 2; }
.gbuild__holes circle { fill: none; stroke: var(--mint); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.gbuild__n { font-size: .92rem; color: var(--fog); }
.gbuild__copy { display: grid; gap: 6px; }
.gbuild__t { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; font-variation-settings: "wdth" 97; }
.gbuild__p { color: rgba(255, 255, 255, .86); }
.gbuild:hover .gbuild__btn { --bg: var(--mint-2); }
.gbuild:hover .gbuild__btn .i-arrow { transform: translateX(4px); }

/* ---------------- industries ---------------- */
.gind__row { display: flex; gap: 8px; height: clamp(360px, 50vh, 460px); margin: 0; padding: 0; list-style: none; }
.gind__item { flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--ease-out); }
.gind__item.is-open { flex-grow: 5.4; }
.gind__p { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink-2); color: #fff; text-align: left; cursor: pointer; overflow: hidden; }
.gind__img { position: absolute; inset: 0; }
.gind__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1s var(--ease-out), filter .6s; filter: saturate(.55) brightness(.7); }
.gind__p::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 35, 41, .92) 0%, rgba(6, 35, 41, .35) 55%, rgba(6, 35, 41, .15) 100%); pointer-events: none; }
.gind__v { position: absolute; z-index: 2; left: 50%; bottom: 22px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap; font-family: var(--f-display); font-weight: 680; font-size: 1.12rem; font-variation-settings: "wdth" 97; transition: opacity .35s; }
.gind__txt { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 6px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .6s var(--ease-out), visibility 0s .35s; min-width: 240px; }
.gind__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; font-variation-settings: "wdth" 97; }
.gind__line { color: rgba(255, 255, 255, .88); font-size: 1rem; line-height: 1.5; }
.gind__item.is-open .gind__img img { transform: scale(1); filter: none; }
.gind__item.is-open .gind__v { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.gind__item.is-open .gind__txt { opacity: 1; visibility: visible; transform: none; transition-delay: .2s, .2s, 0s; }
.gind__item.is-open .gind__p::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 3px; background: var(--mint); }
.gind__p:focus-visible { outline-offset: -3px; }
/* without JS the panels still open on hover and keyboard focus */
.no-js .gind__row:hover .gind__item, .no-js .gind__row:focus-within .gind__item { flex-grow: 1; }
.no-js .gind__row .gind__item:hover, .no-js .gind__row .gind__item:focus-within { flex-grow: 5.4; }
.no-js .gind__item:hover .gind__txt, .no-js .gind__item:focus-within .gind__txt { opacity: 1; visibility: visible; transform: none; }
.no-js .gind__item:hover .gind__v, .no-js .gind__item:focus-within .gind__v { opacity: 0; }
.gind__all { margin: 26px 0 0; }

/* ---------------- quick enquiry ---------------- */
.genq__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.genq__main { display: grid; gap: 16px; }
.genq__form { display: grid; gap: 16px; margin-top: 10px; }
.genq__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.genq__opt { font-weight: 400; color: var(--steel); }
.genq__trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.genq .textarea { min-height: 130px; }
.genq__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.genq__small { margin: 0; font-size: .95rem; }
.genq__small a { color: var(--petrol); font-weight: 600; }
.genq__side { display: grid; gap: 28px; }
.genq__media .frame__img { aspect-ratio: 16 / 10; max-height: var(--media-cap); }
.genq__contact { display: grid; gap: 6px; }
.genq__contact p { margin: 0; }
.genq__ct { font-weight: 600; }
.genq__big { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); font-variation-settings: "wdth" 97; color: var(--petrol); text-decoration: none; }
.genq__big:hover { text-decoration: underline; }
.genq__hours { font-size: .95rem; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .gtypes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gmat__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gmat__side { gap: 16px; }
  .gmat__rail { display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line-dark); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gmat__rail::-webkit-scrollbar { display: none; }
  .gmat__tab { flex: none; padding: 8px 14px; white-space: nowrap; }
  .gmat__ind { top: auto; bottom: -1px; left: 0; width: 60px; height: 3px; }
  .gmat__side .gmat__all { order: 3; }
  .gmake__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .gjobs__grid { grid-template-columns: minmax(0, 1fr); }
  .gjobs__fig { --jd-h: min(60vh, 460px); }
}
@media (max-width: 899px), (max-height: 599px) {
  .gsig__grid { grid-template-columns: minmax(0, 1fr); }
  .gsig__stage { justify-self: center; }
}
@media (max-width: 900px) {
  .gind__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 10px; }
  .gind__item, .gind__item.is-open { flex: none; }
  .gind__p { height: auto; aspect-ratio: 4 / 5; cursor: default; }
  .gind__v { display: none; }
  .gind__txt { opacity: 1; visibility: visible; transform: none; left: 14px; right: 14px; bottom: 14px; min-width: 0; }
  .gind__name { font-size: 1.2rem; }
  .gind__line { font-size: .92rem; }
  .gind__img img { transform: none; filter: none; }
  .gind__item.is-open .gind__p::before { display: none; }
  .genq__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .gmat__panel { grid-template-columns: minmax(0, 1fr); }
  .gspec__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 18px; }
  .gbuild { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .gbuild__vis { justify-items: start; }
}
@media (max-width: 600px) {
  .gtypes__grid, .gmake__methods { grid-template-columns: minmax(0, 1fr); }
  .genq__row { grid-template-columns: minmax(0, 1fr); }
  .gt__go { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .gind__row { grid-template-columns: minmax(0, 1fr); }
  .gind__p { aspect-ratio: 16 / 10; }
}
