/*
 * AWE & CO — rebuilt from the original template's component source.
 * Measurements, breakpoints (640 / 1024), colours and easing curves
 * mirror the reference implementation one-to-one.
 */

:root {
  /* Palette sampled from the AWE & CO mark */
  --ink: #0b0a0d;
  --purple: #6718ad;
  --purple-deep: #4a0f80;
  --gold: #c99813;
  --gold-deep: #9a740c;
  --tint: #efe3f4;
  --line: #efe9df;
  --white: #ffffff;

  --font-body: "Almarai", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-num: "Zalando Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  /* Brand display face: wordmarks, section headings, pull quotes.
     Swap to var(--font-num) for the template's original geometric sans. */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --display-weight: 600;
  --display-tracking: -0.02em;

  --jb: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 48px;
}

@media (max-width: 1024px) {
  :root {
    --jb: 12px;
  }
}

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

* {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}

[hidden] {
  display: none !important;
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul {
  padding: 0;
}

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

/* ---------- Type primitives ---------- */

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--jb);
  line-height: var(--jb);
  text-transform: uppercase;
}

.lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 1.67vw, 32px);
  line-height: 120%;
  letter-spacing: 0;
}

.lead--400 {
  font-weight: 400;
}

.heading {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(21px, 1.95vw, 37px);
  line-height: 115%;
  letter-spacing: -0.005em;
}

.body-m {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.2;
}

.body-s {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 0.885vw, 17px);
  line-height: 1.3;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20vw;
  line-height: 1;
  letter-spacing: var(--display-tracking);
  white-space: nowrap;
  display: inline-block;
  color: var(--ink);
  will-change: transform;
  user-select: none;
}

/* ---------- Rolling "BOOK NOW +" link ---------- */

.roll-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.roll {
  position: relative;
  display: block;
  height: 14px;
  overflow: hidden;
}

.roll > span {
  display: block;
  white-space: nowrap;
  transition: transform 0.35s var(--ease);
}

.roll > span + span {
  position: absolute;
  top: 100%;
  left: 0;
}

.roll-btn:hover .roll > span,
.roll-btn:focus-visible .roll > span {
  transform: translateY(-100%);
}

.roll-btn .mono {
  letter-spacing: 0.04em;
}

/* ---------- Fixed bottom navigation ---------- */

.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  width: 100%;
  transform: translateZ(0);
  will-change: transform;
}

.nav-logo {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 24px;
  line-height: 100%;
  letter-spacing: var(--display-tracking);
  white-space: nowrap;
  transform: translateX(-110%);
  transition: transform 0.5s var(--ease);
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.site-nav.show-logo .nav-logo {
  transform: translateX(0);
}

.nav-cta {
  position: relative;
  flex-shrink: 0;
  width: 50%;
  min-height: var(--nav-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  background: var(--purple);
}

.wipe {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease);
}

.nav-cta:hover .wipe,
.nav-cta:focus-visible .wipe {
  transform: translateX(0);
}

.nav-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: clamp(14px, 0.885vw, 17px);
  color: var(--white);
  white-space: nowrap;
  transition: color 0.45s var(--ease);
}

.nav-cta-inner img {
  filter: invert(1);
  transition: filter 0.45s var(--ease);
}

.nav-cta:hover .nav-cta-inner,
.nav-cta:focus-visible .nav-cta-inner {
  color: var(--ink);
}

.nav-cta:hover .nav-cta-inner img,
.nav-cta:focus-visible .nav-cta-inner img {
  filter: invert(0);
}

.nav-links {
  width: 50%;
  min-height: var(--nav-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  background: var(--white);
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 22px;
  padding: 4px 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: clamp(14px, 0.885vw, 17px);
  line-height: 1.2;
  color: var(--ink);
}

.nav-link span {
  display: block;
  white-space: nowrap;
  transition: transform 0.35s var(--ease);
}

.nav-link span + span {
  position: absolute;
  left: 0;
  top: 100%;
}

.nav-link:hover span,
.nav-link:focus-visible span {
  transform: translateY(-100%);
}

.nav-menu-btn {
  display: none;
  width: 64px;
  min-height: var(--nav-h);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--white);
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0.04em;
}

.mobile-menu {
  display: none;
}

