/* ==========================================================
   Kintsugi Hospitality Advisory — styles
   ========================================================== */

:root {
  --cream: #f5f1ed;
  --sand: #f5ece1;
  --parchment: #ebdab5;
  --gold: #e0be73;
  --gold-bright: #ffdb8c;
  --gold-soft: #f3e3cc;
  --plum: #3d2744;
  --plum-deep: #311f37;
  --orchid: #9862aa;
  --forest: #15382d;
  --forest-text: #2c4a3f;
  --ink: #020202;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Google Sans Flex", "Google Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Montserrat", system-ui, sans-serif;

  --container: 1207px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-lux: cubic-bezier(.65, 0, .1, 1);
  --header-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; padding: 0; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--plum-deep); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow--light { color: var(--gold-soft); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.4vw + 8px, 36px);
  line-height: 1.444;
  letter-spacing: -1px;
}
.h2 em { font-style: italic; }
.h2--gold { color: var(--gold); }
.h2--green { color: var(--forest); }
.h2--dark { color: var(--ink); font-weight: 500; }

.body {
  font-size: 18px;
  line-height: 30px;
  color: var(--forest-text);
}
.body--light { color: var(--gold-soft); }

.grid-circle {
  position: absolute;
  width: 464px;
  height: 464px;
  pointer-events: none;
  user-select: none;
}

.wave {
  position: absolute;
  pointer-events: none;
  max-width: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 60px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease);
}
.btn span { position: relative; }
.btn span::after {          /* hairline that draws in under the label */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: currentColor;
  opacity: .6;
  transform: scaleX(0);
  transition: transform .7s var(--ease-lux);
}
.btn:hover span::after { transform: scaleX(1); }

.btn--solid {
  height: 50px;
  padding: 0 28px;
  background: var(--gold);
  color: var(--plum-deep);
  font-weight: 600;
  font-size: 14px;
}
.btn--solid:hover { background: #d3af62; }

.btn--outline {
  height: 64px;
  min-width: 310px;
  padding: 0 32px;
  border: 1px solid rgba(224, 190, 115, .7);
  background: rgba(0, 0, 0, .2);
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
}
.btn--outline:hover {
  border-color: var(--gold);
  background: rgba(0, 0, 0, .45);
  color: var(--gold-soft);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--plum-deep);
  transition: clip-path 1.1s var(--ease-lux);
  clip-path: inset(0 0 0 0);
}
.preloader__inner { display: grid; justify-items: center; gap: 26px; }
.preloader__mark { width: 70px; opacity: 0; transform: translateY(10px); animation: preMark 1s var(--ease) .1s forwards; }
.preloader__line {
  width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  animation: preLine 1.1s var(--ease-lux) .3s forwards;
}
@keyframes preMark { to { opacity: 1; transform: none; } }
@keyframes preLine { to { transform: scaleX(1); } }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ---------- Header (sticky) ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(224, 190, 115, .3);
  transition: background-color .5s var(--ease), height .5s var(--ease), box-shadow .5s, transform .6s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.header.is-scrolled { --header-h: 74px; box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .5); }
.header.is-scrolled::before { opacity: 1; }
.header__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.header__inner {
  --edge: clamp(24px, 5.2vw, 100px);   /* ~100px side space on large screens */
  max-width: none;
  height: 100%;
  padding-inline: var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Desktop: nav sits right; once sticky it glides to centre and the CTA slides in */
@media (min-width: 901px) {
  .header .nav {
    position: absolute;
    top: 50%;
    right: var(--edge);
    transform: translate(0, -50%);
    transition: right .9s var(--ease-lux), transform .9s var(--ease-lux);
  }
  .header.is-scrolled .nav { right: 50%; transform: translate(50%, -50%); }

  .header__cta {
    position: absolute;
    top: 50%;
    right: var(--edge);
    opacity: 0;
    visibility: hidden;
    transform: translate(24px, -50%);
    transition: opacity .7s var(--ease), transform .9s var(--ease-lux), visibility 0s .9s,
                background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease);
  }
  .header.is-scrolled .header__cta {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    transition: opacity .7s var(--ease) .2s, transform .9s var(--ease-lux) .1s, visibility 0s,
                background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease);
  }
}

