:root {
  --night: #0e0e0e;
  --night-2: #171717;
  --bone: #ecebe6;
  --smoke: #9a9993;
  --fog: #a3a29b;
  --paper: #e8e7e3;
  --rule: rgb(236 235 230 / 0.28);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --hand: "Reenie Beanie", "Comic Sans MS", cursive;
  --pad: clamp(1rem, 2.6vw, 2.25rem);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.is-loading body,
.menu-open body {
  overflow: hidden;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 5px;
}

::selection {
  background: var(--bone);
  color: var(--night);
}

.defs {
  position: absolute;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--bone);
  color: var(--night);
  padding: 0.5rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.skip:focus {
  top: 1rem;
}

[id] {
  scroll-margin-top: 2rem;
}

.hand {
  font-family: var(--hand);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Intro */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--night);
  cursor: pointer;
  transition: transform 1s var(--ease);
}

.intro-draw {
  width: min(92vw, 1000px);
  height: auto;
  overflow: visible;
}

.ink {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.note,
.intro-word {
  font-family: var(--hand);
  fill: currentColor;
  opacity: 0;
}

.note {
  font-size: 30px;
}

.intro-word {
  font-size: 58px;
  letter-spacing: 0.06em;
}

.is-ready .loop {
  animation: draw 1.5s 0.2s var(--ease-out) forwards;
}

.is-ready .arrow {
  animation: draw 0.7s var(--ease-out) forwards;
}

.is-ready .a1 { animation-delay: 0.7s; }
.is-ready .a2 { animation-delay: 0.85s; }
.is-ready .a3 { animation-delay: 1s; }
.is-ready .a4 { animation-delay: 1.15s; }

.is-ready .intro-word {
  animation: appear 0.4s 0.05s steps(3) forwards;
}

.is-ready .note {
  animation: appear 0.3s steps(2) forwards;
}

.is-ready .n1 { animation-delay: 0.9s; }
.is-ready .n2 { animation-delay: 1.1s; }
.is-ready .n3 { animation-delay: 1.3s; }
.is-ready .n4 { animation-delay: 1.45s; }

.intro-done .intro {
  transform: translateY(-100%);
}

.intro-gone .intro {
  display: none;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.menu-open .site-header {
  mix-blend-mode: normal;
  color: var(--night);
}

.brand {
  display: inline-flex;
  color: inherit;
}

.brand-mark {
  width: 1.7rem;
  height: 2.25rem;
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.08);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.45rem;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-plus {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.6s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-plus {
  transform: rotate(45deg);
}

/* Menu */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--pad) + 4.5rem) var(--pad) var(--pad);
  background: var(--fog);
  color: var(--night);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
}

.menu-logo {
  justify-self: center;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.menu-logo sup {
  font-size: 0.35em;
  font-style: normal;
}

.menu-list {
  align-self: center;
  margin-top: 1.5rem;
}

.menu-list li {
  overflow: hidden;
  border-bottom: 1px dashed rgb(14 14 14 / 0.55);
}

.menu-list li:first-child {
  border-top: 1px dashed rgb(14 14 14 / 0.55);
}

.menu-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin-left: var(--x);
  padding: 0.05em 0.15em 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8.2vh, 5.6rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}

.menu-list a span {
  transition: font-style 0s, letter-spacing 0.5s var(--ease-out);
}

.menu-list a:hover span,
.menu-list a:focus-visible span {
  font-style: italic;
  letter-spacing: 0.02em;
}

.menu-list sup {
  font-family: var(--hand);
  font-size: 0.32em;
  margin-top: 0.4em;
}

.menu.is-open .menu-list a {
  transform: none;
}

.menu.is-open .menu-list li:nth-child(1) a { transition-delay: 0.25s; }
.menu.is-open .menu-list li:nth-child(2) a { transition-delay: 0.31s; }
.menu.is-open .menu-list li:nth-child(3) a { transition-delay: 0.37s; }
.menu.is-open .menu-list li:nth-child(4) a { transition-delay: 0.43s; }
.menu.is-open .menu-list li:nth-child(5) a { transition-delay: 0.49s; }
.menu.is-open .menu-list li:nth-child(6) a { transition-delay: 0.55s; }

.menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  font-size: 1rem;
}

