/* Genie Frame teaser. White page, one green (the frames coming alive), big friendly type. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Comfortaa"; src: url("/fonts/comfortaa-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --white: #ffffff;
  --mist: #f1f5f2;
  --ink: #101915;
  --ink-soft: #4b5a53;
  --line: #d5ddd8;
  --alive: #1fd06a;
  --alive-deep: #0b8f47;
  --alarm: #c0321f;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5.5vw, 40px);
  --wide: 1120px;
  --measure: 33rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); }
h1, h2, h3, p, fieldset, legend, figure { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--alive); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--alive-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 12.2vw, 4.4rem); line-height: 0.94; }
h1 span { display: block; }
h2 { font-size: clamp(2.1rem, 8.4vw, 3.4rem); line-height: 0.98; }
h3 { font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.125rem, 4.4vw, 1.3rem); line-height: 1.42; color: var(--ink-soft); max-width: 30rem; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
.optional { font-weight: 400; font-size: 0.8125rem; color: var(--ink-soft); white-space: nowrap; }

.top, .hero, .ask, .how, .makers__inner, .foot { width: min(100%, var(--wide)); margin-inline: auto; padding-inline: var(--gutter); }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: max(16px, env(safe-area-inset-top)) 6px; }
.wordmark { font: 700 1.3rem/1 "Comfortaa", var(--text); letter-spacing: -0.01em; text-decoration: none; }
.wordmark::before { content: ""; display: inline-block; width: 0.78em; height: 0.98em; margin-right: 0.42em; vertical-align: -0.12em; border: 0.17em solid var(--alive); border-radius: 0.22em; }
.top__link { font-weight: 600; font-size: 0.9375rem; }

.button { display: inline-block; padding: 17px 28px; border: 0; border-radius: 999px; background: var(--alive); color: var(--ink);
  font: 600 1.0625rem/1.2 var(--text); text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--ink); color: var(--white); }
.button[disabled] { opacity: 0.55; cursor: progress; }
.button--wide { width: 100%; }
.button--ink { background: var(--ink); color: var(--white); }
.button--ink:hover { background: var(--white); color: var(--ink); }

/* ---------- hero: the words, then the wall you can change ---------- */
.hero { display: grid; gap: 26px; padding-block: 22px 0; }
.hero__words { display: grid; gap: 16px; justify-items: start; }
.hero__cta { display: none; }

.wall { justify-self: center; width: min(100%, 26rem, calc(82svh * 9 / 16)); }
.wall__window { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 30px; background: var(--mist);
  box-shadow: 0 34px 60px -34px rgb(16 25 21 / 0.5), 0 0 0 1px rgb(16 25 21 / 0.06); }
/* one film holds the three walls side by side, in step: showing another is a slide of the film, so the camera never jumps */
.wall__video { position: absolute; top: 0; left: 0; height: 100%; width: 300%; max-width: none; object-fit: fill; transition: opacity 0.25s; }
.wall[data-show="videos"] .wall__video { transform: translateX(-33.3333%); }
.wall[data-show="world"] .wall__video { transform: translateX(-66.6667%); }
.wall.is-wrapping .wall__video { opacity: 0; }
.wall__switch { position: absolute; left: 10px; right: 10px; top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px;
  border-radius: 999px; background: rgb(255 255 255 / 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wall__switch button { padding: 11px 4px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 0.9375rem/1.1 var(--text); cursor: pointer; }
.wall__switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.wall__pause { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.86); cursor: pointer; }
.wall__pause::before { content: ""; position: absolute; inset: 13px 14px; border-inline: 4px solid var(--ink); }
.wall__pause[aria-pressed="true"]::before { inset: 12px 12px 12px 16px; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: var(--ink); }
.wall figcaption { margin-top: 14px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); text-align: center; text-wrap: balance; }

/* ---------- the question ---------- */
.ask { display: grid; gap: 30px; padding-block: clamp(64px, 15vw, 120px) 0; }
.ask__story { display: grid; gap: 16px; max-width: var(--measure); }
.ask__story p { color: var(--ink-soft); font-size: 1.125rem; }
.ask__form { max-width: 34rem; }
form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label, .choices legend { font-weight: 600; }
input[type="email"], input[type="text"] { width: 100%; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink);
  font: 400 1rem/1.3 var(--text); }
input[type="email"]:focus-visible, input[type="text"]:focus-visible { outline: 3px solid var(--alive); outline-offset: 0; border-color: var(--ink); border-radius: 14px; }
input[aria-invalid="true"] { border-color: var(--alarm); }
.field__error, .form__status[data-kind="error"] { color: var(--alarm); font-size: 0.9375rem; }
.form__status:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 12px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 11px 17px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.9375rem; line-height: 1.2; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--alive); outline-offset: 2px; }

.trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 12px; padding: 28px; border-radius: 24px; background: var(--mist); }
.done:focus-visible { outline: none; }
.done h3 { font-size: 2rem; }
.done h3::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--alive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M13 22.5l6 6 12-13' fill='none' stroke='%23101915' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / cover; }

/* ---------- what it is: three pictures, each cut to the shape of a frame on the wall ---------- */
.how { display: grid; gap: clamp(34px, 8vw, 56px); padding-block: clamp(72px, 16vw, 130px) 0; }
.facts { display: grid; gap: clamp(44px, 10vw, 60px); }
.fact { display: grid; gap: 10px; align-content: start; max-width: var(--measure); }
.fact p { color: var(--ink-soft); }
.shape { width: min(72%, 17rem); height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 14px; }
.shape--arch { border-radius: 999px 999px 26px 26px; }
.shape--oval { border-radius: 50%; }
.shape--soft { border-radius: 64px 26px 64px 26px; }

/* ---------- for people who would make them ---------- */
.makers { margin-top: clamp(72px, 16vw, 130px); background: var(--alive); }
.makers__inner { display: grid; gap: 18px; justify-items: start; padding-block: clamp(56px, 13vw, 100px); }
.makers p { max-width: var(--measure); font-size: 1.125rem; }
.makers .button { margin-top: 10px; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-block: 34px max(34px, env(safe-area-inset-bottom)); font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- wide screens ---------- */
@media (min-width: 880px) {
  .top { padding-block: 26px 0; }
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(40px, 6vw, 90px); padding-block: 30px 0; }
  .hero__words { gap: 26px; }
  h1 { font-size: clamp(3.2rem, 5.7vw, 5.1rem); white-space: nowrap; }
  .hero__cta { display: inline-block; }
  .wall { justify-self: end; width: min(100%, 27rem, calc(80vh * 9 / 16)); }
  .ask { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
  .ask__story { position: sticky; top: 40px; }
  .ask__form { justify-self: end; width: 100%; padding: 38px; border-radius: 30px; background: var(--mist); }
  .ask__form .done { padding: 0; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
  .facts { align-items: start; }
  .shape { width: min(100%, 15rem); }
  .makers__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(40px, 7vw, 100px); }
  .makers__inner h2 { grid-row: 1 / span 3; }
  .makers__inner p, .makers__inner .button { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall__video { transition: none; }
}

/* ---------- the privacy page and the missing page ---------- */
.plain { max-width: 40rem; margin: 0 auto; padding: clamp(28px, 7vw, 60px) var(--gutter) 80px; display: grid; gap: 18px; }
.plain h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); margin-top: 22px; }
.plain h2 { font-size: 1.6rem; margin-top: 22px; letter-spacing: -0.02em; }
.plain p, .plain li { color: var(--ink-soft); }
.plain ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