/* Narrower desktops: a centred nav would collide with the CTA, so park it beside it */
@media (min-width: 901px) and (max-width: 1240px) {
  .header.is-scrolled .nav { right: calc(var(--edge) + 290px); transform: translate(0, -50%); }
}
.brand { display: flex; align-items: center; gap: 12px; transition: transform .5s var(--ease); }
.brand__mark { width: 59px; height: 60px; transition: width .5s var(--ease), height .5s var(--ease), transform 1.2s var(--ease); }
.brand__word { width: 113px; height: auto; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.header.is-scrolled .brand__mark { width: 48px; height: 49px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 16px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 12px 0;
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-lux);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { font-weight: 700; }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(680px, 100vh, 1002px);
  overflow: hidden;
  background: var(--plum-deep);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.14) translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 3.2s var(--ease);
  will-change: transform;
}
body.is-loaded .hero__img { transform: scale(1.04) translate3d(var(--mx, 0), var(--my, 0), 0); }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 28.7%);
  pointer-events: none;
}
.hero__panel {
  position: absolute;
  left: calc(50% - 128px);
  right: -2px;
  top: 29.3%;
  min-height: 476px;
  display: flex;
  align-items: center;
  border-radius: 60px 0 0 60px;
  border: .5px solid rgba(224, 190, 115, .3);
  border-right: 0;
  background: rgba(61, 39, 68, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: -13px 48px 17.5px rgba(0, 0, 0, .08);
  opacity: 0;
  transform: translateX(120px);
  transition: opacity 1.4s var(--ease) .5s, transform 1.6s var(--ease) .5s;
}
body.is-loaded .hero__panel { opacity: 1; transform: none; }
.hero__content { padding: 58px 40px 61px 73px; max-width: 720px; }
.hero__title { color: var(--gold-soft); font-family: var(--serif); font-weight: 400; }
.hero__kicker {
  display: block;
  font-style: italic;
  font-size: clamp(40px, 3.2vw, 62px);
  line-height: 82px;
}
.hero__big {
  display: block;
  font-size: clamp(56px, 4.8vw, 92px);
  line-height: 82px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__text {
  margin-top: 38px;
  max-width: 572px;
  font-size: 16px;
  line-height: 26px;
  color: #fff;
}
.hero__btn { margin-top: 39px; }

/* staggered hero entrance */
.hero__kicker, .hero__text, .hero__btn {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.hero__kicker { transition-delay: .9s; }
.hero__text { transition-delay: 1.5s; }
.hero__btn { transition: opacity 1.2s var(--ease) 1.7s, transform 1.2s var(--ease) 1.7s, background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease); }
body.is-loaded .hero__kicker,
body.is-loaded .hero__text,
body.is-loaded .hero__btn { opacity: 1; transform: none; }
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotateX(-60deg);
  transform-origin: 50% 100%;
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
  transition-delay: calc(1.05s + var(--i) * 45ms);
}
body.is-loaded .char { opacity: 1; transform: none; filter: none; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 32px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(243, 227, 204, .6);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 1s 2.2s;
}
body.is-loaded .hero__scroll { opacity: 1; }
.hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 2px; height: 8px; margin-left: -1px;
  border-radius: 2px;
  background: var(--gold-bright);
  animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Intro ---------- */
.intro {
  position: relative;
  min-height: 695px;
  overflow: hidden;
  background: var(--cream);
}
.intro__circle { left: calc(50% - 650px); top: 8px; }
.intro__wave { left: calc(50% - 634px); top: 126px; width: 2794px; height: auto; }
.intro__inner { padding-top: 114px; padding-bottom: 180px; }
.intro__mark { width: 100px; height: auto; }
.intro__text {
  margin-top: 30px;
  max-width: 988px;
  font-family: var(--serif);
  font-size: clamp(24px, 1.9vw + 8px, 36px);
  line-height: 1.333;
  color: var(--forest);
}
.w { transition: opacity .35s linear, color .35s linear; opacity: .14; }
.w.is-lit { opacity: 1; }

/* ---------- About ---------- */
.about {
  position: relative;
  background: var(--sand);
  overflow: hidden;
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 695px) minmax(0, 482px);
  justify-content: space-between;
  gap: 30px;
  padding-top: 17px;
  min-height: 910px;
}
.about__arch {
  position: relative;
  z-index: 1;               /* sit above the copy column's grid art */
  align-self: end;
  height: 893px;
  border-radius: 370px 370px 0 0;
  overflow: hidden;
  clip-path: inset(100% 0 0 0 round 370px 370px 0 0);
  transition: clip-path 1.8s var(--ease-lux);
}
.about__arch.is-in { clip-path: inset(0 0 0 0 round 370px 370px 0 0); }
.about__arch img {
  width: 100%; height: 118%;
  object-fit: cover;
  transform: translateY(var(--py, 0)) scale(1.15);
  transition: transform 2.4s var(--ease);
}
.about__arch.is-in img { transform: translateY(var(--py, 0)) scale(1); }
.about__copy { position: relative; padding: 225px 0 120px 12px; }
.about__circle { left: -245px; top: 40px; z-index: 0; }
.about__copy > :not(.about__circle) { position: relative; z-index: 1; }
.about__title { margin-top: 22px; color: var(--forest); }
.about__quote {
  margin-top: 54px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 30px;
  color: var(--forest);
}
.about__body { margin-top: 30px; }
.about__body p + p { margin-top: 30px; }

