/*
 * WaitHero — shared stylesheet for every page (index, index-en, space, space-en).
 * Desktop-first. Breakpoints: 1350px, 1000px (mobile navigation) and 650px (phones).
 * Web fonts are loaded with a <link> in each page's <head>.
 */

/* ---------- Tokens ---------- */

:root {
  --ink: #17251f;
  --forest: #10291f;
  --paper: #faf9f5;
  --stone: #e7e1d6;
  --coral: #f36f4b;
  --coral-light: #f2a083;
  --sand: #dfbfa2;
  --line: rgba(23, 37, 31, .15);
  --line-light: rgba(255, 255, 255, .2);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: clamp(22px, 7.7vw, 148px);
  --header-offset: 68px; /* height of the header once the page has scrolled */
}

@media (max-width: 650px) {
  :root {
    --gutter: 22px;
  }
}

/* ---------- Base ---------- */

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

em {
  font-family: var(--serif);
  font-weight: 500;
}

/* In-page link targets stop just below the fixed header. */
[id] {
  scroll-margin-top: var(--header-offset);
}

/* ---------- Shared components ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: rgba(255, 255, 255, .74);
}

.section-tag {
  margin: 7px 0;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .19em;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  min-height: 56px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: white;
  color: var(--ink);
}

.button-coral {
  background: var(--coral);
  color: #111;
}

.text-link {
  font-size: 13px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.text-link span {
  margin-left: 8px;
}

.text-link-light {
  color: rgba(255, 255, 255, .8);
}

/* Scroll-in animation: script.js adds .visible once the element enters the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Until it is revealed a link target sits 28px lower, so it needs 28px more scroll margin. */
.reveal[id]:not(.visible) {
  scroll-margin-top: calc(var(--header-offset) + 28px);
}

/* ---------- Section headings ---------- */

.intro h2,
.connection h2 {
  font-size: clamp(48px, 6vw, 90px);
  letter-spacing: -.055em;
  line-height: .98;
  margin: 8px 0 38px;
  font-weight: 500;
}

.intro h2 em,
.connection h2 em {
  color: #7c927f;
}

