/* ------------------------------------------------------------------
   /clinic-website/  -  premium creative-developer service page.
   Self-contained stylesheet (project convention: mirror tokens, never
   import). Dark cinematic hero + showcase, warm editorial middle,
   dark bookend close. No external fonts or libraries: the site CSP is
   'self' only, so everything here is system stacks, CSS 3D and canvas.
   ------------------------------------------------------------------ */

:root {
  /* dark stage */
  --void: #0f1013;
  --void-2: #16171b;
  --line-d: #26282e;
  --cream: #ece9e2;
  --cream-dim: #b9b7b0;
  --tech: #9aa3ad;
  /* warm editorial (mirrors home.css) */
  --paper: #f7f6f2;
  --paper-2: #efeee9;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a38;
  --muted: #656565;
  --rule: #d9d7d0;
  /* accents */
  --gold: #e9b949;
  --gold-deep: #d9a832;
  --gold-soft: #f6e07a;
  --blue: #7fa8bd;
  --blue-d: #315d73;
  /* type */
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 56px);
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .68, .22, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; border-radius: 2px; }
[id] { scroll-margin-top: 84px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 10px 16px; font-size: .85rem; z-index: 90;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease),
              backdrop-filter 320ms var(--ease), color 320ms var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--cream);
}
.nav.scrolled {
  background: rgba(247, 246, 242, .86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--rule);
  color: var(--ink);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 64px;
}
.nav__back {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px;
  font-size: .84rem; font-weight: 600;
  text-decoration: none;
  opacity: .92;
}
.nav__back:hover { opacity: 1; }
.nav__side { display: flex; align-items: center; gap: 22px; }
.nav__status {
  font-family: var(--mono);
  font-size: .62rem; font-weight: 600;
  letter-spacing: .17em;
  opacity: .62;
  white-space: nowrap;
}
.nav__status::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.nav__cta {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  background: var(--gold);
  color: #171407;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  text-decoration: none;
  transition: transform 180ms var(--ease), background-color 180ms ease;
}
.nav__cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--void);
  color: var(--cream);
  overflow: hidden;
  padding-block: 120px 90px;
}

/* layered environment: canvas -> grid floor -> vignette -> grain */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__floor {
  position: absolute; left: -25%; right: -25%; bottom: -42%; height: 78%;
  transform: perspective(620px) rotateX(63deg);
  transform-origin: 50% 0;
  background:
    linear-gradient(rgba(233,185,73,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,185,73,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(transparent 4%, #000 52%, transparent 97%);
  mask-image: linear-gradient(transparent 4%, #000 52%, transparent 97%);
}
.hero__floor::after {
  content: "";
  position: absolute; inset: -8% 0;
  background: inherit;
  background-size: inherit;
  animation: floorDrift 16s linear infinite;
  opacity: .8;
}
@keyframes floorDrift { to { transform: translateY(56px); } }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 68% 30%, rgba(233,185,73,.075), transparent 52%),
    radial-gradient(90% 90% at 18% 78%, rgba(49,93,115,.14), transparent 55%),
    radial-gradient(140% 120% at 50% 50%, transparent 45%, rgba(9,10,12,.72) 100%);
}
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* floating technical labels */
.hero__tag {
  position: absolute;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--tech);
  opacity: 0;
  animation: tagIn 900ms var(--ease-out) both;
  user-select: none;
}
.hero__tag i { font-style: normal; color: var(--gold); }
.hero__tag--a { top: 17%; left: 5%; animation-delay: 1.15s; }
.hero__tag--b { bottom: 22%; right: 5.5%; animation-delay: 1.35s; }
.hero__tag--c { top: 13%; right: 9%; animation-delay: 1.5s; }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px); } to { opacity: .8; transform: none; } }

.hero__grid {
  position: relative; z-index: 2;
  display: grid;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  width: 100%;
}

/* --- copy column --- */
.hero__kicker {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: .66rem; font-weight: 600;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  animation: riseIn 640ms var(--ease-out) .08s both;
}
.hero__kicker span { color: var(--tech); }
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #f4f2ec;
  text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; animation: lineUp 780ms var(--ease-out) both; }
