/* Griffon Agrotech website
   Forest-green and off-white bands on a 12-column grid up to 1520px. One typeface, Archivo, used at three widths:
   wide and heavy for headlines, normal for reading, condensed caps for labels.
   Orange is the main action and a few key accents; leaf green is links and ticks. */

@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;
}
@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+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}


/* One family (Archivo, normal width), one scale: 14 / 17 / 20 / 28 / 56.
   Headings are sentence case at weight 600; nothing is set in capitals.
   Orange is the primary action only. Green is for links and the closing band. */

:root {
  --paper: #f5f5f0;
  --white: #ffffff;
  --ink: #15201a;
  --ink-2: #55625a;
  --line: #dcdfd8;
  --line-strong: #b3bab1;
  --deep: #143524;
  --on-deep: #f1f5f1;
  --on-deep-2: #bccbc0;
  --orange: #e8771c;
  --orange-hover: #f08a35;
  --leaf: #23682b;
  --leaf-light: #a5dcab;
  --error: #b3261e;
  --focus: #1f6fd0;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);

  --gutter: clamp(20px, 4vw, 64px);
  --col: clamp(16px, 2vw, 32px);
  --row: clamp(48px, 5.5vw, 88px);
  --radius: 6px;
  --header: 72px;
}
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }
}
@media (max-width: 1023px) {
  :root {
    --header: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}
html:has(dialog[open]) {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
h3 {
  font-size: var(--fs-body);
  line-height: 1.35;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: calc(1440px + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  z-index: 40;
}
.skip:focus {
  top: 12px;
}

.lede {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.btn-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-quiet:hover {
  background: var(--paper);
  border-color: var(--ink);
}
.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  min-height: var(--header);
}
.brand {
  flex: none;
}
.brand img {
  height: 40px;
  width: auto;
}
.nav {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  margin-left: auto;
}
.nav a {
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.4em;
}
.header-phone {
  display: none;
  color: var(--ink);
  font-size: 0.9688rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover {
  text-decoration: underline;
}
.header-cta {
  flex: none;
}
.menu {
  display: none;
  position: static;
}
.menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 7px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.15s;
}
.menu[open] summary span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.menu[open] summary span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
  padding: 4px var(--gutter) 16px;
  box-shadow: 0 16px 24px -16px rgba(21, 32, 26, 0.3);
}
.menu-panel a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.menu-panel a:last-child {
  border-bottom: 0;
}
@media (min-width: 1280px) {
  .header-phone {
    display: inline;
  }
}
@media (max-width: 1023px) {
  .nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
  .menu {
    display: block;
  }
  .brand img {
    height: 36px;
  }
}
@media (max-width: 479px) {
  .header-cta {
    display: none;
  }
  .menu {
    margin-left: auto;
  }
  .brand img {
    height: 34px;
  }
}

/* Home: the hero */

.hero {
  padding: clamp(40px, 5vw, 80px) 0 var(--row);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  row-gap: 40px;
  align-items: start;
}
.hero-copy {
  grid-column: 1 / span 5;
  padding-top: clamp(0px, 2vw, 32px);
}
.hero-copy .lede {
  margin-top: 20px;
  max-width: 30em;
}
.hero-copy .actions {
  margin-top: 28px;
}
.hero-call {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.hero-call a {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-films {
  grid-column: 7 / -1;
  min-width: 0;
}
.hero-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col);
  margin: var(--col) 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1099px) {
  .hero-copy,
  .hero-films {
    grid-column: 1 / -1;
  }
  .hero-copy {
    padding-top: 0;
  }
}

/* Demo film: a still, a play mark, and the name underneath */

.film {
  display: block;
  color: inherit;
  text-decoration: none;
}
.film-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(21, 32, 26, 0.86);
}
.play::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 10px;
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.film-lead .play {
  left: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
}
.film-lead .play::after {
  left: 19px;
  top: 15px;
  border-left-width: 14px;
  border-top-width: 9px;
  border-bottom-width: 9px;
}
.film-name {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.film:hover .film-name {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
.film:hover .play,
.film:focus-visible .play {
  background: var(--orange);
}
.film:hover .play::after,
.film:focus-visible .play::after {
  border-left-color: var(--ink);
}

/* Home: rows. Heading on the left, content on the right. */

.row {
  padding: var(--row) 0;
}
.row + .row {
  padding-top: 0;
}
.row-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  row-gap: 24px;
  align-items: start;
}
.row-head {
  grid-column: 1 / span 4;
  max-width: 22em;
}
.row-head p {
  margin-top: 12px;
  color: var(--ink-2);
}
.row-body {
  grid-column: 5 / -1;
  min-width: 0;
}
.row-body > * + * {
  margin-top: 28px;
}
.row-body p {
  max-width: 40em;
}
@media (max-width: 1099px) {
  .row-head,
  .row-body {
    grid-column: 1 / -1;
  }
}

/* Three steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px var(--col);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding-top: 16px;
  border-top: 1.5px solid var(--ink);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
}
/* The numeral sits beside the step: Archivo at its widest and lightest, three lines of text tall */
.steps li::before {
  content: counter(step);
  margin-top: -0.06em;
  font-size: 3.5rem;
  font-weight: 250;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--leaf);
  font-variant-numeric: lining-nums;
  min-width: 2.5rem;
}
@media (max-width: 699px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.note {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
}
.note strong {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 479px) {
  .note strong {
    white-space: normal;
  }
}

/* The cycle as a 48-hour dial. The only timing we state is that go-live falls between hour 24 and hour 48.
   With JS the two arcs draw once, in order, when the dial scrolls into view. */

.cycle {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}
.dial {
  flex: none;
  width: clamp(180px, 16vw, 232px);
  height: auto;
  font-family: var(--sans);
}
.dial-ticks {
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
.dial-arc {
  fill: none;
  stroke-width: 14;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.dial-work {
  stroke: #c9cfc6;
}
.dial-live {
  stroke: var(--leaf);
}
.dial-hand {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 130px 130px;
}
.dial-hours {
  font-size: 13px;
  fill: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.dial-big {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  fill: var(--ink);
}
.dial-unit {
  font-size: 13px;
  fill: var(--ink-2);
}
[data-reveal='wait'] .dial-arc {
  stroke-dashoffset: 1;
}
[data-reveal='wait'] .dial-centre {
  opacity: 0;
}
[data-reveal='go'] .dial-arc {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0, 0.25, 1);
}
[data-reveal='go'] .dial-live {
  transition-delay: 0.9s;
}
[data-reveal='go'] .dial-centre {
  transition: opacity 0.4s 1.6s;
}
[data-reveal='go'] .dial-hand {
  animation: dial-sweep 1.8s both;
}
@keyframes dial-sweep {
  from {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }
  50% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }
  to {
    transform: rotate(360deg);
  }
}
.cycle-key {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.cycle-key li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cycle-key li + li {
  margin-top: 4px;
}
.cycle-key li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: #c9cfc6;
  translate: 0 -2px;
}
.cycle-key .key-live::before {
  background: var(--leaf);
}
@media (max-width: 599px) {
  .cycle {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* The usual way and ours */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--col);
}
.compare > div {
  padding-top: 14px;
  border-top: 1.5px solid var(--line-strong);
}
.compare > .ours {
  border-top-color: var(--leaf);
}
.compare h3 {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-2);
}
.compare .ours h3 {
  color: var(--leaf);
}
.compare p {
  margin-top: 8px;
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 24em;
}
.bill {
  width: 100%;
  max-width: 26em;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 1rem;
}
.bill th,
.bill td {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.bill td {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bill th {
  color: var(--ink-2);
}
.ours .bill td {
  color: var(--leaf);
}
@media (max-width: 599px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Plain lists in columns: the four promises, the modules */

.promises,
.modules {
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col);
}
.promises li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
}
.promises li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
  transform: rotate(-45deg);
}
@media (max-width: 599px) {
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }
}
.modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col);
}
.modules li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.row-body .modules-more {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: none;
  padding-right: max(0px, calc(100% - 800px));
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
}
.modules-more strong {
  font-weight: 600;
  color: var(--ink);
}
.modules small {
  font-size: inherit;
  color: var(--ink-2);
}
@media (max-width: 1299px) {
  .modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 699px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Industries: the one tinted band, because it is the part people come to watch */

.industries {
  background: var(--paper);
  padding: var(--row) 0;
  margin-bottom: var(--row);
}
.industries-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.industries-head p {
  color: var(--ink-2);
  max-width: 34em;
}
.films {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 40px) var(--col);
  margin: 0;
  padding: 0;
  list-style: none;
}
.films li {
  scroll-margin-top: calc(var(--header) + 16px);
}
@media (min-width: 1600px) {
  .films {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 1099px) {
  .films {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 699px) {
  .films,
  .hero-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-more li:nth-child(3) {
    display: none;
  }
}

/* Milestones */

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--col);
  margin: 0;
}
.figures div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1.5px solid var(--ink);
}
.figures dd {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-variant-numeric: lining-nums tabular-nums;
}
.figures dt {
  margin-top: 4px;
  color: var(--ink-2);
  max-width: 16em;
}
@media (max-width: 799px) {
  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A chain of consequences, set as one sentence. Each clause steps in under the one that causes it. */

.flow {
  --step: clamp(22px, 4.2vw, 68px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.flow li {
  position: relative;
  padding-left: calc(var(--i) * var(--step));
}
.flow li + li {
  margin-top: 0.7em;
}
.flow span {
  font-weight: 400;
  color: var(--ink-2);
}
.flow li + li::before {
  content: '';
  position: absolute;
  left: calc((var(--i) - 1) * var(--step) + 0.3em);
  top: -0.35em;
  width: calc(var(--step) - 0.75em);
  height: 0.95em;
  border-left: 1.5px solid var(--leaf);
  border-bottom: 1.5px solid var(--leaf);
  border-bottom-left-radius: 9px;
}
.flow[data-reveal='wait'] li {
  opacity: 0;
  transform: translateX(-10px);
}
.flow[data-reveal='go'] li {
  transition:
    opacity 0.45s,
    transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i) * 0.28s);
}
.brings {
  font-size: var(--fs-lead);
  line-height: 1.6;
  font-weight: 500;
}
.brings span {
  display: block;
}

/* Trails: what each demo film follows, step by step. All twelve are in the page;
   site.js shows one at a time and turns the list into a picker. */

.film-sub {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.trails {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  margin-top: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

/* The tabs: a rail on the left. The chosen one is white, carries a green bar, and opens onto the panel. */
.trail-nav {
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.trail-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.trail-nav li + li {
  border-top: 1px solid var(--line);
}
.trail-nav a {
  position: relative;
  display: block;
  padding: 11px 20px 11px 24px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.trail-nav a span {
  display: block;
  font-weight: 500;
}
.trail-nav small {
  display: block;
  margin-top: 1px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.trail-nav a:hover {
  background: #ecede7;
}
.trail-nav a:focus-visible {
  outline-offset: -3px;
}
.trail-nav a[aria-current='true'] {
  background: var(--white);
  margin-right: -1px;
}
.trail-nav a[aria-current='true']::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--leaf);
}
.trail-nav a[aria-current='true'] span {
  font-weight: 600;
}

.trail-panels {
  min-width: 0;
  background: var(--white);
}
.trail {
  padding: clamp(20px, 2.6vw, 40px);
  scroll-margin-top: calc(var(--header) + 16px);
}
.trail + .trail {
  border-top: 1px solid var(--line);
}
.trail h3 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.trail-subject {
  margin-top: 4px;
  color: var(--ink-2);
}
.trail-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px clamp(24px, 3vw, 48px);
  align-items: start;
  margin-top: 28px;
}
.trail-film .film-frame {
  border-radius: 8px;
}
.film-embed {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.film-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The steps, top to bottom, then a note on how the industry is kept traceable. */
.trail-line {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}
.trail-line li {
  position: relative;
  padding: 0 0 15px 28px;
  font-weight: 500;
  line-height: 1.35;
}
.trail-line li:last-child {
  padding-bottom: 0;
}
.trail-line li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.4em;
  bottom: -0.4em;
  border-left: 1.5px solid var(--ink);
  transform-origin: top;
}
.trail-line li:last-child::before {
  display: none;
}
.trail-line li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 11.5px;
  height: 11.5px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--ink);
}
.trail-line li:first-child::after,
.trail-line li:last-child::after {
  background: var(--ink);
}
.trail-back {
  margin-top: 24px;
  padding: 16px 18px 17px;
  border-radius: 8px;
  background: var(--paper);
}
.trail-back h4 {
  margin: 0 0 4px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--leaf);
}
.trail-back p {
  margin: 0;
}
.trail-small {
  margin-top: 14px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

/* Played when a trail is shown: the steps arrive in order, then the note. */
@media (prefers-reduced-motion: no-preference) {
  .trail.is-playing .trail-line li {
    animation: step-in 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) both;
    animation-delay: calc(var(--i) * 0.13s);
  }
  .trail.is-playing .trail-line li::before {
    animation: line-down 0.2s linear both;
    animation-delay: calc(var(--i) * 0.13s + 0.12s);
  }
  .trail.is-playing .trail-back {
    animation: step-in 0.4s both;
    animation-delay: calc(var(--n) * 0.13s + 0.25s);
  }
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes line-down {
  from {
    transform: scaleY(0);
  }
}
@media (max-width: 1299px) {
  .trail-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .trail-film {
    max-width: 600px;
  }
}
@media (max-width: 899px) {
  .trails {
    grid-template-columns: minmax(0, 1fr);
  }
  .trail-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .trail-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .trail-nav li + li {
    border-top: 0;
  }
  .trail-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    font-size: 0.9375rem;
  }
  .trail-nav a[aria-current='true'] {
    margin-right: 0;
    background: var(--leaf);
    color: #fff;
    box-shadow: none;
  }
  .trail-nav a[aria-current='true']::before {
    display: none;
  }
  .trail-nav small {
    display: none;
  }
}