.menu-foot .hand {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.menu-foot p:nth-child(2) {
  text-align: center;
}

.menu-foot p:last-child {
  text-align: right;
}

/* Hero */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, #1d1d1d 0%, #0a0a0a 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 70% at 50% 45%, transparent 40%, rgb(0 0 0 / 0.75) 100%),
    linear-gradient(transparent 60%, rgb(0 0 0 / 0.6));
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.g1 {
  width: 46vw;
  height: 46vw;
  left: 8%;
  top: 6%;
  background: #3a3a38;
  animation: drift 18s ease-in-out infinite alternate;
}

.g2 {
  width: 38vw;
  height: 38vw;
  right: 4%;
  bottom: 0;
  background: #2b2b2a;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.hero-mark {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(70vh, 62vw);
  height: min(93vh, 82vw);
  opacity: 0.16;
  filter: blur(2px);
  transform: translate(-50%, -50%) translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--rot, -8deg));
  transition: transform 1.2s var(--ease-out);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}

.hero-center {
  align-self: center;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 5rem var(--pad) 1rem;
}

.logotype {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(4.6rem, 18vw, 15rem);
  line-height: 0.78;
  letter-spacing: 0.02em;
}

.letters {
  display: inline-flex;
  overflow: hidden;
  padding: 0.14em 0.1em 0.22em;
}

.letters span {
  display: inline-block;
}

.logotype sup {
  font-size: 0.22em;
  font-weight: 400;
  margin-top: 0.72em;
  margin-left: -0.08em;
}

.hero-text {
  max-width: 25ch;
  margin-top: 1.4rem;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.12;
}

.hero-hand {
  margin-top: 1.2rem;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
}

.hero-year {
  justify-self: center;
  padding: 0.7rem 0 0.9rem;
  font-size: 1.7rem;
}

.preview-ill {
  fill: none;
  stroke: #6b6b67;
  stroke-width: 2;
}

.preview-ill .fill {
  fill: var(--bone);
  stroke: none;
}

.preview-ill .dash {
  stroke-dasharray: 4 6;
}

/* Tunnel */

.tunnel {
  --t-accent: var(--bone);
  --t-split-a: rgb(255 0 60 / 0.7);
  --t-split-b: rgb(0 243 255 / 0.7);
  --t-card: rgb(12 12 12 / 0.45);
  --t-border: rgb(236 235 230 / 0.12);
  position: relative;
  height: 600vh;
  background: #050505;
}

.tunnel-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  cursor: crosshair;
}

.tunnel-view {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  overflow: hidden;
}

.tunnel-world {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.tunnel-item {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transform-origin: center center;
}

.tunnel-card {
  position: relative;
  width: 320px;
  height: 460px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--t-card);
  border: 1px solid var(--t-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 20px 50px rgb(0 0 0 / 0.5);
  transform: translate(-50%, -50%);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.tunnel-card::before,
.tunnel-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid transparent;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.tunnel-card::before {
  top: -1px;
  left: -1px;
  border-top-color: var(--bone);
  border-left-color: var(--bone);
}

.tunnel-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom-color: var(--bone);
  border-right-color: var(--bone);
}

@media (hover: hover) {
  .tunnel-card:hover {
    border-color: var(--t-accent);
    box-shadow: 0 0 30px rgb(236 235 230 / 0.12);
    background: rgb(20 20 20 / 0.8);
  }

  .tunnel-card:hover::before,
  .tunnel-card:hover::after {
    width: 100%;
    height: 100%;
    border-color: var(--t-accent);
  }
}

.tunnel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--t-border);
}

.tunnel-id {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--smoke);
}

.tunnel-dot {
  width: 10px;
  height: 10px;
  background: var(--t-accent);
}

.tunnel-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
}

.tunnel-card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(236 235 230 / 0.45);
}

.tunnel-num {
  position: absolute;
  right: 2rem;
  bottom: 2.6rem;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 4rem;
  opacity: 0.1;
}

.tunnel-word {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  font-size: 15vw;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgb(255 255 255 / 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tunnel-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--bone);
  transform: translate(-50%, -50%);
}

.tunnel-vignette {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: radial-gradient(circle, transparent 40%, #000 120%);
}

.tunnel-hud {
  position: absolute;
  inset: calc(var(--pad) + 4rem) var(--pad) var(--pad);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.5);
}

