/* =====================================================================
   FAIZAN HASHMI — PORTFOLIO
   ---------------------------------------------------------------------
   GLOBAL SETTINGS — change everything from this ONE block.
   Colors can ALSO be changed live on the site (palette button).
   ===================================================================== */

:root {
  /* ---- BRAND (solid blue, no gradients) ---- */
  --primary:        #1f6bff;
  --on-primary:     #ffffff;                                   /* text on blue */
  --primary-hover:  color-mix(in srgb, var(--primary) 82%, #000);
  --primary-soft:   color-mix(in srgb, var(--primary) 14%, transparent);
  --primary-line:   color-mix(in srgb, var(--primary) 45%, transparent);

  /* ---- DARK THEME (default) ---- */
  --bg:             #05070d;   /* black */
  --bg-2:           #0a0d16;
  --surface:        #0f131e;
  --surface-2:      #151a28;
  --border:         rgba(255, 255, 255, 0.09);
  --text:           #ffffff;   /* white */
  --text-muted:     #98a1b8;
  --heading:        #ffffff;
  --shadow:         0 24px 60px -24px rgba(0, 0, 0, 0.7);

  /* ---- FONTS ---- */
  --font-heading:   "Poppins", system-ui, sans-serif;
  --font-body:      "Inter", system-ui, sans-serif;

  /* ---- SIZES ---- */
  --container:      1240px;
  --radius:         18px;
  --radius-sm:      calc(var(--radius) * .6);
  --radius-pill:    999px;
  --section-space:  clamp(90px, 11vw, 150px);
  --header-h:       78px;

  /* ---- MOTION ---- */
  --ease:           cubic-bezier(.22, 1, .36, 1);
  --ease-out:       cubic-bezier(.16, 1, .3, 1);
}

[data-theme="light"] {
  --bg:         #ffffff;
  --bg-2:       #f4f6fb;
  --surface:    #ffffff;
  --surface-2:  #eef2fa;
  --border:     rgba(5, 7, 13, 0.1);
  --text:       #0b0f1a;
  --text-muted: #56607a;
  --heading:    #05070d;
  --shadow:     0 24px 50px -24px rgba(16, 30, 70, 0.22);
}

/* =====================================================================
   BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}
body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body.is-loading { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.12; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
strong { color: var(--heading); font-weight: 600; }
em { font-style: normal; color: var(--primary); }
::selection { background: var(--primary); color: var(--on-primary); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); position: relative; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 9999; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* =====================================================================
   BRANDED SCROLLBAR
   ===================================================================== */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--border); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 12px; border: 3px solid var(--bg); min-height: 60px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); border-width: 2px; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: var(--primary); }

/* =====================================================================
   HELPERS
   ===================================================================== */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.eyebrow svg { font-size: 15px; fill: currentColor; stroke: none; animation: spin 6s linear infinite; }
.eyebrow--center { justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-title { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.03em; font-weight: 800; }
.section-sub { color: var(--text-muted); font-size: 17px; margin-top: 16px; max-width: 520px; }
.section-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .section-sub { margin-inline: auto; }
.section-head--split { text-align: left; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head--split .section-sub { margin-inline: 0; }

/* Split headings (word reveal) */
[data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .sw > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
[data-split].is-in .sw > span { transform: none; }

/* Roll text hover (used on buttons + links) */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; line-height: 1.3; }
.roll > span { display: block; transition: transform .5s var(--ease); }
.roll > span + span { position: absolute; left: 0; top: 100%; }
a:hover .roll > span, button:hover .roll > span, .roll:hover > span { transform: translateY(-100%); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  --pad: 16px 28px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .35s, background-color .35s, border-color .35s;
}
.btn svg { font-size: 18px; transition: transform .45s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px) rotate(-45deg); }
.btn:hover svg:first-child:not(:last-child) { transform: scale(1.15) rotate(-10deg); }
.btn:active { transform: scale(.96); }
.btn--sm { --pad: 11px 20px; font-size: 14px; }
.btn::after { /* fill circle on hover */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 0) scale(0); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translate(-50%, -60%) scale(1); }

.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 12px 30px -12px var(--primary); }
.btn--primary::after { background: var(--heading); }
.btn--primary:hover { color: var(--bg); box-shadow: 0 18px 40px -14px var(--primary); }

.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn--ghost::after { background: var(--primary); }
.btn--ghost:hover { color: var(--on-primary); border-color: var(--primary); }

