/* ========================================================
 * Crystal Corner · Landing page styles
 * Brand: ivory-and-ink, single Crystal Blue accent, generous space
 * ======================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colours from Crystal_Corner_Brands_final.pdf */
  --c-paper: #ffffff;
  --c-ink: #141414;
  --c-ink-soft: #2a2a2a;
  --c-ink-mute: #6b6b6b;
  --c-ink-faint: #a4a4a4;
  --c-silver: #dddddd;
  --c-silver-soft: #f4f4f4;
  --c-silver-tint: #f8f9fa;
  --c-blue: #5cb3ff;
  --c-blue-deep: #2b8fde;

  /* Typography */
  --f-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* Rhythm */
  --w-max: 1320px;
  --w-prose: 640px;
  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(80px, 12vw, 180px);

  /* Motion */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-out-soft: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }
input, textarea, button { font-family: inherit; }
::selection { background: var(--c-blue); color: var(--c-ink); }

/* ---------- Preview banner (visible only when ?preview=1) ---------- */
.preview-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--c-ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
/* Draft (unpublished) preview: amber warning so it's clearly not live yet. */
.preview-banner--draft {
  background: #b8860b;
  color: #fff;
}
.preview-banner--draft .preview-banner__dot { background: #fff; }
/* Ensure [hidden] beats display:flex */
.preview-banner[hidden],
.form-success[hidden],
.form-error[hidden] { display: none !important; }
.preview-banner__dot {
  width: 8px; height: 8px;
  background: var(--c-blue);
  border-radius: 50%;
  animation: previewPulse 1.6s ease-in-out infinite;
}
.preview-banner__exit {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: none;
}
.preview-banner__exit:hover { color: var(--c-blue); }
body.has-preview-banner .nav { top: 36px; }
@keyframes previewPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--c-blue);
  transform-origin: left center;
  transition: width 60ms linear;
}

/* ---------- Top nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s, padding .4s var(--ease-out);
  --nav-fg: #fff;
  color: var(--nav-fg);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 14px var(--pad-x);
  --nav-fg: var(--c-ink);
  border-bottom: 1px solid rgba(20,20,20,.06);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .4s var(--ease-out), height .4s var(--ease-out);
}
.nav.is-scrolled .nav__logo { filter: none; height: 36px; }
@media (max-width: 640px) {
  .nav__logo { height: 36px; }
  .nav.is-scrolled .nav__logo { height: 28px; }
}
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nav-fg);
  position: relative;
  padding: 8px 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--ease-out-soft);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__cta {
  font-weight: 400;
}
.nav__cta:hover { color: var(--c-blue); }

@media (max-width: 640px) {
  .nav__links { gap: 18px; }
  .nav__link:not(.nav__cta) { display: none; }
}

/* ============================================ */
/* HERO  (tall section — sticky inner — scroll scrubs the video) */
/* ============================================ */
.hero {
  position: relative;
  /* Tall enough for the user to scroll through the video. ~2.2 viewports
     means ~1.2 viewports of "scrub area" after the first painted frame. */
  height: 220vh;
  width: 100%;
  color: var(--c-paper);
  background: var(--c-ink);
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: var(--pad-x);
  box-sizing: border-box;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transform-origin: center;
  display: none; /* shown only when a hero image is set (JS adds .hero--has-image) */
}
.hero--has-image .hero__video { display: none; }
.hero--has-image .hero__image { display: block; }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,.15) 40%, rgba(20,20,20,.6) 100%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 60%, transparent 40%, rgba(20,20,20,.55) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp .9s var(--ease-out-soft) .2s forwards;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,.55);
}

.hero__title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 36px;
  line-height: 1;
}
.hero__logo {
  width: clamp(280px, 56vw, 820px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1.4s var(--ease-out-soft) .35s forwards;
  /* The white-variant SVG already has correct colours (white wordmark + blue accent) */
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__tagline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  margin: 0 0 48px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out-soft) .9s forwards;
}

.hero__cta {
  display: inline-block;
  padding: 18px 36px;
  border: 1px solid rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease-out-soft);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out-soft) 1.1s forwards;
}
.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-blue);
  transform: translateY(100%);
  transition: transform .5s var(--ease-out-soft);
  z-index: -1;
}
.hero__cta:hover {
  color: var(--c-ink);
  border-color: var(--c-blue);
}
.hero__cta:hover::before { transform: translateY(0); }

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  color: rgba(255,255,255,.78);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-soft) 1.4s forwards;
}
.hero__scroll-text {
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
}
.hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -56px; left: 0;
  width: 100%;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--c-blue));
  animation: scrollLine 2.2s var(--ease-out-soft) infinite;
}

@keyframes scrollLine {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(56px); }
  100% { transform: translateY(112px); }
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* Section heads                                 */
/* ============================================ */
.section-head {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-head--center { align-items: center; text-align: center; }
.section-head__label {
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-head__label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c-blue);
}
.section-head__heading {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: .01em;
  color: var(--c-ink);
  margin: 0;
  max-width: 22ch;
  line-height: 1.12;
}

