/* AllOne Cast — measured grid, see docs/. */
@import url("/fonts/fonts.css");

:root {
  --bg: #171717;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.52);
  --rule: rgba(255, 255, 255, 0.28);
  --ink: #171717;
  --m: clamp(14px, 1.53vw, 32px);
  --g: 1.1vw;
  --t-s: calc(0.16vw + 12.22px);
  --t-m: calc(0.26vw + 15.03px);
  --t-xl: calc(2.07vw + 32.24px);
  --sans: "Geist", "Noto Sans Georgian", system-ui, sans-serif;
  --serif: "Noto Serif Display", "Noto Serif Georgian", Georgia, serif;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --panel: 154px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: var(--t-s);
  line-height: 1;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(ka) body,
body:lang(ka) {
  letter-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: inherit;
}
ul {
  list-style: none;
}
video {
  display: block;
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-stretch: 62.5%;
}
.caps {
  text-transform: uppercase;
}
.dim {
  color: var(--dim);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* grid: 7 columns at desktop, 3 on phones */
.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: var(--g);
  padding: 0 var(--m);
}
.c1 {
  grid-column: 1 / span 3;
}
.c2 {
  grid-column: 2 / span 2;
}
.c4 {
  grid-column: 4 / span 2;
}
.c6 {
  grid-column: 6 / span 2;
}
.c7 {
  grid-column: 7 / span 1;
}

/* labels: tight like the reference; Georgian needs air */
.lbl {
  line-height: 0.8;
}
.lbl > span,
.lbl > a {
  display: block;
}
.lbl > * + * {
  margin-top: 0.2em;
}
:lang(ka) .lbl {
  line-height: 1.05;
}
:lang(ka) .lbl > * + * {
  margin-top: 0.1em;
}

/* inverted label = active state */
.inv {
  display: inline-block;
  padding: 0.18em 0.28em 0.12em;
  margin: -0.18em -0.28em -0.12em;
  transition:
    background-color 0.35s var(--out),
    color 0.35s var(--out);
}
.inv.on,
.inv:hover {
  background: var(--fg);
  color: var(--ink);
}

/* ---------- background ---------- */
.bg,
.bg-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-fallback {
  background-size: cover;
  background-position: center;
  filter: blur(42px) brightness(0.7);
  transform: scale(1.25);
  display: none;
}
.no-gl .bg-fallback {
  display: block;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.085;
  background-size: 180px 180px;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-7%, 4%);
  }
  40% {
    transform: translate(5%, -6%);
  }
  60% {
    transform: translate(-3%, 8%);
  }
  80% {
    transform: translate(8%, 2%);
  }
  100% {
    transform: translate(-5%, -4%);
  }
}

/* ---------- header ---------- */
.app {
  position: relative;
  z-index: 2;
  transition: transform 0.9s var(--ease);
}
.panel-open .app {
  transform: translateY(var(--panel));
}
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: var(--m);
  align-items: end;
  transition: transform 0.9s var(--ease);
}
.panel-open .hdr {
  transform: translateY(var(--panel));
}
.brand .t-sans {
  display: block;
}
.brand .serif {
  display: block;
  font-size: var(--t-m);
  line-height: 0.8;
  margin-top: 0.3em;
}
:lang(ka) .brand .serif {
  line-height: 1;
  margin-top: 0.15em;
}
.nav {
  display: contents;
}
.nav .n-films {
  grid-column: 4;
}
.nav .n-how {
  grid-column: 6;
}
.nav .n-signup {
  grid-column: 7;
}
.nav .n-lang {
  grid-column: 7;
  grid-row: 1;
  justify-self: end;
  color: var(--dim);
}
.nav .n-lang:hover {
  color: var(--fg);
}
.nav a,
.nav button {
  justify-self: start;
  align-self: end;
  line-height: 0.8;
}
:lang(ka) .nav a,
:lang(ka) .nav button {
  line-height: 1.05;
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  transition:
    opacity 0.8s var(--out),
    visibility 0.8s;
}
.loaded .loader {
  opacity: 0;
  visibility: hidden;
}
.loader .grid {
  position: absolute;
  inset: 0;
  align-content: center;
  row-gap: 0;
}
.loader .l-title {
  grid-column: 4 / span 4;
  margin-bottom: 21vh;
}
.loader .l-line {
  grid-column: 4 / span 4;
  position: relative;
  height: 1px;
  background: var(--rule);
}
.loader .l-fill {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: 0 0;
  transform: scaleX(0);
  transition: transform 0.4s var(--out);
}
.loader .l-pct {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--fg);
  color: var(--ink);
  padding: 0.2em 0.3em 0.1em;
  line-height: 0.9;
  min-width: 3.4em;
  text-align: right;
}
.loader .l-file {
  grid-column: 4 / span 2;
  margin-top: 18vh;
  color: var(--dim);
}
.loader .l-note {
  grid-column: 6 / span 1;
  margin-top: 18vh;
  color: var(--dim);
  line-height: 1;
}