.btn--light { background: #fff; color: #05070d; }
.btn--light::after { background: #05070d; }
.btn--light:hover { color: #fff; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; font-size: 19px; color: var(--text); transition: transform .5s var(--ease), border-color .3s, background-color .3s, color .3s; }
.icon-btn:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: rotate(-15deg) scale(1.06); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--primary); position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg:last-child { transition: transform .4s var(--ease); }
.link-arrow:hover svg:last-child { transform: translate(3px, -3px); }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: border-color .3s, color .3s; }
.pill:hover { border-color: var(--primary); color: var(--text); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* =====================================================================
   PRELOADER (two-panel curtain)
   ===================================================================== */
.preloader { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.preloader__panel { position: absolute; inset: 0; transition: transform 1s var(--ease-out); }
.preloader__panel--blue { background: var(--primary); transition-delay: .18s; }
.preloader__panel--dark { background: #05070d; color: #fff; display: grid; place-items: center; }
.preloader.is-done .preloader__panel { transform: translateY(-100%); }
.preloader.is-gone { display: none; }
.preloader__inner { width: min(320px, 80vw); text-align: center; }
.preloader__icon { font-size: 44px; color: var(--primary); animation: search 1.6s ease-in-out infinite; }
@keyframes search { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(10px, -6px); } 50% { transform: translate(0, -10px); } 75% { transform: translate(-10px, -4px); } }
.preloader__label { margin-top: 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #98a1b8; }
.preloader__count { font-family: var(--font-heading); font-size: 76px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.preloader__count small { font-size: .4em; color: var(--primary); margin-left: 4px; }
.preloader__bar { height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--primary); }

/* =====================================================================
   CURSOR
   ===================================================================== */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; opacity: 0; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor select, .has-cursor label { cursor: none; }
.has-cursor input:not([type="range"]):not([type="color"]):not([type="checkbox"]), .has-cursor textarea { cursor: text; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--primary); transition: opacity .3s, transform 0s; }
.cursor-ring { width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 1.5px solid var(--primary); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .4s, border-color .4s, opacity .3s; }
.cursor-text { font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-primary); opacity: 0; transform: scale(.4); transition: .35s var(--ease); display: flex; align-items: center; gap: 4px; }
.cursor-ring.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: var(--primary-soft); }
.cursor-ring.is-view { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--primary); }
.cursor-ring.is-view .cursor-text { opacity: 1; transform: none; }
.cursor-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor-dot.is-hidden { opacity: 0 !important; }

/* =====================================================================
   BACKGROUND (no gradients: SVG grid + canvas network)
   ===================================================================== */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#bgNetwork { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; transition: opacity .5s; }
.bg-off #bgNetwork { opacity: 0; }
.bg__grid { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0v72' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E"); }
[data-theme="light"] .bg__grid { opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0v72' fill='none' stroke='%23e6eaf3' stroke-width='1'/%3E%3C/svg%3E"); }

/* =====================================================================
   HEADER
   ===================================================================== */
.header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h); transition: background-color .4s, height .4s var(--ease), border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--border); height: 66px; }
.header.is-hidden { transform: translateY(-100%); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 24px; letter-spacing: -.03em; color: var(--heading); }
.logo__mark { width: 38px; height: 38px; border-radius: calc(var(--radius) * .6); display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 20px; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.08); border-radius: 50%; }
.logo__text b { color: var(--primary); }

.nav__links { display: flex; gap: 2px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(10px); }
.nav__link { position: relative; display: block; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .3s, background-color .35s; }
.nav__link:hover { color: var(--heading); background: var(--primary-soft); }
.nav__link.active { color: var(--on-primary); background: var(--primary); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--heading); border-radius: 2px; transition: .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; right: 18px; }
.burger:hover span:last-child { right: 12px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; right: 12px; transform: rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 30px) 0 40px; position: relative; overflow: hidden; }
.hero__bgtext { position: absolute; right: -2vw; top: 50%; translate: 0 -50%; font-family: var(--font-heading); font-weight: 900; font-size: 34vw; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--border); pointer-events: none; user-select: none; z-index: -1; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }

.hero__anim { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.is-loaded .hero__anim { opacity: 1; transform: none; }

.hero__content > .pill { margin-bottom: 26px; }
.hero__title { font-size: clamp(42px, 5.2vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.hero__kicker { display: block; font-size: clamp(14px, 1.2vw, 17px); font-weight: 600; letter-spacing: 0; color: var(--text-muted); margin-bottom: 22px; line-height: 1.4; }
.hero__kicker i { font-style: normal; color: var(--primary); margin: 0 6px; }
.hero__title .line { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.08em; white-space: nowrap; }
.hero__title .w { display: inline-block; transform: translateY(115%) rotate(4deg); transition: transform 1.1s var(--ease-out) var(--d); vertical-align: middle; }
.is-loaded .hero__title .w { transform: none; }
.w--outline { color: transparent; -webkit-text-stroke: 2px var(--heading); transition: color .4s, transform 1.1s var(--ease-out) var(--d) !important; }
.w--outline:hover { color: var(--primary); -webkit-text-stroke-color: var(--primary); }
.w--blue { color: var(--primary); }

.hero__photo-pill { width: 1.7em; height: .82em; border-radius: var(--radius-pill); overflow: hidden; border: 3px solid var(--primary); vertical-align: middle; margin-top: -.12em; }
.hero__photo-pill img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .8s var(--ease); }
.hero__photo-pill:hover img { transform: scale(1.25); }

.google-word { position: relative; }
.google-word__spark { position: absolute; top: -.05em; right: -.42em; font-size: .38em; fill: var(--primary); stroke: none; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.55) rotate(90deg); } }

.hero__typed { margin-top: 26px; display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--heading); }
.hero__typed svg { color: var(--primary); font-size: 22px; }
.typed-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--primary); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__text { margin-top: 14px; max-width: 540px; color: var(--text-muted); font-size: 17px; }
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Arch photo */
.hero__visual { position: relative; display: flex; justify-content: center; }
.arch { position: relative; width: min(400px, 100%); aspect-ratio: 4 / 5.1; transition: transform .25s ease-out; transform-style: preserve-3d; }
.arch__back { position: absolute; inset: 0; translate: 18px 18px; border-radius: 220px 220px var(--radius) var(--radius); background: var(--primary); transition: translate .6s var(--ease); }
.arch:hover .arch__back { translate: 26px 26px; }
.arch__dots { position: absolute; width: 130px; height: 130px; left: -46px; bottom: 60px; color: var(--primary); opacity: .55; animation: drift 8s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(10px, -14px); } }
.arch__img { position: absolute; inset: 0; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); clip-path: inset(100% 0 0 0 round 220px 220px var(--radius) var(--radius)); transition: clip-path 1.4s var(--ease-out) .6s; }
.is-loaded .arch__img { clip-path: inset(0 0 0 0 round 220px 220px var(--radius) var(--radius)); }
.arch__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transform: scale(1.25); transition: transform 1.6s var(--ease-out) .6s; }
.is-loaded .arch__img img { transform: scale(1.04); }
.arch:hover .arch__img img { transform: scale(1.1); transition-delay: 0s; }

