/* Home motion + print effects: contour parallax, plate settle-in, card lift, grain/halftone, title sweep finals. */
.halftone {
  position: fixed;
  inset: 0;
  z-index: 39;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(#1c1914 0.55px, transparent 0.7px);
  background-size: 3px 3px;
}

@property --field-in {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.terrain-bg {
  --field-in: 0;
  opacity: 0;
  transform: scale(1.11);
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: radial-gradient(
    circle at 50% 48%,
    #000 0,
    #000 calc(var(--field-in) * 72vmax),
    transparent calc(var(--field-in) * 72vmax + 26vmax)
  );
  mask-image: radial-gradient(
    circle at 50% 48%,
    #000 0,
    #000 calc(var(--field-in) * 72vmax),
    transparent calc(var(--field-in) * 72vmax + 26vmax)
  );
}
.terrain-bg.is-field-in {
  animation: field-in 1100ms cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
@keyframes field-in {
  0%   { --field-in: 0; opacity: 0; }
  35%  { opacity: 1; }
  100% { --field-in: 1; opacity: 1; }
}

/* Hide plates only after effects.js has taken ownership (html.fx).
   html.fx .plates article.is-in must win on specificity. */
html.fx .plates article {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
html.fx .plates article.is-in {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  a.shot {
    transition:
      transform 350ms var(--ease),
      box-shadow 350ms var(--ease),
      border-color var(--t-quick) var(--ease);
  }
  a.shot picture,
  a.shot img {
    transition: transform 450ms var(--ease);
  }
  a.shot:hover,
  a.shot:focus-visible {
    transform: translateY(-5px);
    box-shadow:
      3px 8px 0 rgba(28, 25, 20, 0.18),
      0 16px 28px rgba(28, 25, 20, 0.08);
  }
  a.shot:hover picture,
  a.shot:focus-visible picture {
    transform: translate(4px, -3px);
  }
}

.plates-kicker, .plate-no {
  white-space: nowrap;
}
.plates-kicker.is-typing,
.plate-no.is-typing {
  caret-color: transparent;
}

html.is-still .terrain-bg,
html.is-still .plates article,
html.is-still a.shot,
html.is-still a.shot picture {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  box-shadow: none !important;
}
html.is-still .terrain-bg,
html.is-reduced .terrain-bg {
  --field-in: 1;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
html.is-still .plates article,
html.is-still html.fx .plates article,
html.fx.is-still .plates article { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .terrain-bg {
    --field-in: 1;
    opacity: 1;
    transform: none;
    will-change: auto;
    animation: none !important;
    -webkit-mask-image: none;
    mask-image: none;
  }
  html.fx .plates article { opacity: 1; transform: none; transition: none; }
  a.shot, a.shot picture, a.shot img {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Sideways title sweep. clip-path + lead are the visible motion (1.5s, nearly linear). */
@property --t {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
h1.title-c3 {
  position: relative;
  margin: 0 auto;
  width: min(96vw, 72rem);
  font-size: unset;
  line-height: 0;
  letter-spacing: 0;
  text-shadow: none;
  pointer-events: none;
}
.title-c3 svg { display: block; width: 100%; height: auto; overflow: visible; }
.title-c3 { --t: 0; }
.title-c3 .fill { fill: #1c1914; }
.title-c3 .hair {
  fill: none;
  stroke: #1c1914;
  stroke-width: 0.7;
  stroke-linejoin: round;
  opacity: 0.35;
}
.title-c3 .sheet {
  clip-path: inset(-28px 100% -28px 0);
}
.title-c3.is-drawn .sheet {
  animation: c3-clip 1500ms cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
@keyframes c3-clip {
  from { clip-path: inset(-28px 100% -28px 0); }
  to   { clip-path: inset(-28px 0 -28px 0); }
}
.title-c3 .lead {
  transform: translate(268px, 0);
  opacity: 0;
  color: #a33a1e;
}
.title-c3 .lead line { stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.title-c3.is-armed .lead { opacity: 1; }
.title-c3.is-drawn .lead {
  animation: c3-lead 1500ms cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
@keyframes c3-lead {
  0%   { transform: translate(268px, 0); opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(742px, 0); opacity: 0; }
}
.survey-tick {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.survey-tick::before, .survey-tick::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: 0.7;
}
.survey-tick::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.survey-tick::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.survey-tick.tl { top: -18px; left: -6px; }
.survey-tick.tr { top: -18px; right: -6px; }
.survey-tick.bl { bottom: -18px; left: -6px; }
.survey-tick.br { bottom: -18px; right: -6px; }
html.fonts-ready .title-c3.is-drawn .survey-tick {
  animation: tick-in 400ms 160ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes tick-in { from { opacity: 0; } to { opacity: 1; } }

html.is-still .title-c3,
html.is-reduced .title-c3 { --t: 1; }
html.is-still .title-c3 .sheet,
html.is-reduced .title-c3 .sheet,
html.is-still .title-c3.is-drawn .sheet,
html.is-reduced .title-c3.is-drawn .sheet {
  clip-path: inset(-28px 0 -28px 0);
  animation: none !important;
}
html.is-still .title-c3 .lead,
html.is-reduced .title-c3 .lead { opacity: 0 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .title-c3 { --t: 1; }
  .title-c3 .sheet,
  .title-c3.is-drawn .sheet {
    clip-path: inset(-28px 0 -28px 0);
    animation: none !important;
  }
  .title-c3 .lead { opacity: 0 !important; animation: none !important; }
}

@media (max-width: 420px) {
  .hero-head { padding-bottom: 7rem; }
}
