/* Mr Sauber, the headline motion (js/textfx.js). The script splits a headline into lines and words and moves them;
   this file only says what each layer is. Per headline (or for the whole page): --tfx-ink, --tfx-bar, --tfx-on (the
   colours), --tfx-pad-x (the bars' side room; with the inset, also how far the text sits in from the column). */
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

.tfx { --tfx-ink: #0D3B66; --tfx-bar: #0D3B66; --tfx-on: #F7F9FB; --tfx-gold: #E5A93B; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* the bars' outer edge on the column: the text sits in by their side room, so stacked headlines of any size line up */
.tfx--inset { padding-inline: var(--tfx-pad-x, .2em); }
/* until the script has split it: the words appear by flying in, never before. If the script never runs (scripts off,
   the module missing), the plain headline shows after 3 s anyway; the script itself splits after 2.5 s at the latest */
.tfx--wait { visibility: hidden; animation: tfx-wait 0s 3s forwards; }
@keyframes tfx-wait { to { visibility: visible; } }
.tfx__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* what screen readers read */
/* 1em high and as wide as the bars' side room: the script reads both, and splits again when either changes */
.tfx__probe { position: absolute; left: 0; top: 0; width: var(--tfx-pad-x, .2em); height: 1em; visibility: hidden; pointer-events: none; }

/* one block per line, as the text was laid out; its height (line-height, set by the script) is the bar plus the gap */
.tfx__line { display: block; position: relative; white-space: nowrap; }
.tfx__w, .tfx__c { display: inline-block; }
.tfx__w { color: var(--tfx-ink); visibility: hidden; transform-origin: 50% 58%; pointer-events: none; }
.tfx__base { display: inline-block; width: 0; height: 0; }   /* sits on the baseline while the script measures */

/* The turned line: a navy bar and the words again in light, seen through a window whose right edge is the turning edge;
   a fine gold line rides on that edge, over the bar only. Every layer is shown with visibility: inherit (never
   visible), so a hidden ancestor still hides it. */
.tfx__win, .tfx__eclip, .tfx__gclip, .tfx__sclip { position: absolute; overflow: hidden; visibility: hidden; pointer-events: none; }
.tfx__win, .tfx__rim, .tfx__gband, .tfx__gin { transform-origin: 0 0; }
.tfx__in, .tfx__gin { position: absolute; left: 0; top: 0; }
.tfx__bar { position: absolute; background: var(--tfx-bar); }
.tfx__copy, .tfx__gcopy { position: absolute; left: 0; top: 0; display: block; white-space: nowrap; color: var(--tfx-on); }
.tfx__rim { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tfx-gold); }

/* The shine: a band of light as tall as the bar, leaning like the edge, that sweeps every bar once the headline has
   turned. A soft bloom lights the navy around it; in its core the white letters flare - pure white, with a glow that
   follows their shapes onto the navy. Each bar sees it through a clip of its own: on the light page around and between
   the bars a white light would not read as light, only as a smudge. */
.tfx__gband { position: absolute; left: 0; top: 0; bottom: 0; }
.tfx__bloom, .tfx__gmask { position: absolute; inset: 0; }
/* the bloom: a narrow bright streak (the glint itself) in a wide soft sheen */
.tfx__bloom { background:
  linear-gradient(90deg, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, .3) 49%, rgba(255, 255, 255, .3) 51%, rgba(255, 255, 255, 0) 57%),
  linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .025) 18%, rgba(255, 255, 255, .08) 33%, rgba(255, 255, 255, .15) 50%,
    rgba(255, 255, 255, .08) 67%, rgba(255, 255, 255, .025) 82%, rgba(255, 255, 255, 0)); }
.tfx__gmask { -webkit-mask-image: linear-gradient(90deg, transparent 29%, #000 46%, #000 54%, transparent 71%); mask-image: linear-gradient(90deg, transparent 29%, #000 46%, #000 54%, transparent 71%); }
.tfx__gcopy { color: #FFFFFF; text-shadow: 0 0 .02em #FFFFFF, 0 0 .08em rgba(255, 255, 255, .85), 0 0 .24em rgba(255, 255, 255, .4); }

/* The star: the logo's four points in its gold, a warm white heart and a soft gold glow, on the last bar only */
.tfx__star { position: absolute; background: radial-gradient(closest-side, rgba(244, 196, 104, .55), rgba(229, 169, 59, .2) 42%, rgba(229, 169, 59, 0)); }
.tfx__star svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tfx__star path { fill: var(--tfx-gold); }
.tfx__star circle { fill: #FFF4DA; }