@media (max-width: 640px) {
  .nav-cta {
    width: auto;
    flex: 1 1 auto;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 199;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    padding: 0 5px calc(var(--nav-h) + 5px);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateY(105%);
    transition: transform 0.9s var(--ease);
    pointer-events: none;
  }

  .mobile-menu.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu a {
    display: block;
    padding: 16px;
    border-radius: 8px;
    background: var(--gold);
    transform-origin: center bottom;
    transform: scaleY(0);
    transition: transform 0.7s var(--ease) var(--d-out, 0s);
  }

  .mobile-menu a span {
    display: block;
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.2;
    color: var(--ink);
    transform-origin: center bottom;
    transform: scaleY(2);
    transition: transform 0.7s var(--ease) var(--d-out, 0s);
  }

  .mobile-menu.open a,
  .mobile-menu.open a span {
    transform: scaleY(1);
    transition-delay: var(--d-in, 0s);
  }
}

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

.hero {
  position: relative;
  height: 140vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--white);
  z-index: 0;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  pointer-events: none;
}

.hero-left {
  position: absolute;
  top: 2vw;
  left: 1%;
  pointer-events: auto;
}

.hero-tagline-right {
  position: absolute;
  top: 2vw;
  right: 33.333%;
  padding-right: 8px;
  text-align: left;
  pointer-events: auto;
}

.hero-book-desktop {
  position: absolute;
  top: 2vw;
  right: 1%;
}

.hero-book-tablet {
  display: none;
  margin-top: 4vw;
}

.hero-wordmark {
  width: 100%;
  padding-left: 1%;
  padding-bottom: 2%;
  line-height: 1;
  overflow: visible;
  pointer-events: auto;
  animation: heroIn 0.9s var(--ease) 0.15s both;
}

.hero-wordmark .wordmark {
  transform-origin: bottom center;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero {
    height: 100vh;
  }

  .hero-stage {
    align-items: center;
    justify-content: center;
  }

  .hero-left {
    left: 16px;
  }

  .hero-tagline-right {
    right: 16px;
    padding-right: 0;
    text-align: right;
  }

  .hero-book-desktop {
    display: none;
  }

  .hero-book-tablet {
    display: flex;
  }

  .hero-wordmark {
    display: flex;
    justify-content: center;
    padding-left: 0;
    padding-bottom: 120px;
  }
}

@media (max-width: 640px) {
  .hero-stage {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 16px 14vh;
    pointer-events: auto;
  }

  .hero-left {
    display: contents;
  }

  .hero-left .lead,
  .hero-tagline-right .lead {
    font-size: clamp(20px, 5vw, 24px);
  }

  .hero-left .lead {
    order: 1;
  }

  .hero-tagline-right {
    position: static;
    order: 2;
    margin-top: 24px;
    text-align: left;
  }

  .hero-book-tablet {
    order: 3;
    margin-top: 48px;
  }

  .hero-wordmark {
    order: 4;
    margin-top: auto;
    padding-bottom: 0;
  }
}

/* ---------- Scroll reveal (direction-aware) ---------- */

[data-reveal] {
  transition-property: opacity, transform;
  transition-timing-function: var(--ease);
  transition-duration: var(--rv-dur, 0.7s);
  transition-delay: var(--rv-delay, 0s);
}

/* ---------- About ---------- */

.about {
  position: relative;
  background: var(--white);
}

.about-text-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 16px;
}

.about-text-block .lead {
  max-width: 48vw;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 48vw;
  margin-left: auto;
  width: 50%;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.5;
}

.about-scroll {
  position: relative;
  height: 200vh;
}

.about-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.about-img-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: calc(100% - 32px);
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Portrait photo: keep the subject's face and gown in frame. */
  object-position: 62% 55%;
  transform: scale(1.4);
  transform-origin: center center;
}

.gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  background: var(--white);
  z-index: 10;
}

.gutter--l {
  left: 0;
}

.gutter--r {
  right: 0;
}

.about-stats {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 16px;
  width: 33.333%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  z-index: 5;
}

.stat {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 16px;
  overflow: hidden;
}

.stat--dark {
  background: var(--ink);
  color: var(--white);
}

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

.stat-num {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: clamp(40px, 6.25vw, 120px);
  line-height: 100%;
  font-variant-numeric: tabular-nums;
}

.stat--gold .stat-num {
  color: #000;
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 24px);
  line-height: 1.2;
}

