@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #121513;
  --bg-raised: #181c19;
  --surface: #1f2420;
  --line: #2d332e;
  --line-strong: #3e463f;
  --text: #f0f0e8;
  --text-soft: #d9dbd1;
  --text-2: #bcc0b4;
  --text-3: #9ca194;
  --lime: #cfe8a0;
  --lime-strong: #bddc88;
  --on-lime: #121609;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 3rem);
  --section: clamp(5.5rem, 3.5rem + 6vw, 9.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: clamp(100%, 0.55rem + 0.38vw, 118.75%);
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: #343b35 var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--lime);
  color: var(--on-lime);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
ol,
ul,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -5rem;
  left: var(--gutter);
  z-index: 30;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent {
  color: var(--lime);
}

/* Header */

.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.site-head--static {
  position: relative;
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo__mark {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--lime);
}

.logo__dot {
  color: var(--lime);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 2.25rem;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:not(.nav__lang)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}

.nav a:hover {
  color: var(--text);
}

.nav a:not(.nav__lang):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav .nav__lang {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.nav .nav__lang:hover {
  border-color: var(--lime);
  color: var(--lime);
}

@media (max-width: 47.99rem) {
  .site-head__inner {
    gap: 1rem;
  }

  .nav ul {
    gap: 0.25rem 1.25rem;
  }

  .nav .nav__opt {
    display: none;
  }
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.55rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0.6rem 1.4rem -0.7rem rgb(0 0 0 / 0.55);
  transition:
    background 180ms ease,
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.btn:hover {
  background: var(--lime-strong);
  box-shadow: 0 0.9rem 1.8rem -0.8rem rgb(0 0 0 / 0.6);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.link-arrow .icon {
  transition: transform 260ms var(--ease-out);
}

.link-arrow:hover {
  color: var(--lime);
}

.link-arrow:hover .icon {
  transform: translateY(3px);
}

/* Grain: a quiet film texture laid over photographs */

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/img/grain.png") repeat;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Phones redraw the hero every frame while the mist moves; a blended
   full-screen grain on top costs more there than it adds on a small screen. */
@media (pointer: coarse) {
  .grain::after {
    display: none;
  }
}

/* Hero: a title card over the night */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  /* --screen is the height locked by site.js; without JS the hero follows 100svh */
  min-height: max(var(--screen, 100svh), 42rem);
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -3;
}

/* Two layers of mist drifting over the water at different speeds */

.hero__fog {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.hero__fog span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  transform-origin: 50% 100%;
}

.hero__fog .fog-far {
  height: 72%;
  background-image: url("/assets/img/mist-far.webp");
  opacity: 0.5;
}

.hero__fog .fog-near {
  height: 46%;
  background-image: url("/assets/img/mist-near.webp");
  opacity: 0.72;
}

@media (max-aspect-ratio: 1/1) {
  .hero__fog .fog-far {
    height: 42%;
  }

  .hero__fog .fog-near {
    height: 30%;
  }
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(18 21 19 / 0.7) 0, rgb(18 21 19 / 0) 10rem),
    linear-gradient(0deg, rgb(18 21 19 / 0.8) 0, rgb(18 21 19 / 0.6) 4rem, rgb(18 21 19 / 0) 10rem),
    linear-gradient(90deg, rgb(18 21 19 / 0.82) 0%, rgb(18 21 19 / 0.45) 36%, rgb(18 21 19 / 0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgb(18 21 19 / 0.3) 16%, rgb(18 21 19 / 0) 36%);
}

.hero__body {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-block: 9rem clamp(3rem, 2rem + 4vh, 5.5rem);
}

.hero__title {
  /* on phones the size follows the width so "Night Commit." stays on one line */
  font-size: clamp(2.6rem, min(14.2vw - 0.15rem, 1.5rem + 8vw), 6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero__title .w,
.hero__title .dot {
  display: inline-block;
}

.hero__lead {
  max-width: 21ch;
  margin-top: 1.6rem;
  color: var(--text-soft);
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.4rem;
}

.hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgb(240 240 232 / 0.12);
  color: var(--text-2);
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-aspect-ratio: 1/1) {
  .hero__art img {
    object-position: 50% 100%;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgb(18 21 19 / 0.86) 0%, rgb(18 21 19 / 0.45) 40%, rgb(18 21 19 / 0) 60%),
      linear-gradient(0deg, rgb(18 21 19 / 0.8) 0, rgb(18 21 19 / 0.6) 4rem, rgb(18 21 19 / 0) 10rem),
      linear-gradient(0deg, var(--bg) 0%, rgb(18 21 19 / 0) 18%);
  }

  .hero__body {
    align-self: start;
    padding-block: 7rem 2rem;
  }

  /* tall enough that the doorway (58% down the art) starts below the text */
  .hero {
    min-height: max(var(--screen, 100svh), 47.5rem);
  }
}

/* Sections */

.section {
  position: relative;
  padding-block: var(--section);
}

.section--raised {
  background: var(--bg-raised);
}

.section__title {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.section__lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

/* What we do: the work as a line of commits */

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 1.05rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--lime), rgb(207 232 160 / 0.35));
  transform-origin: top;
}

.timeline__item {
  position: relative;
  display: grid;
  gap: 0.5rem;
  margin-left: 3rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--bg-raised);
  transition:
    border-color 220ms ease,
    transform 300ms var(--ease-out);
}

