/* ==============================================
 Duferco Dev - site styles
 =============================================== */

/* Archivo (SIL Open Font License), served from this site so no visitor data goes to third parties */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand colors (from the logo) */
  --rust: #994822;
  --copper: #CA5E28;
  --orange: #F47421;
  --signal: #ff7300;
  --graphite: #404040;

  --ink: #404040;
  --ink-soft: #66656d;
  --paper: #ffffff;
  --mist: #f5f5fa;
  --rule: #e3e2ea;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--orange);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--graphite);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
}

/* ----------------------------------------------
 Buttons
 ---------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95em 1.6em;
  border: 2px solid var(--graphite);
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.1;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.btn-primary {
  background: var(--graphite);
  color: #fff;
}
.btn-primary::before {
  background: var(--rust);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--rust);
}
.btn-ghost {
  background: transparent;
  color: var(--graphite);
}
.btn-ghost::before {
  background: var(--graphite);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #fff;
}
.btn-small {
  padding: .7em 1.2em;
  font-size: .9375rem;
}

/* ----------------------------------------------
 Header
 ---------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 var(--rule);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.brand svg {
  width: auto;
  height: 38px;
  aspect-ratio: 889 / 316;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}
.nav-link {
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left bottom / 0 2px;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease-out);
}
.nav-link:hover,
.nav-link:focus-visible {
  background-size: 100% 2px;
}
/* Language switch: the current language is marked, the other one is a link */
.lang-switch {
  display: flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .03em;
}
.lang-switch > * {
  padding: .4rem .55rem;
}
.lang-switch > * + * {
  border-left: 1px solid var(--rule);
}
.lang-current {
  color: var(--graphite);
  text-decoration: underline 2px var(--orange);
  text-underline-offset: .45em;
}
.lang-link {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .25s;
}
.lang-link:hover,
.lang-link:focus-visible {
  color: var(--rust);
}

/* ----------------------------------------------
 Hero + journey (stacked layout: mobile, tablet, reduced motion)
 ---------------------------------------------- */
.journey {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
}
.stage {
  display: flex;
  flex-direction: column;
}
.hero-copy {
  padding: 0 var(--gutter);
  max-width: 44rem;
}
.mark {
  width: auto;
  height: clamp(84px, 12vh, 132px);
  aspect-ratio: 316 / 639;
  overflow: visible;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.mark .poly {
  transform-box: fill-box;
  transform-origin: center;
  translate: calc(var(--px, 0) * (var(--i) + 2) * 1.6px) calc(var(--py, 0) * (var(--i) + 2) * 1.6px);
  transition: translate .6s var(--ease-out);
}
.hero-title {
  margin: 0;
  font-size: clamp(2.75rem, 5.3vw, 6.25rem);
  font-weight: 820;
  font-stretch: 125%;
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--graphite);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .04em;
}
.hero-title .line > span {
  display: inline-block;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(1.75rem, 5vh, 3rem);
}

.panel {
  position: relative;
  margin-top: clamp(2.5rem, 7vw, 4rem);
  aspect-ratio: 4 / 3;
}
.panel-intro {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.road {
  width: 100%;
  height: 100%;
}
.road-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(41, 26, 14, .62) 0%, rgba(41, 26, 14, 0) 38%),
    linear-gradient(0deg, rgba(41, 26, 14, .35) 0%, rgba(41, 26, 14, 0) 30%);
  opacity: 0;
}

.scroll-hint {
  display: none;
}