.stat--gold .stat-label {
  max-width: 312px;
}

@keyframes aboutCardFloatUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .about-text-block {
    gap: 16px;
    padding-bottom: 48px;
  }

  .about-text-block .lead {
    max-width: 100%;
  }

  .about-body {
    width: auto;
    max-width: 640px;
    margin-left: 0;
    margin-top: 16px;
    font-size: 15px;
  }

  .about-img-wrap {
    width: auto;
    right: 16px;
  }

  .about-img {
    object-position: 62% 70%;
  }

  .about-stats {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 0;
    width: auto;
    height: 25vh;
    flex-direction: row;
    transform: translateY(100%);
  }

  .stat {
    gap: 16px;
  }

  .stat-num {
    font-size: clamp(40px, 10vw, 80px);
  }

  .stat-label {
    font-size: clamp(13px, 1.5vw, 18px);
  }

  .stat--gold .stat-label {
    max-width: none;
  }

  .about-stats.animate .stat > * {
    animation: aboutCardFloatUp 0.7s var(--ease) both;
  }

  .about-stats.animate .stat--dark .stat-label {
    animation-delay: 0.1s;
  }

  .about-stats.animate .stat--gold .stat-num {
    animation-delay: 0.2s;
  }

  .about-stats.animate .stat--gold .stat-label {
    animation-delay: 0.3s;
  }
}

@media (max-width: 640px) {
  .about-text-block .lead {
    font-size: 20px;
  }

  .about-stats {
    height: 32vh;
  }

  .stat-label {
    font-size: 14px;
  }
}

/* ---------- Column guide lines (12 / 6 column) ---------- */

.col-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.col-lines i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  left: calc((100% - 55px) / 12 * var(--n) + 5px * var(--n) - 2.5px);
}

@media (max-width: 640px) {
  .col-lines i {
    left: calc((100% - 25px) / 6 * var(--n) + 5px * var(--n) - 2.5px);
  }

  .col-lines i:nth-child(n + 6) {
    display: none;
  }
}

/* ---------- Services ---------- */

.services {
  background: var(--white);
  padding: clamp(24px, 4.17vw, 80px) 1vw 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.08vw, 40px);
  margin-bottom: clamp(40px, 4.17vw, 80px);
}

.section-head .heading {
  max-width: 945px;
}

.svc-desktop {
  position: relative;
}

.svc-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 48px repeat(6, 96px) 48px;
  gap: 5px;
}

.svc-row {
  grid-column: 1 / -1;
  grid-row: var(--row);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  z-index: 3;
  opacity: 0;
}

.svc-row > div {
  grid-column: var(--cd);
}

.svc-name,
.svc-desc,
.svc-price {
  height: 96px;
  border-radius: 8px;
  padding: 0 1vw;
  display: flex;
  align-items: center;
}

.svc-name {
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.2;
}

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

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

.bg-purple {
  background: var(--purple);
  color: var(--white);
}

.svc-desc,
.svc-price {
  background: var(--white);
  outline: 1px solid var(--ink);
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
}