/* Closing band: who it is for, and the demo request */

.closing {
  --focus: #ffd29a;
  background: var(--deep);
  color: var(--on-deep);
  padding: var(--row) 0;
}
.closing a:not(.btn) {
  color: var(--leaf-light);
}
.closing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  row-gap: 40px;
  align-items: start;
}
.closing-intro {
  grid-column: 1 / span 5;
}
.closing-intro h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  max-width: 16em;
}
.closing-intro > p {
  margin-top: 16px;
  font-size: var(--fs-lead);
  color: var(--on-deep-2);
  max-width: 28em;
}
.direct {
  margin: clamp(32px, 4vw, 56px) 0 0;
  max-width: 28em;
}
.direct div {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(241, 245, 241, 0.18);
}
.direct dt {
  flex: none;
  width: 6.5em;
  color: var(--on-deep-2);
}
.direct dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.demo-card {
  grid-column: 7 / -1;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: clamp(20px, 2.6vw, 40px);
  --focus: #1f6fd0;
}
.demo-card > h2 + p {
  margin: 6px 0 24px;
  color: var(--ink-2);
}
.closing .demo-card a:not(.btn) {
  color: var(--leaf);
}
.demo-card .enquiry,
.demo-card .form-done {
  border: 0;
  padding: 0;
}
.anchor {
  display: block;
}
@media (max-width: 1099px) {
  .closing-intro,
  .demo-card {
    grid-column: 1 / -1;
  }
}

