/* ==========================================================================
   CompTech Solutions — design system
   Dark, motion-first look inspired by www.5lab.co
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --bg: #050506;
  --bg-2: #0b0b0e;
  --bg-3: #0f1115;
  --ink: #ffffff;
  --ink-80: rgba(255, 255, 255, 0.8);
  --ink-60: rgba(255, 255, 255, 0.6);
  --ink-45: rgba(255, 255, 255, 0.45);
  --ink-25: rgba(255, 255, 255, 0.25);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --red: #d90034;
  --red-2: #ff004d;
  --magenta: #ff228c;
  --amber: #fee805;
  --cyan: #4cf0ff;

  --font-main: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Newsreader", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1600px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--red-2); color: #fff; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-main);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease);
  display: inline-block;
}
.accent:hover { transform: scale(1.12); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red-2);
}

.muted { color: var(--ink-60); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sec { position: relative; padding: clamp(5rem, 12vh, 11rem) 0; }
.sec-tight { padding: clamp(3rem, 7vh, 6rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-fill {
  background: #fff;
  color: #050506;
  border-color: #fff;
}
.btn-fill:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }

.btn-red {
  background: var(--red-2);
  border-color: var(--red-2);
  color: #fff;
}
.btn-red:hover { background: #fff; border-color: #fff; color: #050506; }

.btn-ghost { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: #fff; color: #050506; border-color: #fff; }

.btn .arw { transition: transform 0.35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- Noise + cursor glow overlays ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}

.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background: radial-gradient(circle, rgba(255, 0, 77, 0.32) 0%, rgba(255, 0, 77, 0.10) 35%, transparent 70%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  padding: clamp(0.9rem, 2vw, 1.5rem) 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 42px;
  padding: 0 0.7rem;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand-mark img { display: block; height: 26px; width: auto; }
.brand:hover .brand-mark { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.brand-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-text span { color: var(--ink-45); font-weight: 400; }

.nav-capsule {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}
.nav-link {
  position: relative;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink-60);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #050506; background: #fff; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta { display: none; }
.nav-cta .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }

/* Hamburger */
.hamburger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.hamburger .bar { stroke: #fff; stroke-width: 3; stroke-linecap: round; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); transform-origin: center; }
.hamburger.open #b3 { transform: translateY(10px) rotate(45deg); }
.hamburger.open #b2 { opacity: 0; }
.hamburger.open #b1 { transform: translateY(-10px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease), visibility 0.6s var(--ease);
}
.mobile-menu.open { visibility: visible; clip-path: inset(0 0 0 0); }
.mobile-menu > a {
  display: block;
  padding: 0.35rem 0;
  font-size: clamp(2rem, 11vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-45);
  opacity: 0;
  transform: translateY(30px);
  transition: color 0.3s ease, opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.open > a { color: #fff; opacity: 1; transform: none; }
.mobile-menu.open > a:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.open > a:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.open > a:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open > a:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.open > a:nth-child(5) { transition-delay: 0.36s; }
.mobile-menu .mm-foot {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  right: var(--gutter);
  color: var(--ink-60);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.mobile-menu .mm-foot a { color: var(--ink-80); }
.mobile-menu .mm-foot a:hover { color: var(--red-2); }

/* ---------- Page curtain (page transition) ---------- */
#page-curtain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.curtain-panel { position: absolute; top: 0; width: 50%; height: 100%; background: var(--black); transform: scaleX(0); transition: transform 0.62s var(--ease); }
.curtain-panel--l { left: 0; transform-origin: left center; }
.curtain-panel--r { right: 0; transform-origin: right center; }
.curtain-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.4rem;
  border-radius: 22px;
  background: #fff;
}
.curtain-logo img { display: block; height: 48px; width: auto; }
body.curtain-in .curtain-panel { transform: scaleX(1); }
body.curtain-in .curtain-logo { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
}
@media (min-width: 768px) {
  .hero-gradient { background: linear-gradient(#d90034 0%, #1a0009 24%, #000000 46%); }
}
.hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.scene-1 { grid-area: 1 / 1; width: 100%; }
.scene-2 { grid-area: 1 / 1; width: 100%; opacity: 0; }

.hero-h1 {
  font-size: clamp(2.7rem, 9.5vw, 8.5rem);
  text-transform: none;
  text-align: center;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line:first-child { transform: translateX(-3%); }
.hero-h1 .line:last-child { transform: translateX(3%); }
.hero-h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-h1 .word > span { display: inline-block; will-change: transform; }

.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 46ch;
  text-align: center;
  color: var(--ink-60);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.scroll-hint .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red-2);
  animation: contact-dot 1.6s ease-in-out infinite;
}

/* Dual capability scene */
.dual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.dual-col { text-align: center; }
.dual-col h2 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.95; }
.word-rotate { height: 1.5em; overflow: hidden; position: relative; margin-top: 0.5rem; }
.word-rotate span {
  position: absolute;
  inset: 0;
  color: var(--red-2);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  opacity: 0;
  transform: translateY(100%);
  animation: wordRotate 9s infinite;
}
.word-rotate span:nth-child(2) { animation-delay: 3s; color: var(--cyan); }
.word-rotate span:nth-child(3) { animation-delay: 6s; color: var(--magenta); }
.dual-col p { margin: 0.9rem 0 0; color: var(--ink-45); font-size: 0.95rem; }

/* 3D wireframe globe (hero background shape) */
.globe {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(220px, 30vw, 360px);
  height: clamp(220px, 30vw, 360px);
  perspective: 1400px;
  --globe-size: clamp(220px, 30vw, 360px);
}
.globe__tilt,
.globe__globe,
.globe__core,
.globe__scan,
.globe__orbit { position: absolute; inset: 0; border-radius: 50%; }
.globe__tilt { transform-style: preserve-3d; transform: rotateX(-16deg) rotate(9deg); }
.globe__globe { transform-style: preserve-3d; animation: sphere-spin 9s linear infinite; }
.globe__meridian,
.globe__parallel { position: absolute; inset: 0; border-radius: 50%; }
.globe__meridian { border: 1px solid rgba(255, 255, 255, 0.22); }
.globe__meridian:nth-child(2) { transform: rotateY(45deg); }
.globe__meridian:nth-child(3) { transform: rotateY(90deg); }
.globe__meridian:nth-child(4) { transform: rotateY(135deg); }
.globe__parallel { border: 1px solid rgba(255, 255, 255, 0.16); }
.globe__parallel--equator { border-color: rgba(255, 0, 77, 0.55); transform: rotateX(90deg); }
.globe__parallel--north,
.globe__parallel--south { inset: 14.6%; }
.globe__parallel--north { transform: rotateX(90deg) translateZ(calc(var(--globe-size) * 0.3536)); }
.globe__parallel--south { transform: rotateX(90deg) translateZ(calc(var(--globe-size) * -0.3536)); }
.globe__core {
  background-image: radial-gradient(circle at 50% 45%, rgba(255, 0, 77, 0.5) 0%, rgba(255, 0, 77, 0.12) 38%, transparent 70%);
  opacity: 0.3;
  animation: sphere-breathe 2.8s ease-in-out infinite alternate;
}
.globe__scan { overflow: hidden; }
.globe__scan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 0, 77, 0.22) 55%, transparent 100%);
  transform: translateY(-100%);
  animation: sphere-scan 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.globe__orbit { inset: -7%; transform: rotateX(74deg) rotate(0); animation: sphere-orbit 6.4s linear infinite; }
