/* =========================================================
   KS Digital website
   Layout: Autonix-style 3-column hero with the KS mark floating
   in a particle cloud, then an Apple-style pinned phone story.
   Light theme only (by request).
   ========================================================= */

@font-face { font-family: "Kantumruy Pro"; src: url("../assets/fonts/KantumruyPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kantumruy Pro"; src: url("../assets/fonts/KantumruyPro-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kantumruy Pro"; src: url("../assets/fonts/KantumruyPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kantumruy Pro"; src: url("../assets/fonts/KantumruyPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* Color */
  --paper: #F5F3EF;      /* page background, warm off-white */
  --white: #FFFFFF;      /* cards */
  --ink: #1F1611;        /* main text, near-black brown */
  --brown: #4E301B;      /* KS brand brown */
  --cream: #FBDFA2;      /* KS brand cream, used for glow */
  --amber: #E07B2C;      /* boost accent */
  --muted: #7A6E66;      /* secondary text */
  --line: #E6E0D8;       /* hairlines */
  --fb: #1877F2;         /* Facebook blue, only inside the phone */

  /* Type */
  --font: "Kantumruy Pro", "Helvetica Neue", Arial, sans-serif;
  --t-hero: clamp(2.4rem, 4.6vw, 4.1rem);
  --t-h2: clamp(2rem, 4.2vw, 3.6rem);
  --t-num: clamp(4.5rem, 10vw, 9rem);
  --t-body: 1.0625rem;
  --t-small: .8125rem;

  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(78, 48, 27, .28), 0 2px 6px rgba(31, 22, 17, .05);
  --nav-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  display: inline-block;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: 0 10px 24px -10px rgba(31,22,17,.55); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--cream { background: var(--cream); color: var(--brown); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--big { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--arrow { padding-right: .45rem; }
.btn__dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber); color: var(--white);
  transition: transform .3s ease;
}
.btn--arrow:hover .btn__dot { transform: rotate(-45deg); }

/* ---------- Progress meter ---------- */
.meter { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 70; }
.meter__fill { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brown), var(--amber)); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(245, 243, 239, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav__inner {
  max-width: 1200px; margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 10px; }
.nav__logo { justify-self: start; display: block; }
.nav__logo img { height: 42px; width: auto; }
.nav__logo img { transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transform-origin: 0 50%; }
.nav__logo img.is-waiting { opacity: 0; transform: translateX(-14px) scale(.8); }
/* big hero logo steps back as the menu-bar logo takes over */
.hero__center { transition: opacity .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.logo-docked .hero__center { opacity: 0; transform: translateY(-24px) scale(.88); }
.fly-logo { display: none !important; } .fly-logo-unused { position: fixed; left: 0; top: 0; z-index: 55; display: none; pointer-events: none; margin: 0; max-width: none; transform-origin: 0 0; will-change: transform; }
.nav__cta { justify-self: end; box-shadow: none; padding: .55rem 1.1rem; font-size: .85rem; }
.nav__cta:hover { transform: none; background: var(--brown); }
.nav__links { display: flex; gap: 2rem; font-size: .9rem; color: var(--muted); }
.nav__links a { text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: 2rem 2.5rem; overflow-x: clip; overflow-y: visible; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.05fr) 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: min(640px, calc(100svh - var(--nav-h) - 120px));
}
.hero__left, .hero__right { min-width: 0; position: relative; z-index: 2; }
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem .3rem .3rem;
}
.tag b { background: var(--amber); color: var(--white); border-radius: 999px; padding: .1rem .5rem; letter-spacing: .05em; }
.hero__title { font-size: var(--t-hero); margin-block: 1.1rem 1.1rem; }
.hero__lead { color: var(--muted); max-width: 30ch; margin-bottom: 1.8rem; }
.trust { display: flex; align-items: center; gap: .9rem; margin-top: 3rem; font-size: var(--t-small); color: var(--muted); line-height: 1.4; }
.trust b { color: var(--brown); font-size: 1.15rem; }
.trust p { font-size: .95rem; line-height: 1.35; }
.trust__faces { display: flex; }
.trust__faces img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--paper); object-fit: cover; }
.trust__faces img + img { margin-left: -12px; }

.hero__center { position: relative; aspect-ratio: 1 / 1; max-width: 100%; display: grid; place-items: center; }
.hero__canvas { position: absolute; inset: -12% -18%; width: 136%; height: 124%; pointer-events: none; }
.hero__halo {
  position: absolute; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 223, 162, .85) 0%, rgba(251, 223, 162, .35) 40%, rgba(245, 243, 239, 0) 72%);
}
.hero__mark { position: relative; width: 92%; height: auto; will-change: transform; }

.hero__right { display: grid; gap: 1.4rem; justify-items: end; }
.float-card {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  padding: .9rem 1rem; width: min(100%, 300px);
}
.float-card--list { padding-bottom: .6rem; }
.float-card__head { display: flex; gap: .75rem; align-items: center; }
.float-card__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brown); box-shadow: inset 0 0 0 1px rgba(251, 223, 162, .18); display: grid; place-items: center; flex: none; }
.float-card__icon img { filter: brightness(0) invert(91%) sepia(23%) saturate(733%) hue-rotate(327deg) brightness(102%) contrast(97%); width: 18px; height: auto; }  /* KS cream #FBDFA2 */
.float-card small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }
.float-card strong { font-size: .92rem; font-weight: 600; display: block; line-height: 1.3; }
.float-card__queue { list-style: none; margin: .6rem 0 0; padding: 0 0 0 50px; font-size: .8rem; color: var(--muted); display: grid; gap: .25rem; }
.float-card__queue li:nth-child(3) { opacity: .55; }
.float-card__queue li:nth-child(4) { opacity: .25; }
.float-card--stat { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .2rem 1rem; }
.float-card--stat strong { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; grid-row: span 2; align-self: center; }
.float-card--stat em { font-style: normal; font-size: .72rem; color: var(--amber); font-weight: 600; }
.hero__slogan { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; text-align: right; }

.strip { margin-top: 2.2rem; text-align: center; }
.strip__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.strip__list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 920px;
  display: flex; flex-wrap: wrap; justify-content: center;
  background: var(--white); border-radius: 14px; box-shadow: 0 1px 0 var(--line);
}
.strip__list li { flex: 1 1 140px; padding: .9rem .6rem; font-size: .85rem; font-weight: 600; border-right: 1px solid var(--line); }
.strip__list li:last-child { border-right: 0; }