.hero h1 .line:nth-child(1) > span { animation-delay: .16s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .28s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .4s; }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* highlighted word: marker draws itself, text flips dark for contrast */
.hl {
  position: relative;
  display: inline-block;
  padding: 0 .12em;
  animation: hlText 400ms ease 1.15s both;
}
.hl::before {
  content: "";
  position: absolute;
  inset: .1em -.06em .02em -.08em;
  background: linear-gradient(97deg, rgba(233,185,73,0) 1%, var(--gold) 4%, var(--gold-deep) 96%, rgba(233,185,73,0) 99%);
  border-radius: .35em .2em .4em .25em;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hlDraw 520ms var(--ease) 1.05s both;
}
@keyframes hlDraw { to { transform: scaleX(1); } }
@keyframes hlText { from { color: inherit; } to { color: #171407; } }

.hero__tagalog {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--cream);
  animation: riseIn 640ms var(--ease-out) .5s both;
}
.hero__lede {
  margin: 0 0 10px;
  max-width: 46ch;
  color: var(--cream-dim);
  font-size: 1.04rem;
  animation: riseIn 640ms var(--ease-out) .58s both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 26px;
  margin-top: 30px;
  animation: riseIn 640ms var(--ease-out) .72s both;
}
.hero__check {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 8px 24px;
  margin: 26px 0 0; padding: 15px 0 0;
  border-top: 1px solid rgba(236,233,226,.14);
  animation: riseIn 640ms var(--ease-out) .84s both;
}
.hero__check li {
  position: relative;
  padding-left: 20px;
  font-size: .85rem;
  color: var(--cream-dim);
}
.hero__check li::before {
  content: "";
  position: absolute; left: 0; top: .52em;
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: .88rem; font-weight: 700; letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), background-color 200ms ease,
              color 200ms ease, border-color 200ms ease, box-shadow 220ms var(--ease);
  will-change: transform;
}
.btn--gold {
  background: var(--gold);
  color: #171407;
  box-shadow: 0 14px 34px -18px rgba(233,185,73,.55);
}
.btn--gold:hover { background: var(--gold-soft); box-shadow: 0 18px 40px -16px rgba(233,185,73,.6); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: #26261f; }
.btn--ghost-d { background: transparent; color: var(--cream); border-color: rgba(236,233,226,.32); }
.btn--ghost-d:hover { border-color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn .arr { display: inline-block; transition: transform 220ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px;
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.tlink::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transform-origin: left;
  transition: transform 300ms var(--ease), opacity 300ms ease;
}
.tlink:hover::after { transform: scaleX(.55); opacity: .9; }
.tlink .arr { transition: transform 220ms var(--ease); }
.tlink:hover .arr { transform: translateX(3px) translateY(1px); }

/* -------------------------------------------------- hero showcase */

.stage {
  position: relative;
  perspective: 1300px;
  animation: stageIn 900ms var(--ease-out) .55s both;
  /* JS drives --rx / --ry on pointer move */
  --rx: 0deg; --ry: 0deg;
}
@keyframes stageIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

.stage__tilt {
  transform: rotateX(calc(var(--rx) * 1)) rotateY(calc(var(--ry) * 1)) rotateZ(0.001deg);
  transform-style: preserve-3d;
  transition: transform 480ms var(--ease-out);
}

/* browser frame */
.bframe {
  position: relative;
  background: #1b1c20;
  border: 1px solid var(--line-d);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 34px 70px -28px rgba(0,0,0,.66),
    0 90px 150px -60px rgba(0,0,0,.5);
  overflow: hidden;
  animation: idleFloat 7s ease-in-out infinite;
}
@keyframes idleFloat { 50% { transform: translateY(-9px); } }
.bframe__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #202126;
  border-bottom: 1px solid var(--line-d);
}
.dots { display: inline-flex; gap: 6px; }
.dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3a3c43;
}
.dots i:nth-child(1) { background: #5d4444; }
.dots i:nth-child(2) { background: #5d5644; }
.dots i:nth-child(3) { background: #47584a; }
.bframe__url {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  max-width: 340px;
  margin-inline: auto;
  padding: 5px 12px;
  background: #17181c;
  border: 1px solid var(--line-d);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .04em;
  color: var(--tech);
  white-space: nowrap;
  overflow: hidden;
}
.bframe__url svg { flex: none; opacity: .8; }

/* miniature of the real jsmiledentalclinic.com hero */
.mini { background: #131313; }
.mini__nav {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: rgba(16,16,16,.96);
  font-size: .56rem;
  color: #d8d4cb;
}
.mini__logo {
  width: 14px; height: 14px; flex: none;
  border-radius: 4px;
  background: #111;
  border: 1px solid #3a3325;
  position: relative;
}
.mini__logo::after {
  content: "";
  position: absolute; inset: 3px;
  background: var(--gold);
  -webkit-mask: radial-gradient(circle at 50% 35%, #000 55%, transparent 56%);
  mask: radial-gradient(circle at 50% 35%, #000 55%, transparent 56%);
}
.mini__name { font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.mini__links {
  display: flex; gap: 9px;
  margin-left: auto;
  font-size: .5rem;
  color: #9a968d;
}
.mini__links i { font-style: normal; }
.mini__links i:first-child { color: var(--gold); }
.mini__book {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #171407;
  font-size: .5rem; font-weight: 700;
}
.mini__hero {
  position: relative;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
}
.mini__hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: brightness(.42) saturate(1.05);
}
.mini__shade {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 20%, transparent 30%, rgba(8,8,8,.55) 100%);
}
.mini__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 14px;
}
.mini__loc {
  margin: 0;
  font-family: var(--mono);
  font-size: .44rem;
  letter-spacing: .3em;
  color: var(--gold);
}
.mini__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.55vw, 1.3rem);
  line-height: 1.12;
  color: #fff;
  text-wrap: balance;
}
.mini__title em { font-style: italic; }
.mini__cta {
  margin-top: 5px;
  padding: 5px 13px;
  border-radius: 7px;
  background: var(--gold);
  color: #171407;
  font-size: .52rem; font-weight: 700;
}
.mini__chips { display: flex; gap: 5px; margin-top: 7px; }
.mini__chips i {
  font-style: normal;
  padding: 2.5px 7px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: .4rem;
  color: #e7e3da;
  white-space: nowrap;
}

/* looping demo cursor: drifts to the button, presses, returns */
.mini__cursor {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  animation: cursorPath 9s var(--ease) 2.4s infinite;
}
.mini__cursor::before {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  clip-path: polygon(0 0, 100% 38%, 46% 49%, 38% 100%);
}
.mini__cursor::after {
  content: "";
  position: absolute; inset: -7px;
  border: 1.5px solid rgba(233,185,73,.9);
  border-radius: 50%;
  opacity: 0;
  animation: cursorClick 9s var(--ease) 2.4s infinite;
}
@keyframes cursorPath {
  0%, 26%   { transform: translate(72px, -48px); }
  40%, 62%  { transform: translate(6px, 26px); }
  78%, 100% { transform: translate(72px, -48px); }
}
@keyframes cursorClick {
  0%, 44%  { opacity: 0; transform: scale(.4); }
  48%      { opacity: .95; transform: scale(.55); }
  56%      { opacity: 0; transform: scale(1.25); }
  100%     { opacity: 0; }
}

/* light sweep across the frame */
.bframe::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.06) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: sheen 8s var(--ease) 3.4s infinite;
  pointer-events: none;
}
@keyframes sheen { 12% { transform: translateX(120%); } 100% { transform: translateX(120%); } }

