/* =========================================================
   ReMedix — Clinic Launch Partner
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --cream:      #f2ede4;   /* warm ivory / cream (matches the design) */
  --cream-2:    #e9e2d6;
  --ink:        #14110e;
  --ink-soft:   #2a2521;
  --charcoal:   #1a1613;
  --text-dark:  #2c2620;
  --text-light: #d8d2c7;
  --text-muted: #9a9084;
  --gold:       #b08d57;
  --gold-soft:  #c6a774;
  --line-dark:  rgba(40, 34, 28, 0.22);
  --line-light: rgba(216, 210, 199, 0.22);

  --serif:  "Playfair Display", "Times New Roman", serif;
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  --sans:   "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 60px);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--mincho);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  background: #1e1f22;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* keep anchored sections clear of the fixed header */
#hero, #business, #about, #contact, #company { scroll-margin-top: 110px; }

/* ---------- Utilities ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
  white-space: nowrap;
}
.section-head__line {
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .5s var(--ease), backdrop-filter .5s;
}
.header.is-scrolled {
  background: rgba(249, 246, 240, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header.is-dark.is-scrolled {
  background: rgba(30, 31, 34, 0.62);
  border-bottom: 1px solid var(--line-light);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 92px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color .5s var(--ease);
}
.header.is-dark .logo { color: var(--cream); }

.gnav__list {
  display: flex;
  gap: clamp(28px, 3.4vw, 56px);
}
.gnav__list a {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color .5s var(--ease);
}
.header.is-dark .gnav__list a { color: var(--text-light); }
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.gnav__list a:hover { color: var(--gold); }
.gnav__list a:hover::after { width: 100%; }

/* Hamburger */
.menu-toggle {
  width: 58px; height: 58px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.header.is-dark .menu-toggle { border-color: var(--line-light); }
.menu-toggle:hover { border-color: var(--gold); transform: rotate(90deg); }
.menu-toggle__lines { display: block; width: 20px; }
.menu-toggle__lines span {
  display: block;
  height: 1px;
  background: var(--ink-soft);
  margin: 5px 0;
  transition: transform .4s var(--ease), background-color .5s;
}
.header.is-dark .menu-toggle__lines span { background: var(--text-light); }
body.drawer-open .menu-toggle__lines span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.drawer-open .menu-toggle__lines span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* =========================================================
   Drawer (mobile)
   ========================================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(160deg, #26272b, #141518);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s;
}
body.drawer-open .drawer { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__nav ul { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a {
  font-family: var(--serif);
  font-size: clamp(34px, 10vw, 60px);
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  transition: color .4s var(--ease), padding-left .4s var(--ease);
}
.drawer__nav a:hover { color: var(--gold-soft); padding-left: 12px; }
.drawer__num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.drawer__copy {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  margin-top: 48px;
  font-size: 20px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(180deg, #faf7f1 0%, #f3ede3 100%);
}

/* everything after the hero slides up over it. .content itself is
   transparent so the hero shows through the fading leading edge; the
   sections below carry the opaque dark that covers the hero. */
.content {
  position: relative;
  z-index: 2;
  background: transparent;
}
.content::before {
  content: "";
  display: block;
  height: 52vh;
  background: linear-gradient(
    180deg,
    rgba(30, 31, 34, 0) 0%,
    rgba(30, 31, 34, 0.35) 46%,
    rgba(30, 31, 34, 0.85) 80%,
    #1e1f22 100%
  );
}
.content > section { background: #1e1f22; }
@media (prefers-reduced-motion: reduce) {
  .content::before { height: 30vh; }
}

.hero__circle {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  translate: -50% -46%;           /* centering via individual prop … */
  transform: translate(0, 0);     /* … so JS can drive cursor parallax here */
  border: 1px solid rgba(176, 141, 87, 0.4);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 74%);
          mask-image: radial-gradient(circle, #000 62%, transparent 74%);
  animation: heroBreathe 5s ease-in-out infinite;
  will-change: transform, scale;
  pointer-events: none;
}
@keyframes heroBreathe {
  /* clearly visible in-place breathing (scale + opacity), no drift */
  0%, 100% { scale: 1;    opacity: .82; }
  50%      { scale: 1.04; opacity: 1;   }
}

.deco-plus {
  position: absolute;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 22px;
  color: var(--gold);
  opacity: .8;
  pointer-events: none;
  transform: translate(0, 0);     /* cursor parallax (JS) */
  animation: plusSpin 16s linear infinite, plusPulse 4s ease-in-out infinite;
  will-change: transform, rotate, scale;
}
.deco-plus--tl { top: 22%;  left: 22%; animation-duration: 13s, 5s; }
.deco-plus--tr { top: 30%;  right: 8%; animation-duration: 9s, 3.6s; animation-direction: reverse, normal; }
.deco-plus--br { bottom: 8%; right: 44%; animation-duration: 20s, 4.4s; }
@keyframes plusSpin  { to { rotate: 360deg; } }
@keyframes plusPulse {
  0%, 100% { scale: .8;  opacity: .5; }
  50%      { scale: 1.15; opacity: .95; }
}

.hero__index {
  position: fixed;
  top: 50%;
  /* park in the left margin, just outside the centred content column */
  left: calc((100vw - var(--maxw)) / 2 - 58px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 40;
}
/* only show while there is real margin beside the 1200px content column */
@media (max-width: 1319px) {
  .hero__index { display: none; }
}
.hero__index-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding-left: 30px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  opacity: .55;
  transition: opacity .4s var(--ease), color .4s var(--ease);
}
.hero__index-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.hero__index-item:hover,
.hero__index-item:focus-visible,
.hero__index-item.is-active { opacity: 1; color: var(--gold); }
.hero__index-item:hover::before,
.hero__index-item:focus-visible::before,
.hero__index-item.is-active::before { width: 30px; }

/* colour flips to light while the fixed index sits over dark sections */
.hero__index.on-dark .hero__index-item { color: var(--text-light); opacity: .6; }
.hero__index.on-dark .hero__index-item:hover,
.hero__index.on-dark .hero__index-item:focus-visible,
.hero__index.on-dark .hero__index-item.is-active { color: var(--gold-soft); opacity: 1; }
.hero__index-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero__index-item:hover .hero__index-label,
.hero__index-item:focus-visible .hero__index-label { opacity: 1; transform: none; }

/* brief highlight on the card a hero index link points to */
.biz-card.is-target::before { opacity: 1; }
.biz-card.is-target .biz-card__num { color: var(--gold-soft); }
.biz-card__num { transition: color .5s var(--ease), opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s, filter .9s var(--ease) .1s; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__scroll span {
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  opacity: .7;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 70px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(70px); opacity: 0; }
}

.hero__content { text-align: center; position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 15vw, 200px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.hero__lead {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-top: 10px;
}
.hero__rule {
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 28px auto;
}
.hero__jp {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(17px, 2.4vw, 26px);
  letter-spacing: 0.08em;
  color: var(--text-dark);
  line-height: 2;
}
.hero__tags {
  font-family: var(--sans);
  font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.2em;
  color: #837a6d;            /* muted grey, as in the design */
  margin-top: 34px;
}

/* =========================================================
   Business
   ========================================================= */
.business {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(70px, 10vw, 130px);
}
/* text turns light as background darkens through this section */
.business .section-head__title { color: var(--cream); }
.business .section-head__line  { background: var(--line-light); }

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.biz-card {
  padding: 0 clamp(24px, 3vw, 48px);
  position: relative;
}
.biz-card + .biz-card { border-left: 1px solid var(--line-light); }

.biz-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}
.biz-card__num {
  font-family: "Cormorant Infant", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(58px, 6.2vw, 88px);
  line-height: 1;
  color: var(--cream);
}
.biz-card__icon { color: var(--gold); width: 74px; }
.biz-card__icon svg { width: 100%; height: auto; }

.biz-card__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(25px, 2.7vw, 36px);
  color: var(--cream);
  margin: 26px 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-light);
}
.biz-card__desc {
  font-family: var(--mincho);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--text-light);
  line-height: 2.1;
}
.biz-card__arrow {
  display: inline-block;
  width: 60px;
  margin-top: 34px;
  color: var(--gold);
  transition: transform .4s var(--ease);
}
.biz-card__arrow:hover { transform: translateX(10px); }

/* =========================================================
   About
   ========================================================= */
.about {
  position: relative;
  border-top: 1px solid var(--line-light);
  overflow: hidden;
}
.about__net {
  position: absolute;
  top: 0; right: 0;
  width: 62%;
  height: 100%;
  opacity: .9;
  pointer-events: none;
}
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--gutter);
  position: relative;
  z-index: 2;
}
.about__body { max-width: 520px; }
.about__title {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--cream);
  margin-bottom: 36px;
}
.about__text {
  font-family: var(--mincho);
  font-size: clamp(15px, 1.7vw, 17px);
  letter-spacing: 0.06em;
  line-height: 2.1;
  color: var(--text-light);
}