.svc-desc {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.svc-price {
  justify-content: space-between;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

.from-left .svc-desc,
.from-left .svc-price {
  transform: translateX(-16px);
}

.svc-row.is-hover .svc-desc,
.svc-row.is-hover .svc-price {
  opacity: 1;
  transform: translateX(0);
}

.svc-row.is-hover .svc-price {
  pointer-events: auto;
}

.svc-price-nums {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-num);
  font-size: clamp(18px, 1.67vw, 32px);
  white-space: nowrap;
}

.svc-stage {
  align-self: center;
  font-size: var(--jb);
  letter-spacing: 0.04em;
}

.svc-card-nums .svc-stage {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.svc-desc .body-s {
  color: var(--ink);
}

@keyframes floatUp {
  0% {
    transform: translateY(96px);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  60% {
    transform: translateY(-16px);
    opacity: 1;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(-96px);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  60% {
    transform: translateY(16px);
    opacity: 1;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.float-up,
.float-down {
  opacity: 1;
  animation: floatUp 1.1s linear calc(var(--i) * 0.18s) both;
}

.float-down {
  animation-name: floatDown;
}

/* Mobile accordion variant */
.svc-mobile {
  display: none;
  position: relative;
}

.svc-acc {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding-bottom: 48px;
}

.svc-acc-item {
  grid-column: var(--closed);
  opacity: 0;
  transition: grid-column 0.38s var(--ease);
}

.svc-acc-item.open {
  grid-column: 1 / 7;
}

.svc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 80px;
  padding: 16px;
  border-radius: 8px;
  transition: min-height 0.38s var(--ease);
}

.svc-acc-item.open .svc-card {
  min-height: 200px;
}

.svc-card-title {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
}

.svc-card-closed {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.svc-card-open {
  display: none;
}

.svc-acc-item.open .svc-card-closed {
  display: none;
}

.svc-acc-item.open .svc-card-open {
  display: block;
}

.svc-card-desc {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}

.svc-card-nums {
  display: flex;
  align-items: baseline;
  gap: 48px;
  margin-top: 24px;
  font-family: var(--font-num);
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1;
}

.svc-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
}

.tiny-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 12px;
  text-transform: uppercase;
}

.tiny-btn img {
  width: 10px;
  height: 10px;
}

.bg-purple .tiny-btn img,
.bg-ink .tiny-btn img {
  filter: invert(1);
}

@media (max-width: 1024px) {
  .services {
    padding-top: 80px;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 48px;
  }

  .svc-grid {
    grid-template-rows: 48px repeat(6, 80px) 48px;
  }

  .svc-row > div {
    grid-column: var(--ct);
  }

  .svc-name,
  .svc-desc,
  .svc-price {
    height: 80px;
  }

  .svc-name {
    font-size: clamp(13px, 1.5vw, 18px);
  }

  .svc-desc .body-s {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .services {
    padding-left: 16px;
    padding-right: 16px;
  }

  .services .heading {
    font-size: 23px;
  }

  .svc-desktop {
    display: none;
  }

  .svc-mobile {
    display: block;
  }
}

/* ---------- Benefits ---------- */

.benefits {
  position: relative;
  background: var(--white);
  overflow: visible;
}

.benefits > .col-lines {
  left: 1vw;
  right: 1vw;
  z-index: 0;
}

.benefits-head {
  position: relative;
  z-index: 3;
  padding: clamp(24px, 4.17vw, 80px) 1vw 0;
}

.benefits-head .mono {
  margin-bottom: clamp(16px, 2.08vw, 40px);
}

.benefits-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin-bottom: clamp(40px, 4.17vw, 80px);
}

.benefits-intro .heading {
  grid-column: 1 / 6;
}

.benefits-intro .body-copy {
  grid-column: 9 / 13;
  display: flex;
  align-items: flex-end;
}

.benefits-intro .body-copy p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.3;
}

.cards-viewport {
  position: relative;
  z-index: 3;
  height: calc(22.9vw + 48px + 160px);
  min-height: calc(220px + 160px);
  max-height: calc(488px + 160px);
  overflow: hidden;
}

.cards {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding: 0 1vw 160px;
  user-select: none;
  -webkit-user-select: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.card {
  --w: calc((100vw - 2vw - 55px) / 12 * 4 + 5px * 3);
  --w-open: calc((100vw - 2vw - 55px) / 12 * 5 + 5px * 4);
  --h: 22.9vw;
  --h-open: calc(22.9vw + 48px);
  flex: 0 0 var(--w);
  width: var(--w);
  height: var(--h);
  min-height: 220px;
  max-height: 488px;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: flex-basis 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease);
}

.card.is-hover {
  flex-basis: var(--w-open);
  width: var(--w-open);
  height: var(--h-open);
}

.card-title {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.2;
  transform-origin: top left;
  transition: transform 0.35s var(--ease);
}

.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.card-desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 0.885vw, 17px);
  line-height: 1.3;
  opacity: 0.85;
  max-width: var(--desc-max, 65%);
}

.card-icon {
  flex-shrink: 0;
  align-self: flex-end;
  width: 64px;
  height: 64px;
  overflow: hidden;
  transform-origin: bottom right;
  transition: transform 0.35s var(--ease);
}

.card-icon > * {
  width: 80px;
  height: 80px;
  transform: scale(0.8);
  transform-origin: top left;
}

.card.is-hover .card-title,
.card.is-hover .card-icon {
  transform: scale(1.18);
}

.icon-blocks {
  position: relative;
}

.icon-blocks i {
  position: absolute;
  background: var(--gold);
  transition: width 0.55s var(--ease), height 0.55s var(--ease), left 0.55s var(--ease),
    top 0.55s var(--ease);
}

.icon-svg * {
  transition-timing-function: var(--ease);
}

@media (max-width: 1024px) {
  .benefits {
    padding-bottom: 80px;
  }

  .benefits > .col-lines {
    left: 16px;
    right: 16px;
  }

  .benefits-head {
    padding: 80px 16px 0;
  }

  .benefits-head .mono {
    margin-bottom: 16px;
  }

  .benefits-intro {
    margin-bottom: 48px;
  }

  .benefits-intro .heading {
    grid-column: 1 / 7;
  }

  .benefits-intro .body-copy {
    grid-column: 8 / 13;
  }

  .benefits-intro .body-copy p {
    font-size: 13px;
  }

  .cards-viewport {
    height: calc(368px + 40px);
    min-height: 0;
    max-height: none;
  }

  .cards {
    padding: 0 16px 80px;
  }

  .card {
    --w: calc((100vw - 55px) / 12 * 7 + 5px * 6);
    --w-open: calc((100vw - 55px) / 12 * 8 + 5px * 7);
    --h: 320px;
    --h-open: 368px;
    min-height: 0;
    max-height: none;
  }

  .card-title,
  .card-desc {
    font-size: 13px;
  }
}

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

  .benefits-intro .heading,
  .benefits-intro .body-copy {
    grid-column: auto;
  }

  .benefits-intro .heading {
    font-size: clamp(23px, 5.8vw, 28px);
  }

  .benefits-intro .body-copy {
    margin-top: 24px;
  }

  .cards-viewport {
    height: calc(320px + 40px);
  }

  .cards {
    padding-bottom: 48px;
  }

  .card,
  .card.is-hover {
    --w: calc((100vw - 32px - 25px) / 6 * 4 + 5px * 3);
    --w-open: var(--w);
    --h: 320px;
    --h-open: 320px;
    justify-content: flex-start;
  }

  .card.is-hover .card-title,
  .card.is-hover .card-icon {
    transform: none;
  }

  .card-title {
    font-size: 16px;
  }

  .card-bottom {
    display: contents;
  }

  .card-desc {
    margin-top: 24px;
    font-size: 14px;
    max-width: none;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    margin-top: auto;
    padding-top: 0;
  }

  .card-icon > * {
    transform: scale(0.6);
  }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--white);
  padding: 10vw 0;
}

