/* ============================================================
   Taimur Nasir — UI/UX Designer Portfolio
   Refined design system: Plus Jakarta Sans + Sora · light/dark modes
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --bg-soft: #fffdf8;
  --ink: #18211f;
  --muted: #68736f;
  --accent: #5d6f61;
  --accent-2: #a77452;
  --surface-strong: #fffaf2;
  --shadow-soft: 0 24px 70px rgba(52, 45, 34, 0.10);

  /* RGB components for rgba() usage */
  --bg-rgb: 246, 243, 238;
  --panel-rgb: 255, 253, 248;
  --ink-rgb: 24, 33, 31;
  --accent-rgb: 93, 111, 97;
  --accent-2-rgb: 167, 116, 82;

  --line: rgba(var(--ink-rgb), 0.10);
  --font-display: "Sora", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

body[data-theme="dark"] {
  color-scheme: dark;
  /* Premium 2026-ready dark: midnight graphite, champagne focus, muted sage depth */
  --bg: #070806;
  --bg-soft: #111513;
  --ink: #f4efe4;
  --muted: #a6aaa3;
  --accent: #c8a96a;
  --accent-2: #7fb7a8;
  --surface-strong: #161c19;
  --shadow-soft: 0 30px 100px rgba(0, 0, 0, 0.56);
  --bg-rgb: 7, 8, 6;
  --panel-rgb: 17, 21, 19;
  --ink-rgb: 244, 239, 228;
  --accent-rgb: 200, 169, 106;
  --accent-2-rgb: 127, 183, 168;
  --line: rgba(var(--ink-rgb), 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); scroll-padding-top: 86px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  position: relative; /* containing block for the full-page .flow-path-wrap */
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--accent-rgb), 0.14), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(var(--accent-2-rgb), 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.045), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  cursor: none; /* custom cursor */
  transition: background-color 0.35s ease, color 0.35s ease;
}

@media (hover: none), (max-width: 991px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }

::selection { background: var(--accent); color: var(--bg-soft); }

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 14% 10%, rgba(var(--accent-rgb), 0.17), transparent 30rem),
    radial-gradient(circle at 86% 8%, rgba(var(--accent-2-rgb), 0.12), transparent 32rem),
    radial-gradient(circle at 50% 100%, rgba(34, 45, 42, 0.58), transparent 36rem),
    linear-gradient(135deg, #070806 0%, #0c100e 48%, #111513 100%);
}

body[data-theme="dark"] .site-nav,
body[data-theme="dark"] .mobile-menu,
body[data-theme="dark"] .final-contact-card,
body[data-theme="dark"] .service-card,
body[data-theme="dark"] .pf-card,
body[data-theme="dark"] .step-card,
body[data-theme="dark"] .timeline-item,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .contact-form-card {
  background: rgba(var(--panel-rgb), 0.72);
  border-color: rgba(var(--ink-rgb), 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.preloader-name {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: var(--muted);
}
.preloader-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  color: var(--accent);
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9000;
  pointer-events: none;
  border-radius: 50%;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--accent-2);
}

/* ============ PAGE BACKGROUND TEXTURE ============ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(var(--ink-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 78%);
}
body::after {
  content: "";
  position: fixed;
  width: 42vw;
  height: 42vw;
  right: -18vw;
  top: 24vh;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.18), transparent 68%);
  filter: blur(12px);
}

/* Content sits above the background texture */
.site-nav, main, .site-footer { position: relative; z-index: 2; }

