/* ==========================================================================
   Zero Gravity — main stylesheet  ·  "Quiet Luxury" direction
   Sections: 1. Fonts & tokens  2. Base  3. Layout  4. Typography
             5. Header & menu   6. Buttons & links  7. Intro  8. Hero
             9. Sections        10. Media  11. Footer  12. Cursor & extras
             13. Motion         14. Reduced motion
   ========================================================================== */

/* 1. Fonts & tokens
   Fallback fonts are resized to roughly match Cormorant and Manrope, so the
   text barely shifts while the real fonts are still downloading. */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 86%;
}

@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 106%;
}

:root {
  /* Brand palette — taken from the Zero Gravity logo */
  --ink: #0b0b0b;            /* logo black (exact match to the logo's background) */
  --ink-soft: #141413;       /* lifted black for alternating sections */
  --ivory: #f4f0e8;          /* text */
  --gold: #cda365;           /* logo gold (average tone) */
  --gold-deep: #9a7440;
  --gold-light: #ebcb8e;
  /* Metallic gold, like the logo — used sparingly on key buttons */
  --gold-metal: linear-gradient(115deg, #f1dba8 0%, #cda365 42%, #9a7440 100%);

  /* "Soft" tone (lifted black sections) */
  --bg: var(--ink-soft);
  --fg: var(--ivory);
  --fg-muted: #bcb7b1;
  --accent: var(--gold);
  --line: rgba(244, 240, 232, 0.12);

  --font-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Manrope Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Type scale: one place to tune every size on the site */
  --fs-hero: clamp(3.4rem, 1.4rem + 8.4vw, 9.75rem);
  --fs-h2: clamp(2.6rem, 1.6rem + 4.2vw, 5.5rem);
  --fs-h3: clamp(1.7rem, 1.4rem + 1.1vw, 2.4rem);
  --fs-lead: clamp(1.75rem, 1.15rem + 2.3vw, 3.4rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 84rem;
  --section-y: clamp(5rem, 11vw, 10rem);
  --header-h: 5.5rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark tone — dark sections, and the whole page while a dark section
   fills the screen (see main.js: section tone). */
.tone-dark,
html.js[data-tone="dark"] body {
  --bg: var(--ink);
}

/* 2. Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.9s var(--ease-soft), color 0.9s var(--ease-soft);
}

/* Very fine film grain for a tactile, printed feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 400;
  padding: 0.75rem 1.25rem;
  background: var(--ivory);
  color: var(--ink);
  font-size: var(--fs-small);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 3. Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section,
.marquee {
  position: relative;
  background: var(--bg);
  color: var(--fg);
}

.section {
  padding-block: var(--section-y);
}

/* With JavaScript on, sections are see-through so the page colour
   can glide between light and dark as you scroll. */
html.js .section,
html.js .marquee {
  background: transparent;
  color: inherit;
}

.grid-split {
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

@media (min-width: 900px) {
  .grid-split {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* 4. Typography — hierarchy
   Hero headline > section heading > lead statement > item heading > body > labels */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.15;
}

h1 em,
h2 em {
  font-weight: 300;
  color: var(--accent);
}

p {
  margin: 0 0 1.25em;
  max-width: 36em;
  text-wrap: pretty;
}

.body-muted {
  color: var(--fg-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

.lead {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24em;
}

.lead em {
  color: var(--accent);
}

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* 5. Header & mobile menu */
/* The header is always the logo's own black, so the logo sits in it seamlessly */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--ink);
  color: var(--ivory);
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(205, 163, 101, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo: the original artwork, shown exactly as designed */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  width: auto;
  height: 52px;
}

@media (min-width: 900px) {
  .logo__img {
    height: 64px;
  }
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: clamp(1.75rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Underline that draws in from the left on hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle__icon {
  position: relative;
  width: 1.75rem;
  height: 0.6rem;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out);
}

.menu-toggle__icon::before {
  top: 0;
}

.menu-toggle__icon::after {
  top: 100%;
}

/* While the menu is open the header sits above it */
.menu-open .site-header {
  z-index: 60;
  transform: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.menu-open .menu-toggle__icon::before {
  top: 50%;
  transform: rotate(45deg);
}

.menu-open .menu-toggle__icon::after {
  top: 50%;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--ink);
  color: var(--ivory);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-out), visibility 0s linear 0.8s;
}

.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-out), visibility 0s;
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li {
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 240, 232, 0.12);
}

.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease-out), color 0.3s ease;
}

.mobile-menu a small {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  color: var(--gold);
}

.menu-open .mobile-menu a {
  transform: none;
}

/* Links rise in one after another */
.menu-open .mobile-menu li:nth-child(1) a { transition-delay: 0.15s; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 0.21s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 0.27s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 0.33s; }

.mobile-menu__foot {
  margin: 0;
  font-size: var(--fs-small);
  color: #bcb7b1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.menu-open .mobile-menu__foot {
  opacity: 1;
  transition-delay: 0.45s;
}

.menu-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

/* 6. Buttons & links */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.9rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.6s var(--ease-out), border-color 0.6s var(--ease-out), transform 0.5s var(--ease-out);
}

/* Fill that slides up from below on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}

.btn__arrow {
  width: 1.1rem;
  flex: none;
  transition: transform 0.6s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Metallic gold button; fills with ivory on hover */
.btn--solid {
  background: var(--gold-metal);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--solid::before {
  background: var(--ivory);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  border-color: var(--ivory);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--accent);
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.5s var(--ease-out), color 0.4s ease;
}

.text-link:hover {
  gap: 1.1rem;
  color: var(--accent);
}

/* Large "magnetic" call-to-action button: a soft, cushioned pill */
.btn-circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1.5rem 2.6rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  background: var(--gold-metal);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.5s var(--ease-out), color 0.5s ease;
}

