/*
 * KORSHOM — Premium experience layer
 * A deliberately isolated visual upgrade for every public page.
 */

:root {
  --ink: #071d32;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --line-soft: rgba(var(--dark-rgb), 0.09);
  --glow-primary: rgba(var(--primary-rgb), 0.18);
  --glow-gold: rgba(var(--gold-rgb), 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 28px 80px rgba(var(--dark-rgb), 0.13);
}

[data-theme="dark"] {
  --ink: #eefbff;
  --glass: rgba(16, 36, 59, 0.72);
  --glass-strong: rgba(20, 46, 73, 0.9);
  --line-soft: rgba(255, 255, 255, 0.1);
  --glow-primary: rgba(var(--primary-rgb), 0.22);
  --shadow-premium: 0 32px 90px rgba(0, 0, 0, 0.38);
}

html { scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  position: relative;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(var(--primary-rgb), 0.07), transparent 27rem),
    radial-gradient(circle at 88% 28%, rgba(var(--gold-rgb), 0.06), transparent 30rem);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(32rem 32rem at var(--ambient-x, 50%) var(--ambient-y, 10%), rgba(var(--primary-rgb), 0.08), transparent 70%);
}

section { isolation: isolate; }

.wrap { max-width: 1280px; }

/* Navigation */
header.site-header {
  transition: transform 0.5s var(--ease-out), padding 0.4s var(--ease-out);
}

body.nav-hidden header.site-header { transform: translateY(-130%); }

.nav-bar,
header.site-header.hero-nav.inner-nav .nav-bar {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 45px rgba(var(--dark-rgb), 0.11), inset 0 1px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.nav-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.2), transparent 32%, transparent 70%, rgba(var(--primary-rgb),.06));
}

header.site-header.hero-nav:not(.inner-nav) .nav-bar {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
  padding-inline: 18px 10px;
  padding: 10px;
}

html:not([data-theme="dark"]) header.site-header.hero-nav:not(.inner-nav) .nav-bar {
  background: rgba(255,255,255,.76);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 16px 50px rgba(var(--dark-rgb),.08);
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 5px 4px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), .09);
  opacity: 0;
  transform: scale(.82);
  transition: opacity .3s, transform .4s var(--ease-out);
}

.nav-links a:hover::before,
.nav-links a.is-section-active::before { opacity: 1; transform: scale(1); }

.nav-links a.is-section-active { color: var(--maroon); }

.brand-img { transition: transform .45s var(--ease-out), filter .45s; }
.brand:hover .brand-img { transform: translateY(-2px) scale(1.025); filter: drop-shadow(0 8px 12px rgba(var(--primary-rgb),.16)); }

/* Type and reusable UI */
.section-label {
  position: relative;
  overflow: hidden;
  padding: 9px 18px;
  background: var(--glass);
  border-color: rgba(var(--primary-rgb), .15);
  box-shadow: 0 8px 30px rgba(var(--dark-rgb), .06), inset 0 1px rgba(255,255,255,.65);
  backdrop-filter: blur(14px);
}

.section-label::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75), transparent 70%);
  transform: translateX(-120%);
  animation: label-sheen 5.5s ease-in-out infinite;
}

@keyframes label-sheen { 0%, 70% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }

.section-label .dot { box-shadow: 0 0 0 5px rgba(var(--gold-rgb),.13), 0 0 20px rgba(var(--gold-rgb),.45); }

.section-title {
  max-width: 820px;
  color: var(--ink);
  letter-spacing: -.025em;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.22;
  text-wrap: balance;
}

.text-center .section-title { margin-inline: auto; }
.section-desc { font-size: clamp(1rem, 1.4vw, 1.12rem); text-wrap: pretty; }

.btn {
  min-height: 54px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(var(--dark-rgb), .1);
  transition: transform .45s var(--ease-out), box-shadow .45s, background .3s, color .3s;
}

.btn:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(var(--dark-rgb), .18); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.btn-maroon {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  border-color: rgba(255,255,255,.14);
}

.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

.k-ripple {
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,.52);
  transform: scale(0);
  animation: k-ripple .7s ease-out forwards;
}

@keyframes k-ripple { to { transform: scale(24); opacity: 0; } }

/* Fine-pointer cursor */
.k-cursor-dot,
.k-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10020;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px,-100px,0);
  transition: opacity .25s, width .3s var(--ease-out), height .3s var(--ease-out), background .3s, border-color .3s;
}

