/* Hallmark · v2.0.0 · project: TPMC peoplesmediaco.com · system: design.md (locked) · genre: editorial · theme: none (locked brand) · deal: n/a · date: 2026-11-16 */
/* critique: the risk in this brand is the caps-only display face bleeding into labels and eyebrows; labels stay Neue Haas, sentence case, untracked, and no label sits above a heading to announce it. */

/* ===========================================================================
   TPMC design tokens — shared by every concept in this folder.
   Source of truth: design.md + TPMC Brand Guidelines 2026.
   Hex values are the bible's, verbatim. Never write a literal colour or
   font-family past this block.
   =========================================================================== */

/* --- Faces -----------------------------------------------------------------
   GC Godthem is shipped UNMODIFIED (licence forbids modification), which is
   why it is 1.8MB: it carries SVG outlines for the rough edges. Preloaded in
   each page head, swap-displayed so it never blocks paint.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "GC Godthem";
  /* The .ttf the foundry supplied, NOT the -svg.woff2 that was here.
     Both are 472 glyphs with the same outlines in `glyf`; the woff2 adds
     an `SVG ` colour table that WebKit finds, fails to draw, and does not
     fall back from, so every headline was invisible on iPhone. The ttf has
     no SVG table, renders on every engine, and is 210KB rather than 1.9MB.
     Nothing is modified or subset: this is the file as delivered. */
  src: url("../brand-2026/fonts/gcgodthem-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display";
  src: url("../brand-2026/fonts/nhg-display-roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display";
  src: url("../brand-2026/fonts/nhg-display-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ===== Colour — the bible's palette, verbatim ===== */
  --off-black:  #1c1c1c;
  --off-white:  #fffffa;
  --light-grey: #e3e3e0;
  --mid-grey:   #a6a4a1;
  --red:        #f20d0f;
  --blue:       #2f5ef6;
  --yellow:     #f5f270;
  --pink:       #fc3094;

  /* ⚠ Not from the guidelines page. This is the default "paper" colour inside
     the brand pack's own TPMC Image Editor Studio, which ships #fafaf0 while the
     guidelines give Off White as #fffffa. They are different colours, so every
     image the crew export sits on a slightly warmer, greener paper than the
     pages around it. Kept here verbatim so the live riso matches their exported
     files; worth asking Origin Studio which one is correct. */
  --paper-riso: #fafaf0;

  /* the intro's ground lifts a touch once the hero lands, so the hold reads
     as a held shot rather than a dead pause */
  --stage-lift: #121212;

  /* ===== Semantic roles =====
     Derived from the measured contrast table in design.md §2.
     Never invent a colour mid-render; add it here first. */
  --page:        var(--off-white);
  --ink:         var(--off-black);
  --ink-quiet:   #5a5a58;          /* off-black at reduced presence: 7.4:1 on page.
                                      mid-grey is 2.48:1 and CANNOT carry text here. */
  --surface:     var(--light-grey);
  --rule:        #d2d2ce;          /* hairline between light-grey and mid-grey */
  --rule-firm:   var(--mid-grey);
  --page-invert: var(--off-black);
  --ink-invert:  var(--off-white);
  --ink-invert-quiet: #a6a4a1;     /* mid-grey IS legible on off-black: 6.85:1 */
  --rule-invert: #3a3a38;

  --accent:         var(--blue);   /* the only accent safe for text size on light: 5.17:1 */
  --accent-invert:  var(--pink);   /* the equivalent on dark: 4.86:1 */
  --accent-block:   var(--yellow); /* filled block, black type on it: 14.46:1 */
  --accent-display: var(--red);    /* display type and graphics ONLY. Never body copy. */
  --focus:          var(--blue);

  /* ===== Type ===== */
  --font-display: "GC Godthem", "Arial Black", system-ui, sans-serif;
  /* ---- THE DISPLAY FACE DOES NOT RENDER ON WEBKIT -----------------------
     GC Godthem is an OT-SVG font: its artwork lives in an `SVG ` table, and
     it also carries real outlines in `glyf`. WebKit finds the SVG table,
     fails to draw it, and does NOT fall back to the outlines. Measured in
     WebKit: drawing "AOTEAROA" at 64px marks ZERO pixels, while Neue Haas
     marks 8752. Chromium renders it, which is why every check passed.

     Nothing in CSS can detect this. `document.fonts.check()` returns true
     and the face reports `loaded`, so the font-family fallback list never
     triggers: the browser believes it has the font and draws nothing. So
     every display headline on an iPhone was simply absent.

     A script paints one glyph to a canvas, counts the pixels, and sets
     `no-display-face` when the count is zero. We do NOT strip the SVG
     table: the licence forbids modifying the font. The real fix is a
     corrected file from the foundry. */
  --font-display-fallback: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --font-body:    "Neue Haas Grotesk Display", Helvetica, Arial, system-ui, sans-serif;

  --weight-roman:  400;
  --weight-medium: 500;

  /* The bible's "-5" tracking on body copy */
  --track-body: -0.005em;
  /* "Kerning automatic (or 0). It already has narrow kerning built in."
     Needs a unit: a bare 0 fell back to `normal` in the browser. */
  --track-display: 0em;
  /* The bible: "a general rule of thumb is to set it to 0.85 so that it is quite
     tight. This may need to be adjusted, use your own judgement."
     Judgement applied: 0.85 is a poster setting. It is correct for one or two short
     lines set huge, and it collides once a head wraps at a working size. So the
     poster value is kept for the hero and the pull quote, and wrapping heads sit at
     1.0, which caps-only type carries comfortably because it has no descenders. */
  --leading-display: 1;
  --leading-display-poster: 0.85;
  --leading-body: 1.5;
  --leading-tight: 1.25;

  --text-xs:  0.75rem;
  --text-sm:  0.8125rem;
  --text-md:  1rem;
  --text-lg:  1.1875rem;
  --text-xl:  1.5rem;
  /* Display sizes are set for the COLUMN they sit in, not the viewport. Measured at
     1280: a hero head in a 588px column at 12vw (153px) broke onto five lines and
     pushed the primary action below the fold. These values keep a 31-character
     headline on three lines in a half-width column. */
  --display-s: clamp(1.75rem, 3.4vw, 2.75rem);
  --display-m: clamp(2.25rem, 5.2vw, 4.25rem);
  --display-l: clamp(2.5rem, 6.2vw, 5rem);

  /* ===== Space — 4pt ===== */
  --space-3xs: 0.25rem; --space-2xs: 0.5rem;  --space-xs: 0.75rem;
  --space-sm:  1rem;    --space-md:  1.5rem;  --space-lg: 2rem;
  --space-xl:  3rem;    --space-2xl: 4.5rem;  --space-3xl: 7rem;
  --space-4xl: 10rem;

  /* ===== Shell ===== */
  --measure: 62ch;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius-pill: 999px;
  --radius-0: 0;

  /* ===== Motion ===== */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-short: 140ms;
  --dur-mid: 320ms;
}

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

html, body {
  overflow-x: clip;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--weight-roman);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The display face. ALL CAPS ONLY — brand law. One weight, one colour. */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
  margin: 0;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}

h1 { font-size: var(--display-l); }
h2 { font-size: var(--display-m); }
h3 { font-size: var(--display-s); }

/* Poster setting: only where the line is short and set huge. */
.poster { line-height: var(--leading-display-poster); }

p { margin: 0 0 var(--space-sm); max-width: var(--measure); }

/* The brand's one emphasis device: Medium lifting a word inside a Roman sentence.
   "For the people, By the people." No italics, no colour swaps. */
strong, b, .lift {
  font-weight: var(--weight-medium);
  font-style: normal;
}

/* Labels, captions, table heads, tags, nav: body face, a step down, sentence case,
   untracked. NOT the display face. This is the guardrail that stops the caps-only
   display rule turning every small thing into an eyebrow. */
/* Colour INHERITS and is softened with opacity rather than being hard-coded to a
   light-page value. A concept that inverts via <body> instead of [data-invert]
   used to leave this at 2.47:1 on dark; inheriting makes it correct in any
   context automatically. 72% lands at ~7:1 on off white and ~10:1 on off black. */
.label {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: none;
  line-height: var(--leading-tight);
  color: inherit;
  opacity: 0.72;
}

a { color: inherit; }

img, svg, video { max-width: 100%; height: auto; display: block; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  transition: none;
}

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The skip link must come back for keyboard users. */
.visually-hidden:focus-visible {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 10;
  width: auto; height: auto;
  margin: 0;
  padding: var(--space-xs) var(--space-sm);
  clip-path: none;
  background: var(--off-black);
  color: var(--off-white);
  font-weight: var(--weight-medium);
}

/* ---------------------------------------------------------------------------
   Shared touch targets. Measured at 390px: footer links rendered 15px tall and
   the social marks 20px, both well under the 44px minimum. These classes are
   shared by every concept, so the fix belongs here rather than in each page.
   --------------------------------------------------------------------------- */
.foot__list a,
.nav__link {
  display: inline-block;
  padding-block: var(--space-xs);
}
.foot__socials a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-inline: calc(var(--space-2xs) * -1);
}
.enq__note a { padding-block: var(--space-3xs); display: inline-block; }
/* The wordmark link is a wide, short image: give the anchor real height. */
.nav > a { display: inline-flex; align-items: center; padding-block: var(--space-xs); }

