/* ============================================================
   JOAO PEDRO SOARES — DRAWING SET
   A cyanotype drafting world. No framework, no CDN, one file.
   Dark  = cyanotype   (white lines on Prussian blue)
   Light = whiteprint  (blue lines on cool paper)
   ============================================================ */

/* ---------- 1. TOKENS ---------- */

:root {
  --ground:      #eaeff5;
  --ground-deep: #dde5ee;
  --ink:         #0a2547;
  --ink-2:       #4a678c;
  --line:        #1a4a86;
  --line-dim:    rgba(26, 74, 134, 0.26);
  --line-faint:  rgba(26, 74, 134, 0.10);
  --rev:         #c8341a;
  --rev-text:    #b32d15;   /* revision red, contrast-safe for text */
  --panel:       #fbfcfe;   /* boxed surfaces: opaque, lifted off the grid */
  --panel-2:     #f1f5f9;
  --stamp:       #0a2547;
  --stamp-ink:   #eaeff5;
  --chip:        #ffffff;   /* paper chip behind full-colour logos */

  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;

  --frame: clamp(14px, 3.2vw, 34px);
  --sheet-max: 1320px;

  --label: 500 0.6875rem/1.1 var(--mono);
  --tracking-label: 0.14em;
}

html.dark {
  --ground:      #0d2f5c;
  --ground-deep: #08203f;
  --ink:         #f2f7fd;
  --ink-2:       #9fb9d6;
  --line:        #cfe0f2;
  --line-dim:    rgba(207, 224, 242, 0.30);
  --line-faint:  rgba(207, 224, 242, 0.10);
  --rev:         #ff5a3c;
  --rev-text:    #ff8168;   /* revision red, contrast-safe for text */
  --panel:       #0a2749;   /* boxed surfaces: opaque, lifted off the grid */
  --panel-2:     #071d38;
  --stamp:       #e8f1fb;
  --stamp-ink:   #0a2547;
  --chip:        #f4f8fd;   /* paper chip behind full-colour logos */
}

/* ---------- 2. RESET + GROUND ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--rev); color: var(--ground); }

:focus-visible {
  outline: 2px solid var(--rev);
  outline-offset: 3px;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. THE SHEET ---------- */

.sheet {
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: var(--frame);
  position: relative;
}

/* the drawn border, inset from the paper edge like a real sheet */
.sheet__frame {
  position: absolute;
  inset: var(--frame);
  border: 1px solid var(--line);
  pointer-events: none;
}
.sheet__frame::after {
  /* the second, hairline rule inside the border */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-dim);
}

/* zone letters/numbers along the frame, as on an engineering sheet */
.zones {
  position: absolute;
  inset: var(--frame);
  pointer-events: none;
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
}
.zones span {
  position: absolute;
  transform: translate(-50%, -50%);
}
.zones .z-t { top: -0.75em; }
.zones .z-b { bottom: -1.6em; top: auto; transform: translateX(-50%); }
.zones .z-l { left: -0.9em; transform: translate(-50%, -50%); }
.zones .z-r { right: -0.9em; left: auto; transform: translate(50%, -50%); }

@media (max-width: 700px) { .zones { display: none; } }

.sheet__body {
  position: relative;
  padding: clamp(20px, 4vw, 52px) clamp(14px, 3vw, 46px);
}

/* ---------- 4. DRAFTING PRIMITIVES ---------- */

/* -- label: the small tracked caption that annotates everything -- */
.lbl {
  font: var(--label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-block;
}
.lbl--rev { color: var(--rev-text); }

/* -- rule: a drawn line with optional weight -- */
.rule { border: 0; border-top: 1px solid var(--line-dim); margin: 0; }
.rule--heavy { border-top-color: var(--line); }

/* -- dimension line: ticks at both ends, figure sitting in the gap -- */
.dim {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 9px;
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
  text-transform: uppercase;
}
.dim::before,
.dim::after {
  content: "";
  height: 9px;
  width: 1px;
  background: var(--line);
}
.dim__bar {
  height: 1px;
  background: var(--line-dim);
}
.dim__fig {
  white-space: nowrap;
  color: var(--ink);
}

/* horizontal run of dimensions under the subject */
.dimrow {
  display: grid;
  gap: 20px;
  margin-top: clamp(18px, 3vw, 30px);
}
@media (min-width: 760px) {
  .dimrow { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

/* a figure and the thing it measures, kept together at every width */
.dimset { display: grid; gap: 7px; }

/* -- hatching: the 45° fill that marks a cut face -- */
.hatch {
  background-image: repeating-linear-gradient(
    45deg,
    var(--line-dim) 0 1px,
    transparent 1px 7px
  );
}

/* -- revision triangle: the drafting marker for a change -- */
.revmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.35em;
  font: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0;
  color: var(--rev-text);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border: 0;
  background: transparent;
  position: relative;
}
.revmark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rev);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.16;
}
.revmark span { position: relative; top: 0.22em; }

/* ---------- 5. TITLE BLOCK ---------- */

