﻿/* ═══════════════════════════════════════════════════════════════════════════
   Qlynic · the contact page (Contact.aspx), round HELP7, 13 Oct 2026
   Laid on the design system's own sheets (qlynic.tokens, base, components),
   in the help centre's language: the same night, the same lamp up to the
   left, now a 1940s telephone switchboard.

   .ql-contact       the page's own block, and its inks
   .ql-chead         the head: the words, the ways for clinics already on
                     Qlynic, the ledger
   .ql-cboard        the switchboard: its walnut cabinet, the jack field, the
                     keyshelf and its plug, the cord (a canvas)
   .ql-line          one line: its lamp, its jack, its label strip (a radio)
   .ql-msg           the "While you were out" slip, and its carbon copy
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 00 · the page, and its inks ──────────────────────────────────────────── */

.ql-contact {
  position: relative;
  isolation: isolate;
  background: var(--ql-bg);
  /* the slip's printing (a message pad's maroon), what is written on it
     (a blue-black pen), and its carbon copy's blue */
  --wy-ink: #861d33;
  --wy-ink-2: #5f1424;
  --wy-rule: rgb(134 29 51 / .42);
  --wy-rule-soft: rgb(134 29 51 / .22);
  --pen: #18213b;
  --pen-2: #3b4258;
  --carbon: #2c3c8c;
  --link: #1556b0;
  --brass-hi: #f4e3b8;
  --brass: #c9a35a;
  --brass-lo: #6e5226;
}

/* ── 01 · the head ────────────────────────────────────────────────────────── */

.ql-chead {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 1.1rem + 3vw, 4.25rem) clamp(1.75rem, 1.1rem + 2vw, 3rem);
}
/* the help centre's faint card ruling behind the words */
.ql-chead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgb(var(--ql-white-rgb) / .034) 31px 32px);
  -webkit-mask-image: radial-gradient(120% 90% at 18% 30%, #000 0%, rgb(0 0 0 / .55) 40%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 18% 30%, #000 0%, rgb(0 0 0 / .55) 40%, transparent 78%);
}
.ql-chead__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  row-gap: var(--ql-sp-9);
}
.ql-chead__words,
.ql-chead__side {
  display: grid;
  justify-items: start;
  row-gap: var(--ql-sp-7);
  min-inline-size: 0;
}
.ql-chead__side { justify-items: stretch; }
@media (min-width: 1024px) {
  .ql-chead__intro {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(2.5rem, 4.4vw, 5.5rem);
  }
}
.ql-chead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--ql-sp-5);
  margin: 0;
  font-family: var(--ql-font-mono);
  font-size: var(--ql-fs-3xs);
  font-weight: var(--ql-fw-medium);
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ql-text-body);
}
.ql-chead__eyebrow .ql-quad { gap: 2px; }
.ql-chead__eyebrow .ql-quad i { background: var(--q); box-shadow: 0 0 6px -1px var(--q); }
.ql-chead__eyebrow .ql-quad i:nth-child(1) { --q: var(--ql-q-tl); }
.ql-chead__eyebrow .ql-quad i:nth-child(2) { --q: var(--ql-q-tr); }
.ql-chead__eyebrow .ql-quad i:nth-child(3) { --q: var(--ql-q-bl); }
.ql-chead__eyebrow .ql-quad i:nth-child(4) { --q: var(--ql-q-br); }
.ql-chead__title {
  margin: 0;
  font-size: clamp(2.5rem, .9rem + 4.6vw, 5.4rem);
  line-height: .98;
  font-weight: var(--ql-fw-bold);
  letter-spacing: -.046em;
  color: var(--ql-text-strong);
  text-wrap: balance;
}
.ql-chead__title span { display: block; }
.ql-chead__lead {
  margin: 0;
  max-inline-size: 46ch;
  font-size: clamp(1rem, .93rem + .28vw, 1.22rem);
  line-height: 1.6;
  color: var(--ql-text-muted);
  text-wrap: pretty;
}
.ql-chead__first { display: grid; row-gap: var(--ql-sp-4); min-inline-size: 0; }
.ql-chead__firstl {
  margin: 0;
  font-family: var(--ql-font-mono);
  font-size: var(--ql-fs-3xs);
  font-weight: var(--ql-fw-medium);
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ql-text-subtle);
}
.ql-chead__ways { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--ql-line); }
.ql-chead__ways > li { border-block-end: 1px solid var(--ql-line); }
.ql-chead__way {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--ql-sp-6);
  min-block-size: 56px;
  padding: 10px 6px 10px 2px;
  color: var(--ql-text-body);
  text-decoration: none;
  transition: color .2s var(--ql-ease);
}
.ql-chead__wico {
  inline-size: 34px;
  block-size: 34px;
  padding: 7px;
  border: 1px solid var(--ql-line);
  border-radius: 50%;
  color: var(--ql-text-muted);
  transition: color .2s var(--ql-ease), border-color .2s var(--ql-ease);
}
.ql-chead__wtxt { display: grid; row-gap: 1px; min-inline-size: 0; }
.ql-chead__wtxt b { font-size: var(--ql-fs-sm); font-weight: var(--ql-fw-semibold); line-height: 1.35; color: var(--ql-text-strong); }
.ql-chead__wtxt span { font-size: var(--ql-fs-xs); line-height: 1.45; color: var(--ql-text-muted); }
.ql-chead__wgo { inline-size: 18px; block-size: 18px; color: var(--ql-text-subtle); transition: transform .3s var(--ql-ease-out), color .2s var(--ql-ease); }
.ql-chead__way:hover .ql-chead__wgo { transform: translateX(3px); color: var(--ql-text-strong); }
.ql-chead__way:hover .ql-chead__wico { color: var(--ql-text-strong); border-color: var(--ql-line-strong); }
.ql-chead__way:focus-visible { outline: none; box-shadow: var(--ql-ring); border-radius: var(--ql-r-sm); }
.ql-chead__ledger {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ql-sp-3) var(--ql-sp-9);
  margin: clamp(1.75rem, 1.1rem + 2vw, 2.75rem) 0 0;
  padding-block-start: var(--ql-sp-6);
  border-block-start: 1px solid var(--ql-line);
  font-family: var(--ql-font-mono);
  font-size: var(--ql-fs-3xs);
  font-weight: var(--ql-fw-medium);
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ql-text-subtle);
}
.ql-chead__ledger > span:first-child { display: inline-flex; align-items: baseline; gap: var(--ql-sp-4); }
.ql-chead__ledger > span:first-child > .ql-dot { flex: none; align-self: center; margin-inline-start: 5px; }
.ql-chead__ledger b { font-weight: var(--ql-fw-semibold); color: var(--ql-text-body); }
.ql-chead__ledger .ql-dot { color: var(--ql-success); }
.ql-chead__ledger a { color: var(--ql-text-body); text-decoration: none; letter-spacing: .08em; text-transform: none; border-block-end: 1px solid var(--ql-line-strong); }
.ql-chead__ledger a:hover { color: var(--ql-text-strong); border-block-end-color: currentColor; }
.ql-chead__ledger a:focus-visible { outline: none; box-shadow: var(--ql-ring); border-radius: 2px; }

