/* ==========================================================================
   Zebra Bouw — site styles
   1. Fonts
   2. Tokens
   3. Base
   4. Typography
   5. Buttons & links
   6. Header
   7. Hero
   8. Projects (50+)
   9. Feature blocks
   10. Frozen band
   11. Stats
   12. Contact & form
   13. Dialog
   14. Footer
   15. Error page
   16. Motion
   17. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Canela Text Web";
  src: url("../fonts/Canela-Text-Web_300_normal_0.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "filson-pro";
  src: url("../fonts/filson-pro_300_normal_2.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "filson-pro";
  src: url("../fonts/filson-pro_500_normal_3.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "filson-pro";
  src: url("../fonts/filson-pro_700_normal_1.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "dharma-gothic-e";
  src: url("../fonts/dharma-gothic-e_800_normal_4.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "cartograph-cf";
  src: url("../fonts/cartograph-cf_300_normal_7.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "cartograph-cf";
  src: url("../fonts/cartograph-cf_400_normal_8.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "cartograph-cf";
  src: url("../fonts/cartograph-cf_600_normal_6.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  --paper: #faf6ec;
  --paper-2: #fffdf6;
  --white: #ffffff;
  --ink: #241d12;
  --ink-2: #574b38;
  --muted: #948468;
  --line: rgba(36, 29, 18, .13);
  --line-2: rgba(36, 29, 18, .26);
  --amber: #e9a31c;
  --amber-2: #c9820a;
  --amber-lite: #ffc44d;
  --burnt: #d9752b;
  --danger: #c0392b;
  --success: #1e7a48;

  --f-display: "dharma-gothic-e", "Arial Narrow", sans-serif;
  --f-serif: "Canela Text Web", Georgia, serif;
  --f-sans: "filson-pro", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "cartograph-cf", ui-monospace, monospace;

  --pad: clamp(22px, 6vw, 120px);
  --header-h: 74px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 3. Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.is-locked body {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--amber-2);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--pad);
  z-index: 400;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .3s ease;
}

.skip-link:focus {
  top: 12px;
}

/* 4. Typography ----------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.display {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  line-height: .82;
  letter-spacing: .008em;
  text-transform: uppercase;
}

.display--h2 {
  font-size: clamp(3.6rem, 8vw, 9rem);
}

.lead {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.34;
}

.body-text {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(1.08rem, 1.25vw, 1.35rem);
  line-height: 1.5;
}

/* Wordmark ---------------------------------------------------------------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.header__logo,
.footer__logo {
  display: block;
  color: var(--amber-2);
}

.header__logo {
  width: 132px;
}

.footer__logo {
  width: 120px;
}

/* A single logo flies from the hero lockup into the header as you scroll. */
.flying-logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  color: var(--amber);
  transform-origin: top left;
  pointer-events: none;
  will-change: transform;
}

html.js-flight .hero__logo,
html.js-flight .header__logo {
  opacity: 0;
}

/* 5. Buttons & links ------------------------------------------------------ */

.btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 17px 30px;
  overflow: hidden;
  border: 1px solid var(--amber);
  border-radius: 100px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .45s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--amber-lite);
  transform: translateX(-101%);
  transition: transform .55s cubic-bezier(.6, 0, .2, 1);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--amber-lite);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}

.btn:disabled {
  opacity: .55;
  cursor: default;
}

.btn__arrow {
  position: relative;
  flex: none;
  width: 17px;
  height: 10px;
  overflow: hidden;
}

.btn__arrow::before,
.btn__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s cubic-bezier(.6, 0, .2, 1);
}

.btn__arrow::before {
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.btn__arrow::after {
  right: 0;
  width: 8px;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: right center;
}

.btn:hover .btn__arrow::before {
  transform: translate(150%, -50%);
}

.btn:hover .btn__arrow::after {
  transform: translate(150%, -50%) rotate(45deg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.text-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background .35s ease, border-color .35s ease;
}

.text-link i::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: -2px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .45s cubic-bezier(.6, 0, .2, 1);
}

.text-link:hover i {
  border-color: var(--amber-lite);
  background: var(--amber-lite);
}

.text-link:hover i::after {
  transform: rotate(45deg) translate(3px, -3px);
}

/* 6. Header --------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 236, .82);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  transform: translateY(-102%);
  transition: transform .38s cubic-bezier(.4, 0, .1, 1);
}

html.header-visible .header {
  transform: none;
}

/* Pages without the scroll script keep the bar in place from the start. */
.header--static {
  transform: none;
}

.header__logo img,
.footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}

.nav a,
.nav button {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.nav a::after,
.nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--amber-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s cubic-bezier(.5, 0, 0, 1);
}