.float-card { position: absolute; z-index: 2; padding: 13px 15px; border-radius: calc(var(--radius) * .8); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; transition: border-color .3s, scale .4s var(--ease); }
.float-card:hover { border-color: var(--primary); scale: 1.06; }
.float-card__title { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.float-card__title svg { color: var(--primary); font-size: 14px; }
@keyframes float { 50% { translate: 0 -12px; } }
.float-card--serp { top: 10%; left: -24%; display: flex; align-items: center; gap: 12px; animation-delay: -1s; }
.float-card__icon { width: 38px; height: 38px; border-radius: calc(var(--radius) * .55); display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 18px; }
.float-card--serp small { display: block; font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.float-card--serp b { font-size: 13px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.float-card--check { bottom: 8%; left: -20%; animation-delay: -2.5s; }
.float-card--check li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.95; }
.float-card--check li svg { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--primary); color: var(--on-primary); stroke-width: 3.5; }
.float-card--chart { top: 46%; right: -14%; width: 170px; animation-delay: -4s; }
.mini-chart { width: 100%; height: auto; overflow: visible; }
.chart-area { fill: var(--primary); opacity: .16; }
.chart-line { stroke: var(--primary); stroke-width: 2.5; fill: none; stroke-dasharray: 200; stroke-dashoffset: 200; }
.is-loaded .chart-line { animation: draw 2.4s var(--ease) 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Spinning text badge */
.spin-badge { position: relative; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); transition: transform .6s var(--ease), background-color .4s, border-color .4s; }
.spin-badge__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.spin-badge__text text { fill: var(--heading); stroke: none; font-family: var(--font-heading); font-size: 15.5px; font-weight: 600; letter-spacing: 3px; }
.spin-badge__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 24px; transition: transform .6s var(--ease); }
.spin-badge:hover { transform: scale(1.08); border-color: var(--primary); }
.spin-badge:hover .spin-badge__text { animation-duration: 4s; }
.spin-badge:hover .spin-badge__icon { transform: rotate(-45deg) scale(1.1); }
.hero__badge { position: absolute; right: -6%; top: -7%; z-index: 3; }

.hero__stats { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 85%, transparent); overflow: hidden; }
.hero__stats li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-right: 1px solid var(--border); position: relative; transition: background-color .4s; }
.hero__stats li:last-child { border-right: 0; }
.hero__stats li > svg { font-size: 22px; color: var(--primary); transition: transform .5s var(--ease), color .3s; }
.hero__stats li:hover { background: var(--primary); }
.hero__stats li:hover > svg, .hero__stats li:hover strong, .hero__stats li:hover div > span { color: var(--on-primary); }
.hero__stats li:hover > svg { transform: rotate(-12deg) scale(1.15); }
.hero__stats strong { display: block; font-family: var(--font-heading); font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--heading); transition: color .3s; }
.hero__stats li div > span { font-size: 13px; color: var(--text-muted); transition: color .3s; }

/* =====================================================================
   DOUBLE MARQUEE
   ===================================================================== */
.marquees { position: relative; height: 200px; margin-block: 20px; overflow: hidden; }
.mq { position: absolute; left: -5%; width: 110%; padding: 18px 0; overflow: hidden; }
.mq--blue { top: 30px; background: var(--primary); color: var(--on-primary); transform: rotate(-3deg); z-index: 2; }
.mq--dark { top: 70px; background: var(--surface); border-block: 1px solid var(--border); transform: rotate(2.5deg); }
.mq__track { display: flex; align-items: center; gap: 34px; width: max-content; will-change: transform; }
.mq span { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 38px); font-weight: 800; white-space: nowrap; letter-spacing: -.02em; text-transform: uppercase; }
.mq--dark span { color: transparent; -webkit-text-stroke: 1.2px var(--text-muted); }
.mq svg { font-size: 26px; fill: currentColor; stroke: none; }
.mq--dark svg { color: var(--primary); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__big { font-family: var(--font-heading); font-size: clamp(26px, 3.6vw, 50px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; max-width: 1100px; }
.about__big .rw { color: var(--border); transition: color .3s; }
[data-theme="light"] .about__big .rw { color: #d5dae6; }
.about__big .rw.on { color: var(--heading); }
.about__big .rw.on.hl { color: var(--primary); }

.about__grid { margin-top: 70px; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; align-items: start; }
.about__card { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .4s, transform .25s ease-out; }
.about__card:hover { border-color: var(--primary); }
.about__avatar { aspect-ratio: 1; border-radius: calc(var(--radius) * .75); overflow: hidden; position: relative; }
.about__avatar::after { content: ""; position: absolute; inset: 0; background: var(--primary); mix-blend-mode: color; opacity: 0; transition: opacity .5s; }
.about__card:hover .about__avatar::after { opacity: .5; }
.about__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 1s var(--ease); }
.about__card:hover .about__avatar img { transform: scale(1.08); }
.about__card-body { padding: 16px 6px 6px; }
.about__name { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--heading); }
.about__role { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.about__text p { color: var(--text-muted); font-size: 16.5px; margin-bottom: 18px; }
.info-list { display: grid; gap: 10px; }
.info-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); transition: transform .4s var(--ease), border-color .3s; }
.info-list li:hover { transform: translateX(-8px); border-color: var(--primary); }
.info-list__icon { width: 40px; height: 40px; flex: none; border-radius: calc(var(--radius) * .5); display: grid; place-items: center; font-size: 18px; color: var(--primary); background: var(--primary-soft); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.info-list li:hover .info-list__icon { background: var(--primary); color: var(--on-primary); transform: rotate(-10deg); }
.info-list small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); line-height: 1.4; }
.info-list b { font-weight: 600; color: var(--heading); font-size: 14.5px; word-break: break-word; }
.info-list a:hover { color: var(--primary); }

