/* ==========================================================================
   De Manufactuur - homepage demo
   Alle stijlen. Kleuren en typografie staan als variabelen bovenaan.
   ========================================================================== */

:root {
  --ink:          #1C1819;
  --paper:        #FAF8F4;
  --sand:         #F2EDE4;
  --white:        #ffffff;
  --line:         #DDD6CB;
  --line-strong:  #CFC7B8;
  --muted:        #5C574E;
  --muted-soft:   #8A8376;
  --teal:         #2E7F96;
  --teal-bright:  #389CB8;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --wrap:         1140px;
  --gutter:       clamp(20px, 4vw, 48px);
  --photo:        saturate(.82) contrast(1.04);
}

/* --------------------------------------------------------------- base --- */

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

html { scroll-behavior: smooth; overflow-x:hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); }
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.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;
}

/* --------------------------------------------------- typografie blokken --- */

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow--tag {
  display: inline-block;
  background: var(--teal-bright);
  color: #fff;
  padding: 7px 12px;
}

.eyebrow--sm {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted-soft);
}

.h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.h2--flush { margin-bottom: 0; }
.h2--tight { margin-bottom: 10px; }

.note { margin: 0; font-size: 15px; color: var(--muted); }

/* -------------------------------------------------------------- knoppen --- */

.btn {
  display: inline-block;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}

.btn--primary {
  background: var(--teal);
  border: 1.5px solid var(--teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
.btn--outline:hover {
  background: var(--teal);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.85);
  color: #fff;
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--xs { padding: 11px 20px; font-size: 14.5px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ------------------------------------------------------ sticky header --- */

.stickyhdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid #E4DED2;
  transform: translateY(-110%);
  transition: transform .3s ease;
}
.stickyhdr.is-visible { transform: translateY(0); }

.stickyhdr__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stickyhdr__logo { display: flex; align-items: center; }
.stickyhdr__logo img { width: 120px; height: auto; }

/* -------------------------------------------------------------- header --- */

.site-header { background: var(--paper); }

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header__logo { width: clamp(108px, 30vw, 150px); height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
}

.site-nav__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  transition: color .2s;
}
.site-nav__link:hover { color: var(--teal); }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 82vh, 800px);
  display: flex;
  align-items: flex-end;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(198deg, rgba(28,24,25,.08) 30%, rgba(28,24,25,.78) 88%);
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) var(--gutter);
}

