/* ADB Solutions — site styles
   Palette comes from the ADB logo and banner: deep navy, slate blue, rose gold. */

:root {
  --ink: #08111f;
  --ink-2: #0b1729;
  --panel: #0e1f37;
  --panel-2: #142a4b;
  --line: rgba(143, 163, 189, 0.16);
  --line-2: rgba(143, 163, 189, 0.32);
  --text: #e8eef7;
  --muted: #9babc2;
  --slate: #8fa3bd;
  --rose: #d6a893;
  --rose-hi: #f3d6c8;
  --rose-lo: #a87c69;
  --glow: #6fb7ff;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.6, 0, 0.2, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--rose-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(214, 168, 147, 0.35); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--rose);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- page-level effects ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--rose-lo), var(--rose-hi));
}

.halo {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(111, 183, 255, 0.1), rgba(214, 168, 147, 0.05) 40%, transparent 68%);
  transition: opacity 0.6s;
  will-change: transform;
}
.halo.is-on { opacity: 1; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 1.35em;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }

.btn--rose {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(135deg, var(--rose-hi), var(--rose) 55%, var(--rose-lo));
  box-shadow: 0 8px 30px -10px rgba(214, 168, 147, 0.6);
}
.btn--rose::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn--rose:hover::after { transform: translateX(120%); }
.btn--rose:hover { box-shadow: 0 12px 36px -10px rgba(214, 168, 147, 0.85); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(143, 163, 189, 0.06);
}
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-hi); }