/* ---------- home stage ---------- */
.home {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.home body,
body.home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
}
.stage {
  position: fixed;
  inset: 0;
}
.rail {
  position: absolute;
  left: 3.2vw;
  top: calc(50% - 10vw);
  height: 20vw;
  width: 1px;
  background: var(--rule);
}
.rail i {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  background: var(--fg);
  transition: transform 1s var(--ease);
}
.thumbs {
  position: absolute;
  left: 4.86vw;
  top: calc(50% - 10vw);
  width: 35.56vw;
  height: 20vw;
  cursor: pointer;
  transition:
    opacity 0.7s var(--out),
    transform 0.9s var(--ease);
}
.thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease);
  background: #000;
}
.thumb.on {
  clip-path: inset(0 0 0 0);
  z-index: 2;
}
.thumb.out {
  clip-path: inset(0 0 0 0);
  z-index: 1;
}
.thumb video,
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.4s var(--out);
}
.thumb.on video,
.thumb.on img {
  transform: scale(1);
}
.thumb video {
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 1.4s var(--out);
}
.thumb video.playing {
  opacity: 1;
}

.slides {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 10vw);
  height: 20vw;
}
.slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  align-items: stretch;
}
.slide.on {
  pointer-events: auto;
}
.slide .s-main {
  grid-column: 4 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slide .s-title {
  font-size: var(--t-xl);
  line-height: 0.8;
  cursor: pointer;
  max-width: 100%;
}
:lang(ka) .slide .s-title {
  line-height: 1.02;
}
.slide .s-meta > span + span {
  margin-left: 2.1em;
}
.slide .s-roles {
  grid-column: 6 / span 2;
  align-self: end;
}

/* word reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
:lang(ka) .w {
  padding: 0.12em 0 0.16em;
  margin: -0.12em 0 -0.16em;
}
.w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--out);
}
.slide.on .w > span,
.reveal.on .w > span {
  transform: translateY(0);
  transition-delay: calc(0.35s + var(--d, 0) * 28ms);
}
.slide.out .w > span {
  transform: translateY(-110%);
  transition: transform 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 14ms);
}

.footnote {
  position: fixed;
  left: var(--m);
  bottom: var(--m);
  width: calc((100vw - 2 * var(--m) + var(--g)) / 7 * 2 - var(--g));
  color: var(--dim);
  line-height: 1;
  z-index: 2;
}
:lang(ka) .footnote {
  line-height: 1.2;
}

/* project view */
.proj {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 10vw);
  height: 20vw;
  pointer-events: none;
}
.proj-on .proj {
  pointer-events: auto;
}
.proj-on .thumbs {
  opacity: 0;
  pointer-events: none;
  transform: translateY(2vw);
}
.proj-on .rail {
  opacity: 0;
}
.proj .p-block {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: var(--g);
  row-gap: 3.2vw;
  align-content: start;
}
.proj .p-lbl {
  font-size: var(--t-m);
  line-height: 0.8;
}
.proj .p-txt {
  line-height: 1.05;
  max-width: 28em;
}
:lang(ka) .proj .p-txt {
  line-height: 1.3;
}
.proj .p-cred li + li {
  margin-top: 1.1em;
}
.proj .p-cred em {
  display: block;
  font-style: normal;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 0.35em;
  font-size: 0.86em;
}
.proj .p-ctl {
  grid-column: 6 / span 2;
  align-self: start;
  display: flex;
  gap: 2.4em;
}
.proj .p-ctl .inv {
  margin: 0;
}
.proj .p-ctl .play {
  background: var(--fg);
  color: var(--ink);
}