.nav a:hover::after,
.nav button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 7. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 0 var(--pad);
}

/* Spans the full content width so it lines up with the copy and the photo. */
.hero__logo {
  width: 100%;
  margin: clamp(96px, 18vh, 220px) 0 clamp(48px, 8vh, 110px);
  color: var(--amber);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
}

.hero__col {
  display: flex;
  flex-direction: column;
}

.hero__intro {
  max-width: 20ch;
}

.hero__cta {
  align-self: flex-start;
  margin-top: 40px;
}

.hero__next {
  max-width: 22ch;
  margin-top: 39vh;
}

.hero__next h2 {
  margin-bottom: 30px;
  font-size: clamp(4.4rem, 9.6vw, 11rem);
}

.hero__next p {
  max-width: 36ch;
}

/* Breathing room so the pinned photo finishes a little below the copy. */
.hero__tail {
  height: 26vh;
}

.hero__stage {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100vh;
}

.hero__figure {
  position: relative;
  width: 100%;
  max-width: min(100%, 68vh);
  max-height: 92vh;
  margin: 0 0 0 auto;
  aspect-ratio: 1680 / 2000;
  overflow: hidden;
  will-change: transform;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 8. Projects (50+) ------------------------------------------------------- */

.section {
  padding: clamp(80px, 13vh, 190px) var(--pad);
}

.section--white {
  background: var(--white);
}

.section--tight {
  padding-top: clamp(56px, 8vh, 110px);
}

.projects {
  position: relative;
  height: 340vh;
  background: var(--ink);
  color: #fff8e8;
}

.projects__pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.projects__strips {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 32px);
}

.strip {
  display: flex;
  gap: clamp(12px, 1.4vw, 24px);
  width: max-content;
  will-change: transform;
}

.strip figure {
  position: relative;
  flex: none;
  width: clamp(120px, 13vw, 220px);
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #322815;
}

.strip figure:nth-child(3n) {
  aspect-ratio: 3 / 4;
}

.strip figure:nth-child(4n) {
  aspect-ratio: 1 / 1;
}

.strip figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(233, 163, 28, .9), rgba(217, 117, 43, .9));
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .45s ease;
}

.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.84);
  transition: filter .55s ease, transform .85s var(--ease);
}

.strip figure:hover img,
.strip figure:active img {
  filter: grayscale(0) contrast(1.05) brightness(1.04);
  transform: scale(1.06);
}

.strip figure:hover::after,
.strip figure:active::after {
  opacity: 1;
}

.projects__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(56% 64% at 24% 50%, rgba(36, 29, 18, .95), rgba(36, 29, 18, .74) 54%, rgba(36, 29, 18, 0) 100%),
    linear-gradient(90deg, rgba(36, 29, 18, .92), rgba(36, 29, 18, .4) 48%, rgba(36, 29, 18, .74));
}

.projects__inner {
  position: relative;
  z-index: 3;
  width: min(100%, 740px);
  padding: 0 var(--pad);
}

.projects .eyebrow {
  margin-bottom: 24px;
  color: var(--amber-lite);
}

.projects .eyebrow::before {
  background: var(--amber-lite);
}

.projects__count {
  margin: 0;
  color: #ffffff;
  font-family: var(--f-display);
  font-size: clamp(8rem, 21vw, 21rem);
  font-weight: 800;
  line-height: .78;
  letter-spacing: .01em;
}

.projects__count span:last-child {
  color: var(--amber);
}

.projects__label {
  margin: 16px 0 0;
  color: rgba(255, 248, 232, .74);
  font-family: var(--f-mono);
  font-size: clamp(.72rem, 1vw, .86rem);
  letter-spacing: .34em;
  text-transform: uppercase;
}

.projects__copy {
  max-width: 46ch;
  margin: 30px 0 0;
  color: rgba(255, 248, 232, .84);
  opacity: 0;
  transform: translateY(34px);
}

/* 9. Feature blocks ------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}

.feature__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature--reverse .feature__media {
  order: 2;
}

.feature__body h2 {
  margin-bottom: 30px;
}

.feature__body .lead {
  margin-bottom: 26px;
}

.feature__body .body-text + .body-text {
  margin-top: 18px;
}

.steps {
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps b {
  color: var(--amber-2);
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.steps span {
  color: var(--ink-2);
  font-size: 1.02rem;
}

.steps em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

/* 10. Frozen band --------------------------------------------------------- */

/* The picture is fixed to the viewport, so only the section travels over it. */
.band {
  position: relative;
  display: flex;
  align-items: center;
  height: min(72vh, 720px);
  overflow: hidden;
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
}

.band__image {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(28, 22, 12, .78), rgba(28, 22, 12, .38) 62%, rgba(28, 22, 12, .18));
}

