/* =========================================================================
   Abdur Rauf — Portfolio
   Design system built to the supplied spec.

   Palette   #2563EB primary · #0F172A navy · #64748B slate
             #F1F5F9 light · #FFFFFF white · #22C55E success
   Type      Inter · headings bold/semibold · 16px base · 1.6 line-height
   Breaks    mobile 320–575 · tablet 576–991 · laptop 992–1199 · desktop 1200+
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Spec palette — exact */
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;   /* hover darken */
  --primary-darker: #1E40AF;
  --navy:           #0F172A;
  --slate:          #64748B;
  --light:          #F1F5F9;
  --white:          #FFFFFF;
  --success:        #22C55E;

  /* Applied roles */
  --bg:            var(--white);
  --bg-alt:        var(--light);
  --surface:       var(--white);
  --surface-2:     var(--light);
  --border:        #E2E8F0;
  --border-strong: #CBD5E1;

  --text:          var(--navy);
  --text-2:        #475569;
  --muted:         var(--slate);

  --accent:        var(--primary);
  --accent-hover:  var(--primary-dark);
  --accent-soft:   #EFF6FF;
  --accent-text:   var(--primary);

  --ok:            var(--success);
  --ok-soft:       #ECFDF5;

  /* Soft shadows — spec calls for lift + soft shadow */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:    0 4px 14px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 14px 40px rgba(15, 23, 42, .12), 0 4px 10px rgba(15, 23, 42, .05);
  --shadow-primary: 0 8px 24px rgba(37, 99, 235, .25);

  --r-xs: 6px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --container: 1200px;
  --header-h: 72px;

  --ff: "Inter", "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Dark mode kept as an option; the spec palette is the light default. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0B1220;
    --bg-alt:        #0F172A;
    --surface:       #131C2E;
    --surface-2:     #182236;
    --border:        #253248;
    --border-strong: #35455F;

    --text:          #F1F5F9;
    --text-2:        #CBD5E1;
    --muted:         #94A3B8;

    --accent:        #60A5FA;
    --accent-hover:  #93C5FD;
    --accent-soft:   #172554;
    --accent-text:   #93C5FD;

    --ok:            #4ADE80;
    --ok-soft:       #14251B;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
    --shadow:    0 4px 14px rgba(0,0,0,.5);
    --shadow-lg: 0 16px 44px rgba(0,0,0,.6);
    --shadow-primary: 0 8px 24px rgba(96,165,250,.2);
  }
}
:root[data-theme="dark"] {
  --bg:#0B1220; --bg-alt:#0F172A; --surface:#131C2E; --surface-2:#182236;
  --border:#253248; --border-strong:#35455F;
  --text:#F1F5F9; --text-2:#CBD5E1; --muted:#94A3B8;
  --accent:#60A5FA; --accent-hover:#93C5FD; --accent-soft:#172554; --accent-text:#93C5FD;
  --ok:#4ADE80; --ok-soft:#14251B;
  --shadow-xs:0 1px 2px rgba(0,0,0,.4); --shadow-sm:0 1px 3px rgba(0,0,0,.45);
  --shadow:0 4px 14px rgba(0,0,0,.5); --shadow-lg:0 16px 44px rgba(0,0,0,.6);
  --shadow-primary:0 8px 24px rgba(96,165,250,.2);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;              /* spec: smooth scroll */
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff);
  font-size: 16px;                      /* spec: base 16px */
  line-height: 1.6;                     /* spec: 1.6 */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;                     /* spec: bold / semibold */
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--text);
  text-wrap: balance;
}
h4 { font-weight: 600; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--primary); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(60px, 8vw, 104px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(44px, 6vw, 68px); }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}
.sec-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.sec-sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ---------- 4. Page loader (spec: minimal progress bar at top) ---------- */
#pageLoader {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--success));
  z-index: 400; transition: width .25s var(--ease), opacity .4s .2s;
  pointer-events: none;
}
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--primary); z-index: 399; pointer-events: none;
}

