/* GSDT Design D · Contact · B · Threshold · R2 (page-scoped; R2 changes are marked). A dark space with one opening full of light; the camera
   walks forward through it into an open, calm room where the offices and the form are set out. The words scroll over
   the scene; they are never pinned. */

/* ---------------------------------------------------------------- opening */
.ctb-top { background: var(--charcoal); }
.ctb-track { position: relative; }
.ctb-pin { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ctb-pin canvas, .ctb-pin picture, .ctb-pin picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ctb-pin picture img { object-fit: cover; object-position: 72% 50%; }
@media (max-width: 699px) { .ctb-pin picture img { object-position: 50% 100%; } }
html.ct-m .ctb-pin { inset: auto; position: sticky; top: 0; height: var(--ct-vh, 100vh); }
.ctb-fg { position: relative; z-index: 2; }
html.ct-m .ctb-fg { margin-top: calc(-1 * var(--ct-vh, 100vh)); }
.ctb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-content: center;
  min-height: max(100svh, 560px); padding-top: calc(var(--logo-cell) + clamp(20px, 3.4vh, 56px)); padding-bottom: clamp(28px, 6vh, 72px); }
html.ct-m .ctb-grid { min-height: var(--ct-vh, 100vh); }
.ctb-intro, .ctb-ink { grid-column: 1 / span 6; grid-row: 1; min-width: 0; }
@media (max-width: 999px) {
  .ctb-intro, .ctb-ink { grid-column: 1 / -1; }
  .ctb-grid { align-content: start; }
}
@media (max-width: 999px) and (min-height: 520px) {
  /* phones and tablets upright: the words at the top, the opening below them (the canvas places it under the words) */
  .ctb-grid { min-height: max(100svh, 620px); }
  html.ct-m .ctb-grid { min-height: var(--ct-vh, 100vh); }
}
.ctb-ink { pointer-events: none; user-select: none; position: relative; z-index: 3; visibility: hidden;
  --fg: var(--charcoal); --fg-2: var(--graphite); --rule-strong: rgba(26, 27, 29, .42); color: var(--charcoal); }
.ctb-ink.is-on { visibility: visible; }
@media (max-width: 999px) and (max-height: 519px) {
  /* R2 · phones on their side: the words keep to the left so the opening (drawn at about 72% of the width) stands clear */
  .ctb-intro, .ctb-ink { grid-column: 1 / span 7; }
}

/* ---------------------------------------------------------------- the room: offices */
.ctb-room { background: var(--warm); color: var(--charcoal); padding-block: clamp(96px, 12vw, 196px) clamp(64px, 8vw, 128px); }
/* R2 · with motion, the room begins a little before the opening's track ends: its first words rise into the settled light
   (the overlap is measured per layout by ct-b.js; above it the room is open to the drawing, which is then plain light) */
html.ct-m .ctb-room { margin-top: calc(-1 * var(--ctb-ov, 0px));
  background: linear-gradient(to bottom, transparent var(--ctb-ov, 0px), var(--warm) var(--ctb-ov, 0px)); }
.ctb-offices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 64px; outline: none; }
.ctb-offices .ct-office { grid-column: span 6; }
.ctb-offices .ct-office + .ct-office { padding-left: clamp(20px, 3vw, 56px); border-left: 1px solid var(--rule-strong); }
.page-ct--b .ct-oname { font-size: var(--t-l); line-height: 1.02; letter-spacing: -.034em; max-width: 9em; }
.page-ct--b .ct-entity { margin-top: clamp(20px, 2.6vw, 32px); }
/* INT R1.7 (17 Nov 2026, Waqas) · the company's legal name stands once, on its own line above both offices, as their shared
   identity; a hairline under it spans the grid. The row gap below it is reduced to the name's own spacing. */
.ctb-offices .ct-company { grid-column: 1 / -1; font-size: var(--t-body); font-weight: 560; line-height: 1.4; color: var(--fg);
  padding-bottom: clamp(16px, 1.8vw, 24px); border-bottom: 1px solid var(--rule-strong); margin-bottom: calc(clamp(32px, 4vw, 56px) - 64px); }
