/* ============================================================
   PRASHANT KUMAR — PORTFOLIO STYLES
   Vibrant orange–tomato brand on a deep black luxury interface.
   Palette: #FF4D1C vibrant orange · #FF6A00 bright orange ·
            #FF3D00 tomato · #FF8A3D warm orange · #FFB347 amber ·
            #FFF1E8 cream · #0B0B0B black · #151515 charcoal
   Layout utilities come from Tailwind; every visual opinion
   lives here, driven by CSS custom properties.
   ============================================================ */

/* ---------- THEME TOKENS ---------- */
:root {
  --bg:        #0b0b0b;
  --bg-soft:   #151515;
  --bg-card:   rgba(255, 255, 255, 0.04);
  --bg-card-h: rgba(255, 255, 255, 0.07);
  --text:      #fff1e8;
  --muted:     #a89f97;
  --line:      rgba(255, 241, 232, 0.09);
  --line-h:    rgba(255, 241, 232, 0.2);
  --edge:      rgba(255, 106, 0, 0.45);   /* illuminated card edges */
  --accent:    #ff6a00;
  --accent-2:  #ff3d00;                    /* tomato — hover / error / highlight */
  --accent-3:  #ff8a3d;
  --vibrant:   #ff4d1c;
  --amber:     #ffb347;
  --cream:     #fff1e8;
  --nav-bg:    rgba(11, 11, 11, 0.72);
  --shadow:    0 20px 60px rgba(0, 0, 0, 0.55);
  --glow:      0 10px 40px rgba(255, 77, 28, 0.25);
  --glow-hot:  0 14px 54px rgba(255, 61, 0, 0.45);
  --grad-main: linear-gradient(135deg, #ff3d00, #ff6a00, #ffb347);
  /* supporting accent garnish — used sparingly */
  --coral:  #ff6b57;
  --pink:   #ff4d8d;
  --violet: #8b5cf6;
}

[data-theme="light"] {
  --bg:        #faf6f1;
  --bg-soft:   #ffffff;
  --bg-card:   rgba(26, 18, 13, 0.04);
  --bg-card-h: rgba(26, 18, 13, 0.07);
  --text:      #1a120d;
  --muted:     #6d6058;
  --line:      rgba(26, 18, 13, 0.10);
  --line-h:    rgba(26, 18, 13, 0.22);
  --edge:      rgba(255, 77, 28, 0.5);
  /* darker warm tokens so small orange/amber text keeps AA contrast on cream */
  --accent:    #d84a00;
  --accent-2:  #cc3100;
  --accent-3:  #b35100;
  --amber:     #9c6a00;
  --nav-bg:    rgba(250, 246, 241, 0.78);
  --shadow:    0 20px 50px rgba(60, 30, 10, 0.10);
  --glow:      0 10px 36px rgba(255, 77, 28, 0.18);
  --glow-hot:  0 14px 44px rgba(255, 61, 0, 0.28);
}

/* ---------- BASE ---------- */
html { scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  /* clip, not hidden — hidden would create a scroll container and
     silently break every position:sticky descendant */
  overflow-x: clip;
  transition: background-color .5s ease, color .5s ease;
}

::selection { background: rgba(255, 106, 0, 0.4); color: #fff; }
[data-theme="light"] ::selection { color: #1a120d; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2e26; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #57402f; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d9cec4; }

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

.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: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1400px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.wrap-narrow { max-width: 900px; }

.section { padding-block: clamp(84px, 10vw, 150px); position: relative; }
/* NOTE: no overflow:hidden here — it would break position:sticky inside
   (skill tabs). The ::before light-leak bleeding across section seams is
   intentional; html{overflow-x:clip} guards against horizontal scroll. */
.section-alt { background: var(--bg-soft); transition: background-color .5s ease; position: relative; }
/* Orange light leak at the seam of alternate sections */
.section-alt::before {
  content: ''; position: absolute; top: -220px; right: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.07), rgba(255, 61, 0, 0.03) 45%, transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.section-alt > .wrap { position: relative; z-index: 1; }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(8) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); } 25% { transform: translate(-2%,3%); }
  50% { transform: translate(3%,-2%); } 75% { transform: translate(-3%,-3%); }
}

/* ---------- TYPO HELPERS ---------- */
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
}
/* animated orange section marker */
.eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-main); animation: marker-pulse 2.6s ease-in-out infinite;
}
@keyframes marker-pulse { 0%,100% { width: 22px; opacity: 1; } 50% { width: 34px; opacity: .7; } }

.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section-title {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.028em;
  text-wrap: balance; color: var(--cream);
  font-feature-settings: 'ss01' on, 'liga' on;
}
[data-theme="light"] .section-title { color: var(--text); }
.section-sub { color: var(--muted); max-width: 620px; margin-top: 20px; font-size: 1.05rem; line-height: 1.7; }
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(255, 90, 20, 0.25));
}

/* Calligraphy accent — mixes with the bold sans display type */
.script {
  font-family: 'Great Vibes', cursive;
  font-weight: 400; text-transform: none; letter-spacing: .01em;
  font-size: 1.32em; line-height: .85;
  display: inline-block; padding: .04em .14em .16em .05em;
  vertical-align: -.06em;
}

/* Ambient gradient blobs — slow-drifting blurred light behind sections */
.bg-blob {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(280px, 34vw, 520px); aspect-ratio: 1; border-radius: 50%;
  filter: blur(50px); opacity: .5;
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.blob-coral  { left: -8%; bottom: -6%;  background: radial-gradient(circle, rgba(255,107,87,.16), rgba(255,77,141,.05) 55%, transparent 72%); }
.blob-amber  { right: -10%; top: 12%;   background: radial-gradient(circle, rgba(255,179,71,.13), rgba(255,106,0,.05) 55%, transparent 72%); animation-delay: -6s; }
.blob-tomato { left: -12%; top: 22%;    background: radial-gradient(circle, rgba(255,61,0,.14), rgba(139,92,246,.05) 60%, transparent 75%); animation-delay: -11s; }
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4vw, -3vh) scale(1.12); }
  100% { transform: translate(-2vw, 3vh) scale(.94); }
}

.link-underline { position: relative; color: var(--text); }
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: var(--grad-main); transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: 999px; position: relative;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease,
              background-position .45s ease, border-color .3s ease, color .3s ease, filter .35s ease;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s ease; }
.btn:hover svg { transform: translate(3px, -1px); }

/* Primary CTA — premium rounded-rectangular, animated orange gradient,
   soft glow, hover lift + scale + diagonal shine sweep.
   Gradient starts deep tomato so white label text keeps contrast. */
