/* ============ Pulse Connect — global styles ============ */
:root {
  --bg: #0b0c0d;
  --bg-2: #111315;
  --bg-3: #17191c;
  --line: rgba(236, 239, 241, 0.12);
  --line-soft: rgba(236, 239, 241, 0.07);
  --ink: #eceff1;
  --muted: #8e9296;
  --accent: #9bd4e4;                        /* accent */
  --accent-soft: rgba(155, 212, 228, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "PingFang SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }

/* ---------- typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 28px;
}
.display { font-size: clamp(40px, 6vw, 84px); line-height: 1.04; }
.h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 640px; }
.small { font-size: 13.5px; color: var(--muted); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vw;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(11, 12, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 5vw;
  border-bottom-color: var(--line-soft);
}
.brand img { height: 54px; width: auto; transition: height 0.4s; }
.site-head.scrolled .brand img { height: 44px; }
.nav { display: flex; gap: 42px; align-items: center; }
.nav a {
  font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); transition: color 0.25s; position: relative;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1px; background: var(--accent);
}
.nav .cta {
  color: var(--ink); border: 1px solid var(--line);
  padding: 9px 22px; border-radius: 100px; transition: all 0.3s;
}
.nav .cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
/* language switch — segmented pill, current language highlighted */
.lang-switch {
  display: inline-flex; align-items: stretch; overflow: hidden;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 12px; letter-spacing: 0.08em; line-height: 1;
  /* explicit stack so 繁 renders identically on the English and Chinese pages */
  font-family: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
/* fixed pill, two exactly equal halves — identical geometry in both languages */
.lang-switch { width: 8em; }
.lang-switch > * {
  flex: 1 1 50%; min-width: 0; padding: 7px 0;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, background 0.3s;
}
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: rgba(236, 239, 241, 0.06); }
.lang-switch .on { background: var(--ink); color: var(--bg); font-weight: 600; }

/* ---------- Traditional Chinese pages ---------- */
html[lang="zh-Hant"] body { font-family: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3, html[lang="zh-Hant"] .serif,
html[lang="zh-Hant"] .next-case a.big-link, html[lang="zh-Hant"] .stat .big {
  font-family: "Fraunces", "Noto Serif TC", "Songti TC", Georgia, serif;
}
html[lang="zh-Hant"] .display, html[lang="zh-Hant"] .h2 { line-height: 1.22; }
.burger { display: none; background: none; border: 0; cursor: pointer; z-index: 110; padding: 9px; margin: -9px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: 0.3s; }

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;              /* nothing to tap — it's decorative */
}
/* iOS paints a big native play button whenever a video isn't playing.
   Hide it: if autoplay is blocked (e.g. Low Power Mode) the poster frame
   shows instead, which looks deliberate rather than broken. */
.hero video::-webkit-media-controls,
.hero video::-webkit-media-controls-enclosure,
.hero video::-webkit-media-controls-panel,
.hero video::-webkit-media-controls-play-button,
.hero video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}
.hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 12, 13, 0.62) 0%, transparent 22%),
    linear-gradient(to top, rgba(11, 12, 13, 0.96) 0%, rgba(11, 12, 13, 0.35) 34%, rgba(11, 12, 13, 0.12) 60%),
    linear-gradient(to right, rgba(11, 12, 13, 0.55), transparent 55%);
}
.hero-copy {
  position: absolute; left: 6vw; right: 6vw; bottom: 9vh; max-width: 780px;
}
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.05; margin-bottom: 22px; }
.hero-copy h1 em { font-style: italic; color: var(--accent); }
.hero-copy p { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); max-width: 540px; margin-bottom: 34px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 100px;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); transition: all 0.3s;
}
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }

/* ---------- sections ---------- */
section { padding: clamp(64px, 8vw, 116px) 0; }
section.tight { padding: clamp(44px, 6vw, 80px) 0; }
.sect-head { margin-bottom: clamp(36px, 4.5vw, 64px); }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2,0.6,0.2,1), transform 0.9s cubic-bezier(0.2,0.6,0.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.1s; } .rv.d2 { transition-delay: 0.2s; } .rv.d3 { transition-delay: 0.3s; }