/* player */
.player {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s var(--out),
    visibility 0.6s;
}
.player-on .player {
  opacity: 1;
  visibility: visible;
}
.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--m);
  align-items: end;
}
.player .bar .b-play {
  grid-column: 1;
  justify-self: start;
}
.player .bar .b-time {
  grid-column: 2;
  color: var(--dim);
}
.player .bar .b-seek {
  grid-column: 3 / span 3;
  height: 13px;
  position: relative;
  cursor: pointer;
}
.player .bar .b-seek::before,
.player .bar .b-seek i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: var(--rule);
}
.player .bar .b-seek i {
  background: var(--fg);
  transform-origin: 0 0;
  transform: scaleX(0);
}
.player .bar .b-right {
  grid-column: 6 / span 2;
  display: flex;
  gap: 2.2em;
  justify-content: flex-end;
}
.player .bar .inv {
  margin: 0;
}

/* ---------- sign-up drop panel ---------- */
.drop {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--panel);
  z-index: 30;
  background: var(--fg);
  color: var(--ink);
  transform: translateY(-100%);
  transition: transform 0.9s var(--ease);
  padding-top: var(--m);
}
.panel-open .drop {
  transform: translateY(0);
}
.drop .d-q {
  font-size: var(--t-xl);
  line-height: 0.8;
}
:lang(ka) .drop .d-q {
  line-height: 1.02;
}
.drop .d-sub {
  margin-top: 1.1em;
  line-height: 1.1;
}
.drop .d-links li {
  border-top: 1px solid rgba(23, 23, 23, 0.3);
  padding: 0.38em 0 0.62em;
}
.drop .d-links a {
  display: flex;
  justify-content: space-between;
}
.drop .d-links a:hover {
  background: var(--ink);
  color: var(--fg);
}
.drop .d-note {
  line-height: 1.05;
}
:lang(ka) .drop .d-note,
:lang(ka) .drop .d-sub {
  line-height: 1.3;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: none;
}
.panel-open .scrim {
  display: block;
}

/* ---------- how it works (About grammar) ---------- */
.how {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s var(--out),
    visibility 0.7s;
  touch-action: pan-y;
}
.how-on .how {
  opacity: 1;
  visibility: visible;
}
.page {
  padding-top: 15.2vw;
  row-gap: 0;
}
.statement {
  font-size: var(--t-xl);
  line-height: 0.8;
  color: #5d5d5d;
  align-self: start;
}
:lang(ka) .statement {
  line-height: 1.04;
}
.prose p {
  line-height: 1.05;
  max-width: 30em;
}
.prose p + p {
  margin-top: 1.25em;
}
:lang(ka) .prose p {
  line-height: 1.32;
}
.ruled {
  margin-top: 4.2vw;
}
.ruled h3 {
  font-family: var(--serif);
  font-stretch: 62.5%;
  font-weight: 400;
  font-size: var(--t-m);
  line-height: 0.8;
  margin-bottom: 1.4em;
}
:lang(ka) .ruled h3 {
  line-height: 1.05;
}
.ruled li {
  border-top: 1px solid var(--rule);
  padding: 0.42em 0 0.72em;
  line-height: 1.05;
}
:lang(ka) .ruled li {
  line-height: 1.3;
}
.ruled li:last-child {
  border-bottom: 1px solid var(--rule);
}
.ruled.plain li {
  border: 0;
  padding: 0.2em 0 0.32em;
}
.ruled.num li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
}
.ruled.num li b {
  font-weight: 400;
  color: var(--dim);
}
.how .media {
  grid-column: 1 / span 3;
  margin-top: 9vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  align-self: start;
}
.how .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.how .lists {
  grid-column: 4 / span 2;
  margin-top: 9vw;
}
.foot {
  margin-top: 12vw;
  padding-bottom: var(--m);
}
.foot > :nth-child(1) {
  grid-column: 1;
}
.foot > :nth-child(2) {
  grid-column: 4;
}
.foot > :nth-child(3) {
  grid-column: 5;
}
.foot > :nth-child(4) {
  grid-column: 6;
}
.foot > :nth-child(5) {
  grid-column: 7;
}
.foot a {
  justify-self: start;
  align-self: start;
}