/* =====================================================================
   SERVICES (hover list)
   ===================================================================== */
.services { background: var(--bg-2); }
.srv-list { border-top: 1px solid var(--border); }
.srv { position: relative; display: grid; grid-template-columns: 70px 60px 1.1fr 1fr 56px; align-items: center; gap: 24px; padding: 30px 20px; border-bottom: 1px solid var(--border); overflow: hidden; isolation: isolate; }
.srv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.srv:hover::before { transform: scaleY(1); }
.srv__num { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text-muted); transition: color .4s; }
.srv__icon { width: 52px; height: 52px; border-radius: calc(var(--radius) * .6); display: grid; place-items: center; font-size: 22px; color: var(--primary); background: var(--primary-soft); transition: .5s var(--ease); }
.srv__title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; transition: transform .6s var(--ease), color .4s; }
.srv__desc { color: var(--text-muted); font-size: 15px; transition: color .4s; }
.srv__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 20px; transition: .5s var(--ease); }
.srv:hover .srv__num, .srv:hover .srv__title, .srv:hover .srv__desc { color: var(--on-primary); }
.srv:hover .srv__title { transform: translateX(14px); }
.srv:hover .srv__icon { background: var(--on-primary); color: var(--primary); transform: rotate(-12deg) scale(1.08); }
.srv:hover .srv__arrow { background: var(--on-primary); color: var(--primary); border-color: transparent; transform: rotate(45deg); }

.srv-preview { position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .45s var(--ease); }
.srv-preview.is-on { opacity: 1; transform: scale(1); }
.srv-preview__inner { width: 250px; padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); translate: 24px -50%; }
.srv-preview__icon { font-size: 26px; color: var(--primary); margin-bottom: 10px; }
.srv-preview li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.9; color: var(--text); }
.srv-preview li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.process__sticky { position: sticky; top: 130px; }
.process__meter { position: relative; width: 190px; height: 190px; margin-top: 40px; }
.process__meter svg, .seo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.meter-fg { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .2s linear; }
.process__meter-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 50px; color: var(--heading); line-height: 1; }
.process__meter-val small { font-size: 22px; color: var(--primary); margin-left: 2px; }

