/* ==========================================================
   Sean — DG Design Studio
   ========================================================== */

:root {
  --bg: #f6f6f5;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #4a4a48;
  --ink-3: #686864;
  --line: #e4e4e1;
  --soft: #eeeeec;
  --radius: 18px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --cjk: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Heiti TC", "Hiragino Sans", sans-serif;
  --font-en: "DM Sans", var(--cjk);
  --font-tc: var(--cjk);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-tc);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.en { font-family: var(--font-en); letter-spacing: -.01em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  transition: transform .6s var(--ease), background .4s, padding .4s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 16px; padding-bottom: 16px;
}
.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__name {
  font-family: var(--font-en); font-weight: 600; font-size: 26px;
  letter-spacing: -.02em; line-height: 1;
}
.brand__studio {
  font-family: var(--font-en); font-weight: 700; font-size: 9.5px;
  letter-spacing: .14em; line-height: 1.45; text-transform: uppercase;
  padding-left: 14px; border-left: 1px solid var(--line);
}

/* menu button + small dropdown */
.nav { position: relative; }
.menu-btn {
  width: 44px; height: 44px; display: grid; place-items: center; position: relative;
  border-radius: 50%; transition: background .3s;
}
.menu-btn:hover { background: rgba(0,0,0,.04); }
.menu-btn span {
  position: absolute; right: 8px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease), opacity .3s;
}
.menu-btn span:nth-child(1) { top: 14px; width: 28px; }
.menu-btn span:nth-child(2) { top: 21px; width: 20px; }
.menu-btn span:nth-child(3) { top: 28px; width: 28px; }
.menu-btn:hover span:nth-child(2) { width: 28px; }
.is-menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.is-menu-open .menu-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 230px;
  background: var(--surface); border-radius: 18px; padding: 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right;
  pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.is-menu-open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 14px; border-radius: 12px; font-size: 15.5px; transition: background .25s;
}
.dropdown a:hover { background: var(--bg); }
.dropdown a .en { font-size: 12px; color: var(--ink-3); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 10px; }