.btn--sm { min-height: 40px; font-size: 0.875rem; padding: 0 1.1em; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rose-hi);
  border-bottom: 1px solid rgba(214, 168, 147, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s, gap 0.3s var(--ease);
}
.link:hover { border-color: var(--rose-hi); gap: 0.65em; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.is-stuck {
  background: rgba(8, 17, 31, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  transition: height 0.4s var(--ease);
}
.nav.is-stuck .nav__inner { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-2), 0 6px 20px -6px rgba(111, 183, 255, 0.5);
  transition: transform 0.6s var(--ease);
}
.brand:hover img { transform: rotate(-12deg) scale(1.06); }

.nav__links { display: none; align-items: center; gap: 34px; }
.nav__links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.nav__toggle span,
.nav__toggle span::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease);
}
.nav__toggle span { transform: translateY(-3px); }
.nav__toggle span::before { content: ""; transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(-90deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px var(--gut) 40px;
  background: rgba(8, 17, 31, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a:not(.btn) {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 6px 0;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  transition-delay: calc(var(--i) * 50ms);
}
.menu.is-open a:not(.btn) { transform: none; opacity: 1; }
.menu .btn { margin-top: 28px; align-self: flex-start; }

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: inline-flex; }
  .nav__toggle, .menu { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(104px, 15vh, 170px);
  padding-bottom: clamp(56px, 8vw, 96px);
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(40, 96, 168, 0.5), transparent 70%),
    radial-gradient(45% 40% at 10% 85%, rgba(214, 168, 147, 0.1), transparent 70%),
    linear-gradient(180deg, #0a1a33, var(--ink) 85%);
}
.hero__net {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
}

.hero__title { display: grid; gap: 0.06em; }
.hero__lead {
  display: block;
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--rose-hi);
  margin-bottom: 0.9em;
}
.hero__line {
  display: flex;
  align-items: center;
  width: fit-content;
  font-family: var(--display);
  font-size: clamp(2.05rem, 9.2vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-align: left;
  color: rgba(143, 163, 189, 0.34);
  transition: color 0.5s;
}
.hero__line svg {
  flex: none;
  width: 0;
  height: 0.62em;
  margin-right: 0;
  opacity: 0;
  transform: translate(-0.3em, 0.2em) scale(0.6);
  transition: width 0.55s var(--ease), margin 0.55s var(--ease), opacity 0.4s, transform 0.55s var(--ease);
}
.hero__line:hover { color: rgba(243, 214, 200, 0.75); }
.hero__line.is-active { color: var(--text); }
.hero__line.is-active svg { width: 0.62em; margin-right: 0.26em; opacity: 1; transform: none; }

.hero__sub {
  max-width: 27em;
  text-wrap: balance;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 38px); }

/* load sequence: one orchestrated moment */
.hero [data-in] {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 120ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- hero build stage ---------- */

.stage {
  --dw: 100%;
  --dh: 372px;
  --dr: 16px;
  position: relative;
  height: 460px;
  display: grid;
  place-items: center;
}
.stage[data-scene="app"] { --dw: 226px; --dh: 448px; --dr: 38px; }
@media (max-width: 520px) {
  .stage { height: 410px; --dh: 300px; }
  .stage[data-scene="app"] { --dw: 200px; --dh: 400px; --dr: 34px; }
  .stage[data-scene="ai"] { --dh: 380px; }
}

.stage__glow {
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(111, 183, 255, 0.28), rgba(214, 168, 147, 0.1) 55%, transparent);
  filter: blur(40px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.75; } }

.device {
  position: relative;
  z-index: 1;
  width: var(--dw);
  height: var(--dh);
  border-radius: var(--dr);
  background: linear-gradient(180deg, #11233f, #0b1930);
  border: 1px solid rgba(143, 163, 189, 0.3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(143, 163, 189, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: width 0.8s var(--ease-io), height 0.8s var(--ease-io), border-radius 0.8s var(--ease-io);
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  transition: height 0.6s var(--ease-io), opacity 0.4s;
  overflow: hidden;
}
.device__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(143, 163, 189, 0.35); }
.device__bar span {
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.6);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.stage[data-scene="app"] .device__bar { height: 0; opacity: 0; border-bottom-width: 0; }

.device__screen { position: absolute; inset: 34px 0 0 0; transition: inset 0.6s var(--ease-io); }
.stage[data-scene="app"] .device__screen { inset: 0; }

.scene {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.stage[data-scene="web"] .scene--web,
.stage[data-scene="app"] .scene--app,
.stage[data-scene="ai"] .scene--ai { opacity: 1; visibility: visible; transition-delay: 0.45s; }

/* pieces appear when the cursor "places" them */
[data-step] {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.45s, transform 0.6s var(--ease);
}
[data-step].on { opacity: 1; transform: none; }

.bar { display: block; height: 8px; border-radius: 99px; background: rgba(143, 163, 189, 0.28); }

/* web scene */
.w-nav { display: flex; align-items: center; gap: 10px; }
.w-nav b { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--rose-hi), var(--rose-lo)); }
.w-nav .bar { width: 34px; height: 6px; }
.w-nav .bar:first-of-type { margin-left: auto; }
.w-nav em { width: 52px; height: 18px; border-radius: 99px; border: 1px solid var(--rose); }
.w-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; min-height: 0; }
.w-copy { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.w-copy .bar--h { height: 15px; width: 92%; background: rgba(232, 238, 247, 0.85); border-radius: 5px; }
.w-copy .bar--h + .bar--h { width: 64%; }
.w-copy .bar--t { width: 86%; }
.w-copy .bar--t + .bar--t { width: 58%; }
.w-btn { width: 78px; height: 24px; margin-top: 6px; border-radius: 99px; background: linear-gradient(135deg, var(--rose-hi), var(--rose-lo)); box-shadow: 0 6px 18px -6px rgba(214, 168, 147, 0.8); }
.w-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #2f6fc0, #17355f 60%, #0f2442);
}
.w-img::before {
  content: "";
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  right: 16%;
  top: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--rose-hi), var(--rose));
  box-shadow: 0 0 30px rgba(243, 214, 200, 0.6);
}
.w-img::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 70%;
  background: #0c1f3b;
  clip-path: polygon(0 60%, 22% 28%, 40% 52%, 62% 12%, 82% 44%, 100% 26%, 100% 100%, 0 100%);
}
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-cards span {
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(143, 163, 189, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 90ms);
}
.w-cards.on span { opacity: 1; transform: none; }
.w-cards span::before { content: ""; display: block; width: 14px; height: 14px; margin: 9px 0 0 10px; border-radius: 5px; background: var(--glow); opacity: 0.8; }
.w-cards span::after { content: ""; display: block; width: 55%; height: 5px; margin: 7px 0 0 10px; border-radius: 9px; background: rgba(143, 163, 189, 0.35); }
@media (max-width: 520px) { .w-cards span { height: 38px; } .w-cards span::before { margin-top: 7px; } .w-cards span::after { margin-top: 5px; } }