.btn-primary {
  border-radius: 16px;
  background: linear-gradient(120deg, #e83600 0%, #ff5a00 45%, #ff7a24 80%, #ff5a00 100%);
  background-size: 200% 100%; background-position: 0% 50%;
  color: #fff; font-weight: 700;
  text-shadow: 0 1px 2px rgba(90, 15, 0, 0.35);
  box-shadow: 0 8px 30px rgba(255, 77, 28, 0.35), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 6px rgba(120,20,0,.35);
  overflow: hidden;
}
.btn-primary:hover {
  background-position: 90% 50%;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 50px rgba(255, 61, 0, 0.5), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 6px rgba(120,20,0,.3);
  filter: brightness(1.07);
}
.btn-primary::after {
  content: ''; position: absolute; top: -60%; bottom: -60%; width: 34%; left: -55%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transition: left .55s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-outline { border: 1px solid var(--line-h); color: var(--text); background: transparent; }
.btn-outline:hover {
  border-color: var(--accent); background: rgba(255, 106, 0, 0.09);
  transform: translateY(-2px); box-shadow: var(--glow);
}
.btn-ghost { color: var(--muted); padding-inline: 18px; }
.btn-ghost:hover { color: var(--accent-3); }
.btn-xl { padding: 20px 44px; font-size: 1.08rem; border-radius: 18px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text); background: transparent;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.icon-btn:hover { border-color: var(--accent); background: rgba(255, 106, 0, 0.1); box-shadow: var(--glow); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- CURSOR ---------- */
#cursor-dot, #cursor-ring { pointer-events: none; position: fixed; top: 0; left: 0; z-index: 400; }
#cursor-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.95);
  transform: translate(-50%, -50%);
}
#cursor-ring {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255, 106, 0, 0.6);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width .28s ease, height .28s ease, background .28s ease, border-color .28s ease;
}
#cursor-label {
  font-family: 'Space Grotesk', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; color: var(--text); opacity: 0; transition: opacity .2s;
}
body.cursor-on-button #cursor-ring { width: 58px; height: 58px; background: rgba(255,106,0,.14); border-color: var(--accent); }
body.cursor-on-link #cursor-ring { width: 50px; height: 50px; border-color: var(--amber); }
body.cursor-on-image #cursor-ring { width: 72px; height: 72px; background: rgba(255,61,0,.12); border-color: var(--accent-2); }
body.cursor-on-drag #cursor-ring { width: 76px; height: 76px; background: rgba(11,11,11,.5); border-color: var(--accent-3); backdrop-filter: blur(2px); }
body.cursor-on-drag #cursor-label, body.cursor-on-image #cursor-label { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
.cursor-trail {
  position: fixed; z-index: 390; pointer-events: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.8);
  transform: translate(-50%, -50%);
  animation: trail-fade .55s ease-out forwards;
}
.cursor-trail.c2 { background: var(--coral); box-shadow: 0 0 10px rgba(255, 107, 87, 0.8); }
.cursor-trail.c3 { background: var(--amber); box-shadow: 0 0 10px rgba(255, 179, 71, 0.8); }
@keyframes trail-fade { to { opacity: 0; transform: translate(-50%, -50%) scale(.15); } }
@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring, .cursor-trail { display: none !important; }
}