/* ---------- PHONE (shared) — modelled on a real iPhone ---------- */
.phone {
  --bezel: 9px; --metal: 3px; --r: 50px;
  position: relative; display: block;
  width: min(300px, 72vw);
  border-radius: var(--r); padding: var(--metal);
  /* titanium edge */
  background: linear-gradient(140deg, #3b3633 0%, #1c1917 35%, #26221f 65%, #3f3a36 100%);
  box-shadow:
    0 60px 90px -35px rgba(31, 22, 17, .55),
    0 18px 30px -18px rgba(31, 22, 17, .35),
    inset 0 0 0 .5px rgba(255,255,255,.08);
  border: 0;
}
/* side buttons: action + volume on the left, power on the right */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #1c1917, #3b3633);
}
.phone::before {
  left: -2px; top: 17%; height: 7%;
  box-shadow: 0 calc(var(--h, 1) * 0px) 0 0 transparent;
  background:
    linear-gradient(#2e2a27, #2e2a27) 0 0 / 100% 38% no-repeat,
    linear-gradient(#2e2a27, #2e2a27) 0 100% / 100% 0 no-repeat;
}
.phone::after { right: -2px; top: 25%; height: 13%; background: linear-gradient(270deg, #1c1917, #3b3633); }
.phone__vol { position: absolute; left: -2px; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #1c1917, #3b3633); }
.phone__vol--up { top: 26%; height: 9%; }
.phone__vol--down { top: 37.5%; height: 9%; }

.phone__screen {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1260 / 2736;
  border-radius: calc(var(--r) - var(--metal));
  border: var(--bezel) solid #050403;
  overflow: hidden; background: #000;
  isolation: isolate;
}
/* Dynamic Island */
.phone__screen::after {
  content: ""; position: absolute; z-index: 6; left: 50%; top: 2.1%; translate: -50% 0;
  width: 31%; height: 3.6%; border-radius: 99px; background: #000;
  box-shadow: inset -10px 0 0 -6px #0b0f1a;
}
/* glass reflection */
.phone__screen::before {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%);
}
/* ---------- STORY ---------- */
.story { position: relative; }
.story__stage {
  position: relative; min-height: 640px; overflow-x: clip; overflow-y: visible;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding-block: 5rem;
  max-width: 1200px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.story__word {
  position: absolute; inset: 50% 0 auto; transform: translateY(-50%);
  text-align: center; font-weight: 700; letter-spacing: -.06em; line-height: 1;
  font-size: clamp(7rem, 26vw, 22rem); color: var(--brown); opacity: .07;
  white-space: nowrap; pointer-events: none;
}
.story__glow {
  position: absolute; left: 75%; top: 50%; width: 620px; height: 620px; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,123,44,.55) 0%, rgba(251,223,162,.5) 35%, rgba(245,243,239,0) 68%);
  opacity: 0; transform: scale(.6); pointer-events: none;
}
.story__copy { position: relative; z-index: 2; min-height: 360px; min-width: 0; }
.story__step { position: absolute; inset: 0 auto auto 0; max-width: 460px; opacity: 0; visibility: hidden; }
.story__step.is-active { opacity: 1; visibility: visible; }
.story__num {
  font-size: var(--t-num); font-weight: 700; letter-spacing: -.05em; line-height: .9;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.story__num i { font-style: normal; color: var(--amber); }
.story__step h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-block: 1rem .8rem; }
.story__step p:not(.story__num) { color: var(--muted); max-width: 36ch; }
.story__note { position: absolute; top: 380px; left: 0; font-size: .72rem; color: var(--muted); opacity: .8; }
.story__phone { justify-self: center; z-index: 2; }
.story__phone.cover__device { width: min(390px, 40vw); }
.story__phone .cover__screen { position: relative; display: block; border: 0; aspect-ratio: 7 / 10; border-radius: 9px 50px 50px 9px; background: #000; overflow: hidden; }
.story__phone .cover__screen::after { display: none; }

/* Facebook mock inside phone */
.fb { position: absolute; inset: 0; background: #F0F2F5; font-size: 12px; line-height: 1.35; color: #050505; }
.fb__bar { display: flex; align-items: center; justify-content: space-between; padding: 44px 14px 10px; background: var(--white); }
.fb__logo { width: 26px; height: 26px; border-radius: 50%; background: var(--fb); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.fb__pill { width: 90px; height: 22px; border-radius: 11px; background: #E4E6EB; }
.fb__post { background: var(--white); margin-top: 8px; padding-top: 10px; }
.fb__head { display: flex; gap: 8px; align-items: center; padding: 0 12px; }
.fb__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brown); color: var(--cream); display: grid; place-items: center; font-weight: 700; }
.fb__head small { display: block; color: #65676B; font-size: 10.5px; }
.fb__sponsored { display: none; font-weight: 600; color: var(--fb); }
.is-boosted .fb__sponsored { display: inline; }
.fb__text { padding: 8px 12px; }
.fb__img {
  aspect-ratio: 1 / .9; position: relative;
  background: linear-gradient(160deg, #F7D9A8 0%, #E9A86A 55%, #C46F32 100%);
  display: grid; place-items: center;
}
.fb__bag { width: 34%; aspect-ratio: .85; background: var(--white); border-radius: 6px 6px 12px 12px; position: relative; box-shadow: 0 14px 30px rgba(78,48,27,.3); }
.fb__bag::before { content: ""; position: absolute; left: 25%; right: 25%; top: -22%; height: 34%; border: 4px solid var(--white); border-bottom: 0; border-radius: 40px 40px 0 0; }
.fb__bag::after { content: "KS"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--brown); font-size: 15px; }
.fb__actions { display: flex; justify-content: space-around; padding: 9px 4px; color: #65676B; font-weight: 600; font-size: 11px; border-top: 1px solid #E4E6EB; }
.fb__insight { margin: 8px; background: var(--white); border-radius: 10px; padding: 9px 12px; display: grid; gap: 6px; }
.fb__insight > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.fb__insight small { color: #65676B; }
.fb__insight b { font-size: 16px; font-variant-numeric: tabular-nums; }
.fb__bar-track { height: 6px; border-radius: 3px; background: #E4E6EB; overflow: hidden; }
.fb__bar-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--fb), var(--amber)); transform-origin: 0 50%; transform: scaleX(.03); }
.fb__toasts { position: absolute; left: 8px; right: 8px; top: 64px; display: grid; gap: 6px; }
.toast {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,.96); border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  opacity: 0; transform: translateY(-14px) scale(.96);
}
.toast__dot { width: 26px; height: 26px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #00B2FF, #006AFF); }
.toast b { display: block; font-size: 11.5px; }
.toast small { font-size: 11px; color: #65676B; }
.phone__hearts { position: absolute; inset: 0; pointer-events: none; }
.heart { position: absolute; bottom: 30%; left: 50%; font-size: 20px; line-height: 1; }

/* ---------- WORK ---------- */
.work { position: relative; }
.work__stage {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem;
  padding-block: 5rem 6rem;
}
.work__copy { min-width: 0; }
.work__copy h2 { font-size: var(--t-h2); margin-block: .6rem 1rem; }
.work__copy > p { color: var(--muted); max-width: 40ch; }
.work__tiles { display: grid; gap: .55rem; margin-top: 2rem; max-width: 460px; }
.tile {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .9rem;
  text-align: left; cursor: pointer;
  background: var(--white); border: 1.5px solid transparent; border-radius: 14px; padding: .7rem .9rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.tile img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tile b { display: block; font-size: .95rem; line-height: 1.2; }
.tile small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.25; margin-top: .1rem; }
.tile em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); }
.tile:hover { transform: translateX(4px); }
.tile.is-active { border-color: var(--ink); box-shadow: var(--shadow); }
.tile.is-active em { color: var(--amber); }
.work__phone { cursor: zoom-in; }
/* Folded phone, cover screen: wide display, hinge on the left, camera top-right */
.cover { position: relative; justify-self: center; width: min(400px, 86vw); }
.cover__device {
  position: relative; display: block; width: 100%; margin: 0; border: 0; font: inherit;
  padding: 8px 8px 8px 17px; border-radius: 16px 58px 58px 16px;
  background: linear-gradient(160deg, #3b3633, #1c1917 45%, #2b2724);
  box-shadow: 0 50px 80px -40px rgba(31, 22, 17, .5), inset 0 0 0 1px rgba(255,255,255,.06);
}
.cover__hinge {
  position: absolute; left: 4px; top: 5%; bottom: 5%; width: 8px; border-radius: 5px;
  background: linear-gradient(90deg, #141110, #4a4440 50%, #141110);
}
.cover .cover__screen { border: 0; aspect-ratio: 7 / 10; border-radius: 9px 50px 50px 9px; background: #000; overflow: hidden; }
.cover .cover__screen::after { display: none; }
.cover__cam { position: absolute; z-index: 6; top: 3.6%; right: 7%; width: 13px; height: 13px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.cover .work__zoom { bottom: -2.2rem; }

/* Open foldable phone: two screens side by side with a soft crease, slightly folded toward you */
.fold {
  position: relative; justify-self: center; display: flex;
  width: min(540px, 92vw); perspective: 1600px;
}
.fold__half {
  position: relative; flex: 1; min-width: 0; display: block; margin: 0; border: 0; font: inherit;
  padding: 7px; background: linear-gradient(160deg, #3b3633, #1c1917 45%, #2b2724);
  box-shadow: 0 50px 80px -40px rgba(31, 22, 17, .5);
}
.fold__half--l { border-radius: 40px 6px 6px 40px; padding-right: 1px; transform: rotateY(9deg); transform-origin: 100% 50%; }
.fold__half--r { border-radius: 6px 40px 40px 6px; padding-left: 1px; transform: rotateY(-9deg); transform-origin: 0 50%; }
.fold .fold__screen { border: 0; aspect-ratio: 1260 / 2736; background: #000; overflow: hidden; }
.fold__half--l .fold__screen { border-radius: 34px 3px 3px 34px; }
.fold__half--r .fold__screen { border-radius: 3px 34px 34px 3px; }
.fold .fold__screen::after { display: none; }                 /* no Dynamic Island on the inner screen */
.fold__cam { position: absolute; z-index: 6; top: 2.4%; right: 9%; width: 9px; height: 9px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
/* the crease: a soft shadow down the middle */
.fold::after {
  content: ""; position: absolute; z-index: 5; top: 7px; bottom: 7px; left: 50%; width: 22px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.22) 45%, rgba(255,255,255,.12) 52%, rgba(0,0,0,.18) 58%, rgba(0,0,0,0));
  pointer-events: none;
}
.fold__half--l .back-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .8s ease; }
.fold__half--l .back-shot.is-active { opacity: 1; }
.fold .work__zoom { bottom: -2.2rem; }
.work__phone .shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0;
  opacity: 0; transform: scale(1.05); z-index: 1; backface-visibility: hidden; will-change: opacity, transform;
  /* the old screenshot waits a moment, so the new one fades in over it (no flash of black) */
  transition: opacity .45s ease .4s, transform 0s linear .85s;
}
.work__phone .shot.is-active {
  opacity: 1; transform: scale(1); z-index: 2;
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform 1.4s cubic-bezier(.2, .8, .2, 1);
}
.work__zoom {
  position: absolute; left: 50%; bottom: -2.4rem; z-index: 6; translate: -50% 0;
  font-size: .75rem; color: var(--muted); white-space: nowrap;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31, 22, 17, .86);   /* no blur: keeps the open/close animation smooth */
  display: grid; place-items: center;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
}
.lightbox[hidden] { display: none; }
.lightbox__img { height: min(calc(100svh - 16px), calc((100vw - 16px) * 2736 / 1260)); width: auto; aspect-ratio: 1260 / 2736; object-fit: cover; will-change: transform; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); font-size: 1.6rem; line-height: 1;
  z-index: 2; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: var(--t-h2); margin-block: .6rem 1rem; }
.section-head p { color: var(--muted); }

/* ---------- PRICING ---------- */
.pricing { padding-block: 7rem; position: relative; overflow-x: clip; overflow-y: visible; isolation: isolate; }
/* Animated background: two soft glows drifting slowly behind the cards */
.pricing::before, .pricing::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  width: 620px; height: 620px; will-change: transform;
}
.pricing::before {
  left: 8%; top: 20%;
  background: radial-gradient(circle, rgba(251, 223, 162, .85) 0%, rgba(251, 223, 162, 0) 65%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.pricing::after {
  right: 6%; bottom: 14%;
  background: radial-gradient(circle, rgba(224, 123, 44, .28) 0%, rgba(224, 123, 44, 0) 65%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, 6vh) scale(1.15); } 100% { transform: translate(30vw, -4vh) scale(.95); } }
@keyframes drift-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20vw, -10vh) scale(1.2); } 100% { transform: translate(-34vw, 4vh) scale(1); } }
/* gentle light sweep across each card */
.plan { overflow: hidden; }
.plan::after {
  content: ""; position: absolute; inset: -50% auto -50% 0; width: 40%; pointer-events: none; will-change: transform;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-150%) rotate(12deg); animation: sweep 6s ease-in-out infinite;
}
.plan--top::after { background: linear-gradient(100deg, rgba(251,223,162,0) 0%, rgba(251,223,162,.16) 50%, rgba(251,223,162,0) 100%); animation-delay: 3s; }
@keyframes sweep { 0%, 55% { transform: translateX(-150%) rotate(12deg); } 100% { transform: translateX(330%) rotate(12deg); } }
/* Laptop that displays the price cards */
.laptop { position: relative; max-width: 780px; margin: 0 auto; perspective: 2000px; }
@media (min-width: 761px) {
  .laptop__display { padding: 3rem 1.7rem 2rem; }
  .laptop .plans { gap: 1rem; }
  .laptop .plan { padding: 1.6rem 1.4rem; border-radius: 20px; }
  .laptop .plan__badge { top: 1.5rem; right: 1.4rem; }
  .laptop .price__num { font-size: 3.3rem; }
  .laptop .plan h3 { font-size: 1.4rem; }
}
.laptop__screen {
  position: relative; background: #000; border-radius: 22px 22px 6px 6px; padding: 8px 8px 12px;
  box-shadow: inset 0 0 0 1.5px #3a3532, inset 0 0 0 3px #0b0a09, 0 40px 80px -40px rgba(0, 0, 0, .55);
  transform-origin: 50% 100%;
}
.laptop__screen::before {      /* Dynamic Island (camera) on the OLED screen */
  content: ""; position: absolute; z-index: 4; top: 15px; left: 50%; width: 112px; height: 24px; transform: translateX(-50%);
  border-radius: 999px; background: #000; box-shadow: inset 8px 0 0 -4px #0d1622;
}
.laptop__display {
  position: relative; overflow: hidden; border-radius: 15px 15px 3px 3px; padding: 3.4rem 2.2rem 2.6rem; touch-action: manipulation;
  background: radial-gradient(120% 90% at 20% 0%, #FFF8EA 0%, #F5F1EA 55%, #EFE8DE 100%);
}
/* keyboard deck seen from the front, opening toward you */
.laptop__base {
  position: relative; height: 74px; margin: -2px -10% 0;
  background: linear-gradient(180deg, #34302d 0%, #26221f 45%, #1c1916 78%, #4a4440 86%, #24201d 100%);
  clip-path: polygon(8% 0, 92% 0, 100% 80%, 100% 100%, 0 100%, 0 80%);
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .35));
}
.laptop__base i { position: absolute; display: block; }
.laptop__keys {
  top: 9%; left: 17%; right: 17%; height: 38%;
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .6) 0 8px, rgba(255, 255, 255, .03) 8px 10px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .55) 0 5px, rgba(255, 255, 255, .03) 5px 7px);
  opacity: .9;
}
.laptop__pad { top: 53%; left: 39%; right: 39%; height: 24%; border-radius: 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.laptop__notch { bottom: 0; left: 50%; width: 14%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #57514b; }
.laptop .plans { max-width: none; }
@media (max-width: 760px) {    /* phones: just the cards, no laptop */
  .laptop__screen { background: none; padding: 0; box-shadow: none; border-radius: 0; }
  .laptop__screen::before, .laptop__base { display: none; }
  .laptop__display { background: none; padding: 0; overflow: visible; }
}

/* Live growth line inside each package card: the line draws itself, the area fills, the end point pulses */
.plan__chart { position: relative; height: 58px; margin: -.3rem 0 1.2rem; padding-top: 1rem; }
.spark { display: block; width: 100%; height: 40px; overflow: visible; }
.spark__line { stroke-width: 2.2; }
.spark__line { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: spark-draw 4s cubic-bezier(.65, 0, .35, 1) infinite; }
.spark__area { fill: var(--amber); opacity: 0; animation: spark-fill 4s ease-in-out infinite; }
.plan--top .spark__line { stroke: var(--cream); }
.plan--top .spark__area { fill: var(--cream); }
.spark__dot { position: absolute; right: -4px; left: auto !important; top: calc(1rem + var(--y, 4px)) !important; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(224, 123, 44, .5); opacity: 0; animation: spark-dot 4s ease-in-out infinite; }
.spark--1 + .spark__dot { --y: 9px; }
.spark--2 + .spark__dot { --y: 3px; }
.plan--top .spark__dot { background: var(--cream); }
@keyframes spark-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 45%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes spark-fill { 0%, 30% { opacity: 0; } 50%, 85% { opacity: .16; } 100% { opacity: 0; } }
@keyframes spark-dot { 0%, 40% { opacity: 0; transform: scale(.4); box-shadow: 0 0 0 0 rgba(224, 123, 44, .5); } 48% { opacity: 1; transform: scale(1.2); } 55%, 85% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 10px rgba(224, 123, 44, 0); } 100% { opacity: 0; transform: scale(1); } }
.plan__chart span { position: absolute; top: 0; left: 0; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan--top .plan__chart span { color: rgba(251, 223, 162, .7); }
.plan__chart span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2DBE6C; margin-right: .4rem; vertical-align: middle; animation: live 1.4s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* Floating social elements in the pricing background */
.pricing__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.deco {
  position: absolute; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--white); box-shadow: 0 14px 30px -12px rgba(78, 48, 27, .3);
  animation: bob 7s ease-in-out infinite;
}
.deco svg { width: 26px; height: 26px; }
.deco--blue { color: #1877F2; } .deco--red { color: #F0405A; } .deco--amber { color: var(--amber); } .deco--brown { color: var(--brown); }
.deco--msg { color: #fff; background: linear-gradient(135deg, #00B2FF, #A033FF 60%, #FF5C87); }
.deco--pill { display: inline-flex; align-items: center; width: auto; height: auto; padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.deco--pill::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2DBE6C; margin-right: .5rem; vertical-align: middle; }
.deco--1 { left: 6%; top: 16%; transform: rotate(-10deg); animation-delay: -1s; }
.deco--2 { left: 14%; top: 58%; width: 44px; height: 44px; animation-delay: -3s; }
.deco--3 { right: 7%; top: 14%; transform: rotate(8deg); animation-delay: -2s; }
.deco--4 { right: 13%; top: 62%; animation-delay: -5s; }
.deco--5 { left: 4%; bottom: 8%; width: 46px; height: 46px; animation-delay: -4s; }
.deco--6 { right: 4%; bottom: 10%; width: 40px; height: 40px; animation-delay: -6s; }
.deco--7 { left: 46%; top: 6%; width: 40px; height: 40px; opacity: .8; animation-delay: -2.5s; }
.deco--8 { left: 50%; bottom: 3%; width: 42px; height: 42px; opacity: .8; animation-delay: -4.5s; }
.deco--9 { left: 3%; top: 38%; animation-delay: -1.5s; }
.deco--10 { right: 3%; top: 40%; animation-delay: -3.5s; }
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  33% { translate: 0 -16px; rotate: 4deg; }
  66% { translate: 6px 8px; rotate: -3deg; }
}
@media (max-width: 980px) {
  .deco--7, .deco--8, .deco--9, .deco--10 { display: none; }
  .deco { width: 42px; height: 42px; border-radius: 12px; opacity: .85; }
  .deco svg { width: 20px; height: 20px; }
  .deco--1 { left: 2%; top: 4%; } .deco--3 { right: 2%; top: 3%; }
  .deco--2 { left: 1%; top: 46%; } .deco--4 { right: 1%; top: 52%; }
}
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; align-items: stretch; max-width: 820px; margin-inline: auto; }
.price__per { font-size: 1rem; font-weight: 500; letter-spacing: 0; align-self: flex-end; margin: 0 0 .5rem .4rem; opacity: .7; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: 24px; padding: 2rem 1.7rem;
  border: 1px solid var(--line);
}
.plan h3 { font-size: 1.6rem; margin-top: 0; }
.plan__for { color: var(--muted); font-size: .9rem; }
.price { margin-block: 1.4rem 1.2rem; display: flex; align-items: flex-start; gap: .15rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price__cur { font-size: 1.4rem; margin-top: .4rem; }
.price__num { font-size: 4rem; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; margin: 0 0 1.8rem; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .65rem; font-size: .92rem; flex: 1; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan--top { background: var(--brown); color: var(--cream); border-color: var(--brown); box-shadow: 0 40px 70px -30px rgba(78, 48, 27, .7); }
.plan--top .plan__for { color: rgba(251, 223, 162, .7); }
.plan--top ul { border-color: rgba(251, 223, 162, .2); }
.plan--top li::before { border-color: var(--cream); }
.plan__badge { position: absolute; top: 2rem; right: 1.7rem; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--amber); color: var(--white); padding: .3rem .7rem; border-radius: 999px; }
.plan__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; position: relative; background: var(--paper); }
.plan--top .plan__icon { background: rgba(251, 223, 162, .12); color: var(--cream); }
.plan__icon--spark span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.plan__icon--spark span:nth-child(1) { top: 16px; left: 16px; }
.plan__icon--spark span:nth-child(2) { top: 24px; left: 28px; width: 9px; height: 9px; }
.plan__icon--spark span:nth-child(3) { top: 32px; left: 18px; width: 4px; height: 4px; }
.plan__icon--flame span { width: 20px; height: 26px; background: linear-gradient(to top, var(--amber), var(--cream)); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform-origin: 50% 100%; }
.plan__flame { position: absolute; bottom: 4px; left: 50%; width: 8px; height: 10px; translate: -50% 0; border-radius: 50%; background: var(--amber); filter: blur(2px); opacity: 0; }

/* ---------- CALCULATOR ---------- */
.calc { padding-block: 6rem; background: var(--paper); }
.calc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.calc__copy { min-width: 0; }
.calc__copy h2 { font-size: var(--t-h2); margin-block: .6rem 1rem; color: var(--brown); }   /* KS brown */
.calc__copy p { color: var(--muted); max-width: 36ch; }
.calc__panel { background: var(--white); box-shadow: 0 24px 50px -30px rgba(78, 48, 27, .25); border-radius: 24px; padding: 2rem; display: grid; gap: 1.6rem; min-width: 0; }
.field { display: grid; gap: .7rem; }
.field > span { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.field output { color: var(--amber); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brown), var(--amber)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--line); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.calc__result { background: var(--paper); border-radius: 18px; padding: 1.4rem; display: grid; gap: .8rem; }
.calc__result small { color: var(--muted); font-size: .8rem; }
.calc__reach { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc__track { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.calc__fill { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(.2); background: linear-gradient(90deg, var(--brown), var(--amber)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.calc__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: 1rem; color: var(--muted); }
.calc__meta b { font-size: 1.12rem; }
.calc__meta b { color: var(--ink); }
.calc__suggest { display: inline-block; color: var(--amber) !important; }
.calc__note { font-size: .75rem; color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact { padding-block: 7rem; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact__copy { min-width: 0; }
.contact__copy h2 { font-size: var(--t-h2); margin-block: .6rem 1rem; }
.contact__copy h2, .contact__copy h2 .w { color: var(--brown); }   /* whole heading in KS brown */
.contact__copy > p { color: var(--muted); max-width: 38ch; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.contact__list { display: grid; margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "icon label copy" "icon value copy";
  align-items: center; column-gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.contact-row__icon { grid-area: icon; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; }
.contact-row__label { grid-area: label; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.contact-row__value { grid-area: value; font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; width: fit-content; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }
.contact-row__value:hover { background-size: 100% 2px; }
.contact-row .chip { grid-area: copy; width: 108px; text-align: center; justify-self: end; }
.chip { display: inline-block; border: 0; background: var(--ink); color: var(--white); border-radius: 999px; padding: .5rem 1rem; font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.chip:hover { background: var(--brown); transform: translateY(-1px); }
.copy { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .35rem .9rem; font-size: .8rem; cursor: pointer; }

.chat { background: var(--white); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; max-width: 440px; width: 100%; justify-self: center; min-width: 0; }
.chat__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.chat__head img { width: 34px; height: auto; }
.chat__head small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.chat__body { padding: 1.4rem 1.2rem 1.6rem; display: grid; gap: .55rem; justify-items: start; min-height: 260px; align-content: start; }
.bubble { background: var(--paper); border-radius: 20px 20px 20px 6px; padding: .7rem 1rem; max-width: 85%; font-size: .95rem; }
.bubble--typing { display: flex; gap: 4px; padding: .9rem 1rem; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .2s; }
.bubble--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---------- FOOTER ---------- */
.footer { padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--muted); }
.footer__inner img { height: 40px; width: auto; }

/* ---------- Split text helper ---------- */
.w { display: inline-block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr minmax(220px, .9fr) 1fr; gap: 1rem; }
  .hero__title { font-size: clamp(2rem, 4vw, 3rem); }
  .hero__slogan { font-size: clamp(1.6rem, 3vw, 2.4rem); }
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero__center { order: -1; width: min(360px, 88vw); margin: 0 auto -1rem; }
  .hero__right { display: none; }
  .trust { margin-top: 2rem; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { grid-column: 3; }
  .story__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; min-height: 0; padding-block: 3rem; }
  .story__copy { min-height: 272px; }
  .story__num { font-size: clamp(3.4rem, 15vw, 5rem); }
  .story__step h2 { font-size: 1.5rem; margin-block: .5rem .4rem; }
  .story__step p:not(.story__num) { font-size: .92rem; }
  .story__note { top: auto; bottom: 0; }
  .story__phone { width: min(190px, 46vw); align-self: start; margin-top: .6rem; }
  .story__phone.cover__device { width: min(300px, 80vw); border-radius: 12px 44px 44px 12px; padding: 6px 6px 6px 14px; }
  .story__phone .cover__screen { border-radius: 7px 38px 38px 7px; }
  .story__glow { left: 50%; top: 68%; width: 420px; height: 420px; }
  /* Mobile portfolio: no pinning; heading, then phone, then client list */
  .work__stage { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; justify-items: stretch; padding-block: 4rem 3rem; }
  .work__copy { display: contents; }
  .work__copy > .eyebrow { justify-self: start; }
  .work__copy h2 { margin-block: 0; }
  .fold { order: 1; justify-self: center; margin-block: 1rem 2.8rem; width: min(400px, 94vw); }
  .cover { order: 1; justify-self: center; margin-block: 1rem 2.8rem; width: min(330px, 86vw); }
  .cover__device { border-radius: 12px 44px 44px 12px; padding: 6px 6px 6px 14px; }
  .cover .cover__screen { border-radius: 7px 38px 38px 7px; }
  .fold__half { padding: 5px; }
  .fold__half--l { border-radius: 28px 4px 4px 28px; padding-right: 1px; }
  .fold__half--r { border-radius: 4px 28px 28px 4px; padding-left: 1px; }
  .fold__half--l .fold__screen { border-radius: 24px 2px 2px 24px; }
  .fold__half--r .fold__screen { border-radius: 2px 24px 24px 2px; }
  .work__tiles { order: 2; margin-top: 0; max-width: none; width: 100%; }
  .tile { padding: .45rem .8rem; }
  .tile:hover { transform: none; }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .calc__grid, .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact__grid .chat, .contact__grid .contact__phone { order: 2; }
}
@media (max-width: 520px) {
  .strip__list li { flex-basis: 50%; border-bottom: 1px solid var(--line); }
  .tile em { display: none; }
  .tile { grid-template-columns: 44px 1fr; }
  .phone { --r: 40px; --bezel: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- PHONE PERFORMANCE ----------
   Phones get the same look with lighter effects, so scrolling stays smooth. */
@media (max-width: 980px), (hover: none) {
  .nav { background: rgba(245, 243, 239, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .tile { transform: none !important; }
  .hero__mark { filter: none; }
  .hero__halo { filter: none; }
  .phone { box-shadow: 0 30px 50px -28px rgba(31, 22, 17, .5); }
  .pricing::before, .pricing::after { animation: none; }
  .plan::after { animation: none; display: none; }
  .deco { animation-duration: 10s; box-shadow: 0 8px 18px -10px rgba(78, 48, 27, .3); }
  .story__glow { width: 360px; height: 360px; }
  .plan--top, .chat, .float-card { box-shadow: 0 20px 40px -24px rgba(78, 48, 27, .45); }
}

/* "Trusted by local brands", centered under the logo */
.trust-row { display: flex; justify-content: center; margin-top: -4.5rem; position: relative; z-index: 3; }
.trust--center { margin-top: 0; gap: 1.1rem; text-align: left; }
.trust--center b { font-size: 1.45rem; }
.trust--center p { font-size: 1.05rem; line-height: 1.35; }
.trust--center .trust__faces img { width: 78px; height: 78px; border-width: 3px; }
.trust--center .trust__faces img + img { margin-left: -20px; }
@media (max-width: 760px) {
  .trust-row { margin-top: 1.5rem; }
  .trust--center b { font-size: 1.2rem; }
  .trust--center p { font-size: .95rem; }
  .trust--center .trust__faces img { width: 62px; height: 62px; }
}

/* real campaign screenshot inside the story phone */
.story__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* "Recent campaign" card in the hero (real numbers from the client's ad results) */
.float-card--results { width: min(100%, 320px); padding: 1rem 1.1rem 1.1rem; }
.float-card--results .float-card__head { position: relative; }
.live-pill { margin-left: auto; align-self: start; display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1F8A4C; background: #E7F6EC; padding: .25rem .55rem; border-radius: 999px; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2DBE6C; animation: live 1.4s ease-in-out infinite; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .9rem; }
.mini-stats div { min-width: 0; }
.mini-stats b { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.mini-stats small { display: block; font-size: .68rem; color: var(--muted); margin-top: .15rem; }
.mini-spark { margin-top: .8rem; height: 36px; }
.mini-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mini-spark path { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: spark-draw 4s cubic-bezier(.65, 0, .35, 1) infinite; }

/* Messenger-style chat card */
.chat--msgr { border-radius: 30px; }
.chat--msgr .chat__head { gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid #EFEFEF; }
.msgr__back { color: #0A7CFF; display: grid; }
.msgr__avatar { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--brown); display: grid; place-items: center; }
.msgr__avatar img { width: 20px !important; height: auto; filter: brightness(0) invert(91%) sepia(23%) saturate(733%) hue-rotate(327deg) brightness(102%) contrast(97%); }  /* KS cream */
.msgr__online { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #31A24C; border: 2px solid #fff; }
.msgr__who b { display: block; font-size: .98rem; line-height: 1.2; color: #050505; }
.msgr__who small { display: block; font-size: .75rem; color: #65676B; }
.msgr__icons { margin-left: auto; display: flex; gap: .9rem; color: #0A7CFF; }
.chat--msgr .chat__body { gap: .3rem; padding: 1rem 1rem 1.2rem; min-height: 300px; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; }
.msgr__time { justify-self: center; font-size: .72rem; color: #8A8D91; margin-bottom: .4rem; }
.chat--msgr .bubble { background: #F0F0F0; color: #050505; border-radius: 18px; padding: .55rem .85rem; font-size: .93rem; line-height: 1.35; max-width: 78%; }
.chat--msgr .bubble + .bubble:not(.bubble--me) { border-top-left-radius: 5px; }
.chat--msgr .bubble--me { justify-self: end; color: #fff; background: linear-gradient(180deg, #00B2FF, #006AFF); border-radius: 18px; margin-bottom: .5rem; }
.chat--msgr .bubble--typing { background: #F0F0F0; }
.chat--msgr .bubble--typing i { background: #8A8D91; }
.msgr__bar { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .9rem; color: #0A7CFF; }
.msgr__plus { width: 26px; height: 26px; border-radius: 50%; background: #0A7CFF; color: #fff; display: grid; place-items: center; font-weight: 700; line-height: 1; }
.msgr__input { flex: 1; background: #F0F2F5; color: #65676B; border-radius: 999px; padding: .5rem .9rem; font-size: .9rem; }

/* touchscreen glass: soft reflection + touch ripples */
.laptop__display::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(120deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, rgba(255,255,255,.12) 100%);
  mix-blend-mode: soft-light;
}
.touch-ripple {
  position: absolute; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224,123,44,.35) 0%, rgba(224,123,44,.12) 55%, rgba(224,123,44,0) 70%);
  animation: touch 0.7s ease-out forwards;
}
@keyframes touch { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@media (max-width: 760px) { .laptop__screen::before { display: none; } }

/* Front-view MacBook Pro (space black): thin black bezel, camera notch, slim flat base with thumb cut-out and feet */
@media (min-width: 761px) {
  .laptop { max-width: 860px; width: auto; margin: 0 auto; }
  .laptop__screen {
    background: #050506; border-radius: 26px 26px 4px 4px; padding: 12px 12px 26px;
    box-shadow: inset 0 0 0 2px #2c2c30, inset 0 0 0 3.5px #0a0a0b, 0 50px 90px -50px rgba(0, 0, 0, .6);
  }
  .laptop__screen::before {      /* camera notch hanging from the top bezel */
    top: 12px; left: 50%; width: 15%; min-width: 96px; height: 22px; transform: translateX(-50%);
    border-radius: 0 0 11px 11px; background: #050506; box-shadow: none;
  }
  .laptop__screen::after {       /* camera lens in the notch */
    content: ""; position: absolute; z-index: 5; top: 19px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2b3a4d, #0b0f15 70%);
  }
  .laptop__display { border-radius: 14px 14px 2px 2px; padding: 3.6rem 2.4rem 2.6rem; }
  .laptop__base {
    height: 22px; margin: -1px -8.5% 0; clip-path: none; filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .28));
    border-radius: 3px 3px 26px 26px / 3px 3px 22px 22px;
    background: linear-gradient(180deg, #4a4a4f 0%, #2e2e32 14%, #222225 55%, #19191b 85%, #0f0f10 100%);
  }
  .laptop__base::before, .laptop__base::after {   /* rubber feet */
    content: ""; position: absolute; bottom: -4px; width: 6%; height: 5px; border-radius: 0 0 6px 6px; background: #121213;
  }
  .laptop__base::before { left: 5%; }
  .laptop__base::after { right: 5%; }
  .laptop__base .laptop__keys, .laptop__base .laptop__pad { display: none; }
  .laptop__notch {               /* thumb cut-out to open the lid */
    top: 0; bottom: auto; left: 50%; width: 15%; height: 9px; transform: translateX(-50%);
    border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #57575c, #3a3a3e);
  }
}

/* Keep the laptop screen landscape on tablets / narrow windows: both cards side by side, compact */
@media (min-width: 761px) {
  .laptop .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin-inline: 0; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .laptop__screen { padding: 9px 9px 20px; border-radius: 20px 20px 4px 4px; }
  .laptop__screen::before { top: 9px; height: 18px; }
  .laptop__screen::after { top: 15px; }
  .laptop__display { padding: 2.4rem 1.1rem 1.4rem; }
  .laptop .plans { gap: .7rem; }
  .laptop .plan { padding: 1.1rem 1rem; border-radius: 16px; }
  .laptop .plan__badge { top: 1rem; right: .9rem; font-size: .62rem; }
  .laptop .plan h3 { font-size: 1.15rem; }
  .laptop .price__num { font-size: 2.5rem; }
  .laptop .plan li { font-size: .82rem; }
  .laptop { max-width: 86%; }
  .laptop .btn { padding-block: .7rem; font-size: .85rem; }
  .laptop__base { height: 16px; }
}

/* Results section on computers: phone on the left, text on the right */
@media (min-width: 981px) {
  .story__phone { grid-column: 1; grid-row: 1; }
  .story__copy { grid-column: 2; grid-row: 1; padding-left: clamp(1rem, 4vw, 4rem); }
  .story__glow { left: 25%; }
}

.pricing .section-head h2 { color: var(--brown); }   /* "Choose your package." in KS brown */
.work__copy h2, .work__copy h2 .w { color: var(--brown); }   /* "Pages we've boosted." in KS brown */

/* lid closes toward the viewer: the eye sits at hinge height, so a closed lid shrinks to a thin edge on the base */
@media (min-width: 761px) { .laptop { perspective: 3200px; perspective-origin: 50% calc(100% - 24px); } }
@media (min-width: 761px) and (max-width: 1023px) { .laptop { perspective-origin: 50% calc(100% - 18px); } }

/* Contact chat shown on the folded cover-screen phone */
.contact__phone { width: min(400px, 100%); justify-self: center; min-width: 0; }
.contact__screen { position: relative; aspect-ratio: 7 / 10; border-radius: 9px 50px 50px 9px; overflow: hidden; background: #fff; }
.contact__phone .chat { max-width: none; width: 100%; height: 100%; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.contact__phone .chat__head { padding-top: 2.4rem; padding-right: 1.6rem; }
.contact__phone .chat__body { flex: 1; min-height: 0; overflow: hidden; }
.contact__phone .msgr__bar { padding-bottom: 1.3rem; padding-right: 1.6rem; }
@media (max-width: 760px) {
  .contact__phone { width: min(340px, 100%); }
  .contact__screen { border-radius: 7px 38px 38px 7px; }
  .contact__phone .chat__head { padding-top: 2rem; }
}

/* ---------- Smoothness ---------- */
/* looping effects stop while their section is off screen (saves work while scrolling) */
.is-offscreen *, .is-offscreen::before, .is-offscreen::after,
.is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* parts that move get their own GPU layer */
.laptop__screen, .hero__mark { will-change: transform; }
.laptop__display { will-change: opacity; }

/* Hero right side: supporting text under the slogan */
.hero__sub { max-width: 28ch; text-align: right; color: var(--muted); font-size: 1rem; line-height: 1.55; margin-top: -.4rem; }
.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; justify-items: end; }
.hero__points li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 600; color: var(--brown); }
.hero__points li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

/* depth for the results phone's scroll swivel (computers only) */
@media (min-width: 761px) and (hover: hover) { .story__stage { perspective: 1400px; } }

/* depth for the portfolio phone's scroll swivel (computers only) */
@media (min-width: 761px) and (hover: hover) { .work__stage { perspective: 1400px; } }

/* Contact rows in KS brand brown: icons, names/number and buttons (cream text) */
.contact-row__icon { background: var(--brown); color: var(--cream); }
.contact-row__value { color: var(--brown); }
.contact-row .chip { background: var(--brown); color: var(--cream); }
.contact-row .chip:hover { background: #6B4428; }

/* Messenger avatar inside the phone: original KS logo colours (brown mark on cream) */
.msgr__avatar { background: var(--cream); box-shadow: inset 0 0 0 1px rgba(78, 48, 27, .12); }
.msgr__avatar img { filter: none !important; width: 22px !important; }

/* Results phone: fixed 7:10 screen via padding (works even where aspect-ratio misbehaves), tap to view */
.story__phone .cover__screen { aspect-ratio: auto; height: 0; padding-top: 142.857%; }
.story__phone { cursor: zoom-in; position: relative; }
.story__phone:focus-visible { outline: 3px solid var(--amber); outline-offset: 6px; }
.story__zoom { position: absolute; left: 50%; bottom: -2.2rem; translate: -50% 0; font-size: .75rem; color: var(--muted); white-space: nowrap; pointer-events: none; }

/* ---------- Pricing platform tabs ---------- */
.ptabs { display: flex; gap: .3rem; width: fit-content; max-width: 100%; margin: 0 auto 1.4rem; padding: .3rem; border-radius: 999px; background: rgba(78, 48, 27, .07); }
.ptab { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: var(--brown); font: inherit; font-size: .9rem; font-weight: 600; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; white-space: nowrap; }
.ptab:hover { background: rgba(78, 48, 27, .08); }
.ptab.is-active { background: var(--brown); color: var(--cream); }
.ptab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* panels share one spot, so the laptop screen keeps the same size when switching */
.ppanels { display: grid; }
.ppanel { grid-area: 1 / 1; transition: opacity .4s ease, transform .4s ease, visibility .4s; }
.ppanel:not(.is-active) { opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; }
.soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .7rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 2rem 1.6rem;
}
.soon__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brown); color: var(--cream); }
.soon__tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--amber); padding: .3rem .7rem; border-radius: 999px; }
.soon h3 { font-size: 1.6rem; margin: .2rem 0 0; color: var(--brown); }
.soon p { color: var(--muted); max-width: 40ch; margin: 0; }
.soon__btn { margin-top: .6rem; background: var(--brown); color: var(--cream); }
.soon__btn:hover { background: #6B4428; }
@media (max-width: 760px) {
  .ptab { padding: .5rem .8rem; font-size: .82rem; }
  .ptab svg { display: none; }
  .ppanel:not(.is-active) { display: none; }      /* phones: only the chosen platform takes space */
}

/* Results phone: campaign name + dots when there are several results */
.story__caption { justify-self: center; grid-column: 1; margin: 2.6rem 0 0; font-size: .85rem; font-weight: 600; color: var(--brown); text-align: center; }
.story__dots { justify-self: center; grid-column: 1; display: flex; gap: .5rem; margin-top: .7rem; position: relative; z-index: 3; }
.story__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(78, 48, 27, .25); cursor: pointer; transition: width .3s, background .3s; }
.story__dots button.is-active { width: 26px; background: var(--brown); }
.story__caption:empty { display: none; }
@media (max-width: 980px) { .story__caption { margin-top: 2.4rem; } }

/* "Trusted by local brands": client pictures never squeeze into the text; on narrow phones they sit above it */
.trust__faces { flex: none; }
.trust__faces img { flex: none; }
.trust p { min-width: 0; }
@media (max-width: 420px) {
  .trust--center { flex-direction: column; text-align: center; gap: .7rem; }
  .trust--center .trust__faces img { width: 56px; height: 56px; }
  .trust--center .trust__faces img + img { margin-left: -16px; }
}

/* ---------- Boosted result panel (beside the results phone) ---------- */
.story__copy.rpanel { min-height: 0; display: grid; gap: .3rem; align-content: center; max-width: 520px; }
.rpanel__title { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--brown); margin: .5rem 0 .6rem; }
.rpanel__big { margin: 0; }
.rpanel__label { color: var(--muted); font-size: 1.05rem; margin: .5rem 0 1.4rem; }
.rpanel__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0; }
.rpanel__stats > div { background: var(--white); border-radius: 16px; padding: .85rem 1rem; box-shadow: 0 14px 30px -24px rgba(78, 48, 27, .45); min-width: 0; }
.rpanel__stats dt { font-size: .78rem; color: var(--muted); }
.rpanel__stats dd { margin: .15rem 0 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: var(--brown); font-variant-numeric: tabular-nums; }
.rpanel__stats > div[hidden] { display: none; }
@media (max-width: 980px) {
  .story__copy.rpanel { min-height: 0; margin-bottom: 1.5rem; }
  .rpanel__label { font-size: .95rem; margin-bottom: 1rem; }
  .rpanel__stats dd { font-size: 1.2rem; }
}
.story__dots { margin-top: 2.9rem; }
.story__phone .story__dots { position: absolute; left: 50%; translate: -50% 0; bottom: -4.2rem; margin: 0; }

/* Results: ‹ dots › under the phone */
.story__phone .story__dots { position: static; translate: none; margin: 0; }
.story__nav { position: absolute; left: 50%; translate: -50% 0; bottom: -5.2rem; z-index: 3; display: flex; align-items: center; gap: .9rem; }
.story__arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--brown); border: 1.5px solid rgba(78, 48, 27, .25); box-shadow: 0 10px 22px -16px rgba(78, 48, 27, .6);
  transition: background .25s, color .25s, transform .2s, border-color .25s; }
.story__arrow:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.story__arrow:active { transform: scale(.92); }
.story__arrow:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 2px; }
@media (max-width: 980px) { .story__stage { padding-bottom: 6rem; } }

/* numbers racing when you switch results: a quick motion blur that clears as they settle */
@keyframes num-race { 0% { filter: blur(1.6px); transform: translateY(-3px); } 60% { filter: blur(.6px); } 100% { filter: none; transform: none; } }
.rpanel .js-num.is-rolling, .rpanel [data-r].is-rolling { display: inline-block; animation: num-race .9s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) { .rpanel .is-rolling { animation: none; } }

/* Results full view: same 7:10 crop as the results phone screen (top of the screenshot) */
.lightbox__img.is-crop { aspect-ratio: 7 / 10; height: min(calc(100svh - 16px), calc((100vw - 16px) * 10 / 7)); object-fit: cover; object-position: top; }

/* keep the page from shifting sideways when the full view locks and unlocks scrolling */
html { scrollbar-gutter: stable; }
.lightbox__img { will-change: transform, opacity; backface-visibility: hidden; }
