@font-face {
  font-family: "Albert Sans";
  src: url("/fonts/albert-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #121011;
  --bg-2: #1b1819;
  --ink: #f4f1f2;
  --sub: #a9a1a4;
  --rule: #2c2729;
  --cherry: #c8102e;
  --cherry-2: #e01e3d;
  --ph: #ff6b80;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --card-w: clamp(230px, 28vw, 360px);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Albert Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: none;
  scrollbar-color: #4a4346 var(--bg);
  @media (prefers-reduced-motion: no-preference) { scroll-behavior: smooth; }
}

body { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--cherry); color: #fff; }
:focus-visible { outline: 2px solid var(--cherry-2); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.ph { color: var(--ph); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 4px;
  &:focus { top: 16px; }
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important;
  padding: 0 !important; border: 0 !important; white-space: nowrap !important;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid transparent;
}
.bar { display: flex; justify-content: space-between; align-items: center; height: 76px; }

@supports ((animation-timeline: scroll()) and (animation-range: 0 1px)) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll();
    animation-range: 0 140px;
  }
}
@supports not ((animation-timeline: scroll()) and (animation-range: 0 1px)) {
  .site-header { background: rgb(18 16 17 / .9); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
}
@keyframes header-solid {
  to { background: rgb(18 16 17 / .82); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
}

.logo {
  display: inline-grid; gap: 7px; color: var(--ink); text-decoration: none;
  span { font: 500 16px/1 "Albert Sans"; letter-spacing: .28em; margin-right: -.28em; }
  img { width: 0; min-width: 100%; height: auto; }
}

nav {
  display: flex; align-items: center; gap: 28px;
  a {
    color: var(--sub); text-decoration: none; font-size: 15px; position: relative;
    transition: color .2s;
    &:hover { color: var(--ink); }
  }
  a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: var(--cherry); scale: 0 1; transform-origin: right;
    transition: scale .35s var(--ease-out);
  }
  a:not(.nav-cta):hover::after { scale: 1 1; transform-origin: left; }
}
.nav-cta {
  color: var(--ink) !important; padding: 8px 16px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px #4a4346; transition: box-shadow .2s, background-color .2s;
  &:hover { background: var(--cherry); box-shadow: inset 0 0 0 1px var(--cherry); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cherry); color: #fff; font: 600 16px/1 "Albert Sans";
  padding: 17px 28px; border-radius: 4px; border: 0; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s, scale .2s var(--ease-out);
  &:hover { background: var(--cherry-2); }
  &:active { scale: .97; }
}
.btn-line {
  background: transparent; box-shadow: inset 0 0 0 1px #4a4346;
  &:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
  .ph { font-weight: 400; }
}

/* Hero */
.hero { text-align: center; padding: clamp(56px, 11vh, 110px) 0 64px; }
.rule { width: 48px; height: 2px; background: var(--cherry); margin: 0 auto 32px; }
h1 {
  font: 300 clamp(2.6rem, 6.6vw, 5.6rem)/1.02 "Albert Sans";
  letter-spacing: -.04em; text-wrap: balance;
  b { font-weight: 600; }
  .line { display: block; overflow: clip; padding-bottom: .06em; }
  .line > * { display: block; }
}
.lead { color: var(--sub); font-size: 1.12rem; max-width: 44ch; margin: 24px auto 32px; text-wrap: pretty; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .rule { animation: draw 1s var(--ease-out) both; }
  h1 .line > * { animation: rise 1.1s var(--ease-out) both; }
  h1 .line:nth-child(2) > * { animation-delay: .1s; }
  .lead { animation: fade-up 1s var(--ease-out) .25s both; }
  .actions { animation: fade-up 1s var(--ease-out) .35s both; }
}
@keyframes draw { from { scale: 0 1; } }
@keyframes rise { from { translate: 0 105%; } }
@keyframes fade-up { from { opacity: 0; translate: 0 16px; } }

.hero-media {
  border-radius: 6px; overflow: hidden; aspect-ratio: 2.4 / 1; background: var(--bg-2);
  img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); }
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
  div { padding: 28px 8px; text-align: center; display: flex; flex-direction: column-reverse; }
  div + div { border-left: 1px solid var(--rule); }
  dd { font: 300 clamp(28px, 3.2vw, 38px)/1.1 "Albert Sans"; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  dt { color: var(--sub); font-size: 14px; }
}

/* Sections */
section { padding-top: clamp(88px, 12vw, 130px); }
h2 {
  font: 300 clamp(2rem, 3.9vw, 3.1rem)/1.08 "Albert Sans";
  letter-spacing: -.035em; text-wrap: balance;
  b { font-weight: 600; }
}
.sub { color: var(--sub); margin-top: 16px; max-width: 36ch; text-wrap: pretty; }
.two { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 88px); align-items: start; }
.side { position: sticky; top: 120px; }