/* ---------- SCROLL PROGRESS / BACK TO TOP ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--grad-main); transform: scaleX(0); transform-origin: left;
  z-index: 210; box-shadow: 0 0 12px rgba(255, 106, 0, 0.6);
}
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 140;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s, transform .35s, visibility .35s, border-color .3s, box-shadow .3s;
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); box-shadow: var(--glow); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- LOADER ---------- */
#loader {
  position: fixed; inset: 0; z-index: 500;
  background: #0b0b0b; color: #fff1e8;
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; position: relative; z-index: 1; padding-inline: 20px; }
/* faint tech grid + vignette behind the type */
.loader-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 77, 28, .08), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 241, 232, .03) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 241, 232, .03) 79px 80px);
}
.loader-mark {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 22px;
  border: 2px solid rgba(255, 106, 0, .55);
  box-shadow: 0 0 0 0 rgba(255, 106, 0, .4);
  animation: pulse 2.4s infinite;
  display: block;
}
.loader-kicker {
  font-size: .64rem; font-weight: 600; letter-spacing: .5em; color: #a89f97;
  margin-bottom: 26px;
}
/* cinematic per-character reveal — chars rise, unblur and settle */
.loader-chars {
  font-size: clamp(1.55rem, 8.6vw, 5.2rem); font-weight: 700; letter-spacing: .05em;
  line-height: 1.1; color: #fff1e8; white-space: nowrap;
}
.loader-chars .l-char {
  display: inline-block; opacity: 0;
  transform: translateY(55%) rotate(6deg) scale(.92);
  filter: blur(6px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), filter .55s ease;
}
.loader-chars .l-char.lit { opacity: 1; transform: none; filter: blur(0); }
.loader-chars .l-char:nth-child(-n+8).lit {
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loader-bar {
  width: min(560px, 78vw); height: 2px; background: rgba(255,241,232,.1);
  margin: 34px auto 14px; border-radius: 2px; overflow: hidden;
}
#loader-fill { display: block; height: 100%; width: 0%; background: var(--grad-main); box-shadow: 0 0 12px rgba(255,106,0,.8); }
.loader-meta {
  display: flex; align-items: center; justify-content: space-between;
  width: min(560px, 78vw); margin-inline: auto; gap: 12px; flex-wrap: wrap;
}
.loader-tag { font-size: .6rem; font-weight: 600; letter-spacing: .3em; color: #a89f97; }
#loader-pct {
  font-size: 1.1rem; font-weight: 700; letter-spacing: .12em;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- NAVIGATION ---------- */
.nav-shell {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding-block: 22px;
  transition: padding .4s ease, background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.nav-shell.scrolled {
  padding-block: 12px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; font-size: 1.05rem;
  background: linear-gradient(135deg, #ff3d00, #ff6a00); color: #fff;
  box-shadow: 0 6px 22px rgba(255, 77, 28, .45);
}
/* photo logo — circular portrait ringed by a spinning brand gradient */
.brand-photo {
  position: relative; border-radius: 50%; background: none; padding: 0;
  overflow: visible;
}
.brand-photo img { width: 42px; height: 42px; border-radius: 50%; display: block; position: relative; z-index: 1; }
.brand-photo::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from var(--ga, 0deg), #ff3d00, #ff6a00, #ffb347, #ff3d00);
  animation: spin-grad 6s linear infinite;
}
.brand-photo::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  background: var(--bg); z-index: 0;
}
.brand:hover .brand-photo img { transform: scale(1.06); transition: transform .3s; }
/* gradient hairline under the scrolled nav */
.nav-shell::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, .55) 30%, rgba(255, 179, 71, .55) 70%, transparent);
  opacity: 0; transition: opacity .4s;
}
.nav-shell.scrolled::after { opacity: 1; }
.brand-name { letter-spacing: .14em; font-size: .82rem; }
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 1200px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: 9px 13px; font-size: .86rem; font-weight: 600;
  color: var(--muted); border-radius: 8px; transition: color .25s;
  font-family: 'Space Grotesk', sans-serif; letter-spacing: .02em;
}
.nav-link:hover { color: var(--accent-3); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--grad-main);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.7);
}
.nav-cta { display: none; padding: 12px 22px; font-size: .85rem; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* compact gradient CTA for small screens (where the full CTA is hidden) */
.nav-mini-cta {
  display: none; border: none; color: #fff;
  background: linear-gradient(135deg, #e83600, #ff6a00);
  box-shadow: 0 6px 20px rgba(255, 77, 28, .4);
}
.nav-mini-cta:hover { background: linear-gradient(135deg, #ff3d00, #ff8a3d); color: #fff; }
@media (max-width: 899px) { .nav-mini-cta { display: inline-flex; } }

/* ----- Mobile / tablet header: floating glass pill ----- */
@media (max-width: 1199px) {
  .nav-shell { padding: 10px 12px; }
  .nav-shell.scrolled { padding: 10px 12px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .nav-shell::after { display: none; }
  .nav-shell nav {
    position: relative;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 10px 8px 8px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: border-color .4s, box-shadow .4s;
  }
  [data-theme="light"] .nav-shell nav { box-shadow: 0 10px 30px rgba(60, 30, 10, .12), inset 0 1px 0 rgba(255,255,255,.6); }
  .nav-shell.scrolled nav {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    box-shadow: 0 12px 38px rgba(0, 0, 0, .3), 0 4px 22px rgba(255, 77, 28, .16), inset 0 1px 0 rgba(255, 255, 255, .07);
  }
  .icon-btn, .hamburger { width: 42px; height: 42px; }
}

.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 12px; border-radius: 50%;
  border: 1px solid var(--line);
}
@media (min-width: 1200px) { .hamburger { display: none; } }
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  border-radius: 2px; transition: transform .35s ease, opacity .25s ease;
}
.hamburger:hover, .hamburger.open { border-color: var(--edge); box-shadow: var(--glow); }
.hamburger span:nth-child(2) { width: 70%; margin-left: auto; transition: transform .35s ease, opacity .25s ease, width .3s; }
.hamburger:hover span:nth-child(2) { width: 100%; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; overflow-y: auto; overflow-x: hidden;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
/* margin-based centering keeps the top links reachable when the
   menu is taller than a landscape-phone viewport */
.mobile-menu > nav { margin: auto; padding: 84px 24px 40px; position: relative; z-index: 1; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.menu-blob {
  /* sits fully inside the overlay — the gradient itself is corner-offset,
     so nothing extends the scrollable area */
  position: absolute; top: 0; right: 0; width: min(320px, 82vw); height: 320px;
  pointer-events: none;
  background: radial-gradient(circle at 82% 10%, rgba(255, 77, 28, .18), rgba(255, 179, 71, .07) 45%, transparent 68%);
  filter: blur(26px);
}
.menu-head { text-align: center; margin-bottom: 30px; }
.menu-head img {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  border: 2px solid var(--edge);
  box-shadow: 0 8px 26px rgba(255, 77, 28, .35);
  display: block;
}
.menu-name { font-weight: 700; letter-spacing: .16em; font-size: .9rem; }
.menu-role { color: var(--accent); font-size: .58rem; font-weight: 600; letter-spacing: .3em; margin-top: 6px; }
.mobile-menu ul { counter-reset: mlink; }
.mobile-link::before {
  counter-increment: mlink;
  content: counter(mlink, decimal-leading-zero);
  font-size: .55em; color: var(--accent); font-weight: 600;
  vertical-align: .5em; margin-right: 12px; letter-spacing: .1em;
}
.menu-cta { font-size: .9rem; padding: 14px 28px; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.mobile-link {
  display: inline-block; font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 700;
  letter-spacing: -.01em; padding: 6px 12px; color: var(--text);
  opacity: 0; transform: translateY(24px);
  transition: color .3s;
}
.mobile-menu.open .mobile-link { animation: mob-link-in .55s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--ld, 0s); }
@keyframes mob-link-in { to { opacity: 1; transform: translateY(0); } }
.mobile-link:hover { color: var(--accent); }
.mobile-menu-foot { margin-top: 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mobile-mail { color: var(--muted); font-size: .95rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -18vw; top: 8%;
  background: radial-gradient(circle at center, rgba(255, 77, 28, .18), rgba(255, 61, 0, .07) 45%, transparent 70%);
  filter: blur(20px);
}
.hero-content { position: relative; z-index: 2; max-width: 1080px; }
/* reserve the avatar column so the headline never runs under the portrait.
   margin-left pins the column to the site grid's left edge (a centered
   auto-margin would push the text back under the avatar). */
@media (min-width: 1024px) {
  .hero-content {
    max-width: calc(100% - clamp(300px, 30vw, 470px) - clamp(20px, 5.5vw, 110px) - clamp(36px, 4vw, 90px) - max(calc((100% - 1400px) / 2), 0px));
    margin-left: max(calc((100% - 1400px) / 2), 0px);
    margin-right: 0;
  }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  margin-bottom: 34px; background: var(--bg-card);
  backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 179, 71, .6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, .55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 179, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); }
}
.hero-title {
  font-size: clamp(2.5rem, 7.4vw, 7rem);
  line-height: .98; font-weight: 700; letter-spacing: -0.025em;
  max-width: 18ch; color: var(--cream);
}
[data-theme="light"] .hero-title { color: var(--text); }
.hero-title em {
  font-style: normal;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .word { display: inline-block; will-change: transform; }
.hero-tags {
  margin-top: 30px; font-size: clamp(.9rem, 1.6vw, 1.15rem); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero-tags span { color: var(--accent); margin-inline: 6px; }
.hero-sub { margin-top: 24px; max-width: 640px; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.hero-sub a { color: var(--text); font-weight: 700; border-bottom: 1px solid var(--accent); }
.hero-sub a:hover { color: var(--accent-3); }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-badges { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-badge {
  position: absolute; left: var(--bx); top: var(--by);
  font-family: 'Space Grotesk', sans-serif; font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  animation: badge-float 7s ease-in-out infinite; animation-delay: var(--bd);
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 900px) { .hero-badge { display: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: .6rem; font-weight: 700;
  letter-spacing: .3em; color: var(--muted);
}
.scroll-hint-line {
  width: 1.5px; height: 46px; background: var(--line-h);
  position: relative; overflow: hidden; border-radius: 2px;
}
.scroll-hint-line::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--grad-main); animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop { 0% { top: -50%; } 100% { top: 110%; } }

/* ---------- HERO AVATAR ---------- */
.hero-avatar {
  position: absolute; z-index: 1; display: none;
  right: clamp(20px, 5.5vw, 110px);
  /* centered without a transform — GSAP owns this element's transform */
  top: calc(50% - clamp(300px, 30vw, 470px) / 2);
  width: clamp(300px, 30vw, 470px); aspect-ratio: 1;
  perspective: 900px;
}
@media (min-width: 1024px) { .hero-avatar { display: block; } }
/* below 1400px the 18ch headline can reach the avatar column — keep it compact */
@media (min-width: 1024px) and (max-width: 1399px) { .hero-avatar { width: 260px; top: calc(50% - 130px); right: clamp(16px, 3vw, 48px); opacity: .95; } }
/* mobile & tablet: avatar becomes a centered element above the headline */
@media (max-width: 1023px) {
  .hero { flex-direction: column; justify-content: center; align-items: stretch; }
  .hero-avatar {
    display: block; position: relative; top: auto; right: auto;
    width: min(48vw, 220px); margin: 24px auto 34px;
  }
  .avatar-tag { display: none; }
  .avatar-ring-b { inset: -22px; }
  .hero-content { padding-top: 0; }
}
.avatar-blob {
  position: absolute; inset: -20%; border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, rgba(255, 106, 0, .34), rgba(255, 61, 0, .13) 48%, transparent 72%);
  filter: blur(34px);
  animation: blob-drift 10s ease-in-out infinite alternate;
}
/* CSS float lives on this wrapper so it never fights GSAP's
   parallax (on .hero-avatar) or 3D tilt (on .avatar-card) */
.avatar-bob {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: avatar-float 6.5s ease-in-out infinite;
}
.avatar-card {
  position: absolute; inset: 5%; border-radius: 50%; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  background: radial-gradient(circle at 35% 25%, #2a1408, #0b0b0b 75%);
  border: 1px solid rgba(255, 138, 61, .45);
  box-shadow:
    0 30px 90px rgba(255, 61, 0, .32),
    0 6px 24px rgba(0, 0, 0, .5),
    inset 0 0 0 6px rgba(11, 11, 11, .55);
}
.avatar-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }
/* warm rim light sweeping the photo */
.avatar-rim {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 179, 71, .34), transparent 46%),
    radial-gradient(circle at 22% 88%, rgba(255, 61, 0, .28), transparent 52%);
  mix-blend-mode: screen;
}
@keyframes avatar-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-18px) rotate(1.4deg); }
}
.avatar-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.avatar-ring-a {
  inset: -16px;
  border: 1.5px dashed rgba(255, 106, 0, .38);
  animation: ring-rotate 24s linear infinite;
}
.avatar-ring-b {
  inset: -34px;
  border: 1.5px solid rgba(255, 241, 232, .07);
  border-top-color: var(--accent);
  border-right-color: rgba(255, 106, 0, .35);
  animation: ring-rotate 6.5s linear infinite reverse;
  filter: drop-shadow(0 0 10px rgba(255, 106, 0, .45));
}
.avatar-spark {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  animation: part-float 5.5s ease-in-out infinite;
}
.avatar-spark.sp1 { top: 4%;  right: 10%; background: var(--amber);  box-shadow: 0 0 12px var(--amber); }
.avatar-spark.sp2 { bottom: 8%; left: 2%; background: var(--coral);  box-shadow: 0 0 12px var(--coral); animation-delay: 1.4s; }
.avatar-spark.sp3 { top: 38%; left: -9%;  background: var(--pink);   box-shadow: 0 0 12px var(--pink); animation-delay: 2.8s; width: 5px; height: 5px; }
.avatar-spark.sp4 { bottom: 24%; right: -7%; background: var(--violet); box-shadow: 0 0 12px var(--violet); animation-delay: 4.2s; width: 5px; height: 5px; }
.avatar-tag {
  position: absolute; left: 50%; bottom: -52px; transform: translateX(-50%);
  font-size: .6rem; font-weight: 700; letter-spacing: .34em; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 20px;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(8px);
}

/* ---------- MARQUEE ---------- */
.marquee-zone { padding-block: 40px; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-a { transform: rotate(-1.6deg); }
.marquee-b { transform: rotate(1.4deg); margin-top: 12px; }
.marquee-track { display: inline-flex; align-items: center; will-change: transform; }
.marquee-track[data-dir="left"] { animation: marq-l 42s linear infinite; }
.marquee-track[data-dir="right"] { animation: marq-r 46s linear infinite; }
@keyframes marq-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marq-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-h);
  padding-inline: 26px; display: inline-flex; align-items: center; gap: 26px;
  text-transform: uppercase;
}
.marquee-item::after {
  content: '✦'; color: var(--accent); -webkit-text-stroke: 0;
  font-size: .45em; opacity: .85; text-shadow: none;
}

/* Premium services marquee — row one alternates solid cream with a
   slow gradient shimmer; row two echoes as ghost outline underneath */
.marquee-item.mq-solid { color: var(--cream); -webkit-text-stroke: 0; opacity: 1; }
[data-theme="light"] .marquee-item.mq-solid { color: var(--text); }
.marquee-item.mq-grad {
  -webkit-text-stroke: 0; opacity: 1;
  background: linear-gradient(110deg, #ff3d00, #ff6a00 35%, #ffb347 55%, #ff6a00 75%, #ff3d00);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mq-shine 7s linear infinite;
}
@keyframes mq-shine { to { background-position: 220% 50%; } }
.marquee-b .marquee-item {
  color: transparent; background: none; animation: none;
  -webkit-text-stroke: 1px var(--line-h); opacity: .75;
}
.marquee-b .marquee-item::after { color: var(--accent-2); -webkit-text-stroke: 0; }

/* Tech marquee (skills) */
.tech-marquees { margin-top: clamp(48px, 6vw, 90px); }
.tech-item {
  font-size: clamp(1rem, 2vw, 1.5rem); color: var(--muted); -webkit-text-stroke: 0;
  letter-spacing: .1em; opacity: .85; gap: 16px;
}
.tech-item::after { content: '•'; color: var(--accent-3); margin-left: 10px; }

/* 3D icon tile riding each marquee entry */
.tech-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .38),
    0 4px 14px rgba(255, 77, 28, .12),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -5px 10px rgba(0, 0, 0, .25);
  transform: perspective(320px) rotateX(12deg);
  animation: tech-bob 4.5s ease-in-out infinite;
  animation-delay: var(--td, 0s);
}
[data-theme="light"] .tech-icon {
  background: linear-gradient(145deg, #ffffff, #f1e9e1);
  box-shadow:
    0 10px 22px rgba(60, 30, 10, .14),
    0 4px 14px rgba(255, 77, 28, .10),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -5px 10px rgba(60, 30, 10, .06);
}
@keyframes tech-bob {
  0%, 100% { transform: perspective(320px) rotateX(12deg) translateY(0); }
  50% { transform: perspective(320px) rotateX(12deg) translateY(-6px); }
}
.tech-icon img { width: 26px; height: 26px; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.tech-icon i.fa-brands { font-size: 24px; color: var(--accent-3); text-shadow: 0 3px 6px rgba(0,0,0,.35); }
.tech-icon i.fa-meta { color: #0866ff; }
.tech-icon i.fa-whatsapp { color: #25d366; }
.tech-icon i.fa-aws { color: #ff9900; }
.tech-icon i.fa-google { color: #4285f4; }
.tech-icon svg { width: 24px; height: 24px; color: var(--accent-3); }

/* ---------- STATS ---------- */
.stats-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(28px, 3.5vw, 48px); transition: background .35s, box-shadow .35s; }
.stat:hover { background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--edge); }
.stat-num {
  font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; line-height: 1;
  display: flex; align-items: baseline; color: var(--cream);
}
[data-theme="light"] .stat-num { color: var(--text); }
.stat-suffix { color: var(--accent); font-size: .6em; margin-left: 2px; }
.stat-label { margin-top: 14px; font-weight: 700; font-size: .98rem; }
.stat-note { margin-top: 6px; color: var(--muted); font-size: .85rem; line-height: 1.55; }

/* ---------- MANIFESTO ---------- */
.manifesto { position: relative; overflow: hidden; }
.manifesto::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 640px; height: 640px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.09), transparent 65%);
  filter: blur(24px);
}
.manifesto-inner {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  padding-block: 60px; overflow: hidden; position: relative;
}
.manifesto-word {
  font-size: clamp(3.2rem, 13vw, 11rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1.5px var(--line-h);
  transition: color .3s, filter .3s;
}
.manifesto-word.lit {
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 0 30px rgba(255, 77, 28, 0.35));
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid; gap: clamp(40px, 6vw, 90px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 6fr; } }
.about-media { position: relative; }
.portrait-frame {
  position: relative; border-radius: 28px; overflow: visible;
  max-width: 460px; margin-inline: auto;
}
.portrait-frame img {
  width: 100%; border-radius: 28px; display: block;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 30px 90px rgba(255, 61, 0, 0.12);
  position: relative; z-index: 1;
}
.portrait-frame::before {
  content: ''; position: absolute; inset: -3px; border-radius: 30px; z-index: 0;
  background: conic-gradient(from var(--ga, 0deg), #ff3d00, #ff6a00, #ffb347, #ff3d00);
  animation: spin-grad 8s linear infinite;
  filter: blur(6px); opacity: .55;
}
@property --ga { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-grad { to { --ga: 360deg; } }
.portrait-ring {
  position: absolute; inset: -26px; border-radius: 50%;
  border: 1px dashed rgba(255, 106, 0, .4); z-index: 0;
  animation: ring-rotate 24s linear infinite;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }
.portrait-particles span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; z-index: 2;
  background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3);
  animation: part-float 6s ease-in-out infinite;
}
.portrait-particles span:nth-child(1) { top: 6%; left: 12%; animation-delay: 0s; }
.portrait-particles span:nth-child(2) { top: 18%; right: 6%;  background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation-delay: 1s; }
.portrait-particles span:nth-child(3) { bottom: 12%; left: 4%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation-delay: 2s; }
.portrait-particles span:nth-child(4) { bottom: 4%; right: 16%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation-delay: 3s; }
.portrait-particles span:nth-child(5) { top: 46%; left: -4%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation-delay: 4s; }
.portrait-particles span:nth-child(6) { top: 55%; right: -3%; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation-delay: 5s; }
@keyframes part-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.about-chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.float-chip {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .2em;
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--edge); color: var(--text);
  box-shadow: var(--glow);
  animation: badge-float 6.5s ease-in-out infinite; animation-delay: var(--cd);
}
.float-chip:nth-child(1) { top: 4%; right: -2%; }
.float-chip:nth-child(2) { top: 38%; left: -6%; }
.float-chip:nth-child(3) { bottom: 26%; right: -5%; }
.float-chip:nth-child(4) { bottom: -2%; left: 8%; }