.hero__tag {
  margin: 0 0 18px;
  display: inline-block;
  background: var(--teal-bright);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: clamp(10px, 2.9vw, 12px);
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 18px;
  max-width: 13ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

.hero__text {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  text-wrap: pretty;
}

/* ----------------------------------------------------------- community --- */

.section-community { padding: clamp(60px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }

.section-intro {
  max-width: 60ch;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.mosaic {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.mosaic__figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.mosaic__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo);
  transition: transform .35s ease;
}
.mosaic__figure:hover img { transform: scale(1.03); }

.mosaic__figure--a { flex: 2 1 340px; height: 320px; }
.mosaic__figure--b { flex: 1 1 230px; height: 400px; }
.mosaic__figure--b img { object-position: 60% 40%; }
.mosaic__figure--c { flex: 1.4 1 300px; height: 262px; }

.mosaic__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(28,24,25,.72));
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.quote {
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.quote p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.45;
}
.quote footer {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.quote--dark {
  flex: 1 1 260px;
  min-height: 252px;
  background: var(--ink);
  color: var(--paper);
}
.quote--dark .quote__mark { color: var(--teal-bright); }
.quote--dark footer { color: rgba(250,248,244,.65); }

.quote--light {
  flex: 1 1 240px;
  min-height: 220px;
  background: var(--sand);
  color: var(--ink);
}
.quote--light .quote__mark { color: var(--teal); }
.quote--light footer { color: var(--muted); }

/* -------------------------------------------------------- logo marquee --- */

.logos { margin-top: clamp(36px, 5vw, 56px); }
.logos__viewport { overflow: hidden; }

.logos__track {
  display: flex;
  width: max-content;
  animation: mfxMarquee 36s linear infinite;
}
.logos__viewport:hover .logos__track { animation-play-state: paused; }

.logos__item {
  width: 150px;
  height: 60px;
  margin-right: 14px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #FBFAF7 0, #FBFAF7 6px, var(--sand) 6px, var(--sand) 12px);
  color: var(--muted-soft);
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

@keyframes mfxMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -------------------------------------------------------------- aanbod --- */

.section-aanbod { padding: clamp(48px, 7vw, 90px) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .25s;
}
.card:hover { border-color: var(--teal); }

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}
.card__price {
  margin: 0;
  font-family: var(--font-display);
}
.card__price small { font-size: 13px; color: var(--muted); }
.card__price strong { font-weight: 700; font-size: 1.7rem; }

/* ------------------------------------------------------- beschikbaarheid --- */

.section-beschikbaar {
  background: var(--sand);
  padding: clamp(60px, 9vw, 110px) 0;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.split__text { flex: 1.3 1 320px; }
.split__figure {
  flex: 1 1 280px;
  margin: 0;
  height: 280px;
  overflow: hidden;
}
.split__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo);
}

.units { border-top: 1px solid var(--line-strong); }
.unit { border-bottom: 1px solid var(--line-strong); }

.unit__toggle {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  background: none;
  border: none;
  padding: 16px 2px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 44px;
}

.unit__name {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.badge {
  background: var(--teal-bright);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.unit__m2    { flex: 0 0 60px;  font-size: 15px; color: var(--muted); }
.unit__vanaf { flex: 0 1 175px; font-size: 15px; color: var(--muted); }

.unit__symbol {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--teal);
  width: 24px;
  text-align: center;
  margin-left: auto;
}

.unit__panel {
  padding: 0 2px 22px;
  animation: mfxUnfold .25s ease;
}
.unit__panel[hidden] { display: none; }

.unit__specs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: 16px;
}
.unit__spec { min-width: 130px; }
.unit__spec dt {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.unit__spec dd { margin: 0; font-size: 15px; }

.units__footnote {
  margin: 16px 2px 0;
  font-size: 14px;
  color: var(--muted);
}

@keyframes mfxUnfold {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- gebouw --- */

.section-gebouw { padding: clamp(60px, 9vw, 110px) 0; }

.gebouw {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  align-items: flex-start;
}
.gebouw__text { flex: 1 1 320px; }
.gebouw__text .lead { margin-bottom: 14px; }
.gebouw__text .lead--last { margin-bottom: 28px; }

.speclist { margin: 0; }
.speclist__row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.speclist__row:last-child { border-bottom: 1px solid var(--line); }
.speclist dt {
  flex: 0 0 118px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-soft);
  padding-top: 3px;
}
.speclist dd {
  flex: 1 1 200px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
}

.stack {
  flex: 1.15 1 340px;
  position: relative;
  padding-bottom: 14%;
}
.stack__back {
  margin: 0;
  width: 82%;
  overflow: hidden;
}
.stack__front {
  margin: -18% 0 0 40%;
  width: 60%;
  overflow: hidden;
  border: 8px solid var(--paper);
  position: relative;
}
.stack img { width: 100%; height: auto; filter: var(--photo); }

/* ------------------------------------------------------------ impressie --- */

.section-impressie {
  padding: clamp(48px, 7vw, 88px) 0 clamp(16px, 3vw, 40px);
  overflow: hidden;
}

.demo-section {
  justify-content: center;
  align-items: center;
  font-size: 1vw;
  display: flex;
  overflow: clip;
  padding: 2em 0 3em;
}
.interactive-collage { width: 63.75em; height: 37em; flex: none; }
.interactive-collage__collection { width: 100%; height: 100%; }
.interactive-collage__list { width: 100%; height: 100%; position: relative; }
.interactive-collage__item { z-index: 0; position: absolute; top: 0; left: 0; }
.interactive-collage__item.is--1 { top: 6em; }
.interactive-collage__item.is--2 { top: 17em; left: 5em; }
.interactive-collage__item.is--3 { z-index: 1; top: 14em; left: 13.5em; }
.interactive-collage__item.is--4 { left: 24em; }
.interactive-collage__item.is--5 { z-index: 3; top: auto; bottom: 0; left: 26em; }
.interactive-collage__item.is--6 { z-index: 2; top: 9em; left: 31.5em; }
.interactive-collage__item.is--7 { z-index: 1; top: 16em; left: 39em; }
.interactive-collage__item.is--8 { top: 5em; left: auto; right: 0; }

.demo-card { aspect-ratio: 1; width: 16.25em; position: relative; }
.demo-card.is--landscape { aspect-ratio: 4 / 3; width: 20em; }
.demo-card.is--portrait  { aspect-ratio: 3 / 4; width: 15em; }

.cover-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  border-radius: inherit;
  filter: var(--photo);
}

[data-interactive-collage-focus] .demo-card { box-shadow: 0 18px 40px rgba(28,24,25,.18); }

@media screen and (max-width: 991px) {
  .demo-section { font-size: 2.125vw; }
}

/* -------------------------------------------------------------- ligging --- */

.section-ligging {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(44px, 6vw, 72px) 0;
}

.ligging {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.ligging__text { flex: 1.2 1 320px; }

.ligging__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.ligging__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
}
.ligging__adres { margin: 0; font-size: 15px; color: rgba(250,248,244,.65); }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.facts li { border-top: 2px solid var(--teal-bright); padding-top: 12px; }
.facts dt, .facts__label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,248,244,.55);
  margin-bottom: 6px;
}
.facts__value { font-size: 15.5px; }