/* ---------- What we do ---------- */
.services {
  position: relative;
  background: var(--plum);
  overflow: hidden;
  padding: 202px 0 150px;
}
.services__circle--a { left: calc(50% - 840px); top: 106px; }
.services__circle--b { left: 975px; top: 189px; z-index: 0; }
.services__head {
  display: grid;
  grid-template-columns: 1fr 409px;
  gap: 40px;
  align-items: start;
  padding-left: 3px;
}
.services__head .h2 { margin-top: 18px; }
.services__lead { margin-top: 44px; margin-right: 6px; }

.services__grid {
  position: relative;
  margin-top: 70px;
  display: grid;
  grid-template-columns: 394fr 394fr 387fr;
  grid-template-rows: 221px 266px;
  column-gap: 16px;
  row-gap: 15px;
  perspective: 1800px;
}
.flip--diagnosis { grid-area: 1 / 1 / 2 / 2; }
.flip--feedback  { grid-area: 1 / 2 / 2 / 3; }
.flip--people    { grid-area: 2 / 1 / 3 / 3; }
.flip--sop       { grid-area: 1 / 3 / 3 / 4; }

.services__more {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.flip { position: relative; z-index: 1; outline: none; cursor: pointer; }
.flip__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease-lux);
}
.flip:hover .flip__inner,
.flip:focus-visible .flip__inner,
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip__front img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: blur(2.5px);
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.flip__front::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 2, 2, .07) 0%, rgba(2, 2, 2, .7) 100%);
}
.flip__label {
  position: absolute;
  z-index: 1;
  left: 40px; right: 40px; bottom: 40px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.flip__hint {
  position: absolute;
  z-index: 1;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(243, 227, 204, .5);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 18px;
  font-weight: 300;
  transition: transform .6s var(--ease), background-color .4s;
}
.flip:hover .flip__hint { transform: rotate(90deg); }

.flip__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 36px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(224, 190, 115, .22), transparent 55%),
    linear-gradient(160deg, #4a3053 0%, var(--plum-deep) 100%);
  border: 1px solid rgba(224, 190, 115, .45);
  color: var(--gold-soft);
}
.flip__back::before {       /* thin gold inner frame */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(224, 190, 115, .18);
  border-radius: 14px;
  pointer-events: none;
}
.flip__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 1px;
}
.flip__title {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.flip__back p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 23px;
  color: #f3eadc;
}
.flip--people .flip__back { padding-inline: 48px; }
.flip--people .flip__back p { max-width: 560px; font-size: 16px; line-height: 26px; }
.flip--sop .flip__back { padding-inline: 40px; }
.flip--sop .flip__back p { font-size: 17px; line-height: 28px; margin-top: 16px; }
.flip--sop .flip__title { font-size: 18px; }