/* floating phone */
.pframe {
  position: absolute;
  left: -7%; bottom: -12%;
  width: 27%;
  min-width: 108px;
  background: #101114;
  border: 1px solid #2c2e34;
  border-radius: 17px;
  padding: 7px 6px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.72);
  transform: translateZ(46px);
  animation: idleFloat 6s ease-in-out .9s infinite;
  z-index: 4;
}
.pframe__screen {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 9 / 17;
  background: #131313;
}
.pframe__screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: brightness(.45);
}
.pframe__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
}
.pframe__inner .mini__loc { font-size: .34rem; letter-spacing: .24em; }
.pframe__inner .mini__title { font-size: .66rem; }
.pframe__inner .mini__cta { font-size: .42rem; padding: 4px 10px; }
.pframe__notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 9px;
  background: #101114;
  border-radius: 999px;
  z-index: 2;
}

/* floating spec chips around the stage */
.chip {
  position: absolute;
  padding: 7px 12px;
  background: rgba(22,23,27,.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-d);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .12em;
  color: var(--cream-dim);
  white-space: nowrap;
  transform: translateZ(70px);
  z-index: 5;
}
.chip::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
}
.chip--a { top: -5%; right: 4%; animation: chipFloat 6.4s ease-in-out .4s infinite; }
.chip--b { top: 38%; right: -5%; animation: chipFloat 7.2s ease-in-out 1.3s infinite; }
.chip--c { bottom: 6%; right: 14%; animation: chipFloat 6.8s ease-in-out 2.1s infinite; }
@keyframes chipFloat { 50% { transform: translateZ(70px) translateY(-7px); } }