/* ---------- sign-up page ---------- */
.signup {
  min-height: 100vh;
  position: relative;
  z-index: 2;
}
.signup .statement {
  color: var(--fg);
}
.signup .lede {
  margin-top: 1.6em;
  max-width: 24em;
  line-height: 1.1;
  color: var(--dim);
}
:lang(ka) .signup .lede {
  line-height: 1.32;
}
.tabs {
  display: flex;
  gap: 2.2em;
  margin-bottom: 2.6vw;
}
.tabs .inv {
  margin: 0;
}
.form .row {
  display: block;
  border-top: 1px solid var(--rule);
  padding: 0.5em 0 0.2em;
  position: relative;
}
.form .row > span {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  color: var(--dim);
  line-height: 1;
}
.form .row > span em {
  font-style: normal;
}
.form .row.bad > span em {
  color: #ff8a7a;
}
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="password"],
.form textarea {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: inherit;
  font-size: var(--t-m);
  letter-spacing: 0;
  padding: 0.45em 0 0.55em;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form textarea {
  resize: vertical;
  min-height: 4.2em;
  line-height: 1.2;
}
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.form .row:focus-within {
  border-top-color: var(--fg);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 1.6em;
  padding: 0.9em 0 0.9em;
}
.chips label {
  cursor: pointer;
}
.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips input:focus-visible + span {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}
.chips input:checked + span {
  background: var(--fg);
  color: var(--ink);
}
.chips span {
  display: inline-block;
  padding: 0.2em 0.3em 0.12em;
  margin: -0.2em -0.3em -0.12em;
  transition:
    background-color 0.3s var(--out),
    color 0.3s var(--out);
}
.consent {
  display: grid;
  grid-template-columns: 1.6em 1fr;
  border-top: 1px solid var(--rule);
  padding: 0.85em 0 0.9em;
  line-height: 1.12;
  cursor: pointer;
}
:lang(ka) .consent {
  line-height: 1.35;
}
.consent input {
  -webkit-appearance: none;
  appearance: none;
  width: 0.82em;
  height: 0.82em;
  border: 1px solid var(--fg);
  margin-top: 0.08em;
  cursor: pointer;
  border-radius: 0;
}
.consent input:checked {
  background: var(--fg);
  box-shadow: inset 0 0 0 2px var(--bg);
}
.consent.bad {
  color: #ff8a7a;
}
.submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--fg);
  color: var(--ink);
  padding: 1.05em 0.8em 1em;
  margin-top: 1.4vw;
  line-height: 1;
  text-align: left;
  transition: opacity 0.3s;
}
.submit:hover {
  opacity: 0.86;
}
.side {
  align-self: start;
}
.side .ruled:first-child {
  margin-top: 0;
}
.terms li {
  color: var(--dim);
}
.done .statement {
  margin-bottom: 0.4em;
}
.done p {
  line-height: 1.15;
  max-width: 26em;
}
:lang(ka) .done p {
  line-height: 1.35;
}
.done a {
  display: inline-block;
  margin-top: 2.2em;
}
[hidden] {
  display: none !important;
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  :root {
    --g: 10px;
    --panel: 0px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .c1,
  .c2,
  .c4,
  .c6 {
    grid-column: 1 / -1;
  }
  .hdr {
    align-items: start;
  }
  .brand {
    grid-column: 1 / span 2;
  }
  .nav .n-films,
  .nav .n-how,
  .nav .n-signup,
  .nav .n-lang {
    grid-column: 3;
    grid-row: auto;
    justify-self: start;
    margin-bottom: 1.05em;
  }
  .nav .n-films {
    grid-row: 1;
  }
  .nav a,
  .nav button {
    align-self: start;
  }
  .loader .l-title,
  .loader .l-line,
  .loader .l-file {
    grid-column: 1 / -1;
  }
  .loader .l-note {
    grid-column: 3;
  }
  .loader .l-file {
    grid-column: 1 / span 2;
  }
  .rail,
  .thumbs {
    display: none;
  }
  .slides,
  .proj {
    top: calc(50% - 135px);
    height: 270px;
  }
  .slide .s-main {
    grid-column: 1 / span 3;
  }
  .slide .s-roles {
    grid-column: 3;
  }
  .footnote {
    width: auto;
    right: var(--m);
  }
  .proj .p-block {
    grid-column: 1 / -1;
    position: absolute;
    left: var(--m);
    right: var(--m);
    top: 300px;
    grid-template-columns: 1fr 2fr;
    row-gap: 22px;
  }
  .proj-on .slide.on .s-roles {
    opacity: 0;
  }
  .proj .p-ctl {
    grid-column: 3;
    flex-direction: column;
    gap: 1.1em;
    align-items: flex-start;
  }
  .player .bar .b-play {
    grid-column: 1;
  }
  .player .bar .b-time {
    grid-column: 2;
  }
  .player .bar .b-seek {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 14px;
  }
  .player .bar .b-right {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9em;
  }
  .drop {
    height: auto;
    padding-bottom: 28px;
    row-gap: 22px;
  }
  .drop.grid > * {
    grid-column: 1 / -1;
  }
  .page {
    padding-top: 150px;
  }
  .prose,
  .how .lists,
  .side {
    margin-top: 44px;
  }
  .how .media {
    margin-top: 56px;
  }
  .ruled {
    margin-top: 40px;
  }
  .foot {
    margin-top: 90px;
    row-gap: 10px;
  }
  .foot > :nth-child(n) {
    grid-column: 1 / -1;
  }
  .tabs {
    margin: 36px 0 22px;
  }
  .submit {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* project text + sticky intro (appended) */
.p-block {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--out), transform 0.9s var(--out);
}
.p-block.on {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}
.app {
  position: fixed;
  inset: 0;
}
@media (min-width: 768px) {
  .signup .intro {
    position: sticky;
    top: 15.2vw;
    align-self: start;
  }
}

/* fixes (appended) */
.slide.snap .w > span,
.thumb.snap,
.thumb.snap video,
.thumb.snap img {
  transition: none !important;
}
.proj {
  opacity: 0;
  transition: opacity 0.5s var(--out);
}
.proj-on .proj {
  opacity: 1;
}
@media (min-width: 768px) {
  .nav > * {
    grid-row: 1;
  }
}

/* fixes 2 (appended) */
fieldset.row {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  min-width: 0;
}
.form .row > span b {
  font-weight: 400;
  flex: none;
}
.form .row > span em {
  text-align: right;
}
.nav > * {
  justify-self: start;
}
.nav > .n-lang {
  justify-self: end;
}
.hdr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 3.2vw);
  z-index: -1;
  background: linear-gradient(var(--bg) 35%, rgba(23, 23, 23, 0));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
  opacity: 0;
  transition: opacity 0.5s var(--out);
  pointer-events: none;
}
.how-on .hdr::before,
.su .hdr::before {
  opacity: 1;
}
@media (max-width: 767px) {
  .slide .s-main,
  .slide .s-roles {
    grid-row: 1;
  }
  .how .lists,
  .how .media {
    grid-column: 1 / -1;
  }
  .proj-on .footnote {
    opacity: 0;
  }
  .footnote {
    transition: opacity 0.4s var(--out);
  }
  .hdr::before {
    height: calc(100% + 28px);
  }
}

