/* AIGU Software — landing page
   Built from Figma frame "AIGU Software — 2515". Desktop values follow the 2515 frame
   (1550px content box, 3 × 516.66px columns) and scale down fluidly. */

@font-face {
  font-family: "Overused Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/RandomMaerks/Overused-Grotesk@main/fonts/variable/OverusedGrotesk-VF.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}
/* Handwritten lines (intro, hero slogan, signature). Patung has no Vietnamese accents,
   so those lines are written without them; Ms Madi is the fallback. */
@font-face {
  font-family: "Patung";
  src: url("assets/fonts/Patung.woff") format("woff"), url("assets/fonts/Patung.otf") format("opentype");
  font-display: swap;
}

/* Colour themes. Dark is the default; [data-theme="light"] flips the tokens, while the
   dark bands below keep the dark set so photos and blue panels read the same in both. */
:root {
  /* palette from cluster.software.aigu.vn */
  --bg: #000;
  --bg-2: #05080d;
  --bg-3: #0a0f16;
  --card: #0d141d;
  --card-2: #101a26;
  --fg: #f2f6fa;
  --fg-rgb: 242, 246, 250;
  --card-rgb: 13, 20, 29;
  --bg2-rgb: 5, 8, 13;
  --ink: var(--fg);
  --grey-text: #8b98a9;
  --line: rgba(var(--fg-rgb), 0.1);
  --line-soft: rgba(var(--fg-rgb), 0.05);
  --line-dark: rgba(var(--fg-rgb), 0.1);
  --muted: rgba(var(--fg-rgb), 0.6);
  --body: rgba(var(--fg-rgb), 0.68);
  --faint: rgba(var(--fg-rgb), 0.4);
  color-scheme: dark;
  --blue: #2196f3;
  --cyan: #29b6f6;
  --cyan-2: #00e5ff;
  --red: var(--cyan); /* accent (kept under the old name so every rule follows it) */
  --green: #26eb46;
}
:root[data-theme="light"] {
  --bg: #fff;
  --bg-2: #f2f6fa;
  --bg-3: #eef3f8;
  --card: #fff;
  --card-2: #e6edf5;
  --fg: #05080d;
  --fg-rgb: 5, 8, 13;
  --card-rgb: 255, 255, 255;
  --bg2-rgb: 242, 246, 250;
  --ink: var(--fg);
  --grey-text: #5f6e80;
  --line: rgba(var(--fg-rgb), 0.1);
  --line-soft: rgba(var(--fg-rgb), 0.05);
  --line-dark: rgba(var(--fg-rgb), 0.1);
  --muted: rgba(var(--fg-rgb), 0.6);
  --body: rgba(var(--fg-rgb), 0.68);
  --faint: rgba(var(--fg-rgb), 0.4);
  color-scheme: light;
  --red: #0288d1; /* deeper cyan keeps contrast on white */
}
:root[data-theme="light"] .bg-dark, :root[data-theme="light"] .footer, :root[data-theme="light"] .menu-panel, :root[data-theme="light"] .intro, :root[data-theme="light"] .preview, :root[data-theme="light"] .step.dark, :root[data-theme="light"] .facts, :root[data-theme="light"] .feat-red, :root[data-theme="light"] .feat-hand, :root[data-theme="light"] .float.dark, :root[data-theme="light"] .pf-feature {
  --bg: #000;
  --bg-2: #05080d;
  --bg-3: #0a0f16;
  --card: #0d141d;
  --card-2: #101a26;
  --fg: #f2f6fa;
  --fg-rgb: 242, 246, 250;
  --card-rgb: 13, 20, 29;
  --bg2-rgb: 5, 8, 13;
  --ink: var(--fg);
  --grey-text: #8b98a9;
  --line: rgba(var(--fg-rgb), 0.1);
  --line-soft: rgba(var(--fg-rgb), 0.05);
  --line-dark: rgba(var(--fg-rgb), 0.1);
  --muted: rgba(var(--fg-rgb), 0.6);
  --body: rgba(var(--fg-rgb), 0.68);
  --faint: rgba(var(--fg-rgb), 0.4);
  color-scheme: dark;
  --red: var(--cyan);
  color: var(--fg);
}

:root {

  --wrap: 1550px;
  --gutter: 32px;
  --col: calc(min(var(--wrap), 100vw - 2 * var(--gutter)) / 3);

  --fs-hero: clamp(52px, 6.2vw, 150px);
  --fs-display: clamp(48px, 5.4vw, 130px);
  --fs-h3: clamp(42px, 3.8vw, 90px);
  --fs-card: clamp(32px, 2.6vw, 60px);
  --fs-quote: clamp(28px, 2.1vw, 50px);
  --fs-h4: 25px;
  --section-pad: clamp(96px, 8vw, 200px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Overused Grotesk", "Inter", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would turn body into a scroller and break position: sticky */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.section { position: relative; }
.bg-concrete { background: var(--bg-3); }
.bg-dark { background: var(--bg-2); color: var(--fg); }

/* 3-column hairline grid that runs behind every section */
.lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lines::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  transform: translateX(-50%);
  border-inline: 1px solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) calc(100% / 3) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(200% / 3) 0 / 1px 100% no-repeat;
}
.bg-dark .lines::before {
  border-color: var(--line-dark);
  background:
    linear-gradient(var(--line-dark), var(--line-dark)) calc(100% / 3) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-dark), var(--line-dark)) calc(200% / 3) 0 / 1px 100% no-repeat;
}
.section > .wrap { z-index: 1; }