/* ============ NAV ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(var(--ink-rgb), 0.06);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.nav-actions { gap: 1rem; }
.nav-links { gap: 2.2rem; }
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 99px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-pill:hover { background: var(--accent); color: var(--bg-soft); }
.btn-hire {
  position: relative;
  min-width: 112px;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.btn-hire span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s var(--ease-out, ease), opacity 0.28s var(--ease-out, ease);
}
.btn-hire .hire-phone {
  position: absolute;
  inset: 0;
  padding-inline: 1rem;
  opacity: 0;
  transform: translateY(100%);
  white-space: nowrap;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}
.btn-hire:hover,
.btn-hire:focus-visible {
  min-width: 112px;
  outline: none;
}
.btn-hire:hover .hire-default,
.btn-hire:focus-visible .hire-default {
  opacity: 0;
  transform: translateY(-100%);
}
.btn-hire:hover .hire-phone,
.btn-hire:focus-visible .hire-phone {
  opacity: 1;
  transform: translateY(0);
}
.btn-hire:focus-visible {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}
.mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.35rem;
}
.btn-hire-mobile {
  width: min(100%, 18rem);
  min-height: 46px;
}
.btn-hire-mobile .hire-phone {
  opacity: 1;
  position: static;
  transform: none;
  padding-inline: 0;
}
.btn-hire-mobile .hire-default { display: none; }


.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--panel-rgb), 0.75);
  color: var(--muted);
  box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.06);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-1px);
}
.toggle-icon {
  width: 1rem;
  font-size: 0.8rem;
  line-height: 1;
  text-align: center;
}
.toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.12);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.06);
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 5px 14px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.25s ease;
}
body[data-theme="dark"] .toggle-thumb { transform: translateX(20px); }
body[data-theme="dark"] .toggle-moon,
body[data-theme="light"] .toggle-sun { color: var(--accent); }

.nav-burger {
  background: none; border: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 6px;
}
.nav-burger span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s ease; }
.nav-burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.6rem 1.5rem 2rem;
  background: rgba(var(--bg-rgb), 0.97);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 7.8vw, 7.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-title .line { display: block; overflow: clip; padding-block: 0.08em; margin-block: -0.08em; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-title em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: -webkit-fill-available;
  display: inline-block;
}

.hero-sub-row { margin-top: 3rem; }
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 32rem;
}

.btn-big {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.4rem;
  background: var(--accent);
  color: var(--bg-soft);
  border-radius: 99px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: box-shadow 0.3s ease;
}
.btn-big:hover {
  color: var(--bg-soft);
  box-shadow: 0 14px 38px rgba(var(--accent-rgb), 0.35);
}

/* --- 3D floating scene --- */
.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1100px;
  z-index: -1;
}
.hero-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.3rem;
  background: rgba(var(--panel-rgb), 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(var(--ink-rgb), 0.12);
  will-change: transform;
}
.fc-label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.fc-meta { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.fc-1 { top: 15%; right: 22%; }
.fc-2 { top: 34%; right: 6%; border-color: rgba(var(--accent-rgb), 0.4); }
.fc-3 { bottom: 8%; right: 34%; }
.fc-4 { top: 56%; right: 13%; border-color: rgba(var(--accent-2-rgb), 0.55); }

.float-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.fo-1 {
  top: 12%; right: 44%;
  width: 90px; height: 90px;
  background: radial-gradient(circle at 32% 30%, var(--accent-2), color-mix(in srgb, var(--accent-2) 60%, #6b2614) 70%);
  opacity: 0.9;
}
.fo-2 {
  bottom: 8%; right: 42%;
  width: 46px; height: 46px;
  background: radial-gradient(circle at 32% 30%, var(--accent), color-mix(in srgb, var(--accent) 55%, #241250) 75%);
  opacity: 0.85;
}

@media (max-width: 991px) {
  .fc-1 { right: 6%; }
  .fc-3 { right: 8%; bottom: 36%; }
  .fc-2, .fc-4, .fo-1 { display: none; }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint-line {
  width: 1px; height: 48px;
  background: var(--line);
  overflow: hidden;
}
.scroll-hint-line i {
  display: block;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.25rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.marquee-track i { color: var(--accent-2); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS (shared) ============ */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

/* ============ SERVICE CARDS ============ */
.service-card {
  position: relative;
  height: 100%;
  padding: 2.2rem 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: var(--shadow-soft);
}
.service-card:hover { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: 0 28px 80px rgba(var(--accent-rgb), 0.14); }
.sc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-2);
  letter-spacing: 0.2em;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 1rem 0 0.8rem;
  transform: translateZ(30px);
}
.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  transform: translateZ(18px);
}

/* ============ PROCESS STEPS ============ */
.process { padding-top: 0; }
.step-card {
  height: 100%;
  padding: 2rem 1.6rem;
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-2-rgb), 0.07)), var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.45);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.step-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.step-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ============ PORTFOLIO ============ */
.portfolio { padding-top: 0; }
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.6rem;
}
.pf-filter {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.pf-filter:hover { color: var(--ink); border-color: rgba(var(--accent-rgb), 0.5); }
.pf-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-soft);
  font-weight: 500;
}

.pf-card {
  display: block;
  height: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.35s ease;
  box-shadow: var(--shadow-soft);
}
.pf-card:hover { border-color: rgba(var(--accent-rgb), 0.5); box-shadow: 0 28px 80px rgba(var(--accent-rgb), 0.14); }