.stage__glow {
  position: absolute;
  inset: 8% -6% -14% -6%;
  background: radial-gradient(58% 46% at 50% 88%, rgba(233,185,73,.13), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* hero scroll hint */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .3em;
  color: var(--tech);
  animation: riseIn 700ms var(--ease-out) 1.7s both;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 26px;
  margin: 8px auto 0;
  background: linear-gradient(var(--tech), transparent);
  animation: dropline 2.2s var(--ease) infinite;
}
@keyframes dropline { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --------------------------------------------------------- sections */

.section { position: relative; padding-block: clamp(76px, 10vw, 148px); }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--void); color: var(--cream); overflow: hidden; }
.section--dark .grain { opacity: .045; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 30px;
  font-family: var(--mono);
  font-size: .64rem; font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-d);
}
.eyebrow::after { content: ""; flex: 0 1 84px; height: 1px; background: currentColor; opacity: .3; }
.eyebrow b { font-weight: 600; color: var(--muted); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .eyebrow b { color: var(--tech); }

h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.intro { max-width: 720px; margin-bottom: clamp(40px, 5.5vw, 68px); }
.intro > p { max-width: 56ch; color: var(--ink-2); font-size: 1.05rem; }
.section--dark .intro > p { color: var(--cream-dim); }

.mark-l {
  padding: 0 .14em;
  background: linear-gradient(100deg, rgba(246,224,122,0) 1%, var(--gold-soft) 4%, rgba(246,224,122,.85) 97%, rgba(246,224,122,0) 99%);
  border-radius: .35em .2em .4em .25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* reveal choreography */
.js-fx .fx {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js-fx .fx.in { opacity: 1; transform: none; }
.js-fx .fx-d1.in { transition-delay: 90ms; }
.js-fx .fx-d2.in { transition-delay: 180ms; }
.js-fx .fx-d3.in { transition-delay: 270ms; }
.js-fx .fx-d4.in { transition-delay: 360ms; }
.js-fx .fx-d5.in { transition-delay: 450ms; }

/* ---------------------------------------------------- 01 · problem */

.search { max-width: 780px; }
.search__bar {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 20px 44px -26px rgba(17,17,17,.28);
  font-family: var(--mono);
  font-size: .92rem;
  color: var(--ink);
}
.search__bar svg { flex: none; opacity: .45; }
.search__caret {
  width: 1.5px; height: 1.06em;
  background: var(--ink);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.serp { list-style: none; margin: 26px 0 0; padding: 0; }
.serp li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 19px 6px;
  border-bottom: 1px solid var(--rule);
}
.serp__fav {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.serp b {
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.serp p { margin: 3px 0 0; font-size: .87rem; color: var(--muted); max-width: 52ch; }
.serp__tag {
  flex: none;
  margin-left: auto;
  align-self: center;
  padding: 4px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}
.serp li.ghost { opacity: .62; }
.serp li.you {
  background: linear-gradient(90deg, rgba(233,185,73,.09), transparent 70%);
  border-bottom-color: var(--gold-deep);
}
.serp li.you .serp__fav { background: var(--gold); border-color: var(--gold-deep); }
.serp li.you .serp__tag { border-color: var(--gold-deep); color: #7a5e14; background: rgba(246,224,122,.35); }

.problem__close {
  margin: clamp(36px, 5vw, 54px) 0 0;
  max-width: 54ch;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
}

/* ------------------------------------------------- 02 · modules */

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.module {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms ease;
}
.module:hover {
  transform: translateY(-5px);
  border-color: #cfccc2;
  box-shadow: 0 26px 48px -30px rgba(17,17,17,.3);
}
.module::after {
  content: "";
  position: absolute; left: 0; right: 100%; top: -1px;
  height: 2px;
  background: var(--gold-deep);
  transition: right 420ms var(--ease);
}
.module:hover::after { right: 0; }
.module__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--paper-2);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.module__bar .dots i { width: 6px; height: 6px; background: var(--rule); }
.module__bar .dots i:nth-child(n) { background: var(--rule); }
.module__bar span:last-child { margin-left: auto; }
.module__body { padding: 22px 20px 24px; }
.module__body h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -.015em;
}
.module__body p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* --------------------------------------------------- 03 · live */

.live__stage {
  position: relative;
  max-width: 940px;
  margin-inline: auto;
  perspective: 1500px;
  --rx: 0deg; --ry: 0deg;
}
.live__stage .stage__tilt { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.live__stage .bframe { animation: none; border-radius: 12px; }
.live__stage .bframe__url { max-width: 380px; font-size: .7rem; }
.live__stage .mini__hero { aspect-ratio: 16 / 8.4; }
.live__stage .mini__title { font-size: clamp(1.2rem, 2.4vw, 1.9rem); }
.live__stage .mini__loc { font-size: .52rem; }
.live__stage .mini__cta { font-size: .62rem; padding: 7px 16px; }
.live__stage .mini__nav { font-size: .66rem; padding: 11px 18px; }
.live__stage .mini__links { font-size: .58rem; gap: 12px; }
.live__stage .mini__book { font-size: .58rem; }
.live__glow {
  position: absolute;
  inset: 30% -10% -16% -10%;
  background: radial-gradient(55% 50% at 50% 80%, rgba(233,185,73,.16), transparent 72%);
  pointer-events: none;
}
.live__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 26px;
  max-width: 940px;
  margin: 26px auto 0;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--tech);
}
.live__actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px 28px;
  margin-top: clamp(36px, 5vw, 52px);
}

/* -------------------------------------------------- 04 · process */

.steps {
  --lineat: 30px;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 30px 22px;
  margin: 0; padding: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: var(--lineat);
  height: 1px;
  background: var(--rule);
}
.steps::after {
  content: "";
  position: absolute;
  left: 0; top: var(--lineat);
  height: 1px; width: 100%;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms var(--ease) 200ms;
}
.steps.drawn::after { transform: scaleX(1); }
.steps li { position: relative; padding-top: calc(var(--lineat) + 26px); }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  transform: translateY(calc(var(--lineat) - 30px));
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  transition: border-color 400ms ease, color 400ms ease, background-color 400ms ease;
}
.steps.drawn li::before { border-color: var(--gold-deep); color: var(--ink); }
.steps.drawn li:nth-child(1)::before { transition-delay: 240ms; }
.steps.drawn li:nth-child(2)::before { transition-delay: 560ms; }
.steps.drawn li:nth-child(3)::before { transition-delay: 880ms; }
.steps.drawn li:nth-child(4)::before { transition-delay: 1200ms; }
.steps h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
}
.steps p { margin: 0; font-size: .9rem; color: var(--ink-2); max-width: 30ch; }

