/* Wavechrome website: shared layout, navigation and components.
   Tokens follow the Wavechrome design system (Website UI Kit):
   soft whites, a single blue action colour, rounded surfaces,
   colour confined to small tinted icon badges. */

:root {
  /* Brand (logo) */
  --brand-blue: #0c77bc;
  --brand-yellow: #e0e31d;
  --brand-green: #146b36;

  /* Action colour */
  --accent: #0071e3;
  --accent-hover: #0063c6;
  --accent-soft: #e8f1fd;

  /* Surfaces */
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --hairline: #e8e8ed;
  --field-border: #d2d2d7;
  --night: #0b1221;

  /* Text */
  --fg1: #1d1d1f;
  --fg2: #424245;
  --fg3: #6e6e73;
  --fg4: #a1a1a6;

  /* Status */
  --ok: #1d8a4e;
  --error: #d0342c;

  /* Radii */
  --r-card: 18px;
  --r-inner: 13px;
  --r-badge: 10px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-focus: 0 0 0 3px rgba(0, 113, 227, 0.28);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --content: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--fg1);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--r-inner);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

/* ---------- Layout ---------- */

/* Full-bleed band whose content is centred at --content width */
.wrap {
  padding-left: max(var(--gutter), calc((100% - var(--content)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--content)) / 2));
}

.section {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.section--canvas {
  background: var(--canvas);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  text-align: center;
}

.overline {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  font-size: clamp(1.75rem, 3.4vw, 2.15rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--fg3);
}

.section-head .lede {
  margin: 0.9rem auto 0;
  max-width: 38rem;
}

.muted {
  color: var(--fg3);
}

.small {
  font-size: 0.9rem;
}

.statement {
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg1);
}

.grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 720px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid--narrow {
  max-width: 50rem;
  margin: 0 auto;
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--wide-left {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split--wide-right {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.center {
  text-align: center;
}

.narrow {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.center .actions {
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(var(--gutter), calc((100% - var(--content)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--content)) / 2));
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header__logo {
  display: inline-flex;
  padding: 0.4rem 0;
}

.site-header__logo img {
  width: auto;
  height: 1.6rem;
}

.site-header__logo-light {
  display: none !important;
}

.menu-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background: var(--accent-soft);
}

.menu-toggle__bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 2px;
  margin: -1px 0 0 -0.75rem;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}

.menu-toggle__bar:nth-child(2) {
  transform: rotate(90deg);
}

.menu-toggle[aria-expanded="true"] {
  color: var(--fg1);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  transform: rotate(135deg);
}

/* Over a photo hero: transparent header with a light logo until scrolled */
.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-header__logo-dark {
  display: none !important;
}

.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-header__logo-light {
  display: block !important;
}

.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .menu-toggle {
  color: #fff;
}

.site-header.is-menu-open {
  background: var(--surface);
  border-bottom-color: transparent;
}

/* ---------- Full-screen menu ---------- */

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) max(var(--gutter), calc((100% - var(--content)) / 2)) 2rem;
  background: var(--surface);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.site-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.site-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu__list a {
  display: inline-block;
  color: var(--fg1);
  font-size: clamp(2.1rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  transform: translateY(0.35em);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.2s ease;
}

.site-menu.is-open .site-menu__list a {
  transform: none;
  opacity: 1;
}

.site-menu.is-open .site-menu__list > li:nth-child(2) a { transition-delay: 0.04s; }
.site-menu.is-open .site-menu__list > li:nth-child(3) a { transition-delay: 0.08s; }
.site-menu.is-open .site-menu__list > li:nth-child(4) a { transition-delay: 0.12s; }
.site-menu.is-open .site-menu__list > li:nth-child(5) a { transition-delay: 0.16s; }

.site-menu__list a:hover,
.site-menu__list a:focus-visible,
.site-menu__list > li > a[aria-current="page"] {
  color: var(--accent);
}

.site-menu__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0.2rem 0 0.75rem;
  padding: 0 0 0 0.15em;
}

.site-menu .site-menu__sub a {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg3);
}

.site-menu .site-menu__sub a:hover,
.site-menu .site-menu__sub a:focus-visible,
.site-menu .site-menu__sub a[aria-current="page"] {
  color: var(--accent);
}