.timeline__item:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.timeline__item::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 1.75rem;
  left: -2.45rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0.35rem var(--bg);
}

/* The last dot sends out a ring from under its halo; opacity and scale only,
   so the pulse runs on the compositor instead of repainting every frame. */
.timeline__item:last-child::after {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: -2.8rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgb(207 232 160 / 0.45);
  opacity: 0;
  pointer-events: none;
}

.timeline__n {
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.timeline__item h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.timeline__item p {
  color: var(--text-3);
  font-size: 0.97rem;
  line-height: 1.55;
}

@media (min-width: 60rem) {
  .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-top: 2.6rem;
  }

  .timeline::before {
    top: 0.45rem;
    right: calc((100% - 4 * 1rem) / 5 - 0.45rem);
    bottom: auto;
    left: 0.45rem;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--lime), rgb(207 232 160 / 0.35));
    transform-origin: left;
  }

  .timeline__item {
    margin-left: 0;
  }

  .timeline__item::before {
    top: -2.6rem;
    left: 0;
  }

  .timeline__item:last-child::after {
    top: -2.95rem;
    left: -0.35rem;
  }
}

/* First app */

.app__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.app__how {
  margin-top: 2.75rem;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}

.steps {
  display: grid;
  margin-top: 1rem;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.steps__n {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgb(207 232 160 / 0.45);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
}

.steps p {
  align-self: center;
  color: var(--text-2);
}

.app__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  color: var(--text-3);
  font-size: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(207 232 160 / 0.45);
  border-radius: 999px;
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
}

.chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime);
}

/* The story screen in front of a scene from its world */

.showcase {
  position: relative;
  display: grid;
  justify-items: center;
}

.showcase__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--surface);
}

.showcase__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.showcase__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(18 21 19 / 0) 50%, rgb(18 21 19 / 0.55) 100%);
}

.showcase .phone {
  margin-top: -40%;
}

.showcase figcaption {
  margin-top: 1.5rem;
  color: var(--text-3);
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.phone {
  position: relative;
  z-index: 2;
  width: clamp(15.5rem, 13rem + 7vw, 17.5rem);
  aspect-ratio: 9 / 19.5;
  padding: 0.55rem;
  border-radius: 2.6rem;
  background: #222621;
  box-shadow:
    0 2.5rem 4rem -1.5rem rgb(0 0 0 / 0.85),
    0 0 0 1px #3a413a,
    inset 0 0 0 1px #2c312c;
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 2.1rem;
  background: #0f110f;
  color: var(--text);
  font-family: var(--display);
}

.phone__island {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 30%;
  height: 1.25rem;
  border-radius: 1rem;
  background: #000;
  transform: translateX(-50%);
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem 0;
  font-size: 0.62rem;
  font-weight: 600;
}

.phone__status-icons {
  display: flex;
  gap: 0.25rem;
}

.phone__status-icons i {
  display: block;
  width: 0.85rem;
  height: 0.45rem;
  border-radius: 0.15rem;
  background: var(--text);
}

.phone__status-icons i:first-child {
  width: 0.6rem;
  opacity: 0.85;
}

.phone__top {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) 1.4rem;
  align-items: center;
  padding: 0.85rem 0.9rem 0.6rem;
  text-align: center;
}

.phone__top .icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-2);
}

.phone__top strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
}

.phone__top span {
  display: block;
  color: var(--text-3);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone__image {
  position: relative;
  height: 36%;
  margin: 0 0.7rem;
  overflow: hidden;
  border-radius: 1rem;
}

.phone__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.phone__body {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1rem 0;
  font-family: var(--body);
  font-size: 0.68rem;
  line-height: 1.55;
}

.phone__body p {
  color: var(--text-2);
}

.phone__body .phone__line {
  color: var(--text);
}

.phone__choices {
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.75rem 0.8rem 0;
}

.phone__choice {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  font-size: 0.64rem;
  font-weight: 500;
}

.phone__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.55rem 0.8rem 1.1rem;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-3);
  font-family: var(--body);
  font-size: 0.64rem;
}

.phone__input span:first-child::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-left: 0.15rem;
  vertical-align: -0.1em;
  background: var(--lime);
}