.pf-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.pf-cover span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.pf-cover em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.pf-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
}
.pf-cover-1 { background: linear-gradient(135deg, #2e7d5b, #0d3a27); }
.pf-cover-2 { background: linear-gradient(135deg, #7048e8, #2a1560); }
.pf-cover-3 { background: linear-gradient(135deg, #d8442e, #5e1408); }
.pf-cover-4 { background: linear-gradient(135deg, #2d6cdf, #102a55); }
.pf-cover-5 { background: linear-gradient(135deg, #d4912c, #4d3007); }
.pf-cover-6 { background: linear-gradient(135deg, #c2387f, #4a0e2e); }
.pf-cover-7 { background: linear-gradient(135deg, #ff7a59, #962f12); }
.pf-cover-8 { background: linear-gradient(135deg, #2ca9b8, #0b3338); }
.pf-cover-9 { background: linear-gradient(135deg, #4f4a45, #181512); }

.pf-body { padding: 1.6rem 1.6rem 1.8rem; }
.pf-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.6rem;
}
.pf-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.pf-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.pf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pf-stats b {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.3rem;
}

/* ============ STATS ============ */
.stats { padding-top: 0; }
.stat {
  padding: 2.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(var(--panel-rgb), 0.7);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent);
}
.stat-num i { font-style: normal; }
.stat-label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ SKILLS / CUBE ============ */
.cube-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  perspective: 900px;
}
.cube {
  position: relative;
  width: 200px; height: 200px;
  transform-style: preserve-3d;
}
.cube-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--accent);
  background: rgba(var(--panel-rgb), 0.92);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 10px;
  box-shadow: inset 0 0 60px rgba(var(--accent-rgb), 0.07);
}
.cf-front  { transform: translateZ(100px); }
.cf-back   { transform: rotateY(180deg) translateZ(100px); }
.cf-right  { transform: rotateY(90deg) translateZ(100px); }
.cf-left   { transform: rotateY(-90deg) translateZ(100px); }
.cf-top    { transform: rotateX(90deg) translateZ(100px); }
.cf-bottom { transform: rotateX(-90deg) translateZ(100px); }

.skill-bars { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sb-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}
.sb-head b { color: var(--accent); font-weight: 600; }
.sb-track {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.sb-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ============ EXPERIENCE / TIMELINE ============ */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
.tl-item:first-child { border-top: 1px solid var(--line); }
.tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.tl-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}
.tl-co {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.7rem;
}
.tl-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 44rem;
  margin: 0;
}
@media (max-width: 767px) {
  .tl-item { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ============ CONTACT ============ */
.contact { padding-bottom: clamp(6rem, 12vw, 10rem); }
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
}
.contact-title em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: -webkit-fill-available;
  display: inline-block;
}
.contact-cta { font-size: clamp(0.9rem, 2.4vw, 1.15rem); }
.contact-meta {
  margin-top: 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contact-meta a { text-underline-offset: 0.22em; }
.contact-meta a:hover { text-decoration: underline; }


.download-resume-card {
  width: min(100%, 58rem);
  margin: 2rem auto 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.09), rgba(var(--accent-2-rgb), 0.09)),
    rgba(var(--panel-rgb), 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.resume-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.download-resume-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2;
}
.download-resume-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.btn-resume-download {
  flex: 0 0 auto;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(var(--accent-rgb), 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-resume-download:hover,
.btn-resume-download:focus-visible {
  color: var(--bg-soft);
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 22px 48px rgba(var(--accent-rgb), 0.32);
  outline: none;
}

.final-cta-card {
  align-items: flex-start;
  padding: clamp(1.15rem, 3vw, 1.5rem);
}
.final-cta-copy { max-width: 36rem; }
.final-cta-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-whatsapp {
  flex: 0 0 auto;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.42);
  background: linear-gradient(135deg, #25d366, #18b957);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  color: #ffffff;
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 22px 48px rgba(37, 211, 102, 0.32);
  outline: none;
}
.whatsapp-icon { flex: 0 0 auto; }

@media (max-width: 767px) {
  .download-resume-card {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
    border-radius: 20px;
  }
  .btn-resume-download {
    width: 100%;
  }

  .final-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .btn-whatsapp {
    width: 100%;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--bg-soft);
}

/* ============ REVEAL DEFAULTS (set by JS, fallback visible) ============ */
.reveal-row, .reveal-card { opacity: 1; }
body.js-anim .reveal-row, body.js-anim .reveal-card { opacity: 0; }



/* ============ MOBILE-CENTRIC RESPONSIVE REFINEMENTS ============ */
@media (max-width: 991px) {
  html { scroll-padding-top: 76px; }

  .site-nav {
    padding: 0.9rem 0;
    background: rgba(var(--bg-rgb), 0.9);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
  }

  .site-nav .container-fluid,
  .hero .container-fluid,
  .section .container-fluid,
  .site-footer .container-fluid {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }

  .mobile-menu {
    position: fixed;
    top: 68px;
    left: 1rem;
    right: 1rem;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }
  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--ink-rgb), 0.035);
    text-align: center;
  }
  .theme-toggle-mobile { margin-inline: auto; }

  .hero {
    min-height: auto;
    padding: 7.5rem 0 4.5rem;
    text-align: center;
  }
  .hero-eyebrow {
    justify-content: center;
    flex-wrap: wrap;
    max-width: 22rem;
    margin-inline: auto;
    font-size: 0.72rem;
    line-height: 1.6;
    letter-spacing: 0.12em;
  }
  .hero-title {
    max-width: 10ch;
    margin-inline: auto;
    font-size: clamp(2.55rem, 12vw, 4.6rem);
    line-height: 1.14;
    letter-spacing: -0.045em;
    text-wrap: balance;
  }
  .hero-title .line {
    overflow: visible;
    padding-block: 0.02em;
    margin-block: 0;
  }
  .hero-sub-row { margin-top: 1.65rem; }
  .hero-sub {
    max-width: 32rem;
    margin: 0 auto 1.6rem;
    font-size: 0.98rem;
    line-height: 1.75;
  }
  .btn-big {
    width: min(100%, 22rem);
    justify-content: center;
    min-height: 54px;
    padding: 0.95rem 1.2rem;
  }
  .hero-scene { display: none; }
  .scroll-hint { display: none; }

  .marquee { padding: 0.95rem 0; }
  .marquee-track { gap: 1.35rem; }
  .marquee-track span { font-size: 1rem; }

  .section {
    padding: 4.25rem 0;
    text-align: center;
  }
  .section-head { margin-bottom: 2rem; }
  .section-tag {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
  .section-title,
  .contact-title {
    max-width: 11ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.35rem, 11.5vw, 4rem);
    line-height: 1.16;
    text-wrap: balance;
    overflow: visible;
  }

  .service-card,
  .step-card,
  .pf-card,
  .stat {
    text-align: left;
    border-radius: 22px;
  }
  .service-card,
  .step-card { padding: 1.55rem; }
  .service-card h3,
  .step-card h3,
  .pf-body h3,
  .tl-body h3 {
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .pf-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.55rem;
    margin: -0.25rem -1.1rem 2rem;
    padding: 0.25rem 1.1rem 0.65rem;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .pf-filters::-webkit-scrollbar { display: none; }
  .pf-filter {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.68rem 1rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .pf-cover { aspect-ratio: 4 / 3; }
  .pf-cover span { font-size: clamp(2rem, 13vw, 3rem); }
  .pf-cover em { max-width: 80%; line-height: 1.45; }
  .pf-body { padding: 1.25rem; }
  .pf-stats { gap: 0.5rem 1rem; }

  .stats .row { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
  .stat { padding: 1.35rem 0.75rem; text-align: center; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0.12em; line-height: 1.45; }

  .cube-stage { min-height: 240px; }
  .cube { width: 140px; height: 140px; }
  .cube-face { font-size: 1.65rem; }
  .cf-front  { transform: translateZ(70px); }
  .cf-back   { transform: rotateY(180deg) translateZ(70px); }
  .cf-right  { transform: rotateY(90deg) translateZ(70px); }
  .cf-left   { transform: rotateY(-90deg) translateZ(70px); }
  .cf-top    { transform: rotateX(90deg) translateZ(70px); }
  .cf-bottom { transform: rotateX(-90deg) translateZ(70px); }

  .skill-bars { margin-top: 1.8rem; gap: 1.15rem; text-align: left; }

  .timeline { text-align: left; }
  .tl-item {
    padding: 1.4rem 0;
    position: relative;
  }
  .tl-year { font-size: 0.84rem; }
  .tl-co { line-height: 1.5; letter-spacing: 0.12em; }

  .contact { padding-bottom: 5rem; }
  .contact-title { margin-bottom: 1.8rem; }
  .contact-cta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .contact-meta {
    max-width: 20rem;
    margin-inline: auto;
    line-height: 1.9;
    letter-spacing: 0.05em;
  }
  .site-footer { text-align: center; }
  .site-footer .container-fluid { justify-content: center !important; }
}

@media (max-width: 575px) {
  .nav-logo { font-size: 1.32rem; }
  .hero { padding-top: 6.6rem; }
  .hero-title { font-size: clamp(2.35rem, 13.5vw, 3.7rem); }
  .section-title,
  .contact-title { font-size: clamp(2.15rem, 12vw, 3.3rem); }
  .service-card h3,
  .pf-body h3 { font-size: 1.18rem; }
  .service-card p,
  .step-card p,
  .pf-body p,
  .tl-body p { font-size: 0.88rem; }
  body::before { background-size: 44px 44px; opacity: 0.55; }
  body::after { width: 78vw; height: 78vw; right: -38vw; top: 18vh; }
}

@media (min-width: 992px) {
  .service-card,
  .step-card,
  .pf-card,
  .stat {
    background-image: linear-gradient(180deg, rgba(var(--panel-rgb), 0.96), rgba(var(--panel-rgb), 0.86));
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .scroll-hint-line i, .status-dot { animation: none !important; }
}


/* Mobile theme toggle polish */
.theme-toggle-mobile {
  width: max-content;
  margin-top: 0.5rem;
}


/* ============ CASE-STUDY UI ENHANCEMENTS ============ */
:root {
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.section-lead {
  max-width: 44rem;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

@supports (backdrop-filter: blur(18px)) {
  .site-nav.is-scrolled,
  .site-nav:has(.mobile-menu.is-open) {
    background: linear-gradient(135deg, rgba(var(--panel-rgb), 0.72), rgba(var(--panel-rgb), 0.46));
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
}
.site-nav.is-scrolled { border-bottom-color: rgba(var(--ink-rgb), 0.10); }
.mobile-menu {
  background: linear-gradient(145deg, rgba(var(--panel-rgb), 0.94), rgba(var(--panel-rgb), 0.78));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.service-card,
.step-card,
.pf-card,
.stat,
.tl-item,
.skill-bar {
  border-radius: var(--radius-lg);
}

.service-card,
.step-card,
.pf-card,
.stat {
  transform: translateZ(0);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.service-card:hover,
.step-card:hover,
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 28px 80px rgba(var(--accent-rgb), 0.13);
}
.service-card::after,
.step-card::after,
.pf-card::after,
.stat::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), transparent 34%, rgba(var(--accent-2-rgb), 0.10));
  transition: opacity 0.35s var(--ease-out);
}
.service-card:hover::after,
.step-card:hover::after,
.pf-card:hover::after,
.stat:hover::after { opacity: 1; }

.pf-item { transition: width 0.35s ease; }
.pf-card { position: relative; }
.pf-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.54);
  box-shadow: 0 34px 90px rgba(var(--accent-rgb), 0.16);
}
.pf-card:hover .device-mockup { transform: translateY(-8px) rotateX(0deg) rotateZ(-1deg) scale(1.03); }
.pf-card:hover .pf-cover span { transform: translateY(-2px); }
.pf-card:hover .pf-cover em { opacity: 1; }

.pf-card-featured {
  min-height: 100%;
  border-color: rgba(var(--accent-rgb), 0.26);
}
.pf-card-featured .pf-cover { aspect-ratio: 16 / 8.6; }
.pf-card-featured .pf-body { padding: var(--space-4); }
.pf-card-featured .pf-body h3 { font-size: clamp(1.55rem, 2.2vw, 2.05rem); }
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.20);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.featured-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(var(--accent-2-rgb), 0.12);
}

.pf-cover {
  isolation: isolate;
  padding: var(--space-3);
  background-size: 160% 160%;
  transition: background-position 0.6s var(--ease-out);
}
.pf-cover::after {
  z-index: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,0.24), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 55%);
}
.pf-cover span,
.pf-cover em,
.device-mockup { position: relative; z-index: 1; }
.pf-cover span {
  margin-top: auto;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  transition: transform 0.35s var(--ease-out);
}
.pf-cover em {
  opacity: 0.86;
  transition: opacity 0.35s var(--ease-out);
}

.device-mockup {
  width: min(82%, 390px);
  min-height: 132px;
  margin: auto auto var(--space-2);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 18px;
  background: rgba(255,255,255,0.17);
  box-shadow: 0 28px 60px rgba(0,0,0,0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transform: perspective(900px) rotateX(4deg) rotateZ(-2deg);
  transition: transform 0.45s var(--ease-out);
}
.device-mockup.phone {
  width: min(58%, 190px);
  min-height: 184px;
  border-radius: 28px;
  transform: perspective(900px) rotateX(4deg) rotateZ(3deg);
}
.device-mockup.phone.stack::after {
  content: "";
  position: absolute;
  inset: 18px -22px 18px auto;
  width: 52%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  z-index: -1;
}
.device-mockup.brand {
  width: min(70%, 260px);
  min-height: 150px;
  border-radius: 26px;
}
.mock-top {
  height: 26px;
  background: rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  position: relative;
}
.mock-top::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  box-shadow: 14px 0 0 rgba(255,255,255,0.48), 28px 0 0 rgba(255,255,255,0.32);
}
.phone .mock-top {
  width: 42%;
  height: 7px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 0;
}
.phone .mock-top::before { display: none; }
.mock-screen {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  color: #fff;
}
.mock-screen strong {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  letter-spacing: -0.01em;
}
.mock-bars { display: grid; gap: 0.35rem; }
.mock-bars span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.60);
}
.mock-bars span:nth-child(2) { width: 76%; opacity: 0.55; }
.mock-bars span:nth-child(3) { width: 54%; opacity: 0.42; }
.mock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.mock-pills i {
  display: inline-flex;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.light-ui .mock-screen { color: rgba(15,23,42,0.86); }
.light-ui .mock-bars span,
.light-ui .mock-pills i { background: rgba(15,23,42,0.12); }
.light-ui .mock-top { background: rgba(255,255,255,0.76); }

.pf-cover-1 { background: linear-gradient(135deg, #1d4ed8, #0f766e 55%, #0f172a); }
.pf-cover-2 { background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #111827); }
.pf-cover-3 { background: linear-gradient(135deg, #0f766e, #2563eb 54%, #0f172a); }
.pf-cover-4 { background: linear-gradient(135deg, #0284c7, #2563eb 55%, #111827); }
.pf-cover-5 { background: linear-gradient(135deg, #f8fafc, #38bdf8 48%, #2563eb); }
.pf-cover-6 { background: linear-gradient(135deg, #14b8a6, #2563eb 58%, #0f172a); }
.pf-cover-7 { background: linear-gradient(135deg, #6366f1, #14b8a6 58%, #0f172a); }
.pf-cover-8 { background: linear-gradient(135deg, #0f172a, #0f766e 58%, #94a3b8); }
.pf-cover-9 { background: linear-gradient(135deg, #111827, #be123c 56%, #f97316); }

@media (max-width: 991px) {
  .section-lead { margin-inline: auto; max-width: 32rem; }
  .pf-card-featured .pf-body { padding: 1.35rem; }
  .pf-card-featured .pf-cover { aspect-ratio: 4 / 3.15; }
  .device-mockup { width: min(88%, 320px); min-height: 118px; }
  .device-mockup.phone { min-height: 165px; }
  .service-card:hover,
  .step-card:hover,
  .stat:hover,
  .pf-card:hover { transform: translateY(-3px); }
}

@media (max-width: 575px) {
  .pf-cover { padding: 1rem; }
  .device-mockup { min-height: 104px; width: min(92%, 280px); border-radius: 15px; }
  .device-mockup.phone { width: min(62%, 168px); min-height: 150px; border-radius: 24px; }
  .mock-screen { padding: 0.8rem; gap: 0.5rem; }
  .mock-pills i { font-size: 0.52rem; padding: 0.22rem 0.38rem; }
}

body.reveal-ready .section {
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
body.reveal-ready .section.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .step-card,
  .pf-card,
  .stat,
  .device-mockup,
  .section { transition: none !important; transform: none !important; }
}


/* Runtime fallback if external animation libraries are unavailable */
.no-anim .preloader { display: none !important; }
.no-anim .reveal-row,
.no-anim .reveal-card { opacity: 1 !important; transform: none !important; }
@media (max-width: 991px) {
  .btn-hire { min-width: 184px; }
}


.contact-form-card {
  width: min(100%, 48rem);
  margin: 2rem auto 0;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.35rem);
  text-align: center;
  border: 1px solid rgba(var(--ink-rgb), 0.10);
  border-radius: var(--radius-xl, 32px);
  background: rgba(var(--panel-rgb), 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.contact-form-copy {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(0.35rem, 1.5vw, 0.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-form-copy .eyebrow {
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-form-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  width: min(100%, 40rem);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 18px;
  background: rgba(var(--bg-rgb), 0.68);
  color: var(--ink);
  font: 700 0.95rem/1.4 var(--font-body);
  outline: none;
  padding: 0.95rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
  background: rgba(var(--panel-rgb), 0.92);
}

.form-submit {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg-soft);
  font: 900 0.78rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(var(--accent-rgb), 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  transform: translateY(-4px);
  filter: saturate(1.08);
  box-shadow: 0 22px 48px rgba(var(--accent-rgb), 0.32);
  outline: none;
}

@media (max-width: 767px) {
  .contact-form-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-form-copy { align-items: center; }
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-card { border-radius: 24px; }
}

/* ============ MINIMAL FINAL CONTACT STRIP ============ */
.contact-action-strip {
  width: min(100%, 42rem);
  margin: 2rem auto 0;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border: 1px solid rgba(var(--panel-rgb), 0.18);
  border-radius: var(--radius-lg, 24px);
  background: rgba(var(--panel-rgb), 0.68);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.contact-action-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
}

.contact-action-btn:hover,
.contact-action-btn:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.contact-action-resume {
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg-soft);
  box-shadow: 0 16px 38px rgba(var(--accent-rgb), 0.24);
}

.contact-action-resume:hover,
.contact-action-resume:focus-visible {
  color: var(--bg-soft);
  filter: saturate(1.08);
  box-shadow: 0 22px 48px rgba(var(--accent-rgb), 0.32);
}

.contact-action-whatsapp {
  border: 1px solid rgba(37, 211, 102, 0.42);
  background: linear-gradient(135deg, #25d366, #18b957);
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.22);
}

.contact-action-whatsapp:hover,
.contact-action-whatsapp:focus-visible {
  color: #ffffff;
  filter: saturate(1.08);
  box-shadow: 0 22px 48px rgba(37, 211, 102, 0.32);
}

.contact-action-icon {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .contact-action-strip {
    width: min(100%, 34rem);
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-action-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.7rem;
  }

  .contact-action-btn {
    width: 100%;
  }
}

/* ============ SEO + CONVERSION UPGRADE ============ */
:root {
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

.nav-actions .btn-resume {
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--panel-rgb), 0.72);
  color: var(--ink);
}
.nav-actions .btn-resume:hover { color: var(--accent); transform: translateY(-2px); }

.hero-sub-row .col-lg-7 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-big-secondary {
  background: rgba(var(--panel-rgb), 0.72);
  color: var(--ink);
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  box-shadow: 0 16px 48px rgba(var(--ink-rgb), 0.08);
}
.btn-big-secondary:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.36); }

.trust-strip { padding: clamp(1.2rem, 4vw, 2.5rem) 0 0; }
.trust-card {
  width: min(100%, 82rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  background: rgba(var(--panel-rgb), 0.62);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: var(--shadow-soft);
}
.trust-card span {
  min-height: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  background: rgba(var(--bg-rgb), 0.62);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-card,
.insight-card {
  height: 100%;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: var(--radius-xl);
  background: rgba(var(--panel-rgb), 0.72);
  box-shadow: 0 24px 70px rgba(var(--ink-rgb), 0.08);
  padding: clamp(1.25rem, 3vw, 1.8rem);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover,
.insight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow: 0 30px 90px rgba(var(--accent-rgb), 0.14);
}
.testimonial-card p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.35rem;
}
.testimonial-card strong,
.insight-card h3 {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.testimonial-card span {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}
.insight-card span {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-weight: 900;
}
.insight-card h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 0.75rem; }
.insight-card p { color: var(--muted); line-height: 1.7; margin: 0; }

body[data-theme="dark"] .trust-card,
body[data-theme="dark"] .testimonial-card,
body[data-theme="dark"] .insight-card,
body[data-theme="dark"] .btn-big-secondary,
body[data-theme="dark"] .btn-resume {
  background: rgba(var(--panel-rgb), 0.72);
  border-color: rgba(var(--ink-rgb), 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}
body[data-theme="dark"] .trust-card span { background: rgba(255,255,255,0.045); }
body[data-theme="dark"] .testimonial-card p { color: var(--ink); }

@media (max-width: 991px) {
  .hero-sub-row .col-lg-7 { justify-content: flex-start; }
  .trust-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-card span:last-child { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .hero-sub-row .col-lg-7 { align-items: stretch; }
  .hero-sub-row .btn-big { width: 100%; justify-content: center; }
  .trust-card { grid-template-columns: 1fr; border-radius: 24px; }
  .trust-card span:last-child { grid-column: auto; }
  .testimonial-card,
  .insight-card { border-radius: 24px; }
}


/* ============================================================
   Senior UX/UI SEO redesign polish — premium 2026 layer
   ============================================================ */
:root {
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
}
body[data-theme="light"] {
  background:
    radial-gradient(circle at 18% 4%, rgba(93, 111, 97, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(167, 116, 82, 0.12), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0%, #f6f3ee 48%, #eee7dc 100%);
}
.hero { min-height: 100svh; display: flex; align-items: center; }
.hero-title { max-width: 1120px; letter-spacing: -0.085em; }
.hero-title .line { overflow: visible; }
.hero-sub { max-width: 700px; }
.btn-big, .btn-pill, .form-submit, .contact-action-btn {
  will-change: transform;
  transform: translateZ(0);
}
.btn-big:hover, .btn-pill:hover, .form-submit:hover, .contact-action-btn:hover {
  transform: translateY(-4px);
}
.section-head-centered { text-align: center; max-width: 980px; margin-inline: auto; }
.section-head-centered .section-title, .section-head-centered .section-lead { margin-inline: auto; }
.section-lead { max-width: 780px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.8; }
.service-card, .pf-card, .step-card, .testimonial-card, .insight-card, .faq-item, .contact-form-card {
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.service-card:hover, .step-card:hover, .faq-item:hover {
  border-color: rgba(var(--accent-rgb), .34);
  box-shadow: 0 30px 90px rgba(var(--accent-rgb), .13);
  transform: translateY(-6px);
}
.premium-proof { position: relative; overflow: hidden; }
.premium-proof::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.proof-card { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; }
.quote-mark {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), .16);
  font-weight: 800;
}
.proof-card p { position: relative; z-index: 1; font-size: clamp(1rem, 1.2vw, 1.08rem); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid rgba(var(--ink-rgb), .1);
  border-radius: var(--radius-xl);
  background: rgba(var(--panel-rgb), .72);
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: 0 24px 70px rgba(var(--ink-rgb), .08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: .75rem;
}
.faq-item p { color: var(--muted); line-height: 1.75; margin: 0; }
.contact-form-card {
  max-width: 980px;
  margin: 42px auto 0;
  text-align: left;
}
.contact-action-strip { max-width: 760px; margin-inline: auto; }
body[data-theme="dark"] .faq-item {
  background: rgba(var(--panel-rgb), .72);
  border-color: rgba(var(--ink-rgb), .13);
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
}
@media (max-width: 991px) {
  .hero { padding-top: 120px; align-items: flex-start; }
  .hero-title { letter-spacing: -0.065em; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .hero-title { letter-spacing: -0.052em; }
  .proof-card { min-height: auto; }
  .contact-form-card { padding-inline: 1rem; }
}

/* ============ STABLE PROCESS / HANDOFF STEPS ============ */
.process-scroll-shell {
  position: relative;
  overflow: visible;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(var(--accent-rgb), 0.1), transparent 32%),
    radial-gradient(circle at 86% 72%, rgba(var(--accent-2-rgb), 0.11), transparent 30%),
    linear-gradient(135deg, rgba(var(--panel-rgb), 0.78), rgba(var(--panel-rgb), 0.5));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.process-progress,
.process-scroll-hint {
  display: none;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.25rem);
  overflow: visible;
  padding: 0;
}

.process-step {
  position: relative;
  min-height: 300px;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  right: -0.2rem;
  bottom: -1.4rem;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(5.4rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 0.8;
  color: rgba(var(--accent-rgb), 0.055);
  letter-spacing: -0.08em;
}

.process-step.is-active,
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.46);
  box-shadow: 0 24px 70px rgba(var(--accent-rgb), 0.13);
}

.step-kicker {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(var(--accent-2-rgb), 0.24);
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.08);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  .process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step { min-height: 280px; }
}

@media (max-width: 767px) {
  .process-scroll-shell {
    margin-inline: 0;
    padding: 0.9rem;
    border-radius: 26px;
  }
  .process-track { grid-template-columns: 1fr; }
  .process-step {
    min-height: auto;
    padding: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-step { transition: none; }
}


/* ============ WORK GRID ALIGNMENT REFINEMENTS ============ */
#pfGrid {
  align-items: stretch;
}

#pfGrid > .pf-item {
  display: flex;
}

#pfGrid > .pf-item > .pf-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pf-card .pf-cover {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}

.pf-card .pf-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pf-card .pf-body p {
  flex: 1;
}

.pf-card .pf-stats {
  margin-top: auto;
}

@media (min-width: 992px) {
  #pfGrid > .pf-item > .pf-card {
    min-height: 100%;
  }
}

@media (max-width: 991px) {
  .pf-card .pf-cover {
    aspect-ratio: 4 / 3;
  }
}

/* ============ SOBER LIGHT THEME + CONTACT FORM FEEDBACK ============ */
body[data-theme="light"] .site-nav.is-scrolled,
body[data-theme="light"] .mobile-menu {
  background: rgba(255, 253, 248, 0.88);
}

body[data-theme="light"] .service-card,
body[data-theme="light"] .pf-card,
body[data-theme="light"] .step-card,
body[data-theme="light"] .testimonial-card,
body[data-theme="light"] .insight-card,
body[data-theme="light"] .faq-item,
body[data-theme="light"] .contact-form-card,
body[data-theme="light"] .toolbox-card,
body[data-theme="light"] .timeline-item,
body[data-theme="light"] .trust-card {
  background: rgba(255, 253, 248, 0.78);
  border-color: rgba(24, 33, 31, 0.10);
}

body[data-theme="light"] .btn-big,
body[data-theme="light"] .pf-filter.is-active {
  color: #fffdf8;
}

body[data-theme="light"] .hero-title em,
body[data-theme="light"] .contact-title em {
  background: linear-gradient(90deg, #4F604F, #9A694B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: -webkit-fill-available;
    display: inline-block;
}
#heroTitle .line > span {
    width: 100%;
}
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: #b42318;
}

.form-submit.is-loading {
  pointer-events: none;
  filter: saturate(0.75);
  opacity: 0.78;
}

.hero-title {
  opacity: 1 !important;
  visibility: visible !important;
}


/* Keep already-revealed headings visible when returning from the page bottom. */
#heroTitle,
#heroTitle .line,
#heroTitle .line > span,
body.js-anim #hero .hero-title,
body.js-anim #hero .hero-title .line {
  opacity: 1 !important;
  visibility: visible !important;
}
body.reveal-ready .section.is-visible .section-tag,
body.reveal-ready .section.is-visible .section-title,
body.reveal-ready .section.is-visible .section-lead,
body.reveal-ready .section.is-visible .contact-title {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============ FINAL TESTIMONIAL CAROUSEL OVERRIDES ============ */
.section {
  padding: clamp(3.6rem, 7vw, 6.2rem) 0;
}
.section-head,
.section-head-centered,
.testimonial-head {
  margin-bottom: clamp(1.7rem, 3.7vw, 3.15rem);
}
.section-lead { line-height: 1.68; }
.trust-strip { padding: clamp(0.85rem, 2.4vw, 1.65rem) 0 0; }
.contact-form-card { margin-top: clamp(1.4rem, 3vw, 2.1rem); }
.testimonials .section-lead { max-width: 820px; }

.testimonial-slider {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 9% 10%, rgba(var(--accent-rgb), 0.1), transparent 26rem),
    linear-gradient(135deg, rgba(var(--panel-rgb), 0.82), rgba(var(--panel-rgb), 0.54));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.testimonial-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.35rem 1rem;
}
.testimonial-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 0.45rem;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.testimonial-slider-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.testimonial-controls {
  position: static;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0;
  transform: none;
}
.testimonial-nav {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 999px;
  background: rgba(var(--panel-rgb), 0.76);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 0 16px 40px rgba(var(--ink-rgb), 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.testimonial-nav:hover,
.testimonial-nav:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.42);
  color: var(--accent);
  outline: none;
}
.testimonial-viewport {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
}
.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(.22, 1, .36, 1);
}
.testimonial-slider .testimonial-card {
  min-height: 350px;
  flex: 0 0 calc((100% - 2rem) / 3);
  justify-content: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.65rem);
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-right: 4rem;
}
.testimonial-avatar {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-2-rgb), 0.18));
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
}
.testimonial-person strong {
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}
.testimonial-person span span {
  margin-top: 0.12rem;
  font-size: 0.84rem;
}
.testimonial-stars {
  color: var(--accent-2);
  font-size: 1.02rem;
  letter-spacing: 0.12em;
}
.testimonial-slider .testimonial-card p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.72;
}
.testimonial-sample-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex !important;
  width: max-content;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.12);
  color: var(--accent-2) !important;
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.testimonial-meta { margin-top: auto; }
.testimonial-meta span {
  display: inline-flex !important;
  width: max-content;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
}
.testimonial-dots {
  position: static;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.05rem 0 0;
  transform: none;
}
.testimonial-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.22);
  transition: width 0.25s ease, background 0.25s ease;
}
.testimonial-dot.is-active {
  width: 1.65rem;
  background: var(--accent);
}
body[data-theme="light"] .testimonial-slider {
  background:
    radial-gradient(circle at 8% 8%, rgba(93, 111, 97, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(246, 243, 238, 0.7));
  border-color: rgba(24, 33, 31, 0.1);
}
body[data-theme="dark"] .testimonial-slider {
  background:
    radial-gradient(circle at 9% 10%, rgba(var(--accent-rgb), 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(var(--panel-rgb), 0.78), rgba(var(--panel-rgb), 0.42));
  border-color: rgba(var(--ink-rgb), 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}
@media (max-width: 1199px) {
  .testimonial-slider .testimonial-card { flex-basis: calc((100% - 1rem) / 2); }
}
@media (max-width: 767px) {
  .section { padding: 3.05rem 0; }
  .section-head,
  .section-head-centered,
  .testimonial-head { margin-bottom: 1.6rem; }
  .testimonial-slider {
    padding: 0.85rem;
    border-radius: 26px;
  }
  .testimonial-slider-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.2rem 0.1rem 0.95rem;
  }
  .testimonial-controls {
    width: 100%;
    justify-content: space-between;
  }
  .testimonial-slider .testimonial-card {
    min-height: 330px;
    flex-basis: 100%;
  }
  .testimonial-person { padding-right: 3.6rem; }
}


/* ============ WORK IMAGE THUMBNAILS + CONTACT ALIGNMENT UPDATE ============ */
.pf-cover.pf-cover-image {
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: #111827;
}

.pf-cover.pf-cover-image .pf-cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.65s var(--ease-out), filter 0.65s var(--ease-out);
}

.pf-cover.pf-cover-image::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.02) 20%, rgba(10, 14, 18, 0.74) 100%),
    radial-gradient(circle at 18% 82%, rgba(var(--accent-rgb), 0.22), transparent 42%);
}

.pf-cover.pf-cover-image span,
.pf-cover.pf-cover-image em {
  position: relative;
  z-index: 2;
  margin: 0;
}

.pf-cover.pf-cover-image span {
  padding: 0.24rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 14, 18, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.pf-cover.pf-cover-image em {
  max-width: 88%;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1.25;
}

.pf-card:hover .pf-cover.pf-cover-image .pf-cover-img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.02);
}

#contact .container-fluid,
#contact .section-tag,
#contact .contact-title,
#contact .contact-meta,
#contact .contact-form-copy,
#contact .contact-form-copy h3,
#contact .contact-form-copy p {
  text-align: center;
}

#contact .contact-title,
#contact .contact-meta,
#contact .contact-form-copy h3,
#contact .contact-form-copy p {
  margin-left: auto;
  margin-right: auto;
}

#contact .contact-title {
  max-width: 1180px;
}

@media (max-width: 991px) {
  #contact .contact-title {
    max-width: 12.5ch;
  }
}

@media (max-width: 991px) {
  .pf-cover.pf-cover-image {
    aspect-ratio: 4 / 3;
  }
}

/* ============ EXPANDED WORK SECTION PROJECT THUMBNAILS ============ */
.pf-cover.pf-cover-image span {
  max-width: 92%;
  overflow-wrap: anywhere;
}

.pf-cover.pf-cover-image em {
  text-align: left;
}

@media (max-width: 575px) {
  .pf-filters {
    gap: 0.55rem;
  }
  .pf-filter {
    padding-inline: 1rem;
  }
}


/* ============ DVAGO WORK CARD CAROUSEL ============ */
.pf-cover.pf-cover-carousel {
  background: #eef4ed;
}

.pf-cover-carousel .pf-carousel-img {
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}

.pf-cover-carousel .pf-carousel-img.is-active {
  opacity: 1;
}

.pf-card:hover .pf-cover-carousel .pf-carousel-img.is-active {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.02);
}

.pf-cover-carousel .pf-carousel-dots {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: inline-flex;
  gap: 0.38rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 14, 18, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pf-cover-carousel .pf-carousel-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.pf-cover-carousel .pf-carousel-dots i.is-active {
  width: 18px;
  background: #ffffff;
}

@media (max-width: 575px) {
  .pf-cover-carousel .pf-carousel-dots {
    top: 0.85rem;
    right: 0.85rem;
  }
}