.tunnel-hud strong {
  color: var(--bone);
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-line {
  position: relative;
  flex: 1;
  height: 1px;
  margin: 0 1rem;
  background: rgb(255 255 255 / 0.2);
}

.hud-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--t-accent);
}

.hud-side {
  align-self: flex-start;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.tunnel.is-flat .tunnel-view {
  perspective: none;
}

.tunnel.is-flat .tunnel-world {
  transform-style: flat;
  will-change: auto;
}

.tunnel.is-flat .tunnel-item,
.tunnel.is-flat .tunnel-star {
  transform-origin: 0 0;
  backface-visibility: visible;
}

@media (hover: none) {
  .tunnel-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgb(14 14 14 / 0.88);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5);
    transition: none;
  }
}

@media (max-width: 600px) {
  .tunnel {
    height: 450vh;
  }

  .tunnel-card {
    width: 220px;
    height: 316px;
    padding: 1.25rem;
  }

  .tunnel-card-head {
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
  }

  .tunnel-id {
    font-size: 1.2rem;
  }

  .tunnel-card h2 {
    font-size: 2.3rem;
  }

  .tunnel-card-foot {
    font-size: 0.55rem;
  }

  .tunnel-num {
    right: 1.25rem;
    bottom: 1.8rem;
    font-size: 2.8rem;
  }

  .tunnel-word {
    font-size: 24vw;
    -webkit-text-stroke-width: 1.5px;
  }

  .tunnel-hud {
    inset: calc(var(--pad) + 3.5rem) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
    font-size: 9px;
  }

  .hud-side {
    display: none;
  }
}

/* Blocks */

.block {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
  border-top: 1px dashed var(--rule);
}

.kicker {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: var(--smoke);
  margin-bottom: 0.4rem;
}

.block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  grid-template-areas:
    "kicker kicker"
    "title intro";
  align-items: end;
  gap: 0 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.block-head .kicker {
  grid-area: kicker;
}

.title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 13vw, 12rem);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.block-intro {
  grid-area: intro;
  color: var(--smoke);
  font-size: 1.2rem;
  padding-bottom: 0.6rem;
}

/* Service rows */

.rows {
  border-top: 1px dashed var(--rule);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.5fr);
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.2rem, 2.4vw, 2rem) 0;
  border-bottom: 1px dashed var(--rule);
  cursor: default;
}

.row-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease-out);
}

.row:hover .row-title {
  font-style: italic;
  transform: translateX(1.5rem);
}

.row-text {
  color: var(--smoke);
  font-size: 1.15rem;
  max-width: 30rem;
  transition: color 0.4s;
}

.row:hover .row-text {
  color: var(--bone);
}

.row-note {
  justify-self: end;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--smoke);
  text-align: right;
}

.preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  will-change: transform;
}

.preview-box {
  position: relative;
  width: 18rem;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  margin: -5.625rem 0 0 -9rem;
  background: #1b1b1b;
  border: 1px solid #2c2c2b;
  opacity: 0;
  transform: scale(0.5) rotate(-8deg);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}

.preview.is-on .preview-box {
  opacity: 1;
  transform: scale(1) rotate(var(--tilt, 0deg));
}

@media (hover: none) {
  .preview {
    display: none;
  }
}

.preview-ill {
  position: absolute;
  width: 84%;
  height: 84%;
  opacity: 0;
  transition: opacity 0.25s;
}

.preview-ill.is-active {
  opacity: 1;
}

/* Statement */

.statement-block {
  padding-block: clamp(6rem, 14vw, 12rem);
}

.scrub {
  max-width: 19ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  line-height: 0.98;
}

.scrub .w {
  opacity: 0.16;
  transition: opacity 0.3s;
}

.scrub .w.on {
  opacity: 1;
}

.statement-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 26rem));
  justify-content: end;
  gap: 1.5rem 3rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  color: var(--smoke);
  font-size: 1.15rem;
}

/* Cases */

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem var(--pad);
}

.case {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.case-plate {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  background: radial-gradient(80% 80% at 50% 40%, #252525, #111 80%);
  overflow: hidden;
}

.case-word {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(160deg, #fff, #7d7d79);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.9s var(--ease-out);
}

.case:hover .case-word {
  transform: scale(1.12) rotate(-3deg);
}

.case-code {
  position: absolute;
  top: 0.6rem;
  left: 0.9rem;
  font-size: 1.3rem;
  color: var(--smoke);
}

.case-kind {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  align-items: baseline;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--smoke);
}

.case-kind b {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bone);
}

.case h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  line-height: 1;
}