/* Shared "more" link */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--cream);
}
.link-more svg { width: 15px; color: var(--gold); transition: transform .4s var(--ease); }
.link-more:hover svg { transform: translate(4px, -4px); }
.link-more span { position: relative; padding-bottom: 6px; }
.link-more span::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(.4);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.link-more:hover span::after { transform: scaleX(1); }

/* =========================================================
   Contact + Company
   ========================================================= */
.foot-cols {
  border-top: 1px solid var(--line-light);
}
.foot-cols__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
}
.fcol__title {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--cream);
  margin-bottom: 34px;
}
.fcol__lead {
  font-family: var(--mincho);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-light);
  margin-bottom: 34px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 380px);
  padding: 22px 30px;
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  transition: color .45s var(--ease);
}
.contact-btn svg { width: 16px; color: var(--gold); position: relative; z-index: 2; transition: color .45s, transform .45s var(--ease); }
.contact-btn span { position: relative; z-index: 2; }
.contact-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.contact-btn:hover { color: var(--ink); }
.contact-btn:hover svg { color: var(--ink); transform: translate(4px, -4px); }
.contact-btn:hover::before { transform: scaleX(1); }

/* Company table */
.company-table__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}
.company-table__row:first-child { border-top: 1px solid var(--line-light); }
.company-table dt {
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.company-table dd {
  font-family: var(--mincho);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--text-light);
  line-height: 1.9;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line-light);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.site-footer__link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-light);
  transition: color .4s var(--ease);
}
.site-footer__link:hover { color: var(--gold); }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: 1fr; gap: 0; }
  .biz-card { padding: 40px 0; }
  .biz-card + .biz-card { border-left: 0; border-top: 1px solid var(--line-light); }
  .biz-card__top { min-height: auto; }
  .about__net { width: 100%; opacity: .5; }
  .foot-cols__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .gnav { display: none; }
  .header__inner { height: 74px; }
  .logo { font-size: 26px; }
  .hero__scroll { display: none; }
  .deco-plus--tl { left: 8%; top: 20%; }
  .deco-plus--tr { right: 6%; }
  .company-table__row { grid-template-columns: 92px 1fr; gap: 14px; }
}