.site-menu__cta {
  margin-top: 2.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-menu,
  .site-menu__list a,
  .menu-toggle__bar {
    transition: none !important;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: var(--r-inner);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.button:active {
  transform: scale(0.98);
}

.button--pill {
  border-radius: var(--r-pill);
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.button--lg {
  min-height: 3.25rem;
  font-size: 1rem;
}

/* White secondary button with a hairline border */
.button--ghost {
  background: var(--surface);
  border-color: var(--hairline);
  color: var(--fg1);
  box-shadow: var(--shadow-sm);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--surface);
  border-color: var(--field-border);
  color: var(--fg1);
  box-shadow: var(--shadow-md);
}

/* Borderless text button */
.button--text {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.button--text:hover,
.button--text:focus-visible {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-hover);
}

/* White button on a photo */
.button--light {
  background: #fff;
  border-color: #fff;
  color: var(--fg1);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--fg1);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button .icon {
  width: 1rem;
  height: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}

/* Two soft glows in the logo's blue and yellow, drifting slowly */
.hero:not(.hero--photo)::before,
.hero:not(.hero--photo)::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.hero:not(.hero--photo)::before {
  top: -18rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(12, 119, 188, 0.14), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.hero:not(.hero--photo)::after {
  top: -14rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(224, 227, 29, 0.16), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg3);
}

.center .hero__lede {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__image {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating {
    animation: none;
  }
}

/* Photo hero (calibration) */
.hero--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 34rem;
  padding-bottom: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}

.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("calibration_device.jpg") center / cover no-repeat;
  animation: slow-zoom 24s ease-out both;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 18, 33, 0.85) 0%, rgba(11, 18, 33, 0.45) 55%, rgba(11, 18, 33, 0.1) 100%);
}

.hero--photo > * {
  width: 100%;
}

.hero--photo .hero__title {
  color: #fff;
}

.hero--photo .hero__lede {
  color: rgba(255, 255, 255, 0.8);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.center .tags {
  justify-content: center;
}

.tag {
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--tint-bg, var(--accent-soft));
  color: var(--tint-fg, var(--accent));
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Tints for icon badges and tags ---------- */

.tint-blue { --tint-fg: #0071e3; --tint-bg: #e8f1fd; }
.tint-green { --tint-fg: #1d8a4e; --tint-bg: #e6f4ec; }
.tint-orange { --tint-fg: #c8741a; --tint-bg: #fbeede; }
.tint-purple { --tint-fg: #7c4dde; --tint-bg: #efeafd; }
.tint-teal { --tint-fg: #0f8f9e; --tint-bg: #e3f4f5; }
.tint-indigo { --tint-fg: #4257c4; --tint-bg: #e9ecfa; }
.tint-olive { --tint-fg: #7a8a1f; --tint-bg: #f2f4df; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-badge);
  background: var(--tint-bg, var(--accent-soft));
  color: var(--tint-fg, var(--accent));
}

.badge .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.badge--sm {
  width: 2.5rem;
  height: 2.5rem;
}

.badge--sm .icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* ---------- Cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.4rem, 3vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.card .badge {
  margin-bottom: 0.6rem;
}

.card__title {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg3);
}

.card--center {
  align-items: center;
  text-align: center;
}

.card--lg {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

a.card,
.card--lift {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

a.card:hover,
a.card:focus-visible,
.card--lift:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}

.card__go {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent);
}

.card__go .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

a.card:hover .card__go .icon {
  transform: translateX(3px);
}

.product-tile img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

/* About list: icon badge + text */
.feature-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.feature-list p {
  margin: 0;
  color: var(--fg3);
}

.icon-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.icon-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--fg2);
  font-weight: 500;
}

.icon-list .icon {
  margin-top: 0.15rem;
  color: var(--accent);
}

.icon-list--check .icon {
  color: var(--ok);
}

/* Software product card */
.product {
  max-width: 52rem;
  margin: 0 auto;
}

.product__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}

.product__head img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.product__chip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg3);
}

.product__title {
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.product__detail {
  margin: 0.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--r-inner);
  background: var(--canvas);
}

.product__detail-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.product__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

/* ---------- Media ---------- */

.figure {
  display: block;
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
}

.gallery {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  background: var(--canvas);
}

.gallery--wide img {
  aspect-ratio: 5 / 4;
}

/* ---------- Forms ---------- */

.form-card {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.form {
  display: grid;
  gap: 1.25rem 1rem;
}

@media (min-width: 640px) {
  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form__field--full,
  .form__actions,
  .form__status {
    grid-column: 1 / -1;
  }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form__field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg1);
}

.form__req {
  margin-left: 0.15em;
  color: var(--accent);
}

.form input,
.form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--field-border);
  border-radius: var(--r-inner);
  background: var(--surface);
  color: var(--fg1);
  font: inherit;
  font-size: 1rem;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--fg4);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.form [aria-invalid="true"] {
  border-color: var(--error);
}