/* ---------- shared pieces ---------- */
.tag { display: inline-flex; align-items: center; gap: 15px; font-size: 14px; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1.25; }
.tag-mark { display: flex; align-items: center; }
/* the arrow bars are masks filled with the theme accent, so they follow light/dark */
.tag-mark i { display: block; height: 14px; background: var(--red); -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.tag-mark i:nth-child(1) { width: 12px; --m: url("assets/tag-bar-1.svg"); }
.tag-mark i:nth-child(2) { width: 10px; --m: url("assets/tag-bar-2.svg"); }
.tag-mark i:nth-child(3) { width: 8px; --m: url("assets/tag-bar-3.svg"); }
.tag-mark i:nth-child(4) { width: 6px; --m: url("assets/tag-bar-4.svg"); }
.tag-mark i:nth-child(5) { width: 4px; --m: url("assets/tag-bar-5.svg"); }
.tag-text { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; font-weight: 600; }
.tag-text .dash { font-weight: 400; }
.tag-text .sub { font-weight: 400; color: var(--faint); }
.bg-dark .tag-text .sub { color: rgba(var(--fg-rgb), 0.4); }

.lede { font-size: 16px; line-height: 1.4; letter-spacing: -0.05em; color: var(--body); max-width: 480px; }
.bg-dark .lede { color: rgba(var(--fg-rgb), 0.6); }

.h-display { font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.h-section { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.h-card { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.07em; line-height: 1.25; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 64px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase;
  border: 0; cursor: pointer; transition: background .25s;
}
.btn::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: currentColor; -webkit-mask: url("assets/icon-plus.svg") center / 20px no-repeat; mask: url("assets/icon-plus.svg") center / 20px no-repeat;
  transition: transform .3s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:hover::after { transform: rotate(90deg); }
.btn-light { background: transparent; color: var(--fg); border: 1px solid rgba(var(--fg-rgb), 0.25); }
.btn-light:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-red { background: var(--blue); }
.btn-red:hover { background: var(--fg); color: var(--bg); }
.btn-block { width: 100%; }

.avatars { display: flex; align-items: center; padding: 2px 3px; }
.avatars img, .avatars .more { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-right: -10px; border: 2px solid var(--bg); }
.avatars .more { display: grid; place-items: center; background: var(--card); color: var(--fg); font-size: 12px; font-weight: 600; margin-right: 0; }
.rating { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.rating .dots { display: flex; align-items: center; gap: 10px; }
.rating .dots i { display: inline-block; width: 7px; height: 7px; border-radius: 10px; background: var(--blue); margin-right: 3px; }
.rating .sub { color: rgba(var(--fg-rgb), 0.5); }
.rating .sub b { color: var(--fg); font-weight: 600; }
.proof { display: flex; align-items: center; gap: 17px; }

/* ---------- navbar ---------- */
/* The bar sits on top of the hero and scrolls away; .menu-fab stays fixed. */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 50; height: 44px;
  background: rgba(var(--card-rgb), 0.6); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: auto; }
.logo-name { font-size: 24px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; }
.logo-badge { font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey-text); padding-left: 10px; border-left: 1px solid var(--line); line-height: 1.2; }
.menu {
  position: absolute; left: 50%; transform: translateX(-50%); width: min(var(--wrap), 100% - 2 * var(--gutter));
  display: flex; justify-content: flex-end; height: 100%; pointer-events: none;
}
.menu ul { width: calc(100% / 3 * 2); display: flex; align-items: center; gap: clamp(32px, 4vw, 100px); pointer-events: auto; }
.menu a { position: relative; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 5px; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu a:hover::after { transform: scaleX(1); }
.menu sup { color: var(--red); font-size: 12px; font-weight: 600; letter-spacing: -0.06em; }

/* fixed menu button + panel */
.menu-fab {
  position: fixed; top: 0; right: 0; z-index: 70; width: 44px; height: 44px; padding: 0; border: 0;
  background: var(--card); cursor: pointer; transition: opacity .6s, background .25s;
}
.menu-fab:hover { background: var(--blue); }
.lang-fab {
  position: fixed; top: 0; right: 88px; z-index: 70; height: 44px; padding: 0 14px; border: 0;
  display: flex; align-items: center; gap: 8px; background: rgba(var(--card-rgb), 0.85); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); cursor: pointer; transition: opacity .6s, background .25s;
  font-size: 12px; font-weight: 700; letter-spacing: -0.02em;
}
.lang-fab span { color: rgba(var(--fg-rgb), 0.35); transition: color .25s; }
.lang-fab span.on { color: var(--fg); }
.lang-fab:hover span:not(.on) { color: var(--red); }
.menu-fab span { position: absolute; left: 13px; width: 18px; height: 2px; background: var(--fg); transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.menu-fab span:nth-child(1) { top: 17px; }
.menu-fab span:nth-child(2) { top: 25px; }
.menu-open .menu-fab span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-fab span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu-panel {
  position: fixed; top: 0; right: 0; z-index: 65; width: min(460px, 100%); max-height: 100dvh; overflow: auto;
  padding: 64px 40px 36px; background: rgba(var(--bg2-rgb), 0.86); color: var(--fg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .45s, transform .6s cubic-bezier(.22, 1, .36, 1), visibility 0s .6s;
}
.menu-open .menu-panel { visibility: visible; opacity: 1; transform: none; transition: opacity .45s, transform .6s cubic-bezier(.22, 1, .36, 1); }
.menu-panel li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; }
.menu-panel li a:hover { color: var(--red); }
.menu-panel .n { font-size: 12px; font-weight: 600; color: rgba(var(--fg-rgb), 0.4); letter-spacing: 0; }
.menu-panel li { border-bottom: 1px solid var(--line-dark); opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity .5s, filter .5s, transform .7s cubic-bezier(.22, 1, .36, 1); }
.menu-open .menu-panel li { opacity: 1; filter: none; transform: none; }
.menu-open .menu-panel li:nth-child(2) { transition-delay: .04s; }
.menu-open .menu-panel li:nth-child(3) { transition-delay: .08s; }
.menu-open .menu-panel li:nth-child(4) { transition-delay: .12s; }
.menu-open .menu-panel li:nth-child(5) { transition-delay: .16s; }
.menu-open .menu-panel li:nth-child(6) { transition-delay: .2s; }
.menu-open .menu-panel li:nth-child(7) { transition-delay: .24s; }
.mp-call { display: block; margin-top: 30px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.mp-call span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0; color: rgba(var(--fg-rgb), 0.5); margin-bottom: 6px; }

/* ---------- hero ---------- */
.hero { min-height: clamp(760px, 100svh, 1250px); background: var(--bg); display: flex; align-items: center; padding: 140px 0 110px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -20%; background: url("assets/grain.png") 0 0 / 256px 256px; mix-blend-mode: overlay; opacity: .15; pointer-events: none; animation: grain 1.2s steps(1) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-4%, 3%); }
  25% { transform: translate(5%, -5%); }
  37% { transform: translate(-6%, -2%); }
  50% { transform: translate(2%, 6%); }
  62% { transform: translate(-3%, -6%); }
  75% { transform: translate(6%, 2%); }
  87% { transform: translate(-1%, 4%); }
}
.hero { isolation: isolate; } /* the video sits at the back; the glow/veil (::before) paints over it */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; pointer-events: none; opacity: .6; }
/* blue glow over the lines, fading to black at the bottom */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.1)),
    radial-gradient(60% 55% at 78% 30%, rgba(33, 150, 243, 0.2), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(0, 229, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 40%, var(--bg));
}
.grad-blue { background: linear-gradient(90deg, var(--cyan-2), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.off { animation-play-state: paused; }
.hero-title { position: relative; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); transform-origin: 0 50%; }
.hero-script {
  position: absolute; left: var(--script-x, 43%); bottom: 0.14em; z-index: 1; pointer-events: none;
  font-family: "Patung", "Ms Madi", cursive; font-size: clamp(44px, 4.6vw, 112px); line-height: 1; color: var(--red);
  white-space: nowrap;
}
.hero-lede { margin-top: 36px; max-width: 1000px; font-size: clamp(18px, 1.1vw, 26px); line-height: 1.4; color: var(--grey-text); }
.hero-cta { margin-top: 56px; display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { width: 300px; max-width: 100%; }
.menu a.menu-demo { color: var(--red); }
.stats { margin-top: clamp(80px, 9vw, 140px); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { border-top: 1px solid rgba(var(--fg-rgb), 0.15); padding: 20px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stat b { font-size: clamp(30px, 1.9vw, 44px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.stat > span { font-size: clamp(14px, .8vw, 18px); color: var(--grey-text); }

/* ---------- services ---------- */
.services { padding: var(--section-pad) 0; }
.split { display: grid; grid-template-columns: 1fr 2fr; }
.svc-head { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 200px; padding-right: 40px; }
.svc-head .inner { display: flex; flex-direction: column; gap: 50px; }
.svc-head .inner .h-section, .svc-head .inner .lede { margin-top: -20px; }
.svc-more { display: flex; flex-direction: column; gap: 30px; padding-bottom: 20px; }
.svc-more h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.04em; margin-bottom: 4px; }
.svc-more .btn { width: 300px; }
.side-label { position: absolute; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; color: rgba(var(--fg-rgb), 0.5); z-index: 1; }
.svc-list { border-top: 1px solid var(--line); }
.svc { padding: 75px 0 50px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.svc-title { padding-left: 40px; display: flex; flex-direction: column; gap: 10px; }
.num { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.04em; display: flex; gap: 3px; align-items: baseline; }
.num span { font-weight: 400; color: var(--faint); }
.svc-title h3 { font-size: var(--fs-card); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.svc-media { display: grid; grid-template-columns: 1fr 1fr; height: 300px; }
.svc-media.single { grid-template-columns: 1fr; }
.svc-media figure { position: relative; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc:hover .svc-media img { transform: scale(1.04); }
.svc-media .corner { position: absolute; left: 0; top: 0; width: 63px; height: 63px; transform: rotate(-90deg); z-index: 1; object-fit: contain; }
.svc:hover .svc-media .corner { transform: rotate(-90deg); }
.svc-foot { display: grid; grid-template-columns: 1fr 1fr; }
.svc-foot .desc { padding: 0 40px; display: flex; flex-direction: column; gap: 20px; }
.svc-foot .desc p { color: var(--body); letter-spacing: -0.05em; }
.svc-foot .price { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.04em; }
.chips { padding: 0 40px; display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; }
.chips li { border: 1px solid var(--line); padding: 5px 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.4; }

/* ---------- portfolio ---------- */
.portfolio { padding: 200px 0 0; overflow: hidden; }
.pf-head { display: grid; grid-template-columns: 1fr 2fr; align-items: end; padding-bottom: 60px; }
.pf-head .lede { margin-top: 40px; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 60px; animation: marquee 22s linear infinite; }
.marquee-track span { font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.marquee-track sup { font-size: 14px; font-weight: 600; vertical-align: top; letter-spacing: 0; margin-left: 8px; opacity: .6; }
@keyframes marquee { to { transform: translateX(calc(-50% - 30px)); } }
.pf-feature { position: relative; padding: 120px 0; }
.pf-feature::before { content: ""; position: absolute; inset: 0; background: var(--feature-bg) center / cover no-repeat; filter: blur(18px) brightness(.45); transform: scale(1.1); }
.cases { display: flex; flex-direction: column; gap: 120px; padding-bottom: 120px; }
.pf-feature .cases { padding-bottom: 0; }
.case { position: relative; display: grid; grid-template-columns: 1fr 2fr; }
.case-img { order: 2; aspect-ratio: 1705 / 1224; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s ease; }
.case:hover .case-img img { transform: scale(1.03); }
.case-meta { order: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 0 40px 0 0; }
.case-meta .no { font-size: 14px; font-weight: 600; }
.case-meta .k { display: block; font-size: 11px; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.45); margin-bottom: 6px; }
.case-meta h3 { font-size: clamp(24px, 1.9vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: 14px; transition: color .3s; }
.case:hover .case-meta h3 { color: var(--red); }
.case-meta ul { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.case-meta li { border: 1px solid var(--line-dark); padding: 4px 10px; font-size: 13px; font-weight: 600; }
.case-meta .open { font-size: 12px; font-weight: 700; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.case-meta .open::after { content: "↗"; font-size: 16px; }
.more-cases { display: grid; grid-template-columns: 1fr 2fr; padding: 80px 0; border-top: 1px solid var(--line-dark); }
.more-cases .left { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; padding-right: 40px; }
.more-cases .btn { width: 200px; }
.more-list li { border-bottom: 1px solid var(--line-dark); }
.more-list a { display: grid; grid-template-columns: 1fr 1fr; padding: 22px 0; align-items: baseline; transition: color .3s, padding .3s; }
.more-list a:hover { color: var(--red); padding-left: 10px; }
.more-list .yr { padding-left: 14px; font-size: 12px; color: rgba(var(--fg-rgb), 0.45); text-transform: uppercase; }
.more-list b { font-size: 16px; font-weight: 600; letter-spacing: -0.04em; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.facts-row > div { padding: 30px 14px 40px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.facts-row b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; grid-row: span 2; color: var(--red); }
.facts-row h4 { font-size: 14px; font-weight: 700; }
.facts-row p { font-size: 13px; color: rgba(var(--fg-rgb), 0.55); }
.ticker { overflow: hidden; border-top: 1px solid var(--line-dark); padding: 6px 0 10px; }
.ticker-track { display: inline-flex; gap: 32px; white-space: nowrap; animation: marquee 30s linear infinite; font-size: 18px; font-weight: 600; letter-spacing: -0.04em; opacity: .29; }

/* ---------- process ---------- */
.process { padding: 0; }
.process-pin { position: relative; padding: 100px 0 120px; }
.step, .step .chip-num, .step .step-body p { transition: background-color .5s ease, color .5s ease; }
@media (min-width: 1025px) {
  /* motion.js pins the stage and walks the dark card through the steps */
  /* a spacer inside the section gives the sticky stage room to stay pinned */
  .js-motion .process::after { content: ""; display: block; height: var(--pin-run, 0px); }
  .js-motion .process-pin { position: sticky; top: var(--pin-top, 0px); }
}
.process-grid { display: grid; grid-template-columns: 2fr 1fr; padding-top: 100px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.step { min-height: 500px; padding: 50px; display: flex; flex-direction: column; justify-content: space-between; gap: 60px; border-bottom: 1px solid var(--line); }
.step.dark { background: var(--bg-2); color: var(--fg); }
.step-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; }
.chip-num { width: 47px; height: 47px; border-radius: 15px; background: var(--bg); color: var(--fg); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.step.dark .chip-num { background: var(--blue); color: var(--fg); }
.step-body { display: flex; flex-direction: column; gap: 29px; }
.step-body p { color: rgba(var(--fg-rgb), 0.6); letter-spacing: -0.05em; }
.step.dark .step-body p { color: #b8b8b8; }
.process-title { display: flex; flex-direction: column; justify-content: space-between; gap: 80px; padding-left: 40px; }.process-title .inner { display: flex; flex-direction: column; gap: 39px; }
.process-title .h-section { font-size: clamp(40px, 3.3vw, 80px); }
.pull { display: flex; flex-direction: column; gap: 40px; }
.pull > img { width: 44px; height: 35px; margin-left: 80px; }
.pull blockquote { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.3; max-width: 418px; }
.title-row { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 0; padding-bottom: 100px; }
.title-row .left { display: flex; flex-direction: column; gap: 39px; padding-right: 40px; }

/* ---------- features ---------- */
.features { padding: 200px 0 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 500px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat { position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.feat + .feat { border-left: 1px solid var(--line-soft); }
.feat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.feat .brand { font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.feat-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; } /* stays above the card picture */
.feat .avatars img { border-color: var(--bg-3); }
.feat-copy { display: flex; flex-direction: column; gap: 19px; position: relative; z-index: 1; }
.feat-copy p { color: var(--body); letter-spacing: -0.05em; }
.checks li { display: flex; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; letter-spacing: -0.04em; position: relative; }
.checks .ic { width: 22px; height: 22px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; }
.checks .ic img { width: 16px; height: 16px; }
.checks .info { margin-left: auto; width: 18px; height: 18px; opacity: .5; cursor: help; }
.checks .tip { position: absolute; left: -10px; bottom: 50px; width: 240px; padding: 20px; border-radius: 10px; background: var(--card); color: rgba(var(--fg-rgb), 0.7); font-size: 12px; font-weight: 400; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; z-index: 3; }
.checks li:hover .tip, .checks li:focus-within .tip { opacity: 1; transform: none; }
.u { text-decoration: underline; text-underline-offset: 3px; }
.feat-phone { padding: 0; }
.feat-phone .glow { position: absolute; left: 60px; right: 0; bottom: -120px; height: 378px; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); }
.feat-phone .giant { position: absolute; left: -89px; top: 34%; font-size: 200px; font-weight: 600; letter-spacing: -0.08em; line-height: .8; color: var(--fg); white-space: nowrap; }
.feat-phone .phone { position: absolute; left: 19%; top: 20px; width: 64%; height: auto; filter: hue-rotate(205deg); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 15px 25px 15px 15px; border-radius: 20px; background: rgba(var(--card-rgb), 0.4); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 2; }
.float .ico { width: 45px; height: 45px; border-radius: 30px; display: grid; place-items: center; background: var(--card); }
.float .ico i { width: 18px; height: 18px; background: var(--fg); -webkit-mask: var(--m) center / 18px no-repeat; mask: var(--m) center / 18px no-repeat; }
.float b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.3; }
.float span { font-size: 14px; color: rgba(var(--fg-rgb), 0.6); }
/* the three chips around the phone */
.feat-phone .f1 { right: 22px; top: 106px; }
.feat-phone .f2 { left: 23px; top: 197px; }
.feat-phone .f3 { right: 32px; bottom: 170px; }
.float.dark { background: var(--card); color: var(--fg); padding-right: 40px; }
.float.dark .ico { background: rgba(var(--fg-rgb), 0.2); }
.float.dark span { color: rgba(var(--fg-rgb), 0.5); }
.float .live { position: absolute; right: 15px; top: 15px; width: 6px; height: 6px; border-radius: 3px; background: var(--green); box-shadow: 0 0 0 4px rgba(38, 235, 70, 0.2); }
.feat-red { background: var(--blue); color: var(--fg); }
.feat-red .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.feat-red .top b { font-weight: 600; text-transform: uppercase; }
.feat-red .top span { color: rgba(var(--fg-rgb), 0.9); }
.grad { background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.feat-red .big { font-size: 130px; letter-spacing: -0.08em; line-height: 1; display: inline-block; }
.feat-red .small { font-size: 40px; letter-spacing: -0.02em; line-height: 1.2; display: block; width: fit-content; }
/* the ring and wheel photos sit on #f3f3f3, so their cards use that same light ground (in both themes):
   the objects float on the card instead of showing as pasted-on white boxes */
.feat-ring, .feat-wheel {
  --fg: #05080d; --fg-rgb: 5, 8, 13; --grey-text: #4a5868; --red: #0288d1;
  --line: rgba(5, 8, 13, 0.1); --line-soft: rgba(5, 8, 13, 0.05);
  --body: rgba(5, 8, 13, 0.72); --faint: rgba(5, 8, 13, 0.5);
  background: #f3f3f3; color: var(--fg);
}.feat-ring .ring { position: absolute; left: 31.5%; width: 49%; top: 115px; filter: hue-rotate(205deg); }
.feat-ring .head { display: flex; justify-content: space-between; align-items: baseline; }
.feat-ring .head span { font-size: 14px; color: var(--faint); }
.feat-hand { color: var(--fg); }
.feat-hand > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(205deg) saturate(.9); }
.feat-hand > * { position: relative; }
.feat-hand .val { font-size: 70px; font-weight: 700; line-height: 1.2; }
.feat-hand p { color: rgba(var(--fg-rgb), 0.5); letter-spacing: -0.05em; }
.feat-hand .label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(var(--fg-rgb), 0.6); }
.feat-hand .label::before { content: ""; width: 16px; height: 16px; background: var(--fg); -webkit-mask: url("assets/icon-arrow-up.svg") center / 16px no-repeat; mask: url("assets/icon-arrow-up.svg") center / 16px no-repeat; }
.feat-wheel .wheel { position: absolute; left: 7.74%; right: 5.26%; top: 42px; height: 376px; object-fit: contain; filter: hue-rotate(205deg); }
.feat-wheel .tag-mark { display: inline-flex; margin-left: 10px; }

/* ---------- pricing ---------- */
.pricing { padding: 200px 0 0; }
.pr-head { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.pr-head .left { display: flex; flex-direction: column; gap: 39px; }
.pr-head .center { display: flex; flex-direction: column; align-items: center; gap: 40px; }

/* ---------- who we are ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 640px; }
.who-col { display: flex; flex-direction: column; justify-content: space-between; padding: 110px 0 30px; }
.who-copy { justify-content: flex-start; gap: 80px; padding: 200px 40px 60px 0; }
.who-col.right { align-items: flex-end; justify-content: flex-start; gap: 20px; padding-top: 70px; } /* clear the fixed buttons */
.who-img { overflow: hidden; }
.who-img img { width: 100%; height: 100%; object-fit: cover; }
.who-img.left { width: 57%; aspect-ratio: 296 / 360; }
.who-img.right { width: 80%; aspect-ratio: 330 / 360; clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%, 0 50px); }
.who-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; }
.who-text { font-size: clamp(17px, 1.05vw, 20px); line-height: 1.45; letter-spacing: -0.03em; color: var(--body); max-width: 440px; }

/* ---------- custom apps ---------- */
.apps { padding: 200px 0 0; }
.apps-head { display: grid; grid-template-columns: 1fr 2fr; align-items: start; }
.apps-head .left { display: flex; flex-direction: column; gap: 39px; padding-right: 40px; }
.apps-head .h-section { padding-left: 40px; max-width: 1000px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-top: 1px solid var(--line); }
.apps-grid li { padding: 40px; border-bottom: 1px solid var(--line); }
.apps-grid li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line-soft); }
.apps-grid h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.05em; margin-bottom: 10px; }
.apps-grid p { color: var(--body); }
.apps-foot { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 60px 0 100px; }
.apps-foot p { display: flex; flex-direction: column; gap: 4px; color: var(--body); }
.apps-foot b { color: var(--fg); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.apps-foot .btn { width: 360px; }
.pill { border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; align-items: start; border-top: 1px solid var(--line); }
.plan { padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.plan.popular { margin-top: -60px; background: var(--bg); border-inline: 1px solid var(--line); }
.plan .name { display: flex; align-items: center; gap: 16px; }
.plan .name h3 { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.badge { background: var(--blue); color: var(--fg); border-radius: 20px; padding: 6px 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.plan .desc { color: var(--body); letter-spacing: -0.05em; min-height: 45px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; padding: 10px 0 30px; border-bottom: 1px solid var(--line); margin-inline: -40px; padding-inline: 40px; }
.plan .price b { font-size: 50px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan .price > span { color: rgba(var(--fg-rgb), 0.45); font-size: 18px; }
.plan h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.5); }
.incl li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; letter-spacing: -0.04em; }
.incl li::before { content: ""; flex: none; width: 16px; height: 16px; background: url("assets/pr-svg-2.svg") center / 14px no-repeat; }
.incl li.off { color: rgba(var(--fg-rgb), 0.4); font-weight: 400; }
.incl li.off::before { background-image: url("assets/pr-svg-6.svg"); }
.extras li::before { width: 20px; height: 20px; border-radius: 4px; background: var(--card) url("assets/pr-svg-3.svg") center / 12px no-repeat; }
.popular .extras li::before { background-color: var(--blue); }
.plan:first-child .extras li::before { background: url("assets/pr-svg-2.svg") center / 14px no-repeat; }
.plan .time { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(var(--fg-rgb), 0.45); }
.plan .time::before { content: ""; width: 16px; height: 16px; background: url("assets/pr-svg-4.svg") center / 16px no-repeat; }
.plan .time b { color: var(--fg); font-weight: 500; }
.pr-foot { text-align: center; padding: 60px 0; font-size: 12px; font-weight: 600; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.5); }

/* ---------- custom software (timeline) ---------- */
.software { padding: 200px 0; }
.sw-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.sw-left { display: flex; flex-direction: column; gap: 39px; padding-right: 40px; }
.sw-left .h-display { font-size: clamp(56px, 6.2vw, 150px); }
.sw-left .pull { margin-top: 60px; }
.sw-left .pull > img { width: 44px; height: 35px; margin-left: 80px; opacity: .3; }
/* one picture per timeline step, stacked; it stays pinned while the timeline scrolls past */
.sw-photo { position: sticky; top: 150px; align-self: start; margin-top: -10px; display: grid; }
.sw-photo img {
  grid-area: 1 / 1; width: 100%; aspect-ratio: 380 / 300; object-fit: cover; object-position: top;
  clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%, 0 50px); opacity: 0; transition: opacity .6s ease;
}
.sw-photo img.on { opacity: 1; }
.sw-photo img:first-child { filter: hue-rotate(205deg); } /* calendar: red pins and circle turn blue */
.timeline { position: relative; padding-left: 40px; }
/* grey track + accent fill; motion.js grows the fill with scroll (--tl-k), full when motion is off */
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; }
.timeline::before { bottom: 0; background: rgba(var(--fg-rgb), 0.15); }
.timeline::after { height: 100%; background: var(--blue); transform-origin: 50% 0; transform: scaleY(var(--tl-k, 1)); } /* scaled, not resized: no layout while scrolling */
.timeline li { position: relative; padding: 0 0 90px 30px; }
.timeline li::before { content: ""; position: absolute; left: -43px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.timeline .n { font-size: 12px; color: rgba(var(--fg-rgb), 0.6); }
.timeline h3 { margin: 22px 0 18px; font-size: 18px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.3; }
.timeline p { color: rgba(var(--fg-rgb), 0.72); letter-spacing: -0.04em; font-size: 15px; }
.timeline .n, .timeline h3, .timeline p { transition: color .5s ease; }
/* steps the line has not reached yet stay dim */
.js-motion .timeline li:not(.lit) :is(.n, h3, p) { color: rgba(var(--fg-rgb), 0.2); }

/* ---------- facts ---------- */
.facts { background: var(--blue); color: var(--fg); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { min-height: 343px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(var(--fg-rgb), 0.15); }
.fact:first-child { border-left: 1px solid rgba(var(--fg-rgb), 0.15); }
.fact .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; line-height: 1.3; }
.fact .top span:last-child { text-align: right; }
.fact b { font-size: clamp(64px, 5vw, 120px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* ---------- quote ---------- */
.quote { padding: 200px 0 120px; overflow: hidden; }
.quote .wrap { display: grid; grid-template-columns: 1fr 2fr; }
.quote-mark { display: block; width: 60%; max-width: 320px; aspect-ratio: 472 / 590; align-self: end; background: var(--red); -webkit-mask: url("assets/quote-svg-1.svg") center / contain no-repeat; mask: url("assets/quote-svg-1.svg") center / contain no-repeat; }
.quote-body { display: flex; flex-direction: column; gap: 60px; }
.quote-body blockquote { margin: 0; font-size: clamp(22px, 1.5vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.35; max-width: 820px; }
.quote-sign { font-family: "Patung", "Ms Madi", cursive; font-size: 72px; line-height: 1; color: var(--red); }

/* ---------- faq ---------- */
.faq { padding: 200px 0; }
.faq .wrap { display: grid; grid-template-columns: 1fr 2fr; }
.faq-head { display: flex; flex-direction: column; justify-content: space-between; gap: 80px; padding-right: 40px; }
.faq-head .inner { display: flex; flex-direction: column; gap: 39px; }
.faq-head .help { display: flex; flex-direction: column; gap: 24px; }
.faq-head h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; }
.faq-head .help p { color: var(--body); }
.faq-head .btn { width: 300px; }
.accordion { border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); overflow: hidden; }
.accordion summary { list-style: none; display: flex; align-items: center; gap: 15px; padding: 30px; cursor: pointer; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .n { width: 32px; height: 32px; display: grid; place-items: center; background: var(--bg-3); font-size: 12px; flex: none; }
.faq-ico { position: relative; margin-left: auto; width: 16px; height: 16px; flex: none; overflow: hidden; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("assets/icon-plus.svg") center / 16px no-repeat; mask: url("assets/icon-plus.svg") center / 16px no-repeat;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.faq-ico::after { transform: translateY(100%) rotate(45deg); }
.accordion details[open]:not(.closing) .faq-ico::before { transform: translateY(-100%); }
.accordion details[open]:not(.closing) .faq-ico::after { transform: rotate(45deg); }
.accordion .ans { padding: 0 30px 40px; display: flex; flex-direction: column; gap: 30px; }
.accordion .ans p { font-size: 16px; color: var(--body); letter-spacing: -0.04em; line-height: 1.45; max-width: 960px; }

/* ---------- subscribe ---------- */
.subscribe { padding: 80px 0; }
.subscribe .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.subscribe .wrap > * { min-width: 0; } /* let the columns shrink on very narrow phones */
.subscribe .left { display: flex; flex-direction: column; gap: 30px; }
.subscribe .h-display { font-size: clamp(44px, 3.6vw, 90px); }
.sub-form label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 14px; }
.sub-form .field { display: flex; }
.sub-form input { flex: 1; min-width: 0; height: 60px; border: 0; background: var(--bg-3); padding: 0 30px; font-size: 16px; }
.sub-form input:focus { outline: 2px solid var(--fg); outline-offset: -2px; }
.sub-form button { width: 60px; height: 60px; border: 0; background: var(--card); cursor: pointer; display: grid; place-items: center; }
.sub-form button::before { content: ""; width: 18px; height: 18px; background: var(--fg); -webkit-mask: url("assets/icon-arrow-up.svg") center / 18px no-repeat; mask: url("assets/icon-arrow-up.svg") center / 18px no-repeat; transform: rotate(45deg); }
.consent { font-size: 13px; color: rgba(var(--fg-rgb), 0.5); padding-left: 40px; }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form-note { margin-top: 10px; font-size: 13px; color: var(--grey-text); min-height: 18px; }

/* ---------- contact ---------- */
.contact { padding: 200px 0 100px; }
.contact .wrap { display: grid; grid-template-columns: 1fr 2fr; }
.ct-left { display: flex; flex-direction: column; gap: 60px; padding-right: 40px; }
.ct-left .inner { display: flex; flex-direction: column; gap: 39px; }
.ct-left h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.6); margin-bottom: 18px; }
.ct-left .big { font-size: clamp(22px, 1.4vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; display: block; }
.ct-left .big:hover { color: var(--red); }
.ct-left .addr { margin-top: 14px; color: rgba(var(--fg-rgb), 0.6); font-size: 14px; }
.ct-left .mail { display: block; margin-top: 6px; font-size: clamp(16px, 1vw, 20px); font-weight: 500; letter-spacing: -0.02em; }
.ct-left .mail:hover { color: var(--red); }
.ct-time { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ct-time span { color: rgba(var(--fg-rgb), 0.45); }
/* title row: big heading + response promise with the red bar gauge */
.ct-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ct-slots { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.5); }
.ct-slots b { color: var(--fg); font-weight: 600; }
.ct-slots .bars { display: inline-flex; gap: 3px; }
.ct-slots .bars i { width: 3px; height: 12px; background: rgba(var(--fg-rgb), 0.35); }
.ct-slots .bars i:nth-child(-n + 2) { background: var(--blue); }
/* email-style header, like composing a message */
.ct-mail { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 0 0 26px; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
.ct-mail span { display: inline-block; min-width: 76px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.45); }
.ct-mail em { font-style: normal; color: rgba(var(--fg-rgb), 0.85); }
.ct-right { display: flex; flex-direction: column; gap: 60px; }
.ct-form { display: grid; grid-template-columns: 1fr 1fr; }
.ct-form .f { position: relative; border-bottom: 1px solid var(--line-dark); padding: 26px 30px 18px 0; }
.ct-form .f.r { padding-left: 30px; } /* right-hand column */
.ct-form .f.full { grid-column: 1 / -1; padding-left: 0; }
.ct-form .f label { position: absolute; right: 18px; top: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ct-form .f label::after { content: ""; position: absolute; right: -18px; top: 6px; width: 8px; height: 8px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ct-form input, .ct-form textarea, .ct-form select { width: 100%; background: none; border: 0; color: var(--fg); font-size: 15px; padding: 10px 0; resize: vertical; }
/* themed dropdown built by script.js around each form <select> */
.ct-sel { position: relative; }
.ct-sel select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ct-sel-btn {
  position: relative; display: block; width: 100%; padding: 10px 28px 10px 0; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--fg); font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct-sel-btn.is-empty { color: rgba(var(--fg-rgb), 0.5); }
.ct-sel-btn::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg); transform: rotate(45deg); transition: transform .4s cubic-bezier(.22, 1, .36, 1), margin .4s;
}
.ct-sel.open .ct-sel-btn::after { transform: rotate(-135deg); margin-top: -2px; }
.ct-sel-btn:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
.ct-sel-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 6; max-height: 280px; overflow: auto; padding: 6px 0; outline: none;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5);
  clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden;
  transition: clip-path .45s cubic-bezier(.22, 1, .36, 1), opacity .25s, visibility 0s .45s;
}
.ct-sel.open .ct-sel-list { clip-path: inset(0 0 -40px 0); opacity: 1; visibility: visible; transition: clip-path .45s cubic-bezier(.22, 1, .36, 1), opacity .25s; }
.ct-sel-list li {
  position: relative; padding: 11px 18px 11px 30px; cursor: pointer; font-size: 14px; color: rgba(var(--fg-rgb), 0.75);
  transition: background .2s, color .2s, padding .3s cubic-bezier(.22, 1, .36, 1);
}
.ct-sel-list li:hover, .ct-sel-list li.active { background: rgba(var(--fg-rgb), 0.06); color: var(--fg); padding-left: 34px; }
.ct-sel-list li[aria-selected="true"] { color: var(--red); }
.ct-sel-list li[aria-selected="true"]::before { content: ""; position: absolute; left: 14px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--red); }
.ct-form input::placeholder, .ct-form textarea::placeholder { color: rgba(var(--fg-rgb), 0.5); }
.ct-form input:focus, .ct-form textarea:focus { outline: none; }
.ct-form .f:focus-within { border-color: rgba(var(--fg-rgb), 0.6); z-index: 2; }
.ct-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding-top: 40px; gap: 30px; }
.ct-actions .btn { width: 100%; }
.ct-actions .meta { font-size: 11px; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.6); line-height: 1.6; }
.ct-actions .meta b { display: block; font-weight: 600; color: rgba(var(--fg-rgb), 0.85); }
.ct-consent { grid-column: 1 / -1; font-size: 13px; color: rgba(var(--fg-rgb), 0.6); }
.ct-consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.ct-note { grid-column: 1 / -1; font-size: 13px; color: var(--green); min-height: 18px; }

/* ---------- projects page ---------- */
.proj-head { padding: clamp(160px, 17vw, 300px) 0 0; z-index: 3; } /* lets the industry list drop over the project list */
.proj-intro { display: grid; grid-template-columns: repeat(3, 1fr); }
.proj-intro > * { grid-column: 2 / 4; }
.proj-title { margin-top: 40px; font-size: clamp(56px, 5.6vw, 130px); }
.proj-intro .lede { margin-top: 40px; }
.proj-tools { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(80px, 10vw, 150px); }
/* industry filter: grey bar that drops a white list */
.proj-cat { grid-column: 1; position: relative; z-index: 5; }
.proj-cat-btn {
  position: relative; display: flex; align-items: center; width: 100%; height: 40px; padding: 0 48px 0 40px; border: 0; background: var(--bg-3); cursor: pointer;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; text-align: left;
}
.proj-cat-btn::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .4s cubic-bezier(.22, 1, .36, 1), margin .4s;
}
.proj-cat.open .proj-cat-btn::after { transform: rotate(-135deg); margin-top: -2px; }
.proj-cat-list {
  position: absolute; left: 0; right: 0; top: 100%; padding: 6px 0; background: var(--bg); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.25); outline: none;
  clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden;
  transition: clip-path .5s cubic-bezier(.22, 1, .36, 1), opacity .3s, visibility 0s .5s;
}
.proj-cat.open .proj-cat-list { clip-path: inset(0 0 -40px 0); opacity: 1; visibility: visible; transition: clip-path .5s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.proj-cat-list li {
  position: relative; display: flex; align-items: center; height: 36px; padding: 0 20px; cursor: pointer;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; transition: background .2s, color .2s, padding .3s cubic-bezier(.22, 1, .36, 1);
}
.proj-cat-list li:hover, .proj-cat-list li.active { background: var(--bg-3); padding-left: 26px; }
.proj-cat-list li[aria-selected="true"] { color: var(--red); }
.proj-cat-list li[aria-selected="true"]::before { content: ""; position: absolute; left: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }.proj-search { grid-column: 3; position: relative; }
.proj-search input {
  width: 100%; height: 40px; padding: 0 36px 0 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; outline: none;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em;
}
.proj-search input::placeholder { color: var(--fg); opacity: 1; }
.proj-search input:focus { border-bottom-color: var(--fg); }
.proj-search::after {
  content: ""; position: absolute; right: 4px; top: 13px; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; pointer-events: none;
  box-shadow: 5px 5px 0 -3.5px currentColor;
}

.proj-list { position: relative; background: var(--bg-2); color: var(--fg); padding: 60px 0; overflow: clip; } /* keep the blurred backdrop inside the list */
/* soft colour wash of the project in view, held behind the list */
.proj-bg { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; pointer-events: none; }
.proj-bg img {
  /* tiny pre-blurred images: scaling them up gives the blur for free, no filter needed */
  position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; opacity: 0; transition: opacity 1s ease;
}
.proj-bg img.on { opacity: .4; }
.proj-items { position: relative; z-index: 1; }
.proj { padding: clamp(50px, 6vw, 100px) 0; }
.proj-link { display: block; }
.proj-top, .proj-foot { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.proj-top { padding-bottom: 20px; }
.proj-top i { font-style: normal; color: rgba(var(--fg-rgb), 0.3); margin-right: 5px; }
.proj-top .no { color: rgba(var(--fg-rgb), 0.3); }
.proj-img { aspect-ratio: 1360 / 585; overflow: hidden; background: var(--card); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
.proj-link:hover .proj-img img { transform: scale(1.04); }
.proj-foot { padding: 20px 0; min-height: 86px; }
.proj-foot h2 { grid-column: 2; font-size: 14px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; transition: color .25s; }
.proj-link:hover .proj-foot h2 { color: var(--red); }
.proj-foot ul { grid-column: 3; display: flex; flex-direction: column; gap: 5px; font-weight: 600; color: rgba(var(--fg-rgb), 0.3); }
.proj-empty { position: relative; z-index: 1; padding: 120px 0; text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.5); }

@media (max-width: 1024px) {
  .proj-intro > * { grid-column: 1 / -1; }
  .proj-tools { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proj-search { grid-column: 2; }
}
@media (max-width: 700px) {
  .proj-tools { grid-template-columns: 1fr; }
  .proj-search { grid-column: 1; }
  .proj-foot { grid-template-columns: 1fr 1fr; gap: 16px; }
  .proj-foot h2 { grid-column: 1; line-height: 1.3; }
  .proj-foot ul { grid-column: 2; }
}

/* FAQ on the projects page: questions on the left two columns, heading on the right */
@media (min-width: 1025px) {
  .faq-flip .wrap { grid-template-columns: 2fr 1fr; }
  .faq-flip .faq-head { order: 2; padding: 0 0 0 40px; }
}

/* ---------- request a demo page ---------- */
.ct-demo-link { display: inline-flex; gap: 6px; font-size: 13px; color: rgba(var(--fg-rgb), 0.6); }
.ct-demo-link b { color: var(--fg); font-weight: 600; border-bottom: 1px solid var(--red); }
.ct-demo-link:hover b { color: var(--red); }

.demo-hero { padding: clamp(140px, 13vw, 220px) 0 clamp(80px, 8vw, 140px); overflow: hidden; }
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; opacity: .55; } /* hero-flow-blur.mp4 has the blur baked in: no per-frame filter */
.demo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg2-rgb), 0.2), rgba(var(--bg2-rgb), 0.85)); pointer-events: none; }
.demo-hero .wrap { z-index: 1; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 70px; }
.demo-slots { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
.demo-intro, .demo-form { grid-column: 2 / 4; }
.demo-intro { display: flex; flex-direction: column; gap: 36px; }
.demo-intro .h-display { font-size: clamp(52px, 6vw, 140px); line-height: 1.02; }
.demo-intro .lede { max-width: 560px; }

.demo-info { padding: clamp(80px, 8vw, 140px) 0; }
.demo-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.demo-contacts { padding-right: 40px; display: flex; flex-direction: column; }
.demo-contacts h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.demo-contacts .big { font-size: clamp(22px, 1.4vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; }
.demo-contacts .mail { margin-top: 6px; font-size: clamp(16px, 1vw, 20px); font-weight: 500; letter-spacing: -0.02em; }
.demo-contacts a:hover { color: var(--red); }
@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .demo-slots, .demo-intro, .demo-form { grid-column: 1; grid-row: auto; }
  .demo-slots { order: 3; }
  .demo-info-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .demo-contacts { padding: 0; }
}
@media (max-width: 700px) {
  .demo-info-grid { grid-template-columns: 1fr; }
}

/* ---------- client site preview ---------- */
.preview { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; visibility: hidden; transition: visibility 0s .6s; }
.preview.open { visibility: visible; transition: none; }
.preview-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .5s; }
.preview.open .preview-backdrop { opacity: 1; }
.preview-frame {
  --cut: 64px;
  position: relative; width: min(1400px, 100vw - 2 * var(--gutter) - 40px); height: calc(100dvh - 130px);
  opacity: 0; transform: translateY(40px) scale(.97); filter: blur(8px);
  transition: opacity .5s, transform .7s cubic-bezier(.22, 1, .36, 1), filter .5s;
}
.preview.open .preview-frame { opacity: 1; transform: none; filter: none; }
.preview-window {
  position: absolute; inset: 0; background: var(--bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
.preview-window iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.preview-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--faint); }
/* the cut-off corner is the close button: a triangle with a sharp red X */
.preview-close {
  position: absolute; left: 0; top: 0; z-index: 1; width: calc(var(--cut) - 6px); height: calc(var(--cut) - 6px); padding: 0; border: 0;
  background: var(--bg); clip-path: polygon(0 0, 100% 0, 0 100%); cursor: pointer; transition: background .25s;
}
.preview-close::before, .preview-close::after {
  content: ""; position: absolute; left: 9px; top: 17px; width: 18px; height: 2.5px; background: var(--blue);
  transform: rotate(45deg); transition: background .25s;
}
.preview-close::after { transform: rotate(-45deg); }
.preview-close:hover, .preview-close:focus-visible { background: var(--blue); }
.preview-close:hover::before, .preview-close:hover::after, .preview-close:focus-visible::before, .preview-close:focus-visible::after { background: var(--bg); }.preview-out { position: absolute; right: 0; top: calc(100% + 14px); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; color: var(--fg); }
.preview-out::after { content: " ↗"; }
.preview-out:hover { color: var(--red); }
html.preview-open { overflow: hidden; }
@media (max-width: 700px) {
  .preview-frame { --cut: 44px; width: calc(100vw - 24px); height: calc(100dvh - 110px); }
}
@media (prefers-reduced-motion: reduce) {
  .preview-frame, .preview-backdrop { transition: none; }
}

/* ---------- footer ---------- */
.footer { background: var(--bg-2); color: var(--fg); padding: 80px 0 30px; position: relative; overflow: hidden; }
.footer .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 40px 0; }
.ft-menu h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.5); margin-bottom: 22px; }
.ft-menu li { margin-bottom: 12px; }
.ft-menu a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.ft-menu a:hover { color: var(--red); }
.ft-menu sup { color: var(--red); margin-left: 4px; }
.ft-brand { display: flex; flex-direction: column; justify-content: space-between; }
.ft-brand .tagline { text-align: right; font-size: 11px; text-transform: uppercase; color: rgba(var(--fg-rgb), 0.5); }
/* the big wordmark: logo + AIGU, sized together from one font-size */
.ft-mark { display: flex; align-items: flex-end; gap: 0.12em; margin-top: 30px; font-size: clamp(96px, 15vw, 380px); }
.ft-logo { flex: none; width: auto; height: 0.74em; margin-bottom: 0.02em; }
.ft-word { font-size: 1em; font-weight: 600; letter-spacing: -0.07em; line-height: .8; }
.ft-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; padding-top: 30px; border-top: 1px solid var(--line-dark); font-size: 12px; color: rgba(var(--fg-rgb), 0.5); }
.ft-bottom b { color: var(--fg); font-weight: 600; }
.ft-bottom .links { display: flex; gap: 40px; justify-content: flex-end; }
.ft-bottom a:hover { color: var(--fg); }