/* ----------------------------------------------
 Hero + journey as a pinned scroll scene (desktop)
 ---------------------------------------------- */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .journey {
    height: 180vh;
    padding-top: 0;
  }
  .js .stage {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  .js .hero-copy {
    position: absolute;
    z-index: 3;
    top: calc(50% + var(--header-h) / 2);
    left: 0;
    width: min(46vw, 46rem);
    padding: 0 0 0 var(--gutter);
    transform: translateY(-50%) translateY(calc(var(--c, 0) * -6vh));
    opacity: calc(1 - var(--c, 0));
  }
  .js .panel {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    aspect-ratio: auto;
    clip-path: polygon(var(--x1, 52%) var(--y1, 15%), var(--x2, 97%) var(--y1, 15%), var(--x2, 97%) var(--y2, 90%), var(--x3, 45%) var(--y2, 90%));
  }
  .js .road-shade {
    opacity: var(--e, 0);
  }
  .js .scroll-hint {
    position: absolute;
    z-index: 3;
    left: var(--gutter);
    bottom: 2.25rem;
    display: flex;
    align-items: center;
    margin: 0;
    opacity: calc(1 - var(--c, 0) * 3);
  }
  .js .scroll-hint::before {
    content: "";
    width: 2px;
    height: 2.5rem;
    background: linear-gradient(var(--orange), var(--orange)) no-repeat center top / 100% 40%, var(--rule);
    animation: hint 2s var(--ease-in-out) infinite;
  }
}

/* ----------------------------------------------
 About
 ---------------------------------------------- */
.about {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
  background: var(--graphite);
  color: #fff;
  isolation: isolate;
}
.about ::selection {
  background: var(--orange);
  color: var(--graphite);
}

/* Lattice of small triangles, drawn by js/site.js */
.lattice {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tri {
  fill: var(--orange);
  fill-opacity: 0;
  stroke: rgba(255, 255, 255, .075);
  stroke-width: 1;
  transition: fill-opacity 1.4s var(--ease-out);
}
.tri.is-lit {
  fill-opacity: .4;
  transition-duration: .12s;
}
.tri-mark {
  stroke: rgba(64, 64, 64, .45);
  stroke-width: .75;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 1s var(--ease-out), opacity .7s var(--ease-out), filter .5s;
}
.tri-mark.is-lit {
  filter: brightness(1.3);
  transition-duration: 1s, .7s, .12s;
}

/* Kinetic statement */
/* "Continue the trip" lands here, with a little of the graphite above the text */
.kinetic {
  scroll-margin-top: clamp(2rem, 5vw, 4rem);
  margin: 0 0 clamp(4rem, 9vw, 7rem);
  font-size: clamp(2.6rem, 5.9vw, 7rem);
  font-weight: 830;
  font-stretch: 125%;
  line-height: .95;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.kinetic-line {
  display: block;
  width: max-content;
  padding: 0 var(--gutter);
  transform: translateX(var(--tx, 0));
  will-change: transform;
}
.kinetic-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
  background: linear-gradient(90deg, var(--orange) var(--fill, 100%), transparent var(--fill, 100%)) no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Copy panel over the lattice */
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.lattice-anchor {
  height: min(78vh, 640px);
}
.about-copy {
  padding: clamp(2rem, 4.5vw, 4rem);
  background: var(--graphite);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.about-title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -.015em;
}
.about-copy p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  line-height: 1.7;
}
.about-copy .about-lead {
  margin-bottom: 1.75rem;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: #fff;
}
.about-copy strong {
  font-weight: 650;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: .14em;
  text-underline-offset: .22em;
}

@media (prefers-reduced-motion: no-preference) {
  .js .tri-mark:not(.is-in) {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.2);
  }
  .js .about-copy [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  }
  .js .about-copy p + p[data-reveal] {
    transition-delay: .15s;
  }
  .js .about-copy strong {
    text-decoration-color: transparent;
    text-underline-offset: .6em;
    transition: text-decoration-color .8s var(--ease-out) .6s, text-underline-offset .8s var(--ease-out) .6s;
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal].is-visible strong {
    text-decoration-color: var(--orange);
    text-underline-offset: .22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kinetic {
    white-space: normal;
  }
  .kinetic-line {
    width: auto;
  }
}

/* ----------------------------------------------
 What we do + Innovation
 ---------------------------------------------- */
.offer {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
}
.offer-title {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--graphite);
}
/* Title on the left, the full logo mark on the right: the service triangles leave from it */
.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.offer-head .offer-title {
  margin: 0;
}
.offer-logo {
  flex: none;
  width: auto;
  height: clamp(3.5rem, 6vw, 5.5rem);
  aspect-ratio: 316 / 639;
}
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  position: relative;
  padding-top: 1.5rem;
}
/* Rule above each service, drawn from the left when the service comes into view */
.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}
/* One triangle of the logo per service, in the four brand oranges */
.service-mark {
  display: block;
  width: 1.1rem;
  height: auto;
  aspect-ratio: 151 / 174;
  margin-bottom: 1.25rem;
  fill: var(--c);
}
.service h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 720;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--graphite);
}
.service p {
  max-width: 40ch;
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
}