/* scroll/text fixes (appended): sequential out → in, longer travel, no Mtavruli */
.w > span {
  transform: translateY(140%);
}
.slide.on .w > span,
.reveal.on .w > span {
  transform: translateY(0);
  transition: transform 0.9s var(--out);
  transition-delay: calc(0.42s + var(--d, 0) * 26ms);
}
.slide.out .w > span {
  transform: translateY(-140%);
  transition: transform 0.42s var(--ease);
  transition-delay: calc(var(--d, 0) * 8ms);
}
:lang(ka) .w > span {
  transform: translateY(165%);
}
:lang(ka) .slide.on .w > span {
  transform: translateY(0);
}
:lang(ka) .slide.out .w > span {
  transform: translateY(-165%);
}
:lang(ka) .caps {
  text-transform: none;
}

/* ---------- sign-in: /signup/, /login/, /auth/confirm/ (appended) ---------- */
.nav .n-how {
  grid-column: 5;
}
.nav .n-signup {
  grid-column: 6;
}
.nav .n-login {
  grid-column: 7;
}
.su .signup {
  align-content: start;
}
.su .oauth {
  display: grid;
  gap: 10px;
}
.su .g-btn {
  min-height: 44px;
  display: flex;
  justify-content: center;
  color-scheme: normal;
}
.su .pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 100%;
  min-height: 44px;
  padding: 0.8em 1.3em 0.75em;
  border-radius: 999px;
  line-height: 1;
  text-align: left;
  transition:
    opacity 0.3s,
    background-color 0.35s var(--out),
    color 0.35s var(--out);
}
.su .pill svg {
  flex: none;
  margin-top: -0.12em;
}
.su .pill.dark {
  background: #000;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.su .pill.ghost {
  width: auto;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.su .pill:hover:not(:disabled) {
  opacity: 0.86;
}
.su .pill:disabled {
  opacity: 0.5;
  cursor: default;
}
.su .pill:focus-visible,
.su .links button:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}
.su .or {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 1.1vw 0 1.5vw;
  color: var(--dim);
}
.su .or::before,
.su .or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}
.su .msg {
  padding-top: 0.9em;
  line-height: 1.2;
  color: #ff8a7a;
}
:lang(ka) .su .msg {
  line-height: 1.35;
}
.su .msg a,
.su .msg button {
  margin: 0;
  padding: 0;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.su .msg a:hover,
.su .msg button:hover {
  background: none;
  color: var(--fg);
}
.su .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9em 2em;
  margin-top: 1.8em;
}
.su .alt {
  margin-top: 2.6em;
  color: var(--dim);
}
.su .alt a {
  margin: 0 0 0 0.2em;
  color: var(--fg);
}
.su .sent .statement {
  margin-bottom: 0.4em;
}
.su .sent p {
  line-height: 1.15;
  max-width: 26em;
}
:lang(ka) .su .sent p {
  line-height: 1.35;
}
.su .sent .sent-note {
  margin-top: 1em;
  color: var(--dim);
}
.su .sent .msg {
  color: var(--fg);
}
.su .sent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em 1.8em;
  margin-top: 2.2em;
}
.su .submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.su .submit:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}
/* /auth/confirm/: the account, then an explicit Continue / Not you */
.su .intro .lede b {
  font-weight: 400;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.su .intro .warn {
  margin-top: 1em;
  color: #ff8a7a;
}
.su .confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4em;
  max-width: 24em;
  margin-top: 2.2em;
}
.su .confirm-actions .submit {
  margin-top: 0;
}
.su .intro > .submit {
  max-width: 24em;
  margin-top: 2.2em;
}
.su .sent .alt {
  margin-top: 2.4em;
}
.su .alt-more {
  margin-top: 0.9em;
}
/* Turnstile: no height until Cloudflare asks for a click, then the full column width */
.su .captcha {
  margin-top: 2.2em;
}
@media (max-width: 767px) {
  .nav .n-how,
  .nav .n-signup,
  .nav .n-login {
    grid-column: 3;
    justify-self: start;
    margin-bottom: 1.05em;
  }
  /* five links in four rows: the language link shares the last row */
  .nav .n-how {
    grid-row: 2;
  }
  .nav .n-signup {
    grid-row: 3;
  }
  .nav .n-login,
  .nav .n-lang {
    grid-row: 4;
  }
  .su .or {
    margin: 14px 0 16px;
  }
  .su .formcol > .auth:first-child,
  .su .formcol > .sent,
  .su .formcol > [data-form="password"] {
    margin-top: 36px;
  }
}