/* ── 02 · the switchboard's cabinet ───────────────────────────────────────── */

.ql-cboard { padding-block: 0 clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
/* the cabinet's width, to size what is on it by */
.ql-cboard > .ql-container { container: board / inline-size; }
/* Narrow: the jack field, the keyshelf under it, the slip under that (the
   cord never crosses the slip). Wide (see below): the field and the slip side
   by side, the keyshelf the whole width under both. */
.ql-cboard__cab {
  --pad-t: 6cqi;
  --pad-i: 4.5cqi;
  /* the keyshelf picture's box: how much wider than the shelf (k), where its
     empty hole (30% across it) is to fall, across the shelf (hx) */
  --shelf-k: 2.6;
  --shelf-hx: 64%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "field" "shelf" "note";
  justify-items: center;
  padding: var(--pad-t) var(--pad-i) clamp(1.5rem, 6cqi, 2.5rem);
  border-radius: 10px;
  /* the keyshelf's picture is wider than the shelf: what lies past the
     cabinet's edges is cut, as a cabinet's edge cuts it */
  overflow: clip;
  background:
    radial-gradient(120% 80% at 8% -10%, rgb(255 214 150 / .2), rgb(255 214 150 / 0) 55%),
    radial-gradient(130% 120% at 30% 10%, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .62)),
    url("../Images/contact/walnut.webp?v=3") 0 0 / 512px 512px,
    #2a1a10;
  box-shadow:
    inset 0 1px 0 rgb(255 226 180 / .14),
    inset 0 0 0 1px rgb(0 0 0 / .6),
    inset 0 -40px 60px -30px rgb(0 0 0 / .7),
    0 30px 80px -30px rgb(0 0 0 / .9);
}
.ql-cboard__cab > * { min-inline-size: 0; }
/* the cord: over the board and over the plug (it runs right into the plug's
   foot, and out of its end's grommet); read by no one, touched by no one */