@media (min-width: 761px) {
  .menu-toggle { display: none; }
}

@media (max-width: 480px) {
  .site-footer__inner { flex-direction: column; gap: 14px; text-align: center; }
}

/* =========================================================
   RICH MOTION LAYER
   ========================================================= */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  z-index: 200;
  will-change: transform;
}

/* ---- Custom cursor (pointer:fine only) ---- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(176, 141, 87, 0.75);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width .3s var(--ease), height .3s var(--ease),
                margin .3s var(--ease), background-color .3s var(--ease),
                border-color .3s var(--ease), opacity .3s var(--ease);
    mix-blend-mode: normal;
  }
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: opacity .3s var(--ease);
  }
  body.cursor-hover .cursor {
    width: 58px; height: 58px;
    margin: -29px 0 0 -29px;
    background: rgba(176, 141, 87, 0.12);
    border-color: rgba(198, 167, 116, 0.9);
  }
  body.cursor-hover .cursor-dot { opacity: 0; }
  /* hide the native cursor on interactive elements for a cleaner feel */
  a, button, .menu-toggle { cursor: none; }
}

/* ---- Hero intro (runs on load) ---- */
/* Title split into per-letter spans.
   Hide only until JS has split it (adds .is-split); avoids a pre-split flash
   without ever trapping the title hidden. */
.js .hero__title[data-split]:not(.is-split) { visibility: hidden; }
.hero__title .char {
  display: inline-block;
  transform: translateY(1.05em) rotate(3deg);
  opacity: 0;
  filter: blur(6px);
  transition: transform 1.05s var(--ease), opacity 1.05s var(--ease), filter 1.05s var(--ease);
  will-change: transform, opacity, filter;
}
body.is-loaded .hero__title .char {
  transform: none;
  opacity: 1;
  filter: blur(0);
}