.price-note {
  margin-top: clamp(40px, 5vw, 56px);
  max-width: 680px;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 22px 28px;
}
.price-note p:first-child {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}
.price-note p:last-child { margin: 0; font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------- 05 · included */

.pack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: pk; }
.pack li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 300px) 1fr;
  gap: 10px 26px;
  align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 260ms ease;
}
.pack li:hover { background: rgba(255,255,255,.55); }
.pack li::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--gold-deep);
  transition: width 460ms var(--ease);
}
.pack li:hover::after { width: 100%; }
.pack li::before {
  counter-increment: pk;
  content: "0" counter(pk);
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--blue-d);
}
.pack h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -.015em;
}
.pack p { margin: 0; font-size: .93rem; color: var(--ink-2); max-width: 52ch; }

.crosslink {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  max-width: 640px;
}
.crosslink p {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.45;
}

/* --------------------------------------------------- 06 · final */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 65% at 50% 108%, rgba(233,185,73,.13), transparent 60%),
    radial-gradient(110% 100% at 50% -8%, rgba(49,93,115,.12), transparent 55%);
}
.final .wrap { position: relative; z-index: 2; }
.final__kicker {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .26em;
  color: var(--gold);
  text-transform: uppercase;
}
.final h2 {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  color: #f4f2ec;
}
.final__sub {
  max-width: 44ch;
  margin: 0 auto 8px;
  color: var(--cream-dim);
  font-size: 1.06rem;
}
.final__actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px 30px;
  margin-top: 38px;
}
.final__cap {
  margin: 30px 0 0;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--tech);
}

/* ------------------------------------------------------------- foot */

.foot {
  padding-block: 30px 44px;
  background: var(--void);
  border-top: 1px solid var(--line-d);
  color: #8f9096;
  font-size: .8rem;
}
.foot a { color: #d6d4cd; }
.foot a:hover { color: #fff; }

/* ------------------------------------------------------- responsive */

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); }
  .stage { justify-self: end; width: 100%; max-width: 560px; }
}