/* ---------- 5. Buttons (spec: primary blue, hover darken, scale 1.03) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.99); }
.btn svg { flex: none; }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); }

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

.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. Header (spec: sticky + background blur, underline active link) ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.06); box-shadow: var(--shadow-primary); }
.brand-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.brand-role { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }

.nav-list { display: none; align-items: center; gap: 4px; }
.nav-list a {
  position: relative; display: block; padding: 9px 13px;
  font-size: .92rem; font-weight: 500; color: var(--text-2);
  transition: color .2s var(--ease);
}
.nav-list a::after {                    /* spec: underline animation */
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.nav-list a:hover { color: var(--text); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="true"] { color: var(--primary); font-weight: 600; }
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

.nav-cta { display: none; }
.nav-toggle { display: grid; }
@media (min-width: 992px) {                 /* spec: laptop 992+ */
  .nav-list { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer (spec: hamburger menu) */
.drawer {
  position: fixed; inset: 0; z-index: 150; background: var(--bg);
  padding: 20px; display: flex; flex-direction: column; gap: 2px;
  transform: translateX(100%); transition: transform .32s var(--ease-out);
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer a {
  padding: 14px 12px; border-radius: var(--r-sm);
  font-size: 1.02rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.drawer a:hover { background: var(--surface-2); padding-left: 18px; }
.drawer .btn { margin-top: 18px; border-bottom: 0; }

/* ---------- 7. Hero (spec section 01) ---------- */
.hero { padding-block: clamp(48px, 7vw, 92px) clamp(48px, 7vw, 84px); position: relative; overflow: hidden; }

/* Soft circular shapes + dots behind the profile image */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(34,197,94,.08));
}
.shape-1 { width: 380px; height: 380px; top: -60px; right: -80px; animation: shapeRotate 26s linear infinite; }
.shape-2 { width: 220px; height: 220px; bottom: -40px; right: 22%; animation: shapeRotate 34s linear infinite reverse; }
.shape-3 { width: 140px; height: 140px; top: 32%; left: -50px; animation: shapeRotate 30s linear infinite; }
@keyframes shapeRotate {                  /* spec: background shapes slow rotate */
  from { transform: rotate(0) translateY(0); }
  50%  { transform: rotate(180deg) translateY(-14px); }
  to   { transform: rotate(360deg) translateY(0); }
}

.hero-grid { display: grid; gap: clamp(36px, 5vw, 60px); align-items: center; position: relative; z-index: 1; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: var(--ok-soft); color: #15803D;
  font-size: .84rem; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
}
:root[data-theme="dark"] .status { color: var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status { color: var(--ok); } }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none;
  animation: pulseDot 2s var(--ease) infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin-top: 20px; font-weight: 800; }
.hero h1 .hl { color: var(--primary); }
.hero-role { margin-top: 16px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; color: var(--text-2); }
.hero-lede { margin-top: 18px; font-size: 1.05rem; color: var(--muted); max-width: 56ch; }
.hero .btn-row { margin-top: 30px; }

.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-row a {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
.social-row a:hover {                     /* spec: icon color change on hover */
  color: var(--primary); border-color: var(--primary);
  transform: translateY(-3px); box-shadow: var(--shadow);
}

/* Profile image with float animation */
.hero-visual { position: relative; display: grid; gap: 20px; justify-items: center; }
.profile-wrap { position: relative; width: 100%; max-width: 340px; }
.profile-wrap img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  border-radius: var(--r-xl); border: 4px solid var(--surface);
  box-shadow: var(--shadow-lg); background: var(--surface-2);
  animation: imageFloat 6s var(--ease) infinite;   /* spec: image float up-down */
}
@keyframes imageFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.profile-dots {
  position: absolute; z-index: -1; width: 90px; height: 90px;
  background-image: radial-gradient(var(--primary) 1.6px, transparent 1.6px);
  background-size: 12px 12px; opacity: .35;
}
.profile-dots.pd-1 { bottom: -18px; left: -22px; }
.profile-dots.pd-2 { top: -18px; right: -22px; }

/* Stats cards (spec: right side, stack below on mobile) */
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 340px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 14px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

@media (max-width: 991px) {               /* spec: hide right stats in hero, show below */
  .hero-visual { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
}
@media (max-width: 575px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* Live-domain proof strip */
.proof { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.proof-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.proof-list { display: flex; flex-wrap: wrap; gap: 8px; }
.proof-list a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .84rem; font-weight: 600; color: var(--text-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.proof-list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex: none; }
.proof-list a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- 8. Cards (spec: hover lift + soft shadow) ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.card-icon {
  width: 52px; height: 52px; border-radius: var(--r); margin-bottom: 18px;
  background: var(--accent-soft); color: var(--primary);
  display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card:hover .card-icon { background: var(--primary); color: #fff; transform: scale(1.06); }
.card h3 { font-size: 1.1rem; margin-bottom: 9px; }
.card p { font-size: .93rem; color: var(--muted); }

.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- 9. Scroll reveal + stagger ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-in > *:nth-child(1) { transition-delay: .00s; }
.js .stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
.js .stagger.is-in > *:nth-child(7) { transition-delay: .48s; }
.js .stagger.is-in > *:nth-child(8) { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- 10. Info list / about ---------- */
.about-grid { display: grid; gap: 26px; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1.15fr .85fr 1fr; align-items: start; } }
.prose p { color: var(--text-2); margin-bottom: 16px; font-size: 1.02rem; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 12px; }

.strengths { display: grid; gap: 10px; margin-top: 8px; }
.strengths li {
  display: flex; align-items: center; gap: 11px;
  font-size: .93rem; color: var(--text-2); font-weight: 500;
}
.strengths li svg { color: var(--success); flex: none; }

.info-list { display: grid; gap: 0; }
.info-list > div {
  display: grid; grid-template-columns: 108px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-weight: 500; }
.info-list dd { margin: 0; color: var(--text); font-weight: 600; }

.tech-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-icons li {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border);
  font-size: .68rem; font-weight: 700; color: var(--muted); text-align: center; padding: 3px;
  transition: transform .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.tech-icons li:hover {                   /* spec: icon scale up slightly */
  transform: scale(1.12); color: var(--primary);
  border-color: var(--primary); box-shadow: var(--shadow-sm);
}

/* ---------- 11. Sliders (spec sections 04 & 07) ---------- */
.slider { position: relative; }
.slider-viewport { overflow: hidden; border-radius: var(--r-lg); }
.slider-track {
  display: flex; gap: 22px;
  transition: transform .55s var(--ease-out);   /* spec: smooth transition */
  will-change: transform;
}
.slide { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
@media (max-width: 1199px) { .slide { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 767px)  { .slide { flex-basis: 100%; } }   /* spec: 1 card view on mobile */
.slider--single .slide { flex-basis: 100%; }

.slider-nav { display: flex; gap: 9px; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2);
  cursor: pointer; transition: all .2s var(--ease);
}
.slider-btn:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.06); }
.slider-btn:disabled { opacity: .35; cursor: not-allowed; }

.slider-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 9px; height: 9px; padding: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--border-strong); border: 0; transition: all .25s var(--ease);
}
.dots button[aria-current="true"] { background: var(--primary); width: 26px; }

/* ---------- 12. Project cards ---------- */
.proj-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.proj-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.proj-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .45s var(--ease); }
.proj-card:hover .proj-media img { transform: scale(1.05); }   /* spec: image zoom 1.05 */
.proj-media--contain img { object-fit: contain; padding: 22px; }
.proj-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.proj-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 9px; }
.proj-card h3 { font-size: 1.15rem; margin-bottom: 9px; transition: color .2s var(--ease); }
.proj-card:hover h3 { color: var(--primary); }
.proj-card p { font-size: .92rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-xs);
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.proj-links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.plink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600; padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); color: var(--text-2);
  transition: all .2s var(--ease);
}
.plink:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.03); }
.plink--solid { background: var(--primary); border-color: var(--primary); color: #fff; }
.plink--solid:hover { background: var(--primary-dark); }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 28px; }
.chip {
  padding: 9px 17px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .87rem; font-weight: 600; color: var(--text-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.03); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-count { font-size: .85rem; color: var(--muted); margin-left: auto; }
.is-filtered-out { display: none !important; }

/* ---------- 13. Timeline (spec section 05: horizontal, vertical on mobile) ---------- */
.timeline-h { position: relative; padding-top: 8px; }
.timeline-scroll { overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; }
.timeline-rail { display: flex; gap: 0; min-width: max-content; position: relative; padding-top: 46px; }
.timeline-rail::before {
  content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 3px;
  background: var(--border); border-radius: 3px;
}
.timeline-rail::after {
  content: ""; position: absolute; top: 15px; left: 0; height: 3px; width: var(--tl-progress, 0%);
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 3px; transition: width .6s var(--ease-out);
}
.tl-node { position: relative; width: 268px; flex: none; padding-right: 22px; }
.tl-node::before {
  content: ""; position: absolute; top: -38px; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--border-strong);
  transition: all .3s var(--ease); z-index: 1;
}
.tl-node.is-active::before { border-color: var(--primary); box-shadow: 0 0 0 5px var(--accent-soft); transform: scale(1.15); }
.tl-step { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-node.is-active .tl-step { color: var(--primary); }
.tl-node h3 { font-size: 1.02rem; margin: 5px 0 3px; }
.tl-org { font-size: .85rem; color: var(--primary); font-weight: 600; }
.tl-node p { font-size: .87rem; color: var(--muted); margin-top: 8px; }

@media (max-width: 767px) {                /* spec: vertical timeline on mobile */
  .timeline-scroll { overflow-x: visible; }
  .timeline-rail { display: block; min-width: 0; padding-top: 0; padding-left: 30px; }
  .timeline-rail::before { top: 6px; bottom: 6px; left: 7px; right: auto; width: 3px; height: auto; }
  .timeline-rail::after { top: 6px; left: 7px; width: 3px; height: var(--tl-progress, 0%); background: linear-gradient(180deg, var(--primary), var(--success)); }
  .tl-node { width: auto; padding: 0 0 28px; }
  .tl-node::before { top: 4px; left: -30px; }
}

/* ---------- 14. Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; height: 100%; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stars { color: #F59E0B; font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { font-size: .96rem; color: var(--text-2); flex: 1; }
.quote figcaption { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.q-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.quote figcaption b { display: block; font-size: .92rem; color: var(--text); }
.quote figcaption span { font-size: .82rem; color: var(--muted); }

/* ---------- 15. Accordion / FAQ (spec section 6) ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.acc {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  margin-bottom: 12px; box-shadow: var(--shadow-xs); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.acc:hover { border-color: var(--border-strong); }
.acc[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.acc summary {
  cursor: pointer; padding: 19px 56px 19px 22px; font-weight: 600; font-size: 1rem;
  position: relative; list-style: none; color: var(--text);
  transition: color .2s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--primary); }
.acc[open] summary { color: var(--primary); }
.acc summary::before,                     /* plus icon */
.acc summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.acc summary::before { width: 14px; height: 2px; margin-top: -1px; }
.acc summary::after  { width: 2px; height: 14px; margin-top: -7px; right: 28px; }
.acc[open] summary::after { transform: rotate(90deg); opacity: 0; }
.acc-body { padding: 0 22px 20px; color: var(--text-2); font-size: .95rem; animation: accSlide .32s var(--ease-out); }
.acc-body p + p { margin-top: 10px; }
@keyframes accSlide {                     /* spec: answer slides down */
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 16. Forms (spec: focus glow, real-time validation) ---------- */
.form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
}
.form h3 { font-size: 1.25rem; margin-bottom: 7px; }
.form > p { font-size: .92rem; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 7px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text);
  font-size: .95rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);   /* spec: focus glow */
}
.field textarea { resize: vertical; min-height: 128px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #EF4444; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--success); }
.field-msg { display: none; font-size: .8rem; color: #EF4444; margin-top: 6px; }
.field.is-invalid .field-msg { display: block; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 576px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-status { margin-bottom: 14px; font-size: .92rem; font-weight: 500; }
.form-status.is-ok { color: #15803D; }
.form-status.is-err { color: #DC2626; }
.form-fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact links */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.contact-links { display: grid; gap: 12px; margin-top: 24px; }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 15px 17px;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  color: var(--text); transition: all .22s var(--ease);
}
.contact-link:hover { border-color: var(--primary); transform: translateX(5px); box-shadow: var(--shadow-sm); }
.contact-link .ci {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--primary); display: grid; place-items: center;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.contact-link:hover .ci { background: var(--primary); color: #fff; }
.contact-link small { display: block; color: var(--muted); font-size: .78rem; }
.contact-link b { font-weight: 600; font-size: .94rem; word-break: break-word; }

/* ---------- 17. Pricing ---------- */
.price {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price--featured { border-color: var(--primary); box-shadow: var(--shadow); }
.price-flag {
  position: absolute; top: -12px; left: 26px; background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: var(--r-pill);
}
.price h3 { font-size: 1.1rem; margin-bottom: 7px; }
.price > p { font-size: .89rem; color: var(--muted); min-height: 42px; }
.price-amount { margin: 18px 0 6px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.price-amount small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: .8rem; color: var(--muted); margin-bottom: 20px; }
.price ul { display: grid; gap: 10px; margin-bottom: 24px; }
.price ul li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--text-2); }
.price ul li::before {
  content: ""; position: absolute; left: 4px; top: .36em;
  width: 11px; height: 6px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.price .btn { margin-top: auto; width: 100%; }

/* ---------- 18. Experience entries ---------- */
.exp {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.exp:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.exp-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 4px; }
.exp-head h3 { font-size: 1.15rem; }
.exp-when {
  margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--primary);
  background: var(--accent-soft); padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap;
}
.exp-org { font-size: .95rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.exp ul { display: grid; gap: 9px; }
.exp ul li { position: relative; padding-left: 24px; font-size: .93rem; color: var(--text-2); }
.exp ul li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}

/* ---------- 19. Misc ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.note {
  margin-top: 20px; padding: 15px 18px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px dashed var(--primary);
  font-size: .88rem; color: var(--text-2);
}
.note strong { color: var(--text); }
.todo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: var(--r-pill);
  background: #FEF3C7; border: 1px dashed #D97706;
  font-size: .78rem; font-weight: 700; color: #92400E; white-space: nowrap;
}

.cta-band {
  margin-top: 48px; padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}
.cta-band h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 54ch; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* Back to top (spec: fade + slide up) */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow-primary);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px) scale(1.05); }

/* ---------- 20. Footer ---------- */
.footer { background: var(--navy); color: #CBD5E1; padding-block: 56px 28px; }
:root[data-theme="dark"] .footer { background: #060B14; }
.footer .brand-name, .footer h4 { color: #fff; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-brand p { font-size: .91rem; color: #94A3B8; margin-top: 14px; max-width: 32ch; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { font-size: .91rem; color: #94A3B8; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 5px; }
.footer .brand-role { color: #94A3B8; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
  border: 1px solid #1E293B; background: #0B1220; color: #94A3B8;
  transition: all .2s var(--ease);
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #1E293B;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: .87rem; color: #94A3B8;
}

/* ---------- 21. Inner pages ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

.page-head { padding-block: 28px clamp(30px, 4vw, 46px); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 16px; }
.page-head .lede { font-size: 1.06rem; color: var(--text-2); max-width: 66ch; }

.article { max-width: 800px; }
.article h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 40px 0 14px; }
.article h3 { font-size: 1.12rem; margin: 26px 0 9px; }
.article p { color: var(--text-2); margin-bottom: 15px; }
.article ul { display: grid; gap: 10px; margin: 15px 0 22px; }
.article ul li { position: relative; padding-left: 26px; color: var(--text-2); }
.article ul li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}
.article img { border-radius: var(--r); border: 1px solid var(--border); margin: 22px 0; }

.spec-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 24px 0 8px; }
.spec {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 17px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.spec:hover { border-color: var(--primary); transform: translateY(-3px); }
.spec dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 6px; }
.spec dd { margin: 0; font-size: .93rem; font-weight: 600; color: var(--text); }

.skill-group {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.skill-group:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.skill-group h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Grids and service cards used by the services / case-study index pages */
.proj-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.svc-grid  { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.svc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.svc-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.svc-card h3 a { color: inherit; }
.svc-card h3 a:hover { color: var(--primary); }
.svc-card p { font-size: .93rem; color: var(--muted); }
.svc-more {
  margin-top: auto; padding-top: 16px; font-size: .89rem; font-weight: 600; color: var(--primary);
  transition: padding-left .2s var(--ease);
}
.svc-more:hover { padding-left: 5px; }

.text-muted { color: var(--muted); }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.stack-lg > * + * { margin-top: 24px; }

/* ---------- 22. Responsive overrides ---------- */

/* Header fallback for browsers without color-mix support */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .header { background: rgba(255, 255, 255, .82); }
  :root[data-theme="dark"] .header { background: rgba(11, 18, 32, .82); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .header { background: rgba(11, 18, 32, .82); }
  }
}

/* Tablet — 768px and below */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-list > div { grid-template-columns: 90px 1fr; font-size: .88rem; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .price { margin-bottom: 0; }
  .hero-stats { gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 1.3rem; }
  .social-row { gap: 8px; }
  .social-row a { width: 38px; height: 38px; }
  .proof-list a { padding: 6px 12px; font-size: .8rem; }
}

/* Mobile — 576px and below */
@media (max-width: 576px) {
  .container { padding-inline: 16px; }
  .hero { padding-block: 36px 28px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-role { font-size: .98rem; }
  .hero-lede { font-size: .96rem; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .social-row { flex-wrap: wrap; }
  .proof-list { gap: 6px; }
  .proof-list a { padding: 5px 10px; font-size: .76rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .sec-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .sec-sub { font-size: .95rem; }
  .sec-head { margin-bottom: 24px; }
  .card { padding: 20px; }
  .proj-body { padding: 16px; }
  .filters { gap: 6px; }
  .chip { padding: 7px 13px; font-size: .8rem; }
  .field-row { grid-template-columns: 1fr; }
  .contact-link { padding: 12px 14px; }
  .contact-link b { font-size: .88rem; }
  .info-list > div { grid-template-columns: 80px 1fr; font-size: .84rem; padding: 10px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer h4 { margin-bottom: 10px; }
  .footer ul { gap: 7px; }
  .socials { gap: 7px; }
  .socials a { width: 36px; height: 36px; }
  .price-amount { font-size: 1.8rem; }
  .price ul li { font-size: .85rem; }
  .slider-foot { flex-direction: column; gap: 12px; }
  .skill-group { padding: 18px; }
  .exp { padding: 18px; }
  .exp-head h3 { font-size: 1rem; }
  .exp ul li { font-size: .88rem; }
  .faq { max-width: 100%; }
  .acc summary { padding: 16px 48px 16px 18px; font-size: .95rem; }
  .acc-body { padding: 0 18px 16px; font-size: .9rem; }
  .cta-band { padding: 22px 18px; }
  .cta-band .btn-row { flex-direction: column; }
  .cta-band .btn-row .btn { width: 100%; }
  .crumbs { font-size: .8rem; }
  .page-head h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .spec-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .quote { padding: 20px; }
  .quote blockquote { font-size: .9rem; }
  .tl-node h3 { font-size: .95rem; }
  .tl-node p { font-size: .84rem; }
}

/* Extra small — 400px and below */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.55rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 1.15rem; }
  .brand-mark { width: 34px; height: 34px; font-size: .78rem; }
  .brand-name { font-size: .9rem; }
  .btn { padding: 11px 18px; font-size: .88rem; }
  .icon-btn { width: 36px; height: 36px; }
  .proof-list { flex-direction: column; }
  .proof-list a { width: 100%; justify-content: center; }
}

/* Large tablets / small laptops — keep 2-col grids but single-col hero */
@media (min-width: 576px) and (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid > :last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