.about-copy .lead { font-size: 1.25rem; line-height: 1.7; color: var(--cream); }
[data-theme="light"] .about-copy .lead { color: var(--text); }
.about-copy p { color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.about-copy .lead strong { color: var(--accent-3); }
.about-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px;
  border-block: 1px solid var(--line); padding-block: 26px; margin-block: 30px;
}
@media (max-width: 520px) { .about-facts { grid-template-columns: 1fr; } }
.about-facts div { display: flex; flex-direction: column; gap: 4px; }
.fact-k { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.fact-v { font-weight: 700; font-size: .95rem; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; margin-top: clamp(70px, 9vw, 130px); padding-left: 30px; }
@media (min-width: 900px) { .timeline { padding-left: 0; } }
.tl-line {
  position: absolute; top: 0; bottom: 0; left: 8px; width: 2px;
  background: var(--line);
}
@media (min-width: 900px) { .tl-line { left: 50%; transform: translateX(-50%); } }
#tl-progress { display: block; width: 100%; height: 0%; background: var(--grad-main); box-shadow: 0 0 10px rgba(255,106,0,.6); }
.tl-item { position: relative; padding: 0 0 54px 34px; max-width: 560px; }
@media (min-width: 900px) {
  .tl-item { width: 50%; padding: 0 54px 70px 0; text-align: right; margin-left: 0; }
  .tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 70px 54px; text-align: left; }
}
.tl-dot {
  position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.16), 0 0 14px rgba(255, 106, 0, 0.5);
}
@media (min-width: 900px) {
  .tl-item .tl-dot { left: auto; right: -7px; }
  .tl-item:nth-child(even) .tl-dot { left: -7px; right: auto; }
}
.tl-tag {
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .24em; color: var(--accent);
  margin-bottom: 10px;
}
.tl-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.tl-text { color: var(--muted); line-height: 1.7; font-size: .95rem; }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* Shared cursor-spotlight for tilt cards */
.service-card, .why-card, .engage-card, .cert-card {
  --mx: 50%; --my: 50%;
}
.service-card::before, .why-card::before, .engage-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 106, 0, .13), transparent 45%);
  pointer-events: none;
}
.service-card:hover::before, .why-card:hover::before, .engage-card:hover::before { opacity: 1; }