.product-copy h2,
.adv h2 {
  font-size: clamp(46px, 5.5vw, 82px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 500;
  margin: 24px 0 30px;
}

.product-copy h2 em {
  color: #6b7f70;
}

.adv h2 em {
  color: var(--coral-light);
}

@media (max-width: 650px) {
  .intro h2,
  .connection h2 {
    font-size: 49px;
  }

  .product-copy h2,
  .adv h2 {
    font-size: 48px;
  }
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  padding: 0 clamp(22px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-bottom: 1px solid var(--line-light);
  transition: all .35s;
}

.site-header.scrolled {
  height: 68px;
  background: rgba(250, 249, 245, .92);
  color: var(--ink);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-symbol rect {
  fill: rgba(255, 255, 255, .035);
  stroke: currentColor;
  stroke-width: 1.5;
}

.brand-symbol path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-symbol circle {
  fill: var(--coral);
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -.055em;
}

.brand-name strong {
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
}

.desktop-nav a,
.nav-cta {
  transition: opacity .2s;
}

.desktop-nav a:hover,
.nav-cta:hover {
  opacity: .6;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .12em;
}

.language-switch span {
  font-weight: 700;
}

.language-switch a {
  opacity: .6;
}

.language-switch a:hover {
  opacity: 1;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
}

.nav-cta span {
  margin-left: 8px;
}

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

@media (max-width: 1000px) {
  .desktop-nav,
  .nav-cta,
  .site-header > .language-switch {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: inherit;
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    background: var(--paper);
    color: var(--ink);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .16);
  }

  /* While closed the menu also carries the inert attribute (set by script.js), so its links can't take focus. */
  .mobile-menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .mobile-menu .language-switch {
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 650px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .site-header.scrolled {
    height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
  }
}

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

.hero {
  height: min(900px, 100svh);
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image {
  animation: heroZoom 10s ease-out both;
}

.space-hero .hero-image {
  object-position: center 58%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 21, 15, .83) 0%, rgba(5, 21, 15, .61) 42%, rgba(5, 21, 15, .08) 78%),
    linear-gradient(0deg, rgba(5, 15, 11, .62), transparent 45%);
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(790px, 80vw);
  margin: 0 0 10vh var(--gutter);
}

.hero h1 {
  font-size: clamp(58px, 7vw, 116px);
  line-height: .91;
  letter-spacing: -.065em;
  margin: 26px 0 30px;
  font-weight: 500;
}

.hero h1 em {
  color: var(--sand);
}

.hero-lead {
  max-width: 620px;
  font-size: clamp(17px, 1.4vw, 22px);
  color: rgba(255, 255, 255, .8);
  margin: 0 0 35px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.hero-proof span {
  display: grid;
  padding: 13px 18px 0 0;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.hero-proof span + span {
  padding-left: 18px;
}

.hero-proof strong {
  font: 500 clamp(21px, 2vw, 30px) var(--serif);
}

.hero-proof small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .68);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Alternative network summary, currently hidden in the markup. */
.hero-network-map {
  position: absolute;
  z-index: 3;
  right: 6vw;
  top: 125px;
  width: min(340px, 28vw);
  display: grid;
  gap: 10px;
}

.hero-network-map div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(8, 29, 20, .58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 4px;
  color: white;
}

.hero-network-map small {
  font-size: 8px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .58);
}

.hero-network-map strong {
  font: 500 19px var(--serif);
}

.hero-network-map span {
  font-size: 10px;
  color: rgba(255, 255, 255, .7);
}

.hero-index {
  position: absolute;
  z-index: 2;
  bottom: 41px;
  right: 5vw;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .1em;
}

.hero-index-line {
  width: 70px;
  height: 1px;
  background: rgba(255, 255, 255, .45);
}

.hero-side {
  position: absolute;
  right: 2vw;
  top: 43%;
  z-index: 2;
  writing-mode: vertical-rl;
  padding: 13px 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(5, 21, 15, .58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

@media (max-width: 1350px) {
  .hero-network-map {
    display: none;
  }
}

@media (max-width: 1000px) {
  .hero-side {
    display: none;
  }
}

@media (max-width: 650px) {
  .hero {
    min-height: 720px;
  }

  .hero:has(.hero-proof) {
    min-height: 790px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 21, 15, .83), rgba(5, 21, 15, .35)),
      linear-gradient(0deg, rgba(5, 15, 11, .7), transparent 55%);
  }

  .hero-content {
    width: auto;
    margin: 0 var(--gutter) 90px;
  }

  .hero:has(.hero-proof) .hero-content {
    margin-bottom: 55px;
  }

  .hero h1 {
    font-size: 54px;
    margin: 22px 0;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero-proof {
    margin-top: 24px;
  }

  .hero-proof span {
    padding: 10px 8px 0 0;
  }

  .hero-proof span + span {
    padding-left: 8px;
  }

  .hero-proof strong {
    font-size: 19px;
  }

  .hero-proof small {
    font-size: 7px;
    letter-spacing: .04em;
  }

  .hero-index {
    display: none;
  }
}

/* ---------- Intro ---------- */

.intro {
  padding: 120px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  background: var(--paper);
}

.intro-copy {
  max-width: 870px;
}

.kicker {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: #76857c;
  font-size: 20px;
}

.intro-copy > p:last-child {
  max-width: 620px;
  margin-left: auto;
  color: #657169;
  font-size: 18px;
}

.pillars {
  grid-column: 1 / -1;
  margin-top: 65px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillars a {
  position: relative;
  min-height: 170px;
  padding: 24px 30px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background .25s;
}

.pillars a:first-child {
  border-left: 1px solid var(--line);
}

.pillars a:hover {
  background: #f0ece3;
}

.pillars span,
.pillars small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7b867f;
}

.pillars strong {
  margin: auto 0 5px;
  font-size: 24px;
  font-weight: 500;
}

.pillars b {
  position: absolute;
  right: 25px;
  bottom: 24px;
  font-weight: 400;
}

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

  .intro-copy > p:last-child {
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .intro {
    padding: 90px var(--gutter);
  }

  .pillars {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .pillars a {
    border-left: 1px solid var(--line);
    min-height: 125px;
  }
}

/* ---------- Product sections (Space; Manager adds to these below) ---------- */

.product {
  padding: 130px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 150px);
  align-items: center;
  overflow: hidden;
}

.product-spacem {
  background: var(--stone);
}

.product-copy {
  min-width: 0;
}

.product-lead {
  font-size: 18px;
  color: #5d6962;
  max-width: 570px;
}

.product-detail {
  color: #5d6962;
  font-size: 16px;
  line-height: 1.7;
  max-width: 570px;
}

.product-takeaway {
  font-size: 15px;
  line-height: 1.65;
  margin: 28px 0 22px;
  max-width: 570px;
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list li > span,
.capability-grid b {
  font-size: 10px;
  color: #7a867e;
  letter-spacing: .12em;
}

.feature-list strong {
  font-size: 15px;
}

.feature-list .status-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(23, 37, 31, .22);
  border-radius: 20px;
  color: #6d766f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.feature-list p {
  font-size: 13px;
  color: #6d766f;
  margin: 4px 0 0;
}

/* Illustrative phone showing the Space menu (decorative, not interactive). */
.phone-stage {
  min-height: 720px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #c0cbbd, transparent 65%);
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: 620px;
  height: 620px;
}

.orbit-two {
  width: 470px;
  height: 470px;
}

.phone {
  width: 310px;
  height: 640px;
  padding: 12px;
  background: #faf9f4;
  border: 7px solid #183226;
  border-radius: 42px;
  position: relative;
  z-index: 2;
  box-shadow: 0 42px 80px rgba(27, 46, 36, .25);
  overflow: hidden;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  padding: 3px 7px 9px;
}

.phone-top i {
  width: 65px;
  height: 18px;
  background: #183226;
  border-radius: 20px;
  margin-top: -7px;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 3px;
}

.menu-head button {
  border: 0;
  background: #eeeae1;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.menu-head div {
  text-align: center;
  display: grid;
}

.menu-head small {
  font-size: 6px;
  letter-spacing: .15em;
}

.menu-head strong {
  font-family: Georgia, serif;
  font-size: 16px;
}

.menu-hero {
  height: 170px;
  border-radius: 20px;
  background: linear-gradient(0deg, rgba(10, 25, 18, .7), transparent), url("assets/waithero-hero.webp") center / cover;
  display: flex;
  align-items: flex-end;
  color: white;
  padding: 17px;
}

.menu-hero div {
  display: grid;
}

.menu-hero small {
  font-size: 7px;
  letter-spacing: .12em;
}

.menu-hero strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.menu-hero span {
  font-size: 8px;
  margin-top: 5px;
}

.chips {
  display: flex;
  gap: 6px;
  margin: 15px 0 12px;
  overflow: hidden;
}

.chips > * {
  white-space: nowrap;
  border: 1px solid #d5d2ca;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 8px;
}

.chips b {
  background: var(--forest);
  color: white;
}

.dish-row {
  display: grid;
  grid-template-columns: 54px 1fr 25px;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #e8e4da;
}

.dish-img {
  width: 54px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d69759, #7e4b2e);
}

.dish-two {
  background: linear-gradient(135deg, #92a56c, #3f613d);
}

.dish-row > div:nth-child(2) {
  display: grid;
}

.dish-row strong {
  font-size: 10px;
}

.dish-row small {
  font-size: 7px;
  color: #7a817d;
}

.dish-row b {
  font-size: 9px;
  margin-top: 4px;
}

.dish-row button {
  border: 1px solid #d4d1c9;
  background: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.cart-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: var(--forest);
  color: white;
  border-radius: 13px;
  display: flex;
  justify-content: space-between;
  padding: 12px;
  font-size: 8px;
}

.float-note {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 13px 17px;
  box-shadow: 0 18px 45px rgba(32, 55, 42, .15);
  display: flex;
  gap: 10px;
  align-items: center;
}

.float-note > span {
  width: 27px;
  height: 27px;
  background: var(--forest);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.float-note div {
  display: grid;
}

.float-note small {
  font-size: 7px;
  letter-spacing: .12em;
}

.float-note strong {
  font-size: 11px;
}

.note-one {
  right: -15px;
  top: 135px;
}

.note-two {
  left: -10px;
  bottom: 115px;
}

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

  .phone-stage {
    min-height: 680px;
  }
}

@media (max-width: 650px) {
  .product {
    padding: 90px var(--gutter);
    gap: 55px;
  }

  .product-lead {
    font-size: 16px;
  }

  /* .reveal.visible (higher specificity) resets this transform once the phone is revealed. */
  .phone-stage {
    min-height: 600px;
    transform: scale(.9);
    margin: -30px;
  }

  .phone {
    width: 290px;
    height: 600px;
  }

  .orbit-one {
    width: 480px;
    height: 480px;
  }

  .orbit-two {
    width: 370px;
    height: 370px;
  }

  .float-note {
    display: none;
  }
}

/* ---------- Space story: supports, steps and proof (homepage, currently hidden) ---------- */

.space-story {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.space-story-heading {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) 1.25fr;
  column-gap: clamp(50px, 8vw, 140px);
  align-items: start;
}

.space-story-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 32px;
}

.space-story-heading h3 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 500;
  margin: 0;
}

.space-story-heading h3 em {
  color: #6b7f70;
}

.space-story-heading > p:last-child {
  max-width: 600px;
  color: #5d6962;
  font-size: 17px;
  line-height: 1.75;
  margin: 7px 0 0;
}

.space-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 70px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.space-steps li {
  min-height: 260px;
  padding: 25px 28px 32px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--line);
}

.space-steps li + li {
  padding-left: 28px;
}

.space-steps li:last-child {
  border-right: 0;
}

.space-steps li > span {
  font-size: 10px;
  letter-spacing: .14em;
  color: #7a867e;
}

.space-steps li div {
  align-self: end;
}

.space-steps strong {
  font-size: 18px;
  font-weight: 600;
}

.space-steps p {
  font-size: 13px;
  line-height: 1.65;
  color: #6d766f;
  margin: 10px 0 0;
}

.space-supports {
  padding-top: 52px;
}

.space-supports > span {
  display: block;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  color: #7a867e;
}

.support-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.support-gallery figure {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #d6d0c5;
}

.support-gallery img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  transition: transform .45s ease;
}