.btn-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}

.btn-circle:hover::before,
.btn-circle:focus-visible::before {
  transform: none;
}

.btn-circle span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* 7. Intro — a short branded opening, shown once per visit */
.intro {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--ink);
  color: var(--ivory);
}

html.js:not(.intro-seen) .intro {
  display: flex;
}

/* The logo emerges softly; its black background matches the intro panel */
.intro__logo {
  width: min(22rem, 78vw);
  height: auto;
}

.intro__bar {
  width: 7rem;
  height: 1px;
  background: rgba(244, 240, 232, 0.15);
  overflow: hidden;
}

.intro__bar::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* 8. Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__bg,
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gentle darkening at the bottom so the headline always reads clearly */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.88), rgba(12, 12, 12, 0) 62%);
}

/* Each art layer drifts slightly with the mouse (values set by main.js) */
.hero-layer--rings {
  transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px));
}

.hero-layer--figure {
  transform: translate(calc(var(--mx, 0) * 30px), calc(var(--my, 0) * 20px));
}

.figure-shadow {
  transform-box: fill-box;
  transform-origin: center;
}

.hero__content {
  position: relative;
  display: grid;
  gap: 2.25rem;
}

.hero h1 {
  max-width: 11ch;
}

.hero h1 .line {
  white-space: nowrap;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.hero__foot p {
  margin: 0;
  max-width: 25rem;
  color: #d3d0c8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Vertical "Scroll" cue: a fine line that gently draws downward */
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 8vh, 5.5rem);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--fg-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-rl;
  transition: color 0.3s ease;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 4.5rem;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
}

.scroll-cue:hover {
  color: var(--gold);
}

@media (min-width: 1200px) {
  .scroll-cue {
    display: flex;
  }
}

/* 9. Sections */

/* Marquee — slow ribbon of brand words */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-block: 1px solid var(--line);
}

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-right: clamp(2rem, 4vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 5.25rem);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.marquee__group .is-outline {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg-muted);
}