.phone__send {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
}

.phone__send .icon {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2.2;
}

@media (min-width: 64rem) {
  .app__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 6rem;
  }

  .showcase {
    justify-items: end;
    padding-bottom: 4rem;
  }

  .showcase__scene {
    width: 86%;
    aspect-ratio: 5 / 6;
  }

  .showcase .phone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(14rem, 9rem + 6vw, 16rem);
    margin: 0;
  }

  .showcase figcaption {
    position: absolute;
    right: 0;
    bottom: 1.25rem;
    margin: 0;
  }
}

/* About: the desk where the apps are made */

.about__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about__photo {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 4 / 5;
  max-height: 34rem;
  background: var(--surface);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.about__text {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

@media (min-width: 56rem) {
  .about__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 5rem;
  }

  .about__photo {
    max-height: none;
  }
}

/* Contact: a lit closing band */

.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  background: var(--lime);
  color: var(--on-lime);
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.contact__title {
  color: var(--on-lime);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin-top: 1.25rem;
  color: var(--on-lime);
  font-family: var(--display);
  font-size: min(1.8rem, 5.6vw);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.contact__mail span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 0.08em;
  overflow-wrap: break-word;
  transition: background-size 300ms var(--ease-out);
}

.contact__mail:hover span {
  background-size: 0% 2px;
  background-position: 100% 100%;
}

.contact__mail .icon {
  width: 0.9em;
  height: 0.9em;
  stroke-width: 2;
  transition: transform 260ms var(--ease-out);
}

.contact__mail:hover .icon {
  transform: translate(4px, -4px);
}

.contact__note {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: #2e3624;
  font-size: 1.05rem;
}

.contact__mark {
  position: absolute;
  top: 50%;
  right: max(var(--gutter), 50% - 38rem);
  width: clamp(7rem, 4rem + 8vw, 13rem);
  height: auto;
  color: rgb(18 22 9 / 0.14);
  transform: translateY(-50%);
}

.contact__mark path,
.contact__mark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 47.99rem) {
  .contact__mark {
    top: auto;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 8rem;
    transform: none;
  }
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.92rem;
}

.site-foot__inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem 3rem;
}

.site-foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding: 0;
  list-style: none;
}

.site-foot ul a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--text-2);
  transition: color 160ms ease;
}

.site-foot ul a:hover {
  color: var(--lime);
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* Documents */

.doc-head {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.doc-head h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  letter-spacing: -0.035em;
}

.doc-head__meta {
  margin-top: 1rem;
  color: var(--text-3);
}

.doc {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section);
}

.doc__body {
  max-width: 46rem;
}

.doc__body > * + * {
  margin-top: 1em;
}

.doc__lead {
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1.6;
}

.doc h2 {
  margin-top: 2.6em;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  line-height: 1.2;
}

.doc h2 + * {
  margin-top: 0.85em;
}

.doc a {
  color: var(--text);
}

.doc a:hover {
  color: var(--lime);
}

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 0.45em;
}

.doc li::marker {
  color: var(--lime);
}

.doc dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5em 1.75em;
  margin-block: 1.25em 0;
}

.doc dt {
  color: var(--text-3);
}

.doc dd {
  margin: 0;
  color: var(--text-soft);
}

.doc code {
  font-size: 0.92em;
}

.todo {
  padding: 0 0.3em;
  border-radius: 0.2em;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 30rem) {
  .doc dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1em;
  }

  .doc dd + dt {
    margin-top: 0.7em;
  }
}

/* Not found */

.lost {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
}

.lost__art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.lost__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

.lost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(18 21 19 / 0.9) 0%, rgb(18 21 19 / 0.55) 42%, rgb(18 21 19 / 0) 70%);
}

.lost__body {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-block: 8rem 4rem;
}

.lost__copy {
  max-width: 36rem;
}

.lost h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  letter-spacing: -0.035em;
}

.lost p {
  margin-top: 1.25rem;
}

.lost__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

@media (max-aspect-ratio: 1/1) {
  .lost::before {
    background: linear-gradient(180deg, rgb(18 21 19 / 0.9) 0%, rgb(18 21 19 / 0.55) 50%, rgb(18 21 19 / 0.2) 100%);
  }

  .lost__body {
    align-self: start;
  }
}