.support-gallery figure:hover img {
  transform: scale(1.025);
}

.support-gallery figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  background: rgba(250, 249, 245, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
}

.space-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
}

.space-proof section {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px 26px;
  background: var(--stone);
}

.space-proof span {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7a867e;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  min-height: 100px;
}

.logo-row img {
  display: block;
  max-width: 30%;
  object-fit: contain;
}

.client-logos img {
  width: 92px;
  height: 92px;
}

.press-logos img {
  width: 135px;
  max-height: 62px;
  filter: grayscale(1);
  opacity: .78;
}

.press-logos img:nth-child(2) {
  width: 105px;
  max-height: 70px;
}

.space-proof section:hover .press-logos img {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 1000px) {
  .space-story-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .space-story-heading .eyebrow {
    margin-bottom: 0;
  }

  .space-steps {
    grid-template-columns: 1fr 1fr;
  }

  .space-steps li:nth-child(2) {
    border-right: 0;
  }

  .space-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .space-steps li:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 650px) {
  .space-story {
    padding-top: 55px;
  }

  .space-story-heading h3 {
    font-size: 45px;
  }

  .space-story-heading > p:last-child {
    font-size: 15px;
  }

  .space-steps {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

  .space-steps li,
  .space-steps li + li,
  .space-steps li:nth-child(3) {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 35px 1fr;
    grid-template-rows: 1fr;
  }

  .space-steps li:last-child {
    border-bottom: 0;
  }

  .space-steps li div {
    align-self: start;
  }

  .space-supports {
    padding-top: 40px;
  }

  .support-gallery {
    grid-template-columns: 1fr;
  }

  .support-gallery figure {
    min-height: 220px;
  }

  .support-gallery img {
    height: 100%;
  }

  .space-proof {
    grid-template-columns: 1fr;
  }

  .space-proof section {
    padding: 22px 16px;
  }

  .logo-row {
    gap: 10px;
    min-height: 78px;
  }

  .client-logos img {
    width: 72px;
    height: 72px;
  }

  .press-logos img {
    width: 105px;
    max-height: 50px;
  }

  .press-logos img:nth-child(2) {
    width: 82px;
  }
}

/* ---------- Manager (homepage, currently hidden) ---------- */

.product-pos {
  background: var(--paper);
  grid-template-columns: 1.1fr .9fr;
}

.pos-visual {
  position: relative;
  min-height: 700px;
}

.screen-shell {
  position: absolute;
  width: 780px;
  right: 0;
  top: 20px;
  border: 10px solid #26342e;
  border-radius: 20px 20px 6px 6px;
  background: #26342e;
  box-shadow: 0 38px 80px rgba(19, 34, 27, .19);
  overflow: hidden;
}

.screen-shell::after {
  content: "CASSA REALE · WAITHERO OS";
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(16, 41, 31, .88);
  color: white;
  font-size: 7px;
  letter-spacing: .11em;
  border-radius: 10px;
}

.screen-bar {
  height: 30px;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  padding: 0 10px;
}

.screen-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77837d;
}