.service-card {
  position: relative; padding: 34px 28px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .35s, background .35s, box-shadow .35s;
}
.service-card:hover { border-color: var(--edge); background: var(--bg-card-h); box-shadow: var(--glow); }
.service-num {
  position: absolute; top: 20px; right: 24px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .78rem;
  color: var(--muted); opacity: .6; letter-spacing: .1em;
}
.service-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 61, 0, .16), rgba(255, 138, 61, .14));
  border: 1px solid var(--line); color: var(--accent);
  margin-bottom: 22px; transition: transform .35s ease, color .35s, box-shadow .35s;
}
.service-card:hover .service-icon { transform: translateY(-4px) rotate(-4deg); color: var(--amber); box-shadow: 0 6px 18px rgba(255,77,28,.3); }
.service-icon svg { width: 25px; height: 25px; }
.service-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.service-text { color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* ---------- PROJECTS ---------- */
.projects-section { overflow: hidden; }
#project-swiper { overflow: visible; padding-inline: clamp(20px, 4vw, 56px); }
.project-slide { width: min(1080px, 86vw); }
@media (max-width: 700px) { .project-slide { width: 88vw; } }
.project-card {
  display: grid; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  grid-template-columns: 1fr; transition: border-color .4s, box-shadow .4s;
}
.project-card:hover { border-color: var(--edge); box-shadow: var(--shadow), var(--glow); }
@media (min-width: 900px) { .project-card { grid-template-columns: 6fr 5fr; min-height: 480px; } }
.project-media {
  position: relative; min-height: 240px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .project-media { min-height: 100%; } }
.project-media::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 50%);
}
.project-monogram {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(5rem, 12vw, 10rem); color: rgba(255, 245, 238, .92);
  text-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: translateZ(0); transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.project-card:hover .project-monogram { transform: scale(1.08) rotate(-2deg); }
.project-live {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: 'Space Grotesk', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .2em;
  color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 7px;
}
.project-live .pulse-dot { width: 6px; height: 6px; }
.project-info { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.project-cat {
  font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.project-name { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; margin-bottom: 14px; letter-spacing: -.01em; color: var(--cream); }
[data-theme="light"] .project-name { color: var(--text); }
.project-desc { color: var(--muted); line-height: 1.7; font-size: .97rem; margin-bottom: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg-card);
  transition: border-color .3s, color .3s;
}
.chip:hover { border-color: var(--edge); color: var(--accent-3); }
.project-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.proj-footer { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.proj-progress {
  flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
#proj-progress-fill { display: block; height: 100%; width: 0%; background: var(--grad-main); box-shadow: 0 0 8px rgba(255,106,0,.7); transition: width .4s ease; }
.swiper-pagination { position: static !important; width: auto !important; display: flex; gap: 8px; }
.swiper-pagination-bullet { background: var(--muted); opacity: .4; width: 8px; height: 8px; transition: all .3s; }
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; width: 26px; border-radius: 6px; box-shadow: 0 0 8px rgba(255,106,0,.6); }

/* ---------- SKILLS ---------- */
.skills-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .skills-layout { grid-template-columns: 4fr 8fr; align-items: start; } }
.skill-tabs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) { .skill-tabs { flex-direction: column; position: sticky; top: 120px; } }
.skill-tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 22px; border-radius: 14px; border: 1px solid var(--line);
  color: var(--muted); font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  transition: all .3s; background: transparent; font-size: .95rem;
}
.skill-tab svg { width: 20px; height: 20px; }
.skill-tab:hover { color: var(--text); border-color: var(--edge); }
.skill-tab[aria-selected="true"] {
  color: var(--text); border-color: var(--accent);
  background: linear-gradient(120deg, rgba(255, 61, 0, .13), rgba(255, 138, 61, .07));
  box-shadow: var(--glow);
}
.skill-panel { display: none; }
.skill-panel.active { display: block; animation: panel-in .5s cubic-bezier(.22,1,.36,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bar-row { margin-bottom: 26px; }
.bar-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; font-size: .95rem; }
.bar-pct { color: var(--accent-3); font-family: 'Space Grotesk', sans-serif; }
.bar { height: 7px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: 0;
  background: var(--grad-main); border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
}

/* ---------- EXPERIENCE ---------- */
.xp-layout { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .xp-layout { grid-template-columns: 4fr 8fr; } }
@media (max-width: 1023px) { .xp-layout .side-visual { margin-inline: auto; position: static; } }
.xp-list { display: flex; flex-direction: column; gap: 18px; }
.xp-card {
  display: grid; gap: 20px; padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-card);
  grid-template-columns: 1fr; transition: border-color .35s, background .35s, transform .35s, box-shadow .35s;
}
@media (min-width: 900px) { .xp-card { grid-template-columns: auto 1fr auto; align-items: start; } }
.xp-card:hover { border-color: var(--edge); background: var(--bg-card-h); transform: translateY(-3px); box-shadow: var(--glow); }
.xp-icon {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 61, 0, .16), rgba(255, 179, 71, .12));
  border: 1px solid var(--line); color: var(--accent);
}
.xp-icon svg { width: 26px; height: 26px; transition: transform .35s, filter .35s; }
.xp-card:hover .xp-icon svg { transform: translateY(-3px) rotate(-6deg); filter: drop-shadow(0 0 10px rgba(255, 106, 0, .6)); }
.xp-role { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; }
.xp-org { color: var(--accent); font-weight: 700; margin-top: 2px; }
.xp-summary { color: var(--muted); margin-top: 12px; line-height: 1.7; max-width: 640px; }
.xp-points { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.xp-period {
  font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---------- ACHIEVEMENTS / CERTS ---------- */
.ach-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ach-grid { grid-template-columns: repeat(3, 1fr); } }
.ach-card {
  padding: 36px 30px; border-radius: 20px; text-align: left;
  border: 1px solid var(--line); background: var(--bg-card);
  position: relative; overflow: hidden; transition: border-color .35s, transform .35s, box-shadow .35s;
}
.ach-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--glow); }
.ach-card::after {
  content: ''; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px;
  background: radial-gradient(circle, rgba(255, 61, 0, .18), transparent 70%); border-radius: 50%;
}
.ach-icon { color: var(--amber); margin-bottom: 20px; }
.ach-icon svg { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(255,179,71,.5)); }
.ach-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.ach-text { color: var(--muted); font-size: .93rem; line-height: 1.65; }

