@font-face {
  font-family: "IM Fell English";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IMFellEnglish-Regular.ttf") format("truetype");
  /* Its figures are old style, a 1 reading as a small capital I. */
  unicode-range: U+0-2F, U+3A-10FFFF;
}
@font-face {
  font-family: Literata;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/Literata-Variable.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --display: "IM Fell English", Literata, Georgia, serif;
  --text: Literata, Georgia, serif;
  --ground: #0f0c0a;
  --surface: #17130f;
  --surface-up: #1f1a14;
  --ink: #efe6d3;
  --ink-soft: #d9cfba;
  --ink-dim: #a89e8a;
  --brass: #d9a457;
  --brass-deep: #b9853c;
  --line: rgb(217 164 87 / 32%);
  --line-soft: rgb(217 164 87 / 14%);
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1180px;
  --radius: 3px;
  --lift: 0 14px 34px rgb(0 0 0 / 55%);
  --halo: 0 1px 2px rgb(0 0 0 / 85%), 0 0 12px rgb(0 0 0 / 60%);
}

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

html {
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-soft);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 23px;
}

a {
  color: var(--brass);
}

.calls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.call {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(20 17 14 / 70%);
  color: var(--ink);
  font: 17px/1.2 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition:
    border-color 150ms,
    background 150ms;
}

.call:hover {
  border-color: var(--brass);
  background: rgb(217 164 87 / 14%);
}

.call-main {
  border-color: var(--brass);
  background: linear-gradient(var(--brass), var(--brass-deep));
  color: #1a120a;
}

.call-main:hover {
  background: linear-gradient(#e6b469, var(--brass));
}

/* The hero: the town at full bleed, the wordmark over a shade at its foot. */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 980px);
  overflow: hidden;
}

.hero-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      var(--ground) 0%,
      rgb(15 12 10 / 70%) 30%,
      transparent 62%
    ),
    linear-gradient(to right, rgb(15 12 10 / 55%), transparent 55%);
}

.hero-body {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 8vh, 96px);
}

.wordmark {
  width: min(560px, 82vw);
  height: auto;
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 70%));
}

.wordmark.small {
  width: min(320px, 70vw);
}

.tagline {
  margin: 18px 0 0;
  color: var(--ink);
  font: clamp(26px, 3.6vw, 40px) / 1.2 var(--display);
  text-shadow: var(--halo);
}

.lede {
  max-width: 34em;
  margin: 16px 0 28px;
  color: var(--ink-soft);
  text-shadow: var(--halo);
}

.platforms {
  margin: 16px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: 0.06em;
}

main {
  display: grid;
  gap: clamp(72px, 12vw, 140px);
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
}

main > section {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* A pitch: words beside a reel, the reel crossing to the other side on a flip. */
.pitch {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.pitch.flip .pitch-text {
  order: 2;
}

.pitch-text p {
  margin: 16px 0 0;
}

.points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--line-soft);
}

.points li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--brass);
  content: "";
  transform: rotate(45deg);
}

.reel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--lift);
}

.reel video,
.reel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* The scale: a reel the width of the window with the figures over its foot. */
.scale {
  position: relative;
  display: grid;
  align-items: end;
  max-width: none !important;
  min-height: min(86vh, 860px);
  padding: 0 !important;
  overflow: hidden;
}

.scale-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scale::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, var(--ground), transparent 18%),
    linear-gradient(
      to top,
      var(--ground) 0%,
      rgb(15 12 10 / 75%) 34%,
      transparent 70%
    );
  content: "";
}

.scale-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 7vw, 80px);
}

.scale-body p {
  max-width: 34em;
  margin: 16px 0 0;
  text-shadow: var(--halo);
}

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 6vw, 72px);
  margin: 32px 0 0;
}

.figures dt {
  color: var(--brass);
  font: clamp(36px, 5vw, 56px) / 1 var(--display);
  text-shadow: var(--halo);
}

.figures dd {
  margin: 6px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.features h2,
.gallery h2 {
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.grid article {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

.grid h3 {
  margin: 18px 20px 0;
}

.grid p {
  margin: 8px 20px 22px;
  font-size: 15.5px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}

.shots a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.33, 1, 0.68, 1);
}

.shots a:hover img {
  transform: scale(1.03);
}

.lore {
  max-width: 760px !important;
  text-align: center;
}

.lore p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  font-style: italic;
}

.foot {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 72px var(--gutter) 88px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

.viewer {
  max-width: 96vw;
  max-height: 96vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--ground);
}

.viewer::backdrop {
  background: rgb(10 8 6 / 88%);
}

.viewer img {
  max-height: 92vh;
}

@media (max-width: 820px) {
  .pitch {
    grid-template-columns: minmax(0, 1fr);
  }

  .pitch.flip .pitch-text {
    order: 0;
  }

  .hero-shade {
    background: linear-gradient(
      to top,
      var(--ground) 0%,
      rgb(15 12 10 / 80%) 45%,
      rgb(15 12 10 / 20%) 80%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .shots img {
    transition: none;
  }
}