.screen-bar span {
  margin-left: auto;
  margin-right: auto;
  opacity: .6;
}

.screen-shell img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.director-phone {
  position: absolute;
  z-index: 5;
  left: -34px;
  bottom: 5px;
  width: 190px;
  padding: 8px;
  background: #111815;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 35px;
  box-shadow: 0 34px 70px rgba(18, 38, 28, .28);
}

.director-phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 100%;
  top: 42%;
  width: 105px;
  border-top: 1px dashed rgba(24, 59, 44, .45);
}

.director-phone img {
  width: 100%;
  border-radius: 27px;
}

.director-phone-label {
  position: absolute;
  left: 18px;
  bottom: calc(100% + 12px);
  width: max-content;
  padding: 7px 10px;
  border-radius: 20px;
  background: var(--forest);
  color: white;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .12em;
  box-shadow: 0 10px 28px rgba(18, 38, 28, .2);
}

.director-phone-label span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #51c987;
  box-shadow: 0 0 0 4px rgba(81, 201, 135, .14);
}

.metric-card {
  position: absolute;
  z-index: 3;
  background: white;
  padding: 18px 21px;
  box-shadow: 0 20px 55px rgba(22, 45, 33, .15);
  display: grid;
  min-width: 170px;
}

.metric-card small {
  font-size: 8px;
  letter-spacing: .12em;
  color: #7b857f;
}