.contact-inner {
  display: flex;
  gap: 0;
}

.contact-label {
  width: 50%;
  flex-shrink: 0;
  padding: 1vw;
}

.contact-body {
  width: 50%;
  padding-right: 1vw;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.form-line {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.form-line > .lead {
  white-space: nowrap;
}

.form-pair {
  display: contents;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.field {
  flex-shrink: 0;
  width: clamp(80px, 10.417vw, 200px);
  padding: 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--jb);
  line-height: var(--jb);
  text-transform: uppercase;
}

.field::placeholder {
  color: var(--gold-deep);
}

.field:focus-visible {
  border-bottom-width: 2px;
  padding-bottom: 7px;
}

textarea.field {
  width: 100%;
  resize: none;
  line-height: 1.4;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--jb);
  line-height: var(--jb);
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.pill:hover {
  background: var(--tint);
}

.pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  overflow: hidden;
  background: var(--ink);
}

.submit .wipe {
  background: var(--gold);
}

.submit:hover,
.submit:focus-visible {
  outline: none;
}

.submit:hover .wipe,
.submit:focus-visible .wipe {
  transform: translateX(0);
}

.submit-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: clamp(14px, 0.885vw, 17px);
  color: var(--white);
  white-space: nowrap;
  transition: color 0.45s var(--ease);
}

.submit-inner img {
  filter: invert(1);
  transition: filter 0.45s var(--ease);
}

.submit:hover .submit-inner,
.submit:focus-visible .submit-inner {
  color: var(--ink);
}

.submit:hover .submit-inner img,
.submit:focus-visible .submit-inner img {
  filter: invert(0);
}

