/* =========================================================
   RDK CORPORATION — "Constellation" design system
   ========================================================= */

:root {
  --ink: #030c0d;
  --ink-2: #071618;
  --ink-3: #0b2124;
  --line: rgba(120, 230, 228, 0.12);
  --line-strong: rgba(120, 230, 228, 0.28);
  --teal: #1ccfc9;
  --teal-bright: #5ff3ec;
  --teal-deep: #0a7f7c;
  --text: #e8f6f5;
  --muted: #8fb0ae;
  --dim: #5a7a78;
  --paper: #f3f8f7;
  --paper-ink: #062023;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

::selection { background: var(--teal); color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* grain overlay for depth */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(28, 207, 201, 0.15);
}
.title-xl { font-size: clamp(40px, 7.4vw, 104px); font-weight: 400; }
.title-lg { font-size: clamp(30px, 4.2vw, 54px); font-weight: 400; }
.title-md { font-size: clamp(22px, 2.4vw, 30px); }
.accent { color: var(--teal); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--teal);
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 50%; --by: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn-primary { background: var(--teal); color: var(--ink); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(160px circle at var(--bx) var(--by), var(--teal-bright), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink);
  transition: clip-path 1s var(--ease) 0.1s, visibility 0s 1.2s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader img { width: 120px; animation: pulse 1.6s var(--ease) infinite; }
.preloader-bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--teal); animation: bar 1.1s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.97); } }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(3, 12, 13, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 0 12px rgba(28, 207, 201, 0.35)); }
.brand-name { font-family: var(--f-display); font-size: 13px; letter-spacing: 0.16em; line-height: 1.2; }
.brand-name small { display: block; color: var(--muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  font: 500 15px var(--f-body); color: var(--muted);
  background: none; border: 0; cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover,
.nav-menu > li > a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-menu .caret { width: 10px; height: 10px; transition: transform 0.3s var(--ease); }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  min-width: 290px; padding: 10px;
  background: rgba(7, 22, 24, 0.96);
  border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.3s;
}
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.submenu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: 10px;
  font-size: 15px; color: var(--muted);
  transition: background 0.25s, color 0.25s, padding 0.3s var(--ease);
}
.submenu a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: 0.3s var(--ease); color: var(--teal); }
.submenu a:hover { background: rgba(28, 207, 201, 0.08); color: var(--text); padding-left: 18px; }
.submenu a:hover::after { opacity: 1; transform: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 20px; font-size: 14px; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  position: relative;
}
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s var(--ease);
  overflow-y: auto;
}
.menu-open .drawer { clip-path: circle(150% at calc(100% - 40px) 40px); }
.drawer-links li { overflow: hidden; border-bottom: 1px solid var(--line); }
.drawer-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  font-family: var(--f-display); font-size: 22px;
  transform: translateY(100%); transition: transform 0.6s var(--ease);
}
.drawer-links .sub a { font-family: var(--f-body); font-size: 16px; color: var(--muted); padding: 10px 0 10px 18px; }
.menu-open .drawer-links a { transform: none; }
.drawer-foot { margin-top: 30px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(28, 207, 201, 0.18), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(10, 127, 124, 0.22), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; pointer-events: none;
  background: linear-gradient(transparent, var(--ink));
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 40px; align-items: center; }
.hero h1 { margin: 26px 0 30px; font-size: clamp(40px, 6.6vw, 96px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: 0.1s; }
.is-ready .hero h1 .line:nth-child(3) > span { transition-delay: 0.2s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-mark {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: end;
  display: grid; place-items: center;
}
.hero-mark .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin 40s linear infinite;
}
.hero-mark .ring:nth-child(2) { inset: 12%; border-style: dashed; border-color: var(--line-strong); animation-duration: 60s; animation-direction: reverse; }
.hero-mark .ring:nth-child(3) { inset: 26%; background: radial-gradient(circle, rgba(28, 207, 201, 0.16), transparent 70%); border: 0; animation: none; }
.hero-mark .ring::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 20px var(--teal);
}
.hero-mark .ring:nth-child(3)::after { display: none; }
.hero-mark img { position: relative; width: 62%; filter: drop-shadow(0 0 30px rgba(28, 207, 201, 0.45)); animation: float 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px;
  margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-meta strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3vw, 40px); color: var(--text); }