.metric-card strong {
  font: 500 27px Georgia, serif;
  margin: 4px 0;
}

.metric-card span {
  font-size: 9px;
  color: #3d8057;
}

.metric-a {
  right: -24px;
  bottom: 48px;
  max-width: 270px;
}

.metric-a strong {
  font-size: 20px;
}

.metric-a span {
  max-width: 220px;
}

.metric-b {
  right: -22px;
  top: 70px;
}

.metric-b strong {
  font-size: 17px;
}

.capability-grid {
  margin-top: 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid div {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
}

.capability-grid strong {
  font-size: 15px;
  margin: 18px 0 3px;
}

.capability-grid p {
  font-size: 12px;
  color: #707b74;
  margin: 0;
}

@media (max-width: 1000px) {
  .product-pos {
    grid-template-columns: 1fr;
  }

  .pos-visual {
    min-height: 680px;
  }

  .screen-shell {
    width: 92%;
    left: 8%;
    right: auto;
  }

  .director-phone {
    left: 1%;
    bottom: 8px;
  }

  .metric-a {
    right: 1%;
    bottom: 45px;
  }
}

@media (max-width: 650px) {
  .product-pos {
    padding-bottom: 60px;
  }

  .pos-visual {
    min-height: 490px;
  }

  .screen-shell {
    width: 110%;
  }

  .director-phone {
    left: -6px;
    bottom: 0;
    width: 142px;
    padding: 6px;
    border-radius: 27px;
  }

  .director-phone::after {
    width: 65px;
  }

  .director-phone img {
    border-radius: 21px;
  }

  .director-phone-label {
    display: none;
  }

  .metric-a {
    right: -8px;
    bottom: 18px;
    max-width: 190px;
    padding: 13px 14px;
  }

  .metric-a strong {
    font-size: 15px;
  }

  .metric-a span {
    display: none;
  }

  .metric-b {
    right: -9px;
    top: 18px;
    padding: 12px 14px;
    min-width: 140px;
  }

  .metric-b strong {
    font-size: 14px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reach ---------- */

.adv {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: white;
  padding: 140px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.adv-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  right: -100px;
  top: -160px;
  background: radial-gradient(circle, rgba(243, 111, 75, .18), transparent 68%);
}

.adv-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.adv-copy > p:not(.eyebrow) {
  font-size: 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, .67);
}

.adv-points {
  display: grid;
  margin: 38px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.adv-points span {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
}

.adv-points b {
  margin: 3px 0 0;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--coral-light);
}

.adv-points strong {
  font-weight: 500;
}

.adv-points small {
  grid-column: 2;
  margin-top: 6px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  line-height: 1.65;
}

/* Illustrative stack of campaign cards (decorative). */
.campaign-stack {
  position: relative;
  z-index: 2;
  height: 650px;
}

.campaign-card {
  position: absolute;
  border: 1px solid var(--line-light);
  background: #f4efe5;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.campaign-back,
.campaign-mid {
  width: 360px;
  height: 180px;
  right: 0;
  padding: 25px;
  display: grid;
  align-content: start;
  transform: rotate(9deg);
  opacity: .55;
}

.campaign-mid {
  top: 58px;
  right: 60px;
  transform: rotate(-6deg);
  opacity: .8;
}

.campaign-back span,
.campaign-mid span {
  font-size: 8px;
  letter-spacing: .14em;
}

.campaign-back b,
.campaign-mid b {
  margin-top: 45px;
  font: 500 22px Georgia, serif;
}

.campaign-back small,
.campaign-mid small {
  font-size: 10px;
  color: #657169;
}

.campaign-main {
  width: min(440px, 90%);
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  padding: 22px;
}

.campaign-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  letter-spacing: .13em;
  margin-bottom: 15px;
}

.campaign-top i {
  font-style: normal;
  color: #38885d;
}

.campaign-photo {
  height: 180px;
  background: linear-gradient(0deg, rgba(13, 40, 27, .2), transparent), url("assets/waithero-hero.webp") center 62% / cover;
  position: relative;
}

.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .9);
  padding: 4px 7px;
  font-size: 7px;
}

