/* PolySans Neutral everywhere. The trial files hold plain ASCII only, so ī, ā, curly quotes and
   hyphens come from Hanken Grotesk until the full licensed font replaces them. */
@font-face { font-family: 'PolySans'; src: url('/fonts/PolySansTrial-Neutral.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PolySans'; src: url('/fonts/PolySansTrial-NeutralItalic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --charcoal: #1b1a18;
  --deep: #141311;
  --white: #eee5d3;
  --grey: #a39a8a;
  --gold: #c9a35f;
  --serif: 'PolySans', 'Hanken Grotesk', system-ui, sans-serif;
  --sans: 'PolySans', 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #4a463f var(--deep); }
::selection { background: var(--gold); color: var(--deep); }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  pointer-events: none;
}
.mark {
  pointer-events: auto;
  font: 400 1.0625rem/1 var(--serif);
  text-decoration: none;
  color: var(--white);
  text-shadow: 0 1px 12px rgb(20 19 17 / .5);
}

/* reels: one world per screen */
.reel {
  position: relative;
  height: 100svh; min-height: 520px;
  overflow: hidden;
  background: var(--deep);
  display: grid;
  align-items: end;
}
.reel video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reel video:not(.on) { visibility: hidden; } /* the next shot, loading underneath */
.reel::after { /* lets the words sit on any frame */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(20 19 17 / .82) 0%, rgb(20 19 17 / .35) 34%, transparent 60%),
    linear-gradient(to right, rgb(20 19 17 / .5), transparent 55%),
    linear-gradient(to bottom, rgb(20 19 17 / .45), transparent 18%);
  pointer-events: none;
}
.reel-text {
  position: relative; z-index: 1;
  padding: 0 var(--gutter) clamp(28px, 7vh, 72px);
  max-width: 46rem;
}
.reel h2 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: .3em;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.75rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: .45em;
  max-width: 20ch;
}
.hero .reel-text { max-width: 64rem; }
.reel-text p { max-width: 34em; color: rgb(238 229 211 / .86); }
.enter {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  padding: .25em 0;
}
.enter:hover { text-decoration-thickness: 2px; }

/* what goes into a world */
.craft { padding: clamp(96px, 16vw, 200px) var(--gutter); }
.craft h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1; margin-bottom: 1.2em; }
.crafts { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem clamp(1.5rem, 3vw, 3rem); max-width: 76rem; }
.crafts dt { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; margin-bottom: .5rem; }
.crafts dd { margin: 0; color: var(--grey); }

/* the lands: one logo per world, each a door into it */
.lands { padding: clamp(80px, 12vw, 160px) var(--gutter); background: var(--deep); }
.lands .everywhere { display: block; width: min(22rem, 70%); height: auto; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.lands h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1; margin-bottom: 1.4em; }
.land-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); max-width: 68rem;
}
.logo { height: 128px; display: flex; align-items: center; transition: opacity .2s; }
.logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo:hover { opacity: .75; }
.ink { filter: invert(.93) sepia(.15); } /* black artwork, drawn in the page's white */

/* the mission of Lila */
.mission { padding: clamp(96px, 16vw, 200px) var(--gutter); }
.mission h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1; margin-bottom: 1.2em; }
.mission-body { max-width: 38rem; display: grid; gap: 1.25em; color: rgb(238 229 211 / .86); }
.mission .lede { font: 400 clamp(1.4rem, 2.4vw, 1.875rem)/1.35 var(--serif); color: var(--white); margin-bottom: .3em; }
.mission .builders { color: var(--grey); margin-top: .5em; }

/* contact, over the raft */
.contact {
  position: relative;
  min-height: 100svh;
  background: var(--deep);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.contact img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.contact::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgb(20 19 17 / .88) 0%, rgb(20 19 17 / .55) 45%, transparent 75%);
}
.contact-body {
  position: relative; z-index: 1;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  width: 100%;
  max-width: calc(34rem + 2 * var(--gutter));
}
.contact h2 { font-size: clamp(2.75rem, 7vw, 6rem); line-height: .95; margin-bottom: .35em; }
.contact-body > p { color: rgb(238 229 211 / .86); margin-bottom: 2rem; }
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-size: .9375rem; color: var(--grey); }
.form input, .form textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--white);
  background: rgb(20 19 17 / .7);
  border: 1px solid rgb(238 229 211 / .28);
  border-radius: 2px;
  padding: .7rem .8rem;
  caret-color: var(--gold);
}
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form textarea { resize: vertical; min-height: 7rem; }
.form .hp { position: absolute; left: -9999px; }
.form button {
  justify-self: start;
  font: 500 1rem/1 var(--sans);
  color: var(--deep); background: var(--white);
  border: 0; border-radius: 2px;
  padding: .95rem 1.4rem;
  cursor: pointer;
}
.form button:hover { background: #fff; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-status { min-height: 1.5em; font-size: .9375rem; }

.foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  color: var(--grey); font-size: .9375rem;
}

@media (max-width: 1000px) {
  .crafts { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}
@media (max-width: 520px) {
  .land-list { gap: 1.25rem; }
  .logo { height: 72px; }
  .crafts { grid-template-columns: 1fr; row-gap: 1.75rem; }
}
@media (max-width: 760px) {
  .reel-text { padding-bottom: 44px; }
  /* the raft gets its own band above the form */
  .contact { display: block; min-height: 0; }
  .contact::after { content: none; }
  .contact img {
    position: relative; height: 62svh;
    object-position: 78% 60%;
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .contact-body { margin-top: -18svh; padding-top: 0; }
}