.process__steps { position: relative; padding-left: 74px; display: grid; gap: 18px; }
.process__line { position: absolute; left: 25px; top: 20px; bottom: 20px; width: 2px; background: var(--border); }
.process__line span { position: absolute; inset: 0; background: var(--primary); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .4s, transform .5s var(--ease), background-color .4s; }
.step:hover { transform: translateX(8px); border-color: var(--primary); }
.step__icon { position: absolute; left: -74px; top: 20px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--bg); border: 2px solid var(--border); color: var(--text-muted); transition: .5s var(--ease); }
.step.is-active .step__icon { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 7px var(--primary-soft); }
.step:hover .step__icon { transform: rotate(-15deg) scale(1.08); }
.step__pct { font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .08em; }
.step h3 { font-size: 21px; margin: 2px 0 6px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* =====================================================================
   WORK (horizontal scroll)
   ===================================================================== */
.work { position: relative; background: var(--bg-2); }
.work__pin { position: relative; }
.work__track { display: flex; flex-direction: column; gap: 26px; width: min(100% - 40px, var(--container)); margin-inline: auto; padding-block: var(--section-space); }
.work__progress { display: none; }

.work-intro { padding: 10px 0 20px; position: relative; }
.work-intro__hint { display: none; }
.work-intro__count { display: none; }

.work-card { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 30px; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--border); transition: border-color .4s, box-shadow .4s; }
.work-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow); }
.work-card__media { position: relative; }
.work-card__num { position: absolute; left: 0; top: -66px; font-family: var(--font-heading); font-weight: 900; font-size: 58px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--primary); pointer-events: none; }
.work-card__title { display: flex; align-items: center; gap: 10px; font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 8px; }
.work-card__title svg { color: var(--primary); font-size: .9em; }
.work-card__desc { color: var(--text-muted); font-size: 15px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--text-muted); transition: .3s; }
.tag:hover { border-color: var(--primary); color: var(--primary); }
.tag--fill { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tag--fill:hover { color: var(--on-primary); }
.tag svg { fill: currentColor; stroke: none; }

.browser { display: block; border-radius: calc(var(--radius) * .8); overflow: hidden; border: 1px solid var(--border); background: #0b1020; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transition: transform .7s var(--ease); }
.work-card:hover .browser { transform: translateY(-8px) rotate(-1deg); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #121829; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 10px; flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8b94ad; background: #0b1020; padding: 4px 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__screen { aspect-ratio: 16 / 10; padding: 8% 9%; display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; overflow: hidden; color: #fff; }
/* Live screenshot of the real website (loads over the mockup) */
.browser__live { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: #fff; opacity: 0; transition: opacity .9s var(--ease), object-position 6s ease-in-out; }
.browser__live.is-loaded { opacity: 1; }
.work-card:hover .browser__live.is-loaded { object-position: center bottom; }
.browser__live-tag { display: none; align-items: center; gap: 6px; flex: none; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--primary); padding: 3px 9px; border-radius: 999px; }
.browser__live-tag b { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulseDot 1.4s ease-in-out infinite; }
@keyframes pulseDot { 50% { opacity: .25; } }
.browser.has-live .browser__live-tag { display: inline-flex; }

.mock-btn { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: #fff; color: #111; }
.mock-ed { background: #1c0f10; }
.mock-ed__kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #e7b98a; }
.mock-ed__title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.15; }
.mock-ed__books { position: absolute; right: 8%; bottom: 14%; display: flex; gap: 8px; align-items: flex-end; }
.mock-ed__books span { width: 42px; height: 62px; border-radius: 3px 6px 6px 3px; background: #b3262b; box-shadow: -4px 6px 14px rgba(0,0,0,.5); transform: rotate(-6deg); transition: transform .6s var(--ease); }
.mock-ed__books span:nth-child(2) { height: 74px; background: #2d6cdf; transform: rotate(2deg); }
.mock-ed__books span:nth-child(3) { background: #d69a3e; transform: rotate(8deg); }
.work-card:hover .mock-ed__books span { transform: translateY(-10px) rotate(0); }
.mock-ed .mock-btn { background: #e7b98a; }
.mock-eqx { background: #0d2240; }
.mock-eqx__logo { font-family: var(--font-heading); font-weight: 800; font-size: 26px; }
.mock-eqx__logo b { color: #f6b73c; }
.mock-eqx__title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(16px, 2vw, 22px); }
.mock-eqx__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-eqx__chips span { font-size: 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); transition: .4s var(--ease); }
.work-card:hover .mock-eqx__chips span { background: #fff; color: #0d2240; }
.mock-sole { background: #efefec; color: #111; }
.mock-sole__title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(16px, 2vw, 22px); }
.mock-sole__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-sole__grid span { background: #fff; border-radius: 8px; padding: 8px; box-shadow: 0 6px 14px rgba(0,0,0,.08); transition: transform .5s var(--ease); }
.mock-sole__grid span:nth-child(2) { transition-delay: .06s; }
.mock-sole__grid span:nth-child(3) { transition-delay: .12s; }
.work-card:hover .mock-sole__grid span { transform: translateY(-8px); }
.mock-sole__grid i { display: block; height: 34px; border-radius: 6px; background: #2a2a2a; clip-path: polygon(0 60%, 30% 40%, 55% 45%, 100% 70%, 100% 100%, 0 100%); }
.mock-sole__grid span:nth-child(2) i { background: var(--primary); }
.mock-sole__grid em { display: block; font-style: normal; font-size: 10px; font-weight: 700; margin-top: 4px; color: #111; }
.mock-sole .mock-btn { background: #111; color: #fff; }

.seo-ring { position: absolute; right: -14px; bottom: -22px; width: 116px; height: 116px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px; transition: transform .6s var(--ease); }
.work-card:hover .seo-ring { transform: rotate(-8deg) scale(1.06); }
.seo-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.seo-ring b { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--heading); }
.seo-ring small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.seo-ring .meter-fg { transition: stroke-dashoffset 2s var(--ease); }

.serp { margin: 18px 0; padding: 15px 18px; border-radius: calc(var(--radius) * .75); background: #fff; color: #202124; font-family: Arial, var(--font-body); border: 1px solid rgba(0,0,0,.08); transition: transform .5s var(--ease), box-shadow .5s; }
.serp:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.45); }
.serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.serp__fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--primary); border: 1px solid #e3e3e3; }
.serp__site b { display: block; font-size: 13px; font-weight: 400; color: #202124; line-height: 1.2; }
.serp__site small { display: block; font-size: 12px; color: #4d5156; line-height: 1.2; }
.serp__title { font-size: 18px; color: #1a0dab; line-height: 1.3; margin-bottom: 4px; }
.serp:hover .serp__title { text-decoration: underline; }
.serp__desc { font-size: 13px; color: #4d5156; line-height: 1.55; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin-bottom: 22px; }
.checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.45; transition: transform .35s var(--ease), color .3s; }
.checklist li svg { width: 18px; height: 18px; padding: 3.5px; border-radius: 50%; background: var(--primary); color: var(--on-primary); stroke-width: 3.5; margin-top: 1px; transition: transform .4s var(--ease); }
.checklist li:hover { transform: translateX(5px); color: var(--primary); }
.checklist li:hover svg { transform: scale(1.2) rotate(-10deg); }

.work-end { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 30px 0; flex-wrap: wrap; }
.work-end p { font-family: var(--font-heading); font-weight: 800; font-size: clamp(34px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -.03em; color: var(--heading); }

/* Horizontal mode (enabled by JS on large screens) */
.work.is-horizontal .work__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.work.is-horizontal .work__track { flex-direction: row; align-items: center; width: max-content; margin: 0; padding: 70px 6vw 0; gap: 40px; will-change: transform; }
.work.is-horizontal .work-intro { width: 440px; flex: none; }
.work.is-horizontal .work-intro__hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.work.is-horizontal .work-intro__hint svg:last-child { color: var(--primary); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.work.is-horizontal .work-intro__count { display: block; font-family: var(--font-heading); font-weight: 900; font-size: 160px; line-height: 1; margin-top: 10px; color: transparent; -webkit-text-stroke: 1.5px var(--border); }
.work.is-horizontal .work-card { width: min(1080px, 78vw); flex: none; }
.work.is-horizontal .work-end { width: 560px; flex: none; flex-direction: column; align-items: flex-start; }
.work.is-horizontal .work__progress { display: block; position: absolute; left: 6vw; right: 6vw; bottom: 34px; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.work__progress span { display: block; height: 100%; background: var(--primary); transform-origin: left; transform: scaleX(0); }

/* =====================================================================
   SKILLS (bento)
   ===================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento__tile { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .4s, transform .25s ease-out; }
.bento__tile:hover { border-color: var(--primary); }
.bento__tile--big { grid-column: span 2; }
.bento__tile--wide { grid-column: span 2; }
.bento__tile--blue { background: var(--primary); border-color: var(--primary); color: var(--on-primary); display: flex; flex-direction: column; justify-content: space-between; grid-column: span 2; }
.bento__tile--blue p { font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 1.35; }
.bento__big { font-family: var(--font-heading); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.bento__icon { width: 50px; height: 50px; border-radius: calc(var(--radius) * .6); display: grid; place-items: center; font-size: 22px; color: var(--on-primary); background: var(--primary); margin-bottom: 18px; transition: transform .6s var(--ease); }
.bento__tile:hover .bento__icon { transform: rotate(-12deg) scale(1.1); }
.bento__tile h3 { font-size: 20px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg); font-size: 13.5px; font-weight: 500; transition: .4s var(--ease); }
.chip svg { color: var(--primary); font-size: 15px; transition: color .3s, transform .4s var(--ease); }
.chip:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: translateY(-4px) rotate(-2deg); }
.chip:hover svg { color: var(--on-primary); transform: rotate(-15deg); }

/* =====================================================================
   WHY + CTA
   ===================================================================== */
.why { background: var(--bg-2); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .4s; }
.why-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary); clip-path: circle(0% at 100% 0%); transition: clip-path .7s var(--ease); }
.why-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.why-card:hover::before { clip-path: circle(150% at 100% 0%); }
.why-card:hover h3, .why-card:hover p { color: var(--on-primary); }
.why-card__icon { width: 52px; height: 52px; border-radius: calc(var(--radius) * .6); display: grid; place-items: center; font-size: 23px; color: var(--primary); background: var(--primary-soft); margin-bottom: 20px; transition: .5s var(--ease); }
.why-card:hover .why-card__icon { background: var(--on-primary); color: var(--primary); transform: rotate(-12deg) scale(1.08); }
.why-card h3 { font-size: 19px; margin-bottom: 8px; transition: color .4s; }
.why-card p { font-size: 15px; color: var(--text-muted); transition: color .4s; }
.why-card__n { position: absolute; right: 20px; top: 16px; font-family: var(--font-heading); font-weight: 800; font-size: 40px; color: transparent; -webkit-text-stroke: 1px var(--border); transition: -webkit-text-stroke-color .4s; }
.why-card:hover .why-card__n { -webkit-text-stroke-color: rgba(255,255,255,.5); }

.cta-band { margin-top: 60px; padding: clamp(34px, 5vw, 64px); border-radius: calc(var(--radius) + 8px); background: var(--primary); color: var(--on-primary); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; }
.cta-band h3 { color: var(--on-primary); font-size: clamp(28px, 3.8vw, 48px); max-width: 640px; letter-spacing: -.02em; font-weight: 800; }
.cta-band p { opacity: .85; margin: 10px 0 26px; }
.cta-band__icon { position: absolute; right: -20px; bottom: -60px; font-size: 300px; stroke-width: 1.2; opacity: .18; transition: transform 1s var(--ease); }
.cta-band:hover .cta-band__icon { transform: translate(-30px, -20px) rotate(-10deg); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq__btn { margin-top: 28px; }
.faq__list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .4s; }
.faq-item:hover { border-color: var(--primary-line); }
.faq-item[open] { border-color: var(--primary); }
.faq-item summary { list-style: none; padding: 22px 24px; font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; transition: color .3s; }
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--primary-soft); color: var(--primary); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.faq-item[open] .faq-item__icon { transform: rotate(135deg); background: var(--primary); color: var(--on-primary); }
.faq-item__body { padding: 0 24px 22px; color: var(--text-muted); }
.faq-item[open] .faq-item__body { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
.faq-item__body a { color: var(--primary); }
.faq-item__body a:hover { text-decoration: underline; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact__title { font-size: clamp(40px, 7vw, 96px); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; }
.contact__cards { display: grid; gap: 12px; align-content: start; }
.contact-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .4s, color .4s; }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
a.contact-card:hover { border-color: var(--primary); color: var(--on-primary); }
a.contact-card:hover::before { transform: scaleX(1); }
a.contact-card:hover small, a.contact-card:hover b { color: var(--on-primary); }
.contact-card__icon { width: 50px; height: 50px; flex: none; border-radius: calc(var(--radius) * .6); display: grid; place-items: center; font-size: 22px; color: var(--on-primary); background: var(--primary); transition: .5s var(--ease); }
a.contact-card:hover .contact-card__icon { background: var(--on-primary); color: var(--primary); transform: rotate(-10deg); }
.contact-card small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); transition: color .3s; }
.contact-card b { font-weight: 600; color: var(--heading); word-break: break-word; transition: color .3s; }
.contact-card__arrow { margin-left: auto; font-size: 20px; transition: transform .5s var(--ease); }
a.contact-card:hover .contact-card__arrow { transform: rotate(45deg); }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(22px, 4vw, 36px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--border); background: var(--surface); }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; padding: 24px 46px 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; appearance: none; -webkit-appearance: none; }
.field select { cursor: pointer; }
.field:hover input, .field:hover textarea, .field:hover select { border-color: var(--primary-line); }
.field label { position: absolute; left: 18px; top: 17px; font-size: 15px; color: var(--text-muted); pointer-events: none; transition: .3s var(--ease); }
.field__icon { position: absolute; right: 16px; top: 18px; font-size: 18px; color: var(--text-muted); pointer-events: none; transition: color .3s, transform .4s var(--ease); }
.field:focus-within .field__icon { color: var(--primary); transform: scale(1.15); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { top: 7px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.field.is-error input, .field.is-error textarea { border-color: #ef4444; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__status { font-size: 14px; color: var(--text-muted); min-height: 1.4em; }
.form__status.ok { color: #22c55e; }
.form__status.err { color: #ef4444; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { position: relative; padding-top: 60px; border-top: 1px solid var(--border); overflow: hidden; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: center; padding-bottom: 20px; }
.footer__brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 360px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { font-size: 14px; color: var(--text-muted); transition: color .3s; }
.footer__nav a:hover { color: var(--primary); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); font-size: 19px; transition: .45s var(--ease); }
.footer__social a:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: translateY(-6px) rotate(-10deg); }
.footer__big { font-family: var(--font-heading); font-weight: 900; font-size: clamp(48px, 12.5vw, 200px); line-height: .95; letter-spacing: -.05em; text-align: center; white-space: nowrap; user-select: none; padding: 10px 0 20px; color: transparent; -webkit-text-stroke: 1.5px var(--border); }
.footer__big span { display: inline-block; transition: transform .5s var(--ease), color .3s, -webkit-text-stroke-color .3s; }
.footer__big span:hover { transform: translateY(-14%) rotate(-6deg); color: var(--primary); -webkit-text-stroke-color: var(--primary); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0 30px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* Back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); z-index: 900; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .3s, color .3s; color: var(--heading); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 132; stroke-dashoffset: 132; stroke-linecap: round; }
.to-top__icon { font-size: 20px; transition: transform .4s var(--ease); }
.to-top:hover { background: var(--primary); color: var(--on-primary); }
.to-top:hover .to-top__icon { transform: translateY(-4px); }

/* =====================================================================
   LIVE CUSTOMIZER
   ===================================================================== */
.customizer-fab { position: fixed; left: 24px; bottom: 24px; z-index: 950; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--primary); color: var(--on-primary); box-shadow: 0 14px 30px -10px var(--primary); transition: transform .5s var(--ease), background-color .3s; }
.customizer-fab svg { animation: spin 10s linear infinite; }
.customizer-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--primary); opacity: .5; animation: ripple 2.2s ease-out infinite; }
@keyframes ripple { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.45); opacity: 0; } }
.customizer-fab:hover { transform: scale(1.1) rotate(-20deg); }

.customizer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200; width: min(360px, 92vw); padding: 24px; overflow-y: auto; background: var(--bg); border-right: 1px solid var(--border); box-shadow: 30px 0 80px -30px rgba(0,0,0,.6); transform: translateX(-105%); transition: transform .6s var(--ease); display: flex; flex-direction: column; gap: 22px; }
.customizer.is-open { transform: none; }
.customizer-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(3px); }
.customizer-overlay.is-open { opacity: 1; pointer-events: auto; }
.customizer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.customizer__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--heading); }
.customizer__title svg { color: var(--primary); }
.customizer__head small { color: var(--text-muted); font-size: 13px; }
.customizer__group { padding-top: 20px; border-top: 1px solid var(--border); }
.customizer__label { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.customizer__label span { color: var(--primary); }

.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: calc(var(--radius) * .6); background: var(--c); position: relative; transition: transform .4s var(--ease), border-radius .4s var(--ease); }
.swatch:hover { transform: scale(1.12) rotate(-6deg); border-radius: 50%; }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--heading); }
.swatch[aria-checked="true"]::before { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translate(-50%, -50%) rotate(45deg); }

.color-pick { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .3s; }
.color-pick:hover { border-color: var(--primary); }
.color-pick input { width: 38px; height: 38px; border: 0; padding: 0; border-radius: 10px; background: none; cursor: pointer; }
.color-pick input::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick input::-webkit-color-swatch { border: 0; border-radius: 10px; }
.color-pick input::-moz-color-swatch { border: 0; border-radius: 10px; }
.color-pick span { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; flex: 1; }
.color-pick code { font-size: 12px; color: var(--text-muted); }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; color: var(--text-muted); transition: .35s var(--ease); }
.seg button:hover { color: var(--heading); }
.seg button.is-active { background: var(--primary); color: var(--on-primary); }