/* ---------- masked line reveals ---------- */
.lines.rv { opacity: 1; transform: none; }
/* padding+negative margin keep descenders (g, y) visible inside the overflow mask */
.lines .ln { display: block; overflow: hidden; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.lines .ln > span {
  display: block; transform: translateY(130%);
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.2, 1);
}
.lines .ln:nth-child(2) > span { transition-delay: 0.12s; }
.lines .ln:nth-child(3) > span { transition-delay: 0.24s; }
.lines.in .ln > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lines .ln > span { transition: none; transform: none; }
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.pillar { background: var(--bg); padding: 48px 38px 56px; transition: background 0.4s; }
.pillar:hover { background: var(--bg-2); }
.pillar .num { font-family: var(--serif); font-size: 15px; color: var(--accent); margin-bottom: 26px; display: block; }
.pillar h3 { font-size: 22px; margin-bottom: 16px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- logo bar ---------- */
.logo-bar { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.logo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  gap: clamp(28px, 3.5vw, 48px) clamp(24px, 6vw, 90px);
  max-width: 860px; margin: 0 auto;
}
.logo-grid .lg { position: relative; display: flex; align-items: center; justify-content: center; height: 64px; }
.logo-grid .lg img {
  max-height: 46px; max-width: 124px; width: auto; object-fit: contain;
  transition: opacity 0.4s;
}
.logo-grid .lg img.c { position: absolute; inset: auto; opacity: 0; }
.logo-grid .lg img.w { opacity: 0.5; }
.logo-grid .lg:hover img.w { opacity: 0; }
.logo-grid .lg:hover img.c { opacity: 1; }

/* ---------- stats band ---------- */
.stats-band { position: relative; background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.stats-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.stats-band .wrap { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vw, 60px); }
.stat .big {
  font-family: var(--serif); font-size: clamp(52px, 6vw, 96px); line-height: 1;
  color: var(--ink); display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.stat .big .accent { color: var(--accent); }
.stat .label { color: var(--muted); font-size: 14px; max-width: 220px; }

.stats-band .big .accent { color: var(--ink); }

/* ---------- case teasers ---------- */
.case-teaser {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding: clamp(32px, 4vw, 54px) 0;
  border-top: 1px solid var(--line-soft);
}
.case-teaser:last-of-type { border-bottom: 1px solid var(--line-soft); }
.case-teaser.flip .media { order: 2; }
.case-teaser .media { overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.case-teaser .media img { width: 100%; height: clamp(300px, 34vw, 460px); object-fit: cover; transition: transform 1.2s cubic-bezier(0.2,0.6,0.2,1); }
.case-teaser:hover .media img { transform: scale(1.045); }
.case-teaser .k { font-family: var(--serif); font-size: clamp(44px, 5vw, 76px); line-height: 1; color: var(--accent); margin-bottom: 10px; }
.case-teaser .k-label { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.case-teaser h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 14px; }
.case-teaser p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
.text-link { font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 4px; transition: color 0.3s; }
.text-link:hover { color: var(--accent); }

/* ---------- big CTA ---------- */
.big-cta { text-align: center; }
.big-cta h2 { font-size: clamp(40px, 6vw, 88px); margin-bottom: 30px; }
.big-cta h2 em { font-style: italic; color: var(--accent); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 64px 0 44px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-grid img { height: 72px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--muted); font-size: 14px; transition: color 0.25s; }
.foot-col a:hover { color: var(--ink); }
.foot-col .t { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.copyright { margin-top: 52px; color: var(--muted); font-size: 12.5px; opacity: 0.7; }

/* ---------- inner page hero ---------- */
.page-hero { padding: calc(clamp(90px, 12vw, 160px) + 60px) 0 clamp(50px, 7vw, 100px); }
.page-hero .lede { margin-top: 26px; }

/* ---------- about ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.member .photo { overflow: hidden; border-radius: 6px; margin-bottom: 28px; background: var(--bg-3); max-width: 420px; }
.member .photo img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center 20%; filter: grayscale(0.25); transition: filter 0.5s, transform 1s cubic-bezier(0.2,0.6,0.2,1); }
.member:hover .photo img { filter: grayscale(0); transform: scale(1.03); }
.member h3 { font-size: 26px; margin-bottom: 4px; }
.member .role { color: var(--accent); font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.member p { color: var(--muted); font-size: 15px; max-width: 480px; }

.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stage { background: var(--bg); padding: 40px 30px 48px; }
.stage:hover { background: var(--bg-2); }
.stage .n { font-family: var(--serif); font-size: clamp(40px, 4vw, 60px); -webkit-text-stroke: 1px var(--accent); color: transparent; display: block; margin-bottom: 22px; }
.stage h3 { font-size: 19px; margin-bottom: 12px; }
.stage p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.stage .kpi { display: block; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); line-height: 2.2; }
.kpi .tag {
  display: inline-block; padding: 3px 13px; margin: 3px 4px 0 0;
  border: 1px solid rgba(155, 212, 228, 0.45); border-radius: 100px; white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), border-color 0.3s, background 0.3s;
}
.kpi .tag:nth-of-type(1) { transition-delay: 0.35s, 0.35s, 0s, 0s; }
.kpi .tag:nth-of-type(2) { transition-delay: 0.5s, 0.5s, 0s, 0s; }
.kpi .tag:nth-of-type(3) { transition-delay: 0.65s, 0.65s, 0s, 0s; }
.kpi .tag:nth-of-type(4) { transition-delay: 0.8s, 0.8s, 0s, 0s; }
.stage.in .kpi .tag { opacity: 1; transform: none; }
.stage:hover .kpi .tag { border-color: var(--accent); background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) {
  .kpi .tag { opacity: 1; transform: none; transition: border-color 0.3s, background 0.3s; }
}

/* ---------- services ---------- */
.svc-band { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.svc-band .amb {
  position: absolute; inset: -40%;
  background:
    radial-gradient(38% 42% at 30% 40%, rgba(155,212,228,0.16), transparent 70%),
    radial-gradient(44% 48% at 72% 62%, rgba(180,226,238,0.08), transparent 70%),
    radial-gradient(30% 36% at 55% 30%, rgba(236, 239, 241, 0.05), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(-3%, -2%) rotate(0deg) scale(1); }
  100% { transform: translate(3%, 3%) rotate(4deg) scale(1.08); }
}
.svc-band .wrap { position: relative; }
/* three-circle steps (Eliot-style badges) */
.orbits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 60px); padding: clamp(28px, 4vw, 48px) 0; }
.orbit { text-align: center; }
.orbit:nth-child(1) { margin-top: clamp(28px, 5vw, 84px); }
.orbit:nth-child(3) { margin-top: clamp(16px, 3vw, 50px); }
.badge {
  position: relative; width: clamp(98px, 10vw, 134px); aspect-ratio: 1;
  margin: 0 auto 28px; animation: orbFloat 7s ease-in-out infinite;
}
.orbit:nth-child(2) .badge { animation-delay: -2.3s; }
.orbit:nth-child(3) .badge { animation-delay: -4.6s; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.badge svg { position: absolute; overflow: visible; }
.badge .ring { top: 0; left: 0; width: 100%; height: 100%; }
.badge .ring circle {
  fill: none; stroke: var(--line); stroke-width: 1;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke 0.4s, stroke-dashoffset 1.3s cubic-bezier(0.3, 0.6, 0.2, 1);
}
.badge .ico {
  /* explicit centring — Safari mis-sizes an SVG positioned only with `inset` */
  top: 50%; left: 50%; width: 46%; height: 46%;
  transform: translate(-50%, -50%);
}
.badge .ico .s {
  fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.9s ease 0.45s;
}
.badge .dot { fill: var(--accent); transform: scale(0); transform-origin: center; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s; }
.ico-bubble .heart { fill: var(--accent); opacity: 0; transform: scale(0); transform-origin: center; transition: opacity 0.4s ease 1.1s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s; }
.ico-gauge .needle {
  stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
  transform: rotate(-105deg); transform-origin: 50% 66.7%;
  transition: transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 1s;
}
.orbit:nth-child(2) .ring circle { transition-delay: 0.12s; }
.orbit:nth-child(3) .ring circle { transition-delay: 0.24s; }
.orbit.in .ring circle { stroke-dashoffset: 0; }
.orbit.in .ico .s { stroke-dashoffset: 0; }
.orbit.in .dot { transform: scale(1); }
.orbit.in .ico-bubble .heart { opacity: 1; transform: scale(1); }
.orbit.in .ico-gauge .needle { transform: rotate(0deg); }
.orbit:hover .ring circle { stroke: var(--accent); }
.badge .ico-target { transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.orbit:hover .ico-target { transform: translate(-50%, -50%) rotate(90deg); }
.orbit:hover .ico-bubble .heart { animation: heartbeat 0.9s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.22); } 55% { transform: scale(1.05); } 75% { transform: scale(1.18); } }
.orbit:hover .ico-gauge .needle { transform: rotate(16deg); }
.orbit .on { display: block; color: var(--accent); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.orbit h3 { font-size: clamp(20px, 2.1vw, 26px); margin-bottom: 12px; }
.orbit p { color: var(--muted); font-size: 15px; max-width: 340px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .badge { animation: none; }
  .badge .ring circle, .badge .ico .s { stroke-dashoffset: 0; transition: none; }
  .badge .dot, .ico-bubble .heart { transform: scale(1); opacity: 1; transition: none; }
  .ico-gauge .needle { transform: none; transition: none; }
}
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.scope {
  position: relative; background: var(--bg); padding: 34px 30px 40px;
  transition: background 0.4s, transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.scope::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(155, 212, 228, 0.13), transparent 65%);
  transition: opacity 0.45s;
}
.scope-grid:hover .scope::before { opacity: 1; }
.scope::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0.6, 0.2, 1) 0.25s;
}
.scope.in::after { transform: scaleX(1); }
.scope:nth-child(2)::after { transition-delay: 0.4s; } .scope:nth-child(3)::after { transition-delay: 0.55s; }
.scope:nth-child(5)::after { transition-delay: 0.4s; } .scope:nth-child(6)::after { transition-delay: 0.55s; }
.scope:hover { background: var(--bg-2); transform: translateY(-5px); }
.scope h4 { font-size: 16.5px; margin-bottom: 10px; font-weight: 600; }
.scope p { color: var(--muted); font-size: 14px; }
.scope .gn {
  position: absolute; top: 24px; right: 26px; font-family: var(--serif);
  font-size: 32px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(236, 239, 241, 0.2);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.scope:hover .gn { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.scope .sico { width: 30px; height: 30px; margin-bottom: 18px; overflow: visible; }
.scope .sico .s {
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s ease 0.35s, stroke 0.4s;
}
.scope:nth-child(2) .sico .s { transition-delay: 0.5s, 0s; }
.scope:nth-child(3) .sico .s { transition-delay: 0.65s, 0s; }
.scope:nth-child(5) .sico .s { transition-delay: 0.5s, 0s; }
.scope:nth-child(6) .sico .s { transition-delay: 0.65s, 0s; }
.scope.in .sico .s { stroke-dashoffset: 0; }
.scope:hover .sico .s { stroke: var(--accent); }
.scope .sico .dot { fill: var(--accent); transform: scale(0); transform-origin: center; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s; }
.scope.in .sico .dot { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .scope .sico .s { stroke-dashoffset: 0; transition: stroke 0.4s; }
  .scope .sico .dot { transform: scale(1); transition: none; }
  .scope::after { transform: scaleX(1); transition: none; }
  .scope, .scope:hover { transform: none; }
}

/* ---------- work index ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); }
.work-card { display: block; }
.work-card .frame { overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.work-card img.cover { width: 100%; height: clamp(300px, 30vw, 430px); object-fit: contain; background: var(--bg-2); padding: clamp(14px, 1.6vw, 24px); transition: transform 1.2s cubic-bezier(0.2,0.6,0.2,1), opacity 0.5s; opacity: 0.92; }
.work-card:hover img.cover { transform: scale(1.03); opacity: 1; }
.work-card .meta {
  padding: 20px 4px 6px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.work-card .meta h3 { font-size: 21px; transition: color 0.3s; }
.work-card:hover .meta h3 { color: var(--accent); }
.work-card .meta .tag { color: var(--muted); font-size: 13px; margin-top: 5px; }
.work-card .meta .k {
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); white-space: nowrap; padding-bottom: 2px;
}

/* ---------- case study pages ---------- */
.case-hero { padding: calc(clamp(90px, 12vw, 150px) + 60px) 0 0; }
.case-hero .brand-tag { color: var(--accent); font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); padding: clamp(44px, 6vw, 80px) 0; }
.case-kv { border-radius: 6px; overflow: hidden; background: var(--bg-3); max-width: 860px; margin: 0 auto; }
.case-hero .stat .big .accent { color: var(--ink); }
.gallery.five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery.five img, .gallery.five video { width: 100%; aspect-ratio: 820 / 1600; height: auto; object-fit: cover; object-position: center top; border-radius: 5px; }
/* result band — headline callout above a case gallery */
.result-band {
  position: relative; text-align: center; max-width: 940px;
  margin: 0 auto clamp(32px, 4vw, 52px); padding: clamp(30px, 4vw, 48px) clamp(20px, 4vw, 56px);
  background: radial-gradient(120% 140% at 50% 0%, rgba(155, 212, 228, 0.10), transparent 62%);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.result-band .rb-label {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px;
  color: var(--accent); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
}
.result-band .rb-label::before, .result-band .rb-label::after {
  content: ""; width: clamp(24px, 5vw, 52px); height: 1px; background: var(--accent); opacity: 0.5;
}
.result-band h3 {
  font-size: clamp(23px, 3.1vw, 40px); line-height: 1.28; max-width: 800px; margin: 0 auto;
}
.result-band h3 em { font-style: normal; color: var(--accent); }
.back-row { text-align: center; margin-top: 44px; }
.case-kv img { width: 100%; height: auto; }
.case-body { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(32px, 6vw, 100px); }
.case-body h2 { font-size: clamp(26px, 3vw, 40px); position: sticky; top: 120px; }
.case-body .copy p { color: var(--muted); margin-bottom: 20px; }
.case-body .copy strong { color: var(--ink); font-weight: 600; }
.case-body ul { list-style: none; }
.case-body li { color: var(--muted); padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line-soft); position: relative; }
.case-body li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery.two { grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; height: clamp(220px, 24vw, 340px); object-fit: cover; border-radius: 5px; background: var(--bg-3); transition: transform 0.8s cubic-bezier(0.2,0.6,0.2,1); }
.gallery img:hover { transform: scale(1.025); }
.gallery img.tall { height: clamp(340px, 38vw, 520px); object-fit: contain; background: var(--bg-2); }
.next-case { border-top: 1px solid var(--line-soft); text-align: center; }
.next-case .t { color: var(--muted); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 18px; }
.next-case a.big-link { font-family: var(--serif); font-size: clamp(34px, 5vw, 66px); transition: color 0.3s; }
.next-case a.big-link:hover { color: var(--accent); }

/* ---------- case figure groups ---------- */
.fig-group { margin-bottom: clamp(40px, 5vw, 64px); }
.fig-group:last-child { margin-bottom: 0; }
.fig-group h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 10px; }
.fig-group .cap { color: var(--muted); font-size: 14.5px; max-width: 620px; margin-bottom: 26px; }
.gallery.natural { align-items: start; }
/* uniform tiles — equal-height flex produced mismatched widths */
.gallery.eq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery.eq img, .gallery.eq video {
  width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: center top; border-radius: 5px;
}
.stats-white .accent { color: var(--ink) !important; }
.gallery.natural img { height: auto; object-fit: unset; }
.gallery video { width: 100%; height: auto; border-radius: 5px; background: var(--bg-2); }
.zoomable { cursor: zoom-in; }

/* two identical-size tiles (wide dashboard screenshots) */
.gallery.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery.duo img { width: 100%; aspect-ratio: 1600 / 555; height: auto; object-fit: cover; border-radius: 5px; }

/* stacked full-width figures — every image the same width */
.gallery.stack { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gallery.stack img { width: min(100%, 860px); height: auto; object-fit: unset; }

/* ---------- auto-scrolling carousel ---------- */
.carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.car-track { display: flex; width: max-content; animation: car-scroll 55s linear infinite; }
.carousel:hover .car-track { animation-play-state: paused; }
.car-set { display: flex; gap: 14px; padding-right: 14px; }
.car-set img {
  /* same rendered height as the Real Techniques five-up gallery tiles */
  height: calc((min(1240px, 100vw) - 12vw - 56px) / 5 * 1.9512);
  width: auto; border-radius: 5px; background: var(--bg-3);
}
@keyframes car-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .car-track { animation: none; } }

/* ---------- mood-shot page headers ---------- */
.mood { position: relative; overflow: hidden; }
.mood .wrap { position: relative; z-index: 2; }
.mood-bg { position: absolute; inset: 0; z-index: 0; }
.mood-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.mood-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--bg) 2%, rgba(11, 12, 13, 0.86) 42%, rgba(11, 12, 13, 0.6) 100%);
}
.page-hero.mood { padding-bottom: clamp(80px, 10vw, 140px); }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .mood-bg img { animation: none; } }