.campaign-main h3 {
  font: 500 29px/1.05 Georgia, serif;
  margin: 22px 0;
}

.campaign-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.campaign-stats div {
  display: grid;
  padding: 15px 0;
}

.campaign-stats div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.campaign-stats small,
.campaign-context small {
  font-size: 7px;
  letter-spacing: .11em;
  color: #77817b;
}

.campaign-stats strong {
  font: 500 25px Georgia, serif;
}

.campaign-context {
  margin-top: 16px;
  background: #e8e4da;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.campaign-context p {
  display: grid;
  margin: 0;
}

.campaign-context b {
  font-size: 10px;
}

.campaign-context > i {
  font-style: normal;
  margin-left: auto;
  color: #3c7b55;
}

/* Full-width blocks below the intro: network, formats, process, FAQ, call to action. */
.reach-detail,
.reach-formats,
.reach-process,
.reach-faq,
.reach-actions {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
}

.reach-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(45px, 8vw, 130px);
  align-items: end;
  padding: 80px 0 70px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.reach-detail h3,
.reach-section-heading h3,
.reach-faq h3 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 500;
  margin: 24px 0;
}

.reach-detail h3 em,
.reach-section-heading h3 em,
.reach-faq h3 em {
  color: var(--coral-light);
}

.reach-detail-copy > p:last-of-type,
.reach-section-heading > p:last-child {
  color: rgba(255, 255, 255, .66);
  max-width: 650px;
}

.reach-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.reach-metrics div {
  min-height: 175px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.reach-metrics strong {
  font: 500 clamp(30px, 3vw, 48px) var(--serif);
  color: var(--coral-light);
  margin: auto 0 8px;
}

.reach-metrics span {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reach-formats,
.reach-process,
.reach-faq {
  padding-top: 60px;
}

.reach-section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  column-gap: 70px;
  align-items: end;
  margin-bottom: 45px;
}

.reach-section-heading .eyebrow {
  grid-column: 1 / -1;
}

.reach-section-heading > p:last-child {
  margin-bottom: 25px;
}

.reach-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.reach-format-grid article {
  min-width: 0;
}

.reach-format-grid article > span {
  font-size: 9px;
  letter-spacing: .13em;
  color: rgba(255, 255, 255, .5);
}

.reach-format-grid h4,
.reach-process h4 {
  font-size: 21px;
  font-weight: 500;
  margin: 18px 0 8px;
}

.reach-format-grid article > p,
.reach-process li > p {
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
  margin: 0;
}

.reach-format-visual {
  height: 225px;
  margin-top: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink);
  background: #e6e1d7;
  overflow: hidden;
}

.reach-format-visual small {
  font-size: 7px;
  letter-spacing: .13em;
  margin-bottom: auto;
}

.reach-format-visual strong {
  font: 500 26px/1.05 var(--serif);
  max-width: 230px;
}

.reach-format-visual i {
  font-style: normal;
  font-size: 9px;
  margin-top: 15px;
}

.format-product {
  background: #d9e2d7;
}

.format-pair {
  background: #e7bea9;
}

.reach-process {
  border-top: 1px solid var(--line-light);
}

.reach-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.reach-process li {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line-light);
}