/* app scene */
.scene--app { padding: 14px 14px 12px; gap: 11px; }
.a-status { display: flex; justify-content: center; }
.a-status i { width: 64px; height: 18px; border-radius: 99px; background: #050b15; }
.a-head { display: flex; align-items: center; gap: 10px; }
.a-head b { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--glow), #2f6fc0); flex: none; }
.a-head div { flex: 1; display: grid; gap: 6px; }
.a-head .bar:first-child { width: 70%; height: 10px; background: rgba(232, 238, 247, 0.85); }
.a-head .bar:last-child { width: 45%; height: 6px; }
.a-card {
  height: 108px;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(140deg, var(--rose-hi), var(--rose) 50%, var(--rose-lo));
}
.a-card .bar { background: rgba(8, 17, 31, 0.55); width: 62%; height: 10px; }
.a-card em { width: 74px; height: 24px; border-radius: 99px; background: var(--ink); }
.a-list { display: grid; gap: 8px; flex: 1; align-content: start; }
.a-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(143, 163, 189, 0.09);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 90ms);
}
.a-list.on span { opacity: 1; transform: none; }
.a-list span::before { content: ""; width: 24px; height: 24px; border-radius: 8px; background: rgba(111, 183, 255, 0.5); flex: none; }
.a-list span::after { content: ""; height: 6px; width: calc(40% + var(--i) * 12%); border-radius: 9px; background: rgba(143, 163, 189, 0.4); }
.a-tabs { display: flex; justify-content: space-around; padding: 10px 6px 4px; border-top: 1px solid var(--line); }
.a-tabs i { width: 20px; height: 20px; border-radius: 7px; background: rgba(143, 163, 189, 0.3); }
.a-tabs i:first-child { background: var(--rose); }
@media (max-width: 520px) { .a-card { height: 90px; } .a-list span:nth-child(3) { display: none; } }

/* automation scene */
.scene--ai { gap: 0; justify-content: space-between; padding: 16px 18px; }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; }
.ai-switch { position: relative; width: 40px; height: 22px; border-radius: 99px; background: rgba(143, 163, 189, 0.25); transition: background-color 0.4s; flex: none; }
.ai-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform 0.4s var(--ease); }
.ai-head.on .ai-switch { background: var(--rose); }
.ai-head.on .ai-switch::after { transform: translateX(18px); }
.ai-flow { display: grid; grid-template-columns: 1fr; gap: 0; }
.ai-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(143, 163, 189, 0.08);
  font-size: 0.86rem;
  line-height: 1.3;
}
.ai-node .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(111, 183, 255, 0.16); color: var(--glow); }
.ai-node--ai .icon { background: rgba(214, 168, 147, 0.18); color: var(--rose-hi); }
.ai-node--done .icon { background: rgba(126, 219, 170, 0.16); color: #8fe3b6; }
.ai-node small { display: block; color: var(--muted); font-size: 0.76rem; }
.ai-wire { position: relative; width: 2px; height: 22px; margin-left: 29px; background: rgba(143, 163, 189, 0.22); overflow: hidden; }
.ai-wire::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: linear-gradient(180deg, transparent, var(--rose-hi)); }
.ai-node.on + .ai-wire::after { animation: wire 1.4s linear infinite; }
@keyframes wire { to { top: 100%; } }
.ai-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.ai-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose-hi); animation: dot 1.1s infinite; }
.ai-dots i:nth-child(2) { animation-delay: 0.15s; }
.ai-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 520px) { .ai-wire { height: 16px; } }