.certs-head { margin-top: clamp(60px, 8vw, 100px); margin-bottom: 40px; }

/* "Certified By" — glossy brand-colored orb badges */
.certs-grid {
  display: grid; gap: 28px 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 980px; margin-inline: auto;
}
.cert-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 18px 10px; text-align: center; width: 100%;
  background: transparent; border: none; border-radius: 18px;
  cursor: pointer;
}
.cert-orb {
  position: relative; width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 40px; margin-bottom: 12px;
  --cert-glow: rgba(255, 106, 0, .45);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, .45),
    0 8px 30px var(--cert-glow),
    inset 0 -8px 16px rgba(0, 0, 0, .3),
    inset 0 4px 10px rgba(255, 255, 255, .28);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
/* glass highlight sitting on the sphere */
.cert-orb::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.5), rgba(255,255,255,.08) 42%, transparent 58%);
  pointer-events: none;
}
/* soft brand-colored halo behind the orb */
.cert-orb::before {
  content: ''; position: absolute; inset: 10%; border-radius: 50%;
  background: inherit; filter: blur(20px); opacity: .5; z-index: -1;
  transition: opacity .4s;
}
.cert-card:hover .cert-orb, .cert-card:focus-visible .cert-orb {
  transform: translateY(-7px) scale(1.08) rotate(-3deg);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, .5),
    0 14px 44px var(--cert-glow),
    inset 0 -8px 16px rgba(0, 0, 0, .28),
    inset 0 4px 10px rgba(255, 255, 255, .32);
}
.cert-card:hover .cert-orb::before { opacity: .8; }
.cert-orb i { position: relative; z-index: 1; text-shadow: 0 4px 12px rgba(0,0,0,.35); }
.cert-orb-lg { width: 110px; height: 110px; font-size: 48px; margin: 0 auto 24px; display: flex; }
.cert-issuer { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--text); }
.cert-course { color: var(--muted); font-size: .82rem; line-height: 1.5; max-width: 210px; }
.cert-date { color: var(--muted); font-size: .74rem; margin-top: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.lightbox-panel {
  position: relative; z-index: 2; max-width: 560px; width: calc(100% - 40px);
  background: var(--bg-soft); border: 1px solid var(--line-h); border-radius: 24px;
  padding: 44px; text-align: center;
}
.lightbox-visual {
  width: 90px; height: 90px; margin: 0 auto 24px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 61, 0, .2), rgba(255, 179, 71, .18));
  border: 1px solid var(--edge); color: var(--accent);
}
.lightbox-visual svg { width: 40px; height: 40px; }

/* ---------- TESTIMONIALS ---------- */
#testimonial-swiper { overflow: hidden; padding-block: 10px; }
.t-card {
  padding: clamp(30px, 4vw, 48px); border-radius: 22px; height: 100%;
  border: 1px solid var(--line); background: var(--bg-card);
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .35s;
}
.t-card:hover { border-color: var(--edge); }
.t-quote-icon { color: var(--accent); opacity: .85; }
.t-quote-icon svg { width: 30px; height: 30px; }
.t-stars { display: flex; gap: 4px; color: var(--amber); }
.t-stars svg { width: 16px; height: 16px; fill: currentColor; }
.t-text { color: var(--muted); line-height: 1.75; font-size: 1rem; flex: 1; }
.t-person { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff3d00, #ff8a3d); color: #fff;
  font-weight: 800; font-size: .9rem; font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 14px rgba(255, 77, 28, .35);
}
.t-name { font-weight: 800; font-size: .96rem; }
.t-role { color: var(--muted); font-size: .82rem; }
.t-badge {
  align-self: flex-start; font-size: .62rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber);
  border: 1px dashed rgba(255, 179, 71, .55);
  padding: 5px 10px; border-radius: 999px;
}
#t-pagination { margin-top: 28px; justify-content: center; }