/* Video lightbox */

.player {
  width: min(1400px, 94vw, calc((100vh - 140px) * 16 / 9));
  width: min(1400px, 94vw, calc((100dvh - 140px) * 16 / 9));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  color: var(--on-deep);
  overflow: hidden;
}
.player::backdrop {
  background: rgba(10, 20, 14, 0.88);
}
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  background: var(--deep);
}
.player-title {
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.player-close {
  flex: none;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid rgba(241, 245, 241, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-deep);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.player-close:hover {
  background: var(--on-deep);
  color: var(--deep);
}
.player-close:focus-visible {
  outline-color: #ffd29a;
}
.player-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Forms */

.enquiry {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 40px);
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 20px;
}
.field {
  min-width: 0;
}
.field.wide {
  grid-column: 1 / -1;
}
@media (max-width: 599px) {
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.optional {
  font-weight: 400;
  color: var(--ink-2);
}
.hint {
  margin: -2px 0 8px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  text-overflow: ellipsis;
}
.field textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.5;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-2);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(31, 111, 208, 0.35);
  outline-offset: 0;
  border-color: #1f6fd0;
}
.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--error);
}
.error {
  min-height: 1.6em;
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--error);
}
.form-alert:empty {
  display: none;
}
.form-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fbeceb;
  color: #7d1a14;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 10px;
}
.fineprint {
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-done {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 40px);
}
.form-done:focus {
  outline: none;
}
.form-done h3 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}
.form-done p {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 34em;
}