.form [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(208, 52, 44, 0.2);
}

.form__error {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}

.form [aria-invalid="true"] ~ .form__error {
  display: block;
}

.form__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.form__actions .button {
  width: 100%;
  max-width: 22rem;
}

.form__status {
  min-height: 1.5em;
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: var(--ok);
}

.form__status.is-error {
  color: var(--error);
}

.form-note {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  text-align: center;
  color: var(--fg3);
}

.hp-field {
  display: none !important;
}

/* ---------- Prose (legal pages) ---------- */

.prose {
  max-width: 46rem;
  margin: 0 auto;
}

.prose h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: 1.3rem;
}

.prose p {
  line-height: 1.75;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.site-footer__top {
  display: grid;
  gap: 2rem 2.5rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: 2.5rem;
}

@media (min-width: 800px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.site-footer__brand {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.site-footer__tagline {
  max-width: 24rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg3);
}

.site-footer__heading {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg3);
}

.site-footer__list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg2);
}

.site-footer__list a {
  color: var(--fg2);
}

.site-footer__list a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg4);
}

.site-footer__bottom a {
  color: var(--fg3);
}

/* ---------- Reveal on scroll ---------- */

/* Hidden until scrolled into view, then risen in with an animation so
   the elements' own hover transitions stay untouched. */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  opacity: 1;
  animation: rise 0.7s var(--ease) var(--reveal-delay, 0s) backwards;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
  }
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift-a {
  to {
    transform: translate(6rem, 3rem) scale(1.1);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-5rem, 4rem) scale(1.08);
  }
}

@keyframes slow-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero content enters in sequence on page load */
.hero__title,
.hero__lede,
.hero .tags,
.hero .actions {
  animation: rise 0.8s var(--ease) both;
}

.hero__title { animation-delay: 0.05s; }
.hero__lede { animation-delay: 0.15s; }
.hero__lede + .hero__lede { animation-delay: 0.22s; }
.hero .tags,
.hero .actions { animation-delay: 0.3s; }

.hero__image {
  animation: rise 1s var(--ease) 0.25s both;
}

/* The film image keeps floating once it has risen in */
.hero__image.floating {
  animation: rise 1s var(--ease) 0.25s both, float 6s ease-in-out 1.3s infinite;
}

/* Cards in a row reveal one after another */
.grid > .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.grid > .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.grid > .reveal:nth-child(4) { --reveal-delay: 0.24s; }
.grid > .reveal:nth-child(5) { --reveal-delay: 0.32s; }
.grid > .reveal:nth-child(6) { --reveal-delay: 0.4s; }

.split > .reveal:nth-child(2) { --reveal-delay: 0.12s; }
.gallery > .reveal:nth-child(2) { --reveal-delay: 0.1s; }

/* Icon badges lift gently with their card */
.badge {
  transition: transform 0.3s var(--ease);
}

a.card:hover .badge,
.card--lift:hover .badge,
.card:hover .badge {
  transform: translateY(-3px);
}

.card {
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Gallery photos lift slightly on hover */
.gallery img,
.figure img {
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.gallery img:hover,
.figure img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Underline that grows on hover for text links */
.site-footer__list a,
.site-footer__bottom a,
.prose a,
.form-note a,
.lede a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__bottom a:hover,
.prose a:hover,
.form-note a:hover,
.lede a:hover {
  background-size: 100% 1px;
}

/* Header gains a soft shadow once the page scrolls */
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* Form messages fade in */
.form__status:not(:empty),
.form [aria-invalid="true"] ~ .form__error {
  animation: fade-in 0.3s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