.k-cursor-dot { width: 7px; height: 7px; margin: -3.5px; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.k-cursor-ring { width: 36px; height: 36px; margin: -18px; border: 1px solid rgba(var(--primary-rgb),.65); background: rgba(var(--primary-rgb),.04); backdrop-filter: blur(2px); }
.has-fine-pointer .k-cursor-dot,
.has-fine-pointer .k-cursor-ring { opacity: 1; }
.cursor-over .k-cursor-ring { width: 58px; height: 58px; margin: -29px; background: rgba(var(--gold-rgb),.12); border-color: var(--gold); }

/* Inner-page hero */
.page-hero {
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(var(--primary-rgb),.7), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(var(--gold-rgb),.2), transparent 32%),
    linear-gradient(135deg, #001a33, var(--maroon-dark));
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  inset-inline-end: -120px;
  bottom: -260px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02);
}

.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); letter-spacing: -.03em; text-shadow: 0 14px 45px rgba(0,0,0,.25); }

/* Homepage: cinematic hero */
.hero--studio {
  min-height: max(760px, 100svh);
  background:
    radial-gradient(circle at 72% 32%, rgba(0,168,181,.18), transparent 27rem),
    radial-gradient(circle at 15% 80%, rgba(255,184,0,.1), transparent 24rem),
    linear-gradient(135deg, #001225 0%, #002b4c 48%, #003c59 100%);
}

.hero--studio::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0,18,37,.35));
}

.hero--studio .hero-title {
  font-size: clamp(3rem, 4.2vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.hero--studio .hero-title .line:last-child{
  font-size: clamp(2rem, 3.2vw, 3.15rem);
}
.hero--studio .line--accent { padding-block: .08em; }
.hero--studio .gradient-text { background-image: linear-gradient(90deg, #ffe06a, #ffb800 45%, #8df5ff); background-size: 200% auto; animation: gradient-flow 6s linear infinite; }
@keyframes gradient-flow { to { background-position: 200% center; } }

.hero--studio .hero-desc { max-width: 650px; font-size: clamp(1.02rem, 1.45vw, 1.18rem); }

.hero--studio .hero-status {
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.15), 0 12px 34px rgba(0,0,0,.16);
}

.hero--studio .hero-stat {
  min-width: 110px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(12px);
}

.hero-showcase-inner { perspective: 1200px; }
.hero-browser {
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 40px 100px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.06), inset 0 1px rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
}

.hero-browser-body { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,248,250,.9)); }
.hero-preview-cards span { box-shadow: 0 12px 26px rgba(0,51,102,.12); }

.hero-terminal {
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.hero-chip {
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 18px 45px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(16px) saturate(140%);
}

.hero-showcase-ring { animation: slow-spin 30s linear infinite; }
@keyframes slow-spin { to { transform: rotate(360deg); } }

/* Section rhythm and surfaces */
.about-section,
.services-section,
.features-section,
.testimonials-section { overflow: hidden; }

.about-section::before,
.services-section::before,
.features-section::before,
.testimonials-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(1px);
  border: 1px solid rgba(var(--primary-rgb),.08);
  box-shadow: 0 0 0 70px rgba(var(--primary-rgb),.018), 0 0 0 140px rgba(var(--gold-rgb),.012);
}

.about-section::before { inset-inline-start: -340px; top: 18%; }
.services-section::before { inset-inline-end: -340px; top: 10%; }
.features-section::before { inset-inline-start: -350px; bottom: 0; }
.testimonials-section::before { inset-inline-end: -360px; top: 20%; }

.about-img-main,
.about-img-sub {
  border-radius: 34px;
  box-shadow: var(--shadow-premium);
}

.about-img-main::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, transparent 55%, rgba(var(--primary-rgb),.25));
  pointer-events: none;
}

.stat-box,
.feature-item,
.project-card,
.testimonial-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 55px rgba(var(--dark-rgb),.08), inset 0 1px rgba(255,255,255,.6);
  backdrop-filter: blur(18px) saturate(130%);
}

.stat-box:hover,
.feature-item:hover,
.project-card:hover,
.testimonial-card:hover { box-shadow: var(--shadow-premium); border-color: rgba(var(--primary-rgb),.26); }

.services-showcase { gap: 22px; }
.svc-card {
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(var(--primary-rgb),.05));
  border: 1px solid rgba(var(--primary-rgb),.12);
  box-shadow: 0 22px 65px rgba(var(--dark-rgb),.09);
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(var(--gold-rgb),.22), transparent 55%);
  transition: opacity .5s;
  pointer-events: none;
}