/* ---------- The Kintsugi Method ---------- */
.method {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding: 150px 0 220px;
}
.method__wave { left: calc(50% - 1532px); top: 663px; width: 2085px; height: auto; }
.method__lead { margin-top: 42px; max-width: 716px; }
.method__grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 363px));
  justify-content: space-between;
  gap: 24px;
}
.mcard {
  position: relative;
  height: 398px;
  padding: 0 46px;
  border-radius: 20px;
  background: transparent;
  transition: background-color .7s var(--ease), box-shadow .7s var(--ease), transform .7s var(--ease);
  isolation: isolate;
}
.mcard::after {             /* faint gold hairline that appears with the white */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(224, 190, 115, 0);
  transition: border-color .7s var(--ease);
  pointer-events: none;
}
.mcard.is-active,
.mcard:hover { background: #fff; box-shadow: 0 30px 60px -30px rgba(21, 56, 45, .22); transform: translateY(-6px); }
.mcard.is-active::after,
.mcard:hover::after { border-color: rgba(224, 190, 115, .35); }
.mcard__ring {
  position: absolute;
  left: 66px; top: 51px;
  width: 231px; height: 231px;
  z-index: -1;
  transition: transform 1.2s var(--ease), opacity .7s;
}
.mcard:hover .mcard__ring { transform: scale(1.08) rotate(3deg); }
.mcard__icon {
  position: absolute;
  left: 46px;
  transition: transform 1s var(--ease);
}
.mcard__icon--read { top: 126px; width: 127px; }
.mcard__icon--reveal { top: 78px; width: 113px; }
.mcard__icon--respond { top: 127px; width: 88px; height: 88px; }
.mcard__icon--respond > img:first-child { width: 88px; height: 88px; }
.mcard__sparkle { position: absolute; left: 25.5px; top: 33px; width: 35px; transition: transform 1s var(--ease); }
.mcard:hover .mcard__icon { transform: translateY(-8px); }
.mcard:hover .mcard__icon--reveal { transform: translate(6px, -10px) rotate(-4deg); }
.mcard:hover .mcard__sparkle { transform: scale(1.25) rotate(20deg); }
.mcard__title {
  position: absolute;
  left: 46px; top: 222px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 52px;
  letter-spacing: -1px;
  color: var(--ink);
}
.mcard__text {
  position: absolute;
  left: 46px; top: 272px;
  width: 210px;
  font-size: 18px;
  line-height: 30px;
  color: var(--forest-text);
}
.method__quote {
  margin: 66px auto 0;
  max-width: 824px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 2vw + 8px, 36px);
  line-height: 52px;
  letter-spacing: -1px;
  color: var(--forest);
}

/* ---------- Who we work with ---------- */
.who {
  position: relative;
  background: var(--forest);
  overflow: hidden;
  padding: 158px 0;
}
.who__circle--a { left: calc(50% - 839px); top: 77px; }
.who__circle--b { left: calc(50% + 367px); top: 456px; }
.who__inner {
  display: grid;
  grid-template-columns: minmax(0, 654px) minmax(0, 466px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.who__cards { display: grid; gap: 20px; }
.wcard {
  position: relative;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
.wcard img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.wcard:nth-child(3) img { object-position: center bottom; }
.wcard::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(97.8deg, rgba(0, 0, 0, .8) 14.3%, rgba(0, 0, 0, 0) 68.8%);
  transition: opacity .8s var(--ease);
}
.wcard::before {            /* gold edge line that draws in on hover */
  content: "";
  position: absolute;
  z-index: 2;
  left: 33px; bottom: 26px;
  width: 60px; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-lux);
}
.wcard__label {
  position: absolute;
  z-index: 1;
  left: 33px; bottom: 38px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  transition: transform .8s var(--ease), letter-spacing .8s var(--ease);
}
.wcard:nth-child(1) .wcard__label { bottom: 37px; }
.wcard:hover img { transform: scale(1.07); }
.wcard:hover::after { opacity: .75; }
.wcard:hover::before { transform: scaleX(1); }
.wcard:hover .wcard__label { transform: translateX(6px); letter-spacing: 3px; }
.who__copy { padding-bottom: 6px; }
.who__copy .h2 { margin-top: 38px; max-width: 405px; }
.who__copy .body { margin-top: 50px; }

/* ---------- Client perspective ---------- */
.clients {
  background: var(--parchment);
  padding: 186px 0 206px;
  overflow: hidden;
}
.clients__title { line-height: 52px; }
.marquee {
  position: relative;
  margin-top: 39px;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 76%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: var(--h, 26px);
  width: auto;
  flex: none;
  opacity: .85;
  filter: grayscale(.35);
  transition: opacity .4s, filter .4s, transform .5s var(--ease);
}
.marquee__track img:hover { opacity: 1; filter: none; transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(calc(-50% - 40px)); } }

.testimonials {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 590px));
  justify-content: space-between;
  gap: 27px;
}
.tcard {
  position: relative;
  min-height: 441px;
  padding: 172px 76px 70px;
  border-radius: 20px;
  background: var(--gold);
  overflow: hidden;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.tcard::after {             /* slow light sweep */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at var(--gx, 80%) var(--gy, 0%), rgba(255, 255, 255, .28), transparent 70%);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}