/* the brand cursor */
.stage__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 40px;
  height: 40px;
  pointer-events: none;
  transform: translate(var(--cx, 300px), var(--cy, 420px));
  transition: transform 0.62s cubic-bezier(0.55, 0, 0.15, 1), opacity 0.4s;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.stage__cursor svg { width: 100%; height: 100%; transition: transform 0.15s; transform-origin: 85% 12%; }
.stage__cursor.is-down svg { transform: scale(0.84); }
.stage__cursor::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--rose-hi);
  opacity: 0;
  transform: scale(0.3);
}
.stage__cursor.is-down::after { animation: ripple 0.55s var(--ease); }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding: 22px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--slate);
  white-space: nowrap;
}
.marquee__group svg { width: 0.7em; height: 0.7em; color: var(--rose); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.sec { position: relative; padding-block: clamp(76px, 10vw, 136px); }
.sec--tint { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }

.sec__head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.sec__head p { max-width: 34em; color: var(--muted); font-size: 1.1rem; }
@media (min-width: 900px) {
  .sec__head--split { grid-template-columns: 1fr auto; align-items: end; }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- services ---------- */

.svcs { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  gap: 14px 28px;
  padding: clamp(26px, 3.6vw, 40px) clamp(0px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 183, 255, 0.11), transparent 70%);
  transition: opacity 0.4s;
}
.svc::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--rose), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
}
.svc:hover::before { opacity: 1; }
.svc:hover::after { transform: scaleX(1); }

.svc__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--rose-hi);
  background: linear-gradient(145deg, rgba(214, 168, 147, 0.16), rgba(111, 183, 255, 0.08));
  border: 1px solid rgba(214, 168, 147, 0.28);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.svc:hover .svc__icon { transform: translateY(-4px) rotate(-4deg); box-shadow: 0 16px 30px -14px rgba(214, 168, 147, 0.7); }
.svc__icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc__icon svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .svc__icon svg * { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-io); transition-delay: calc(var(--n, 0) * 140ms + 150ms); }
.js .svc.in .svc__icon svg * { stroke-dashoffset: 0; }
.svc.redraw .svc__icon svg * { animation: redraw 1s var(--ease-io) both; animation-delay: calc(var(--n, 0) * 110ms); }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.svc__name { font-size: clamp(1.6rem, 3.2vw, 2.3rem); transition: color 0.3s; }
.svc__text { color: var(--muted); max-width: 32em; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc__tags li {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.86rem;
  color: var(--slate);
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
.svc:hover .svc__tags li { border-color: rgba(214, 168, 147, 0.4); color: var(--text); }

@media (min-width: 860px) {
  .svc {
    grid-template-columns: 68px minmax(0, 0.9fr) minmax(0, 1.25fr);
    align-items: center;
  }
  .svc__body { display: grid; gap: 14px; }
}
@media (max-width: 859px) {
  .svc__body { display: grid; gap: 14px; }
}

/* ---------- work ---------- */

.works { display: grid; gap: clamp(36px, 5vw, 64px) clamp(24px, 3.4vw, 44px); }
@media (min-width: 820px) {
  .works { grid-template-columns: 1fr 1fr; }
  .works > :nth-child(even) { margin-top: clamp(40px, 7vw, 96px); }
}

.work { display: grid; gap: 20px; align-content: start; perspective: 1400px; }
.work__frame {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1626;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.work__frame:hover { border-color: rgba(214, 168, 147, 0.55); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 1), 0 0 60px -20px rgba(111, 183, 255, 0.35); }
.work__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.14), transparent 60%);
  transition: opacity 0.4s;
}
.work__frame:hover::after { opacity: 1; }
.work__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #0e1c31;
  border-bottom: 1px solid var(--line);
}
.work__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(143, 163, 189, 0.32); }
.work__bar span { margin-left: 10px; font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work__shot { display: block; aspect-ratio: 16 / 10.4; overflow: hidden; }
.work__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: object-position 1.2s var(--ease-io);
}
.work__frame:hover .work__shot img,
.work__frame.is-panning .work__shot img { object-position: 50% 100%; transition-duration: 9s; transition-timing-function: cubic-bezier(0.35, 0, 0.3, 1); }

