/* ==========================================================
   OneGrid Technologies — quiet, precise, one pink accent
   ========================================================== */
:root {
  --pink: #FF2D6B;        /* OneGrid Pink: actions and small accents only */
  --pink-ink: #E0144F;    /* pink for text on light grounds (contrast) */
  --navy: #1B1B3A;        /* Indigo Navy: type, dark sections */
  --navy-2: #24244A;
  --lav: #E9D5FF;
  --soft: #FFE4ED;
  --bg: #FFFFFF;
  --tint: #F8FAFC;        /* Light Gray: alternate sections */
  --white: #FFFFFF;
  --ink: #1B1B3A;
  --muted: #6A6A86;
  --line: rgba(27, 27, 58, .09);

  --display: "Geist", system-ui, -apple-system, sans-serif;
  --body: "Geist", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --apple: cubic-bezier(.22, .8, .2, 1);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* clip, not hidden: no sideways scroll on phones, and sticky elements keep working */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--body); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
p { margin: 0; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; will-change: transform; }

.h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; max-width: 18ch; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tint { background: var(--tint); }
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.head__note { color: var(--muted); max-width: 32ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pink); color: #fff; font: 500 .9375rem/1 var(--body); text-decoration: none; letter-spacing: -.01em;
  transition: background .3s var(--apple), color .3s, transform .3s var(--apple);
}
.btn:hover { background: var(--navy); }
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; }
.btn--small { height: 38px; padding: 0 18px; font-size: .875rem; }
.btn--quiet { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn--quiet:hover { background: var(--tint); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--pink-ink); box-shadow: inset 0 0 0 1px var(--pink); }
.btn--ghost:hover { background: var(--pink); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px;
  height: 68px; padding: 0 var(--gutter); transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(255, 255, 255, .8); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__progress { display: none; }
.nav__brand { margin-right: auto; color: var(--navy); }
.nav__logo { height: 24px; width: auto; aspect-ratio: 2402 / 509; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 450; font-size: .875rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--navy); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 128px 0 40px; overflow: hidden; }
/* Signature: the OneGrid grid. Faint lines; tiles light up in brand colours under the cursor */
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(27, 27, 58, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 27, 58, .055) 1px, transparent 1px);
  background-size: var(--cell, 32px) var(--cell, 32px);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 85%);
}
.hero__tiles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: min(68svh, 640px); }
.hero__title { margin-top: 22px; font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; max-width: 13.5ch; color: var(--navy); }
.hero__sub { margin-top: 22px; font-size: 1.125rem; color: var(--muted); max-width: 36ch; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; cursor: pointer; }
.hero__stage::before { /* a soft light behind the mark */
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 45, 107, .12), rgba(233, 213, 255, .3) 45%, transparent 70%);
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.hero__meta span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 1px 0; border-radius: 2px; background: var(--c); }