/* ============================================ */
/* BLOK B · INTRO                                */
/* ============================================ */
.intro {
  padding: var(--pad-y) 0;
  background: var(--c-paper);
}
.intro__grid {
  max-width: var(--w-max);
  margin: 64px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.intro__heading {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: .005em;
  line-height: 1.1;
  margin: 0 0 32px;
  color: var(--c-ink);
  max-width: 16ch;
}
.intro__body {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: 56ch;
  margin: 0;
}
.intro__body strong {
  font-weight: 500;
  color: var(--c-ink);
  position: relative;
  white-space: nowrap;
}
.intro__body strong::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-blue);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  transform: translateY(-2px);
  opacity: 0;
}
.intro__body strong:first-of-type::after { opacity: 0; } /* keep accent only as text emphasis */

.intro__visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--c-silver-soft);
}
.intro__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.intro__caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

@media (max-width: 880px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__visual { aspect-ratio: 4 / 3; }
}

/* ============================================ */
/* PILLARS                                       */
/* ============================================ */
.pillars {
  padding: var(--pad-y) 0;
  background: var(--c-silver-tint);
  position: relative;
}
.pillars::before,
.pillars::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: var(--c-silver);
}
.pillars::before { top: 0; }
.pillars::after { bottom: 0; }

.pillars__grid {
  max-width: var(--w-max);
  margin: 80px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.pillar {
  position: relative;
  padding: 56px 36px 64px;
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .55s var(--ease-out-soft), box-shadow .55s var(--ease-out-soft);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20,20,20,.18);
}
.pillar__num {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--c-blue);
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pillar__num::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-blue);
}
.pillar__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--c-ink);
  margin: 0 0 24px;
  line-height: 1.4;
}
.pillar__body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  margin: 0;
  max-width: 26ch;
}
.pillar__rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--c-blue);
  transform: translateX(-50%);
  transition: width .8s var(--ease-out-soft);
}
.pillar.is-visible .pillar__rule { width: 64px; }

@media (max-width: 880px) {
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ============================================ */
/* GALLERY                                       */
/* ============================================ */
.gallery {
  padding: var(--pad-y) 0;
  background: var(--c-paper);
}
.gallery__grid {
  max-width: var(--w-max);
  margin: 80px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 18px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--c-silver-soft);
  margin: 0;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out-soft), filter .6s var(--ease-out-soft);
  filter: saturate(.9);
  will-change: transform;
}
.gallery__item:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,20,20,.25));
  opacity: 0;
  transition: opacity .5s var(--ease-out-soft);
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__caption {
  max-width: var(--w-max);
  margin: 40px auto 0;
  padding: 0 var(--pad-x);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-ink-mute);
  text-align: center;
}

@media (max-width: 880px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ============================================ */
/* INTERLUDE (parallax bg)                       */
/* ============================================ */
.interlude {
  position: relative;
  height: 70vh;
  min-height: 460px;
  overflow: hidden;
  color: #fff;
  display: grid;
  place-items: center;
}
.interlude__bg {
  position: absolute;
  inset: -15% 0 -15% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.interlude__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.45), rgba(20,20,20,.55));
}
.interlude__quote {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
}
.interlude__quote p {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .02em;
  line-height: 1.35;
  margin: 24px 0 0;
}
.interlude__rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--c-blue);
}

/* ============================================ */
/* FORM                                          */
/* ============================================ */
.form-section {
  padding: var(--pad-y) 0;
  background: var(--c-silver-tint);
}
.form-card {
  max-width: 880px;
  margin: 64px auto 0;
  padding: clamp(40px, 5vw, 72px);
  background: var(--c-paper);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 2px;
  background: var(--c-blue);
}
.form-card__heading {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 16px;
}
.form-card__sub {
  font-size: 15px;
  color: var(--c-ink-mute);
  margin: 0 0 48px;
  max-width: 50ch;
}

.form { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; gap: 28px; }
.form__row--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row--two { grid-template-columns: 1fr; } }

.form__field { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.form__field--choices { gap: 16px; }

.form__label {
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  font-weight: 500;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  border: 0;
  border-bottom: 1px solid var(--c-silver);
  background: transparent;
  padding: 10px 0 12px;
  font-size: 15px;
  color: var(--c-ink);
  transition: border-color .3s var(--ease-out-soft);
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  border-bottom-color: var(--c-blue);
}
.form textarea { min-height: 130px; line-height: 1.6; }

.form__choices { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--c-silver);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  cursor: pointer;
  transition: all .3s var(--ease-out-soft);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
.chip:has(input:checked) {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--c-ink-mute);
  cursor: pointer;
  line-height: 1.5;
}
.form__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--c-silver);
  border-radius: 0;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all .25s;
}
.form__consent input[type="checkbox"]:checked {
  background: var(--c-blue);
  border-color: var(--c-blue);
}
.form__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--c-ink);
  clip-path: polygon(20% 50%, 40% 70%, 80% 25%, 70% 15%, 40% 50%, 30% 40%);
}