.page-ct--b .ct-lines { margin-top: 26px; gap: 10px; }
.page-ct--b .ct-kv { font-size: var(--t-h3); line-height: 1.35; }
.page-ct--b .ct-kv .ct-k { font-size: var(--t-body); }
@media (max-width: 799px) {
  .ctb-offices .ct-office { grid-column: 1 / -1; }
  .ctb-offices .ct-office + .ct-office { padding-left: 0; border-left: 0; padding-top: 48px; border-top: 1px solid var(--rule-strong); }
}

/* ---------------------------------------------------------------- the room: the enquiry form */
.ctb-enq { background: var(--warm); color: var(--charcoal); padding-block: clamp(56px, 7vw, 104px) clamp(110px, 13vw, 200px); outline: none; }
.ctb-enq__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule-strong); }
/* INT R1.4 · arrival on the enquiry (from a requirement button, or keyboard focus): the rule above it is drawn in Charcoal */
.ctb-enq__in { transition: border-color .9s var(--ease-out), box-shadow .9s var(--ease-out); }
.ctb-enq.is-arrived .ctb-enq__in, .ctb-enq:focus-visible .ctb-enq__in { border-top-color: var(--charcoal); box-shadow: inset 0 1px 0 var(--charcoal); transition-duration: .2s; }
.ctb-enq__h { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.ctb-enq__h h2 { max-width: 7em; }
.ct-form--b { grid-column: 7 / span 6; }
@media (max-width: 999px) {
  .ctb-enq__h, .ct-form--b { grid-column: 1 / -1; }
  .ctb-enq__h { position: static; }
  .ct-form--b { margin-top: 36px; }
}
.ct-form--b .ct-fields { display: grid; row-gap: 30px; }
.ct-form--b .ct-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--charcoal); }
.ct-form--b .ct-q { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.ct-form--b .ct-in { margin-top: 4px; padding: 12px 2px; min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--rule-strong);
  transition: border-color .22s var(--ease-out), box-shadow .22s var(--ease-out), background-color .22s var(--ease-out); }
.ct-form--b .ct-in:hover { border-bottom-color: var(--graphite); }
.ct-form--b .ct-in:focus { border-bottom-color: var(--charcoal); box-shadow: 0 1px 0 var(--charcoal); background-color: rgba(196, 197, 199, .24); }
.ct-form--b .ct-ta { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--rule-strong); min-height: 190px; }
.ct-form--b .ct-ta:focus { border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
.ct-form--b .ct-hint { margin-top: 6px; }
.ct-form--b .ct-f.is-err .ct-in { border-bottom: 2px solid var(--charcoal); }
.ct-form--b .ct-f.is-err .ct-ta { border: 2px solid var(--charcoal); }
.ct-form--b .ct-f.is-err .ct-q { color: var(--charcoal); font-weight: 700; }
.ct-form--b .ct-opts { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-form--b .ct-opt { padding: 12px 14px; border: 1px solid var(--rule-strong); transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out); }
.ct-form--b .ct-opt:hover { border-color: var(--graphite); }
.ct-form--b .ct-opt:has(input:checked) { border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); background: rgba(196, 197, 199, .24); }
@media (max-width: 459px) { .ct-form--b .ct-opts { grid-template-columns: minmax(0, 1fr); } }
.ct-form--b .ct-send { display: grid; justify-items: start; gap: 22px; padding-top: 6px; }
@media (max-width: 559px) { .ct-form--b .ct-btn { width: 100%; justify-content: space-between; } }

/* ---------------------------------------------------------------- closing: a dark opening ahead, then the footer */
.ctb-close { position: relative; background: var(--warm); }
.ctb-ctrack { position: relative; height: clamp(440px, 72vh, 760px); }
.ctb-cpin { position: absolute; inset: 0; overflow: hidden; }
.ctb-cpin canvas, .ctb-cpin picture, .ctb-cpin picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ctb-cpin picture img { object-fit: cover; object-position: 50% 50%; }
html.ct-m .ctb-ctrack { height: auto; }
html.ct-m .ctb-cpin { inset: auto; position: sticky; top: 0; height: var(--ct-vh, 100vh); }