.globe__orbit > i {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: #ff004d;
  box-shadow: 0 0 6px 2px rgba(255, 0, 77, 0.8), 0 0 18px 4px rgba(255, 0, 77, 0.35);
}
.globe__orbit > i:first-child { top: 0; left: 50%; }
.globe__orbit > i:nth-child(2) { opacity: 0.7; top: 75%; left: 7%; }
.globe__orbit > i:nth-child(3) { opacity: 0.45; top: 75%; left: 93%; }
@keyframes sphere-spin { to { transform: rotateY(360deg); } }
@keyframes sphere-orbit { to { transform: rotateX(74deg) rotate(360deg); } }
@keyframes sphere-scan { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(460%); } }
@keyframes sphere-breathe { 0% { opacity: 0.22; transform: scale(0.94); } to { opacity: 0.4; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .globe__globe, .globe__core, .globe__orbit, .globe__scan::before { animation: none; }
}

/* Hero word morph (text-morph mechanism) */
.morph { display: inline-grid; vertical-align: bottom; overflow: hidden; }
.morph > span { display: block; will-change: transform, opacity; }

@media (min-width: 900px) {
  .dual { flex-direction: row; gap: 3.5rem; }
  .dual-col { flex: 1; }
  .dual-col.left { text-align: right; }
  .dual-col.right { text-align: left; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.marquee + .marquee { border-top: 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 44s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.4rem 1.6rem;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-item::after { content: "✳"; color: var(--red-2); font-size: 0.7em; }
.marquee.light .marquee-item { color: var(--ink-45); }

/* ---------- Statements / big text ---------- */
.statement {
  font-size: clamp(1.6rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 22ch;
}
.statement .hl { color: var(--red-2); }
.statement .big { display: block; }
.aside-note { max-width: 34ch; color: var(--ink-60); font-size: 1.02rem; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  overflow: hidden;
  transition: background 0.5s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 0, 77, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card:hover { background: var(--bg-2); }
.card .num { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--red-2); }
.card h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 1.1rem 0 0.7rem; }
.card p { margin: 0; color: var(--ink-60); font-size: 0.96rem; line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-60);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.card .go { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--ink-80); }

/* ---------- Industries ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--ink-60);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pill:hover { color: #050506; background: #fff; border-color: #fff; transform: translateY(-3px); }

/* ---------- Process ---------- */
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 2rem 0; border-top: 1px solid var(--line-soft); }
.step .idx { font-size: 0.8rem; letter-spacing: 0.18em; color: var(--red-2); padding-top: 0.35rem; }
.step h3 { font-size: clamp(1.2rem, 2.4vw, 1.8rem); }
.step p { margin: 0.6rem 0 0; color: var(--ink-60); max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.6rem 0;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--red-2); }
.faq-q .ic { position: relative; width: 16px; height: 16px; flex: none; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: currentColor; transition: transform 0.4s var(--ease); }
.faq-q .ic::before { top: 50%; left: 0; width: 16px; height: 1.5px; transform: translateY(-50%); }
.faq-q .ic::after { left: 50%; top: 0; height: 16px; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-q { color: #fff; }
.faq-item.open .faq-q .ic::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { margin: 0 0 1.6rem; color: var(--ink-60); max-width: 70ch; line-height: 1.65; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 14vh, 10rem) 0;
  background: var(--red);
  isolation: isolate;
}
/* slow drifting ghost wordmark behind the content */
.cta::before {
  content: "Let's talk * Let's build * Let's talk * Let's build * Let's talk * Let's build * Let's talk * Let's build * Let's talk * Let's build * Let's talk * Let's build * Let's talk * Let's build * Let's talk * Let's build * ";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: clamp(5rem, 19vw, 17rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
  animation: cta-drift 32s linear infinite;
}
/* breathing light sweep */
.cta::after {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.22), transparent 44%);
  animation: cta-glow 16s ease-in-out infinite alternate;
}
.cta > .wrap { position: relative; z-index: 2; }
.cta .cta-title { font-size: clamp(2.6rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.04em; color: #fff; }
.cta .cta-title em { font-family: var(--font-accent); font-style: italic; }
.cta .btn-fill { background: #000; color: #fff; border-color: #000; }
.cta .btn-fill:hover { background: #fff; color: var(--red); border-color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }

/* ---------- "Let's chat" badge ---------- */
.lets-chat {
  --lc: clamp(128px, 16vw, 180px);
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--lc);
  height: var(--lc);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e74563 0%, #d3365a 46%, #ba2c5f 100%);
  color: #fff;
  flex: none;
  box-shadow: 0 24px 60px rgba(217, 0, 52, 0.42);
  transition: transform 0.5s var(--ease);
  animation: chat-pulse 4.5s ease-in-out infinite;
}
.lets-chat::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  animation: spin 22s linear infinite;
}
.lets-chat:hover { transform: scale(1.06) rotate(-4deg); }
.lets-chat__label { font-size: clamp(0.95rem, 1.6vw, 1.1rem); font-weight: 500; letter-spacing: -0.01em; }
.lets-chat__line { position: absolute; bottom: 32%; width: 46%; height: 4px; }

/* ---------- Contact "Let's talk" figure + overlay ---------- */
.contact-bot { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 2.5rem; }
.contact-bot__figure { position: relative; width: 76px; height: 84px; }
.contact-bot__head {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  animation: botTalk 3.2s ease-in-out infinite;
}
.contact-bot__head::before, .contact-bot__head::after {
  content: ""; position: absolute; top: 16px; width: 4px; height: 4px; border-radius: 50%; background: var(--red-2);
}
.contact-bot__head::before { left: 11px; }
.contact-bot__head::after { right: 11px; }
.contact-bot__body {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 62px; height: 34px; border-radius: 32px 32px 6px 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-bottom: 0;
}
.contact-bot__spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 8px 2px rgba(255, 0, 77, 0.5); }
.contact-bot__spark--1 { top: 6px; right: 4px; animation: blink 2.2s ease-in-out infinite; }
.contact-bot__spark--2 { top: 26px; left: 0; animation: blink 2.2s ease-in-out infinite 0.7s; }
@keyframes botTalk { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .contact-bot__head, .contact-bot__spark { animation: none; } }

.contact-talk {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--ink-80);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), letter-spacing 0.35s var(--ease);
}
.contact-talk:hover { color: #3e3db3; border-color: #3e3db3; letter-spacing: 0.08em; }
.contact-talk em { font-family: var(--font-accent); font-style: italic; }
.contact-talk__chev { font-size: 1.1rem; line-height: 1; }

.talk-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
html[data-talk-open] .talk-overlay { opacity: 1; pointer-events: auto; }
html[data-talk-open] body { overflow: hidden; }
.talk-overlay__panel { text-align: center; max-width: 46ch; padding: 2rem; animation: talk-in 0.5s var(--ease) both; }
.talk-overlay__close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.5rem; color: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.talk-overlay__close:hover { background: #fff; color: #000; }
@keyframes talk-in { 0% { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); padding: clamp(3.5rem, 8vh, 6rem) 0 2rem; border-top: 1px solid var(--line-soft); }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; color: var(--ink-80); font-size: 1rem; margin: 0 0 0.6rem; transition: color 0.25s ease, letter-spacing 0.35s var(--ease); }
.footer-col a:hover { color: var(--red-2); letter-spacing: 0.12em; }
.footer-brand p { color: var(--ink-60); max-width: 34ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-45);
  font-size: 0.85rem;
}