.ligging__map {
  flex: 1 1 300px;
  height: clamp(280px, 36vw, 360px);
  border: 1px solid rgba(250,248,244,.18);
  overflow: hidden;
}
.ligging__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ------------------------------------------------------------ slot-cta --- */

.section-cta { padding: clamp(64px, 10vw, 120px) 0; }
.section-cta .wrap { text-align: center; }
.section-cta h2 {
  margin: 0 auto 16px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-cta p.lead {
  margin: 0 auto 32px;
  max-width: 44ch;
}
.section-cta .btn-row { justify-content: center; }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--sand);
  padding: clamp(40px, 6vw, 64px) 0 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 48px);
}
.footer-col--brand { flex: 1.4 1 240px; }
.footer-col--contact { flex: 1 1 190px; }
.footer-col--ontdek { flex: 1 1 160px; }
.footer-col--huren { flex: 1 1 180px; }

.footer-col__logo { width: 150px; height: auto; }
.footer-col__about {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 36ch;
  text-wrap: pretty;
}
.footer-col p.footer-col__addr {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.footer-link {
  display: block;
  padding: 4px 0;
  font-size: 14.5px;
  text-decoration: none;
}
.footer-link--accent { color: var(--teal); }
.footer-link--accent:hover { color: var(--ink); }
.footer-link--muted { color: var(--muted); }
.footer-link--muted:hover { color: var(--teal); }

.footer-cta {
  display: block;
  background: none;
  border: none;
  padding: 8px 0 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  text-align: left;
}
.footer-cta:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-soft);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted-soft); }

/* -------------------------------------------------------- mobiele balk --- */

/* De veilige zone van iOS (home-indicator) zit op de balk zelf, niet op de
   knoppen. Zo houden beide knoppen exact dezelfde hoogte, ook als Safari zijn
   eigen balk onderin weg laat schuiven. */
.mobilebar-spacer { height: calc(64px + env(safe-area-inset-bottom, 0px)); }

.mobilebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 85;
  display: flex;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(28,24,25,.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobilebar__call,
.mobilebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}
.mobilebar__call {
  flex: 1;
  background: transparent;
  color: var(--ink);
}
.mobilebar__cta {
  flex: 1.4;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
}

/* Desktop vs mobiel: nav-links boven 760px, balk eronder. */
@media (min-width: 761px) {
  .mobilebar, .mobilebar-spacer { display: none; }
}

@media (max-width: 760px) {
  .site-nav__link { display: none; }

  /* De knoppen staan onderin al vast in beeld, dus in de hero zijn ze dubbel.
     De tekst zakt daardoor vanzelf verder naar onderen. */
  .hero__actions { display: none; }
  .hero__text { margin-bottom: 0; }
  .hero__body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  /* Wat meer donker onder de tekst, zodat die losser van de foto komt. */
  .hero__scrim {
    background: linear-gradient(198deg, rgba(28,24,25,.20) 14%, rgba(28,24,25,.90) 88%);
  }
}

/* --------------------------------------------------------------- modal --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,24,25,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__panel {
  background: var(--paper);
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow: auto;
  padding: clamp(26px, 4vw, 40px);
  position: relative;
  animation: mfxUnfold .25s ease;
}

.modal__close {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  padding: 10px;
  font-family: var(--font-display);
}

.modal__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}
.modal__intro {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.field { margin-bottom: 14px; }
.field--last { margin-bottom: 20px; }
.field label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.field input,
.field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
}

.modal__submit { width: 100%; }

.modal__demo-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted-soft);
  text-align: center;
}
.modal__demo-note[hidden] { display: none; }

.modal__alt {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------- preloader --- */

.loading-container {
  z-index: 100;
  pointer-events: none;
  position: fixed;
  inset: 0;
}
.loading-screen {
  pointer-events: auto;
  color: var(--ink);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0; left: 0;
  overflow: clip;
}
.loading-screen__background {
  background-color: var(--paper);
  width: 100%;
  height: 100%;
  position: absolute;
}
.loading-screen__logo {
  width: clamp(8em, 10vw, 12em);
  position: absolute;
  bottom: 2em;
}
.loading-screen__logo img { width: 100%; height: auto; }
.loading-screen__list {
  gap: .5em;
  opacity: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}
.loading-screen__card {
  aspect-ratio: 3 / 4;
  width: 10em;
  font-size: max(1.5vw, 2em);
  position: absolute;
}

/* --------------------------------------------------- reveal on scroll --- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------ reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