.occ {
  list-style: none; padding: 0;
  li {
    position: relative; display: flex; justify-content: space-between; gap: 20px;
    padding: 24px 0 24px 0; border-top: 1px solid var(--rule);
    transition: padding-left .45s var(--ease-out);
    &:last-child { border-bottom: 1px solid var(--rule); }
    &::before {
      content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px;
      background: var(--cherry); scale: 1 0; transition: scale .45s var(--ease-out);
    }
    &:hover { padding-left: 20px; }
    &:hover::before { scale: 1 1; }
  }
  h3 { font: 500 19px/1.3 "Albert Sans"; }
  p { color: var(--sub); font-size: 16px; }
  span { color: var(--sub); font-size: 14px; white-space: nowrap; }
}

/* Scroll-driven reveals */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 65%;
    }
    .stats .reveal:nth-child(2) { animation-range: entry 15% entry 75%; }
    .stats .reveal:nth-child(3) { animation-range: entry 25% entry 85%; }
    .stats .reveal:nth-child(4) { animation-range: entry 35% entry 95%; }

    .hero-media {
      animation: unveil linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
      img {
        animation: settle linear both;
        animation-timeline: view();
        animation-range: cover 0% cover 100%;
      }
    }
  }
}
@keyframes unveil { from { clip-path: inset(6% 5% 0 5% round 18px); } to { clip-path: inset(0 round 6px); } }
@keyframes settle { from { scale: 1.14; } to { scale: 1; } }

/* Gallery */
.gallery { padding-top: clamp(100px, 14vw, 150px); }
.g-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.g-controls { display: flex; align-items: center; gap: 10px; }
.g-count {
  display: flex; align-items: center; gap: 10px; margin-right: 14px;
  color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums;
  [data-current] { color: var(--ink); }
  i { width: 28px; height: 1px; background: #4a4346; }
}
.g-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: transparent; border: 1px solid #4a4346; cursor: pointer; touch-action: manipulation;
  transition: border-color .2s, background-color .2s, scale .2s var(--ease-out);
  svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  &:hover { border-color: var(--ink); }
  &:active { scale: .92; }
}

.g-track {
  position: relative;
  display: flex; gap: clamp(16px, 3vw, 36px);
  list-style: none; margin: 0;
  padding: 12px max(24px, (100% - var(--card-w)) / 2) 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  touch-action: pan-x pan-y;
  &::-webkit-scrollbar { display: none; }
  @media (prefers-reduced-motion: no-preference) { scroll-behavior: smooth; }
}
.g-slide { flex: 0 0 var(--card-w); scroll-snap-align: center; view-timeline: --slide inline; }
.g-card {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7;
  padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--bg-2);
  cursor: zoom-in; touch-action: manipulation;
  img {
    position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%;
    object-fit: cover; transition: filter .4s;
  }
  &:hover img { filter: brightness(1.08); }
}
.pos-l { object-position: 18% center; }
.pos-c { object-position: 48% center; }
.pos-r { object-position: 88% center; }
.g-cap {
  display: flex; gap: 12px; margin-top: 16px; font-size: 15px;
  span { color: var(--cherry-2); font-variant-numeric: tabular-nums; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .g-card {
      animation: slide-focus linear both;
      animation-timeline: --slide;
      img { animation: slide-pan linear both; animation-timeline: --slide; }
    }
    .g-cap { animation: cap-focus linear both; animation-timeline: --slide; }
  }
}
@keyframes slide-focus { 0%, 100% { scale: .86; opacity: .45; } 50% { scale: 1; opacity: 1; } }
@keyframes slide-pan { from { translate: 8% 0; } to { translate: -8% 0; } }
@keyframes cap-focus { 0%, 100% { opacity: .35; translate: 0 6px; } 50% { opacity: 1; translate: 0 0; } }

.g-markers {
  display: flex; justify-content: center; gap: 4px; margin-top: 28px;
  button {
    width: 32px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
    display: grid; place-items: center; touch-action: manipulation;
    &::before {
      content: ""; width: 14px; height: 2px; border-radius: 2px; background: #4a4346;
      transition: width .4s var(--ease-out), background-color .3s;
    }
    &[aria-current="true"]::before { width: 30px; background: var(--ink); }
  }
}