.svc-card:hover::before { opacity: 1; }
.svc-card:nth-child(2) { transform: translateY(34px); }
.svc-card:nth-child(3) { transform: translateY(68px); }
.svc-card:hover { transform: translateY(-8px); }
.svc-card:nth-child(2):hover { transform: translateY(26px); }
.svc-card:nth-child(3):hover { transform: translateY(60px); }
.svc-visual { border-radius: 28px; }
.svc-pill { box-shadow: 0 12px 30px rgba(var(--dark-rgb),.13); }

.features-grid { gap: 18px; }
.feature-item { min-height: 180px; border-radius: 28px; padding: 30px; }
.feature-item:nth-child(1), .feature-item:nth-child(4) { background: linear-gradient(145deg, var(--maroon-dark), #064e67); color: white; }
.feature-item:nth-child(1) p, .feature-item:nth-child(4) p { color: rgba(255,255,255,.88); }
.feature-item:nth-child(1) .feature-num, .feature-item:nth-child(4) .feature-num { color: var(--gold-light); }
.feature-num { font-size: 2.6rem; opacity: .9; }

.stats-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--primary-rgb),.45), transparent 28rem),
    radial-gradient(circle at 85% 90%, rgba(var(--gold-rgb),.16), transparent 28rem),
    linear-gradient(135deg, #001426, #00365a);
  overflow: hidden;
}

.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 70px, rgba(255,255,255,.025) 71px 72px);
  pointer-events: none;
}

.stat-item { padding: 28px 18px; border-inline-end: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-inline-end: 0; }
.stat-item .counter { text-shadow: 0 10px 32px rgba(var(--gold-rgb),.2); }

.project-card { border-radius: 30px; overflow: hidden; }
.project-thumb { border-radius: 24px; margin: 10px; overflow: hidden; }
.project-info { padding: 22px 26px 28px; }
.project-card:hover .project-thumb img { transform: scale(1.075) rotate(.5deg); }

.testimonial-card { border-radius: 30px; }
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--px, 50%) var(--py, 20%), rgba(var(--primary-rgb),.1), transparent 58%);
}

.testimonials-arrow { box-shadow: 0 12px 30px rgba(var(--dark-rgb),.12); backdrop-filter: blur(12px); }

.cta-section {
  position: relative;
  background:
    radial-gradient(circle at 15% 50%, rgba(var(--primary-rgb),.48), transparent 30rem),
    radial-gradient(circle at 82% 30%, rgba(var(--gold-rgb),.16), transparent 24rem),
    linear-gradient(135deg, #001426, #00365a);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  pointer-events: none;
}

.sectors-sticky-col { border-radius: 36px; border-width: 10px; box-shadow: var(--shadow-premium); }
.sectors-img-label { background: var(--glass-strong); border: 1px solid rgba(255,255,255,.55); }
.sector-item.active .sector-title { font-size: 1.45rem; }

/* Footer */
footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(var(--primary-rgb),.32), transparent 25rem),
    linear-gradient(145deg, #00111f, #002c4b);
}

footer::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  inset-inline-end: -170px;
  top: -210px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.02), 0 0 0 140px rgba(255,255,255,.012);
}

.footer-grid, .footer-bottom { position: relative; z-index: 1; }
.footer-col a { position: relative; }
.footer-col a::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -3px; width: 0; height: 1px; background: var(--gold); transition: width .35s var(--ease-out); }
.footer-col a:hover::after { width: 100%; }
.footer-social a { border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.footer-social a:hover { transform: translateY(-4px) rotate(-4deg); }

.whatsapp-float { border: 1px solid rgba(255,255,255,.35); box-shadow: 0 12px 35px rgba(37,211,102,.34), 0 0 0 0 rgba(37,211,102,.3); animation: whatsapp-pulse 3s infinite; }
@keyframes whatsapp-pulse { 50% { box-shadow: 0 12px 35px rgba(37,211,102,.34), 0 0 0 12px rgba(37,211,102,0); } }
.back-top { border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); }

/* Pointer lighting hook */
.pointer-lit { position: relative; }
.pointer-lit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--px,50%) var(--py,50%), rgba(var(--primary-rgb),.11), transparent 60%);
  transition: opacity .45s;
}
.pointer-lit:hover::after { opacity: 1; }
.pointer-lit > * { position: relative; z-index: 1; }

@media (max-width: 1024px) {
  .hero--studio { min-height: auto; }
  .hero--studio .hero-title { font-size: clamp(3.1rem, 9vw, 5.2rem); }
  .svc-card:nth-child(n) { transform: none; }
  .svc-card:nth-child(n):hover { transform: translateY(-6px); }
  .page-hero { min-height: 380px; }
}