/* Motion. Everything is visible without it; with it, the light comes on,
   the commits land one by one and each section rises into place. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero__art img {
    animation:
      lights-on 2.4s var(--ease-out) both,
      breathe 26s ease-in-out 2.4s infinite alternate;
  }

  .hero__title .w {
    animation: rise 1.1s var(--ease-out) both;
  }

  .hero__title .w + .w {
    animation-delay: 0.12s;
  }

  .hero__title .dot {
    animation: commit 700ms var(--ease-out) 1.1s both;
  }

  .hero__lead {
    animation: rise 1.1s var(--ease-out) 0.28s both;
  }

  .hero__actions {
    animation: rise 1.1s var(--ease-out) 0.42s both;
  }

  .hero__foot {
    animation: fade 1.4s ease 0.9s both;
  }

  .site-head {
    animation: fade 1.2s ease 0.2s both;
  }

  .hero__fog .fog-far {
    animation:
      fog-drift 45s linear infinite,
      fog-swell 17s ease-in-out infinite alternate;
  }

  .hero__fog .fog-near {
    animation:
      fog-drift 24s linear infinite,
      fog-breathe 7s ease-in-out infinite alternate,
      fog-swell 11s ease-in-out -4s infinite alternate;
  }

  [data-reveal] {
    transition:
      opacity 0.9s ease,
      transform 1s var(--ease-out);
  }

  [data-reveal].is-pending {
    opacity: 0;
    transform: translateY(2rem);
  }

  [data-reveal="1"] {
    transition-delay: 0.1s;
  }

  [data-reveal="2"] {
    transition-delay: 0.2s;
  }

  [data-reveal="3"] {
    transition-delay: 0.3s;
  }

  .timeline::before {
    transition: transform 1.4s var(--ease-out) 0.15s;
  }

  .timeline.is-pending::before {
    transform: scale(0, 1);
  }

  .timeline__item {
    transition:
      opacity 0.8s ease,
      transform 0.9s var(--ease-out),
      border-color 220ms ease;
  }

  .timeline.is-pending .timeline__item {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  .timeline__item:nth-child(2) {
    transition-delay: 0.2s, 0.2s, 0s;
  }

  .timeline__item:nth-child(3) {
    transition-delay: 0.4s, 0.4s, 0s;
  }

  .timeline__item:nth-child(4) {
    transition-delay: 0.6s, 0.6s, 0s;
  }

  .timeline__item:nth-child(5) {
    transition-delay: 0.8s, 0.8s, 0s;
  }

  .timeline__item:last-child::after {
    animation: ping 2.6s ease-out 1.8s infinite;
  }

  .showcase .phone {
    animation: float 7s ease-in-out infinite;
  }

  .phone__choice:first-child {
    position: relative;
  }

  /* the picked state is a lit copy faded in on top, so only opacity animates */
  .phone__choice:first-child::after {
    content: attr(data-label);
    position: absolute;
    inset: -1px;
    padding: inherit;
    border: 1px solid var(--lime);
    border-radius: inherit;
    background: var(--lime);
    color: var(--on-lime);
    opacity: 0;
    animation: pick 7s ease-in-out 1.5s infinite;
  }

  .phone__input span:first-child::after {
    animation: caret 1.1s steps(1) infinite;
  }

  .contact__mark path,
  .contact__mark circle {
    stroke-dasharray: 120;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2s var(--ease-out) 0.2s;
  }

  .contact.is-pending .contact__mark path,
  .contact.is-pending .contact__mark circle {
    stroke-dashoffset: 120;
  }
}

@media (max-width: 59.99rem) and (prefers-reduced-motion: no-preference) {
  .timeline.is-pending::before {
    transform: scale(1, 0);
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (pointer: fine) {
    .hero__art {
      animation: parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 var(--screen, 100vh);
    }
  }
}

@keyframes lights-on {
  from {
    filter: brightness(0.4) saturate(0.6);
  }

  to {
    filter: none;
  }
}

@keyframes breathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes commit {
  from {
    transform: scale(0);
  }

  60% {
    transform: scale(1.4);
  }

  to {
    transform: scale(1);
  }
}

@keyframes parallax {
  to {
    transform: translateY(16%);
  }
}

@keyframes fog-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes fog-breathe {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 0.88;
  }
}

@keyframes fog-swell {
  from {
    scale: 1 0.92;
  }

  to {
    scale: 1 1.14;
  }
}

@keyframes ping {
  from {
    opacity: 1;
    transform: scale(1);
  }

  70%,
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.7rem);
  }
}

@keyframes pick {
  0%,
  28%,
  76%,
  100% {
    opacity: 0;
  }

  34%,
  70% {
    opacity: 1;
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@media (forced-colors: active) {
  .btn,
  .chip {
    border: 1px solid CanvasText;
  }
}

@media print {
  html,
  body {
    background: #fff;
    color: #000;
  }

  .site-head nav,
  .hero__art,
  .lost__art,
  .hero__fog,
  .skip {
    display: none;
  }

  h1,
  h2,
  h3,
  .doc__lead,
  .doc dd,
  .todo {
    color: #000;
  }

  [data-reveal].is-pending,
  .timeline.is-pending .timeline__item {
    opacity: 1;
    transform: none;
  }
}