/* Inner pages (careers, privacy, 404) */

.page-head {
  padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px);
  background: var(--paper);
}
.page-head .lede {
  margin-top: 18px;
}
.page-head .actions {
  margin-top: 28px;
}
.terms {
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px var(--col);
}
.terms div {
  border-top: 1.5px solid var(--ink);
  padding-top: 12px;
}
.terms dt {
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.terms dd {
  margin: 4px 0 0;
  font-weight: 500;
}
@media (max-width: 700px) {
  .terms {
    grid-template-columns: minmax(0, 1fr);
  }
}
.prose-section {
  padding: clamp(40px, 5vw, 72px) 0 var(--row);
}
.prose > * {
  max-width: 680px;
}
.prose h2 {
  margin: 44px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p + p {
  margin-top: 14px;
}
.prose ul {
  padding-left: 1.2em;
  margin: 14px 0 0;
}
.prose li + li {
  margin-top: 10px;
}
.contact {
  padding: var(--row) 0;
  background: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  row-gap: 32px;
}
.contact-intro {
  grid-column: 1 / span 4;
}
.contact-intro p {
  margin-top: 14px;
  color: var(--ink-2);
}
.contact-form {
  grid-column: 6 / -1;
  min-width: 0;
}
@media (max-width: 1099px) {
  .contact-intro,
  .contact-form {
    grid-column: 1 / -1;
  }
}
.not-found {
  min-height: 50vh;
}

/* Footer */

.site-footer {
  background: var(--white);
  padding: clamp(40px, 4.5vw, 64px) 0 28px;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--col);
}
.footer-grid > div {
  grid-column: span 2;
  min-width: 0;
}
.footer-grid > .footer-brand {
  grid-column: 1 / span 4;
}
.footer-grid > .footer-ind {
  grid-column: 5 / span 4;
}
.footer-ind ul {
  columns: 2;
  column-gap: var(--col);
}
.footer-ind li {
  break-inside: avoid;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 30em;
}
.site-footer h2 {
  margin-bottom: 10px;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--ink-2);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li {
  margin-top: 6px;
}
.site-footer a {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.footer-base {
  margin-top: 40px;
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.footer-base p {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1099px) {
  .footer-grid > div {
    grid-column: span 3;
  }
  .footer-grid > .footer-ind {
    grid-column: span 6;
  }
  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 599px) {
  .footer-grid > div {
    grid-column: span 6;
  }
  .footer-grid > .footer-ind {
    grid-column: 1 / -1;
  }
}

/* Industry pages: the film ready to play, the steps it follows, and how the industry is kept traceable. */

.crumbs {
  margin-bottom: 14px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.crumbs a {
  color: inherit;
}
.crumbs span[aria-hidden] {
  margin: 0 4px;
}
.ind-head .lede {
  max-width: 44em;
}
.ind-main {
  padding: clamp(32px, 4.5vw, 64px) 0;
}
.ind-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(24px, 4vw, 64px);
  align-items: start;
}
.ind-caption {
  margin-top: 10px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.ind-steps h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.ind-steps .trail-line {
  margin-top: 24px;
}
.trail-back h3 {
  margin: 0 0 4px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--leaf);
}
.ind-main + .row .steps {
  margin-bottom: 0;
}
.ind-others a {
  color: inherit;
  text-decoration: none;
}
.ind-others a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (max-width: 999px) {
  .ind-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Links from the home page to the industry pages */
.film-page {
  display: inline-block;
  margin-top: 4px;
  font-size: var(--fs-small);
}
.trail-more {
  margin-top: 14px;
  font-size: var(--fs-small);
}

.note + .promises {
  margin-top: 28px;
}

/* Industry page FAQs */
.faqs {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 56em;
}