.tblock {
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 620px) {
  .tblock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tcell {
  border-right: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
  padding: 10px 12px 12px;
  min-width: 0;
}
.tcell:last-child { border-right: 0; }
.tcell__k {
  font: var(--label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 5px;
}
.tcell__v {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
.tcell--wide { grid-column: 1 / -1; }
/* keep a label legible where it crosses a hatched cut face */
.onhatch {
  background: var(--panel);
  padding: 2px 7px 3px;
  margin-left: -7px;
}
@media (min-width: 620px) {
  .tcell--wide { grid-column: span 2; }
}

/* ---------- 6. SUBJECT (the name, drawn at scale) ---------- */

.subject {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: end;
}
@media (min-width: 900px) {
  .subject { grid-template-columns: minmax(0, 1fr) 190px; }
}

.subject__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.6rem, 9.2vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.subject__name em {
  font-style: normal;
  display: block;
  color: var(--ink-2);
}

.subject__role {
  font-family: var(--mono);
  font-size: clamp(0.8125rem, 1.6vw, 0.95rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: clamp(16px, 2.6vw, 26px) 0 0;
  max-width: 46ch;
  line-height: 1.62;
}
.subject__role b { color: var(--rev-text); font-weight: 500; }

/* the portrait, printed into the blueprint rather than sat in an avatar */
.plate {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 5px;
  position: relative;
  align-self: start;
  max-width: 190px;
}
.plate img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.04);
  display: block;
}
.plate__cap {
  position: absolute;
  left: 5px; right: 5px; bottom: 5px;
  background: var(--ground-deep);
  border-top: 1px solid var(--line-dim);
  padding: 5px 7px;
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
  text-transform: uppercase;
}

/* ---------- 7. SHEET INDEX (navigation) ---------- */

.index {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .index { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.index a {
  text-decoration: none;
  padding: 12px 14px 14px;
  border-right: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
  display: block;
  transition: background-color .18s ease, color .18s ease;
  position: relative;
}
@media (min-width: 720px) {
  .index a { border-bottom: 0; }
  .index a:last-child { border-right: 0; }
}
.index a:hover { background: var(--panel-2); }

.index__no {
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
  display: block;
  margin-bottom: 4px;
}
.index__t {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.index a[aria-current="page"] { background: var(--panel-2); }
.index a[aria-current="page"] .index__no { color: var(--rev-text); }
.index a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rev);
}

/* ---------- 8. NOTES (body prose, as the drawing's note column) ---------- */

.notes {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
}
@media (min-width: 880px) {
  .notes { grid-template-columns: 150px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); }
}

.notes__body p {
  margin: 0 0 0.95em;
  max-width: 68ch;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.68;
  color: var(--ink);
}
.notes__body p:last-child { margin-bottom: 0; }
.notes__body strong {
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 -0.42em 0 var(--line-faint);
}
.notes__body { counter-reset: note; }
.notes__body p::before {
  counter-increment: note;
  content: counter(note, decimal-leading-zero) "  ";
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
  margin-right: 0.35em;
}

/* ---------- 9. DETAIL CALLOUTS (the four products) ---------- */

.details {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
@media (min-width: 860px) {
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.detail {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 18px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dim);
  border-right: 1px solid var(--line-dim);
  position: relative;
  transition: background-color .2s ease;
  align-items: start;
}
.detail:hover { background: var(--panel-2); }
@media (min-width: 860px) {
  .detail:nth-child(2n) { border-right: 0; }
  .detail:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 859px) {
  .detail { border-right: 0; }
  .detail:last-child { border-bottom: 0; }
}

/* the circled detail bubble that marks a callout on a drawing */
.detail__bub {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 9px;
  position: relative;
  background: var(--chip);
}
.detail__bub img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.04);
}
/* the leader line that extends on hover */
.detail__bub::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 16px;
  height: 1px;
  background: var(--rev);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.detail:hover .detail__bub::after { transform: scaleX(1); }

.detail__hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.detail__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.detail__desc {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 9px;
}
.detail__spec {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.detail__spec span { white-space: nowrap; }

/* status: drawn as a drafting stamp, not a pill */
.stat {
  background: var(--panel);
  font: var(--label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 2px 6px 3px;
  color: var(--ink-2);
  white-space: nowrap;
}
.stat--live { color: var(--rev-text); }

/* ---------- 10. STAMP (the primary action) ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stampbtn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  background: var(--stamp);
  color: var(--stamp-ink);
  border: 1px solid var(--stamp);
  display: inline-block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stampbtn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line-dim);
}
.stampbtn--ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

/* ---------- 11. BLOCK SCAFFOLD ---------- */

.blk { margin-top: clamp(34px, 6vw, 68px); }

.blk__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(14px, 2.4vw, 22px);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.blk__t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: -0.015em;
  margin: 0;
  text-transform: uppercase;
}
.blk__hd .lbl { flex-shrink: 0; }

/* ---------- 12. TOOLBAR (contact + theme) ---------- */

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tool {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dim);
  background: var(--panel);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color .18s ease, border-color .18s ease;
}
.tool:hover { background: var(--panel-2); border-color: var(--line); }
.tool svg { width: 17px; height: 17px; }

/* ---------- 13. FOOTER (the sheet's bottom rail) ---------- */

.rail {
  margin-top: clamp(30px, 5vw, 56px);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
  text-transform: uppercase;
}

/* ---------- 14. MOTION: the sheet draws itself in ---------- */

@media (prefers-reduced-motion: no-preference) {
  .draw { opacity: 0; animation: draw-in .62s cubic-bezier(.2,.7,.3,1) forwards; }
  .draw:nth-child(1) { animation-delay: .02s; }
  .draw:nth-child(2) { animation-delay: .08s; }
  .draw:nth-child(3) { animation-delay: .14s; }
  .draw:nth-child(4) { animation-delay: .20s; }
  .draw:nth-child(5) { animation-delay: .26s; }
  .draw:nth-child(6) { animation-delay: .32s; }
}

@keyframes draw-in {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

/* an annotation long enough to be read as a sentence, not a label */
.note-side {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-2);
  display: block;
}

/* ============================================================
   SHEETS 2–5: schedules, section views, records
   ============================================================ */

/* ---------- 15. SCHEDULE (a drawing's parts list) ---------- */

.sched {
  border: 1px solid var(--line);
  background: var(--panel);
}
.sched__grp {
  border-bottom: 1px solid var(--line-dim);
  display: grid;
  gap: 0;
}
.sched__grp:last-child { border-bottom: 0; }
@media (min-width: 780px) {
  .sched__grp { grid-template-columns: 190px minmax(0, 1fr); }
}
.sched__hd {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-dim);
  background: var(--panel-2);
}
@media (min-width: 780px) {
  .sched__hd { border-bottom: 0; border-right: 1px solid var(--line-dim); }
}
.sched__no {
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--rev-text);
  display: block;
  margin-bottom: 5px;
}
.sched__t {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}
.sched__items {
  padding: 12px 16px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
}
.sched__items span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink);
  padding: 2px 12px 2px 0;
  margin-right: 12px;
  border-right: 1px solid var(--line-dim);
  white-space: nowrap;
}
.sched__items span:last-child { border-right: 0; margin-right: 0; }