@media (max-width: 979px) {
  .hero { padding-top: 104px; }
  .stage { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__tag--c { display: none; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .nav__status { display: none; }
  .hero { padding-top: 96px; padding-bottom: 74px; min-height: 0; }
  .hero__actions .btn { width: 100%; }
  .hero__tag--a, .hero__tag--b { display: none; }
  .hero__scroll { display: none; }
  .chip--b { display: none; }
  .chip--a { top: -7%; right: 2%; }
  .chip--c { bottom: -4%; right: 6%; }
  .pframe { left: -3%; bottom: -9%; width: 30%; }
  .mini__links { display: none; }
  .search__bar { font-size: .78rem; padding: 13px 16px; }
  .serp__tag { display: none; }
  .live__meta { justify-content: center; text-align: center; }
  .final__actions .btn { width: 100%; }
}

@media (hover: none) {
  .module:hover { transform: none; box-shadow: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js-fx .fx { opacity: 1; transform: none; }
  .steps::after { transform: scaleX(1); }
  .steps li::before { border-color: var(--gold-deep); color: var(--ink); }
  .mini__cursor, .bframe::after { display: none; }
  .hl { color: #171407; }
  .hl::before { transform: scaleX(1); }
}

/* ------------------------------------------- mobile horizontal strips ---
   Three card collections become swipe strips under 760px: the modules (6),
   the package rows (4) and the process timeline (4). Stacked, those three
   sections alone were 4.6 screens of thumb-dragging. Each strip gets a cue
   plus a dot pager, so the visitor can see how many cards exist and where
   they are - a strip with no readout is blind swiping.

   Deliberately NOT a strip: the search-result list in section 01. It is a
   comparison whose fourth row is the payoff ("Ang clinic ninyo"), and
   hiding the payoff behind a swipe would break the argument. */

.strip-nav { display: none; }

@media (max-width: 759px) {
  .strip-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .strip-nav[hidden] { display: none; }
  .strip-nav__cue { flex: none; transition: opacity 260ms var(--ease); }
  .strip-nav__cue::after {
    content: " \2192";
    display: inline-block;
    animation: nudgeX 1.8s var(--ease) infinite;
  }
  .strip-nav.is-moved .strip-nav__cue { opacity: 0; }
  @keyframes nudgeX { 50% { transform: translateX(5px); } }

  .strip-nav__dots { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; }
  .strip-nav__dots i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rule);
    transition: background-color 220ms var(--ease), transform 220ms var(--ease);
  }
  .strip-nav__dots i.is-on { background: var(--gold-deep); transform: scale(1.45); }
  .strip-nav__num { flex: none; color: var(--ink-2); }

  /* shared scroller mechanics */
  .modules,
  .pack,
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 12px;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 0;
  }
  .modules::-webkit-scrollbar,
  .pack::-webkit-scrollbar,
  .steps::-webkit-scrollbar { display: none; }

  .modules > .module,
  .pack > li,
  .steps > li {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  /* package rows become real cards while swiping */
  .pack { list-style: none; }
  .pack > li {
    display: block;
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 22px 20px 24px;
  }
  .pack > li::before {
    position: static;
    display: block;
    margin-bottom: 12px;
  }
  .pack > li::after { display: none; }
  .pack > li:hover { background: var(--surface); }
  .pack h3 { margin-bottom: 8px; }

  /* process keeps its timeline, drawn per card instead of one long rule */
  .steps { --lineat: 26px; }
  .steps::before, .steps::after { display: none; }
  .steps > li {
    position: relative;
    padding: calc(var(--lineat) + 34px) 0 0 0;
    min-height: 0;
  }
  .steps > li::before {
    position: absolute;
    top: 0; left: 0;
    transform: none;
    width: 54px; height: 54px;
    background: var(--surface);
  }
  .steps > li .connector {
    position: absolute;
    left: 62px; right: -12px;
    top: calc(var(--lineat) + 1px);
    height: 1px;
    background: var(--rule);
    overflow: hidden;
  }
  .steps > li:last-child .connector { display: none; }
  .steps > li .connector::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--gold-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 620ms var(--ease);
  }
  .steps.drawn > li .connector::after { transform: scaleX(1); }
  .steps.drawn > li:nth-child(1) .connector::after { transition-delay: 220ms; }
  .steps.drawn > li:nth-child(2) .connector::after { transition-delay: 520ms; }
  .steps.drawn > li:nth-child(3) .connector::after { transition-delay: 820ms; }
  .steps p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .strip-nav__cue::after { animation: none; }
  .steps > li .connector::after { transform: scaleX(1); }
}