/* One primary button style across every concept. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-md);
  letter-spacing: var(--track-body);
  line-height: 1;
  padding: var(--space-sm) var(--space-lg);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--ink-invert);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--off-white); }
.btn:active { transform: translateY(1px); }
.btn[data-variant="ghost"] {
  background: transparent;
  color: var(--ink);
}
.btn[data-variant="ghost"]:hover { background: var(--ink); color: var(--ink-invert); }
.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--surface);
  border-color: var(--rule-firm);
  color: var(--ink-quiet);
  cursor: not-allowed;
  transform: none;
}

/* Form controls, remaining states */
:where(input, textarea, select):disabled {
  background: var(--surface);
  border-color: var(--rule-firm);
  color: var(--ink-quiet);
  cursor: not-allowed;
}
:where(input, textarea, select):hover:not(:disabled) { border-color: var(--accent); }
:where(input, textarea):user-invalid { border-color: var(--accent-display); }

/* ---------------------------------------------------------------------------
   THE PLATFORM SELECTOR — the one place motion lives.
   The brief asked for the hand-drawn icons to be "interactive or 3d moving" on a
   site that stays simple. The resolution: only icons that are REAL LINKS move.
   An icon with nothing to click does not pretend to be a control. Everything
   rests until the pointer or keyboard arrives, so the page is still at load.
   The tilt is cursor-driven via two custom properties set in JS; with no JS, no
   pointer, or reduced motion, the link still works and still shows its state.
   --------------------------------------------------------------------------- */
