:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --tint: #eeebe4;
  --ink: #141414;
  --muted: #5f5b54;
  --line: #e0dbd1;
  --accent: #2b4cff;
  --dark: #111112;
  --dark-muted: #a19d96;
  --radius: 14px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
em { font-style: italic; color: var(--muted); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 580px; }

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), #8a5cff);
  transform-origin: left; transform: scaleX(0);
}

/* Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 500 0.98rem var(--sans);
  cursor: pointer;
  isolation: isolate;
  transition: transform .25s var(--ease), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: none; }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost::before { background: var(--surface); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--ink) 50%, var(--accent) 50%);
  transition: transform .5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s; }

/* Hero */
.hero { position: relative; padding: 110px 0 60px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  opacity: .7;
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.g1 { width: 420px; height: 420px; background: #8ea0ff; top: -80px; left: 10%; animation: drift 16s ease-in-out infinite alternate; }
.g2 { width: 360px; height: 360px; background: #ffc9a8; top: 120px; right: 8%; animation: drift 19s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(80px, 60px) scale(1.15); }
}
.hero h1 { max-width: 940px; margin: 0 auto 28px; }
.hero .lead { margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-in { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d) * 90ms + 100ms); }
.loaded .hero-in { opacity: 1; transform: none; }

/* Word-by-word heading reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform .9s var(--ease); transition-delay: calc(var(--wi) * 55ms + 100ms);
}
.loaded .hero-split .w > span, .visible .split .w > span { transform: none; }

/* Industries marquee */
.marquee { margin-top: 80px; }
.marquee-label { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.marquee-track {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee ul {
  display: flex; flex-shrink: 0; gap: 56px; padding: 0 28px; margin: 0; list-style: none;
  animation: marquee 32s linear infinite;
}
.marquee li { font-family: var(--serif); font-size: 1.9rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee li::after { content: "✦"; font-size: .9rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Gallery */
.showcase { padding: 80px 0 110px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.tabs {
  position: relative; display: flex; gap: 6px; justify-content: center;
  width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 20px; border: 0; border-radius: 999px; background: none;
  font: 500 .95rem var(--sans); color: var(--muted); cursor: pointer; transition: color .35s;
}
.tab b { font-weight: 600; }
.tab span { font-size: .8rem; opacity: .7; }
.tab:hover { color: var(--ink); }
.tab.active { color: #fff; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-indicator {
  position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; background: var(--ink);
  transition: transform .55s var(--ease), width .55s var(--ease);
}

.stage {
  position: relative;
  aspect-ratio: 16 / 9.5;
  width: min(100%, calc((100vh - 150px) * 1.68));
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(20, 20, 20, .35), 0 0 0 1px var(--line);
  user-select: none;
  container-type: inline-size;
}
.pair { position: absolute; inset: 0; visibility: hidden; }
.pair.active { visibility: visible; }
.ba-layer { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 2px; background: #fff; transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .3s var(--ease);
}
.stage:hover .ba-handle span { transform: translate(-50%, -50%) scale(1.1); }
.ba-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-tag {
  position: absolute; bottom: 18px; z-index: 3;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(17,17,18,.75); color: #fff; backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-tag-before { left: 18px; }
.ba-tag-after { right: 18px; background: var(--accent); }

/* Curtain wipe between examples */
.wipe { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.wipe i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; }
.wipe i:first-child { background: var(--accent); }
.wipe i:last-child { background: var(--ink); }
.switching .wipe i { animation: wipe 1.05s var(--ease) both; }
.switching .wipe i:last-child { animation-delay: .08s; }
@keyframes wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.switching .ba-handle, .switching .ba-tag { opacity: 0; transition: opacity .2s; }
.ba-handle, .ba-tag { transition: opacity .4s .2s; }
.pair.active .mock > * { animation: rise .7s var(--ease) both; }
.pair.active .mock > :nth-child(2) { animation-delay: .06s; }
.pair.active .mock > :nth-child(3) { animation-delay: .12s; }
.pair.active .mock > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.gallery-info { display: grid; margin-top: 28px; }
.info {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.info.active { opacity: 1; visibility: visible; transform: none; transition-delay: .45s, .45s, 0s; }
.info h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.info div span { color: var(--muted); font-size: .9rem; }
.info ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info li { border-top: 1px solid var(--line); padding-top: 12px; font-size: .93rem; color: var(--muted); }
.info li::before { content: "↗ "; color: var(--accent); }
.caption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 28px; }

/* Browser chrome shared by all mocks */
.browser { height: 100%; display: flex; flex-direction: column; }
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; background: #e9e6e0; flex-shrink: 0;
}
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #cfcac1; }
.url {
  margin-left: 14px; flex: 1; max-width: 340px;
  background: #fff; border-radius: 6px; padding: 3px 12px;
  font-size: 0.72rem; color: var(--muted);
}
.mock { flex: 1; overflow: hidden; font-size: clamp(7px, 1.3cqw, 15px); line-height: 1.45; }
.mock p { margin: 0; }
.old-img { background: #eee; border: 1px solid #999; height: 5em; display: grid; place-items: center; color: #999; font-family: "Times New Roman", serif; }

/* Modern mocks: shared nav */
.new-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7%; }
.new-nav b { font-family: var(--serif); font-size: 1.5em; font-weight: 400; }
.new-nav span { opacity: .65; }
.new-nav i { font-style: normal; padding: .5em 1.2em; border-radius: 999px; }

/* 1. Bakery — old */
.old-site {
  background: #c0c0c0 repeating-linear-gradient(45deg, #c8c8c8 0 6px, #bdbdbd 6px 12px);
  font-family: "Times New Roman", serif; color: #000;
}
.old-header {
  background: linear-gradient(#3a6ea5, #0a246a); color: #ffff00;
  font-family: "Comic Sans MS", cursive; font-size: 1.8em; text-align: center;
  padding: 0.6em; border-bottom: 3px ridge #888;
}
.old-nav { width: 100%; background: #ddd; border: 2px outset #fff; text-align: center; color: #0000ee; font-size: 0.95em; }
.old-nav td { padding: 4px; border: 1px solid #999; }
.old-body { display: flex; gap: 1em; padding: 1em; }
.old-side { width: 28%; background: #ffffcc; border: 2px dashed #f00; padding: 0.8em; color: #800000; }
.old-main { flex: 1; background: #fff; border: 2px inset #999; padding: 0.8em; }
.old-title { color: #800080; font-size: 1.6em; font-weight: bold; margin: 0 0 .4em !important; text-decoration: underline; }
.old-main p { margin: .5em 0; }
.old-small { font-size: .8em; color: #666; }
.old-counter { display: inline-block; background: #000; color: #0f0; font-family: monospace; padding: 2px 6px; }

/* 1. Bakery — new */
.new-site { background: #fbf7f1; color: #2a1d14; padding: 3% 5%; }
.new-site .new-nav span { color: #8a7766; opacity: 1; }
.new-site .new-nav i { background: #2a1d14; color: #fbf7f1; }
.new-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; }
.new-kicker { text-transform: uppercase; letter-spacing: .15em; font-size: .75em; color: #b0643a; margin: 0 0 .8em !important; font-weight: 600; }
.new-title { font-family: var(--serif); font-size: 3.6em; line-height: 1; margin: 0 0 .5em !important; }
.new-btn { display: inline-block; background: #b0643a; color: #fff; padding: .7em 1.5em; border-radius: 999px; }
.new-photo {
  aspect-ratio: 4 / 3.4; border-radius: 14px;
  background:
    radial-gradient(circle at 35% 40%, #e7b98a 0 18%, transparent 19%),
    radial-gradient(circle at 62% 58%, #d49a63 0 22%, transparent 23%),
    radial-gradient(circle at 40% 72%, #c88650 0 14%, transparent 15%),
    linear-gradient(135deg, #f0dcc4, #d8b48c);
}
.new-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: 6%; }
.new-row div { border-radius: 10px; background: #efe5d8; padding: .9em 1.1em; display: grid; }
.new-row b { font-family: var(--serif); font-weight: 400; font-size: 1.3em; }
.new-row small { color: #8a7766; font-size: .8em; }

/* 2. Plumbing — old */
.pl-old { background: #000; color: #fff; font-family: Arial, sans-serif; }
.pl-top {
  text-align: center; padding: .6em; font-family: Impact, "Arial Black", sans-serif; font-size: 2.1em; letter-spacing: .02em;
  color: #ff2020; text-shadow: 2px 2px 0 #fff, 4px 4px 0 #0000aa; background: linear-gradient(#333, #000);
  border-bottom: 4px double #ff0;
}
.pl-marquee { background: #ff0; color: #c00; font-weight: bold; white-space: nowrap; overflow: hidden; padding: .25em 0; }
.pl-marquee span { display: inline-block; padding-left: 100%; animation: oldmarquee 14s linear infinite; }
@keyframes oldmarquee { to { transform: translateX(-100%); } }
.pl-body { display: flex; gap: 1.2em; padding: 1em; }
.pl-col { flex: 1.6; text-align: center; }
.pl-h { color: #0f0; font-size: 1.5em; font-weight: bold; font-family: "Comic Sans MS", cursive; margin-bottom: .3em !important; }
.pl-uc {
  margin-top: .8em; padding: .5em; font-weight: bold; color: #000;
  background: repeating-linear-gradient(-45deg, #ff0 0 10px, #000 10px 20px);
  text-shadow: 0 0 4px #ff0, 0 0 4px #ff0;
}
.pl-col2 { flex: 1; text-align: center; }
.pl-phone { color: #ff0; font-weight: bold; font-size: 1.3em; margin: .6em 0 !important; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pl-links { color: #66f; }

/* 2. Plumbing — new */
.pl-new { background: #0f2236; color: #eef3f8; padding: 3% 5%; }
.pl-new .new-nav b { font-family: var(--sans); font-weight: 700; font-size: 1.3em; letter-spacing: -.02em; }
.pl-new .new-nav i { background: #ffb547; color: #0f2236; font-weight: 600; }
.pl-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6%; align-items: center; }
.pl-kicker { color: #ffb547; font-size: .8em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8em !important; }
.pl-title { font-size: 3.1em; font-weight: 700; line-height: 1.02; letter-spacing: -.03em; margin-bottom: .5em !important; }
.pl-btn, .pl-ghost { display: inline-block; padding: .7em 1.4em; border-radius: 8px; font-weight: 600; margin-right: .6em; }
.pl-btn { background: #ffb547; color: #0f2236; }
.pl-ghost { border: 1px solid rgba(255,255,255,.3); }
.pl-card { background: #fff; color: #0f2236; border-radius: 12px; padding: 1.1em; box-shadow: 0 20px 40px -15px rgba(0,0,0,.5); }
.pl-card-h { font-weight: 700; margin-bottom: .6em !important; }
.pl-slot { border: 1px solid #d9e1ea; border-radius: 8px; padding: .5em .8em; margin-top: .4em; font-size: .9em; }
.pl-slot.active { border-color: #2b6cb0; background: #eaf2fb; font-weight: 600; }
.pl-trust { display: flex; gap: 2.5em; margin-top: 7%; padding-top: 1.2em; border-top: 1px solid rgba(255,255,255,.12); font-size: .9em; color: #b8c7d6; }

/* 3. Fitness — old */
.fx-old { background: linear-gradient(#ddd, #999); color: #222; font-family: Verdana, sans-serif; font-size: clamp(6px, 1.1cqw, 13px); }
.fx-banner {
  padding: 1em; font-family: Impact, "Arial Black", sans-serif; font-size: 2.6em; color: #c6ff00; letter-spacing: .04em;
  background: linear-gradient(90deg, #000 0%, #2f3a00 60%, #000 100%); text-shadow: 0 0 8px #7f0; text-align: left;
}
.fx-body { display: flex; gap: 1em; padding: 1em; }
.fx-nav { list-style: square; margin: 0; padding: .8em .8em .8em 2em; background: #eee; border: 1px solid #777; color: #00c; width: 25%; }
.fx-nav li { margin: .3em 0; }
.fx-main { flex: 1; background: #fff; border: 1px solid #777; padding: .8em; }
.fx-flash {
  height: 8em; background: #ccc; border: 1px solid #888; margin-bottom: .8em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4em; text-align: center; color: #555;
}
.fx-flash u { color: #00c; }
.fx-upd { margin-top: .6em !important; font-size: .85em; color: #888; font-style: italic; }

/* 3. Fitness — new */
.fx-new { background: #10130c; color: #f2f5ea; padding: 3% 5%; }
.fx-new .new-nav b { font-family: var(--sans); font-weight: 700; letter-spacing: .12em; font-size: 1.1em; }
.fx-new .new-nav i { background: #d4ff4f; color: #10130c; font-weight: 700; }
.fx-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4%; align-items: center; }
.fx-title { font-weight: 700; font-size: 3.6em; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: .45em !important; }
.fx-title span { color: #d4ff4f; }
.fx-btn { display: inline-block; background: #d4ff4f; color: #10130c; font-weight: 700; padding: .75em 1.5em; border-radius: 999px; }
.fx-art { position: relative; aspect-ratio: 1; }
.fx-art i { position: absolute; border-radius: 50%; }
.fx-art i:nth-child(1) { inset: 8%; border: .5em solid #d4ff4f; }
.fx-art i:nth-child(2) { inset: 28%; background: #d4ff4f; }
.fx-art i:nth-child(3) { width: 18%; height: 18%; right: 4%; top: 6%; background: #fff; }
.fx-sched { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2%; margin-top: 5%; }
.fx-sched div { border: 1px solid #2c3322; border-radius: 10px; padding: .7em .9em; display: grid; }
.fx-sched small { color: #d4ff4f; font-size: .75em; font-weight: 600; letter-spacing: .06em; }
.fx-sched b { font-size: 1.05em; }

/* 4. Dental — old */
.dn-old { background: #fff; color: #333; font-family: Verdana, sans-serif; font-size: clamp(6px, 1.05cqw, 12px); }
.dn-head {
  display: flex; align-items: center; gap: 1.2em; padding: 1em 1.4em;
  background: linear-gradient(#7fd6d6 0%, #2aa3a3 50%, #168a8a 51%, #0e6f6f 100%); color: #fff;
  font-family: Georgia, serif; font-size: 1.4em; text-shadow: 1px 1px 0 #055;
}
.dn-tooth { width: 2.4em; height: 2.6em; background: #fff; border-radius: 45% 45% 30% 30%; position: relative; flex-shrink: 0; box-shadow: inset -3px -3px 0 #cfe; }
.dn-tooth::after { content: ""; position: absolute; bottom: -12%; left: 50%; width: 22%; height: 40%; background: #0e6f6f; transform: translateX(-50%); border-radius: 50% 50% 0 0; }
.dn-nav { background: #e8f6f6; border-bottom: 1px solid #9cc; padding: .5em 1.4em; color: #066; text-decoration: underline; }
.dn-body { padding: 1.2em 1.4em; text-align: justify; }
.dn-body p { margin-bottom: .9em !important; }
.dn-body u { color: #00c; }
.dn-copy { font-size: .85em; color: #999; text-align: center; }

/* 4. Dental — new */
.dn-new { background: #f3f7f4; color: #183229; padding: 3% 5%; }
.dn-new .new-nav b { font-size: 1.4em; }
.dn-new .new-nav i { background: #183229; color: #fff; }
.dn-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; align-items: center; }
.dn-kicker { display: inline-block; background: #d9eee3; color: #23744f; border-radius: 999px; padding: .25em .9em; font-size: .8em; font-weight: 600; margin-bottom: .9em !important; }
.dn-title { font-family: var(--serif); font-size: 3.6em; line-height: 1; margin-bottom: .45em !important; }
.dn-btn { display: inline-block; background: #23744f; color: #fff; padding: .7em 1.5em; border-radius: 999px; }
.dn-card { background: #fff; border-radius: 16px; padding: 1.2em; box-shadow: 0 18px 40px -20px rgba(24,50,41,.35); }
.dn-card p { font-weight: 600; margin-bottom: .7em !important; }
.dn-days, .dn-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; margin-bottom: .5em; }
.dn-days span, .dn-times span { text-align: center; padding: .45em 0; border-radius: 8px; background: #eef3ef; font-size: .85em; }
.dn-days .on, .dn-times .on { background: #23744f; color: #fff; }
.dn-trust { display: flex; gap: 1em; margin-top: 6%; }
.dn-trust span { background: #fff; border: 1px solid #dfe8e2; border-radius: 999px; padding: .4em 1em; font-size: .85em; }

/* Sections */
.section { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-tint { background: var(--tint); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card.visible:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.25); }
.card:hover::after { transform: scaleX(1); }
.card .num { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 36px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Scroll-driven transformation */
.morph { position: relative; height: 420vh; background: var(--dark); color: #f4f2ee; }
.morph em { color: var(--dark-muted); }
.morph .eyebrow { color: #8ea0ff; }
.morph-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.morph-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }
.morph-text h2 { margin-bottom: 36px; }
.morph-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.morph-steps li {
  display: flex; gap: 18px; padding: 14px 0; opacity: .35;
  transition: opacity .5s var(--ease);
}
.morph-steps li > span { font-family: var(--serif); font-size: 1.4rem; color: #8ea0ff; line-height: 1.2; }
.morph-steps p {
  margin: 0; color: var(--dark-muted); font-size: .95rem;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .6s var(--ease);
}
.morph-steps li.active { opacity: 1; }
.morph-steps li.active p { max-height: 6em; opacity: 1; margin-top: 6px; }
.morph-bar { height: 2px; background: #2a2a2d; margin-top: 24px; border-radius: 2px; overflow: hidden; }
.morph-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #8a5cff); transform-origin: left; transform: scaleX(0); }

.morph-frame {
  aspect-ratio: 16 / 10.5; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px #2a2a2d;
  container-type: inline-size;
  transition: transform .9s var(--ease);
}
.morph[data-stage="3"] .morph-frame { transform: scale(1.02); }
.morph-view { position: relative; flex: 1; overflow: hidden; }
.morph-view > * { position: absolute; inset: 0; }

/* Law — old */
.lw-old { background: #f5f0e1; color: #222; font-family: "Times New Roman", serif; font-size: clamp(6px, 1.15cqw, 13px); transition: filter .8s; }
.morph[data-stage="1"] .lw-old { filter: saturate(.6) brightness(.85); }
.lw-head { background: linear-gradient(#7a1f1f, #4a0d0d); color: #f3d98b; text-align: center; padding: 1em; border-bottom: 4px double #c9a64a; }
.lw-head b { display: block; font-size: 2.2em; letter-spacing: .15em; }
.lw-head span { font-style: italic; }
.lw-nav { background: #e8dfc4; text-align: center; padding: .4em; color: #00c; border-bottom: 1px solid #b9a56a; }
.lw-body { display: flex; gap: 1.2em; padding: 1.2em; }
.lw-body .old-img { width: 30%; height: 9em; flex-shrink: 0; }
.lw-body p { margin-bottom: .8em !important; text-align: justify; }
.lw-small { font-size: .8em; color: #777; }

/* Audit pins */
.lw-pins { pointer-events: none; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 12px 5px 5px;
  font: 600 clamp(9px, 1.25cqw, 14px) var(--sans); white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45), 0 0 0 3px rgba(255, 77, 77, .35);
  opacity: 0; transform: scale(.6) translateY(10px);
  transition: opacity .4s var(--ease), transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.pin b {
  display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%;
  background: #ff4d4d; color: #fff; font-size: .9em;
}
.morph[data-stage="1"] .pin { opacity: 1; transform: none; transition-delay: calc(var(--i) * 180ms + 150ms); }

/* Wireframe */
.lw-wire {
  background: #f1f3f7; padding: 3% 5%;
  background-image: linear-gradient(#e3e7ef 1px, transparent 1px), linear-gradient(90deg, #e3e7ef 1px, transparent 1px);
  background-size: 24px 24px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
}
.morph[data-stage="2"] .lw-wire, .morph[data-stage="3"] .lw-wire { clip-path: inset(0 0 0 0); }
.lw-wire i { display: block; height: 1.2cqw; min-height: 6px; background: #c9d0dd; border-radius: 6px; }
.w-nav { display: flex; gap: 3%; align-items: center; margin-bottom: 8%; }
.w-pill { width: 14% !important; height: 2.4cqw !important; border-radius: 999px !important; background: #9aa6bd !important; }
.w-pill.big { width: 35% !important; margin-top: 5%; }
.w-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; align-items: center; }
.w-hero i { height: 3.2cqw; margin-bottom: 4%; }
.w-img { aspect-ratio: 4 / 3; border: 2px dashed #9aa6bd; border-radius: 12px; background: linear-gradient(to top right, transparent 49.5%, #c9d0dd 50%, transparent 50.5%), linear-gradient(to top left, transparent 49.5%, #c9d0dd 50%, transparent 50.5%); }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: 6%; }
.w-cards i { height: 6cqw; border-radius: 10px; background: #dde2ea; border: 2px dashed #b3bccc; }
.w-label {
  position: absolute; right: 4%; bottom: 6%; background: var(--accent); color: #fff;
  font: 600 clamp(9px, 1.15cqw, 13px) var(--sans); padding: 5px 12px; border-radius: 999px; letter-spacing: .04em;
}

/* Law — new */
.lw-new { background: #f6f2ea; color: #12261f; padding: 3% 5%; opacity: 0; transition: opacity .6s var(--ease); }
.lw-new .new-nav b { font-size: 1.5em; }
.lw-new .new-nav span { color: #5d6b63; opacity: 1; }
.lw-new .new-nav i { background: #12261f; color: #f6f2ea; }
.lw-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6%; align-items: center; }
.lw-kicker { color: #9a7b3c; text-transform: uppercase; letter-spacing: .14em; font-size: .75em; font-weight: 600; margin-bottom: .8em !important; }
.lw-title { font-family: var(--serif); font-size: 3.4em; line-height: 1; margin-bottom: .5em !important; }
.lw-title em { color: #9a7b3c; }
.lw-btn { display: inline-block; background: #12261f; color: #fff; padding: .7em 1.5em; border-radius: 999px; }
.lw-img { aspect-ratio: 4 / 3; border-radius: 14px; background: radial-gradient(circle at 70% 30%, #e9d6a8 0 16%, transparent 17%), linear-gradient(160deg, #2c4a3e, #12261f); }
.lw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: 6%; }
.lw-cards div { background: #fff; border-radius: 10px; padding: .9em 1.1em; display: grid; border: 1px solid #e6dfd1; }
.lw-cards b { font-family: var(--serif); font-weight: 400; font-size: 1.3em; }
.lw-cards small { color: #5d6b63; font-size: .8em; }
.lw-new > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.morph[data-stage="3"] .lw-new { opacity: 1; }
.morph[data-stage="3"] .lw-new > * { opacity: 1; transform: none; }
.morph[data-stage="3"] .lw-new > :nth-child(1) { transition-delay: .15s; }
.morph[data-stage="3"] .lw-new > :nth-child(2) { transition-delay: .3s; }
.morph[data-stage="3"] .lw-new > :nth-child(3) { transition-delay: .45s; }

.scan {
  top: 0 !important; bottom: auto !important; height: 3px;
  background: var(--accent); box-shadow: 0 0 18px 4px rgba(43, 76, 255, .6);
  opacity: 0;
}
.scan.go { animation: scan 1s var(--ease) both; }
@keyframes scan {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; padding-top: 24px; }
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 150ms + 200ms);
}
.steps li.visible::before { transform: scaleX(1); }
.steps li > span { font-family: var(--serif); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 500;
  display: flex; justify-content: space-between; gap: 20px; transition: color .2s;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 14px 0 0; max-width: 640px; }
.faq details[open] p { animation: rise .5s var(--ease); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact h2 { margin-bottom: 24px; }
.contact-email { color: var(--muted); margin-top: 28px; }
.contact-email a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; display: grid; gap: 18px;
}
.form label { display: grid; gap: 8px; font-size: 0.88rem; font-weight: 500; }
.form input, .form textarea {
  font: 400 1rem var(--sans); color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 76, 255, .15);
}
.form .btn { margin-top: 6px; }

.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.visible { opacity: 1; transform: none; }

/* Mock layouts on small screens */
@container (max-width: 600px) {
  .mock { font-size: 9px; }
  .fx-old, .dn-old, .lw-old { font-size: 8px; }
  .new-hero, .pl-hero, .fx-hero, .dn-hero, .lw-hero { grid-template-columns: 1fr; }
  .new-photo, .pl-card, .fx-art, .dn-card, .lw-img, .new-nav span { display: none; }
  .new-row, .lw-cards { grid-template-columns: 1fr 1fr; }
  .new-row div:last-child, .lw-cards div:last-child { display: none; }
  .fx-sched { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pl-trust, .dn-trust { flex-wrap: wrap; gap: .6em 1.4em; }
  .old-side, .fx-nav, .pl-col2, .lw-body .old-img { display: none; }
  .pl-top { font-size: 1.5em; }
  .fx-banner { font-size: 1.8em; }
  .new-title, .dn-title, .lw-title, .fx-title { font-size: 2.6em; }
  .pl-title { font-size: 2.3em; }
}

/* Responsive */
@media (max-width: 980px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .morph-inner { grid-template-columns: 1fr; gap: 28px; }
  .morph-frame { order: -1; }
  .morph-text h2 { display: none; }
  .morph-steps li { display: none; padding: 0; }
  .morph-steps li.active { display: flex; }
  .info { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding: 72px 0 40px; }
  .marquee { margin-top: 56px; }
  .marquee li { font-size: 1.5rem; }
  .section { padding: 80px 0; }
  .showcase { padding: 48px 0 80px; }
  .section-head { margin-bottom: 44px; }
  .tabs { justify-content: flex-start; width: 100%; }
  .tab { padding: 9px 16px; }
  .stage { aspect-ratio: 4 / 3.8; border-radius: 14px; width: 100%; }
  .browser-bar { height: 26px; }
  .info ul { grid-template-columns: 1fr; gap: 10px; }
  .morph { height: 380vh; }
  .morph-frame { aspect-ratio: 4 / 3.6; border-radius: 14px; }
  .pin { padding: 3px 9px 3px 3px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .hero-in, .split .w > span { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Once revealed, cards react to hover without the entrance delay */
.card.reveal { transition: opacity .8s var(--ease), transform .5s var(--ease), box-shadow .4s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.card.reveal.done { transition-delay: 0s; }

/* Modern mocks fill the frame: nav on top, hero centred, details at the bottom */
.new-site, .pl-new, .fx-new, .dn-new, .lw-new { display: flex; flex-direction: column; padding: 3% 5% 4%; }
.new-site .new-nav, .pl-new .new-nav, .fx-new .new-nav, .dn-new .new-nav, .lw-new .new-nav { margin-bottom: 0; }
.new-hero, .pl-hero, .fx-hero, .dn-hero, .lw-hero { flex: 1; align-content: center; min-height: 0; }
.new-row, .pl-trust, .fx-sched, .dn-trust, .lw-cards { margin-top: 0; }
.new-photo { aspect-ratio: 4 / 3; max-height: 100%; }
.fx-art { width: 72%; justify-self: center; }
/* Old mocks: slightly larger so they read as full pages */
.fx-old { font-size: clamp(7px, 1.3cqw, 15px); }
.dn-old { font-size: clamp(7px, 1.35cqw, 15px); }
.pl-old { font-size: clamp(7px, 1.45cqw, 16px); }
.pl-body { padding: 1.4em; }
.pl-col p { line-height: 1.6; }
.old-site { font-size: clamp(7px, 1.4cqw, 16px); }
/* Leave room for the Before/After labels */
.stage .new-site, .stage .pl-new, .stage .fx-new, .stage .dn-new { padding-bottom: 64px; }
@media (max-width: 760px) { .stage .new-site, .stage .pl-new, .stage .fx-new, .stage .dn-new { padding-bottom: 52px; } }
.lw-old { font-size: clamp(7px, 1.6cqw, 15px); }
.lw-body .old-img { height: 12em; }
.lw-new { padding-bottom: 5%; }
.lw-new { font-size: clamp(8px, 1.7cqw, 17px); }