@media (max-width: 768px) {
  :root { --radius: 18px; --radius-lg: 24px; }
  .wrap { padding-inline: 18px; }
  section { padding-block: 82px; }
  header.site-header { padding-top: 12px; }
  .nav-bar { border-radius: 22px; }
  .brand-img, .brand--has-img .brand-img { height: 42px; max-width: 165px; }
  .hero-layout { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 100px; }
  .hero--studio .hero-title { font-size: clamp(2.65rem, 13vw, 4.15rem); line-height: 1.04; }
  .hero--studio .hero-bracket { font-size: .55em; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero--studio .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .hero--studio .hero-stat { min-width: 0; padding: 12px; }
  .hero--studio .hero-stat .num { font-size: 1.7rem; }
  .section-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .services-showcase { gap: 18px; }
  .svc-card { min-height: 330px; border-radius: 26px; }
  .feature-item { min-height: 150px; }
  .stats-grid { gap: 0; }
  .stat-item { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .testimonials-carousel__controls { gap: 8px; }
  .testimonials-arrow { width: 40px; height: 40px; flex: 0 0 40px; }
  .page-hero { min-height: 340px; padding-inline: 12px; }
  .page-hero h1 { font-size: clamp(2.4rem, 13vw, 3.7rem); }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; inset-inline-start: 18px; }
  .back-top { bottom: 22px; inset-inline-end: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .k-cursor-dot, .k-cursor-ring, .cursor-glow, #particles { display: none !important; }
}

@media (hover: none) {
  .k-cursor-dot, .k-cursor-ring { display: none; }
  .svc-card:hover, .project-card:hover, .feature-item:hover { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   1.2.3 — Signature services + cinematic portfolio
   ═══════════════════════════════════════════════════════════════ */

/* Light palette corrections */
html:not([data-theme="dark"]) .hero--studio::after {
  background: linear-gradient(to bottom, transparent, rgba(230, 243, 245, .74));
}

html:not([data-theme="dark"]) .hero--studio .btn-outline {
  color: var(--maroon-dark);
  background: rgba(255,255,255,.68);
  border-color: rgba(var(--dark-rgb),.16);
  box-shadow: 0 12px 30px rgba(var(--dark-rgb),.08);
}

html:not([data-theme="dark"]) .hero--studio .btn-outline:hover {
  color: var(--maroon-dark);
  background: rgba(255,255,255,.96);
  border-color: rgba(var(--primary-rgb),.35);
}

html:not([data-theme="dark"]) .hero--studio .hero-scroll,
html:not([data-theme="dark"]) .hero--studio .hero-scroll-text {
  color: var(--maroon-dark);
}

html:not([data-theme="dark"]) .hero--studio .hero-scroll-line {
  background: linear-gradient(to bottom, var(--maroon), transparent);
}

html:not([data-theme="dark"]) .hero--studio .hero-badge {
  color: var(--text);
  background: rgba(255,255,255,.88);
  border-color: rgba(var(--primary-rgb),.16);
  box-shadow: 0 20px 50px rgba(var(--dark-rgb),.12);
}

html:not([data-theme="dark"]) .hero--studio .hero-badge strong { color: var(--maroon-dark); }

html:not([data-theme="dark"]) .hero--studio .hero-chip {
  color: var(--text);
  background: rgba(255,255,255,.9);
  border-color: rgba(var(--primary-rgb),.14);
  box-shadow: 0 18px 42px rgba(var(--dark-rgb),.12), inset 0 1px rgba(255,255,255,.9);
}

html:not([data-theme="dark"]) .hero--studio .hero-terminal {
  color: var(--text);
  background: rgba(255,255,255,.94);
  border-color: rgba(var(--dark-rgb),.12);
  box-shadow: 0 24px 58px rgba(var(--dark-rgb),.15);
}

html:not([data-theme="dark"]) .hero--studio .hero-browser {
  border-color: rgba(var(--dark-rgb),.12);
  box-shadow: 0 36px 80px rgba(var(--dark-rgb),.17), inset 0 1px rgba(255,255,255,.9);
}

html:not([data-theme="dark"]) .mobile-menu .theme-toggle,
html:not([data-theme="dark"]) .mobile-menu .lang-switch {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: white;
}

html:not([data-theme="dark"]) .section-desc { color: #4d6d7e; }
html:not([data-theme="dark"]) .project-info p { color: rgba(229,243,247,.7); }

/* Services — asymmetric editorial grid */
.services-section {
  background:
    radial-gradient(circle at 4% 10%, rgba(var(--primary-rgb),.11), transparent 28rem),
    radial-gradient(circle at 92% 85%, rgba(var(--gold-rgb),.1), transparent 30rem),
    linear-gradient(180deg, var(--cream) 0%, #edf7f8 100%);
}

[data-theme="dark"] .services-section {
  background:
    radial-gradient(circle at 5% 12%, rgba(var(--primary-rgb),.15), transparent 28rem),
    linear-gradient(180deg, var(--cream), #071a2c);
}

.services-section .section-desc { margin-inline: auto; }

.services-showcase {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
  text-align: start;
}

.svc-card,
.svc-card:nth-child(n) {
  min-height: 470px;
  grid-column: span 5;
  display: block;
  overflow: hidden;
  border-radius: 36px;
  isolation: isolate;
  transform: none;
  color: #06243a;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(145deg, #fff8e8, #f6e7bd);
  border: 1px solid rgba(0,51,102,.08);
  box-shadow: 0 24px 70px rgba(0,51,102,.1);
}

.svc-card:nth-child(4n+1),
.svc-card:nth-child(4n) { grid-column: span 7; }

.svc-card:nth-child(4n+1) {
  color: white;
  background:
    radial-gradient(circle at 82% 20%, rgba(0,168,181,.38), transparent 30%),
    radial-gradient(circle at 15% 90%, rgba(255,184,0,.12), transparent 30%),
    linear-gradient(145deg, #031a2d, #073b58);
  border-color: rgba(255,255,255,.1);
}

.svc-card:nth-child(4n+2) {
  background:
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.9), transparent 30%),
    linear-gradient(145deg, #fff9ec, #f4e2b1);
}

.svc-card:nth-child(4n+3) {
  background:
    radial-gradient(circle at 18% 15%, rgba(255,255,255,.92), transparent 32%),
    linear-gradient(145deg, #effcfd, #cceef1);
}

.svc-card:nth-child(4n) {
  color: white;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,184,0,.16), transparent 28%),
    linear-gradient(145deg, #003d55, #006c77);
  border-color: rgba(255,255,255,.13);
}

[data-theme="dark"] .svc-card:nth-child(n) {
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--primary-rgb),.2), transparent 32%),
    linear-gradient(145deg, #0c2238, #102f49);
  border-color: rgba(255,255,255,.1);
}

.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  pointer-events: none;
  background: repeating-linear-gradient(105deg, transparent 0 54px, currentColor 55px 56px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.14), transparent 48%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.14), transparent 48%);
}

.svc-card:hover,
.svc-card:nth-child(n):hover {
  transform: translateY(-10px);
  border-color: rgba(var(--primary-rgb),.28);
  box-shadow: 0 38px 90px rgba(0,51,102,.19);
}

.svc-card-top {
  position: absolute;
  top: 28px;
  inset-inline: 30px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.svc-index {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: .78rem;
  letter-spacing: .18em;
  opacity: .65;
}

.svc-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  color: currentColor;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(12px);
  transition: transform .45s var(--ease-out), color .35s, background .35s;
}

.svc-card:nth-child(4n+2) .svc-arrow,
.svc-card:nth-child(4n+3) .svc-arrow {
  background: rgba(255,255,255,.62);
  border-color: rgba(0,51,102,.1);
}

.svc-card:hover .svc-arrow { transform: rotate(45deg); background: var(--gold); color: #06243a; }

.svc-visual {
  position: absolute;
  inset-block: 30px 120px;
  inset-inline: auto 18px;
  width: 52%;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.svc-card:nth-child(even) .svc-visual { inset-inline: 18px auto; }

.svc-visual-inner,
.svc-visual-inner.g2 {
  width: clamp(150px, 18vw, 245px);
  height: auto;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 2;
  color: white;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  background: linear-gradient(145deg, var(--maroon), #006270);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 28px 70px rgba(0,51,102,.24), inset 0 1px rgba(255,255,255,.25);
  transition: transform .7s var(--ease-out), box-shadow .7s;
}

.svc-card:nth-child(4n+1) .svc-visual-inner,
.svc-card:nth-child(4n) .svc-visual-inner {
  color: #06243a;
  background: linear-gradient(145deg, #ffd45a, #ffad00);
  box-shadow: 0 28px 70px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.5);
}

.svc-visual-inner::before { display: none; }
.svc-card:hover .svc-visual-inner { transform: scale(1.06) rotate(-5deg); box-shadow: 0 38px 80px rgba(0,51,102,.3); }

.svc-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .14;
  pointer-events: none;
}

.svc-orbit--outer { width: 310px; height: 310px; animation: slow-spin 22s linear infinite; border-style: dashed; }
.svc-orbit--inner { width: 270px; height: 270px; box-shadow: 0 0 0 24px rgba(255,255,255,.035); }

.svc-copy {
  position: absolute;
  z-index: 4;
  inset-inline-start: 32px;
  bottom: 34px;
  width: min(54%, 390px);
}

.svc-card:nth-child(even) .svc-copy { inset-inline: auto 32px; }

.svc-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--maroon);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.svc-card:nth-child(4n+1) .svc-kicker,
.svc-card:nth-child(4n) .svc-kicker,
[data-theme="dark"] .svc-kicker { color: var(--gold-light); }

.svc-copy h3 {
  max-width: 360px;
  margin: 0 0 10px;
  color: currentColor;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.18;
}

.svc-copy p {
  color: currentColor;
  opacity: .7;
  font-size: .9rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* Portfolio — dark cinematic gallery in both themes */
.portfolio-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 8% 10%, rgba(0,168,181,.2), transparent 28rem),
    radial-gradient(circle at 90% 72%, rgba(255,184,0,.09), transparent 30rem),
    linear-gradient(145deg, #041421, #071e31 55%, #061725);
}

.portfolio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.portfolio-section .wrap { position: relative; z-index: 1; }
.portfolio-section .section-label { color: #8eeaf1; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.portfolio-section .section-title { color: white; text-shadow: 0 16px 50px rgba(0,0,0,.28); }
.portfolio-section .btn-outline-dark { color: white; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); }
.portfolio-section .btn-outline-dark:hover { color: #042034; background: var(--gold); border-color: var(--gold); }

.portfolio-showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 54px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.portfolio-showcase-kicker {
  display: block;
  margin-bottom: 16px;
  color: #72dce5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.portfolio-showcase-head h2 {
  max-width: 780px;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.portfolio-project-count {
  flex: 0 0 auto;
  width: 150px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 40px rgba(0,168,181,.08);
  backdrop-filter: blur(18px);
}

.portfolio-project-count strong { color: var(--gold-light); font-family: var(--font-display); font-size: 2.5rem; line-height: 1; }
.portfolio-project-count span { margin-top: 8px; color: rgba(255,255,255,.6); font-size: .72rem; }

.portfolio-filters {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 58px;
  padding: 8px;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}

.portfolio-section .filter-btn {
  min-height: 44px;
  color: rgba(255,255,255,.62);
  background: transparent;
  border-color: transparent;
}

.portfolio-section .filter-btn:hover { color: white; background: rgba(255,255,255,.07); border-color: transparent; }
.portfolio-section .filter-btn.active { color: #052139; background: var(--gold); border-color: var(--gold); box-shadow: 0 8px 24px rgba(255,184,0,.22); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

body:not(.home) .portfolio-grid { margin-top: 0; }

.project-card,
[data-theme="dark"] .project-card {
  --project-x: 0px;
  --project-y: 0px;
  grid-column: span 6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 36px;
  color: white;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 30px 80px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
}

body:not(.home) .project-card:nth-child(4n+1),
body:not(.home) .project-card:nth-child(4n) { grid-column: span 7; }
body:not(.home) .project-card:nth-child(4n+2),
body:not(.home) .project-card:nth-child(4n+3) { grid-column: span 5; }

.home .project-card:nth-child(1) { grid-column: span 7; }
.home .project-card:nth-child(2) { grid-column: span 5; }
.home .project-card:nth-child(3) {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
}

.project-card:hover {
  border-color: rgba(114,220,229,.34);
  box-shadow: 0 45px 110px rgba(0,0,0,.38), 0 0 0 1px rgba(114,220,229,.08), inset 0 1px rgba(255,255,255,.11);
}

.project-thumb {
  position: relative;
  display: block;
  min-height: 390px;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 27px;
  aspect-ratio: 16 / 11;
  background: #0d2a40;
}

body:not(.home) .project-card:nth-child(4n+1) .project-thumb,
body:not(.home) .project-card:nth-child(4n) .project-thumb { min-height: 460px; }
.home .project-card:nth-child(1) .project-thumb { min-height: 470px; }
.home .project-card:nth-child(2) .project-thumb { min-height: 470px; }
.home .project-card:nth-child(3) .project-thumb { min-height: 400px; margin-bottom: 10px; }

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 45%, rgba(1,13,24,.74));
  transition: background .55s;
}

.project-thumb img {
  width: calc(100% + 28px);
  height: calc(100% + 22px);
  max-width: none;
  margin: -11px -14px;
  object-fit: cover;
  transform: translate3d(var(--project-x), var(--project-y), 0) scale(1.03);
  filter: saturate(.88) contrast(1.03);
  transition: transform .65s var(--ease-out), filter .55s;
  will-change: transform;
}

.project-card:hover .project-thumb img {
  transform: translate3d(var(--project-x), var(--project-y), 0) scale(1.09);
  filter: saturate(1.08) contrast(1.04);
}

.project-index {
  position: absolute;
  z-index: 3;
  top: 22px;
  inset-inline-end: 24px;
  color: rgba(255,255,255,.82);
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: .75rem;
  letter-spacing: .14em;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.project-thumb .tag {
  z-index: 3;
  top: 20px;
  inset-inline-start: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: white;
  background: rgba(4,20,33,.52);
  border: 1px solid rgba(255,255,255,.19);
  box-shadow: 0 8px 25px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}

.project-thumb .tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.project-view {
  position: absolute;
  z-index: 3;
  inset-inline-end: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: .84rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s, transform .45s var(--ease-out);
}

.project-view b {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #052139;
  background: var(--gold);
  font-size: 1.1rem;
}

.project-card:hover .project-view { opacity: 1; transform: translateY(0); }

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 32px 34px;
}

.home .project-card:nth-child(3) .project-info { justify-content: center; padding: 46px; }

.project-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #72dce5;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.project-eyebrow i { width: 42px; height: 1px; background: rgba(114,220,229,.38); }

.project-info h3 {
  margin: 0 0 14px;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  text-align: left;
}

.project-info h3 a { color: inherit; }
.project-info h3 a:hover { color: var(--gold-light); }

.project-info p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: rgba(229,243,247,.66);
  font-size: .86rem;
}

.project-stack-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #72dce5; }

.project-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 5px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.project-link b { color: var(--gold); font-size: 1.05rem; transition: transform .35s var(--ease-out); }
.project-link:hover { color: var(--gold-light); border-color: var(--gold); }
.project-link:hover b { transform: translate(3px,-3px); }
[dir="rtl"] .project-link:hover b { transform: translate(-3px,-3px); }

@media (max-width: 1024px) {
  .services-showcase { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc-card:nth-child(n) { grid-column: auto; min-height: 450px; }
  .svc-visual { width: 58%; opacity: .88; }
  .svc-copy { width: 62%; }
  .portfolio-grid { gap: 20px; }
  .project-card:nth-child(n),
  body:not(.home) .project-card:nth-child(n) { grid-column: span 6; }
  .home .project-card:nth-child(3) { grid-column: span 12; }
  .project-thumb,
  body:not(.home) .project-card:nth-child(n) .project-thumb { min-height: 380px; }
}

@media (max-width: 768px) {
  .services-showcase { grid-template-columns: 1fr; margin-top: 44px; }
  .svc-card:nth-child(n) { min-height: 430px; border-radius: 28px; }
  .svc-card:nth-child(even) .svc-visual,
  .svc-visual { inset-inline: auto -20px; width: 72%; inset-block: 42px 125px; }
  .svc-card:nth-child(even) .svc-copy,
  .svc-copy { inset-inline: 24px auto; bottom: 26px; width: calc(100% - 48px); }
  .svc-card-top { top: 22px; inset-inline: 24px; }
  .svc-arrow { width: 42px; height: 42px; }
  .svc-visual-inner, .svc-visual-inner.g2 { width: 180px; font-size: 4.3rem; }
  .svc-orbit--outer { width: 240px; height: 240px; }
  .svc-orbit--inner { width: 205px; height: 205px; }
  .svc-copy p { max-width: 92%; font-size: .84rem; }

  .portfolio-showcase-head { align-items: start; flex-direction: column; gap: 28px; margin-bottom: 38px; padding-bottom: 32px; }
  .portfolio-project-count { width: 110px; }
  .portfolio-project-count strong { font-size: 2rem; }
  .portfolio-filters { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; border-radius: 18px; scrollbar-width: none; }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .portfolio-section .filter-btn { flex: 0 0 auto; padding-inline: 18px; }
  .portfolio-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .project-card:nth-child(n),
  body:not(.home) .project-card:nth-child(n),
  .home .project-card:nth-child(3) { grid-column: auto; display: flex; }
  .project-thumb,
  body:not(.home) .project-card:nth-child(n) .project-thumb,
  .home .project-card:nth-child(n) .project-thumb { min-height: 330px; aspect-ratio: 4 / 4.25; }
  .project-info, .home .project-card:nth-child(3) .project-info { padding: 26px 24px 30px; }
  .project-info h3 { font-size: 1.6rem; }
  .project-view { opacity: 1; transform: none; }
  .project-view > span { display: none; }
}

@media (hover: none) {
  .svc-card:nth-child(n):hover,
  .project-card:hover { transform: none !important; }
  .project-view { opacity: 1; transform: none; }
}

/* ══ 1.2.4 — calm hover motion + compact benefits ══ */

/* Moving a hovered card can make the pointer repeatedly leave and re-enter it.
   Keep the card anchored and move only internal decorative elements. */
.svc-card,
.svc-card:nth-child(n),
.project-card {
  transform: none;
  transition-property: border-color, box-shadow, background-color;
  transition-duration: .45s;
  transition-timing-function: var(--ease-out);
}

.svc-card:hover,
.svc-card:nth-child(n):hover,
.project-card:hover {
  transform: none;
}

.svc-card:hover {
  border-color: rgba(var(--primary-rgb),.34);
  box-shadow: 0 34px 84px rgba(0,51,102,.17), 0 0 0 1px rgba(var(--primary-rgb),.05);
}

.project-card:hover {
  border-color: rgba(114,220,229,.34);
  box-shadow: 0 40px 100px rgba(0,0,0,.34), 0 0 0 1px rgba(114,220,229,.08), inset 0 1px rgba(255,255,255,.11);
}

.features-section {
  background:
    radial-gradient(circle at 8% 15%, rgba(var(--primary-rgb),.075), transparent 24rem),
    linear-gradient(180deg, var(--cream), var(--cream-dark));
}

.features-section .section-title { margin-bottom: 0; }

.features-grid {
  max-width: 1120px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 40px auto 0;
}

.feature-item,
.feature-item:nth-child(1),
.feature-item:nth-child(4),
[data-theme="dark"] .feature-item {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  text-align: start;
  color: var(--text);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(var(--dark-rgb),.09);
  border-radius: 19px;
  box-shadow: 0 10px 30px rgba(var(--dark-rgb),.055), inset 0 1px rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  transform: none;
  transition: border-color .35s, box-shadow .35s, background .35s;
}

[data-theme="dark"] .feature-item {
  color: var(--text);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 12px 32px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.045);
}

.feature-item:hover,
.feature-item:nth-child(1):hover,
.feature-item:nth-child(4):hover {
  transform: none;
  background: rgba(255,255,255,.94);
  border-color: rgba(var(--primary-rgb),.3);
  box-shadow: 0 16px 38px rgba(var(--dark-rgb),.09), inset 3px 0 var(--maroon);
}

[dir="rtl"] .feature-item:hover { box-shadow: 0 16px 38px rgba(var(--dark-rgb),.09), inset -3px 0 var(--maroon); }

[data-theme="dark"] .feature-item:hover {
  background: rgba(255,255,255,.075);
  border-color: rgba(var(--primary-rgb),.35);
}

.feature-num,
.feature-item:nth-child(1) .feature-num,
.feature-item:nth-child(4) .feature-num {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--maroon-dark);
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 20px rgba(var(--gold-rgb),.2);
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.feature-item p,
.feature-item:nth-child(1) p,
.feature-item:nth-child(4) p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .feature-item,
  .feature-item:nth-child(1),
  .feature-item:nth-child(4) { padding: 16px; border-radius: 17px; }
  .feature-num,
  .feature-item:nth-child(1) .feature-num,
  .feature-item:nth-child(4) .feature-num { width: 39px; height: 39px; min-width: 39px; }
}

/* ══ 1.2.5 — hero chips stacking fix ══ */
.hero-showcase,
.hero-showcase-inner {
  overflow: visible;
}

.hero-showcase-inner {
  isolation: isolate;
}

.hero-browser {
  position: relative;
  z-index: 2;
}

.hero-terminal { z-index: 6; }

.hero-chip {
  z-index: 12;
}

.hero-chip--2 {
  z-index: 14;
  inset-inline-end: -52px;
}

.hero-chip--4 {
  z-index: 14;
  inset-inline-end: -16px;
  bottom: 4px;
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .hero-chip--2 { inset-inline-end: -24px; }
  .hero-chip--4 { inset-inline-end: 4px; }
}

.project-card.hidden,
body:not(.home) .project-card.hidden,
.home .project-card.hidden {
  display: none !important;
}


/* ══ 1.3.0 — journey polish ══ */
.skills-grid.skill-tags--alive .skill-tag {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
}

.skills-grid.skill-tags--alive .skill-tag:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 14px 30px rgba(var(--dark-rgb), 0.12);
}