.reach-process li > span {
  font: italic 28px var(--serif);
  color: var(--coral-light);
}

.reach-faq {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  border-top: 1px solid var(--line-light);
}

.reach-questions details {
  border-bottom: 1px solid var(--line-light);
}

.reach-questions summary {
  cursor: pointer;
  padding: 23px 0;
  font-size: 15px;
}

.reach-questions details p {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  padding: 0 0 18px;
  margin: 0;
}

.reach-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
}

.reach-actions > div {
  display: grid;
  margin-right: auto;
}

.reach-actions > div span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: rgba(255, 255, 255, .55);
}

.reach-actions > div strong {
  font-size: 22px;
  font-weight: 500;
}

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

  .campaign-stack {
    height: 600px;
  }

  .reach-detail,
  .reach-faq {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .reach-section-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .reach-section-heading > p:last-child {
    margin-bottom: 0;
  }

  .reach-format-grid {
    gap: 14px;
  }

  .reach-process ol {
    grid-template-columns: 1fr 1fr;
  }

  .reach-process li:nth-child(2) {
    border-right: 0;
  }

  .reach-process li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }

  .reach-actions {
    flex-wrap: wrap;
  }

  .reach-actions > div {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 650px) {
  .adv {
    padding: 90px var(--gutter);
  }

  .adv-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .campaign-stack {
    height: 520px;
    margin: 0 -15px;
  }

  .campaign-main {
    width: 92%;
    top: 90px;
  }

  .campaign-back,
  .campaign-mid {
    width: 280px;
  }

  .reach-detail {
    padding: 55px 0;
  }

  .reach-detail h3,
  .reach-section-heading h3,
  .reach-faq h3 {
    font-size: 44px;
  }

  .reach-metrics,
  .reach-format-grid,
  .reach-process ol {
    grid-template-columns: 1fr;
  }

  .reach-metrics div {
    min-height: 120px;
  }

  .reach-format-grid {
    gap: 35px;
  }

  .reach-format-visual {
    height: 210px;
  }

  .reach-process li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .reach-actions {
    padding: 24px;
  }

  .reach-actions .button {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Connection (Space page) ---------- */

.connection {
  padding: 140px var(--gutter);
  background: #d8dfd4;
  text-align: center;
}

.connection h2 {
  max-width: 1060px;
  margin: 55px auto 90px;
}

.space-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.space-triad article {
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.space-triad span {
  font-size: 10px;
  letter-spacing: .14em;
  color: #7b867f;
}

.space-triad strong {
  margin: auto 0 8px;
  font-size: 24px;
  font-weight: 500;
}

.space-triad p {
  margin: 0;
  color: #657169;
  font-size: 13px;
}

@media (max-width: 650px) {
  .connection {
    padding: 90px var(--gutter);
  }

  .space-triad {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

  .space-triad article {
    min-height: 145px;
  }
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  min-height: 690px;
  padding: 130px var(--gutter);
  background: #0c1d16;
  color: white;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.closing-number {
  position: absolute;
  left: -3vw;
  bottom: -27vw;
  font: 500 72vw/1 var(--serif);
  color: #193b2d;
  -webkit-user-select: none;
  user-select: none;
}

.closing-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.closing h2 {
  font-size: clamp(55px, 6.5vw, 100px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 500;
  margin: 23px 0 30px;
}

.closing h2 em {
  color: var(--sand);
}

.closing-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .65);
  font-size: 18px;
  max-width: 570px;
  margin-bottom: 35px;
}

@media (max-width: 650px) {
  .closing {
    min-height: 630px;
    padding: 90px var(--gutter);
    align-items: flex-start;
  }

  .closing-number {
    font-size: 130vw;
    bottom: -29vw;
    left: -10vw;
  }

  .closing h2 {
    font-size: 55px;
  }
}

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

footer {
  min-height: 190px;
  background: #08150f;
  color: white;
  padding: 45px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

footer p {
  font: italic 17px var(--serif);
  color: rgba(255, 255, 255, .55);
}

footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
}

footer small {
  font-size: 10px;
  color: rgba(255, 255, 255, .45);
}

@media (max-width: 1000px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  footer {
    grid-template-columns: 1fr;
  }

  footer p {
    margin: 0;
  }
}

/* ---------- Reduced motion ---------- */

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

  .hero-image {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal[id]:not(.visible) {
    scroll-margin-top: var(--header-offset);
  }
}