/* ---------- cursor-follow work previews ---------- */
.hover-preview { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; will-change: transform; }
.hover-preview .card {
  width: clamp(220px, 24vw, 340px); border-radius: 6px; overflow: hidden;
  background: var(--bg-3); box-shadow: 0 30px 70px rgba(11, 12, 13, 0.5);
  opacity: 0; transform: scale(0.75) rotate(-3deg);
  transition: opacity 0.3s, transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.hover-preview.on .card { opacity: 1; transform: scale(1) rotate(0deg); }
.hover-preview img { width: 100%; height: auto; display: block; }

/* ---------- page transition ---------- */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.55s ease both; }
.pt {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background: linear-gradient(to top, var(--bg-2), var(--bg));
  transform: translateY(103%); will-change: transform;
}
.pt::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); }
.pt.enter { transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1); transform: translateY(0); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(9, 10, 11, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 4vmin;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; border-radius: 4px; }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 28px; background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: 34px; line-height: 1; font-family: var(--sans); opacity: 0.7;
}
.lightbox .lb-close:hover { opacity: 1; }

/* ---------- contact ---------- */
.contact-hero { min-height: 82svh; display: flex; align-items: center; padding-top: 120px; }
.contact-links { margin-top: 48px; display: flex; flex-direction: column; gap: 10px; }
.contact-links a {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 48px);
  color: var(--ink); transition: color 0.3s; width: fit-content;
}
.contact-links a:hover { color: var(--accent); }
.contact-links .lbl { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }
.contact-links a.wa {
  display: inline-flex; align-items: center; gap: 11px; font-family: var(--sans);
  font-size: 15px; letter-spacing: 0.02em; border: 1px solid var(--line);
  padding: 10px 22px 10px 18px; border-radius: 100px; margin-top: 6px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.contact-links a.wa svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.contact-links a.wa:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.form-card { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: clamp(26px, 3.4vw, 42px); }
.form-card h2 { font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 8px; }
.form-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line); border-radius: 5px; padding: 12px 14px;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card button { width: 100%; cursor: pointer; font-family: var(--sans); margin-top: 8px; }
.form-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: 5px; font-size: 14px; }
.form-status.ok { display: block; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); }
.form-status.err { display: block; background: rgba(236, 239, 241, 0.05); border: 1px solid var(--line); color: var(--muted); }

