/* Live Size · JMJ.CO — prototype styles */
:root {
  --paper: #FBF8F1;
  --ink: #1F2D33;
  --ink-soft: #4A5A61;
  --blue: #4D82FE;
  --blue-deep: #2F5FD6;
  --yellow: #FFD54F;
  --orange: #F4A25B;
  --bath: #9FD3E6;
  --green: #A8D58A;
  --peach: #F9DCC0;
  --bed: #F6D365;
  --red: #E5484D;
  --ok: #1F9D55;
  --night: #14204A;
  --grid: rgba(77, 130, 254, 0.07);
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(31, 45, 51, 0.35);
  --gutter: clamp(16px, 4vw, 56px);
  --f-display: "League Gothic", "Impact", sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }   /* slide-in animations must never widen the phone viewport */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; }
p { margin: 0; }

.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.hand { font-family: var(--f-hand); font-weight: 600; }
.hl {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.02em 0.18em 0;
  border-radius: 0.14em;
}
.section-head { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head h2 { font-size: clamp(56px, 9vw, 128px); margin-top: 10px; }
.section-head p { max-width: 560px; margin-top: 18px; color: var(--ink-soft); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--blue);
  --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: box-shadow .25s, background .25s, color .35s;      /* transform is driven by GSAP (magnetic + press) */
  will-change: transform;
  overflow: hidden; isolation: isolate;                          /* keeps the liquid fill and ripple inside */
  --fill: var(--ink); --fg-hover: #fff;
}
/* liquid fill: a circle grows from where the pointer entered */
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 12px; height: 12px; border-radius: 50%; background: var(--fill); transform: translate(-50%, -50%) scale(0); transition: transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.btn:hover::before { transform: translate(-50%, -50%) scale(46); transition-duration: .5s; }
.btn:hover { box-shadow: 7px 7px 0 var(--ink); color: var(--fg-hover); }
.btn:active { box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { --bg: #fff; --fg: var(--ink); --fill: var(--yellow); --fg-hover: var(--ink); }
.btn--wa { --bg: #25D366; --fg: var(--ink); --fill: var(--ink); --fg-hover: #25D366; }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); --fill: var(--ink); --fg-hover: var(--yellow); }
.btn svg { width: 20px; height: 20px; transition: transform .45s cubic-bezier(.2,1.6,.4,1); }
.btn:hover svg { transform: translateX(3px) rotate(-8deg) scale(1.1); }
.btn--wa:hover svg { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg) scale(1.15); } 40% { transform: rotate(12deg) scale(1.15); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
.ripple { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.55); pointer-events: none; }
.btn--ghost .ripple, .btn--yellow .ripple { background: rgba(31,45,51,.25); }
/* text roll: the label slides up and a copy rolls in from below */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: inline-block; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; transition: transform .5s cubic-bezier(.7,0,.2,1); }
a:hover > .roll > span, button:hover > .roll > span, a:hover > .roll::after, button:hover > .roll::after { transform: translateY(-100%); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  pointer-events: auto;
}
/* the background is 5 paper columns; on exit they slide up as a curtain, each trailing a brand-colour edge */
.loader__cols { position: absolute; inset: 0; display: flex; }
.loader__cols i { flex: 1; height: 100%; background: var(--paper); position: relative; margin-right: -1px; will-change: transform; }
.loader__cols i::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14vh; background: var(--blue); }
.loader__cols i:nth-child(2n)::after { background: var(--yellow); }
.loader__cols i:nth-child(3)::after { background: var(--ink); }
.loader__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(77,130,254,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(77,130,254,.12) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0; }
.loader__box { position: relative; width: min(520px, 80vw); }
.loader__logo { width: 100%; clip-path: inset(0 100% 0 0); transform-origin: top left; will-change: transform, clip-path; }
.loader__frame { position: absolute; left: -26px; top: -22px; width: calc(100% + 52px); height: calc(100% + 44px); max-width: none; overflow: visible; }
.loader__frame path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.loader__meta { position: absolute; left: -26px; right: -26px; top: calc(100% + 44px); display: flex; justify-content: space-between; align-items: baseline; }
.loader__status { font-family: var(--f-hand); font-weight: 700; font-size: 24px; color: var(--ink-soft); }
.loader__count { font-family: var(--f-display); font-size: 52px; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.loader__bar { position: absolute; left: -26px; right: -26px; top: calc(100% + 30px); height: 3px; border-radius: 3px; background: rgba(31,45,51,.1); overflow: hidden; }
.loader__bar b { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.no-js .loader, .reduced .loader { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background .35s, box-shadow .35s, transform .45s cubic-bezier(.2,.8,.2,1);
}
.nav.is-solid { background: rgba(251, 248, 241, 0.86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(31,45,51,.08); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 11px 18px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 900px) { .nav__links { display: none; } .nav__logo img { height: 28px; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  max-width: 1320px; margin: 0 auto;
  padding: 120px var(--gutter) 80px;
}
.hero h1 { font-size: clamp(60px, 7.6vw, 128px); }
.hero h1 .w { display: inline-block; }
.hero__sub { max-width: 500px; margin-top: 26px; font-size: 18px; color: var(--ink-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; overflow: visible; }
.sk-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sk-blue { stroke: var(--blue); }
.sk-red { stroke: var(--red); }
.sk-fill { stroke: none; opacity: .85; }
.sk-text { font-family: var(--f-hand); font-weight: 700; font-size: 30px; fill: var(--ink); }
.sk-text--blue { fill: var(--blue); }
.sk-text--red { fill: var(--red); }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.hero__scroll i { width: 2px; height: 40px; background: linear-gradient(var(--blue), transparent); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; text-align: left; }
  .hero__art { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero__scroll { display: none; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 2px solid var(--ink); background: var(--blue); color: #fff; padding: 14px 0; transform: rotate(-1.5deg); margin: 40px -20px; }
.marquee__track { display: flex; width: max-content; gap: 40px; font-family: var(--f-display); font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; white-space: nowrap; }
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__track em { font-style: normal; color: var(--yellow); }

/* ---------- evolution (3D) ---------- */
.evo { position: relative; height: 820vh; }
.evo__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* --hz = the horizon line in px, set every frame by the 3D scene */
.evo { --hz: 40vh; }
.evo__dusk {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    radial-gradient(30vmax 30vmax at 93% 7%, rgba(255, 240, 200, .14), transparent 70%),                 /* moon haze */
    linear-gradient(118deg, transparent 22%, rgba(150, 160, 230, .05) 34%, rgba(210, 200, 255, .11) 42%,
                    rgba(255, 230, 210, .08) 46%, rgba(150, 160, 230, .05) 54%, transparent 66%),          /* Milky Way */
    linear-gradient(180deg, #040919 0, #0a1435 calc(var(--hz) * .55), #1e3270 calc(var(--hz) - 30px),
                    #3a5196 var(--hz), #33505a calc(var(--hz) + 1px), #1F3D35 calc(var(--hz) + 90px), #1F3D35 100%);  /* sky → horizon haze → land */
}
.evo__stars {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--hz) - 120px), transparent calc(var(--hz) - 10px));
          mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--hz) - 120px), transparent calc(var(--hz) - 10px));
}
.evo__moon { position: absolute; right: 4.5%; top: 5%; width: clamp(64px, 6vw, 96px); aspect-ratio: 1; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 18px rgba(255, 236, 180, .55)) drop-shadow(0 0 60px rgba(255, 236, 180, .25)); transform: rotate(-18deg); }
.evo__moon svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .evo__moon { right: 5%; top: 64px; width: 52px; } }
.evo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.evo__labels { position: absolute; inset: 0; pointer-events: none; }
.evo__label--sm { font-size: clamp(13px, 1.1vw, 18px) !important; }
.evo__label { position: absolute; left: 0; top: 0; font-family: var(--f-hand); font-weight: 700; font-size: clamp(15px, 1.5vw, 24px); color: var(--ink); white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.evo__woof {
  position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none;
  padding: 4px 12px 2px; border-radius: 14px 14px 14px 4px;
  background: #fff; color: var(--ink); border: 2px solid var(--ink);
  font-family: var(--f-hand); font-weight: 700; font-size: 24px; white-space: nowrap;
  transition: opacity .12s;
}
.evo__meow { background: #FFD54F; border-radius: 14px 14px 4px 14px; }
.evo.is-night .evo__stage { cursor: crosshair; }
.evo__copy { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; width: min(440px, 38vw); z-index: 2; pointer-events: none; }
.evo__step { position: absolute; left: 0; top: 0; translate: 0 -50%; width: 100%; opacity: 0; }
.evo__step .pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .22em; color: var(--blue); }
.evo__step h2 { margin-top: 18px; font-size: clamp(52px, 6.4vw, 104px); }
.evo__step h2 .cap { display: inline; padding: 0 .12em; background: var(--blue); color: #fff; border-radius: 14px; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.08; }
.evo__step h2 .cap.hl { background: var(--yellow); color: var(--ink); }
.evo__step p { margin-top: 18px; font-size: 17px; color: var(--ink-soft); max-width: 380px; background: rgba(251,248,241,.8); border-radius: 12px; padding: 4px 0; }
.evo.is-night .evo__step p { color: #dfe7ff; background: transparent; }
.evo__progress { position: absolute; left: var(--gutter); bottom: 34px; display: flex; gap: 10px; z-index: 2; }
.evo__progress i { width: 34px; height: 6px; border-radius: 6px; background: rgba(31,45,51,.15); overflow: hidden; position: relative; }
.evo__progress i b { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.evo__hint { position: absolute; right: var(--gutter); bottom: 30px; font-family: var(--f-hand); font-size: 26px; color: var(--red); z-index: 2; }
.evo__fallback { position: absolute; inset: 0; display: none; place-items: center; padding: 40px; text-align: center; }
.evo.no-webgl .evo__fallback { display: grid; }
@media (max-width: 900px) {
  .evo { height: 720vh; }
  .evo__copy { top: 92px; translate: none; width: auto; right: var(--gutter); }
  .evo__step { translate: none; }
  .evo__step h2 { font-size: clamp(44px, 12vw, 72px); margin-top: 12px; }
  .evo__step p { font-size: 15px; margin-top: 10px; }
  .evo__hint { display: none; }
}

/* ---------- two worlds ---------- */
.worlds { padding: 140px 0 120px; }
.worlds__grid { max-width: 1200px; margin: 56px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; perspective: 1200px; }
.world {
  position: relative; padding: 38px 34px 34px;
  background: #fff; border: 2px solid var(--ink); border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  transform-style: preserve-3d; will-change: transform;
}
.world--build { background: var(--ink); color: #fff; box-shadow: 8px 8px 0 var(--blue); }
.world__tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: var(--blue); color: #fff; }
.world--build .world__tag { background: var(--yellow); color: var(--ink); }
.world h3 { margin-top: 18px; font-size: clamp(48px, 5.2vw, 76px); }
.world > p { margin-top: 12px; color: var(--ink-soft); max-width: 420px; }
.world--build > p { color: #c9d3d8; }
.world__icon { position: absolute; right: 24px; top: 24px; width: 110px; height: 110px; transform: translateZ(40px); }
.world__icon path, .world__icon rect, .world__icon circle { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.world ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 2px; }
.world li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1.5px dashed rgba(31,45,51,.25); font-weight: 700; }
.world--build li { border-color: rgba(255,255,255,.2); }
.world li span:last-child { font-family: var(--f-hand); font-size: 22px; font-weight: 700; color: var(--blue); }
.world--build li span:last-child { color: var(--yellow); }
@media (max-width: 900px) { .worlds__grid { grid-template-columns: 1fr; } .world__icon { width: 76px; height: 76px; } }

/* ---------- four decades (JMJ Constructions) ---------- */
.legacy { position: relative; overflow: hidden; padding: 150px 0 140px; background: var(--ink); color: #fff;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 60px 60px;
  border-block: 2px solid var(--ink); }
.legacy__bignum { position: absolute; right: -4vw; top: 40px; z-index: 0; font-family: var(--f-display); font-size: clamp(320px, 46vw, 760px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(255,213,79,.16); pointer-events: none; user-select: none; }
.legacy > :not(.legacy__bignum) { position: relative; z-index: 1; }
.legacy .section-head p { color: #c9d3d8; max-width: 640px; }
.legacy .section-head p + p { margin-top: 12px; }
.legacy .kicker { color: var(--yellow); }
.legacy .section-head h2 { font-size: clamp(60px, 9.5vw, 150px); }

.legacy__stats { max-width: 1200px; margin: 80px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { position: relative; padding: 10px 28px 18px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 2px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 8px, transparent 8px 14px); }
.stat dt { font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #c9d3d8; }
.stat dd { margin: 0; font-family: var(--f-display); font-size: clamp(76px, 9vw, 150px); line-height: .9; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat dd span { display: inline-block; }

.legacy__xp { max-width: 1200px; margin: 110px auto 0; padding: 0 var(--gutter); }
.legacy__xp-title { font-size: clamp(44px, 5.5vw, 80px); display: grid; gap: 10px; }
.legacy__xp-title .kicker { font-family: var(--f-body); font-size: 13px; }
.xp-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; perspective: 1200px; }
.xp { position: relative; min-height: 210px; padding: 20px 18px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  border: 2px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.04); cursor: default;
  transition: background .35s, border-color .35s, color .35s, box-shadow .35s; }
.xp:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); box-shadow: 6px 6px 0 var(--blue); }
.xp__n { font-family: var(--f-display); font-size: 26px; color: var(--yellow); transition: color .35s; }
.xp:hover .xp__n { color: var(--blue); }
.xp__icon { width: 64px; height: 64px; overflow: visible; }
.xp__icon path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.xp b { font-size: 15px; line-height: 1.3; font-weight: 800; }

.legacy__quote { position: relative; max-width: 1000px; margin: 110px auto 0; padding: 0 var(--gutter); text-align: center;
  font-family: var(--f-hand); font-weight: 700; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.15; color: #fff; }
.legacy__quote span { display: inline-block; }
.legacy__quote span:last-of-type { color: var(--yellow); }
.legacy__quote svg { display: block; width: min(560px, 80%); height: 30px; margin: 14px auto 0; overflow: visible; }
.legacy__quote svg path { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

@media (max-width: 1100px) { .xp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .legacy { padding: 110px 0 100px; }
  .legacy__stats { grid-template-columns: 1fr; gap: 6px; margin-top: 50px; }
  .stat + .stat::before { left: 28px; right: 28px; top: 0; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 14px); }
  .stat { padding-top: 22px; }
  .xp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .xp { min-height: 170px; padding: 16px 14px; }
  .xp__icon { width: 48px; height: 48px; }
  .xp b { font-size: 13.5px; }
}

.reels__follow { display: flex; justify-content: center; margin-top: 44px; padding: 0 var(--gutter); }

/* ---------- projects (horizontal) ---------- */
.projects { position: relative; }
.projects__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.projects__head { padding: 0 var(--gutter); display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.projects__head h2 { font-size: clamp(56px, 8vw, 120px); margin-top: 8px; }
.projects__count { font-family: var(--f-display); font-size: 40px; color: var(--blue); }
.projects__track { display: flex; gap: 28px; padding: 36px var(--gutter) 10px; width: max-content; will-change: transform; }
.proj { position: relative; width: min(620px, 82vw); flex: none; cursor: pointer; outline: none; }
.proj:focus-visible .proj__media { outline: 3px solid var(--yellow); outline-offset: 4px; }
.proj__media { position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; border: 2px solid var(--ink); background: var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: box-shadow .4s; }
.proj:hover .proj__media { box-shadow: 10px 10px 0 var(--blue); }
.proj__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; transition: filter .5s; }
.proj:hover .proj__media img { filter: saturate(1.15) brightness(1.05); }
.proj__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,74,.0) 55%, rgba(20,32,74,.55)); pointer-events: none; }
.proj__media .ph { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.proj__tag { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; border: 2px solid var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.proj__views { position: absolute; z-index: 2; right: 14px; top: 14px; font-family: var(--f-hand); font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.proj__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.proj__meta h3 { font-size: 36px; }
.proj__meta span { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-align: right; }
.proj--end { display: grid; place-items: center; text-align: center; aspect-ratio: 4/3; border: 2px dashed var(--ink); border-radius: 24px; padding: 30px; align-self: flex-start; }
.proj--end h3 { font-size: 56px; }

/* ---------- process ---------- */
.process { padding: 140px 0; }
.process__list { position: relative; max-width: 900px; margin: 60px auto 0; padding: 0 var(--gutter); list-style: none; }
.process__line { position: absolute; left: calc(var(--gutter) + 31px); top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: rgba(31,45,51,.12); }
.process__line b { position: absolute; inset: 0; border-radius: 4px; background: var(--blue); transform: scaleY(0); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 66px 1fr; gap: 26px; padding: 0 0 54px; }
.step__dot { position: relative; z-index: 1; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--ink); font-family: var(--f-display); font-size: 30px;
  transition: background .35s, color .35s, box-shadow .35s;      /* size/rotation are animated by GSAP only */
  backface-visibility: hidden; will-change: transform; }
.step.is-on .step__dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(77,130,254,.18); }
.step h3 { font-size: clamp(40px, 5vw, 64px); }
.step p { margin-top: 8px; color: var(--ink-soft); max-width: 560px; }
.step .note { display: inline-block; margin-top: 10px; font-family: var(--f-hand); font-size: 24px; color: var(--red); transform: rotate(-2deg); }

/* ---------- estimator ---------- */
.estimate { padding: 120px 0 140px; background: linear-gradient(180deg, transparent, rgba(77,130,254,.08) 30%, rgba(77,130,254,.08) 70%, transparent); }
.est { max-width: 1200px; margin: 56px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.est__panel { background: #fff; border: 2px solid var(--ink); border-radius: 28px; padding: 30px; box-shadow: 8px 8px 0 var(--ink); }
.field + .field { margin-top: 26px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.field__label output { font-family: var(--f-display); font-size: 34px; letter-spacing: 0; color: var(--blue); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; text-align: center; min-height: 56px; padding: 8px; border: 2px solid var(--ink); border-radius: 14px; font-weight: 700; font-size: 13px; line-height: 1.25; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.seg label small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-soft); }
.seg input:checked + label { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--blue) var(--fill, 30%), rgba(31,45,51,.12) var(--fill, 30%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: grab; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: grab; }
.range-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.checks { display: grid; gap: 10px; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; cursor: pointer; font-weight: 700; font-size: 14px; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.check span:last-child { font-weight: 500; font-size: 12px; color: var(--ink-soft); }

.est__panel .field { border: 0; padding: 0; margin: 0; min-width: 0; }
.est__panel .field + .field { margin-top: 26px; }
.field__label small { font-weight: 600; letter-spacing: .06em; text-transform: none; color: var(--ink-soft); font-size: 12px; }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* choice chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 13px; background: #fff; transition: background .2s, box-shadow .2s, transform .2s; }
.chips span::before { content: "+"; font-weight: 800; color: var(--blue); }
.chips input:checked + span { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); transform: translate(-1px, -1px); }
.chips input:checked + span::before { content: "✓"; color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
/* +/− steppers */
.stepper .field__label { margin-bottom: 10px; }
.stepper__ctl { display: flex; align-items: center; justify-content: space-between; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.stepper__ctl button { width: 52px; height: 52px; border: 0; background: #fff; font-size: 24px; font-weight: 800; cursor: pointer; color: var(--ink); transition: background .2s; }
.stepper__ctl button:hover:not(:disabled) { background: var(--yellow); }
.stepper__ctl button:disabled { color: rgba(31,45,51,.25); cursor: default; }
.stepper__ctl output { font-family: var(--f-display); font-size: 34px; color: var(--blue); display: inline-block; }
/* text inputs */
.text { width: 100%; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.text:focus { outline: none; box-shadow: 3px 3px 0 var(--blue); }
textarea.text { resize: vertical; min-height: 84px; }
select.text { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.text.is-missing { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.text.is-missing::placeholder { color: var(--red); }
.est__headline { font-family: var(--f-display); font-size: clamp(40px, 4vw, 58px); line-height: 1; margin-top: 10px; text-transform: uppercase; }
.est__rows b { text-align: right; font-weight: 600; }
.est__rows i { color: var(--yellow); font-style: normal; }
@media (max-width: 600px) { .seg--4 { grid-template-columns: repeat(2, 1fr); } .field--pair { grid-template-columns: 1fr; } }
.est__result { position: sticky; top: 96px; background: var(--ink); color: #fff; border-radius: 28px; padding: 30px; box-shadow: 8px 8px 0 var(--blue); overflow: hidden; }
.est__result .kicker { color: var(--yellow); }
.est__total { font-family: var(--f-display); font-size: clamp(64px, 7vw, 104px); line-height: 1; margin-top: 10px; }
.est__range { color: #c9d3d8; font-size: 14px; margin-top: 4px; }
.est__plan { margin: 22px 0; height: 170px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.05); }
.est__plan svg { height: 150px; width: auto; overflow: visible; }
.est__rows { display: grid; gap: 6px; font-size: 14px; }
.est__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.est__rows b { font-weight: 700; }
.est__advance { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,213,79,.12); border: 1.5px solid var(--yellow); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.est__advance strong { font-family: var(--f-display); font-size: 36px; font-weight: 400; color: var(--yellow); }
.est__ctas { display: grid; gap: 12px; margin-top: 18px; }
.est__ctas .btn { justify-content: center; box-shadow: 4px 4px 0 #000; border-color: #000; }
.est__fine { margin-top: 14px; font-size: 12px; color: #9fb0b8; }
.sample-badge { position: absolute; right: -40px; top: 22px; rotate: 35deg; background: var(--red); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .14em; padding: 6px 48px; text-transform: uppercase; }
@media (max-width: 900px) { .est { grid-template-columns: 1fr; } .est__result { position: relative; top: 0; } .seg label { font-size: 12px; } }

/* ---------- ABCD ---------- */
.abcd { padding: 150px var(--gutter); text-align: center; overflow: hidden; }
.abcd__blocks { display: flex; justify-content: center; gap: clamp(10px, 2vw, 24px); margin-top: 40px; }
.abcd__b { width: clamp(70px, 14vw, 190px); aspect-ratio: 1; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 26%; font-family: var(--f-display); font-size: clamp(52px, 10vw, 140px); line-height: 1; box-shadow: 5px 5px 0 var(--ink); }
.abcd__b:nth-child(1) { background: var(--bed); }
.abcd__b:nth-child(2) { background: var(--orange); }
.abcd__b:nth-child(3) { background: var(--bath); }
.abcd__b:nth-child(4) { background: var(--green); }
.abcd__line { position: relative; display: inline-block; margin-top: 40px; font-family: var(--f-display); font-size: clamp(56px, 10vw, 150px); text-transform: uppercase; line-height: .95; }
.abcd__line .w { display: inline-block; }
.abcd__line svg { position: absolute; left: -2%; right: -2%; bottom: -26px; width: 104%; height: 40px; overflow: visible; }
.abcd__line svg path { fill: none; stroke: var(--blue); stroke-width: 8; stroke-linecap: round; }
.abcd p { max-width: 560px; margin: 40px auto 0; color: var(--ink-soft); font-size: 17px; }

/* ---------- reels ---------- */
.reels { padding: 120px 0 160px; overflow: hidden; }
.reels__row { display: flex; justify-content: center; gap: clamp(16px, 4vw, 56px); margin-top: 70px; padding: 0 var(--gutter); perspective: 1400px; }
.phone { position: relative; width: clamp(200px, 24vw, 300px); aspect-ratio: 9 / 19.2; flex: none; padding: 10px; border-radius: 40px; background: var(--ink); box-shadow: 0 30px 60px -25px rgba(31,45,51,.6); transform-style: preserve-3d; cursor: pointer; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 32%; height: 18px; border-radius: 20px; background: #000; z-index: 2; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: #000; }
.phone__sound { position: absolute; bottom: 22px; right: 22px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.phone__title { position: absolute; left: 0; right: 0; bottom: -46px; text-align: center; font-family: var(--f-hand); font-size: 24px; font-weight: 700; }
@media (max-width: 900px) {
  .reels__row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 60px; -webkit-overflow-scrolling: touch; }
  .phone { width: 64vw; scroll-snap-align: center; }
}

/* ---------- CTA + footer ---------- */
.cta { position: relative; padding: 160px var(--gutter) 140px; text-align: center; background: var(--blue); color: #fff; border-top: 2px solid var(--ink); overflow: hidden; }
.cta h2 { font-size: clamp(72px, 13vw, 210px); }
.cta h2 .hl { color: var(--ink); }
.cta p { max-width: 520px; margin: 24px auto 0; font-size: 18px; color: #e6edff; }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.visit { position: relative; z-index: 1; font-style: normal; max-width: 760px; margin: 64px auto 0; padding: 22px 26px; display: flex; align-items: center; gap: 20px; text-align: left;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); }
.visit__pin { flex: none; width: 54px; height: 54px; }
.visit__pin path { fill: var(--yellow); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.visit__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.visit__kicker { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.visit__text b { font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1; text-transform: uppercase; }
.visit__addr { font-size: 15px; color: #4a5a61; }
.visit__mail { justify-self: start; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: none; padding: 4px 0; }
.visit__mail:hover { text-decoration: underline; }
.visit__btns { display: grid; gap: 10px; justify-items: center; }
.visit__btns .btn { padding: 14px 22px; font-size: 13px; }
.visit__link { font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; padding: 6px 2px; }
.visit__link:hover { text-decoration: underline; }
.footer__addr { color: inherit; font-weight: 500 !important; }
@media (max-width: 700px) {
  .visit { flex-direction: column; text-align: center; gap: 14px; padding: 24px 18px; margin-top: 48px; }
  .visit__text { justify-items: center; }
  .visit__mail { justify-self: center; }
  .footer__links a, .footer__addr { padding: 8px 0; }
}
.cta__doodle { position: absolute; inset: 0; pointer-events: none; opacity: .18; }
.cta__doodle path { fill: none; stroke: #fff; stroke-width: 2; }
.footer { background: var(--ink); color: #c9d3d8; padding: 56px var(--gutter) 40px; }
.footer__in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer__logo { background: #fff; padding: 12px 16px; border-radius: 14px; }
.footer__logo img { height: 40px; width: auto; }
.footer a { text-decoration: none; font-weight: 700; }
.footer a:hover { color: var(--yellow); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.footer__fine { max-width: 1200px; margin: 30px auto 0; font-size: 12px; color: #7f9098; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- toast / modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(20,32,74,.5); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__card { width: min(460px, 100%); background: #fff; border: 2px solid var(--ink); border-radius: 26px; padding: 30px; box-shadow: 8px 8px 0 var(--ink); transform: translateY(20px) scale(.96); transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.modal.is-open .modal__card { transform: none; }
.modal__card h3 { font-size: 48px; }
.modal__card p { margin-top: 10px; color: var(--ink-soft); }
.modal__card .btn { margin-top: 20px; }

/* ---------- pencil cursor trail ---------- */
.trail { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* ===================== web-motion system (js/fx.js) ===================== */
/* entrance reveal: words rise from inside masks */
.rv-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .1em; margin: -.08em -.02em -.1em; }
.rv-i { display: inline-block; will-change: transform; transform-origin: 0 100%; }
.hl .rv-w { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }

/* parallax doodles */
.has-doodles { position: relative; }
.has-doodles > :not(.doodles) { position: relative; z-index: 1; }
.has-doodles > .est > .est__result { position: sticky; }
.doodles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.doodle { position: absolute; opacity: .55; will-change: transform; }
.doodle svg { width: 100%; height: 100%; overflow: visible; }
.doodle path { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
@media (max-width: 600px) { .doodles { display: none; } }

/* cards: glare that follows the pointer */
.fx-card { transform-style: preserve-3d; will-change: transform; }
.fx-card:not(.est__result):not(.world) { position: relative; }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.45), rgba(255,255,255,0) 45%); mix-blend-mode: soft-light; }
.world--build .glare, .est__result .glare { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), rgba(255,255,255,0) 50%); mix-blend-mode: normal; }
.fx-card:hover .glare { opacity: 1; }
.world { transition: box-shadow .45s; }
.world:hover { box-shadow: 14px 14px 0 var(--ink); }
.world--build:hover { box-shadow: 14px 14px 0 var(--blue); }
.proj__media .ph { transition: transform .5s cubic-bezier(.2,1.4,.4,1), background .3s; }
.proj:hover .proj__media .ph { transform: translateY(-6px) scale(1.06); background: var(--yellow); }

/* project viewer (opens from a gallery card) */
.pv { position: fixed; inset: 0; z-index: 90; display: none; grid-template-columns: 1fr min(420px, 34vw); background: var(--ink); }
.pv.is-open { display: grid; }
.pv-open, .pv-open body { overflow: hidden; }
.pv__stage { position: relative; overflow: hidden; background: #0e1620; touch-action: pan-y; }
.pv__imgs { position: absolute; inset: 0; }
.pv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: transform, opacity; }
.pv__nav { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .35s cubic-bezier(.2,1.6,.4,1), background .25s; }
.pv__nav:hover { background: var(--yellow); transform: scale(1.08); }
.pv__prev { left: 20px; } .pv__next { right: 20px; }
.pv__cap { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); border: 2px solid var(--ink); }
.pv__num { font-family: var(--f-display); font-size: 22px; color: var(--blue); }
.pv__caption { font-family: var(--f-hand); font-weight: 700; font-size: 22px; }
.pv__info { position: relative; overflow-y: auto; padding: 70px 32px 32px; background: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; border-left: 2px solid var(--ink); }
.pv__close { position: absolute; right: 20px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .4s cubic-bezier(.2,1.6,.4,1), background .25s; }
.pv__close:hover { background: var(--yellow); transform: rotate(90deg); }
.pv__title { margin-top: 10px; font-size: clamp(44px, 4vw, 64px); }
.pv__place { margin-top: 6px; font-family: var(--f-hand); font-weight: 700; font-size: 26px; color: var(--blue); }
.pv__desc { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; }
.pv__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pv__list li { position: relative; padding-left: 28px; font-weight: 600; font-size: 14px; }
.pv__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pv__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 24px 0; }
.pv__thumbs button { padding: 0; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--ink); opacity: .6; transition: opacity .25s, border-color .25s, transform .35s cubic-bezier(.2,1.6,.4,1); }
.pv__thumbs button:hover { opacity: 1; transform: translateY(-3px); }
.pv__thumbs button.is-on { opacity: 1; border-color: var(--blue); }
.pv__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv__cta { width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .pv { grid-template-columns: 1fr; grid-template-rows: 46svh 1fr; }
  .pv__info { border-left: 0; border-top: 2px solid var(--ink); padding: 26px 20px 30px; }
  .pv__close { position: fixed; top: 12px; right: 12px; z-index: 3; }
  .pv__nav { width: 44px; height: 44px; margin-top: -22px; }
  .pv__prev { left: 10px; } .pv__next { right: 10px; }
  .pv__cap { left: 10px; bottom: 10px; }
}

/* nav: active-section pill + logo wiggle */
.nav__links { position: relative; }
.nav__links li { position: relative; z-index: 1; }
.nav__links a.is-active { color: var(--blue); }
.nav__pill { position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; width: 0; border-radius: 999px; background: rgba(77,130,254,.12); border: 1.5px solid rgba(77,130,254,.35); opacity: 0; pointer-events: none; z-index: 0; }
.nav__logo img { transition: transform .5s cubic-bezier(.2,1.6,.4,1); }
.nav__logo:hover img { transform: rotate(-3deg) scale(1.06); }
.footer__links a { position: relative; }
.footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* scroll progress, back to top, toast */
.scrollbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.scrollbar b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), #7aa2ff 60%, var(--yellow)); transform: scaleX(0); transform-origin: left; }
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .35s, transform .45s cubic-bezier(.2,1.4,.4,1), box-shadow .25s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { box-shadow: 5px 5px 0 var(--ink); }
.totop svg { width: 100%; height: 100%; }
.totop circle { fill: none; stroke-width: 3; }
.totop__track { stroke: rgba(31,45,51,.12); }
.totop__ring { stroke: var(--blue); stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; stroke-linecap: round; }
.totop path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.2,1.6,.4,1); }
.totop:hover path { transform: translateY(-3px); }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 96; translate: -50% 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 #25D366; opacity: 0; pointer-events: none; white-space: nowrap; }

/* form micro-interactions */
.range-bubble { position: absolute; top: 18px; transform: translate(-50%, -100%) scale(.6); padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--f-display); font-size: 18px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s cubic-bezier(.2,1.6,.4,1); }
.range-bubble.is-on { opacity: 1; transform: translate(-50%, -140%) scale(1); }
.range::-webkit-slider-thumb { transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.range:active::-webkit-slider-thumb { transform: scale(1.3); }
.text.is-ok { border-color: var(--ok); padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='%231F9D55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 20px; }
.seg label:hover, .chips span:hover { transform: translateY(-2px); }
.stepper__ctl button:active:not(:disabled) { transform: scale(.88); }
.stepper__ctl button { transition: background .2s, transform .15s; }

/* custom cursor: ink dot + blue ring (native cursor stays visible) */
.cursor { position: fixed; left: 0; top: 0; z-index: 97; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; pointer-events: none; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); }
.cursor__ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 999px; border: 2px solid var(--blue); display: grid; place-items: center;
  transition: width .35s cubic-bezier(.2,1.2,.4,1), height .35s cubic-bezier(.2,1.2,.4,1), margin .35s cubic-bezier(.2,1.2,.4,1), background .3s, border-color .3s, border-radius .3s; }
.cursor__label { font-family: var(--f-body); font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(77,130,254,.12); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--blue); border-color: var(--ink); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; background: var(--blue); }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
html:not(.has-cursor) .cursor { display: none; }
.evo.is-night ~ * .cursor__ring { border-color: var(--yellow); }

.fx-reduced .doodles, .fx-reduced .cursor { display: none; }

/* reveal helpers */
.rv { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
