/* The blue field and its reflection match the Form 230 invitation. */
:root {
  --ur-surface-red-glow: #d8324e;
  --ur-surface-red-light: #c22440;
  --ur-surface-red: #a51631;
  --ur-surface-red-deep: #7d112b;
  --ur-surface-red-shadow: #501022;
  --ur-surface-blue-glow: #264b84;
  --ur-surface-blue-light: #123263;
  --ur-surface-blue: #102d5b;
  --ur-surface-blue-deep: #0a1d37;
  --ur-surface-blue-shadow: #06152d;
  --ur-surface-angle: 111deg;
  --ur-lacquer: linear-gradient(174deg, rgb(255 255 255 / .15), rgb(255 255 255 / .025) 28%, transparent 43%, rgb(0 0 0 / .09));
  --ur-page-gloss: linear-gradient(150deg, transparent 12%, rgb(255 255 255 / .015) 28%, rgb(255 255 255 / .042) 38%, transparent 54%);
  --ur-red-field: radial-gradient(ellipse at 74% 28%, var(--ur-surface-red-glow), var(--ur-surface-red-light) 23%, var(--ur-surface-red) 47%, var(--ur-surface-red-deep) 72%, var(--ur-surface-red-shadow));
  --ur-blue-lighting: radial-gradient(ellipse at 85% 6%,rgb(38 75 132 / .55),transparent 60%);
  --ur-blue-field: linear-gradient(111deg, var(--ur-surface-blue-shadow) 0%, var(--ur-surface-blue-deep) 48%, var(--ur-surface-blue-light) 90%);
}
body {
  /* Keep a sliver of both club colours at either end of the scroll sweep. */
  --ur-action-edge: calc(16% + .68 * var(--ur-palette-edge, 50%));
  --ur-button-field: linear-gradient(var(--ur-surface-angle),
    var(--ur-surface-red-deep), var(--ur-surface-red) calc(var(--ur-action-edge) * .55),
    var(--ur-surface-red-light) var(--ur-action-edge), var(--ur-surface-blue-light) var(--ur-action-edge),
    var(--ur-surface-blue) calc(50% + var(--ur-action-edge) * .5), var(--ur-surface-blue-deep));
}
@media screen {
  body#ur-home.ur-flow.ur-concept-d {
    --poster-red-field: var(--ur-red-field);
    --poster-blue-field: var(--ur-blue-field);
    --poster-blue: var(--ur-surface-blue-deep);
    background: var(--ur-blue-lighting) fixed, var(--poster-blue-fixed, var(--ur-blue-field) fixed var(--poster-blue));
  }
  body#ur-home.ur-distance-palette #site-header {
    background: var(--ur-blue-lighting) left top / 100vw var(--ur-palette-viewport,100vh), var(--poster-blue-header, var(--ur-blue-field) left top / 100vw var(--ur-palette-viewport,100vh) var(--poster-blue)) !important;
  }
  body#ur-home.ur-distance-palette::before,
  body#ur-home.ur-distance-palette #site-header::before {
    background: var(--ur-page-gloss) left top / 100vw var(--ur-palette-viewport,100vh), var(--ur-red-field) left top / 100vw var(--ur-palette-viewport,100vh) no-repeat;
  }
  body.ur-public-palette > .ur-public-palette-field { background: var(--ur-blue-lighting), var(--ur-blue-field); }
  body.ur-public-palette > .ur-public-palette-field > span { background: var(--ur-page-gloss), var(--ur-red-field); }
  body.ur-public-palette { --ur-distance-mask: linear-gradient(var(--ur-surface-angle), #000 var(--ur-palette-edge,0%), transparent var(--ur-palette-edge,0%)); }
  body.ur-public-palette:has(main) #site-header,
  body.ur-public-palette:has(main) #site-header.is-scrolled:not(.over-hero) {
    isolation: isolate;
    background: var(--ur-blue-lighting) left top / 100vw var(--ur-palette-viewport,100vh), var(--ur-blue-field) left top / 100vw var(--ur-palette-viewport,100vh) no-repeat var(--ur-surface-blue-deep) !important;
  }
  body.ur-public-palette:has(main) #site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: var(--ur-page-gloss) left top / 100vw var(--ur-palette-viewport,100vh), var(--ur-red-field) left top / 100vw var(--ur-palette-viewport,100vh) no-repeat;
    -webkit-mask: var(--ur-distance-mask) left top / 100vw var(--ur-palette-viewport,100vh) no-repeat;
    mask: var(--ur-distance-mask) left top / 100vw var(--ur-palette-viewport,100vh) no-repeat;
  }
  body:is(.ur-distance-palette,.ur-public-palette) #site-header {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 -1px 0 rgb(255 255 255 / .19), 0 3px 14px rgb(0 0 0 / .16);
  }
  body.ur-surface-only:has(#site-header) header#site-header {
    background: var(--ur-lacquer), var(--ur-button-field) var(--ur-surface-blue-deep) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .24);
  }
  body:has(#site-header) footer#urFooter,
  .ur-tax-paper .site-foot {
    background: var(--ur-blue-lighting), var(--ur-blue-field) var(--ur-surface-blue-deep) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .16);
  }
  body:has(#site-header) footer#urFooter > .rail {
    background: var(--ur-surface-blue-deep);
    box-shadow: inset 0 -1px 0 rgb(255 255 255 / .12);
  }
  body:has(#site-header) main :is(.lg-btn,.ura-share-btn) {
    background: var(--ur-lacquer), var(--ur-button-field) var(--ur-surface-blue-deep) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .22);
  }
  .ur-tax-paper .mast, .ur-tax-paper .hero {
    background: radial-gradient(ellipse at 70% 18%, #fffdf8, var(--paper) 55%, #e9e2d7);
  }
  .ur-tax-paper #taxform .action {
    color: white;
    background: var(--ur-lacquer), var(--ur-button-field) var(--ur-surface-blue-deep);
    border-color: var(--ur-surface-blue-deep);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .24);
  }
}
@media (prefers-reduced-motion: reduce) {
  body { --ur-action-edge: 50%; }
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/brand/ur-prolog-barlow.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@media screen {
  body footer#urFooter .kicker,
  .ur-tax-paper .site-foot .motto span {
    color: #b9dcff;
    font-family: "Jost", system-ui, sans-serif;
    font-style: normal;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .22em;
    padding-inline-start: .22em;
    text-shadow: 0 1px 3px #0b2554;
  }
  body footer#urFooter .kicker { font-size: clamp(14px, min(3.8vw, 2.8vh), 25px); }
  .ur-tax-paper .site-foot .motto span { font-size: clamp(.7rem, 1.8vw, 1.2rem); }
  body footer#urFooter .big,
  .ur-tax-paper .site-foot .motto strong {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    color: #fa3946;
    -webkit-text-stroke: clamp(1px, .024em, 3px) #94c6ff;
    paint-order: stroke fill;
    letter-spacing: .025em;
    line-height: .98;
    text-shadow: 0 .035em .045em #061633;
  }
  body footer#urFooter .big { font-size: clamp(48px, min(24vw, 16vh), 178px); }
}
@media screen and (prefers-reduced-motion: reduce) {
  body footer#urFooter .big .ch { opacity: 1; transform: none; animation: none; }
}

/* One stationary blue surface. Only the red plane moves, on the native scroll timeline. */
@media screen {
  body[data-ur-sweep]:is(.ur-public-palette,#ur-home.ur-flow.ur-concept-d) {
    isolation:isolate;
    background:var(--ur-surface-blue) !important;
    animation:none !important;
  }
  body[data-ur-sweep]#ur-home.ur-flow.ur-concept-d::before,
  body[data-ur-sweep]:is(#ur-home,.ur-public-palette,.ur-surface-only) #site-header::before {
    content:none !important;
    animation:none !important;
  }
  html body[data-ur-sweep]:is(#ur-home,.ur-public-palette,.ur-surface-only) header#site-header,
  html body[data-ur-sweep]:is(#ur-home,.ur-public-palette,.ur-surface-only) header#site-header.is-scrolled {
    isolation:isolate;
    background:var(--ur-surface-blue) !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  .ur-colour-field {
    display:block;
    overflow:hidden;
    pointer-events:none;
    z-index:-1;
    background:var(--ur-blue-lighting) left top / 100vw 100vh no-repeat,
      var(--ur-blue-field) left top / 100vw 100vh no-repeat var(--ur-surface-blue);
  }
  .ur-colour-page {position:fixed;inset:0;contain:strict;}
  .ur-colour-header {position:absolute;inset:0;}
  .ur-colour-field > i {
    position:absolute;left:0;top:0;
    display:block;height:100vh;width:calc(100vw + 38.4vh);
    background:var(--ur-page-gloss),var(--ur-red-field);
    clip-path:polygon(0 0,100% 0,calc(100% - 38.4vh) 100%,0 100%);
    transform:translate3d(-100%,0,0);
  }
  .ur-colour-watermark::after {
    position:absolute;content:"";inset:0;opacity:.035;
    background:url('/assets/brand/ur-crest-white.png') right 5vw top 15vh / min(32vw,420px) auto repeat-y;
  }
  .ur-swept-action {position:relative;isolation:isolate;}
  .ur-colour-action {position:absolute;inset:0;border-radius:inherit;background:var(--ur-lacquer),var(--ur-blue-lighting),var(--ur-blue-field);}
  .ur-colour-action > i {width:125%;height:100%;background:var(--ur-lacquer),var(--ur-red-field);clip-path:polygon(0 0,100% 0,calc(100% - 1.4rem) 100%,0 100%);transform:translate3d(-82%,0,0);}
  body[data-ur-sweep]#ur-home.ur-flow.ur-concept-d main.page > .section::before,
  body[data-ur-sweep]#ur-home.ur-flow.ur-concept-d main.page :is(.ur-mag-head,.ur-mag-card,.ur-comm-points li,.ur-comm-letter,.ur-news-card) {animation:none;}
}
@media screen and (prefers-reduced-motion:no-preference) {
  /* On older engines the compositor fills the intervals between wheel or touch samples. */
  body[data-ur-sweep="frames"] .ur-colour-field > i {transition:transform 85ms linear;}
}