/* ---------- legal: notice under the auth forms, /privacy/ and /terms/ (appended) ---------- */
.su .legal-note {
  margin-top: 1.6em;
  max-width: 30em;
  line-height: 1.25;
  color: var(--dim);
}
:lang(ka) .su .legal-note {
  line-height: 1.4;
}
.su .legal-note a,
.l-body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.su .legal-note a:hover,
.l-body a:hover {
  text-decoration-thickness: 2px;
}
.terms .more {
  margin-top: 1.2em;
}
.lg .hdr::before {
  opacity: 1;
}
.legal {
  position: relative;
  z-index: 2;
  align-items: start;
  --t-l: calc(0.9vw + 15px);
}
/* smaller than the landing's statement so "კონფიდენციალურობის" fits one line in three columns */
.legal .statement {
  color: var(--fg);
  font-size: calc(1.6vw + 24px);
  overflow-wrap: break-word;
}
.legal .lede {
  margin-top: 1.6em;
  max-width: 24em;
  line-height: 1.15;
  color: var(--dim);
}
:lang(ka) .legal .lede {
  line-height: 1.35;
}
.legal .l-date {
  margin-top: 1.1em;
  color: var(--dim);
}
.l-toc {
  margin-top: 3.2vw;
  max-width: 26em;
}
.l-toc ol {
  list-style: none;
}
.l-toc a {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  border-top: 1px solid var(--rule);
  padding: 0.42em 0 0.62em;
  line-height: 1.05;
  transition: color 0.3s var(--out);
}
:lang(ka) .l-toc a {
  line-height: 1.3;
}
.l-toc li:last-child a {
  border-bottom: 1px solid var(--rule);
}
.l-toc b,
.l-body h2 b {
  font-weight: 400;
  color: var(--dim);
}
.l-toc a:hover b {
  color: var(--fg);
}
.l-body {
  grid-column: 4 / span 3;
  max-width: 40em;
  font-size: var(--t-m);
}
.l-body section {
  scroll-margin-top: 8vw;
}
.l-body section + section {
  margin-top: 3.6vw;
}
.l-body h2 {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 0.55em;
  margin-bottom: 0.9em;
  font-size: var(--t-l);
  line-height: 0.95;
}
:lang(ka) .l-body h2 {
  line-height: 1.2;
}
.l-body h2 b {
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: var(--t-s);
}
.l-body p,
.l-body li {
  line-height: 1.4;
  letter-spacing: -0.005em;
}
:lang(ka) .l-body p,
:lang(ka) .l-body li {
  line-height: 1.6;
  letter-spacing: 0;
}
.l-body p + p,
.l-body p + ul,
.l-body ul + p {
  margin-top: 0.85em;
}
.l-body li {
  border-top: 1px solid var(--rule);
  padding: 0.55em 0 0.65em;
}
.l-body li:last-child {
  border-bottom: 1px solid var(--rule);
}
.l-body a {
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .l-body {
    grid-column: 1 / -1;
    margin-top: 48px;
  }
  .l-toc {
    margin-top: 32px;
  }
  .l-body section {
    scroll-margin-top: 150px;
  }
  .l-body section + section {
    margin-top: 40px;
  }
}

/* ---------- 404: both languages side by side over the blurred film poster (appended) ---------- */
.nf .bg-fallback {
  display: block;
  background-image: url("/media/panther/poster.jpg");
}
.nf .intro > .submit {
  max-width: 24em;
  margin-top: 2.2em;
}
.nf [lang="en"] .caps {
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .nf .intro + .intro {
    margin-top: 64px;
  }
}