.submit[disabled] {
  cursor: progress;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.form-success .tick {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-error {
  color: var(--purple);
}

@media (max-width: 1024px) {
  .contact {
    padding: 120px 16px 10vw;
  }

  .contact-inner {
    flex-direction: column;
  }

  .contact-label {
    width: auto;
    padding: 0 0 80px;
  }

  .contact-body {
    width: 100%;
    padding-right: 0;
  }

  .contact-form {
    gap: 32px;
  }

  .field {
    width: 240px;
  }

  textarea.field {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact {
    padding: 80px 16px;
  }

  .contact-label {
    padding-bottom: 48px;
  }

  .contact-form .lead {
    font-size: 20px;
  }

  .form-pair {
    display: flex;
    gap: 5px;
    width: 100%;
  }

  .form-pair .field {
    width: calc(50% - 2.5px);
    flex-shrink: 1;
  }

  .pill {
    padding: 8px;
  }
}

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

.site-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4vw 2vw;
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 1vw;
  align-items: flex-start;
}

.footer-tagline {
  grid-column: 1 / 4;
}

.footer-access {
  grid-column: 5 / 8;
}

.footer-privacy {
  grid-column: 8 / 10;
}

.footer-meta {
  grid-column: 11 / 13;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2vw;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-social a,
.footer-copy {
  line-height: 150%;
}

.footer-copy {
  text-align: right;
  white-space: nowrap;
}

.footer-grid a.lead:hover,
.footer-social a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-mark {
  margin-top: 2vw;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.footer-mark .wordmark {
  transform-origin: top center;
}

@media (max-width: 1024px) {
  .site-footer {
    min-height: 0;
    padding: 4vw 16px 64px;
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 0;
  }

  .footer-tagline {
    grid-column: 1 / -1;
    max-width: 50%;
  }

  .footer-access,
  .footer-privacy {
    grid-column: auto;
    margin-top: 80px;
  }

  .footer-privacy {
    text-align: right;
  }

  .footer-meta {
    display: contents;
  }

  .footer-social {
    align-items: flex-start;
    margin-top: 80px;
  }

  .footer-copy {
    margin-top: 80px;
    white-space: normal;
  }

  .footer-mark {
    margin-top: 160px;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .footer-tagline {
    max-width: none;
  }

  .site-footer .lead {
    font-size: 20px;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  min-height: 100vh;
  padding-bottom: 10vw;
  background: var(--white);
}

.legal-body {
  padding: clamp(24px, 4.17vw, 80px) clamp(16px, 2vw, 2vw) 0;
}

.legal-notice {
  padding: clamp(24px, 4.17vw, 80px) clamp(16px, 2vw, 2vw);
  background: var(--ink);
}

.legal-notice > div {
  max-width: 720px;
}

.legal-notice p {
  color: var(--white);
}

.legal-notice p + p {
  margin-top: 16px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(24px, 1.95vw, 37px);
  line-height: 115%;
  margin-bottom: clamp(32px, 4vw, 80px);
}

.legal section {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 80px);
}

.legal h2 {
  margin-bottom: 16px;
}

.legal p,
.legal li {
  font-family: var(--font-body);
  font-size: clamp(14px, 0.885vw, 17px);
  line-height: 1.6;
}

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-left: 24px;
}

.legal b {
  font-weight: 700;
}

.legal .stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- Welcome intro ---------- */

html.intro-on,
html.intro-on body {
  overflow: hidden;
}

html.intro-on .hero-wordmark {
  animation-play-state: paused;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vh;
  background: #000;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}

.intro.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  height: min(72vh, calc(80vw * 1458 / 1070));
  aspect-ratio: 1070 / 1458;
  transition: transform 1.2s var(--ease);
}

.intro.out .intro-stage {
  transform: scale(1.06);
}

.intro-shade,
.intro-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-shade {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease);
}

.intro.shade .intro-shade {
  opacity: 1;
  filter: blur(0);
}

.intro-lines path {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(201, 152, 19, 0.55));
}

.intro-lines path.o {
  stroke-width: 1.6px;
}

.intro-lines path.d {
  stroke-width: 1.2px;
}

.intro-lines {
  transition: opacity 1.2s var(--ease);
}

.intro.shade .intro-lines {
  opacity: 0.35;
}

.intro-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(22px, 2.4vw, 40px);
  letter-spacing: 0.28em;
  color: var(--gold);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.intro.shade .intro-name {
  opacity: 1;
  transform: none;
}

.intro-skip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: rgba(201, 152, 19, 0.7);
  letter-spacing: 0.08em;
}

.intro-skip:hover {
  color: var(--gold);
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

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