.hero-meta div > span { font-size: 14px; color: var(--muted); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 20px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--teal); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0; overflow: hidden;
  background: var(--ink-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 56px;
  font-family: var(--f-display); font-size: clamp(18px, 2vw, 26px); color: var(--muted); white-space: nowrap;
}
.marquee-item::after { content: "✦"; color: var(--teal); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin-top: 18px; }
.section-head > :only-child { grid-column: 1 / -1; }
.section-head .lead { justify-self: end; }
.section-alt { background: var(--ink-2); }
.section-light { background: var(--paper); color: var(--paper-ink); }
.section-light .lead { color: #4b6664; }
.section-light .eyebrow { color: var(--teal-deep); }
.section-light .eyebrow::before { background: var(--teal-deep); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.media-stack { position: relative; padding: 0 0 60px 0; }
.media-stack .m1 { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; width: 78%; }
.media-stack .m2 {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; border: 6px solid var(--ink);
}
.media-stack img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-stack:hover img { transform: scale(1.04); }
.media-badge {
  position: absolute; left: 58%; top: 10%;
  display: grid; place-items: center; text-align: center;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--teal); color: var(--ink);
  font-family: var(--f-display); line-height: 1.1;
}
.media-badge strong { font-size: 34px; font-weight: 500; display: block; }
.media-badge small { font-family: var(--f-body); font-size: 12px; font-weight: 600; }
.media-badge svg { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); animation: spin 18s linear infinite; }
.media-badge text { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 3.2px; fill: var(--teal); text-transform: uppercase; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 34px 0; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(28, 207, 201, 0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ccfc9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / 12px no-repeat;
}
.section-light .checklist li::before { background-color: rgba(10, 127, 124, 0.12); }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature {
  padding: 22px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.feature-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(28, 207, 201, 0.1); color: var(--teal);
}
.feature-ico svg { width: 22px; height: 22px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service-card {
  --mx: 50%; --my: 50%;
  grid-column: span 2;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 360px; padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; min-height: 300px; }
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(28, 207, 201, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.service-card:hover::before { opacity: 1; }
.service-num { font-family: var(--f-mono); font-size: 13px; color: var(--dim); }
.service-ico {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--teal);
  transition: background 0.4s, color 0.4s, transform 0.6s var(--ease);
}
.service-ico svg { width: 30px; height: 30px; }
.service-card:hover .service-ico { background: var(--teal); color: var(--ink); transform: rotate(-8deg) scale(1.05); }
.service-card h3 { font-size: clamp(20px, 2vw, 26px); margin: 26px 0 12px; }
.service-card p { color: var(--muted); font-size: 15.5px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-weight: 600; font-size: 14px; color: var(--teal);
}
.service-link span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); transition: 0.4s var(--ease); }
.service-card:hover .service-link span { background: var(--teal); color: var(--ink); transform: rotate(-45deg); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid #dbe8e6;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.plan:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(6, 32, 35, 0.35); }
.plan.featured { background: var(--paper-ink); color: var(--text); border-color: var(--paper-ink); }
.plan-tag {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--teal); color: var(--ink);
}
.plan h3 { font-size: 18px; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.plan-price { margin: 22px 0 6px; font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 46px); font-weight: 400; letter-spacing: -0.03em; }
.plan-price small { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--teal-deep); margin-left: 6px; letter-spacing: 0; }
.plan.featured .plan-price small { color: var(--teal); }
.plan-sub { font-size: 14px; color: #5f7a78; padding-bottom: 24px; border-bottom: 1px solid #e2eeec; }
.plan.featured .plan-sub { color: var(--muted); border-color: var(--line); }
.plan ul { display: grid; gap: 12px; margin: 24px 0 32px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.plan li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(10, 127, 124, 0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7f7c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / 11px no-repeat;
}
.plan.featured li::before { background-color: rgba(28, 207, 201, 0.15); }
.plan li.no { color: #9bb0ae; text-decoration: line-through; }
.plan li.no::before { background: #f1f4f4 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0bfbe' stroke-width='3' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>") center / 10px no-repeat; }
.plan .btn { justify-content: center; }
.plan:not(.featured) .btn-ghost { color: var(--paper-ink); border-color: #c9dbd9; }
.plan:not(.featured) .btn-ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

/* ---------- Work / projects ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work {
  position: relative; overflow: hidden; border-radius: var(--radius);
  grid-column: span 4; aspect-ratio: 4 / 5;
  background: var(--ink-3);
}
.work:nth-child(1), .work:nth-child(4), .work:nth-child(5) { grid-column: span 8; aspect-ratio: auto; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.85); }
.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3, 12, 13, 0.92));
}
.work-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 26px;
}
.work-info small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.work-info h3 { font-size: clamp(17px, 1.7vw, 22px); margin-top: 8px; }
.work-arrow {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--ink);
  transform: scale(0.6) rotate(-45deg); opacity: 0; transition: 0.5s var(--ease);
}
.work-arrow svg { width: 18px; height: 18px; }
.work:hover img { transform: scale(1.06); filter: saturate(1.1); }
.work:hover .work-arrow { transform: none; opacity: 1; }

/* apps list */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.app {
  display: flex; gap: 18px; align-items: center;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s;
}
.app:hover { border-color: var(--line-strong); background: rgba(28, 207, 201, 0.04); }
.app img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; }
.app small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.app h4 { font-family: var(--f-body); font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1.35; margin-top: 6px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { position: relative; padding: 34px 28px 0 0; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--f-mono); font-size: 13px; color: var(--teal);
}
.step::after {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 5px rgba(28, 207, 201, 0.15);
}
.step h4 { font-size: 19px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(50px, 7vw, 90px); border-radius: 28px;
  background: linear-gradient(135deg, var(--teal-deep), #075a58 55%, var(--ink-3));
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.6; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.75); margin-top: 16px; }
.cta .btn-primary { background: #fff; }
.cta .eyebrow { color: #c9fffc; }
.cta .eyebrow::before { background: #c9fffc; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(150px, 18vw, 220px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-canvas { opacity: 0.7; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 85% 10%, rgba(28, 207, 201, 0.16), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.crumbs { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 26px; }
.crumbs a:hover { color: var(--teal); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 26px; }

/* ---------- Service detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-size: clamp(18px, 1.8vw, 23px); color: var(--text);
}
.acc-head i {
  flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  transition: background 0.3s, border-color 0.3s;
}
.acc-head i::before, .acc-head i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform 0.4s var(--ease);
}
.acc-head i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-head i { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.acc-item.is-open .acc-head i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc-body p { color: var(--muted); padding-bottom: 28px; max-width: 64ch; }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }

.types { margin-top: 70px; }
.types h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 15px; color: var(--text); background: rgba(28, 207, 201, 0.04);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.chips.stacked { flex-direction: column; align-items: stretch; }
.chips.stacked .chip { border-radius: 14px; padding: 16px 20px; }

.aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.aside-nav { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--ink-2); }
.aside-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 12px; color: var(--muted); font-weight: 500;
  transition: background 0.25s, color 0.25s;
}
.aside-nav a::after { content: "→"; transition: transform 0.3s var(--ease); }
.aside-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.aside-nav a:hover::after { transform: translateX(4px); }
.aside-nav a.is-active { background: var(--teal); color: var(--ink); }
.aside-card {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--teal-deep), var(--ink-3));
}
.aside-card h4 { font-size: 22px; margin-bottom: 10px; }
.aside-card p { color: rgba(255, 255, 255, 0.75); font-size: 15px; margin-bottom: 20px; }
.aside-card a.tel { display: block; font-family: var(--f-display); font-size: 20px; margin-bottom: 4px; }
.aside-card a.mail { color: #c9fffc; font-size: 15px; }
.aside-card .btn { margin-top: 22px; width: 100%; justify-content: center; }

/* tech logos */
.tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.tech-item {
  display: grid; justify-items: center; gap: 18px; padding: 34px 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-3);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.tech-item:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.tech-item .logo {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #fff; padding: 16px;
}
.tech-item img { max-height: 52px; width: auto; object-fit: contain; }
.tech-item span { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

/* about stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 4.4vw, 62px); line-height: 1; color: var(--text); }
.stat strong em { font-style: normal; color: var(--teal); }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }
.bar { margin-top: 18px; height: 2px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width 1.8s var(--ease) 0.2s; }
.is-in .bar i { width: var(--w); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 100px 0 30px; background: var(--ink); border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; }
.footer-grid h5 { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin: 0 0 22px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--muted); transition: color 0.25s; }
.footer-grid a:hover { color: var(--teal); }
.footer-about img { height: 60px; width: auto; margin-bottom: 22px; }
.footer-about p { color: var(--muted); font-size: 15px; max-width: 36ch; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.socials a:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.newsletter { display: flex; margin-top: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px; }
.newsletter input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text);
  padding: 10px 16px; font: 15px var(--f-body);
}
.newsletter input::placeholder { color: var(--dim); }
.newsletter button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: var(--ink); display: grid; place-items: center;
}
.newsletter button svg { width: 18px; height: 18px; }
.footer-word {
  margin: 80px 0 30px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(54px, 15vw, 230px); line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }

/* floating whatsapp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal); color: var(--ink);
  box-shadow: 0 14px 40px -10px rgba(28, 207, 201, 0.7);
  transition: transform 0.4s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--teal);
  animation: ping 2.4s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--teal); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-menu, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; min-height: 320px; }
  .service-card:nth-child(5) { grid-column: span 2; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .apps { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section-head, .split, .cta { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .services { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(5) { grid-column: span 1; min-height: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work, .work:nth-child(1), .work:nth-child(4), .work:nth-child(5) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .checklist, .feature-row { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .brand-name { display: none; }
  .media-badge { width: 104px; height: 104px; left: auto; right: 4%; }
  .media-badge strong { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