/* ---------- Showreel ---------- */
.reel { padding: clamp(24px, 4vw, 48px) 0 0; }
.reel__frame {
  position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; background: var(--tint); transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 0 0 1px var(--line);
}
.reel__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__cursor {
  position: absolute; left: 0; top: 0; z-index: 2; height: 40px; padding: 0 18px; margin: -20px 0 0 -50px; border: 0; border-radius: 999px;
  background: rgba(27, 27, 58, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font: 500 .8125rem/1 var(--body); cursor: pointer; white-space: nowrap;
  transform: translate(var(--x, 0px), var(--y, 0px));
}
.reel__pause { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(27, 27, 58, .6); backdrop-filter: blur(10px); }
.reel__pause::before, .reel__pause::after { content: ""; position: absolute; top: 13px; width: 3px; height: 12px; background: #fff; border-radius: 2px; }
.reel__pause::before { left: 14px; } .reel__pause::after { right: 14px; }
.reel__pause.is-paused::after { display: none; }
.reel__pause.is-paused::before { left: 15px; top: 12px; width: 0; height: 0; background: none; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-radius: 0; }

/* ---------- Services: intro + full-width colour rows ---------- */
.services { padding-bottom: 0; }
.svc-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.svc-intro p { color: var(--muted); font-size: 1.0625rem; max-width: 46ch; justify-self: end; }
.acc__item { --bg: var(--pink); --fg: #fff; --sub: rgba(255, 255, 255, .82); --chip: rgba(255, 255, 255, .16); background: var(--bg); color: var(--fg); }
.acc__item--lav { --bg: var(--lav); --fg: var(--navy); --sub: #4A4A6E; --chip: rgba(27, 27, 58, .07); }
.acc__item--navy { --bg: var(--navy); --sub: #B4B4D2; --chip: rgba(255, 255, 255, .08); }
.acc__item--soft { --bg: var(--soft); --fg: var(--navy); --sub: #5A4A62; --chip: rgba(27, 27, 58, .06); }
.acc__item--plum { --bg: #8D2452; --sub: rgba(255, 255, 255, .78); --chip: rgba(255, 255, 255, .12); }
.acc__item + .acc__item { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.acc__head { margin: 0; font: inherit; }
.acc__btn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acc__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 3vw, 34px) 0; }
.acc__title { font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; transition: transform .6s var(--apple); }
.acc__btn:hover .acc__title { transform: translateX(10px); }
.acc__plus { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; opacity: .9; transition: transform .5s var(--apple), background .3s; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; border-radius: 2px; }
.acc__plus::after { transform: rotate(90deg); }
.acc__btn:hover .acc__plus { background: var(--chip); }
.is-open .acc__plus { transform: rotate(135deg); }
/* the panel opens by animating its row height from 0 to its content */
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--apple); }
.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; }
.acc__body { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: end; padding-bottom: clamp(32px, 5vw, 64px);
  opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .7s var(--apple); }
.is-open .acc__body { opacity: 1; transform: none; transition-delay: .15s; }
.acc__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; font-size: .9375rem; }
.acc__copy p { margin-top: 28px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--sub); max-width: 34ch; }
.acc__tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.acc__tags li { padding: 6px 12px; border-radius: 999px; font-size: .8125rem; background: var(--chip); }
.acc__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: .9375rem; font-weight: 500; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.acc__link::after { content: "→"; transition: transform .3s var(--apple); }
.acc__link:hover::after { transform: translateX(4px); }
.acc__media { margin: 0; aspect-ratio: 16 / 10; min-height: 0; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.acc__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--apple); }
.is-open .acc__media img { transform: none; }
.acc__media--chat { display: grid; place-items: center; padding: 24px; background: rgba(255, 255, 255, .05) radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px) 0 0 / 18px 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.chat { width: min(100%, 380px); display: grid; gap: 10px; }
.chat__msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .875rem; line-height: 1.45; }
.chat__msg--in { justify-self: start; background: #fff; color: var(--navy); border-bottom-left-radius: 4px; }
.chat__msg--out { justify-self: end; background: var(--pink); color: #fff; border-bottom-right-radius: 4px; }
.is-open .chat__msg { animation: chatin .5s var(--apple) both; }
.is-open .chat__msg:nth-child(2) { animation-delay: .5s; }
.is-open .chat__msg:nth-child(3) { animation-delay: 1s; }
.is-open .chat__msg:nth-child(4) { animation-delay: 1.5s; }
@keyframes chatin { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* communication design: three posts fanned out */
.acc__media--posts, .acc__media--ux { display: grid; place-items: center; padding: 24px; background: rgba(255, 255, 255, .45); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(100%, 520px); }
.post { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; display: grid; align-content: end; padding: 12px; color: #fff; box-shadow: 0 18px 40px -22px rgba(27, 27, 58, .45); transition: transform .8s var(--apple); }
.post span, .post b, .post small { position: relative; font-size: .8125rem; font-weight: 500; line-height: 1.25; }
.post--img img, .post--art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(27, 27, 58, .7)); }
.post--img span { z-index: 1; }
.post--type { background: var(--pink); align-content: center; text-align: left; }
.post--type b { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.03em; }
.post--type small { margin-top: 4px; opacity: .85; font-weight: 400; }
.post--art { background: var(--navy); }
.post--art img { object-fit: contain; padding: 18% 14% 30%; }
.post:nth-child(1) { transform: rotate(-4deg) translateY(10px); }
.post:nth-child(3) { transform: rotate(4deg) translateY(10px); }
.is-open .post { animation: postin .8s var(--apple) both; }
.is-open .post:nth-child(2) { animation-delay: .12s; }
.is-open .post:nth-child(3) { animation-delay: .24s; }
@keyframes postin { from { opacity: 0; translate: 0 30px; } }

/* UI/UX: a wireframe becomes a finished screen */
.ux { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 28px); width: 100%; }
.ux__screen { width: clamp(120px, 15vw, 170px); aspect-ratio: 9 / 16; border-radius: 18px; padding: 14px; display: grid; align-content: start; gap: 8px; }
.ux__screen--wire { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(27, 27, 58, .18); }
.ux__screen--wire i { display: block; height: 10px; border-radius: 4px; background: rgba(27, 27, 58, .1); }
.ux__screen--wire .w1 { width: 60%; height: 12px; }
.ux__screen--wire .w2 { height: 54px; margin-bottom: 4px; }
.ux__screen--wire .w3 { width: 85%; }
.ux__screen--wire .w4 { margin-top: 18px; height: 24px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(27, 27, 58, .2); background: none; }
.ux__screen--done { background: var(--navy); color: #fff; box-shadow: 0 24px 50px -24px rgba(27, 27, 58, .7); }
.ux__screen--done b { font-size: .9375rem; font-weight: 600; letter-spacing: -.02em; }
.ux__screen--done small { font-size: .75rem; color: #B4B4D2; }
.ux__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.ux__slots i { height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .1); }
.ux__slots i.on { background: var(--pink); }
.ux__screen--done em { margin-top: 22px; padding: 8px; border-radius: 999px; background: var(--pink); text-align: center; font-style: normal; font-size: .75rem; font-weight: 500; }
.ux__arrow { width: 32px; height: 2px; background: var(--navy); position: relative; opacity: .5; flex: none; }
.ux__arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); transform: rotate(45deg); }
.is-open .ux__screen--done { animation: uxin .9s var(--apple) .3s both; }
@keyframes uxin { from { opacity: 0; transform: translateX(-24px) scale(.94); } }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; border-radius: 28px; overflow: hidden; background: #fff; color: var(--navy); text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(27, 27, 58, .35); transition: box-shadow .6s var(--apple), transform .6s var(--apple); }
.case:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(27, 27, 58, .45); }
.case__media { overflow: hidden; min-height: 100%; aspect-ratio: 5 / 4; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--apple); }
.case:hover .case__media img { transform: scale(1.04); }
.case__body { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); }
.case__client { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--pink-ink); font-size: .8125rem; font-weight: 500; }
.case h3 { margin-top: 22px; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; max-width: 14ch; }
.case__body > p { margin-top: 16px; color: var(--muted); max-width: 38ch; }
.case__facts { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case__facts dt { font-size: .8125rem; color: var(--muted); }
.case__facts dd { margin: 2px 0 0; font-size: .9375rem; font-weight: 500; }
.case__cta { margin-top: auto; padding-top: 32px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9375rem; }
.case__cta::after, .product__cta::after { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11L11 5M6 5h5v5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .5s var(--apple); }
.case:hover .case__cta::after, .product:hover .product__cta::after { transform: rotate(45deg); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.product { position: relative; display: flex; flex-direction: column; min-height: 460px; border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .6s var(--apple); }
a.product:hover { transform: translateY(-4px); }
.product__top { position: relative; z-index: 1; padding: clamp(24px, 3.5vw, 40px); }
.product h3 { margin-top: 18px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.035em; }
.product p { margin-top: 8px; max-width: 32ch; }
.product__cta { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9375rem; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 500; }
.product--oryn { background: var(--navy); color: #fff; }
.product--oryn::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -20%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 107, .28), transparent 65%); }
.product--oryn p { color: #B4B4D2; }
.pill--live { background: rgba(52, 211, 153, .14); color: #6EE7B7; }
.pill--live i { width: 6px; height: 6px; border-radius: 50%; background: #34D399; }
.product__shot { margin: auto 0 0 clamp(24px, 3.5vw, 40px); border-radius: 16px 0 0 0; overflow: hidden; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); transform: translateY(12px); transition: transform .8s var(--apple); }
.product__shot img { width: 100%; height: auto; }
a.product:hover .product__shot { transform: translateY(0); }
.product--creator { background: linear-gradient(160deg, #F3E8FF 0%, var(--soft) 100%); color: var(--navy); }
.product--creator p { color: var(--muted); }
.pill--soon { background: #fff; color: var(--pink-ink); }
.product__logo { margin: auto; padding: 24px 0 48px; }
.product__logo img { width: clamp(120px, 14vw, 170px); height: auto; border-radius: 36px; box-shadow: 0 30px 60px -30px rgba(27, 27, 58, .4); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ---------- Automation ---------- */
.auto { background: var(--navy); color: #fff; padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.auto::before { content: ""; position: absolute; width: 70vw; height: 70vw; right: -25vw; top: -35vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 107, .18), transparent 60%); pointer-events: none; }
.auto .head__note { color: #A9A9C8; }
.flow { position: relative; display: grid; grid-template-columns: 1fr 260px; gap: 16px; }
.flow__canvas {
  position: relative; height: 400px; border-radius: 20px; overflow: hidden;
  background: #fff radial-gradient(rgba(27, 27, 58, .1) 1px, transparent 1.2px) 0 0 / 20px 20px;
}
.flow__wires { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); overflow: visible; }
.flow__wires path { fill: none; stroke: #DCDCE8; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flow__wires path.is-on { stroke: var(--pink); stroke-dasharray: 6 6; animation: flowdash .6s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -12; } }
.fnode {
  position: absolute; left: var(--x); top: var(--y); transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; width: 25%; min-width: 190px; padding: 10px 12px; border-radius: 14px;
  background: #fff; color: var(--navy); box-shadow: 0 0 0 1px #E6E6EF, 0 8px 24px -14px rgba(27, 27, 58, .3);
  transition: box-shadow .4s var(--apple), transform .4s var(--apple);
}
.fnode small { display: block; font-size: .75rem; color: var(--muted); }
.fnode b { display: block; font-weight: 500; font-size: .875rem; line-height: 1.3; }
.fnode__logo { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.fnode__mark { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--soft); flex: none; }
.fnode__mark svg { width: 100%; height: 100%; fill: var(--pink); }
.fnode--ai { width: 28%; }
.fnode.is-on { box-shadow: 0 0 0 1.5px var(--pink), 0 14px 30px -14px rgba(255, 45, 107, .5); transform: translateY(-50%) scale(1.02); }
.fnode::after {
  content: ""; position: absolute; right: -7px; top: -7px; width: 18px; height: 18px; border-radius: 50%;
  background: #10B981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transform: scale(0); transition: transform .35s var(--apple);
}
.fnode.is-done::after { transform: scale(1); }
.flow__log { border-radius: 20px; padding: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.flow__log-title { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; color: #fff; margin-bottom: 16px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.flow__log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow__log li { display: grid; grid-template-columns: 40px 1fr; gap: 6px; font-size: .8125rem; color: #D6D6EC; opacity: .28; transition: opacity .4s; }
.flow__log li.is-on { opacity: 1; }
.flow__log time { color: #8D8DB3; font-variant-numeric: tabular-nums; }

/* ---------- Process ---------- */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps__track { position: absolute !important; left: 0; right: 0; top: 0; height: 2px; padding: 0 !important; background: var(--line); }
.steps__track span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--pink), #A78BFA, var(--navy)); transform-origin: 0 50%; transform: scaleX(var(--fill, 1)); }
.steps li { position: relative; padding: 32px 24px 0 0; }
.steps__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: .875rem; font-weight: 600; color: #fff; background: var(--pink); }
.steps li:nth-child(3) .steps__n { background: #A78BFA; }
.steps li:nth-child(4) .steps__n { background: #5B4BB0; }
.steps li:nth-child(5) .steps__n { background: var(--navy); }
.steps h3 { margin-top: 20px; font-size: 1.125rem; letter-spacing: -.02em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: .9375rem; max-width: 24ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 1rem; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%231B1B3A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--pink-ink); }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); font-size: .9375rem; max-width: 56ch; }

/* ---------- Contact ---------- */
.contact { padding: clamp(64px, 8vw, 100px) 0; }
.contact__panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border-radius: 28px; color: #fff;
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(125deg, #FF2D6B -10%, #6B2160 28%, #1B1B3A 62%); }
.contact__panel::before { content: none; }
.contact__copy { position: relative; }
.contact__copy > p { margin-top: 14px; color: #E2D6EA; }
.contact__info { margin: 40px 0 0; display: grid; gap: 18px; }
.contact__info dt { font-size: .8125rem; color: #C9B8D6; }
.contact__info dd { margin: 2px 0 0; font-weight: 500; }
.contact__info a { color: #fff; text-decoration: none; }
.contact__info a:hover { color: var(--soft); }
.contact__info address { font-style: normal; color: #D6D6EC; }
.form { position: relative; background: #fff; color: var(--navy); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; align-content: start; }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.form__chips legend { font-size: .8125rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; padding: 0; }
.form__chips label { cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; transition: background .2s, color .2s, box-shadow .2s; }
.form__chips span:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.form__chips input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.form__chips input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: .9375rem; color: inherit; width: 100%; border: 1px solid var(--line); background: var(--tint); padding: 11px 13px; border-radius: 10px; resize: vertical; transition: border-color .2s, background .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px rgba(255, 45, 107, .12); }
.field.is-invalid input { border-color: var(--pink); }
.form .btn { justify-self: start; }
.form__note { font-size: .8125rem; color: var(--muted); }
.form__note a { color: var(--navy); }
.form__msg { font-size: .875rem; min-height: 1.4em; color: var(--muted); }
.form__msg:empty { display: none; }
.form__msg.is-error { color: var(--pink-ink); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(120px, 14vw, 160px) 0 clamp(80px, 10vw, 120px); }
.legal__wrap { max-width: 720px; }
.legal__back { color: var(--muted); text-decoration: none; font-size: .875rem; }
.legal__back::before { content: "← "; }
.legal__back:hover { color: var(--pink-ink); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.04em; line-height: 1.05; margin: 20px 0 8px; }
.legal__meta { color: var(--muted); font-size: .875rem; }
.legal__lead { margin-top: 24px; font-size: 1.0625rem; color: #33335A; }
.legal h2 { font-size: 1.125rem; letter-spacing: -.015em; margin: 40px 0 10px; }
.legal p, .legal li { color: #44446A; font-size: .9375rem; max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--pink-ink); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--muted); padding: 56px 0 0; font-size: .875rem; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 48px; }
.footer__logo { height: 24px; width: auto; aspect-ratio: 2402 / 509; color: var(--navy); }
.footer__brand p { margin-top: 16px; max-width: 30ch; }
.footer__cta { display: inline-block; margin-top: 20px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); text-decoration: none; font-weight: 500; transition: background .3s; }
.footer__cta:hover { background: var(--tint); }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h3 { font: 500 .8125rem/1 var(--body); color: var(--navy); margin-bottom: 6px; }
.footer__col a { color: var(--muted); text-decoration: none; width: fit-content; transition: color .2s; }
.footer__col a:hover, .footer__bottom a:hover { color: var(--navy); }
.footer__col small { font-size: .6875rem; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--pink-ink); margin-left: 4px; }
.footer__addr { font-style: normal; line-height: 1.6; color: var(--muted); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .8125rem; }
.footer__bottom p { margin-right: auto; }
.footer__bottom a { color: var(--muted); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero__stage { order: -1; justify-self: center; width: min(100%, 340px); }
  .hero { padding-top: 76px; }
  .svc-intro { grid-template-columns: 1fr; gap: 16px; }
  .svc-intro p { justify-self: start; }
  .acc__body { grid-template-columns: 1fr; align-items: start; }
  .flow { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps__track { display: none; }
  .faq, .contact__panel { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case__media { aspect-ratio: 4 / 3; }
  .products { grid-template-columns: 1fr; }
  .product { min-height: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; height: 60px; }
  .nav .btn--small { display: none; }
  .nav__toggle { display: grid; gap: 5px; place-content: center; width: 40px; height: 40px; background: transparent; border: 0; border-radius: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
  .nav__toggle span { width: 16px; height: 1.5px; background: var(--navy); transition: transform .35s var(--ease), background .3s; }
  .nav.is-open .nav__toggle { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
  .nav.is-open .nav__toggle span { background: #fff; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gutter); background: var(--navy); clip-path: circle(0 at calc(100% - 40px) 30px); transition: clip-path .6s var(--ease); }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 30px); }
  .nav__links a { font-size: 2rem; font-weight: 500; letter-spacing: -.035em; color: #fff; }
  .nav.is-open { background: transparent; box-shadow: none; backdrop-filter: none; transform: none; }
  .nav.is-open .nav__brand { color: #fff; }
  .hero__title { font-size: clamp(2.25rem, 10vw, 3rem); margin-top: 16px; }
  .hero__sub { font-size: 1rem; margin-top: 16px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { flex: 1; }
  .hero__meta { margin-top: 32px; gap: 8px 20px; font-size: .8125rem; }
  .reel__frame { border-radius: 16px; }
  .reel__cursor { left: 50%; top: 50%; transform: none !important; margin: -20px 0 0 -46px; }
  .flow__canvas { height: auto; padding: 16px; display: grid; gap: 22px; background-size: 16px 16px; }
  .flow__wires { display: none; }
  .fnode { position: relative; left: auto; top: auto; transform: none; width: 100%; min-width: 0; }
  .fnode--ai { width: 100%; }
  .fnode.is-on { transform: scale(1.01); }
  .fnode:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 100%; width: 1.5px; height: 22px; background: #DCDCE8; }
  .fnode.is-on:not(:last-child)::before { background: var(--pink); }
      .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; align-items: start; }
  .steps__n { grid-row: span 2; }
  .steps h3 { margin-top: 4px; }
  .acc__plus { width: 38px; height: 38px; }
  .acc__copy p { margin-top: 20px; }
  .acc__media { border-radius: 16px; }
  .acc__media--posts, .acc__media--ux { aspect-ratio: auto; padding: 28px 16px; }
  .post span, .post b, .post small { font-size: .6875rem; }
  .post--type b { font-size: 1rem; }
  .contact { padding-inline: 0; }
  .contact__panel { border-radius: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