/* ---------- INDUSTRIES ---------- */
.ind-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px)  { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ind-grid { grid-template-columns: repeat(5, 1fr); } }
.ind-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 26px 22px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--bg-card);
  transition: border-color .3s, transform .3s, background .3s, box-shadow .3s;
  font-weight: 700; font-size: .92rem;
}
.ind-card:hover { border-color: var(--edge); transform: translateY(-4px); background: var(--bg-card-h); box-shadow: var(--glow); }
.ind-card svg { width: 24px; height: 24px; color: var(--accent-3); transition: transform .3s; }
.ind-card:hover svg { transform: rotate(-8deg) scale(1.1); }

/* ---------- PROCESS ---------- */
.process-list { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line);
  align-items: center; position: relative;
}
.step:first-child { border-top: 1px solid var(--line); }
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-h);
  transition: all .4s; min-width: 2ch;
}
.step:hover .step-num {
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0;
}
.step-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: .06em; margin-bottom: 8px; }
.step-text { color: var(--muted); line-height: 1.7; max-width: 560px; }

/* ---------- SIDE VISUALS (3D avatar renders) ---------- */
.side-visual {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow), var(--glow);
  max-width: 460px;
}
.side-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.side-visual:hover img { transform: scale(1.05); }
.side-visual::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 11, .72));
}
.side-visual-tag {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  font-size: .64rem; font-weight: 700; letter-spacing: .26em; color: var(--cream);
  border: 1px solid rgba(255, 241, 232, .28); border-radius: 999px; padding: 8px 14px;
  background: rgba(11, 11, 11, .4); backdrop-filter: blur(8px);
}
.side-visual-sticky { position: sticky; top: 110px; }

/* ---------- WHY ---------- */
.why-layout { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .why-layout { grid-template-columns: 5fr 7fr; } }
@media (max-width: 1023px) { .why-layout .side-visual { margin-inline: auto; } }
.why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-card {
  padding: 34px 30px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg-card); transition: all .35s; position: relative; overflow: hidden;
}
.why-card:hover { border-color: var(--edge); transform: translateY(-4px); box-shadow: var(--glow); }
.why-card > svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; transition: transform .35s; }
.why-card:hover > svg { transform: translateY(-3px) rotate(-6deg); }
.why-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; margin-bottom: 10px; }
.why-text { color: var(--muted); font-size: .93rem; line-height: 1.65; }

/* ---------- ENGAGEMENT ---------- */
.engage-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .engage-grid { grid-template-columns: repeat(3, 1fr); } }
.engage-card {
  padding: 44px 34px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg-card); position: relative; overflow: hidden;
  transition: all .4s;
}
.engage-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: var(--shadow), var(--glow-hot); }
.engage-card > svg { width: 30px; height: 30px; color: var(--accent-3); margin-bottom: 22px; }
.engage-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .12em; font-size: 1.05rem; margin-bottom: 12px; }
.engage-text { color: var(--muted); line-height: 1.7; font-size: .95rem; }
.engage-cta { margin-top: 44px; text-align: center; }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-card); display: flex; flex-direction: column;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.blog-card:hover { border-color: var(--edge); transform: translateY(-5px); box-shadow: var(--glow); }
.blog-cover {
  height: 190px; position: relative; display: flex; align-items: flex-end; padding: 18px;
  overflow: hidden;
}
.blog-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.16), transparent 55%);
  transition: transform .6s;
}
.blog-card:hover .blog-cover::after { transform: scale(1.3); }
.blog-cat {
  position: relative; z-index: 1; font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #fff; background: rgba(0,0,0,.35);
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
}
.blog-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; gap: 14px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.blog-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.18rem; line-height: 1.35; margin-bottom: 12px; }
.blog-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.65; flex: 1; }
.blog-arrow {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .85rem; color: var(--accent);
}
.blog-arrow svg { width: 16px; height: 16px; transition: transform .3s; }
.blog-card:hover .blog-arrow svg { transform: translateX(5px); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: var(--edge); box-shadow: var(--glow); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; padding: 22px 26px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem;
  color: var(--text);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); transition: transform .35s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22,1,.36,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; visibility: hidden; transition: visibility .45s; }
.faq-item.open .faq-a-inner { visibility: visible; }
.faq-a-inner p { padding: 0 26px 24px; color: var(--muted); line-height: 1.75; font-size: .95rem; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; align-items: start; } }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px; color: var(--text); font-size: .95rem; width: 100%;
  transition: border-color .3s, background .3s, box-shadow .3s; font-family: inherit;
}
.field select option { background: var(--bg-soft); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-card-h);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.15);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(255, 61, 0, 0.12); }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 700; font-size: .9rem; }
.form-status.ok { color: var(--amber); }
.form-status.err { color: var(--accent-2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-orb-wrap { position: relative; height: 320px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 60%, rgba(255, 77, 28, .12), transparent 70%); }
/* avatar backdrop under the particle orb */
.contact-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%; opacity: .5;
}
.contact-orb-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,11,.25), rgba(11,11,11,.65)),
              radial-gradient(circle at 50% 55%, rgba(255, 77, 28, .18), transparent 70%);
}
#contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.contact-nodes { z-index: 2; }
.contact-nodes { position: absolute; inset: 0; pointer-events: none; }
.contact-node {
  position: absolute; left: var(--nx); top: var(--ny);
  font-family: 'Space Grotesk', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--edge);
  padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  animation: badge-float 6s ease-in-out infinite; animation-delay: var(--nd);
}
.contact-list { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-card); }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: .95rem; }
.contact-list svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; transition: transform .3s, filter .3s; }
.contact-list li:hover svg { transform: scale(1.18) rotate(-6deg); filter: drop-shadow(0 0 8px rgba(255, 106, 0, .7)); }
.contact-list a:hover { color: var(--accent-3); }