/* ---------- case-page CTA ---------- */
.case-cta { border-top: 1px solid var(--line-soft); text-align: center; }
.case-cta h2 { font-size: clamp(26px, 3.4vw, 46px); margin-bottom: 12px; }
.case-cta h2 em { font-style: italic; color: var(--accent); }
.case-cta p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .pillars, .funnel, .scope-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .case-teaser, .team-grid, .work-grid, .case-body { grid-template-columns: 1fr; }
  .case-teaser.flip .media { order: 0; }
  .case-stats { grid-template-columns: 1fr; gap: 36px; }
  .case-body h2 { position: static; margin-bottom: 8px; }
  .gallery, .gallery.two { grid-template-columns: 1fr 1fr; }
  .gallery.five { grid-template-columns: repeat(3, 1fr); }
  .orbits { grid-template-columns: 1fr; gap: 44px; }
  .orbit:nth-child(1), .orbit:nth-child(3) { margin-top: 0; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .nav {
    position: fixed; inset: 0; background: rgba(11, 12, 13, 0.97);
    flex-direction: column; justify-content: center; gap: 34px;
    opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 20px; }
  .lang-switch { font-size: 14px; }
  .lang-switch a { font-size: 14px; }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .brand img { height: 72px; }
  .site-head.scrolled .brand img { height: 58px; }
  .hero .scrim {
    background:
      linear-gradient(to top, rgba(11, 12, 13, 0.97) 8%, rgba(11, 12, 13, 0.72) 42%, rgba(11, 12, 13, 0.18) 68%);
  }
}
/* ---------- phone: touch comfort ---------- */
@media (max-width: 700px) {
  .foot-col { gap: 2px; }
  .foot-col a { padding: 9px 0; font-size: 15px; }   /* 28px -> 44px tap target */
  .foot-col .t { font-size: 12px; margin-bottom: 6px; }
  .contact-links .lbl { font-size: 12px; }
}

/* ---------- phone: case galleries ---------- */
@media (max-width: 700px) {
  /* Aqua Charge carousel: the desktop height divides a row by 5 — far too small on a phone */
  .car-set img { height: 340px; }
  .car-set { gap: 10px; padding-right: 10px; }
  /* small sets read better full-width; 4+ items become a tidy 2-up grid */
  .gallery.eq { grid-template-columns: 1fr; gap: 10px; }
  .gallery.eq:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .gallery, .gallery.two, .gallery.duo { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .gallery.five { grid-template-columns: repeat(2, 1fr); }
}