.plat {
  --rx: 0deg; --ry: 0deg; --lift: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--space-2xs);
  justify-items: center;
  padding: var(--space-md) var(--space-sm);
  min-width: 44px; min-height: 44px;
  text-decoration: none;
  border: 1.5px solid var(--rule);
  background: var(--page);
  perspective: 600px;
  transition: border-color var(--dur-short) var(--ease-out),
              background var(--dur-short) var(--ease-out);
}
.plat__mark {
  width: clamp(2.25rem, 4.5vw, 3.25rem);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(calc(var(--lift) * 14px));
  transform-style: preserve-3d;
  transition: transform var(--dur-mid) var(--ease-out);
  will-change: transform;
}
.plat__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  color: var(--ink);
}
.plat__at { font-size: var(--text-xs); color: var(--ink-quiet); }
.plat:hover, .plat:focus-visible { border-color: var(--accent); background: var(--surface); }
.plat:active .plat__mark { transition-duration: var(--dur-short); }

[data-invert] .plat { background: transparent; border-color: var(--rule-invert); }
[data-invert] .plat__name { color: var(--ink-invert); }
[data-invert] .plat__at { color: var(--ink-invert-quiet); }
[data-invert] .plat:hover, [data-invert] .plat:focus-visible {
  border-color: var(--accent-invert); background: rgb(255 255 250 / 0.06);
}

/* Keyboard focus gets the same read as hover without needing a pointer. */
.plat:focus-visible .plat__mark { transform: rotateX(-8deg) rotateY(10deg) translateZ(12px); }