.work__meta { display: grid; gap: 8px; }
.work__meta h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.work__meta p { color: var(--muted); max-width: 30em; }
.work__meta .link { justify-self: start; margin-top: 6px; }

/* ---------- about ---------- */

.about { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); } }

.about__photo { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.about__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}
.about__frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  transform: translate(-16px, 16px);
}
.about__frame rect { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .about__frame rect { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io) 0.2s; }
.js .about__photo.in .about__frame rect { stroke-dashoffset: 0; }
.about__copy { display: grid; gap: 20px; justify-items: start; }
.about__copy h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.about__role { color: var(--rose-hi); font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin-top: -8px; }
.about__copy p { max-width: 32em; }
.about__copy p.muted { color: var(--muted); }
.about__motto {
  padding-left: 18px;
  border-left: 2px solid var(--rose);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- process ---------- */

.steps { position: relative; display: grid; gap: 34px; counter-reset: step; }
.steps__track { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line-2); }
.steps__track i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--rose-hi), var(--rose-lo)); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 6px 22px; counter-increment: step; }
.step::before {
  content: counter(step);
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-2);
  font-family: var(--display);
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.5s, color 0.5s, background-color 0.5s, box-shadow 0.5s;
}
.step.is-lit::before { border-color: var(--rose); color: var(--ink); background: var(--rose); box-shadow: 0 0 0 6px rgba(214, 168, 147, 0.14); }
.step h3 { font-size: 1.35rem; align-self: end; }
.step p { color: var(--muted); max-width: 22em; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps__track { left: 24px; right: calc((100% - 84px) / 4 - 24px); top: 23px; bottom: auto; width: auto; height: 2px; }
  .steps__track i { transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); background: linear-gradient(90deg, var(--rose-hi), var(--rose-lo)); }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step::before { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(26px, 5vw, 64px);
  border-radius: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(40, 96, 168, 0.4), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(214, 168, 147, 0.12), transparent 70%),
    var(--panel);
  overflow: hidden;
}
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.contact__copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.contact__copy h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.contact__copy > p { color: var(--muted); max-width: 26em; }
.contact__list { display: grid; gap: 12px; margin-top: 6px; }
.contact__list a { display: inline-flex; align-items: center; gap: 12px; transition: color 0.3s; }
.contact__list a:hover { color: var(--rose-hi); }
.contact__list .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--rose-hi); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; color: var(--slate); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(8, 17, 31, 0.55);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239babc2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select option { background: var(--ink); color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(214, 168, 147, 0.16);
  background: rgba(8, 17, 31, 0.8);
}
.form__gotcha { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-size: 0.95rem; color: var(--muted); }
.form__status.is-ok { color: #8fe3b6; }
.form__status.is-err { color: #ffb4a8; }
.form__status a { text-decoration: underline; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 32px; background: #060d18; }
.footer__top { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { display: grid; gap: 16px; justify-items: start; }
.footer__brand p { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 12em; }
.footer h3 { font-family: var(--body); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--slate); margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer li a { color: var(--muted); transition: color 0.3s; }
.footer li a:hover { color: var(--rose-hi); }
.footer__loc { color: #71829b; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: #71829b;
}
.footer__base a:hover { color: var(--rose-hi); }
.footer__base nav { display: flex; gap: 20px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .hero [data-in], .js [data-reveal] { opacity: 1; transform: none; }
  .halo, .stage__cursor { display: none; }
  .marquee__track { animation: none; }
}