.marquee__dot {
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

/* Statement */
.statement__meta {
  display: grid;
  gap: 2rem 3rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.statement__meta p {
  margin: 0;
  color: var(--fg-muted);
}

.statement__label {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  justify-items: start;
}

.statement__label .label {
  color: var(--accent);
}

@media (min-width: 900px) {
  .statement__meta {
    grid-template-columns: 1fr 1.25fr 1.25fr;
  }
}

/* Experience — editorial overlapping images */
.split__visual {
  position: relative;
  margin: 0;
  padding: 0 14% 14% 0;
}

.split__main {
  display: block;
  text-decoration: none;
}

.media-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
}

.media-float .media {
  aspect-ratio: 1;
  outline: clamp(6px, 0.8vw, 10px) solid var(--bg);
}

.split__visual figcaption {
  max-width: 48%;
  margin-top: 1rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.split__text h2 {
  margin-bottom: 2rem;
}

.split__text p {
  color: var(--fg-muted);
}

.details {
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.details div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.details dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--accent);
}

.details dd {
  margin: 0;
  color: var(--fg-muted);
}

/* Principles — interactive editorial list */
.principles__head {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.principles__head p {
  margin: 0;
  color: var(--fg-muted);
}

@media (min-width: 900px) {
  .principles__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .principles__head p {
    justify-self: end;
  }
}

.principles__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.principle {
  position: relative;
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

/* Champagne line that sweeps across on hover */
.principle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}

.principle:hover::after {
  transform: scaleX(1);
}

.principle__num {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* Line icons: one consistent style across the site */
.icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle h3 {
  transition: transform 0.7s var(--ease-out);
}

.principle:hover h3 {
  transform: translateX(0.75rem);
}

.principle p {
  margin: 0;
  color: var(--fg-muted);
}

@media (min-width: 900px) {
  .principle {
    grid-template-columns: 8rem 1fr 1fr;
    align-items: baseline;
  }
}

/* Full-width image band with a quote */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(28rem, 80vh, 52rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}

.band__media {
  position: absolute;
  inset: -12% 0;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band blockquote {
  position: relative;
  margin: 0;
  padding-inline: var(--gutter);
}

.band blockquote p {
  margin-inline: auto;
  max-width: 17em;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.12;
}

.band blockquote p span {
  color: var(--gold);
}

/* Closing call to action */
.cta__grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

.cta h2 {
  max-width: 12ch;
}

.cta__side {
  display: grid;
  gap: 2.5rem;
  justify-items: start;
}

.cta__side p {
  margin: 0;
  color: var(--fg-muted);
}

@media (min-width: 900px) {
  .cta__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* 9b. Inner pages (About, Experience, …) */

/* Page hero — a shorter opening than the home page, same mood */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  min-height: 78svh;
  padding-block: calc(var(--header-h) + 4rem) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page illustration on the right: ergonomics, footcare or the chair itself */
.page-hero__art {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(58rem, 105vw);
  height: auto;
  opacity: 0.55;
  translate: 0 -50%;
  pointer-events: none;
}

@media (min-width: 900px) {
  .page-hero__art {
    opacity: 0.95;
  }
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.9), rgba(11, 11, 11, 0) 65%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 1.6rem + 6.8vw, 8rem);
}

.page-hero__intro {
  margin: 0;
  max-width: 32rem;
  color: #d3d0c8;
}

/* Breadcrumb: "Home / About" */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--gold);
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb [aria-current="page"] {
  color: var(--ivory);
}

/* Pillars — four values in an open, numbered row (no boxes) */
.pillars__head {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.pillars__head p {
  margin: 0;
  color: var(--fg-muted);
}

.pillars__list {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
}

.pillar__num {
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.pillar h3 {
  margin-bottom: 0.9rem;
}

.pillar p {
  margin: 0;
  color: var(--fg-muted);
}

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

@media (min-width: 900px) {
  .pillars__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .pillars__head p {
    justify-self: end;
  }
}

@media (min-width: 1100px) {
  .pillars__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Journey — the title stays in view while the steps scroll past */
.journey__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.journey__intro p {
  color: var(--fg-muted);
}

.journey__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step .icon {
  margin-bottom: 0.25rem;
}

.step__num {
  grid-row: span 3;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.75rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--gold);
}

.step p {
  margin: 0;
  color: var(--fg-muted);
}

@media (min-width: 900px) {
  .journey__grid {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }

  .journey__intro {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }
}

/* Gallery — three staggered images, editorial style */
.gallery__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.gallery__head p {
  margin: 0;
  color: var(--fg-muted);
}

.gallery__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.gallery__item {
  margin: 0;
}

.gallery__item .media {
  aspect-ratio: 4 / 5;
}

.gallery__item figcaption {
  margin-top: 1rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

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

@media (min-width: 900px) {
  .gallery__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .gallery__head p {
    justify-self: end;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .gallery__item:nth-child(2) {
    margin-top: 7rem;
  }

  .gallery__item:nth-child(3) {
    margin-top: 3.5rem;
  }
}

/* Atmosphere — heading beside a list of details */
.atmosphere__grid {
  display: grid;
  gap: 2.5rem clamp(3rem, 7vw, 7rem);
}

.atmosphere__grid .details {
  margin: 0;
}

@media (min-width: 900px) {
  .atmosphere__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

/* Information still to be supplied by Zero Gravity — easy to spot and replace.
   Search the HTML for "TO ADD" to find every one. */
.to-add {
  color: var(--fg-muted);
  font-style: italic;
  text-decoration: underline dashed var(--gold);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

/* Compact page hero for text-led pages such as the Privacy Policy */
.page-hero--compact {
  min-height: 0;
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 7rem));
}

.page-hero--compact h1 {
  font-size: clamp(3rem, 1.8rem + 5vw, 6.5rem);
}

/* Contact — large, calm list of ways to get in touch */
.contact__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact__intro p {
  color: var(--fg-muted);
}

.contact__list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact__item {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.contact__item dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact__item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 300;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact__item dd a {
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left bottom / 0 1px;
  transition: background-size 0.6s var(--ease-out), color 0.3s ease;
}

.contact__item dd a:hover {
  color: var(--gold);
  background-size: 100% 1px;
}

.contact__item dd .to-add {
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

@media (min-width: 640px) {
  .contact__item {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
}

/* Next steps — two quiet links to other pages */
.next-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.next-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.4s ease, padding 0.6s var(--ease-out);
}

.next-links a:hover {
  color: var(--gold);
  padding-left: 1rem;
}

.next-links .btn__arrow {
  width: 2rem;
  color: var(--gold);
}

@media (min-width: 900px) {
  .next-links {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }
}

/* Legal text — contents list beside comfortable reading columns */
.legal__grid {
  display: grid;
  gap: 3rem clamp(3rem, 7vw, 7rem);
}

.legal__toc {
  font-size: var(--fs-small);
}

.legal__toc ol {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.legal__toc li {
  counter-increment: toc;
}

.legal__toc a {
  display: inline-flex;
  gap: 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gold);
}

.legal__toc a:hover {
  color: var(--fg);
}

.legal__body {
  max-width: 44rem;
}

.legal__body section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal__body h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.75rem);
}

.legal__body p,
.legal__body li {
  color: var(--fg-muted);
}

.legal__body ul {
  margin: 0 0 1.25em;
  padding-left: 1.2rem;
}

.legal__body li {
  margin-bottom: 0.5rem;
}

.legal__body li::marker {
  color: var(--gold);
}

.legal__body strong {
  color: var(--fg);
  font-weight: 600;
}

.legal__body a {
  color: var(--gold);
  text-underline-offset: 0.25em;
}

.legal__note {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: rgba(205, 163, 101, 0.06);
  color: var(--fg-muted);
  font-size: var(--fs-small);
}

@media (min-width: 900px) {
  .legal__grid {
    grid-template-columns: 15rem 1fr;
    align-items: start;
  }

  .legal__toc {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

/* 10. Media frames */
.media {
  position: relative;
  overflow: hidden;
  background: #232623;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

/* 11. Footer */
.site-footer {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem) 2.5rem;
  background: var(--ink);
  color: var(--ivory);
}

.site-footer__top {
  display: grid;
  gap: 3rem;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.site-footer__brand {
  margin: 0;
}

.site-footer__brand img {
  width: clamp(15rem, 34vw, 26rem);
  height: auto;
}

.site-footer nav ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 240, 232, 0.14);
  font-size: var(--fs-small);
  color: #b5b7b0;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.site-footer__links {
  display: flex;
  gap: 2rem;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }

  .site-footer nav {
    justify-self: end;
  }
}

/* 12. Cursor & extras (created by main.js on mouse/trackpad devices only) */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 2px;
  background: var(--gold-metal);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

html.has-cursor body,
html.has-cursor a,
html.has-cursor button {
  cursor: none;
}

.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cursor {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--ivory);
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  mix-blend-mode: difference;
}

.cursor-ring__circle {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ivory);
  border-radius: 50%;
  transition: transform 0.55s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
}

.cursor-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 0.6rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-ring.is-link .cursor-ring__circle {
  transform: scale(1.5);
  background: rgba(244, 240, 232, 0.12);
}

.cursor-ring.is-label {
  mix-blend-mode: normal;
}

.cursor-ring.is-label .cursor-ring__circle {
  transform: scale(2.1);
  background: var(--gold);
  border-color: var(--gold);
}

.cursor-ring.is-label .cursor-ring__label {
  opacity: 1;
}

.cursor-ring.is-down .cursor-ring__circle {
  transform: scale(0.75);
}

.cursor.is-hidden,
.cursor-ring.is-hidden {
  opacity: 0;
}

/* Floating image preview that follows the cursor over the principles list */
.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 16rem;
  aspect-ratio: 4 / 5;
  margin: -10rem 0 0 -8rem;
  pointer-events: none;
}

.hover-preview__frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.4s ease, transform 0.7s var(--ease-out);
}

.hover-preview.is-active .hover-preview__frame {
  opacity: 1;
  transform: none;
}

.hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 13. Motion
   Everything below only applies when the visitor has NOT asked their
   device to reduce motion, and when JavaScript is running (html.js). */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Soft cross-fade between pages in browsers that support it */
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: vt-out 0.45s var(--ease-soft) both;
  }

  ::view-transition-new(root) {
    animation: vt-in 0.7s var(--ease-out) both;
  }

  @keyframes vt-out {
    to { opacity: 0; }
  }

  @keyframes vt-in {
    from { opacity: 0; transform: translateY(12px); }
  }

  /* Intro: the logo rises gently out of a soft blur, then the panel lifts away */
  .intro {
    animation: intro-out 1s var(--ease-soft) 1.85s forwards;
  }

  .intro__logo {
    opacity: 0;
    animation: emerge 1.3s var(--ease-out) 0.1s forwards;
  }

  .intro__bar::after {
    animation: fill 1.4s var(--ease-soft) 0.2s forwards;
  }

  @keyframes emerge {
    from { opacity: 0; transform: translateY(18px); filter: blur(10px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }

  @keyframes fill { to { transform: scaleX(1); } }

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

  @keyframes intro-out {
    to { clip-path: inset(0 0 100% 0); visibility: hidden; }
  }

  /* Hero art: slow drift, floating chair, flowing dashed line, breathing glow */
  .hero__bg {
    animation: hero-drift 26s var(--ease-soft) infinite alternate;
    transform-origin: 60% 40%;
  }

  @keyframes hero-drift {
    from { transform: scale(1); }
    to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  }

  /* The chair and figure rise and settle with a slight sway; the shadow
     shrinks and fades as they rise, so they read as truly floating */
  .float {
    transform-box: fill-box;
    transform-origin: center;
    animation: float-sway 8s ease-in-out infinite alternate;
  }

  @keyframes float-sway {
    from { transform: translateY(6px) rotate(0.5deg); }
    to { transform: translateY(-26px) rotate(-0.8deg); }
  }

  .page-hero__art {
    animation: float 9s ease-in-out infinite alternate;
  }

  .page-hero__bg {
    animation: hero-drift 26s var(--ease-soft) infinite alternate;
    transform-origin: 60% 40%;
  }

  @keyframes float {
    from { transform: translateY(5px); }
    to { transform: translateY(-20px); }
  }

  .figure-shadow {
    animation: shadow 8s ease-in-out infinite alternate;
  }

  @keyframes shadow {
    from { transform: scaleX(1); opacity: 1; }
    to { transform: scaleX(0.8); opacity: 0.55; }
  }

  .ring-dash {
    animation: ring-dash 70s linear infinite;
  }

  @keyframes ring-dash {
    to { stroke-dashoffset: -700; }
  }

  .figure-glow {
    animation: breathe 7s ease-in-out infinite alternate;
  }

  @keyframes breathe {
    from { opacity: 0.65; }
    to { opacity: 1; }
  }

  html.js .hero__media {
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 2s ease, transform 3s var(--ease-out);
  }

  html.js.is-loaded .hero__media {
    opacity: 1;
    transform: none;
  }

  .scroll-cue::after {
    animation: cue 2.6s var(--ease-soft) infinite;
  }

  @keyframes cue {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  /* Headline: lines rise out of a mask (fallback) ... */
  .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
  }

  .line > span {
    display: block;
  }

  html.js .line > span {
    transform: translateY(110%);
    transition: transform 1.4s var(--ease-out);
  }

  html.js.is-loaded .line > span {
    transform: none;
  }

  html.js.is-loaded .line:nth-child(2) > span { transition-delay: 0.12s; }
  html.js.is-loaded .line:nth-child(3) > span { transition-delay: 0.24s; }

  /* ... or, once main.js has split it, letter by letter out of a soft blur */
  html.js .is-split .line > span {
    transform: none;
    transition: none;
  }

  .char {
    display: inline-block;
  }

  html.js .is-split .char {
    opacity: 0;
    transform: translateY(0.55em) rotate(4deg);
    filter: blur(12px);
    transition: opacity 1s ease, transform 1.3s var(--ease-out), filter 1.3s var(--ease-out);
    transition-delay: calc(var(--i) * 32ms + 0.1s);
  }

  html.js.is-loaded .is-split .char {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

  /* Hero supporting elements fade in after the headline */
  html.js .hero-fade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1.2s ease, transform 1.2s var(--ease-out);
    transition-delay: 0.8s;
  }

  html.js.is-loaded .hero-fade {
    opacity: 1;
    transform: none;
  }

  html.js.is-loaded .hero-fade--late {
    transition-delay: 1.15s;
  }

  /* Marquee ribbon */
  .marquee__track {
    animation: marquee 45s linear infinite;
  }

  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }

  @keyframes marquee {
    to { transform: translateX(-50%); }
  }

  /* Scroll reveals: gentle fade and lift, plays once */
  html.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.2s ease, transform 1.2s var(--ease-out);
    transition-delay: var(--delay, 0s);
  }

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

  /* Image reveal: the image uncovers upwards while it settles.
     (The clip sits on the image, not the frame, so the frame stays
     detectable by the scroll observer.) */
  html.js .media.reveal-media {
    background: transparent;
  }

  html.js .media.reveal-media img {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.18);
    transition: clip-path 1.6s var(--ease-out), transform 2.2s var(--ease-out);
    transition-delay: var(--delay, 0s);
  }

  html.js .media.reveal-media.is-visible img {
    clip-path: inset(0 0 0 0);
    transform: none;
  }

  /* Hovering the main experience image zooms it slightly */
  .split__main .media img {
    transition: clip-path 1.6s var(--ease-out), transform 1.2s var(--ease-out);
  }

  html.js .split__main:hover .media.is-visible img {
    transform: scale(1.04);
  }

  /* Parallax layers are moved by main.js; this keeps them smooth */
  [data-parallax] {
    will-change: transform;
  }
}

/* 14. Reduced motion — no movement, content simply appears */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .intro,
  .marquee__track {
    animation: none !important;
  }

  .intro {
    display: none !important;
  }
}