.innovation {
  padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem);
}
.innovation-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
}
.innovation .offer-title {
  margin: 0;
}
.innovation-copy {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
}
/* Set by js/site.js: words not yet reached stay light, read words turn dark */
.innovation-copy.is-reading .word {
  color: #c4c2cc;
  transition: color .3s var(--ease-out);
}
.innovation-copy.is-reading .word.is-read {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .js .offer-head [data-reveal]:not(.is-visible),
  .js .innovation [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  .js .offer-head [data-reveal],
  .js .innovation [data-reveal] {
    transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
  }
  /* Services: the rule draws across, the triangle settles on it, then the words rise in */
  .js .service::before {
    transition: transform .7s var(--ease-in-out);
    transition-delay: calc(var(--i) * 120ms);
  }
  .js .service:not(.is-visible)::before {
    transform: scaleX(0);
  }
  .js .service > h3,
  .js .service > p {
    transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--i) * 120ms + 450ms);
  }
  .js .service > p {
    transition-delay: calc(var(--i) * 120ms + 530ms);
  }
  .js .service:not(.is-visible) > h3,
  .js .service:not(.is-visible) > p {
    opacity: 0;
    transform: translateY(1rem);
  }
  /* Without the scroll scene (phones) each triangle turns into place on its own */
  .js .offer:not(.is-traveling) .service-mark {
    transition: opacity .3s var(--ease-out), transform .55s var(--ease-out);
    transition-delay: calc(var(--i) * 120ms + 300ms);
  }
  .js .offer:not(.is-traveling) .service:not(.is-visible) .service-mark {
    opacity: 0;
    transform: rotate(-90deg) scale(.4);
  }
}

