/* ==========================================================================
   WebCraft Studio — styles
   Edit the theme tokens below to change colors, fonts, radii and shadows.
   ========================================================================== */
:root {
  /* Brand colors */
  --ink: #0e0f12;          /* primary: deep charcoal */
  --ink-2: #1a1c21;
  --ink-soft: #3b3e46;
  --muted: #6b6f78;
  --paper: #ffffff;        /* secondary: white */
  --paper-2: #f6f5f1;      /* off-white */
  --line: #e7e5df;
  --accent: #2f5bff;       /* electric blue */
  --accent-2: #5a7dff;
  --accent-soft: #e9eeff;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 15, 18, .05), 0 2px 8px rgba(14, 15, 18, .04);
  --shadow: 0 2px 4px rgba(14, 15, 18, .04), 0 12px 32px -8px rgba(14, 15, 18, .12);
  --shadow-lg: 0 30px 80px -20px rgba(14, 15, 18, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink-soft);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -.03em; margin: 0; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 91, 255, .15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 91, 255, 0); } }
.text-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: .95rem; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--accent); box-shadow: 0 8px 24px -8px rgba(47, 91, 255, .6), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--primary:hover { --bg: #2149e8; box-shadow: 0 14px 32px -10px rgba(47, 91, 255, .75); }
.btn--dark { --bg: var(--ink); }
.btn--dark:hover { box-shadow: var(--shadow); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); background: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.3); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: .65rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); box-shadow: 0 6px 24px -18px rgba(14,15,18,.35); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.logo__light { font-weight: 500; color: var(--muted); }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); position: relative; overflow: hidden;
}
.logo__mark::before { content: ''; position: absolute; inset: 7px 7px auto 7px; height: 4px; border-radius: 2px; background: #fff; }
.logo__mark::after { content: ''; position: absolute; left: 7px; bottom: 7px; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); box-shadow: 11px 0 0 -2px #fff; }
.logo--light { color: #fff; }
.logo--light .logo__light { color: rgba(255,255,255,.55); }
.logo--light .logo__mark { background: #fff; }
.logo--light .logo__mark::before { background: var(--ink); }
.logo--light .logo__mark::after { box-shadow: 11px 0 0 -2px var(--ink); }

.nav__links { display: flex; gap: .25rem; margin-left: auto; }
.nav__links a:not(.btn) {
  position: relative; padding: .5rem .8rem; font-size: .92rem; font-weight: 550; color: var(--ink-soft); border-radius: 999px; transition: color .2s, background .2s;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: rgba(14,15,18,.04); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }
.nav__mobile-cta, .nav__toggle { display: none; }
.nav__toggle { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%); }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(14,15,18,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(14,15,18,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  left: var(--mx, 70%); top: var(--my, 30%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 91, 255, .18), rgba(47, 91, 255, 0) 65%);
  transition: left .6s var(--ease), top .6s var(--ease);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.hero__title em { font-style: normal; color: var(--accent); background: linear-gradient(90deg, var(--accent), #7b5cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34rem; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.trust-line { display: flex; flex-wrap: wrap; gap: .4rem 0; margin-top: 2rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.trust-line li { display: inline-flex; align-items: center; }
.trust-line li + li::before { content: '•'; margin: 0 .7rem; color: var(--accent); }

.hero__visual { position: relative; aspect-ratio: 1 / .86; }
.device { margin: 0; position: absolute; background: #fff; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device--desktop {
  top: 2%; right: 0; width: 88%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: float 9s ease-in-out infinite;
}
.device--desktop img { aspect-ratio: 16 / 10.4; }
.device__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f2ee; border-bottom: 1px solid var(--line); }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d6ce; }
.device__bar span { margin-left: 10px; flex: 1; max-width: 220px; font-size: .68rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 10px; }
.device--laptop { left: 0; bottom: 4%; width: 54%; background: transparent; animation: float 9s ease-in-out -3s infinite; }
.device--laptop .device__screen { border: 7px solid var(--ink); border-bottom-width: 9px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.device--laptop img { aspect-ratio: 16 / 10; }
.device__base { height: 10px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#cfcdc6, #a9a7a0); box-shadow: 0 16px 30px -10px rgba(0,0,0,.35); }
.device--phone {
  right: 4%; bottom: 0; width: 23%; aspect-ratio: 9 / 19; border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: float 9s ease-in-out -6s infinite;
}
.device--phone img { object-position: 50% 0; }
.device__notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 12px; border-radius: 10px; background: var(--ink); z-index: 1; }
.hero__badge {
  position: absolute; left: 6%; top: 8%; display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: var(--shadow); border: 1px solid var(--line); font-size: .8rem;
  animation: float 7s ease-in-out -2s infinite;
}
.hero__badge .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.hero__badge strong { display: block; color: var(--ink); font-size: .85rem; }
.hero__badge span { color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { padding: 0 0 clamp(3rem, 6vw, 4.5rem); background: var(--paper-2); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1rem, 2.5vw, 2rem); text-align: left; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__value--text { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.035em; line-height: 1.12; }
.stat__value .suffix { color: var(--accent); }
.stat__label { display: block; margin-top: .6rem; font-size: .9rem; font-weight: 550; color: var(--muted); }
.stats__niches { margin-top: 1.5rem; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; position: relative; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.7); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--accent-2); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 1.1rem; font-size: 1.08rem; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; text-align: left; }
.section-head--split > p { max-width: 26rem; margin: 0 !important; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.service::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), rgba(47,91,255,.08), transparent 45%);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d6dcf5; }
.service:hover::before { opacity: 1; }
.service__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1.5rem;
  background: var(--paper-2); color: var(--ink); transition: background .35s, color .35s, transform .35s var(--ease);
}
.service__icon .icon { width: 24px; height: 24px; }
.service:hover .service__icon { background: var(--accent); color: #fff; transform: rotate(-6deg); }
.service h3 { margin-bottom: .6rem; }
.service > p { flex: 1; }
.service__more ul { margin-top: 1rem; display: grid; gap: .4rem; font-size: .92rem; }
.service__more li { padding-left: 1.2rem; position: relative; }
.service__more li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.link-more {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; padding: 0; background: none; border: 0;
  font-weight: 650; font-size: .92rem; color: var(--ink);
}
.link-more .icon { transition: transform .3s var(--ease); }
.link-more:hover { color: var(--accent); }
.link-more:hover .icon { transform: translateX(4px); }
.link-more[aria-expanded="true"] .icon { transform: rotate(90deg); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter {
  padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent;
  color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 600; transition: all .25s var(--ease);
}
.filter:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.filter.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project {
  display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius);
  overflow: hidden; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s, opacity .4s;
}
.project.is-hidden { display: none; }
.project.is-entering { animation: cardIn .5s var(--ease) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.project:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.project__media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; margin: .6rem .6rem 0; border-radius: 12px; background: #24262c; }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }
.project__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,15,18,.45)); opacity: 0; transition: opacity .4s; }
.project:hover .project__media::after { opacity: 1; }
.project__tag { position: absolute; top: .8rem; left: .8rem; z-index: 1; padding: .3rem .7rem; border-radius: 999px; background: rgba(14,15,18,.75); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 600; }
.project__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project__cat { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.project h3 { margin: .45rem 0 .6rem; font-size: 1.25rem; }
.project p { font-size: .93rem; flex: 1; }
.project__btn {
  margin-top: 1.3rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: .87rem; font-weight: 600; transition: background .25s, color .25s;
}
.project__btn:hover { background: #fff; color: var(--ink); }
.project__btn .icon { transition: transform .25s var(--ease); }
.project__btn:hover .icon { transform: translate(2px, -2px); }
.portfolio-empty { grid-column: 1 / -1; text-align: center; padding: 3rem; color: rgba(255,255,255,.6); }
.portfolio-cta {
  margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 2rem clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(120deg, rgba(47,91,255,.22), rgba(47,91,255,.02) 60%);
}
.portfolio-cta p { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; color: #fff; }

/* ---------- Benefits ---------- */
.benefits { gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.benefit { padding: clamp(1.75rem, 3vw, 2.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s; }
.benefit:nth-child(3n) { border-right: 0; }
.benefit:nth-last-child(-n + 3) { border-bottom: 0; }
.benefit:hover { background: var(--paper-2); }
.benefit .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 1.4rem; transition: transform .4s var(--ease); }
.benefit:hover .icon { transform: scale(1.12) rotate(-4deg); }
.benefit h3 { margin-bottom: .5rem; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.timeline::before, .timeline::after {
  content: ''; position: absolute; top: 31px; left: 32px; right: 32px; height: 2px; border-radius: 2px; background: var(--line);
}
.timeline::after { background: var(--accent); right: auto; width: calc((100% - 64px) * var(--progress, 0)); transition: width 1.2s var(--ease); }
.timeline__step { position: relative; z-index: 1; padding-right: 1rem; cursor: default; }
.timeline__num {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1.6rem;
  background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  transition: background .5s var(--ease), border-color .5s, color .5s, transform .4s var(--ease), box-shadow .5s;
}
.timeline__step h3 { font-size: 1.35rem; margin-bottom: .55rem; transition: color .4s; }
.timeline__step p { transition: color .4s; }
.timeline__step.is-active .timeline__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.timeline__step:hover .timeline__num, .timeline__step.is-current .timeline__num { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 8px rgba(47,91,255,.12); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; }
.about__chip {
  position: absolute; right: -1rem; bottom: 2rem; padding: 1rem 1.25rem; border-radius: 16px; background: var(--ink); color: rgba(255,255,255,.8);
  font-size: .85rem; box-shadow: var(--shadow-lg); max-width: 12rem;
}
.about__chip strong { display: block; font-size: 1.9rem; color: #fff; letter-spacing: -.04em; line-height: 1.1; }
.about__lead { margin-top: 1.25rem; font-size: 1.1rem; color: var(--ink-soft); }
.about__mission { margin: 1.75rem 0; padding: 1.25rem 1.4rem; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 12px 12px 0; }
.about__mission strong { color: var(--ink); }
.about__points { display: grid; gap: .55rem; margin-bottom: 2rem; font-weight: 550; color: var(--ink); }
.about__points li { display: flex; align-items: center; gap: .6rem; }
.about__points .icon { color: var(--accent); stroke-width: 2.4; }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; }
.marquee { display: grid; gap: 1.25rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; width: max-content; gap: 1.25rem; animation: scroll var(--dur, 60s) linear infinite; }
.marquee__row--reverse { animation-direction: reverse; }
.marquee:hover .marquee__row, .marquee:focus-within .marquee__row { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - .625rem)); } }
.quote { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; padding: 1.75rem; margin: 0; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote__stars { display: flex; gap: 2px; color: #c9cbd3; margin-bottom: 1rem; }
.quote__stars .icon { width: 14px; height: 14px; }
.quote__stars .is-on { color: var(--ink); opacity: .75; }
.quote blockquote { margin: 0; flex: 1; color: var(--ink); font-size: .98rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: .75rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .87rem; }
.quote__avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2.25rem; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.3rem; }
.plan__desc { margin-top: .5rem; font-size: .95rem; min-height: 3.1em; }
.plan__price { margin: 1.6rem 0; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.plan__price strong { display: block; font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.045em; color: var(--ink); line-height: 1; }
.plan__price span { display: block; margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.plan ul { display: grid; gap: .75rem; flex: 1; margin-bottom: 2rem; }
.plan li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.plan li .icon { margin-top: .2em; width: 1.05em; height: 1.05em; color: var(--accent); stroke-width: 2.4; }
.plan--featured { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.7); box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .plan__price strong, .plan--featured li { color: #fff; }
.plan--featured .plan__price { border-color: rgba(255,255,255,.12); }
.plan--featured .plan__price span { color: rgba(255,255,255,.55); }
.plan--featured li .icon { color: var(--accent-2); }
.plan__badge { position: absolute; top: 1.6rem; right: 1.6rem; padding: .35rem .75rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.pricing__note { text-align: center; margin-top: 2rem; font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 2rem); margin-bottom: 0; }
.accordion { display: grid; gap: .75rem; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; }
.acc.is-open { border-color: #d2d0c9; box-shadow: var(--shadow-sm); }
.acc h3 { font-size: 1.02rem; }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem;
  background: none; border: 0; text-align: left; color: var(--ink); font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em;
}
.acc__icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); transition: transform .4s var(--ease), background .3s, color .3s; }
.acc.is-open .acc__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 1.4rem 1.4rem; max-width: 40rem; }

/* ---------- Final CTA ---------- */
.cta-banner { padding: 0 0 clamp(4.5rem, 10vw, 7.5rem); background: var(--paper-2); }
.cta-banner__inner {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: calc(var(--radius-lg) + 6px); background: var(--ink); color: rgba(255,255,255,.72);
}
.cta-banner__inner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000, transparent 70%);
}
.cta-banner__glow { position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 80%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(47,91,255,.55), rgba(123,92,255,.15) 40%, transparent 65%); filter: blur(10px); }
.cta-banner h2 { color: #fff; max-width: 44rem; margin: 0 auto; font-size: clamp(2rem, 4.6vw, 3.5rem); }
.cta-banner p { max-width: 36rem; margin: 1.25rem auto 0; font-size: 1.1rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.25rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { margin-top: 1.1rem; font-size: 1.08rem; }
.contact__details { display: grid; gap: 1rem; margin: 2.25rem 0; }
.contact__details li { display: flex; gap: 1rem; align-items: center; }
.contact__details .icon { width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: var(--paper-2); color: var(--ink); }
.contact__details span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__details a, .contact__details p { color: var(--ink); font-weight: 600; }
.contact__details a:hover { color: var(--accent); }
.socials { display: flex; gap: .55rem; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-3px); }
.socials--dark a { border-color: rgba(255,255,255,.15); color: #fff; }
.socials--dark a:hover { background: #fff; color: var(--ink); border-color: #fff; }

.form { padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink); }
.field abbr { color: var(--accent); text-decoration: none; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2);
  font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6f78' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #a3a6ad; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d2d0c9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(47,91,255,.12); }
.field.has-error input, .field.has-error textarea { border-color: #d93636; }
.field__error { font-size: .8rem; color: #c02828; }
.form__note { text-align: center; font-size: .82rem; color: var(--muted); }
.form__status:empty { display: none; }
.form__status { padding: 1rem 1.2rem; border-radius: 12px; font-size: .93rem; font-weight: 550; }
.form__status.is-success { background: #e8f6ee; color: #136c3a; }
.form__status.is-error { background: #fdecec; color: #a12020; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { margin: 1rem 0 1.5rem; }
.footer__links { display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 3.5rem; align-content: start; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__cta p { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; letter-spacing: -.02em; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: .87rem; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Modal (full-screen project viewer) ---------- */
.modal {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: rgba(255,255,255,.75); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modalIn .35s var(--ease); }
.modal::backdrop { background: var(--ink); }
@keyframes modalIn { from { opacity: 0; transform: scale(.985); } }
.modal__bar { display: flex; align-items: center; gap: .75rem; padding: .9rem clamp(1rem, 3vw, 1.75rem); border-bottom: 1px solid rgba(255,255,255,.08); }
.modal__heading { flex: 1; min-width: 0; }
.modal__cat { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__heading h3 { color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__count { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.modal__icon, .modal__nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #fff; display: grid; place-items: center; transition: background .25s, color .25s;
}
.modal__icon:hover, .modal__nav:hover { background: #fff; color: var(--ink); }
.modal__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 6vw, 5rem); }
.modal__media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.modal__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.modal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(14,15,18,.7); backdrop-filter: blur(6px); }
.modal__nav--prev { left: clamp(.5rem, 1.5vw, 1.25rem); }
.modal__nav--next { right: clamp(.5rem, 1.5vw, 1.25rem); }
.modal__nav[hidden] { display: none; }
.modal__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1rem clamp(1rem, 3vw, 1.75rem) 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.modal__body p { margin: 0; flex: 1 1 320px; max-width: 70ch; font-size: .95rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.modal .btn--ghost { --fg: #fff; background: transparent; border-color: rgba(255,255,255,.3); }
.modal .btn--ghost:hover { border-color: #fff; }
.project__media[data-project] { cursor: zoom-in; }
@media (max-width: 640px) {
  .modal__stage { padding-inline: .5rem; }
  .modal__nav { top: auto; bottom: 1rem; transform: none; }
  .modal__body .btn { flex: 1; }
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(3rem, 8vw, 5rem) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; letter-spacing: -.02em; }
.legal p, .legal li { margin-bottom: .8rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links a:not(.btn) { padding: .5rem .55rem; }
  .portfolio-grid, .cards--3, .pricing { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { order: -1; grid-column: 1 / -1; }
  .benefit:nth-child(3n) { border-right: 1px solid var(--line); }
  .benefit:nth-child(2n) { border-right: 0; }
  .benefit:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .benefit:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: .85rem .5rem; font-size: 1.05rem; border-radius: 10px; }
  .nav__links a:not(.btn)::after { left: auto; right: .75rem; top: 50%; bottom: auto; transform: translateY(-50%) scale(0); }
  .nav__links a.is-active::after { transform: translateY(-50%) scale(1); }
  .nav__mobile-cta { display: inline-flex; margin-top: .75rem; }
  .hero__inner, .about, .faq, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; width: 100%; margin: 1rem auto 0; }
  .faq .section-head { position: static; }
  .about__chip { right: 1rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before, .timeline::after { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
  .timeline::after { height: calc((100% - 64px) * var(--progress, 0)); bottom: auto; transition: height 1.2s var(--ease); }
  .timeline__step { display: grid; grid-template-columns: 64px 1fr; column-gap: 1.5rem; padding: 0 0 2.25rem; }
  .timeline__step:last-child { padding-bottom: 0; }
  .timeline__num { grid-row: span 2; margin: 0; }
  .timeline__step h3 { align-self: end; margin-top: .6rem; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .portfolio-grid, .cards--3, .pricing, .form__row { grid-template-columns: 1fr; }
  .benefit { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .benefit:last-child { border-bottom: 0 !important; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badge { display: none; }
  .quote { width: 300px; }
  .stat { padding: 1.4rem 1.1rem; }
  .card { padding: 1.6rem; }
  .plan { padding: 1.9rem; }
  .portfolio-cta .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer__links { gap: .7rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__row { flex-wrap: wrap; width: auto; justify-content: center; padding-inline: 1.25rem; }
  .marquee__row [aria-hidden="true"] { display: none; }
}