.tcard:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -34px rgba(61, 39, 68, .45); }
.tcard:hover::after { opacity: 1; }
.tcard__mark {
  position: absolute;
  left: -23px; top: 11px;
  width: 196px; height: 136px;
  transform-origin: 30% 60%;
  transition: transform 1.2s var(--ease);
}
.tcard:hover .tcard__mark { transform: translate(8px, 4px) scale(1.04); }
.tcard blockquote {
  position: relative;
  max-width: 438px;
  font-size: 18px;
  line-height: 30px;
  color: var(--ink);
}
.tcard figcaption {
  position: relative;
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 19px;
}
.tcard__avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.tcard__avatar--top { object-position: center 30%; }
.tcard strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -1px;
  color: var(--ink);
}
.tcard small {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 18px;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.footer { background: var(--plum); color: #fff; overflow: hidden; }
.cta { background: var(--plum-deep); padding: 62px 0 70px; }
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw + 8px, 36px);
  line-height: 52px;
  letter-spacing: -1px;
  color: var(--gold);
}
.cta__text {
  margin-top: 12px;
  max-width: 470px;
  font-size: 18px;
  line-height: 30px;
  color: #f3f3f3;
}
.cta .btn { margin-top: 40px; }

.footer__main {
  position: relative;
  min-height: 691px;
  padding-top: 103px;
  background: linear-gradient(171.2deg, rgba(61, 39, 68, 0) 12.8%, var(--orchid) 80.8%);
}
.footer__grid {
  display: grid;
  grid-template-columns: 655px 305px 1fr;
  padding-left: calc(var(--gutter) + 7px);
}
.footer__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2.88px;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer__desc { margin-top: 20px; max-width: 410px; font-size: 14px; line-height: 24px; }
.footer__copy { margin-top: 12px; font-size: 14px; line-height: 24px; }
.footer__links { display: grid; align-content: start; gap: 15px; font-size: 15px; line-height: 18px; }
.footer__links a { position: relative; width: max-content; transition: color .3s; }
.footer__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--gold-bright);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-lux);
}
.footer__links a:hover { color: var(--gold-bright); }
.footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__word-wrap { margin-top: 84px; padding-left: calc(var(--gutter) + 7px); }
.footer__word {
  width: 100%;
  max-width: 1199px;
  height: auto;
  margin-bottom: -22px;
  clip-path: inset(100% 0 0 0);
  transform: translateY(60px);
  transition: clip-path 1.8s var(--ease-lux), transform 1.8s var(--ease-lux);
}
.footer__word.is-in { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* cards keep their own hover transitions once revealed */
.mcard[data-reveal].is-in { transition: opacity 1.2s var(--ease) var(--d, 0s), background-color .7s var(--ease), box-shadow .7s var(--ease), transform .7s var(--ease); }
.mcard[data-reveal].is-in:hover, .mcard[data-reveal].is-in.is-active { transform: translateY(-6px); }
.tcard[data-reveal].is-in { transition: opacity 1.2s var(--ease) var(--d, 0s), transform .8s var(--ease), box-shadow .8s var(--ease); }
.tcard[data-reveal].is-in:hover { transform: translateY(-6px); }
.btn[data-reveal].is-in { transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s), background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease); }

[data-wave] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 3.2s var(--ease-lux);
}
[data-wave].is-in { clip-path: inset(0 0 0 0); animation: drift 14s ease-in-out 3.2s infinite alternate; }
@keyframes drift { to { transform: translate3d(-40px, 10px, 0); } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1280px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
  .hero__panel { left: calc(50% - 200px); }
  .services__circle--b { left: auto; right: -232px; }
}