.ql-cboard__cord {
  position: absolute;
  inset: 0;
  z-index: 7;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

/* ── 03 · the jack field: five lines ──────────────────────────────────────── */

/* Where the lamps, jacks and label strips are in the photograph (GPT's,
   1200 x 1600), in percent of it, as measured: the lamps' bezels (96 px) at
   x 203.75, the jacks' rings (112.5 px) at x 397, the label holders' brass
   frames x 528.5..1055.5, 89.5 px tall. The rows' heights are on each line,
   as --row (y 255.2, 512.8, 770.2, 1026.3, 1281.7). */
.ql-cboard__field {
  --lamp-x: 16.98%;
  --lamp-d: 8.04;
  --jack-x: 33.08%;
  --jack-d: 9.38;
  --strip-x: 44.04%;
  --strip-w: 43.92%;
  --strip-h: 5.6%;
  --lit-y: 48.14%;
  grid-area: field;
  position: relative;
  z-index: 1;
  inline-size: 100%;
  max-inline-size: 30rem;
  aspect-ratio: 3 / 4;
  container: field / inline-size;
}
/* the panel (the photograph), set into the cabinet */
.ql-cboard__panel {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: url("../Images/contact/jackfield.webp?v=3") 0 0 / 100% 100% no-repeat, #0c0c0d;
  box-shadow: 0 0 0 2px rgb(0 0 0 / .55), 0 1px 0 3px rgb(255 226 180 / .08), 0 18px 40px -16px rgb(0 0 0 / .9);
}
/* the lit lamps (the same photograph, lamps lit), let through at one lamp */
.ql-cboard__lit {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: url("../Images/contact/jackfield-lit.webp?v=3") 0 0 / 100% 100% no-repeat;
  opacity: 0;
  /* the lit picture is the unlit one past each lamp's glow (104 px), so
     the opening needs no feather of its own; it stops short of the next lamp */
  -webkit-mask-image: radial-gradient(circle at var(--lamp-x) var(--lit-y), #000 0, #000 calc(var(--lamp-d) * 1.1cqi), rgb(0 0 0 / 0) calc(var(--lamp-d) * 1.5cqi));
  mask-image: radial-gradient(circle at var(--lamp-x) var(--lit-y), #000 0, #000 calc(var(--lamp-d) * 1.1cqi), rgb(0 0 0 / 0) calc(var(--lamp-d) * 1.5cqi));
  transition: opacity .35s var(--ql-ease);
}
.ql-cboard__field:has(#ctL1:checked) { --lit-y: 15.95%; }
.ql-cboard__field:has(#ctL2:checked) { --lit-y: 32.05%; }
.ql-cboard__field:has(#ctL3:checked) { --lit-y: 48.14%; }
.ql-cboard__field:has(#ctL4:checked) { --lit-y: 64.15%; }
.ql-cboard__field:has(#ctL5:checked) { --lit-y: 80.1%; }
.ql-cboard__field:has(.ql-line__in:checked) .ql-cboard__lit { opacity: 1; }
/* the line the carried plug would go into: its lamp warms, the nearer the
   plug's tip the warmer (the same lit picture, at that line) */
.ql-cboard__aimlit {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: url("../Images/contact/jackfield-lit.webp?v=3") 0 0 / 100% 100% no-repeat;
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle at var(--lamp-x) var(--aim-y, 50%), #000 0, #000 calc(var(--lamp-d) * 1.1cqi), rgb(0 0 0 / 0) calc(var(--lamp-d) * 1.5cqi));
  mask-image: radial-gradient(circle at var(--lamp-x) var(--aim-y, 50%), #000 0, #000 calc(var(--lamp-d) * 1.1cqi), rgb(0 0 0 / 0) calc(var(--lamp-d) * 1.5cqi));
  transition: opacity .2s var(--ql-ease);
}
.ql-cboard__field.is-aiming .ql-cboard__aimlit { opacity: .55; }
/* the line rings while the message is put through */
.ql-contact.is-ringing .ql-cboard__lit { animation: ql-cring .62s steps(1, end) infinite; }
@keyframes ql-cring { 50% { opacity: .18; } }

.ql-cboard__lines { position: absolute; inset: 0; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.ql-cboard__legend {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* a line: the row across the panel, its lamp, its jack and its strip */
.ql-line {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(var(--row) - 7%);
  block-size: 14%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ql-line__in {
  position: absolute;
  inset-inline-start: var(--jack-x);
  inset-block-start: 50%;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.ql-line__lamp,
.ql-line__jack {
  position: absolute;
  inset-block-start: 50%;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
}
.ql-line__lamp { inset-inline-start: var(--lamp-x); inline-size: calc(var(--lamp-d) * 1%); }
.ql-line__jack { inset-inline-start: var(--jack-x); inline-size: calc(var(--jack-d) * 1%); }
/* The jack the carried plug would go into, and so the line: a halo round its
   brass ring, the ring's own edge lit, warm light in its hole; the nearer the
   plug's tip, the stronger (--aim, 0..1, from the script). Let go, and that is
   the line. */
.ql-line__jack::before,
.ql-line__jack::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s var(--ql-ease);
}
.ql-line__jack::before {
  inset: -7%;
  box-shadow:
    0 0 0 1.5px rgb(255 228 172 / .9),
    0 0 3.4cqi 1cqi rgb(255 178 92 / .5),
    0 0 7cqi 1.4cqi rgb(255 150 60 / .22);
}
/* the hole (69% of the ring across), lit from within */
.ql-line__jack::after {
  inset: 15.5%;
  background: radial-gradient(circle at 50% 46%, rgb(255 214 150 / .62), rgb(255 168 80 / .26) 48%, rgb(255 140 50 / 0) 72%);
  box-shadow: inset 0 0 0 1px rgb(255 226 170 / .35);
}
.ql-line.is-aim .ql-line__jack::before { opacity: calc(.4 + .6 * var(--aim, 1)); animation: ql-caim 1.5s ease-in-out infinite; }
.ql-line.is-aim .ql-line__jack::after { opacity: calc(.3 + .7 * var(--aim, 1)); }
@keyframes ql-caim { 50% { scale: 1.07; } }
.ql-line.is-aim .ql-line__strip { background-color: rgb(255 236 196 / .32); box-shadow: inset 3px 0 0 rgb(214 150 60 / .9); }
/* the label strip: the line's name, typed on the blank card in the photograph */
.ql-line__strip {
  position: absolute;
  inset-inline-start: var(--strip-x);
  inset-block-start: 50%;
  display: flex;
  align-items: center;
  gap: 2.2cqi;
  inline-size: var(--strip-w);
  block-size: calc(var(--strip-h) * 100 / 14);
  padding-inline: 2.4cqi 1.6cqi;
  translate: 0 -50%;
  border-radius: 1px;
  font-family: var(--ql-font-mono);
  font-size: clamp(8.5px, 2.9cqi, 14.5px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1c1a17;
  transition: background-color .2s var(--ql-ease), box-shadow .2s var(--ql-ease);
}
.ql-line__n {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 1.7em;
  block-size: 1.7em;
  border: 1px solid rgb(28 26 23 / .45);
  border-radius: 50%;
  font-size: .82em;
  letter-spacing: 0;
}
.ql-line__t { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the narrowest panel: the strip keeps the name, not its number */
@container field (max-width: 300px) {
  .ql-line__n { display: none; }
}
.ql-line:hover .ql-line__strip { background-color: rgb(255 248 228 / .22); }
.ql-line:has(.ql-line__in:checked) .ql-line__strip { background-color: rgb(255 228 170 / .3); box-shadow: inset 3px 0 0 #b3261e; }
.ql-line:has(.ql-line__in:focus-visible) .ql-line__strip { outline: 2.5px solid #6fa6ff; outline-offset: 3px; }

/* ── 04 · the keyshelf, its plugs, and the live plug ─────────────────────── */

.ql-cboard__shelf {
  grid-area: shelf;
  position: relative;
  inline-size: calc(100% + 2 * var(--pad-i));
  /* the shelf shows the picture's lower 88%: the plugs whole, and the ledge */
  block-size: calc(16.5cqi * var(--shelf-k));
  margin-inline: calc(-1 * var(--pad-i));
  margin-block: -2px clamp(7rem, 20cqi, 7.75rem);
}
/* the photograph of the ledge, cut to the shelf */
.ql-cboard__shelfpic {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  /* its ends, and its top edge against the cabinet, softened */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(transparent, #000 2%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(transparent, #000 2%);
  mask-composite: intersect;
}
.ql-cboard__shelfpic::before,
.ql-cboard__shelfmap {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: calc(var(--shelf-hx) - .3 * var(--shelf-k) * 100%);
  inline-size: calc(var(--shelf-k) * 100%);
  aspect-ratio: 16 / 3;
}
.ql-cboard__shelfpic::before {
  content: "";
  background: url("../Images/contact/keyshelf.webp?v=3") 0 0 / 100% 100% no-repeat;
}
/* The shelf's photograph (GPT's, 3200 x 600), as measured: the empty hole's
   dark opening is an ellipse centred at (962, 384.5), 92 x 29.5 px; the
   eight shelf plugs' tips stand at y 89, their collars end at y 257, and
   their sleeves go into their holes at y 396. Over the plug, under nothing
   but the plug's own lip: the map is its own layer, cut at its foot (what
   sinks below the photograph's foot is in the shelf, out of sight). */
.ql-cboard__shelfmap {
  z-index: 6;
  clip-path: inset(-100vmax -100vmax 0 -100vmax);
}
/* the empty hole's centre: where the cord goes into the shelf */
.ql-cboard__hole,
.ql-cboard__rest {
  position: absolute;
  inset-inline-start: 30.0625%;
  inset-block-start: 64.08%;
  display: block;
  inline-size: 0;
  block-size: 0;
}
/* where the plug's cord leaves it when it stands in its hole: the plug sunk
   in the shelf to the shelf plugs' height */
.ql-cboard__rest { inset-block-start: 96.57%; }
/* The live plug (106 x 551 px, tip to the foot of its ferrule, drawn at .89
   of the photograph's scale): its tip at the shelf plugs' tips, its sleeve
   down into the hole; the rest of it is in the shelf, behind the hole's front
   lip (below). Its cord is drawn by the page, from its foot. */
.ql-cboard__plug {
  --cap: 40px;
  position: absolute;
  inset-inline-start: 30.0625%;
  inset-block-start: 14.83%;
  z-index: 1;
  display: block;
  inline-size: 2.948%;
  aspect-ratio: 106 / 551;
  margin-inline-start: -1.474%;
  touch-action: none;
  cursor: grab;
  will-change: transform;
}
.ql-cboard__plug.is-held { cursor: grabbing; }
.ql-cboard__plugside,
.ql-cboard__plugend {
  position: absolute;
  display: block;
  pointer-events: none;
}
/* its pose comes from the script, frame by frame: its sway (--tilt, about its
   foot), lifted (--grow) and how much of it is out of a jack (--push) */
.ql-cboard__plugside {
  inset: 0;
  background: url("../Images/contact/plug.webp?v=3") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(3px 6px 4px rgb(0 0 0 / .6));
  transform-origin: 50% 100%;
  rotate: var(--tilt, 0deg);
  scale: var(--grow, 1) calc(var(--grow, 1) * var(--push, 1));
  transition: filter .2s var(--ql-ease);
}
.ql-cboard__plug.is-held .ql-cboard__plugside { filter: drop-shadow(12px 22px 14px rgb(0 0 0 / .55)); }
/* once the board has arrived, the plug at rest stirs in its hole: take me */
.ql-contact-arm .ql-cboard__plug:not(.is-held):not(.is-in) .ql-cboard__plugside { animation: ql-cstir 1.1s var(--ql-ease-out) 1.6s 2; }
@keyframes ql-cstir { 30% { transform: translateY(-5%); } 55% { transform: translateY(0); } 72% { transform: translateY(-1.8%); } }
/* in a jack: its round end (256 px square, the end 231 px across, centred;
   its grommet 2 px right and 15 px down of the centre). The cord comes out of
   the grommet, so the grommet sits on the plug's foot point; the end round
   it is centred on the jack. */
.ql-cboard__plugend {
  inset-inline-start: 50%;
  inset-block-end: 0;
  inline-size: var(--cap);
  aspect-ratio: 1;
  translate: -50.78% 44.14%;
  background: url("../Images/contact/plug-end.webp?v=3") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(2px 5px 4px rgb(0 0 0 / .7));
  opacity: 0;
}
.ql-cboard__plug.is-in .ql-cboard__plugside { opacity: 0; }
/* in a jack only its end can be taken hold of; the rows around it stay theirs */
.ql-cboard__plug.is-in { pointer-events: none; }
.ql-cboard__plug.is-in .ql-cboard__plugend { pointer-events: auto; cursor: grab; }
.ql-cboard__plug.is-in .ql-cboard__plugend { opacity: 1; animation: ql-cseat .22s cubic-bezier(.2, .9, .3, 1.2) 1; }
@keyframes ql-cseat { from { transform: scale(1.18); } }
/* The hole's front lip: the same photograph, over the plug, let through only
   below the dark opening's front edge (a band 140 px wide from the hole's
   centre line down), so the plug goes into its hole and comes up out of it */
.ql-cboard__lip {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background: url("../Images/contact/keyshelf.webp?v=3") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) 29.15% 100% / 4.375% 35.92% no-repeat,
    radial-gradient(1.4375% 2.458% at 30.0625% 64.08%, rgb(0 0 0 / 0) 95%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(#000 0 0) 29.15% 100% / 4.375% 35.92% no-repeat,
    radial-gradient(1.4375% 2.458% at 30.0625% 64.08%, rgb(0 0 0 / 0) 95%, #000 100%);
  mask-composite: intersect;
}
/* the shelf's note to the visitor */
.ql-cboard__hint {
  position: absolute;
  inset-inline: 16px;
  inset-block-start: calc(100% + 12px);
  z-index: 3;
  margin: 0;
  font-family: var(--ql-font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(244 228 196 / .62);
  pointer-events: none;
  transition: opacity .4s var(--ql-ease);
}
.ql-contact.is-routed .ql-cboard__hint { opacity: 0; }

/* the slip's place on the cabinet, under its brass clip */
.ql-cboard__note {
  grid-area: note;
  position: relative;
  z-index: 2;
  inline-size: 100%;
  max-inline-size: 34rem;
  padding-block-start: clamp(18px, 4cqi, 30px);
}
/* GPT's bulldog clip (371 x 379 px): its jaws, 74% to 96% down it, bite
   the pad's top edge */
.ql-cboard__clip {
  position: absolute;
  inset-block-start: clamp(18px, 4cqi, 30px);
  inset-inline-start: 50%;
  z-index: 3;
  display: block;
  inline-size: clamp(66px, 22%, 112px);
  aspect-ratio: 371 / 379;
  translate: -50% -82%;
  background: url("../Images/contact/clip.webp?v=3") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(3px 6px 5px rgb(0 0 0 / .55));
  pointer-events: none;
}

/* wide: the jack field and the slip side by side, the shelf under both */
@container board (min-width: 860px) {
  .ql-cboard__cab {
    --pad-t: 4.5cqi;
    --pad-i: 4.5cqi;
    --shelf-k: 1.15;
    --shelf-hx: 33%;
    grid-template-columns: minmax(0, 41fr) minmax(0, 47fr);
    grid-template-areas: "field note" "shelf shelf";
    column-gap: 6cqi;
    align-items: end;
    justify-items: stretch;
  }
  .ql-cboard__field { max-inline-size: none; }
  .ql-cboard__note { align-self: start; justify-self: center; }
  .ql-cboard__shelf { margin-block: 0 clamp(2.75rem, 4.5cqi, 3.5rem); }
}

/* ── 05 · the slip: "While you were out" ──────────────────────────────────── */

.ql-msg { position: relative; display: grid; }
.ql-msg__sheet,
.ql-msg__copy {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-content: start;
  row-gap: 14px;
  padding: clamp(22px, 5cqi, 34px) clamp(18px, 4.6cqi, 34px) clamp(20px, 4.4cqi, 30px);
  color: var(--pen);
  color-scheme: light;
  background:
    radial-gradient(120% 90% at 10% -8%, rgb(255 242 236 / .55), rgb(255 242 236 / 0) 60%),
    radial-gradient(80% 90% at 50% 50%, rgb(120 40 50 / 0) 70%, rgb(120 40 50 / .12)),
    url("../Images/contact/paper.webp?v=3") 0 0 / 512px 512px,
    #f2d2d3;
  border-radius: 0 0 3px 3px;
  box-shadow:
    inset 0 -1px 0 rgb(120 40 50 / .18),
    0 2px 3px rgb(0 0 0 / .5),
    16px 30px 50px -22px rgb(0 0 0 / .95);
  /* its torn top: the pad's perforation */
  -webkit-mask: radial-gradient(circle 3.2px at 7px 0, rgb(0 0 0 / 0) 96%, #000) 0 0 / 14px 100% repeat-x;
  mask: radial-gradient(circle 3.2px at 7px 0, rgb(0 0 0 / 0) 96%, #000) 0 0 / 14px 100% repeat-x;
  container-type: inline-size;
}
.ql-msg__copy {
  z-index: 0;
  background:
    radial-gradient(120% 90% at 10% -8%, rgb(255 246 240 / .6), rgb(255 246 240 / 0) 60%),
    url("../Images/contact/paper.webp?v=3") 0 0 / 512px 512px,
    #f6e0df;
}
.ql-msg__copy[hidden],
.ql-msg__sheet[hidden] { display: none; }
.ql-msg__sheet { z-index: 1; }
/* the top sheet, torn off the pad and taken */
.ql-msg__sheet.is-torn { animation: ql-ctear .78s cubic-bezier(.45, 0, .55, 1) 1 forwards; pointer-events: none; }
@keyframes ql-ctear {
  0% { transform: none; opacity: 1; }
  22% { transform: translateY(-5px) rotate(-1.2deg); opacity: 1; }
  100% { transform: translate(-32px, -170px) rotate(-10deg); opacity: 0; }
}
/* a fresh sheet, the pad's next */
.ql-msg__sheet.is-fresh { animation: ql-cfresh .45s var(--ql-ease-out) 1; }
@keyframes ql-cfresh { from { transform: translateY(-14px); opacity: 0; } }

.ql-msg__head { display: grid; row-gap: 4px; padding-block-end: 10px; border-block-end: 2px solid var(--wy-ink); }
.ql-msg__kicker {
  margin: 0;
  font-family: var(--ql-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--wy-ink);
}
.ql-msg__title {
  margin: 0;
  font-size: clamp(1.45rem, 1.1rem + 2.4cqi, 2.05rem);
  font-weight: var(--ql-fw-heavy, 800);
  line-height: 1.02;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--wy-ink);
  outline: none;
}
.ql-msg__k {
  font-family: var(--ql-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wy-ink);
}
.ql-msg__for,
.ql-msg__re {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  padding-block-end: 6px;
  border-block-end: 1px solid var(--wy-rule);
}
.ql-msg__for b,
.ql-msg__re b,
.ql-msg__when b { font-family: var(--ql-font-mono); font-size: 14px; font-weight: 600; color: var(--pen); }
.ql-msg__when { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 14px; margin-inline-start: auto; }
/* a label and its value wrap as one: the date never breaks across lines */
.ql-msg__at { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ql-msg__when b { min-inline-size: 3ch; }
.ql-msg__re b.is-empty { font-weight: 400; font-style: italic; color: rgb(59 66 88 / .7); }

/* what the desk says back when it cannot take the slip */
.ql-msg__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--wy-ink);
  background: rgb(134 29 51 / .08);
  font-family: var(--ql-font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--wy-ink-2);
}
.ql-msg__alert[hidden] { display: none; }
.ql-msg__alertdot { flex: none; inline-size: 8px; block-size: 8px; margin-block-start: 6px; border-radius: 50%; background: var(--wy-ink); }
/* the field nobody fills: out of sight, out of the keyboard's way */
.ql-msg__hp {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.ql-msg__pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 22px; }
@container (min-width: 400px) {
  .ql-msg__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ql-msg__f { display: grid; row-gap: 3px; min-inline-size: 0; }
.ql-msg__lrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ql-msg__l {
  margin: 0;
  padding: 0;
  font-family: var(--ql-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wy-ink);
}
.ql-msg__l i { margin-inline-start: 6px; font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; color: rgb(95 20 36 / .78); }
.ql-msg__count { font-family: var(--ql-font-mono); font-size: 11px; color: rgb(95 20 36 / .78); white-space: nowrap; }
.ql-msg__in {
  inline-size: 100%;
  min-inline-size: 0;
  margin: 0;
  padding: 6px 3px 5px;
  border: 0;
  border-block-end: 1.5px solid var(--wy-rule);
  border-radius: 0;
  background: transparent;
  font-family: var(--ql-font-mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--pen);
  caret-color: var(--link);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ql-ease), background-color .2s var(--ql-ease), box-shadow .2s var(--ql-ease);
}
.ql-msg__in::placeholder { color: rgb(59 66 88 / .5); opacity: 1; }
.ql-msg__in:hover { border-block-end-color: rgb(134 29 51 / .65); }
.ql-msg__in:focus { outline: none; border-block-end-color: var(--link); background-color: rgb(21 86 176 / .06); box-shadow: 0 1.5px 0 0 var(--link); }
.ql-msg__f.is-bad .ql-msg__in { border-block-end-color: #9b1c1c; box-shadow: 0 1.5px 0 0 #9b1c1c; }
/* the message: the pad's ruled lines, scrolling with what is written */
.ql-msg__in--area {
  --lh: 27px;
  min-block-size: calc(var(--lh) * 4 + 8px);
  padding: 2px 3px 6px;
  border-block-end: 0;
  line-height: var(--lh);
  resize: vertical;
  background-image: linear-gradient(to bottom, transparent calc(var(--lh) - 1px), var(--wy-rule-soft) calc(var(--lh) - 1px));
  background-size: 100% var(--lh);
  background-position: 0 2px;
  background-attachment: local;
}
.ql-msg__in--area:focus { box-shadow: inset 2px 0 0 var(--link); }
.ql-msg__f.is-bad .ql-msg__in--area { box-shadow: inset 2px 0 0 #9b1c1c; }
.ql-msg__err { margin: 0; font-family: var(--ql-font-mono); font-size: 12.5px; line-height: 1.45; color: #8e1616; }
.ql-msg__err:empty { display: none; }
.ql-msg__err--line { margin-block-start: -8px; }

/* the printed boxes, ticked in pen */
.ql-msg__boxes { display: flex; flex-wrap: wrap; gap: 10px 18px; min-inline-size: 0; margin: 2px 0 0; padding: 0; border: 0; }
.ql-msg__boxes > .ql-msg__l { inline-size: 100%; margin-block-end: 2px; }
.ql-msg__box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-block-size: 32px;
  font-family: var(--ql-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wy-ink);
  cursor: pointer;
}
.ql-msg__box input { position: absolute; inset-inline-start: 0; inline-size: 20px; block-size: 20px; margin: 0; opacity: 0; cursor: pointer; }
.ql-msg__tick {
  position: relative;
  flex: none;
  pointer-events: none;
  inline-size: 20px;
  block-size: 20px;
  border: 1.6px solid var(--wy-ink);
  border-radius: 1px;
  background: rgb(255 250 248 / .35);
}
.ql-msg__tick::after {
  content: "";
  position: absolute;
  inset: -6px -8px -2px -2px;
  background: var(--pen);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15.5c2.6 2.2 4.6 4.6 6.6 8C14.4 15 19.6 8.4 27 2.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15.5c2.6 2.2 4.6 4.6 6.6 8C14.4 15 19.6 8.4 27 2.8'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s var(--ql-ease), transform .2s var(--ql-ease-out);
}
.ql-msg__box input:checked + .ql-msg__tick::after { opacity: 1; transform: none; }
.ql-msg__box input:focus-visible + .ql-msg__tick { outline: 2.5px solid var(--link); outline-offset: 2px; }

/* leave the message: the desk's own button, inked on the slip */
.ql-msg__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block-start: 4px; }
.ql-msg__btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-block-size: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a3040, #161a24);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 2px 3px rgb(0 0 0 / .4), 0 10px 22px -10px rgb(0 0 0 / .7);
  font-family: var(--ql-font-sans);
  font-size: 15px;
  font-weight: var(--ql-fw-semibold);
  line-height: 1;
  color: #f7e9e4;
  cursor: pointer;
  transition: transform .25s var(--ql-ease-out), box-shadow .25s var(--ql-ease-out);
}
.ql-msg__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 3px 5px rgb(0 0 0 / .45), 0 16px 26px -12px rgb(0 0 0 / .75); }
.ql-msg__btn:focus-visible { outline: 2.5px solid var(--link); outline-offset: 3px; }
.ql-msg__btn:disabled { cursor: progress; }
.ql-msg__idle,
.ql-msg__run { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px; }
.ql-msg__run { visibility: hidden; }
.ql-msg__btn.is-running .ql-msg__idle { visibility: hidden; }
.ql-msg__btn.is-running .ql-msg__run { visibility: visible; }
.ql-msg__ico { inline-size: 19px; block-size: 19px; flex: none; color: #e9c77f; }
.ql-msg__spin {
  inline-size: 15px;
  block-size: 15px;
  border: 2px solid rgb(247 233 228 / .25);
  border-block-start-color: #f7e9e4;
  border-radius: 50%;
  animation: ql-cspin .8s linear infinite;
}
@keyframes ql-cspin { to { transform: rotate(360deg); } }
.ql-msg__noscript { margin: 0; max-inline-size: 52ch; font-family: var(--ql-font-mono); font-size: 13.5px; line-height: 1.6; color: var(--pen-2); }
.ql-msg__noscript a { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.ql-msg__taken {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0 0;
}
.ql-msg__sig { flex: 1 1 auto; min-block-size: 18px; border-block-end: 1px solid var(--wy-rule); font-family: var(--ql-font-mono); font-size: 13px; font-style: italic; color: var(--carbon); }

/* the carbon copy: what was written comes through in the carbon's blue */
.ql-msg__copy .ql-msg__head { border-block-end-color: rgb(134 29 51 / .7); }
.ql-msg__copy .ql-msg__title,
.ql-msg__copy .ql-msg__kicker { color: rgb(134 29 51 / .86); }
.ql-msg__said { margin: 0; font-size: 15px; line-height: 1.6; color: var(--pen-2); text-wrap: pretty; }
.ql-msg__said b { color: var(--carbon); overflow-wrap: anywhere; }
.ql-msg__carbon { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; padding: 10px 0 2px; border-block: 1px solid var(--wy-rule-soft); }
.ql-msg__carbon dt { font-family: var(--ql-font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgb(134 29 51 / .82); padding-block-start: 2px; }
.ql-msg__carbon dd {
  margin: 0;
  font-family: var(--ql-font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--carbon);
  text-shadow: 0 0 .7px rgb(44 60 140 / .55);
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.ql-msg__ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 12px 14px;
  border: 1.5px dashed rgb(134 29 51 / .45);
  border-radius: 3px;
}
.ql-msg__refl { grid-column: 1; font-family: var(--ql-font-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgb(134 29 51 / .82); }
.ql-msg__v { grid-column: 1; font-family: var(--ql-font-mono); font-size: clamp(19px, 5.4cqi, 25px); font-weight: 700; letter-spacing: .08em; white-space: nowrap; color: var(--carbon); }
.ql-msg__copybtn {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-block-size: 38px;
  padding: 0 16px;
  border: 1.5px solid rgb(24 33 59 / .45);
  border-radius: 999px;
  background: transparent;
  font-family: var(--ql-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pen);
  cursor: pointer;
}
.ql-msg__copybtn:hover { border-color: var(--pen); }
.ql-msg__copybtn:focus-visible { outline: 2.5px solid var(--link); outline-offset: 2px; }
.ql-msg__copybtn.is-done { border-color: #2f7d55; color: #1f5a3c; }
@container (max-width: 340px) {
  .ql-msg__ref { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .ql-msg__copybtn { grid-column: 1; grid-row: auto; justify-self: start; margin-block-start: 8px; }
}
.ql-msg__again { justify-self: start; }

/* ── 06 · the arrival ─────────────────────────────────────────────────────── */

.ql-contact-arm .ql-contact-rise { animation: ql-contact-rise .8s var(--ql-ease-out) both; }
.ql-contact-arm .ql-chead__words .ql-contact-rise:nth-child(1) { animation-delay: 40ms; }
.ql-contact-arm .ql-chead__words .ql-contact-rise:nth-child(2) { animation-delay: 110ms; }
.ql-contact-arm .ql-chead__side .ql-contact-rise:nth-child(1) { animation-delay: 190ms; }
.ql-contact-arm .ql-chead__side .ql-contact-rise:nth-child(2) { animation-delay: 260ms; }
.ql-contact-arm .ql-chead__ledger.ql-contact-rise { animation-delay: 330ms; }
.ql-contact-arm .ql-cboard__cab { animation: ql-contact-lay 1s var(--ql-ease-out) .2s both; }
.ql-contact-arm .ql-cboard__note { animation: ql-contact-lay .9s var(--ql-ease-out) .45s both; }
@keyframes ql-contact-rise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: none; }
}
@keyframes ql-contact-lay {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: none; }
}

/* ── 07 · motion off, colours forced, paper ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ql-contact-arm .ql-contact-rise, .ql-contact-arm .ql-cboard__cab, .ql-contact-arm .ql-cboard__note,
  .ql-msg__sheet.is-torn, .ql-msg__sheet.is-fresh, .ql-cboard__plug.is-in .ql-cboard__plugend, .ql-cboard__plugside,
  .ql-contact.is-ringing .ql-cboard__lit, .ql-line.is-aim .ql-line__jack::before { animation: none !important; }
  .ql-chead__way, .ql-chead__wgo, .ql-chead__wico, .ql-msg__btn, .ql-msg__in, .ql-line__strip, .ql-cboard__lit,
  .ql-cboard__plugside, .ql-msg__tick::after, .ql-cboard__hint { transition: none; }
  .ql-chead__way:hover .ql-chead__wgo, .ql-msg__btn:hover:not(:disabled) { transform: none; }
  .ql-msg__spin { animation-duration: 1.6s; }
}
@media (forced-colors: active) {
  .ql-cboard__cab { background: Canvas; border: 1px solid CanvasText; forced-color-adjust: auto; }
  .ql-cboard__panel, .ql-cboard__lit, .ql-cboard__shelfpic, .ql-cboard__lip, .ql-cboard__cord, .ql-cboard__clip, .ql-cboard__plug, .ql-cboard__hint { display: none; }
  .ql-line__strip { border: 1px solid CanvasText; }
  .ql-line:has(.ql-line__in:checked) .ql-line__strip { border-width: 3px; }
  .ql-msg__sheet, .ql-msg__copy { background: Canvas; border: 1px solid CanvasText; -webkit-mask: none; mask: none; }
  .ql-msg__tick::after { forced-color-adjust: none; background: CanvasText; }
  .ql-msg__btn { border: 1px solid ButtonText; }
}
@media print {
  .ql-cboard__panel, .ql-cboard__lit, .ql-cboard__shelf, .ql-cboard__cord, .ql-cboard__clip, .ql-msg__send { display: none !important; }
  .ql-contact, .ql-cboard__cab { background: #fff; box-shadow: none; }
  .ql-msg__sheet, .ql-msg__copy { background: #fff; box-shadow: none; border: 1px solid #999; -webkit-mask: none; mask: none; }
}