/* handwritten line moved under the title when it would not fit beside it */
.hero-title.script-below .hero-script { position: relative; left: 0; bottom: 0; display: block; margin: 0.08em 0 -0.1em 0.2em; }

/* theme switch: a half-filled disc that turns over */
.theme-fab {
  position: fixed; top: 0; right: 44px; z-index: 70; width: 44px; height: 44px; padding: 0; border: 0; display: grid; place-items: center;
  background: rgba(var(--card-rgb), 0.85); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); color: var(--fg); cursor: pointer;
  border-left: 1px solid var(--line); transition: opacity .6s, color .25s;
}
.theme-fab i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform .6s cubic-bezier(.7, 0, .2, 1); }
:root[data-theme="light"] .theme-fab i { transform: rotate(180deg); }
.theme-fab:hover { color: var(--red); }
.is-intro .theme-fab { opacity: 0; }
/* theme switch: script.js reveals the new snapshot as a growing circle; no default cross-fade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }

/* light theme details */
/* hero backgrounds (home + demo): dark theme the blue flow, light theme the original white lines */
.vid-light { display: none; }
:root[data-theme="light"] .vid-dark { display: none; }
:root[data-theme="light"] .hero-video.vid-light { display: block; opacity: .8; }
:root[data-theme="light"] .demo-video.vid-light { display: block; opacity: .8; }
/* a white veil behind the copy keeps the grey lines from muddying the text */
:root[data-theme="light"] .hero { background: #f4f6f9; }
:root[data-theme="light"] .hero-lede { color: #3a4654; }
:root[data-theme="light"] .stat > span, :root[data-theme="light"] .rating .sub { color: #3a4654; }
:root[data-theme="light"] .hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.15)),
    radial-gradient(60% 55% at 78% 30%, rgba(33, 150, 243, 0.16), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--bg));
}
/* lighter greys read too faint on white */
:root[data-theme="light"] { --faint: rgba(5, 8, 13, 0.5); --body: rgba(5, 8, 13, 0.75); --grey-text: #4a5868; }
:root[data-theme="light"] .chip-num { background: var(--fg); color: var(--bg); }
:root[data-theme="light"] .step.dark .chip-num { background: var(--blue); color: #fff; }
:root[data-theme="light"] .nav:not(.bg-dark) .logo-mark, :root[data-theme="light"] .corner { filter: invert(1); }
:root[data-theme="light"] .grad-blue { background-image: linear-gradient(90deg, #0288d1, #1565c0); }

/* ---------- motion (motion.js) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped, html.is-intro { overflow: hidden; }

/* waiting states before an element scrolls into view */
.js-motion [data-m]:not(.m-done),
.js-motion [data-mt]:not(.m-done) .m-p { opacity: 0; }
.m-w, .m-c { display: inline-block; }
.m-w { white-space: nowrap; }

/* rolling digits: the ghost digit sets the size, the strip spins behind a clip */
.rd { position: relative; display: inline-block; clip-path: inset(0 -0.15em); }
.rd-ghost { visibility: hidden; }
.rd-strip { position: absolute; left: 0; top: 0; width: 100%; text-align: center; white-space: pre; }

/* hover: the label rolls up and a copy rolls in from below */
.roll { display: inline-grid; clip-path: inset(0); margin-block: -0.3em; }
.roll > span { grid-area: 1 / 1; padding-block: 0.3em; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.roll-b { transform: translateY(100%); }
:is(a, button):is(:hover, :focus-visible) > .roll .roll-a { transform: translateY(-100%); }
:is(a, button):is(:hover, :focus-visible) > .roll .roll-b { transform: none; }

/* looping animations rest while off screen (script.js toggles .is-off) */
.marquee.is-off .marquee-track, .ticker.is-off .ticker-track, .hero.is-off::after { animation-play-state: paused; }

/* progressive blur along the bottom of the viewport */
.edge-blur { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: 40; pointer-events: none; transition: opacity .8s; }
.edge-blur i {
  position: absolute; inset: 0;
  backdrop-filter: blur(var(--b)) saturate(120%); -webkit-backdrop-filter: blur(var(--b)) saturate(120%);
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--from), #000 var(--to));
  mask-image: linear-gradient(to bottom, transparent var(--from), #000 var(--to));
}
.edge-blur.is-end { opacity: 0; } /* off at the bottom of the page (motion.js) */
.is-intro .edge-blur, .is-intro .menu-fab, .is-intro .lang-fab { opacity: 0; }

/* intro: script line writes in, then the two halves part */
.intro, .js-motion.skip-intro .intro { display: none; }
.js-motion .intro-script { visibility: hidden; }
.js-motion.font-ready .intro-script { visibility: visible; }
.js-motion .intro {
  display: block; position: fixed; inset: 0; z-index: 100; color: var(--fg);
  animation: intro-failsafe 0s 7s forwards; /* never trap the page if the script fails */
}
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro-half { position: absolute; top: 0; bottom: 0; width: 50.1%; background: #000; }
.intro-half.l { left: 0; transform-origin: 50% 0; }
.intro-half.r { right: 0; transform-origin: 50% 100%; }
.intro-script {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center;
  font-family: "Patung", "Ms Madi", cursive; font-size: clamp(34px, 3.2vw, 64px); line-height: 1.2;
}
.intro-brand { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.06em; }
.intro-brand img { width: 30px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .ticker-track, .hero::after { animation: none; }
  html { scroll-behavior: auto; }
  .roll > span, .menu-panel, .menu-panel li { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .feat-phone .giant { font-size: 150px; }
  .feat-red .big { font-size: 100px; }
  .feat-red .small { font-size: 30px; }
  .step { padding: 36px; min-height: 420px; }
  .process-title .h-section { margin-right: 0; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .lines { display: none; }
  .menu, .side-label { display: none; }
  .nav-inner { padding-right: 60px; }

  .split, .pf-head, .more-cases, .process-grid, .title-row, .faq .wrap, .contact .wrap, .quote .wrap, .footer .wrap { grid-template-columns: 1fr; }
  .svc-head { position: static; gap: 40px; padding: 0 0 60px; }
  .process-grid { gap: 60px; }
  .process-title { order: -1; }
  .title-row .left, .faq-head, .ct-left { padding-right: 0; }
  .title-row { gap: 40px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  /* shorter cards: the pictures stop above the card's text instead of running under it */
  .feat-wheel .wheel { top: 44px; height: calc(100% - 170px); }
  .feat-ring .ring { left: 0; right: 0; top: 64px; width: auto; height: calc(100% - 200px); margin: 0 auto; }
  .feat:nth-child(n) { border: 0; border-bottom: 1px solid var(--line); }
  .pr-head { grid-template-columns: 1fr; gap: 40px; }
  .pr-head .center { align-items: flex-start; }
  .plans { grid-template-columns: 1fr; }
  .apps-head { grid-template-columns: 1fr; gap: 40px; }
  .who-grid { grid-template-columns: 1fr 1fr; min-height: 0; padding: 80px 0; gap: 40px; }
  .who-copy { grid-column: 1 / -1; order: -1; padding: 0; gap: 32px; }
  .who-col { padding: 0; gap: 16px; }
  .who-col.right { padding: 0; }
  .who-img.left, .who-img.right { width: 100%; }
  .apps-head .left, .apps-head .h-section { padding-inline: 0; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .apps-grid li:not(:nth-child(3n + 1)) { border-left: 0; }
  .apps-grid li:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .plan.popular { margin-top: 0; border-inline: 0; border-block: 1px solid var(--line); }
  .sw-grid { grid-template-columns: 1fr 1fr; gap: 60px 40px; }
  .sw-left { grid-column: 1 / -1; padding-right: 0; }
  .sw-photo { top: 80px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { min-height: 220px; border-left: 1px solid rgba(var(--fg-rgb), 0.15); border-bottom: 1px solid rgba(var(--fg-rgb), 0.15); }
  .quote-mark { width: 120px; margin-bottom: 40px; }
  .subscribe .wrap { grid-template-columns: 1fr; gap: 30px; }
  .consent { padding-left: 0; }
  .faq-head { padding-bottom: 60px; gap: 40px; }
  .ct-left { padding-bottom: 60px; }
  .ft-brand .tagline { text-align: left; }
  .case { grid-template-columns: 1fr; }
  .case-meta { order: 2; padding: 20px 0 0; }
  .process-title { padding-left: 0; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; --section-pad: 88px; }
  .hero { padding: 110px 0 70px; min-height: auto; }
  .hero-script { position: relative; left: 0; bottom: 0; margin: 6px 0 -14px 10%; font-size: 7.6vw; }
  .hero-cta { gap: 24px; }
  .menu-panel { padding: 64px 24px 28px; }
  .menu-panel li a { font-size: 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .svc-title, .svc-foot .desc, .chips { padding-inline: 0; }
  .svc-media { height: 200px; }
  .svc-foot { grid-template-columns: 1fr; gap: 24px; }
  .svc-more .btn, .faq-head .btn, .more-cases .btn { width: 100%; }
  .portfolio, .features, .pricing { padding-top: 96px; }
  .cases { gap: 64px; }
  .case-meta { grid-template-columns: 1fr; gap: 10px; }
  .case-meta > div { padding-left: 0; }
  .facts-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 28px; gap: 48px; }
  .feat-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .feat { min-height: 460px; padding: 28px; }
  .feat-hand, .feat-red { min-height: 380px; }
  .feat-phone { min-height: 560px; }
  .feat-phone .float { padding: 10px 16px 10px 10px; }
  .feat-phone .f1 { right: 12px; top: 70px; }
  .feat-phone .f2 { left: 12px; top: 210px; }
  .feat-phone .f3 { right: 12px; top: 350px; bottom: auto; }
  .stat b { font-size: 26px; }
  .plan { padding: 28px 0; }
  .plan .price { margin-inline: 0; padding-inline: 0; }
  .plan .price b { font-size: 40px; }
  .software, .faq, .quote { padding: 96px 0; }
  .apps { padding-top: 96px; }
  .apps-grid { grid-template-columns: 1fr; margin-top: 60px; }
  .apps-grid li { padding: 28px 0; }
  .apps-grid li:nth-child(even) { border-left: 0; }
  .apps-foot { flex-direction: column; align-items: stretch; padding-bottom: 80px; }
  .apps-foot .btn { width: 100%; }
  .process-pin { padding: 60px 0 96px; }
  .sw-grid { grid-template-columns: 1fr; }
  /* one column: the sticky photo would sit on top of the timeline text, so it goes */
  .sw-photo { display: none; }
  /* footer: the page links repeat the menu, so phones get just the wordmark and the fine print */
  .ft-menu { display: none; }
  /* contact, phone order: heading and response time first, then how to reach us, then the form */
  .contact .wrap { display: flex; flex-direction: column; }
  .ct-left, .ct-right { display: contents; }
  /* spacing: 48px between groups (intro, heading, contacts, form), 12-20px inside a group */
  .ct-left .inner { order: 1; gap: 20px; }
  .ct-title { order: 2; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 44px; }
  .ct-slots { padding-bottom: 0; }
  .ct-left > div:not(.inner) { order: 3; margin-top: 48px; }
  .ct-left h4 { margin-bottom: 12px; }
  .ct-left .big { font-size: 30px; }
  .ct-left .mail { margin-top: 4px; }
  .ct-left .addr { margin-top: 10px; }
  .ct-time { order: 4; margin-top: 20px; }
  .ct-right > .ct-form { order: 5; margin-top: 48px; }
  .ct-mail { padding-bottom: 20px; }
  .ct-consent { padding-top: 16px; }
  .ct-note { min-height: 0; }
  .accordion { border-inline: 0; }
  .accordion summary { padding: 22px 0; }
  .accordion .ans { padding: 0 0 28px; }
  /* the form keeps its pairs side by side on phones (name | phone, email | industry), like a compact sheet */
  .ct-form .f { padding: 30px 12px 14px 0; }
  .ct-form .f.r { padding-left: 12px; padding-right: 0; }
  .ct-form .f label { right: 14px; font-size: 10px; }
  .ct-form .f label::after { right: -14px; }
  .ct-form input, .ct-form textarea, .ct-sel-btn { font-size: 14px; }
  .ct-actions { grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; padding-top: 28px; }
  .ct-actions .btn { height: auto; min-height: 60px; padding: 12px 44px 12px 16px; justify-content: flex-start; text-align: left; line-height: 1.35; } /* a two-line label reads as intended */
  .contact { padding: 96px 0 64px; }
  .footer { padding-top: 48px; }
  .ft-mark { margin-top: 20px; }
  .ft-bottom { grid-template-columns: 1fr; gap: 12px; }
  .ft-bottom .links { justify-content: flex-start; }
}