.range-row { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 18px; }
.range-row input { flex: 1; accent-color: var(--primary); cursor: pointer; }

.toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { position: relative; width: 42px; height: 24px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--border); transition: background-color .3s; flex: none; }
.toggle__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: transform .4s var(--ease), background-color .3s; }
.toggle input:checked + .toggle__ui { background: var(--primary); border-color: var(--primary); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); background: #fff; }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle svg { color: var(--primary); }

.customizer__foot { display: flex; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); margin-top: auto; }
.customizer__foot .btn { flex: 1; }
.customizer__note { font-size: 13px; color: var(--primary); min-height: 1.2em; margin-top: -10px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1150px) {
  .float-card--serp { left: -10%; }
  .float-card--check { left: -8%; }
  .float-card--chart { right: -6%; }
  .hero__badge { right: -2%; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__card { grid-row: span 2; }
  .srv { grid-template-columns: 50px 56px 1fr 52px; }
  .srv__desc { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 0; padding: 80px 20px; background: var(--bg); backdrop-filter: none; clip-path: circle(0% at calc(100% - 42px) 34px); transition: clip-path .8s var(--ease); }
  .nav__links.is-open { clip-path: circle(150% at calc(100% - 42px) 34px); }
  .nav__link { font-family: var(--font-heading); font-size: 30px; font-weight: 700; padding: 8px 28px; }
  .nav__links li { opacity: 0; transform: translateY(20px); transition: .5s var(--ease); }
  .nav__links.is-open li { opacity: 1; transform: none; }
  .nav__links.is-open li:nth-child(2) { transition-delay: .05s; } .nav__links.is-open li:nth-child(3) { transition-delay: .1s; }
  .nav__links.is-open li:nth-child(4) { transition-delay: .15s; } .nav__links.is-open li:nth-child(5) { transition-delay: .2s; }
  .nav__links.is-open li:nth-child(6) { transition-delay: .25s; } .nav__links.is-open li:nth-child(7) { transition-delay: .3s; }
  .burger { display: block; }
  .nav__cta { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__content { text-align: center; }
  .hero__content > .pill { margin-inline: auto; }
  .hero__typed, .hero__ctas { justify-content: center; }
  .hero__text { margin-inline: auto; }
  .hero__visual { order: -1; margin-top: 20px; }
  .arch { width: min(320px, 74vw); }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(2) { border-right: 0; }
  .hero__stats li:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .about__grid, .process__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__card { display: flex; gap: 16px; align-items: center; grid-row: auto; }
  .about__avatar { width: 110px; flex: none; }
  .process__sticky { position: static; }
  .process__meter { display: none; }
  .work-card { grid-template-columns: 1fr; padding: 22px; }
  .work-card__num { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .why__grid, .checklist, .contact__form, .bento { grid-template-columns: 1fr; }
  .bento__tile--big, .bento__tile--wide, .bento__tile--blue { grid-column: auto; grid-row: auto; }
  .hero__title { font-size: clamp(32px, 9.6vw, 56px); }
  .hero__photo-pill { width: 1.35em; border-width: 2px; }
  .hero__bgtext { font-size: 60vw; top: 28%; }
  .float-card--serp { left: -6%; top: 4%; }
  .float-card--serp b { font-size: 12px; }
  .float-card--check { display: none; }
  .float-card--chart { right: -6%; width: 130px; top: auto; bottom: 10%; }
  .hero__badge { width: 96px; height: 96px; right: 0; top: -5%; }
  .hero__badge .spin-badge__icon { width: 42px; height: 42px; font-size: 20px; }
  .hero__stats li { padding: 16px 14px; gap: 10px; }
  .hero__stats strong { font-size: 22px; }
  .hero__stats li div > span { font-size: 12px; }
  .marquees { height: 160px; }
  .srv { grid-template-columns: 1fr 46px; gap: 12px; padding: 22px 14px; }
  .srv__num, .srv__icon { display: none; }
  .srv__arrow { width: 44px; height: 44px; }
  .step { padding: 20px; }
  .process__steps { padding-left: 60px; }
  .step__icon { left: -60px; width: 44px; height: 44px; font-size: 18px; }
  .process__line { left: 21px; }
  .work-card { padding: 16px; }
  .seo-ring { width: 92px; height: 92px; right: -6px; }
  .seo-ring b { font-size: 19px; }
  .serp__title { font-size: 16px; }
  .cta-band__icon { font-size: 200px; }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .customizer-fab { left: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 22px; }
}

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

/* =====================================================================
   WORDPRESS INNER PAGES (blog posts / other pages only — homepage unaffected)
   ===================================================================== */
.wp-page { padding-top: calc(var(--header-h) + 40px); min-height: 70vh; }
.wp-entry + .wp-entry { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border); }
.wp-entry .section-title { font-size: clamp(30px, 4vw, 52px); margin-bottom: 24px; }
.wp-entry .section-title a:hover { color: var(--primary); }
.wp-content { max-width: 780px; color: var(--text-muted); font-size: 17px; }
.wp-content > * + * { margin-top: 1.1em; }
.wp-content h2, .wp-content h3, .wp-content h4 { margin-top: 1.6em; }
.wp-content a { color: var(--primary); text-decoration: underline; }
.wp-content ul, .wp-content ol { padding-left: 1.4em; list-style: revert; }
.wp-content img { border-radius: var(--radius); height: auto; }
.wp-content blockquote { border-left: 3px solid var(--primary); padding-left: 18px; color: var(--text); }
.wp-404 .btn { margin-top: 28px; }
.nav-links { display: flex; gap: 10px; margin-top: 50px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