@media (max-width: 1099px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 899px) {
  .innovation-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 599px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------------------------------
 Contact
 ---------------------------------------------- */
.contact {
  background: var(--mist);
  overflow: hidden;
}

/* Playground: canvases behind and in front of the title, drawn by js/site.js */
.playground {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(30rem, 82vh, 46rem);
  text-align: center;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shapes-front {
  z-index: 2;
  pointer-events: none;
}
.playground-copy {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
}
.contact-kicker {
  margin: 0 0 .5rem;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--ink-soft);
}
.contact-title {
  position: relative;
  margin: 0;
  padding: .05em 0 .08em;
  overflow: hidden;
  font-size: min(13vw, 11.5rem);
  font-weight: 830;
  font-stretch: 125%;
  line-height: .95;
  letter-spacing: -.025em;
  white-space: nowrap;
  color: var(--graphite);
}
/* Once the letters have risen in they can be pushed around freely */
.contact-title.is-settled {
  overflow: visible;
}
.split-char {
  display: inline-block;
  white-space: pre;
}

/* Contact details: a slim graphite bar between the playground and the footer */
.contact-bar {
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter);
  background: var(--graphite);
  color: #fff;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .25rem clamp(1rem, 2.5vw, 2rem);
}
.contact-item:first-child {
  padding-left: 0;
}
.contact-item + .contact-item {
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.contact-icon {
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.contact-link {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
  transition: text-decoration-color .25s;
}
/* The whole column is the link */
.contact-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.contact-item:hover .contact-link,
.contact-link:focus-visible {
  text-decoration-color: var(--orange);
}
.contact-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 899px) {
  .contact-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-item {
    padding: .9rem 0;
  }
  .contact-item + .contact-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .contact-title .split-char {
    transform: translateY(105%);
    transition: transform .9s var(--ease-out);
    transition-delay: calc(var(--i) * 45ms);
  }
  .js .contact-title.is-visible .split-char {
    transform: none;
  }
}


/* ----------------------------------------------
 Footer
 ---------------------------------------------- */
.site-footer {
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.footer-logo {
  width: 160px;
  height: auto;
  aspect-ratio: 889 / 316;
}
.footer-legal {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.footer-top {
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left bottom / 100% 2px;
  padding-bottom: 2px;
}
.footer-top:hover {
  color: var(--rust);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.footer-links a {
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: .25em;
}

/* ----------------------------------------------
 Policy pages (privacy and cookie)
 ---------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.legal {
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) var(--gutter) clamp(4rem, 8vw, 6rem);
  background: var(--mist);
}
.legal-inner {
  max-width: 52rem;
  margin: 0 auto;
}
.legal-title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--graphite);
}
.legal-subtitle {
  margin: 1rem 0 clamp(2.5rem, 5vw, 3.5rem);
  max-width: 40rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.legal h2 {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d9d7e0;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 750;
  font-stretch: 110%;
  line-height: 1.3;
  color: var(--graphite);
}
.legal h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--rust);
}
.legal p,
.legal li {
  max-width: 46rem;
  line-height: 1.65;
}
.legal p {
  margin: 0 0 1rem;
}
.legal ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.legal li {
  margin-bottom: .5rem;
}
.legal li::marker {
  color: var(--orange);
}
.legal a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.legal a:hover {
  color: var(--graphite);
}
.legal-links {
  columns: 2 14rem;
}
.legal-date {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid #d9d7e0;
  font-weight: 600;
}

.legal-table-wrap {
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid #d9d7e0;
}
.legal-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: .9375rem;
}
.legal-table th,
.legal-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e9e8ef;
}
.legal-table th {
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--graphite);
  background: #efeef4;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-table td p {
  margin: 0 0 .6rem;
  line-height: 1.5;
}
.legal-table td p:last-child {
  margin-bottom: 0;
}
.legal-table td ul {
  margin: .25rem 0 .6rem;
}

/* ----------------------------------------------
 Page-load sequence
 ---------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .mark .poly {
    animation: assemble 1.2s var(--ease-out) both;
    animation-delay: calc(var(--i) * 100ms + 1150ms);
  }
  .js .hero-title .line > span {
    animation: rise 1s var(--ease-out) both;
    animation-delay: calc(var(--i) * 110ms + 850ms);
  }
  .js .hero-actions {
    animation: fade-up .9s var(--ease-out) both 1.3s;
  }
  .js .panel-intro {
    animation: unveil 1.5s var(--ease-in-out) both .45s;
  }
  .js .road {
    animation: settle 2.4s var(--ease-out) both .45s;
  }
  .js .site-header {
    animation: fade-in .8s ease both 1.6s;
  }
}

@keyframes assemble {
  from {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.3);
  }
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes unveil {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes settle {
  from {
    transform: scale(1.18);
  }
}
@keyframes ping {
  0% {
    opacity: .9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}
@keyframes hint {
  0% {
    background-position: center -40%, 0 0;
  }
  100% {
    background-position: center 140%, 0 0;
  }
}

/* ----------------------------------------------
 Responsive
 ---------------------------------------------- */
@media (min-width: 600px) {
  .panel {
    aspect-ratio: 16 / 9;
    margin-left: var(--gutter);
    margin-right: var(--gutter);
  }
}

@media (max-width: 899px) {
  .about-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .lattice-anchor {
    height: min(60vh, 460px);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  /* Policy tables become one card per row, each cell labelled with its column */
  .legal-table {
    min-width: 0;
  }
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .legal-table tr,
  .legal-table td {
    display: block;
  }
  .legal-table tr {
    border-bottom: 1px solid #d9d7e0;
  }
  .legal-table tr:last-child {
    border-bottom: 0;
  }
  .legal-table td {
    border-bottom: 0;
    padding: .75rem 1rem;
  }
  .legal-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .35rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ink-soft);
  }
  body {
    font-size: 1.0625rem;
  }
  .brand svg {
    height: 30px;
  }
  .site-nav .nav-link {
    display: none;
  }
  .kinetic {
    font-size: 9vw;
    white-space: normal;
  }
  .kinetic-line {
    width: auto;
  }
  .about-body {
    padding: 0;
  }
  .about-copy {
    padding: 2rem var(--gutter) 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