@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav__link { font-size: 14px; }
  .about__inner { grid-template-columns: 1fr 1fr; }
  .about__arch { height: 760px; }
  .about__copy { padding-top: 160px; }
  .services__grid { grid-template-rows: 240px 290px; }
  .flip__label { left: 26px; right: 26px; bottom: 26px; font-size: 16px; }
  .flip__back, .flip--people .flip__back, .flip--sop .flip__back { padding: 22px 26px; }
  .mcard { padding: 0 30px; }
  .mcard__ring, .mcard__icon, .mcard__title, .mcard__text { left: 30px; }
  .who__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .header.is-scrolled { --header-h: 66px; }
  .brand__mark { width: 44px; height: 45px; }
  .header.is-scrolled .brand__mark { width: 40px; height: 41px; }
  .brand__word { width: 92px; }
  .header__cta { display: none; }
  .burger {
    display: grid;
    gap: 7px;
    width: 44px; height: 44px;
    place-content: center;
    background: none;
    border: 1px solid rgba(224, 190, 115, .5);
    border-radius: 50%;
    cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 1px; background: var(--gold-soft); transition: transform .5s var(--ease); }
  .header.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .header.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: rgba(49, 31, 55, .97);
    clip-path: circle(0 at calc(100% - 46px) 37px);
    transition: clip-path .9s var(--ease-lux);
  }
  .header.is-open .nav { clip-path: circle(150% at calc(100% - 46px) 37px); }
  .nav__link { font-family: var(--serif); text-transform: none; font-size: 30px; line-height: 1.2; }
  .nav__link.is-active { font-weight: 400; font-style: italic; }

  .hero { height: 100svh; min-height: 640px; }
  .hero__panel {
    left: var(--gutter);
    right: -2px;
    top: auto;
    bottom: 12%;
    min-height: 0;
    border-radius: 36px 0 0 36px;
  }
  .hero__content { padding: 40px 28px 44px 32px; }
  .hero__kicker, .hero__big { line-height: 1.12; }
  .hero__big { font-size: min(13vw, 80px); }
  .hero__kicker { font-size: min(9vw, 54px); }
  .hero__text { margin-top: 22px; }
  .hero__btn { margin-top: 28px; }
  .hero__scroll { display: none; }

  .intro { min-height: 0; }
  .intro__inner { padding-top: 90px; padding-bottom: 140px; }
  .intro__wave { left: -300px; width: 1800px; top: auto; bottom: -260px; }

  .about__inner { grid-template-columns: 1fr; gap: 0; padding-top: 80px; }
  .about__arch { order: 2; height: 560px; max-width: 520px; width: 100%; margin: 60px auto 0; }
  .about__copy { padding: 0; }
  .about__circle { left: auto; right: -200px; top: -120px; }

  .services { padding: 110px 0; }
  .services__head { grid-template-columns: 1fr; gap: 0; }
  .services__lead { margin-top: 24px; }
  .services__grid {
    margin-top: 50px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 260px 300px;
    gap: 14px;
  }
  .flip--diagnosis { grid-area: 1 / 1 / 2 / 2; }
  .flip--feedback  { grid-area: 1 / 2 / 2 / 3; }
  .flip--people    { grid-area: 2 / 1 / 3 / 3; }
  .flip--sop       { grid-area: 3 / 1 / 4 / 3; }
  .flip--sop .flip__front img { object-position: center; }

  .method { padding: 110px 0 160px; }
  .method__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 16px; }
  .mcard { height: 360px; }
  .mcard__title { top: 200px; }
  .mcard__text { top: 250px; width: auto; right: 30px; }
  .method__wave { left: -700px; top: auto; bottom: -200px; }
  .method__quote { line-height: 1.4; }

  .who { padding: 110px 0; }
  .who__inner { grid-template-columns: 1fr; gap: 60px; }
  .who__copy { order: -1; }
  .who__copy .h2 { margin-top: 24px; }
  .who__copy .body { margin-top: 28px; }

  .clients { padding: 110px 0; }
  .testimonials { grid-template-columns: 1fr; gap: 20px; }
  .tcard { padding: 150px 40px 50px; min-height: 0; }

  .cta { padding: 60px 0; }
  .cta__inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .cta .btn { margin-top: 30px; }
  .footer__main { min-height: 0; padding-top: 70px; }
  .footer__grid { grid-template-columns: 1fr 1fr; padding-left: var(--gutter); row-gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__word-wrap { margin-top: 60px; padding-left: var(--gutter); }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .eyebrow { font-size: 14px; }
  .body { font-size: 16px; line-height: 27px; }
  .hero__panel { left: 12px; bottom: 9%; }
  .hero__content { padding: 32px 20px 34px 24px; }
  .btn--outline { min-width: 0; width: 100%; height: 56px; font-size: 14px; }
  .services__grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 280px); }
  .flip--diagnosis, .flip--feedback, .flip--people, .flip--sop { grid-area: auto; }
  .flip__back, .flip--people .flip__back, .flip--sop .flip__back { padding: 24px; }
  .flip__back p, .flip--sop .flip__back p { font-size: 14px; line-height: 21px; margin-top: 8px; }
  .wcard { height: 180px; }
  .wcard__label { left: 22px; bottom: 26px !important; font-size: 15px; }
  .wcard::before { left: 22px; bottom: 16px; }
  .tcard { padding: 130px 24px 36px; }
  .tcard strong { font-size: 22px; }
  .tcard small { font-size: 14px; }
  .marquee__track { gap: 56px; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }
  .footer__grid { grid-template-columns: 1fr; }
}

/* touch devices: no hover flips, tap instead (handled in JS) */
@media (hover: none) {
  .flip:hover .flip__inner { transform: none; }
  .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