/* ---------- Hero / 3D gallery ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  display: flex; flex-direction: column; overflow: hidden;
}
.stage {
  position: relative; flex: 1; perspective: 1500px; perspective-origin: 50% 50%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage.is-dragging { cursor: grabbing; }
.stage__ring { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.card {
  position: absolute; left: 0; top: 0;
  width: var(--cw); height: var(--ch);
  margin-left: calc(var(--cw) / -2); margin-top: calc(var(--ch) / -2);
  border-radius: 16px; overflow: hidden; background: var(--soft);
  backface-visibility: hidden; will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }

.hero__intro {
  position: absolute; left: 0; right: 0; top: 108px; text-align: center; pointer-events: none;
  font-size: 14px; color: var(--ink-3); letter-spacing: .3em;
}
.hero__social {
  display: flex; justify-content: center; gap: 36px; padding: 0 0 44px;
  font-family: var(--font-en); font-size: 22px; font-weight: 400; letter-spacing: -.01em;
}
.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.hero__hint {
  position: absolute; right: var(--gutter); bottom: 48px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Common section ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section--white { background: var(--surface); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.h2 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 500; line-height: 1.25; letter-spacing: .04em; margin: 0; }
.lead { color: var(--ink-2); font-size: 16.5px; max-width: 34em; margin: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

.split-line { display: block; overflow: hidden; padding-bottom: .08em; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- Works (case grid) ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 48px); row-gap: 72px; }
.case { display: block; }
.case__media { position: relative; aspect-ratio: 342 / 427; margin-right: 12%; }
.case__shot {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.case__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 8s cubic-bezier(.45,0,.25,1); }
.case:hover .case__shot img { object-position: 50% 100%; }
.case__phone {
  position: absolute; right: -12%; top: 33%; width: 26%; aspect-ratio: 390 / 844;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: -18px 24px 40px -18px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .9s var(--ease);
}
.case__phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.case:hover .case__phone { transform: translateY(-12px); }
.case__media.is-empty .case__shot {
  display: grid; place-items: center; box-shadow: none;
  background: repeating-linear-gradient(-45deg, #ecece9 0 12px, #f2f2ef 12px 24px);
}
.case__media.is-empty span { font-size: 14px; color: var(--ink-3); letter-spacing: .12em; }
.case__body { padding-top: 30px; }
.case__title { margin: 0; font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; letter-spacing: .06em; }
.case__title i { font-style: normal; color: #cfcfcb; margin: 0 .35em; }
.case__client { margin: 10px 0 0; font-size: 16px; }
.case__meta { margin: 2px 0 0; font-size: 15px; color: var(--ink-3); line-height: 1.7; }
a.case:hover .case__title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border-radius: 24px; padding: 36px 32px 32px; background: var(--bg);
  border: 1px solid transparent;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(0,0,0,.18); }
.plan--pick { background: #fff; border-color: var(--line); box-shadow: 0 24px 60px -36px rgba(0,0,0,.22); }
.plan__badge {
  position: absolute; top: 22px; right: 22px; font-size: 12.5px; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2);
}
.plan__no { font-family: var(--font-en); font-size: 13px; color: var(--ink-3); }
.plan h3 { margin: 10px 0 6px; font-size: 22px; font-weight: 500; letter-spacing: .05em; }
.plan__for { margin: 0; font-size: 14.5px; color: var(--ink-2); min-height: 3.5em; }
.plan__price { margin: 28px 0 24px; display: flex; align-items: baseline; gap: 6px; }
.plan__price .cur { font-family: var(--font-en); font-size: 15px; color: var(--ink-3); }
.plan__price b { font-family: var(--font-en); font-weight: 400; font-size: 46px; letter-spacing: -.03em; line-height: 1; }
.plan__price .from { font-size: 15px; color: var(--ink-3); }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; line-height: 1.6; }
.plan li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 2.5px, transparent 3px), var(--soft); }
.plan--pick li::before { background: radial-gradient(circle, #fff 0 2.5px, transparent 3px), var(--ink); }
.plan__cta { margin-top: auto; padding-top: 30px; }
.plan__cta a {
  display: flex; justify-content: center; padding: 14px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--line); background: #fff; transition: background .3s, color .3s, border-color .3s;
}
.plan__cta a:hover, .plan--pick .plan__cta a { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan--pick .plan__cta a:hover { background: #333; }
.pricing__note { text-align: center; margin-top: 36px; font-size: 14px; color: var(--ink-3); }

/* ---------- Add-ons ---------- */
.addons { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.addon {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.addon h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: .05em; }
.addon p { grid-column: 1 / -1; margin: 0; font-size: 14.5px; color: var(--ink-2); }
.addon__price { font-family: var(--font-en); font-size: 17px; white-space: nowrap; }
.addon__price small { font-family: var(--font-tc); font-size: 13px; color: var(--ink-3); margin-left: 2px; }

/* ---------- Process (scroll timeline) ---------- */
.process__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process__aside { position: sticky; top: 140px; }
.process__aside .lead { margin-top: 22px; }
.timeline { position: relative; padding-left: 64px; }
.timeline__track, .timeline__fill {
  position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px;
}
.timeline__track { background: var(--line); }
.timeline__fill { background: var(--ink); transform-origin: top; transform: scaleY(0); }
.tstep { position: relative; padding: 0 0 clamp(56px, 7vw, 96px); }
.tstep:last-child { padding-bottom: 0; }
.tstep__dot {
  position: absolute; left: -64px; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line);
  font-family: var(--font-en); font-size: 13px; color: var(--ink-3);
  transition: background .5s var(--ease), color .5s, border-color .5s, transform .6s var(--ease);
}
.tstep__card {
  background: var(--bg); border-radius: 20px; padding: 26px 28px;
  opacity: .35; transform: translateX(14px);
  transition: opacity .7s var(--ease), transform .8s var(--ease), background .6s, box-shadow .6s;
}
.tstep h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.tstep p { text-wrap: pretty; }
.tstep h3 small { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); font-weight: 400; letter-spacing: .04em; padding: 3px 10px; border-radius: 7px; background: var(--soft); white-space: nowrap; }
.tstep p { margin: 0; font-size: 15px; color: var(--ink-2); }
.tstep.is-active .tstep__dot { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.tstep.is-active .tstep__card { opacity: 1; transform: none; background: #fff; box-shadow: 0 24px 50px -32px rgba(0,0,0,.2), 0 0 0 1px var(--line); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq__aside { position: sticky; top: 140px; }
.faq__aside .lead { margin-top: 22px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; text-align: left; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: .04em; line-height: 1.5;
}
.qa__icon { position: relative; flex: none; width: 22px; height: 22px; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; background: var(--ink);
  transition: transform .5s var(--ease);
}
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 48px 30px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.95; }

/* ---------- Reveal defaults (JS enhances) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan__for { min-height: 0; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .process__grid, .faq__grid { grid-template-columns: 1fr; }
  .process__aside, .faq__aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .header { padding: 18px var(--gutter); }
  .brand__name { font-size: 22px; }
  .brand__studio { font-size: 8.5px; padding-left: 10px; }
  .brand { gap: 10px; }
  .hero__social { gap: 26px; font-size: 18px; padding-bottom: 36px; }
  .hero__hint { display: none; }
  .hero__intro { top: 88px; font-size: 12.5px; }
  .cases { grid-template-columns: 1fr; row-gap: 56px; }
  .addons { grid-template-columns: 1fr; }
  .timeline { padding-left: 52px; }
  .timeline__track, .timeline__fill { left: 15px; }
  .tstep__dot { left: -52px; width: 32px; height: 32px; font-size: 12px; }
  .tstep__card { padding: 22px 20px; }
  .qa__a p { padding-right: 0; }
  .plan { padding: 30px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  .tstep__card { opacity: 1; transform: none; }
  .laptop__view img.is-auto, .foot__glow span { animation: none; }
}

/* ==========================================================
   Footer
   ========================================================== */
.foot {
  position: relative; overflow: hidden; background: #fbfbfa;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.foot__glow { position: absolute; inset: 0; pointer-events: none; }
.foot__glow span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9;
  background: radial-gradient(closest-side, #dcdcd8, transparent);
  animation: drift 22s ease-in-out infinite alternate;
}
.foot__glow span:nth-child(1) { width: 60vw; height: 38vw; left: -14vw; top: 2%; }
.foot__glow span:nth-child(2) { width: 46vw; height: 30vw; right: -10vw; bottom: 6%; background: radial-gradient(closest-side, #e4e3df, transparent); animation-duration: 28s; animation-direction: alternate-reverse; }
.foot__glow span:nth-child(3) { width: 30vw; height: 18vw; left: 38%; top: 46%; background: radial-gradient(closest-side, #ebebe8, transparent); animation-duration: 18s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(6vw, -3vw, 0) rotate(12deg) scale(1.08); }
  100% { transform: translate3d(-4vw, 4vw, 0) rotate(-8deg) scale(.95); }
}
.foot__inner {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px var(--gutter) 80px;
}
.foot__status {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.foot__status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #3a9b5c; }
.foot__status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3a9b5c; animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.foot__title { margin: 30px 0 0; font-size: clamp(28px, 3.6vw, 48px); font-weight: 500; line-height: 1.45; letter-spacing: .05em; }
.foot__sub { margin: 18px 0 0; font-size: 16px; color: var(--ink-2); line-height: 1.9; }
.foot__btn {
  margin-top: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15.5px; letter-spacing: .08em;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
}
.foot__btn:hover { transform: translateY(-3px); background: #262626; box-shadow: 0 22px 44px -18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.18); }
.foot__social { display: flex; align-items: center; margin-top: 40px; }
.foot__social a { display: grid; place-items: center; width: 52px; height: 40px; color: var(--ink-2); transition: color .3s, transform .4s var(--ease); }
.foot__social a + a { border-left: 1px solid var(--line); }
.foot__social a:hover { color: var(--ink); transform: translateY(-2px); }
.foot__bar {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
  padding: 26px var(--gutter) 32px; font-size: 13.5px; color: var(--ink-3);
}
.foot__bar span:last-child { text-align: right; }

/* ==========================================================
   Case study page
   ========================================================== */
.cs-hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 50% at 30% 20%, #ffffff 0%, transparent 70%),
    linear-gradient(180deg, #efefed 0%, #dfdedb 100%);
}
.laptop { width: min(64vw, 980px, calc((100svh - 230px) * 1.45)); margin-top: -10px; animation: heroIn 1.6s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }
.laptop__screen {
  position: relative; aspect-ratio: 16 / 10; background: #0d0d0d; border-radius: 20px 20px 6px 6px;
  padding: 2% 2% 3%; box-shadow: 0 0 0 1.5px #3a3a3a inset, 0 50px 100px -40px rgba(0,0,0,.45);
}
.laptop__view { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #fff; }
.laptop__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.laptop__view img.is-auto { animation: autoscroll 40s cubic-bezier(.45,0,.55,1) 1.8s infinite alternate; }
@keyframes autoscroll { 0%, 6% { object-position: 50% 0; } 94%, 100% { object-position: 50% 100%; } }
.laptop__base {
  position: relative; width: 116%; margin-left: -8%; height: clamp(10px, 1.4vw, 20px);
  background: linear-gradient(180deg, #d6d6d4 0%, #a9a9a7 60%, #7e7e7c 100%);
  border-radius: 2px 2px 18px 18px / 2px 2px 100% 100%;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.45);
}
.laptop__base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; transform: translateX(-50%);
  background: #8f8f8d; border-radius: 0 0 10px 10px;
}
.cs-hero__down {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(20,20,20,.35); color: var(--ink-2); transition: background .3s, border-color .3s;
}
.cs-hero__down:hover { background: rgba(255,255,255,.6); border-color: var(--ink-2); }
.cs-hero__down svg { animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.cs-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 96px);
  align-items: start; padding-top: clamp(56px, 7vw, 96px); max-width: 1440px;
}
.cs-panels { display: grid; gap: 24px; }
.cs-panel { margin: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 30px 60px -45px rgba(0,0,0,.25); }
.cs-panel img { width: 100%; height: auto; }
.cs-phones {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px);
  margin-top: 24px; padding: clamp(32px, 5vw, 64px); border-radius: 20px; background: #ecebe8;
}
.cs-phone { aspect-ratio: 390 / 800; border-radius: 26px; background: #111; padding: 6px; box-shadow: 0 30px 50px -28px rgba(0,0,0,.4); }
.cs-phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 21px; }

.cs-story { margin-top: 24px; background: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 64px); }
.cs-story__lead { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 2.1; letter-spacing: .04em; }
.cs-story h2 { margin: 44px 0 12px; font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.cs-story p { margin: 0 0 12px; font-size: 16px; line-height: 2.2; color: var(--ink-2); letter-spacing: .04em; }

.cs-aside { position: sticky; top: 120px; padding-top: 8px; }
.cs-aside__title { margin: 0 0 44px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: .1em; line-height: 1.4; }
.cs-aside dl { margin: 0; display: grid; gap: 26px; }
.cs-aside dt { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.cs-aside dd { margin: 4px 0 0; font-size: 17px; color: var(--ink-2); }
.cs-link { font-family: var(--font-en); border-bottom: 1px dotted var(--ink-3); transition: color .3s, border-color .3s; }
.cs-link:hover { color: var(--ink); border-color: var(--ink); }

.cs-next { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); text-align: center; }
.cs-next .eyebrow { justify-content: center; }
.cs-next__link { font-size: clamp(26px, 3.4vw, 44px); font-weight: 500; letter-spacing: .08em; border-bottom: 1px solid transparent; transition: border-color .4s, color .3s; }
.cs-next__link:hover { border-color: var(--ink); }

@media (max-width: 1024px) {
  .cs-main { grid-template-columns: 1fr; }
  .cs-aside { position: static; order: -1; }
  .cs-aside__title { margin-bottom: 28px; }
  .cs-aside dl { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .laptop { width: 90vw; }
  .laptop__screen { border-radius: 12px 12px 4px 4px; }
  .cs-panels { gap: 14px; }
  .cs-panel, .cs-story, .cs-phones { border-radius: 14px; }
  .cs-phones { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px 14px; }
  .cs-phone { border-radius: 14px; padding: 3px; }
  .cs-phone img { border-radius: 11px; }
  .cs-story p { font-size: 15px; }
  .foot__bar { grid-template-columns: 1fr; text-align: center; gap: 6px; }
  .foot__bar span:last-child { text-align: center; }
  .foot__inner { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .laptop { animation: none; }
}
.plan__badge--accent { background: #e4efe7; color: #2d6a43; font-weight: 500; }


/* back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(255,255,255,.85); transform: translateY(-2px); }

/* case page back button */
.header__right { display: flex; align-items: center; gap: 10px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px;
  font-size: 14.5px; letter-spacing: .04em; color: var(--ink);
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, transform .4s var(--ease);
}
.back-btn:hover { background: rgba(255,255,255,.9); transform: translateX(-2px); }
@media (max-width: 760px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .back-btn { height: 36px; font-size: 13.5px; padding: 0 12px 0 8px; }
}
.foot__bar a { color: inherit; transition: color .3s; }
.foot__bar a:hover { color: var(--ink); }
@media (max-width: 1024px) { .addons { grid-template-columns: 1fr; } }

/* video previews (cursor-trail case) */
.laptop__view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s var(--ease);
}
.case.is-playing .case__video { opacity: 1; }
.cs-panel--compare { background: #f3eee6; padding: clamp(14px, 2vw, 24px); }
.cs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 20px); }
.cs-compare > div { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.cs-compare img { width: 100%; height: auto; display: block; }
.cs-compare span {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; letter-spacing: .06em; color: var(--ink);
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 760px) { .cs-compare { grid-template-columns: 1fr; } }

/* add-ons back to two columns now that there are eight */
.addons { grid-template-columns: repeat(2, 1fr); }

/* case card that shows the whole screenshot (Rowenna) */
.case__shot--fit { background: #f5efe7; }
.case__shot--fit img { object-fit: cover; object-position: 50% 0; }
.case:hover .case__shot--fit img { object-position: 50% 0; }
.case__shot--fit .case__video { object-fit: contain; object-position: 50% 0; }
.case__shot--fit + .case__phone { top: 54%; }

/* professional services */
.svc { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.svc__list { display: grid; gap: clamp(40px, 5vw, 64px); }
.svc__item h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.svc__item p { margin: 0; font-size: 16px; line-height: 2; color: var(--ink-2); letter-spacing: .04em; }
@media (max-width: 1024px) { .svc { grid-template-columns: 1fr; } }


/* services: even, tidy line breaks */
.svc__item p { max-width: 34em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