.case > p:not(.case-kind):not(.case-result) {
  color: var(--smoke);
  font-size: 1.1rem;
}

.case-result {
  padding-top: 0.8rem;
  border-top: 1px dashed var(--rule);
  font-size: 1.1rem;
}

.case-result .hand {
  font-size: 1.35rem;
  margin-right: 0.3rem;
}

/* Steps */

.steps {
  border-top: 1px dashed var(--rule);
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  align-items: center;
  gap: 1rem 2rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--rule);
}

.step h3 {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin-left: var(--x);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.step sup {
  font-size: 0.26em;
  margin-top: 0.5em;
  color: var(--smoke);
}

.step p {
  color: var(--smoke);
  font-size: 1.1rem;
}

/* FAQ */

.faq-list {
  border-top: 1px dashed var(--rule);
}

details {
  border-bottom: 1px dashed var(--rule);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
  cursor: pointer;
  list-style: none;
  transition: padding 0.5s var(--ease-out);
}

summary:hover {
  padding-left: 1rem;
  font-style: italic;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  max-width: 40rem;
  padding: 0 0 1.6rem;
  color: var(--smoke);
  font-size: 1.2rem;
}

/* Contact */

.contact {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(6rem, 14vw, 11rem) var(--pad);
  border-top: 1px dashed var(--rule);
}

.contact-title {
  max-width: 12ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 10rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.contact-text {
  max-width: 30rem;
  margin-top: 1.8rem;
  color: var(--smoke);
}

.mail {
  position: relative;
  display: inline-block;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 2.6rem;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.2rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mail-loop {
  position: absolute;
  inset: -10% -6%;
  width: 112%;
  height: 120%;
  overflow: visible;
  pointer-events: none;
}

.mail-loop path {
  fill: none;
  stroke: var(--bone);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.mail.is-drawn .mail-loop path {
  stroke-dashoffset: 0;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem 2rem;
  padding: 1.4rem var(--pad) 1.6rem;
  border-top: 1px dashed var(--rule);
  font-size: 1rem;
  color: var(--smoke);
}

.site-footer .hand {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--bone);
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Responsive */

@media (max-width: 900px) {
  .block-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "intro";
  }

  .block-intro {
    margin-top: 1.4rem;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .row-note {
    justify-self: start;
    text-align: left;
  }

  .cases {
    grid-template-columns: 1fr;
  }

  .case-plate {
    aspect-ratio: 16 / 9;
  }

  .statement-foot {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    padding-bottom: 1.2rem;
  }

  .step h3 {
    margin-left: calc(var(--x) / 2);
  }

  .menu-list a {
    margin-left: calc(var(--x) / 2);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1.15rem;
  }

  .menu-foot {
    flex-direction: column;
    align-items: start;
  }

  .menu-foot p:nth-child(2),
  .menu-foot p:last-child {
    text-align: left;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-center,
  .footer-right {
    text-align: left;
  }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .js .letters span {
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-out);
  }

  .js .letters span:nth-child(2) { transition-delay: 0.06s; }
  .js .letters span:nth-child(3) { transition-delay: 0.12s; }
  .js .letters span:nth-child(4) { transition-delay: 0.18s; }
  .js .letters span:nth-child(5) { transition-delay: 0.24s; }

  .js .logotype sup,
  .js .hero-text,
  .js .hero-hand,
  .js .hero-year {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  }

  .js .hero-text { transition-delay: 0.4s; }
  .js .hero-hand { transition-delay: 0.55s; }
  .js .hero-year { transition-delay: 0.8s; }
  .js .logotype sup { transition-delay: 0.35s; }

  .js.intro-done .letters span,
  .js.intro-done .logotype sup,
  .js.intro-done .hero-text,
  .js.intro-done .hero-hand,
  .js.intro-done .hero-year {
    opacity: 1;
    transform: none;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

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

  .intro {
    display: none;
  }

  .glow,
  .grain {
    animation: none;
  }

  .scrub .w {
    opacity: 1;
  }

  .tunnel {
    height: 100vh;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

@keyframes drift {
  to {
    transform: translate(8vw, 6vh) scale(1.15);
  }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}