/* ---------- 16. SECTION VIEW (one object, cut three ways) ---------- */

.secview {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 18px;
}
.secview:last-child { margin-bottom: 0; }

.secview__hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dim);
  background: var(--panel-2);
}
.secview__cut {
  font: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--rev-text);
  display: block;
  margin-bottom: 6px;
}
.secview__t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}
.secview__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  text-align: right;
}
.secview__bd { padding: 16px 18px 18px; }
.secview__lead {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--ink);
  max-width: 68ch;
}

/* drawing notes: numbered, hanging, no bullet glyphs */
.bul { list-style: none; margin: 0; padding: 0; counter-reset: bul; }
.bul li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 9px;
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--ink);
  max-width: 68ch;
}
.bul li:last-child { margin-bottom: 0; }
.bul li::before {
  counter-increment: bul;
  content: counter(bul, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.24em;
  font: var(--label);
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
}
.bul strong { font-weight: 600; color: var(--ink); }

/* the parts used on this view */
.usedon {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
}
.usedon span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-right: 11px;
  margin-right: 11px;
  border-right: 1px solid var(--line-dim);
  white-space: nowrap;
}
.usedon span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

/* ---------- 17. RECORD (a full project or role entry) ---------- */

.rec {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 18px;
}
.rec:last-child { margin-bottom: 0; }

.rec__hd {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-dim);
  background: var(--panel-2);
}
.rec__bub {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--chip);
  display: grid;
  place-items: center;
  padding: 10px;
}
.rec__bub img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: saturate(1.04);
}
.rec__t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.rec__bd { padding: 16px 18px 18px; }
.rec__lead {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--ink);
  max-width: 68ch;
}

/* ---------- 18. GLANCE (figures as measured callouts) ---------- */

.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--panel);
}
@media (min-width: 720px) {
  .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.glance div {
  padding: 15px 16px 17px;
  border-right: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
}
@media (min-width: 720px) {
  .glance div { border-bottom: 0; }
  .glance div:last-child { border-right: 0; }
}
.glance b {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 7px;
}

/* ---------- 19. CONTACT RAIL ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}
.contact span, .contact a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink);
  padding-right: 13px;
  margin-right: 13px;
  border-right: 1px solid var(--line-dim);
  white-space: nowrap;
  text-decoration: none;
}
.contact span:last-child, .contact a:last-child {
  border-right: 0; margin-right: 0; padding-right: 0;
}
.contact a:hover { color: var(--rev-text); }

/* ---------- 20. PAGE TITLE (sheets 2–5) ---------- */

.pagehead {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
  align-items: end;
  margin-bottom: clamp(22px, 4vw, 34px);
}
@media (min-width: 820px) {
  .pagehead { grid-template-columns: minmax(0, 1fr) auto; }
}
.pagetitle {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.pagetitle small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.pagelead {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 52ch;
  margin: 14px 0 0;
}

/* a label carrying a URL or a long string: mono, tracked, but never uppercased */
.lbl--plain { text-transform: none; letter-spacing: 0.02em; font-size: 0.75rem; }