/* Lightbox */
.lightbox {
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(1100px, 100vw - 32px); max-height: calc(100dvh - 32px);
  overscroll-behavior: contain; overflow: hidden;
  figure { display: grid; gap: 14px; }
  img { width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; background: #000; }
  figcaption { color: var(--sub); font-size: 15px; }
  &::backdrop { overflow: hidden; overscroll-behavior: contain; }
}
.lb-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: -40px; }
.lightbox .g-btn { background: rgb(18 16 17 / .7); }

:is(.lightbox, .lightbox::backdrop) {
  transition-property: opacity, scale, background-color, display, overlay;
  transition-duration: .35s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}
.lightbox { opacity: 0; @media (prefers-reduced-motion: no-preference) { scale: .94; } }
.lightbox::backdrop { background-color: rgb(8 7 7 / 0); }
.lightbox[open]:where(:not([data-closing])) {
  opacity: 1;
  @starting-style { opacity: 0; }
  @media (prefers-reduced-motion: no-preference) {
    scale: 1;
    @starting-style { scale: .94; }
  }
  &::backdrop {
    background-color: rgb(8 7 7 / .9); backdrop-filter: blur(6px);
    @starting-style { background-color: rgb(8 7 7 / 0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.lightbox, .lightbox::backdrop) { transition-duration: .1s; }
}

/* Form */
.form-shell { background: var(--bg-2); border-radius: 6px; padding: clamp(24px, 3.4vw, 36px); }
form { display: grid; gap: 18px; }
.r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f {
  display: grid; gap: 6px; align-content: start;
  label { font-size: 14px; color: var(--sub); }
  small { font-size: 12px; }
}
.f :is(input, select, textarea) {
  font: 400 16px/1.4 "Albert Sans"; color: var(--ink);
  padding: 12px 0; border: 0; border-bottom: 1px solid #3d3639; border-radius: 0;
  background: transparent; caret-color: var(--cherry-2); width: 100%;
  transition: border-color .25s;
  &:focus { outline: none; border-bottom-color: var(--ink); }
  &::placeholder { color: #6f676a; }
}
.f select option { background: var(--bg-2); }
.f textarea { resize: vertical; field-sizing: content; min-height: 3lh; }
.err { display: none; color: var(--ph); font-size: 13px; }
.f :is(:user-invalid, .user-invalid-fallback) { border-bottom-color: var(--ph); }
.f :is(:user-invalid, .user-invalid-fallback) ~ .err { display: block; }
form .btn { margin-top: 8px; }
form .btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send-err { margin-top: 14px; color: var(--ph); font-size: 14px; }

.done {
  h3 { font: 600 28px/1.2 "Albert Sans"; letter-spacing: -.02em; margin-bottom: 10px; }
  p { color: var(--sub); }
  &:focus { outline: none; }
  @media (prefers-reduced-motion: no-preference) { animation: fade-up .7s var(--ease-out) both; }
}

.facts {
  margin-top: 36px; display: grid; gap: 16px;
  div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
  dt { color: var(--sub); }
  a { color: inherit; }
}

/* Where + footer */
.where {
  text-align: center; padding-bottom: 100px;
  p { color: var(--sub); margin-top: 14px; }
}
.text-link {
  display: inline-block; margin-top: 20px; color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--cherry);
  text-underline-offset: 6px; text-decoration-thickness: 2px;
  transition: text-underline-offset .3s var(--ease-out);
  &:hover { text-underline-offset: 9px; }
}

.site-footer {
  border-top: 1px solid var(--rule); padding: 44px 0 48px; text-align: center;
  color: var(--sub); font-size: 14px;
  a { color: inherit; text-underline-offset: 3px; &:hover { color: var(--ink); } }
}
.flogo {
  display: inline-grid; justify-items: center; gap: 12px; margin-bottom: 26px;
  span { font: 500 24px/1 "Albert Sans"; letter-spacing: .28em; margin-right: -.28em; color: var(--ink); }
  img { width: 200px; }
  small { font-size: 11px; letter-spacing: .32em; margin-right: -.32em; }
}

/* Legal pages */
.legal {
  padding: 64px 0 100px; max-width: 70ch;
  h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 32px; }
  h2 { font-size: 1.4rem; font-weight: 600; margin: 36px 0 10px; letter-spacing: -.01em; }
  p, li { color: var(--sub); }
  ul { padding-left: 1.2em; }
  a { color: var(--ink); }
}

@media (max-width: 860px) {
  .two, .r2 { grid-template-columns: 1fr; }
  .side { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .hero-media { aspect-ratio: 4 / 3; }
  nav a:not(.nav-cta) { display: none; }
  .g-head { flex-direction: column; align-items: start; }
  .g-count { margin-right: auto; }
  .g-controls { width: 100%; }
  :root { --card-w: min(72vw, 320px); }
}