.band__text {
  position: relative;
  z-index: 2;
  width: min(58%, 780px);
  padding: 0 var(--pad);
}

.band__text h2 {
  margin: 0;
  color: #fff8e8;
  font-family: var(--f-serif);
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  font-weight: 300;
  line-height: 1.26;
}

/* 11. Stats --------------------------------------------------------------- */

.together {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  margin-top: 34px;
}

.stat b {
  display: block;
  color: var(--amber-2);
  font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: .9;
}

.stat span {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* 12. Contact & form ------------------------------------------------------ */

.contact {
  background: var(--paper-2);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: end;
}

.contact h2 {
  margin: 0 0 30px;
}

.detail-rows {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.detail-rows a,
.detail-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: color .3s ease, padding-left .35s var(--ease);
}

.detail-rows a:hover {
  padding-left: 10px;
  color: var(--amber-2);
}

.detail-rows dt,
.detail-rows__key {
  flex: none;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.detail-rows__value {
  font-family: var(--f-sans);
  font-size: .95rem;
  font-weight: 400;
  text-align: right;
}

.form {
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  position: relative;
  display: block;
}

.field > span {
  position: absolute;
  top: 16px;
  left: 0;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .32s var(--ease), color .3s ease;
}

.field input,
.field textarea {
  width: 100%;
  padding: 30px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color .3s ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--amber-2);
}

.field input:focus ~ span,
.field textarea:focus ~ span,
.field input:not(:placeholder-shown) ~ span,
.field textarea:not(:placeholder-shown) ~ span {
  color: var(--amber-2);
  transform: translateY(-15px) scale(.85);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}

.field em {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: .76rem;
  font-style: normal;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 8px;
}

.form__status {
  margin: 0;
  color: var(--ink-2);
  font-size: .9rem;
}

.form__status.is-ok {
  color: var(--success);
}

.form__status.is-error {
  color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 13. Dialog -------------------------------------------------------------- */

.dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.dialog.is-open {
  display: flex;
}

.dialog__scrim {
  position: absolute;
  inset: 0;
  background: rgba(24, 19, 11, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .4s ease;
}

.dialog__panel {
  position: relative;
  width: min(100%, 720px);
  max-height: 90vh;
  padding: clamp(26px, 4vw, 52px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.dialog.is-visible .dialog__scrim {
  opacity: 1;
}

.dialog.is-visible .dialog__panel {
  opacity: 1;
  transform: none;
}

.dialog__panel h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .35s ease;
}

.dialog__close::before,
.dialog__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
}

.dialog__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog__close:hover {
  border-color: var(--amber-lite);
  background: var(--amber-lite);
  transform: rotate(90deg);
}

.dialog .form {
  margin-top: 26px;
}

/* 14. Footer -------------------------------------------------------------- */

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
}

.footer__copy {
  justify-self: center;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-align: center;
}

.footer__credit {
  justify-self: end;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .3s ease;
}

.footer__credit:hover {
  color: var(--amber-2);
}

/* 15. Error page --------------------------------------------------------- */

.error {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + clamp(56px, 12vh, 140px)) var(--pad) clamp(56px, 10vh, 120px);
  overflow: hidden;
}

.error__image {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(240px, 34vw, 620px);
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) sepia(.22);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
  opacity: .5;
}

.error__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
}

.error__code {
  margin: 0 0 18px;
  color: var(--amber);
  font-family: var(--f-display);
  font-size: clamp(9rem, 24vw, 22rem);
  font-weight: 800;
  line-height: .78;
  letter-spacing: .01em;
}

.error__title {
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
}

.error__lead {
  max-width: 40ch;
  margin-top: 28px;
}

.error__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  margin-top: 44px;
}

.error__meta {
  margin: 32px 0 0;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
}

.error__meta a {
  color: var(--amber-2);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* 16. Motion -------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.05s cubic-bezier(.2, .7, .2, 1), transform 1.05s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s cubic-bezier(.62, 0, .1, 1);
}

.clip.is-visible {
  clip-path: inset(0 0 0 0);
}

/* 17. Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    position: relative;
    order: -1;
    height: auto;
    margin-bottom: 6vh;
  }

  .hero__figure {
    max-width: 100%;
    max-height: none;
  }

  .hero__intro {
    max-width: 32ch;
  }

  .hero__next {
    max-width: 24ch;
    margin-top: 9vh;
  }

  .hero__tail {
    height: 0;
  }

  .projects {
    height: 260vh;
  }

  .projects__inner {
    width: 100%;
  }

  .feature,
  .together,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .band__text {
    width: 100%;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__credit {
    justify-self: center;
  }

  .error__image {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .clip,
  .projects__copy {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }
}