/* ---------- Chat widget ---------- */
.ai-chat-widget { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90; }
.ai-chat-toggle {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 40px rgba(217, 0, 52, 0.4);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.ai-chat-toggle:hover { transform: scale(1.08) rotate(-6deg); background: #fff; color: #050506; }
.ai-chat-toggle svg { width: 26px; height: 26px; }

.ai-chat-window {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, 74vh);
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform-origin: bottom right;
  transform: translateY(16px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.35s var(--ease);
}
.ai-chat-window.active { transform: none; opacity: 1; pointer-events: auto; }
.ai-chat-header { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.ai-chat-avatar { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 0, 77, 0.14); display: grid; place-items: center; color: var(--red-2); }
.ai-chat-avatar svg { width: 22px; height: 22px; }
.ai-chat-header h3 { font-size: 0.98rem; font-weight: 600; }
.ai-chat-header p { margin: 0; font-size: 0.76rem; color: var(--ink-45); }
.ai-chat-close { margin-left: auto; color: var(--ink-60); }
.ai-chat-close svg { width: 20px; height: 20px; }
.ai-chat-close:hover { color: #fff; }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.ai-chat-message { display: flex; }
.ai-chat-message.user { justify-content: flex-end; }
.ai-chat-bubble { max-width: 85%; padding: 0.75rem 0.95rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.ai-chat-message.user .ai-chat-bubble { background: var(--red-2); color: #fff; }
.ai-chat-typing { display: flex; gap: 4px; align-items: center; }
.ai-chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-45); animation: bounceDot 1.2s infinite; }
.ai-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
.ai-chat-input-container { display: flex; gap: 0.5rem; padding: 0.85rem; border-top: 1px solid var(--line-soft); }
.ai-chat-input { flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 0.75rem 1rem; color: #fff; outline: none; }
.ai-chat-input::placeholder { color: var(--ink-45); }
.ai-chat-input:focus { border-color: var(--red-2); }
.ai-chat-send { width: 44px; height: 44px; border-radius: 50%; background: var(--red-2); color: #fff; display: grid; place-items: center; flex: none; }
.ai-chat-send svg { width: 19px; height: 19px; }
.ai-chat-send:hover { background: #fff; color: #050506; }

/* ---------- Service modal ---------- */
.service-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.service-modal.active { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); }
.modal-content { position: relative; width: min(620px, 100%); background: var(--bg-3); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.6rem); animation: cardRise 0.5s var(--ease); }
.modal-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 0, 77, 0.14); display: grid; place-items: center; color: var(--red-2); }
.modal-icon svg { width: 26px; height: 26px; }
.modal-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.modal-title { font-size: 1.5rem; font-weight: 600; }
.modal-cat { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-2); }
.modal-desc { color: var(--ink-60); line-height: 1.7; }
.modal-foot { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.modal-close { position: absolute; top: 1.1rem; right: 1.1rem; color: var(--ink-60); }
.modal-close svg { width: 22px; height: 22px; }
.modal-close:hover { color: #fff; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  color: #fff;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select option { background: var(--bg-3); color: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red-2); background: rgba(255, 255, 255, 0.06); }

/* ---------- Reveal utilities ---------- */
html.no-motion .reveal, .reveal.pre { opacity: 0; }
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in-view { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.rise { clip-path: inset(120% 0 0 0); transform: none; }
.reveal.rise.in-view { clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease), opacity 0.6s ease; }
.no-js .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* Word-mask heading reveal (matches the hero motion) */
.reveal-words { transform: none !important; }
.reveal-words .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-words .word > span { display: inline-block; will-change: transform; transform: translateY(115%); transition: transform 0.9s var(--ease); }
.reveal-words.in-view .word > span { transform: translateY(0); }
.reveal-words.in-view .word:nth-child(1) > span { transition-delay: 0s; }
.reveal-words.in-view .word:nth-child(2) > span { transition-delay: 0.06s; }
.reveal-words.in-view .word:nth-child(3) > span { transition-delay: 0.12s; }
.reveal-words.in-view .word:nth-child(4) > span { transition-delay: 0.18s; }
.reveal-words.in-view .word:nth-child(5) > span { transition-delay: 0.24s; }
.reveal-words.in-view .word:nth-child(6) > span { transition-delay: 0.3s; }
.reveal-words.in-view .word:nth-child(7) > span { transition-delay: 0.36s; }
.reveal-words.in-view .word:nth-child(8) > span { transition-delay: 0.42s; }
.reveal-words.in-view .word:nth-child(9) > span { transition-delay: 0.48s; }
.reveal-words.in-view .word:nth-child(10) > span { transition-delay: 0.54s; }
.reveal-words.in-view .word:nth-child(11) > span { transition-delay: 0.6s; }
.reveal-words.in-view .word:nth-child(12) > span { transition-delay: 0.66s; }
.reveal-words.in-view .word:nth-child(13) > span { transition-delay: 0.72s; }
.reveal-words.in-view .word:nth-child(14) > span { transition-delay: 0.78s; }

/* Staggered children reveal (lists, grids, steps, FAQ, stats, forms) */
.reveal-stagger { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.reveal-stagger > *:not(.hero-actions) { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in-view > *:not(.hero-actions) { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.42s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.49s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: 0.56s; }
.reveal-stagger.in-view > *:nth-child(10) { transition-delay: 0.63s; }
.reveal-stagger.in-view > *:nth-child(11) { transition-delay: 0.7s; }
.reveal-stagger.in-view > *:nth-child(12) { transition-delay: 0.77s; }

/* Eyebrow rule draws itself in when its section enters */
.reveal.in-view .eyebrow::before,
.eyebrow.reveal.in-view::before { animation: line-draw 0.7s var(--ease) both; }

/* ---------- Section head + split columns ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3.6rem); max-width: 18ch; line-height: 1; }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.cap-col { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.cap-col h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 1.4rem; }
.cap-list { display: flex; flex-direction: column; }
.cap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  color: var(--ink-80);
  text-align: left;
  width: 100%;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.cap-item:hover { color: #fff; padding-left: 0.6rem; }
.cap-item span:last-child { color: var(--red-2); opacity: 0; transition: opacity 0.3s var(--ease); }
.cap-item:hover span:last-child { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.stat .num { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { margin-top: 0.6rem; color: var(--ink-60); font-size: 0.92rem; }

/* ---------- Works / project cards ---------- */
.works-grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 760px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
.work {
  position: relative;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.work:hover { border-color: var(--line); transform: translateY(-6px); }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work:hover .work-media img { transform: scale(1.06); }
.work-body { padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.work-body .tag { margin-bottom: 0.9rem; }
.work-body h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.work-body p { margin: 0.7rem 0 0; color: var(--ink-60); font-size: 0.96rem; }

/* ---------- Slide-in mask heading ---------- */
.mask-head span { display: block; overflow: hidden; }
.mask-head span > i { display: block; font-style: normal; }

/* ---------- Keyframes ---------- */
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 2%); }
  50% { transform: translate(2%, -1%); }
  75% { transform: translate(-1%, 1%); }
  100% { transform: translate(0, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes contact-dot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@keyframes bounceDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes cardRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wordRotate {
  0%, 3% { opacity: 0; transform: translateY(100%); }
  8%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-100%); }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes cta-drift {
  from { transform: translate(0, -50%); }
  to { transform: translate(-50%, -50%); }
}
@keyframes cta-glow {
  from { transform: translate(-6%, -4%) scale(1); opacity: 0.55; }
  to { transform: translate(8%, 6%) scale(1.18); opacity: 1; }
}
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 24px 60px rgba(217, 0, 52, 0.42); }
  50% { box-shadow: 0 26px 74px rgba(255, 0, 77, 0.72); }
}
@keyframes line-draw {
  from { width: 0; }
  to { width: 26px; }
}

/* Utility */
.center { text-align: center; }
.mt-l { margin-top: clamp(2rem, 5vh, 4rem); }
.stack { display: flex; flex-direction: column; }
.hide-mobile { display: none; }
@media (min-width: 900px) {
  .nav-capsule { display: inline-flex; }
  .hamburger { display: none; }
  .nav-cta { display: inline-flex; }
  .hide-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-words .word > span { transform: none !important; }
  .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .cta::before, .cta::after, .lets-chat, .lets-chat::before { animation: none !important; }
}