/* ---------- FINAL CTA ---------- */
.cta-section {
  position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #170b05 55%, var(--bg) 100%);
}
[data-theme="light"] .cta-section { background: linear-gradient(180deg, var(--bg), #f6e8dc 55%, var(--bg)); }
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-content { position: relative; z-index: 2; }
.cta-title {
  font-size: clamp(2.6rem, 8vw, 7.4rem); font-weight: 700; line-height: 1;
  letter-spacing: -.025em; margin-bottom: 28px; color: var(--cream);
}
[data-theme="light"] .cta-title { color: var(--text); }
.cta-sub { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); max-width: 560px; margin: 0 auto 44px; line-height: 1.7; }

/* ---------- FOOTER ---------- */
.footer {
  position: relative; border-top: 1px solid var(--line);
  padding-block: clamp(60px, 8vw, 110px) 30px; overflow: hidden;
}
/* gradient hairline + warm glow crowning the footer */
.footer::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, .6) 30%, rgba(255, 179, 71, .6) 70%, transparent);
}
.footer::after {
  content: ''; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 360px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 77, 28, .09), transparent 70%);
  filter: blur(30px);
}
.footer > .wrap { position: relative; z-index: 1; }
.footer-id { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.footer-logo {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--edge);
  box-shadow: 0 6px 22px rgba(255, 77, 28, .35);
}
.footer-role { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; letter-spacing: .04em; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-block: 18px 22px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.footer-cta-card {
  position: relative; display: block; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  max-width: 340px; justify-self: start; aspect-ratio: 4 / 5;
  transition: border-color .35s, box-shadow .35s;
}
@media (min-width: 900px) { .footer-cta-card { justify-self: end; } }
.footer-cta-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  display: block; transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.footer-cta-card:hover { border-color: var(--edge); box-shadow: var(--shadow), var(--glow-hot); }
.footer-cta-card:hover img { transform: scale(1.06); }
.footer-cta-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 6px; padding: 22px;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 11, 11, .82));
}
.footer-cta-kicker { font-size: .62rem; font-weight: 700; letter-spacing: .3em; color: var(--amber); }
.footer-cta-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.25rem; font-weight: 700; color: var(--cream); letter-spacing: -.01em;
}
.footer-cta-line svg { width: 20px; height: 20px; color: var(--accent-3); transition: transform .3s; }
.footer-cta-card:hover .footer-cta-line svg { transform: translate(4px, -4px); }
.footer-giant {
  font-size: clamp(2.6rem, 8.4vw, 8rem); font-weight: 700; line-height: .98; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-h);
  margin-bottom: clamp(50px, 7vw, 90px);
  transition: -webkit-text-stroke-color .4s;
}
.footer-giant:hover { -webkit-text-stroke-color: var(--edge); }
.footer-grid { display: grid; gap: 44px; grid-template-columns: 1fr; margin-bottom: 60px; align-items: start; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 4fr 3fr; } }
.footer-name { font-weight: 700; letter-spacing: .12em; }
.footer-desc { color: var(--muted); font-size: .92rem; line-height: 1.7; margin-bottom: 8px; }
.footer-nav { display: flex; gap: clamp(30px, 5vw, 80px); }
.footer-nav ul { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--accent-3); }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: all .3s;
}
.social-btn:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff3d00, #ff8a3d); transform: translateY(-3px); box-shadow: var(--glow); }
.social-btn svg { width: 18px; height: 18px; }
.social-btn.is-placeholder { opacity: .45; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 26px;
  color: var(--muted); font-size: .85rem;
}
.footer-hint kbd {
  border: 1px solid var(--line-h); border-radius: 6px; padding: 2px 7px;
  font-size: .75rem; font-family: 'Space Grotesk', sans-serif; color: var(--accent-3);
}

/* ---------- MODALS ---------- */
.modal { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop, .cmdk-backdrop {
  position: absolute; inset: 0; background: rgba(6, 4, 3, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; z-index: 2; width: min(1000px, calc(100% - 32px));
  max-height: calc(100svh - 60px); overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--bg-soft); border: 1px solid var(--line-h); border-radius: 26px;
  transform: translateY(40px) scale(.97); opacity: 0;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .4s;
  overscroll-behavior: contain;
}
.modal.open .modal-panel { transform: none; opacity: 1; }
.lightbox-panel { transform: translateY(30px); opacity: 0; transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s; }
.modal.open .lightbox-panel { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 5; background: var(--bg); }
/* inside the scrolling case-study panel the close button stays pinned */
.modal-panel .modal-close {
  position: sticky; top: 18px; align-self: flex-end;
  margin: 18px 18px -64px; flex-shrink: 0;
}
.modal-body { padding: 0; }
.case-hero {
  padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.case-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.15), transparent 55%); }
.case-hero * { position: relative; z-index: 1; }
.case-cat { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,245,238,.9); margin-bottom: 14px; }
.case-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.case-desc { color: rgba(255,245,238,.88); max-width: 640px; margin-top: 16px; line-height: 1.7; }
.case-body { padding: clamp(30px, 5vw, 56px) clamp(28px, 5vw, 64px); display: grid; gap: 36px; }
@media (min-width: 900px) { .case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; } }
.case-block h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.case-block p, .case-block li { color: var(--muted); line-height: 1.75; font-size: .96rem; }
.case-block ul { display: flex; flex-direction: column; gap: 8px; }
.case-block ul li { display: flex; gap: 10px; align-items: flex-start; }
.case-block ul li svg { width: 16px; height: 16px; color: var(--accent-3); flex-shrink: 0; margin-top: 4px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

/* ---------- COMMAND PALETTE ---------- */
.cmdk { position: fixed; inset: 0; z-index: 280; display: flex; align-items: flex-start; justify-content: center; padding-top: 16vh; visibility: hidden; }
.cmdk.open { visibility: visible; }
.cmdk-backdrop { transition: opacity .3s; }
.cmdk.open .cmdk-backdrop { opacity: 1; }
.cmdk-panel {
  position: relative; z-index: 2; width: min(560px, calc(100% - 32px));
  background: var(--bg-soft); border: 1px solid var(--line-h); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow), var(--glow);
  transform: translateY(-14px) scale(.98); opacity: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.cmdk.open .cmdk-panel { transform: none; opacity: 1; }
.cmdk-input-row { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cmdk-input-row svg { width: 19px; height: 19px; color: var(--accent); }
.cmdk-input-row input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 1rem; }
.cmdk-input-row kbd { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: .7rem; color: var(--muted); }
#cmdk-list { max-height: 320px; overflow-y: auto; padding: 10px; }
.cmdk-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px;
  color: var(--muted); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s;
}
.cmdk-item svg { width: 18px; height: 18px; }
.cmdk-item:hover, .cmdk-item.selected { background: var(--bg-card-h); color: var(--text); }
.cmdk-item.selected { outline: 1px solid var(--edge); }

/* ---------- SCROLL ANIMATION DEFAULTS ----------
   Initial hidden states are set from JS (gsap.set) so content
   remains visible if JavaScript or GSAP fails to load. */

/* ---------- BLOG ARTICLE PAGES (blog.php / post.php) ---------- */
.post-hero {
  border-radius: 24px; margin-inline: clamp(12px, 2vw, 32px);
  padding: clamp(50px, 8vw, 100px) 0; position: relative; overflow: hidden;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.post-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255,255,255,.16), transparent 55%);
}
.post-hero .wrap { position: relative; z-index: 1; }
.post-title {
  font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.08;
  letter-spacing: -.02em; color: #fff;
}
.post-meta { color: rgba(255, 245, 238, .85); margin-top: 16px; font-weight: 600; font-size: .9rem; }
.post-body { font-size: 1.06rem; line-height: 1.85; color: var(--text); }
.post-body p { margin-bottom: 22px; color: var(--muted); }
.post-body h2, .post-body h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text);
  margin: 38px 0 14px; letter-spacing: -.01em;
}
.post-body h2 { font-size: 1.6rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; color: var(--muted); }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 20px;
  color: var(--text); font-style: italic; margin-bottom: 22px;
}
.post-body img { max-width: 100%; border-radius: 14px; margin-bottom: 22px; }
.post-cta {
  margin-top: clamp(44px, 7vw, 70px); padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.post-cta .eyebrow { margin: 0; width: 100%; }
.post-cta .section-sub { margin: 0 auto 0 0; }

/* ---------- THEME ICONS ---------- */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }
#theme-toggle svg { width: 19px; height: 19px; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none !important; }
  .grain { display: none; }
  .cursor-trail { display: none; }
}