/* Other hero lines: clip + blur reveal */
.hero-in {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(4px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
body.is-loaded .hero-in { opacity: 1; transform: none; filter: blur(0); }

.hero-fade { opacity: 0; transition: opacity 1.4s var(--ease); }
body.is-loaded .hero-fade { opacity: 1; }

/* stagger delays for hero lines */
body.is-loaded .hero-in[data-in-delay="5"] { transition-delay: .62s; }
body.is-loaded .hero-in[data-in-delay="6"] { transition-delay: .72s; }
body.is-loaded .hero-in[data-in-delay="7"] { transition-delay: .82s; }
body.is-loaded .hero-in[data-in-delay="8"] { transition-delay: .95s; }
body.is-loaded .hero-fade { transition-delay: 1.1s; }

/* ---- Hero decorative circle: kept as the original static ring,
        with only a faint in-place breathe (defined by heroPulse). ---- */

/* ---- Parallax hooks (JS sets --sy on hero) ---- */
.hero__content { will-change: transform; }

/* ---- Static gold labels (no animation, matches the design) ---- */
.business .section-head__title { color: var(--cream); }

/* ---- Richer scroll reveals: clip + blur, staggered children ---- */
[data-reveal] {
  filter: blur(5px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
[data-reveal].is-in { filter: blur(0); }

/* BUSINESS card: divider draw + icon line-draw + number reveal on view */
.biz-card__title { position: relative; }
.biz-card__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) .25s;
}
.biz-card.is-in .biz-card__title::after { transform: scaleX(1); }
/* hide the static border since we animate our own */
.biz-card__title { border-bottom-color: transparent; }

.biz-card__num {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s, filter .9s var(--ease) .1s;
}
.biz-card.is-in .biz-card__num { opacity: 1; transform: none; filter: blur(0); }

.biz-card__icon svg * {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.5s var(--ease) .35s;
}
.biz-card.is-in .biz-card__icon svg * { stroke-dashoffset: 0; }

/* BUSINESS card hover: lift + gold glow ring */
.biz-card {
  transition: transform .55s var(--ease);
}
.biz-card::before {
  content: "";
  position: absolute;
  inset: 12px 0;
  border-radius: 6px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(176,141,87,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .biz-card:hover { transform: translateY(-8px); }
  .biz-card:hover::before { opacity: 1; }
  .biz-card:hover .biz-card__icon { color: var(--gold-soft); }
  .biz-card__icon { transition: color .5s var(--ease), transform .6s var(--ease); }
  .biz-card:hover .biz-card__icon { transform: rotate(8deg) scale(1.06); }
}

/* section-head line draws in on reveal */
.section-head { position: relative; }
.section-head__line { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .1s; }
.section-head.is-in .section-head__line,
[data-reveal].is-in .section-head__line { transform: scaleX(1); }
.section-head[data-reveal].is-in .section-head__line { transform: scaleX(1); }

/* About text: word-by-word not needed; give it a gentle rise already via data-reveal */

/* contact button: subtle floating sheen */
.contact-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  transition: left .8s var(--ease);
  z-index: 1;
}
.contact-btn:hover::after { left: 130%; }

/* ---- Reduced motion: strip the rich layer ---- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .cursor, .cursor-dot { display: none !important; }
  .hero__title[data-split],
  .hero__title.is-split { visibility: visible; }
  .hero__title .char,
  .hero-in, .hero-fade,
  .biz-card__num,
  .biz-card__icon svg *,
  .biz-card__title::after,
  .section-head__line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    stroke-dashoffset: 0 !important;
  }
  .section-head__line, .biz-card__title::after { transform: scaleX(1) !important; }
  .hero__circle { animation: none; scale: 1; transform: none; }
  .deco-plus { animation: none; scale: 1; rotate: 0deg; transform: none; }
  .section-head__title, .about__title, .fcol__title, .hero__tags { animation: none; }
}

/* ---- No-JS safety: never leave content hidden if scripts don't run ---- */
html:not(.js) [data-reveal],
html:not(.js) .hero-in,
html:not(.js) .hero-fade,
html:not(.js) .hero__title .char,
html:not(.js) .biz-card__num {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
html:not(.js) .hero__title[data-split] { visibility: visible !important; }
html:not(.js) .biz-card__icon svg * { stroke-dashoffset: 0 !important; }
html:not(.js) .section-head__line,
html:not(.js) .biz-card__title::after { transform: scaleX(1) !important; }