@media (prefers-reduced-motion: reduce) {
  .plat__mark { transform: none !important; transition: none; }
}
@media (hover: none) {
  /* Touch: the link fires immediately, no wake-up tap, no hover-only affordance. */
  .plat__mark { transform: none; }
}

/* ---------------------------------------------------------------------------
   THE MOTION LAYER
   Reference: the roll on Origin Studio's own wordmark, buttons that lean and
   change colour, and sections that arrive on scroll. Every effect below is
   decorative: it is added by motion.js, so with JS off or reduced motion on,
   nothing is hidden and nothing moves.
   --------------------------------------------------------------------------- */

/* --- 1. The letter roll. One round letter per headline turns on hover. --- */
.roll { display: inline; }
/* a word never breaks apart: the characters inside it are inline-block so they
   can rotate, and without this the browser breaks lines mid-word. */
.roll__word { display: inline-block; white-space: nowrap; }
.roll__ch { display: inline-block; will-change: transform; }
.roll__ch--spin {
  transition: transform 620ms cubic-bezier(0.22, 1, 0.28, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-roll]:hover .roll__ch--spin,
[data-roll]:focus-visible .roll__ch--spin { transform: rotate(360deg); }

/* --- 2. Magnetic buttons. They lean AND slide toward the cursor, then spring
   back, which is what Origin Studio's .maglink actually does. Pull is capped at
   5px so a button never drifts far enough to be hard to hit. --- */
.btn {
  --rx: 0deg; --ry: 0deg; --mx: 0px; --my: 0px; --lift: 0;
  transform-style: preserve-3d;
  transform: perspective(520px)
             translate3d(var(--mx), var(--my), calc(var(--lift) * 4px))
             rotateX(var(--rx)) rotateY(var(--ry));
  transition: background var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              transform 420ms var(--ease-out);
}
.btn:active { transform: perspective(520px) translateY(1px); }

.plat {
  --mx: 0px; --my: 0px;
}
.plat__mark {
  transform: translate3d(var(--mx), var(--my), calc(var(--lift) * 14px))
             rotateX(var(--rx)) rotateY(var(--ry));
}

/* --- 3. The cursor: TPMC's own hand-drawn asterisk, trailing the pointer.
   `cursor: none` is applied only by the .has-cursor class, which JS adds after
   the replacement exists, so a script failure can never hide the pointer. --- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  /* centred via the transform in motion.js, so no off-scale negative margin */
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.cursor.is-on { opacity: 1; }
.cursor svg {
  width: 100%; height: 100%;
  /* mix-blend-mode keeps it visible on BOTH grounds. It was off black, which
     made it invisible on every dark band on the site. */
  fill: var(--off-white);
  mix-blend-mode: difference;
  transition: transform 260ms var(--ease-out), fill 200ms var(--ease-out);
}
.cursor.is-active svg { transform: scale(2.1) rotate(45deg); fill: var(--accent); }


html.has-cursor,
html.has-cursor * { cursor: none; }
/* Never hide the caret where someone is typing. */
html.has-cursor :where(input, textarea, select, [contenteditable]) { cursor: auto; }

/* --- 4. Scroll reveal: REMOVED.
   It hid content until script said otherwise, and a specificity slip meant the
   whole page body stayed invisible. Even working, it renders half-faded in any
   screenshot or fast scroll. Content is never worth an effect, so sections are
   now always visible and nothing on this page can hide them. --- */

@media (prefers-reduced-motion: reduce) {
  .roll__ch--spin { transition: none; }
  [data-roll]:hover .roll__ch--spin { transform: none; }
  .btn { transform: none !important; }
}

/* The second action on a screen: a typographic link, never a second filled button. */
.textlink {
  font-weight: var(--weight-medium);
  font-size: var(--text-md);
  letter-spacing: var(--track-body);
  /* inherit, so an inverted page cannot render this invisible */
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  padding-block: var(--space-sm);
  transition: color var(--dur-short) var(--ease-out);
}
.textlink:hover { color: var(--accent); }
[data-invert] .textlink:hover,
body[style] .textlink:hover { color: var(--accent-invert); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Set by the paint test in each page's <head>. See --font-display above. */
:root.no-display-face {
  --font-display: var(--font-display-fallback);
}