.form__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  background: var(--c-ink);
  color: #fff;
  border: 0;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease-out-soft);
  margin-top: 8px;
}
.form__submit svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out-soft); }
.form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-blue);
  transform: translateX(-100%);
  transition: transform .5s var(--ease-out-soft);
}
.form__submit span, .form__submit svg { position: relative; z-index: 1; }
.form__submit:hover { color: var(--c-ink); }
.form__submit:hover::before { transform: translateX(0); }
.form__submit:hover svg { transform: translateX(4px); }

.form-success,
.form-error {
  padding: 32px 0 16px;
  border-top: 1px solid var(--c-blue);
  animation: fadeUp .8s var(--ease-out-soft);
}
.form-error { border-top-color: #d04545; }
.form-success__title,
.form-error__title {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 32px;
  margin: 0 0 8px;
}
.form-success__body,
.form-error__body { color: var(--c-ink-mute); margin: 0 0 16px; }
.form-error__retry {
  background: transparent;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: all .3s var(--ease-out-soft);
}
.form-error__retry:hover { background: var(--c-ink); color: #fff; }
.form__submit:disabled { opacity: .55; cursor: not-allowed; }
.form__submit.is-sending { pointer-events: none; }
.form__submit .form__submit-spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}
.form__submit.is-sending .form__submit-spinner { display: inline-block; }
.form__submit.is-sending svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================ */
/* FOOTER                                        */
/* ============================================ */
.footer {
  background: var(--c-paper);
  padding: 96px var(--pad-x) 40px;
  position: relative;
}
.footer__rule {
  max-width: var(--w-max);
  margin: 0 auto 80px;
  height: 1px;
  background: var(--c-silver);
}

/* Big brand mark at the top */
.footer__brand {
  max-width: var(--w-max);
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.footer__logo {
  height: clamp(80px, 11vw, 140px);
  width: auto;
}
.footer__developer { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--c-ink-mute); margin: 0; }
.footer__developer-prefix { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; opacity: .7; }
.footer__developer-name {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: .26em;
  color: var(--c-ink);
  font-size: 15px;
  text-transform: uppercase;
}

/* Three-column meta row */
.footer__grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 56px;
  border-top: 1px solid var(--c-silver-soft);
}
.footer__col p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--c-ink-mute); }
.footer__col a:hover { color: var(--c-blue); }
.footer__col-label {
  font-size: 10.5px !important;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--c-ink-faint) !important;
  margin: 0 0 14px !important;
  line-height: 1 !important;
}

.footer__col--social { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.footer__socials { display: inline-flex; gap: 12px; align-items: center; }
.footer__socials a {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--c-silver);
  border-radius: 50%;
  color: var(--c-ink-mute);
  transition: all .25s;
}
.footer__socials svg { width: 15px; height: 15px; }
.footer__socials a:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-ink);
}

.footer__bottom {
  max-width: var(--w-max);
  margin: 64px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--c-silver-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-ink-faint);
}
.footer__copy { margin: 0; }
.footer__legal { color: var(--c-ink-faint); }

.footer__admin-link {
  position: fixed;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  font-size: 10px;
  color: var(--c-ink-faint);
  opacity: .3;
  display: grid;
  place-items: center;
  z-index: 10;
}
.footer__admin-link:hover { opacity: 1; color: var(--c-blue); }

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer__col--social { align-items: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================ */
/* Reveals                                       */
/* ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out-soft), transform .9s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="word"] {
  display: inline-block;
}
[data-reveal="card"] {
  transform: translateY(40px);
}
.is-visible[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* Lines reveal (heading split) */
[data-reveal="lines"] {
  opacity: 1;
  transform: none;
}
[data-reveal="lines"] .reveal-line {
  display: block;
  overflow: hidden;
}
[data-reveal="lines"] .reveal-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.is-visible[data-reveal="lines"] .reveal-line__inner {
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero { height: 100vh; }
  .hero__video { display: none; }
  .hero__sticky { background: #141414 url(hero.jpeg) center/cover; }
}

/* ---- Preview mode (admin "Aperçu") -------------------------------------- */
/* Hide the page until the CMS content has been applied (no flash of default
   text), then reveal everything at once with no scroll-reveal animations so the
   admin sees their changes immediately. Does not affect the live site. */
.cms-preview:not(.cms-preview-ready) { visibility: hidden; }
.cms-preview [data-reveal] { opacity: 1 !important; transform: none !important; }
.cms-preview [data-reveal="lines"] .reveal-line__inner { transform: none !important; }
