/* ==========================================================================
   1. FONTS
   ========================================================================== */

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Webpeyda";
    src: url("/assets/fonts/Webpeyda-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */

:root {
    /* ---- Colors: base ---- */
    --ink:              #171925;
    --ink-soft:         #313343;
    --muted:            #77798b;
    --muted-2:          #88899a;
    --muted-3:          #9292a2;

    /* ---- Colors: accents ---- */
    --purple:           #a18af7;
    --purple-deep:      #7a6bd1;
    --purple-soft:      #b9adfa;
    --blue:             #84b4ff;
    --pink:             #e84a7f;
    --gold:             #f0b429;

    /* ---- Colors: surfaces ---- */
    --bg:               #efeff5;
    --surface:          rgba(255, 255, 255, .48);
    --surface-2:        rgba(255, 255, 255, .42);
    --surface-3:        rgba(255, 255, 255, .55);
    --surface-solid:    #ffffff;
    --line:             rgba(255, 255, 255, .76);
    --line-strong:      rgba(255, 255, 255, .9);

    /* ---- Gradients ---- */
    --grad-accent:      linear-gradient(100deg, #a17cf1 4%, #6d9df3 88%);
    --grad-dark:        linear-gradient(135deg, #171925, #282b3c);
    --grad-glass:       linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.27));

    /* ---- Shadows ---- */
    --shadow-sm:        0 5px 18px rgba(50, 49, 80, .06);
    --shadow-md:        0 12px 32px rgba(60, 55, 110, .14);
    --shadow-lg:        0 18px 60px rgba(68, 65, 105, .075);
    --shadow-hover:     0 12px 26px rgba(77, 69, 137, .16);

    /* ---- Radii ---- */
    --radius-xs:        8px;
    --radius-sm:        12px;
    --radius-md:        18px;
    --radius-lg:        24px;
    --radius-xl:        28px;
    --radius-pill:      999px;

    /* ---- Layout ---- */
    --max:              1120px;
    --gutter:           24px;
    --section-pad:      29px 32px;
    --section-pad-sm:   23px 18px;

    /* ---- Motion ---- */
    --t-fast:           .2s ease;
    --t-med:            .28s ease;
    --t-slow:           .55s cubic-bezier(.2, .7, .2, 1);

    /* ---- Typography ---- */
    --font-text:        "Vazirmatn", Tahoma, system-ui, sans-serif;
    --font-head:        "Webpeyda", "Vazirmatn", Tahoma, system-ui, sans-serif;
    --fs-body:          14px;
    --lh-body:          1.7;

    /* ---- Blur ---- */
    --blur-glass:       blur(22px);
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse at 13% 13%, rgba(255,255,255,.95), transparent 35%),
        radial-gradient(ellipse at 83% 28%, rgba(201,191,255,.48), transparent 29%),
        radial-gradient(ellipse at 16% 76%, rgba(199,218,255,.54), transparent 31%),
        radial-gradient(ellipse at 83% 90%, rgba(255,255,255,.92), transparent 34%),
        linear-gradient(135deg, #f5f4f8, #e9eaf2 50%, #f5f3f9);
    background-size: 150% 150%;
    animation: ambient 18s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .19;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

a { color: #FFEB3B; text-decoration: none; }

body, p, button, input, textarea, select {
    font-family: var(--font-text);
}

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
    outline: 3px solid #a795ff;
    outline-offset: 4px;
}

h1, h2, h3, h4, h5, h6, button, .btn, .pill-link, a.brand, a.button-link {
    font-family: var(--font-head);
}

h1, h2, h3 { margin-top: 0; }

/* ==========================================================================
    bg transition animation
    =========================================================================  */

.bg_grainy_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0612;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg_grainy_gradient_layer {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            55% 75% at 15% 50%,
            rgba(176, 0, 224, 0.75) 0%,
            transparent 65%
        ),
        radial-gradient(
            65% 65% at 85% 20%,
            rgba(110, 30, 230, 0.7) 0%,
            transparent 65%
        ),
        radial-gradient(
            55% 55% at 75% 90%,
            rgba(230, 30, 180, 0.6) 0%,
            transparent 65%
        ),
        radial-gradient(
            50% 50% at 50% 55%,
            rgba(150, 70, 255, 0.5) 0%,
            transparent 70%
        );
    animation: bg_grainy_gradient_drift 24s ease-in-out infinite alternate;
    filter: blur(20px);
    transform: scale(1.2);
}

@keyframes bg_grainy_gradient_drift {
    0%   { transform: scale(1.2) translate(0%, 0%); }
    50%  { transform: scale(1.25) translate(-2%, 2%); }
    100% { transform: scale(1.2) translate(2%, -2%); }
}

.bg_grainy_grain_layer_primary {
    position: absolute;
    top: -100px;
    left: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 280px 280px;
    opacity: 0.55;
    mix-blend-mode: overlay;
    animation: bg_grainy_grain_move_primary 6s steps(8) infinite;
    will-change: background-position;
}

@keyframes bg_grainy_grain_move_primary {
    0%   { background-position: 0 0; }
    20%  { background-position: -80px 40px; }
    40%  { background-position: 60px -70px; }
    60%  { background-position: -50px -30px; }
    80%  { background-position: 70px 60px; }
    100% { background-position: 0 0; }
}

.bg_grainy_grain_layer_secondary {
    position: absolute;
    top: -100px;
    left: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch' seed='12'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.35;
    mix-blend-mode: soft-light;
    animation: bg_grainy_grain_move_secondary 9s steps(10) infinite;
    will-change: background-position;
}

@keyframes bg_grainy_grain_move_secondary {
    0%   { background-position: 0 0; }
    15%  { background-position: 50px -40px; }
    30%  { background-position: -70px 30px; }
    45%  { background-position: 40px 70px; }
    60%  { background-position: -30px -50px; }
    75%  { background-position: 60px -20px; }
    100% { background-position: 0 0; }
}

.bg_grainy_vignette_layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 45%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .bg_grainy_gradient_layer,
    .bg_grainy_grain_layer_primary,
    .bg_grainy_grain_layer_secondary {
        animation: none;
    }
}

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

.glass {
    background: var(--grad-glass);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.86);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
}

/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */

.nav-wrap {
    position: sticky;
    top: 12px;
    z-index: 20;
    padding-top: 12px;
}

.nav {
    height: 64px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: box-shadow var(--t-med), background var(--t-med);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 185px;
}
.brand-mark {
    width: 35px;
    height: 35px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.85);
    box-shadow: 0 4px 14px rgba(108,105,138,.09);
    font-weight: 800;
    font-size: 20px;
}
.brand-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 10px;
}
.brand-copy strong {
    display: block;
    font-size: 12px;
    letter-spacing: -.3px;
}
.brand-copy span {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
}
.nav-links a {
    font-size: 12px;
    color: #fff;
    position: relative;
    padding: 8px 0;
    transition: color .25s;
    font-weight: 500;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 1px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    transition: width .25s;
}
.nav-links a:hover { color: #FFEB3B; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-active { color: #FFEB3B; }
.nav-links a.is-active::after { width: 100%; }

.pill-link,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.pill-link {
    padding: 11px 17px;
    background: rgba(255,255,255,.76);
    font-size: 11px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: #323;
}
.pill-link:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.arrow {
    font-size: 15px;
    line-height: 1;
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255,255,255,.6);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    font-size: 21px;
    color: var(--ink);
    cursor: pointer;
}

/* ---- Header search ---- */

.header-search {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.42);
    position: relative;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
.header-search:focus-within {
    background: rgba(255,255,255,.9);
    border-color: var(--purple-soft);
    box-shadow: 0 0 0 3px rgba(167,145,245,.14);
}
.header-search svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    color: #858497;
}
.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
    color: var(--ink);
}
.header-search input::placeholder { color: #89899a; }

/* ---- Suggest dropdown ---- */

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    background: var(--surface-solid);
    border: 1px solid #e7e6f0;
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(60,55,110,.14);
    padding: 8px;
    z-index: 50;
    max-height: 380px;
    overflow-y: auto;
    text-align: start;
}
.search-suggest__group + .search-suggest__group { margin-top: 6px; }
.search-suggest__label {
    font-size: 10.5px;
    color: var(--muted);
    padding: 6px 8px 2px;
    font-weight: 600;
    letter-spacing: .3px;
}
.search-suggest__item {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    font-size: 12.5px;
    color: var(--ink);
    transition: background .15s;
}
.search-suggest__item:hover { background: #f5f3ff; }
.search-suggest__all {
    display: block;
    margin-top: 6px;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #f0eff6;
    font-size: 11.5px;
    color: var(--purple-deep);
    font-weight: 600;
}
.search-suggest__all:hover {
    background: #f5f3ff;
    border-radius: var(--radius-xs);
}
.search-suggest__empty {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
/* ============================================================
   HERO SECTION
   ============================================================ */

.hero{
  position:relative;
  margin-top:16px;
  min-height:470px;
  border-radius:30px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr .92fr;
  align-items:center;
  padding:58px 40px 45px;
  isolation:isolate;
}

.hero:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:
    radial-gradient(ellipse at 76% 45%,rgba(198,193,255,.42),transparent 38%),
    linear-gradient(115deg,rgba(255,255,255,.43),rgba(228,229,242,.3));
}

/* ---------- ستون متن ---------- */
.hero-copy{
  position:relative;
  z-index:3;
  max-width:490px;
  animation:rise .8s both;
}

.hero-copy .eyebrow{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  font-weight:700;
  color:#9984ee;
  margin:0 0 12px;
}

.hero-copy .title{
  letter-spacing:-2.8px;
  margin:0 0 13px;
}

.hero-copy .subtitle{
  letter-spacing:-.8px;
  margin:0 0 17px;
  /*background:linear-gradient(100deg,#a17cf1 4%,#6d9df3 88%);*/
  -webkit-background-clip:text;
  background-clip:text;
  color:#fff;
}

.hero-copy .lead{
  max-width:365px;
  line-height:1.8;
  margin-bottom:23px;
}

/* ---------- دکمه‌ها ---------- */
.hero-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.hero-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  padding:13px 19px;
  font-size:11px;
  font-weight:600;
  transition:transform .28s,box-shadow .28s,background .28s;
}

.hero-actions .btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(77,69,137,.16);
}

.hero-actions .primary-btn{
  background:linear-gradient(135deg,#171925,#282b3c);
  color:#fff;
  box-shadow:0 9px 22px #20223926;
}

.hero-actions .secondary-btn{
  background:rgba(255,255,255,.78);
  color:#313343;
  border:1px solid #ffffffb5;
}

.hero-actions .btn .text{
  line-height:1;
}

.hero-actions .btn .icon{
  width:16px;
  height:16px;
  object-fit:contain;
  filter: brightness(0) invert(1);
}

/* ---------- Trusted ---------- */
.hero .trusted{
  margin-top:35px;
}

.hero .trusted .label{
  font-size:9px;
  color:#fff;
  margin-bottom:13px;
}

.hero .trusted .logos{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  color:#858696;
  font-weight:700;
  font-size:11px;
  letter-spacing:-.3px;
}

.hero .trusted .logo{
  opacity:.8;
  transition:opacity .25s;
}

.hero .trusted .logo:hover{
  opacity:1;
}

.hero .trusted .logo .icon{
  width:auto;
  height:18px;
  object-fit:contain;
}

.hero .trusted .logo .name{
  font-weight:700;
}

/* ---------- ستون تصویر ---------- */
.hero-visual{
  height:390px;
  position:relative;
  align-self:end;
  animation:rise .9s .12s both;
}

.portrait-frame{
  position:absolute;
  inset:14px 16px 0 8px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:48% 48% 24px 24px;
  overflow:hidden;
  background:linear-gradient(145deg,#e2e4f2,#c8cce0);
  box-shadow:0 28px 65px rgba(101,96,158,.17);
}

.portrait-frame:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(0deg,rgba(198,197,224,.4),transparent 45%),
    linear-gradient(90deg,rgba(238,239,248,.1),transparent);
}

.portrait{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 27%;
  filter:saturate(.78) contrast(.98);
  mix-blend-mode:normal;
}

/* ---------- مدارها ---------- */
.orbit{
  position:absolute;
  border:1px solid rgba(255,255,255,.85);
  border-radius:50%;
  pointer-events:none;
}

.orbit.one{
  width:310px;
  height:310px;
  right:-8px;
  top:10px;
  transform:rotate(-23deg);
}

.orbit.two{
  width:235px;
  height:235px;
  left:-12px;
  bottom:18px;
}

/* ---------- کارت شناور تجربه ---------- */
.experience{
  position:absolute;
  z-index:4;
  right:-3px;
  top:17px;
  padding:16px 18px;
  min-width:92px;
  border:1px solid #ffffffd9;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-radius:17px;
  box-shadow:0 15px 36px #7772aa20;
  animation:float 6s ease-in-out infinite;
}

.experience .number{
  display:block;
  letter-spacing:-1.5px;
}

.experience .label{
  font-size:9px;
  color:#77798a;
  line-height:1.5;
}

/* ---------- کارت شناور چارت ---------- */
.chart-card{
  position:absolute;
  z-index:4;
  right:-7px;
  bottom:42px;
  width:145px;
  padding:14px 14px 9px;
  border:1px solid #ffffffd9;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-radius:17px;
  box-shadow:0 15px 36px #7772aa20;
  animation:float 6s ease-in-out infinite;
  animation-delay:-2.2s;
}

.chart-card .title{
  font-size:9px;
  color:#76798b;
}

.chart-card .value{
  display:block;
  margin:4px 0 8px;
}

.chart-card .chart-host{
  width:100%;
  height:38px;
}

.chart-card .chart{
  width:100%;
  height:38px;
  overflow:visible;
}

/* ---------- Spark ---------- */
.spark{
  position:absolute;
  z-index:4;
  left:-8px;
  bottom:94px;
  width:47px;
  height:47px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#fff,#e7e3ff);
  border:1px solid white;
  color:#9b87f4;
  font-size:23px;
  box-shadow:0 12px 30px #a6a0d833;
  animation:float 5s ease-in-out infinite;
}

.spark .icon{
  width:22px;
  height:22px;
  object-fit:contain;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-9px)}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- تبلت (max 900px) ---------- */
@media(max-width:900px){
  .hero{
    padding:45px 28px 35px;
    min-height:420px;
    grid-template-columns:1.05fr .95fr;
  }
  .hero-visual{height:340px}
  .hero-copy .subtitle{font-size:22px}
  .hero-copy .lead{font-size:12px}
}

/* ---------- موبایل (max 640px) ---------- */
@media(max-width:640px){
  .hero{
    margin-top:10px;
    grid-template-columns:1fr;
    padding:35px 22px 0;
    min-height:0;
    border-radius:24px;
  }
  .hero-copy{max-width:none}
  .hero-copy .eyebrow{margin-bottom:10px}
  .hero-copy .title{font-size:43px;letter-spacing:-2.2px}
  .hero-copy .subtitle{font-size:21px;margin-bottom:12px}
  .hero-copy .lead{
    max-width:440px;
    font-size:12px;
    line-height:1.8;
    margin-bottom:18px;
  }
  .hero-actions .btn{padding:12px 15px;font-size:10px}
  .hero .trusted{margin-top:24px;margin-bottom:20px}
  .hero .trusted .logos{gap:13px;font-size:10px}

  .hero-visual{
    height:310px;
    width:min(100%,390px);
    justify-self:center;
    margin-top:0;
  }
  .portrait-frame{inset:10px 23px 0 23px;border-radius:46% 46% 20px 20px}
  .portrait{object-position:center 23%}
  .orbit.one{width:250px;height:250px;right:0;top:6px}
  .orbit.two{width:190px;height:190px;left:3px;bottom:18px}

  .experience{right:0;top:12px;padding:12px 13px;min-width:78px}
  .experience .number{font-size:25px}
  .experience .label{font-size:8px}

  .chart-card{right:-2px;bottom:30px;width:125px;padding:11px}

  .spark{left:3px;bottom:78px;width:39px;height:39px}
  .spark .icon{width:18px;height:18px}
}

/* ---------- موبایل کوچک (max 360px) ---------- */
@media(max-width:360px){
  .hero-copy .title{font-size:37px}
  .hero-actions{gap:8px}
  .hero-actions .btn{padding:11px 12px}
  .hero .trusted .logos{gap:9px}
}

/* ---------- کاهش حرکت ---------- */
@media(prefers-reduced-motion:reduce){
  .experience,
  .chart-card,
  .spark{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}

/* ==========================================================================
   7. SECTION SHELL
   ========================================================================== */

.section {
    margin-top: 12px;
    padding: var(--section-pad);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 23px;
    flex-wrap: wrap;
}
.section-head .eyebrow { margin-bottom: 7px; }
.section h2 {
    font-weight: 750;
    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.15;
    letter-spacing: -1.1px;
    margin-bottom: 0;
}
.section-sub {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    max-width: 400px;
    margin: 10px 0 0;
}

/* ==========================================================================
   8. SLIDER
   ========================================================================== */
.slider-section{
  margin-top:12px;
  padding:29px 32px;
  border-radius:25px;
  position:relative;
  overflow:hidden;
}

/* ---------- هدر اسلایدر ---------- */
.slider-section .section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin-bottom:23px;
}

.slider-section .slider-head{
  display:flex;
  flex-direction:column;
}

.slider-section .slider-head .eyebrow{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  font-weight:700;
  color:#9984ee;
  margin:0 0 7px;
}

.slider-section .slider-head .title{
  font-size:clamp(22px,3vw,29px);
  font-weight:750;
  line-height:1.15;
  letter-spacing:-1.1px;
  margin:0;
}

/* ---------- قاب اسلایدر ---------- */
.slider-viewport{
  position:relative;
  border-radius:18px;
  overflow:hidden;
}

.slider-track{
  display:flex;
  transition:transform .55s cubic-bezier(.2,.7,.2,1);
  will-change:transform;
}

/* ---------- هر اسلاید ---------- */
.slide{
  flex:0 0 100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  min-height:260px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.35);
  border:1px solid #fff;
}

/* ---------- تصویر اسلاید ---------- */
.slide-media{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#e6e4f5,#c9cce6);
}

.slide-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  min-height:260px;
}

/* ---------- محتوای اسلاید ---------- */
.slide-content{
  padding:28px 26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}

.slide-content .subtitle{
  font-size:11px;
  font-weight:600;
  line-height:1.5;
  color:#8c7be4;
  margin:0;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.slide-content .title{
  font-size:clamp(18px,2.2vw,24px);
  font-weight:750;
  line-height:1.2;
  letter-spacing:-.7px;
  margin:0;
}

.slide-content .text{
  font-size:11px;
  line-height:1.8;
  color:#6d6f80;
  margin:0 0 8px;
  max-width:380px;
}

/* ---------- دکمه اسلاید ---------- */
.slide-content .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  align-self:flex-start;
  margin-top:4px;
  padding:13px 19px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  font-size:11px;
  font-weight:600;
  transition:transform .28s,box-shadow .28s,background .28s;
}

.slide-content .btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(77,69,137,.16);
}

.slide-content .btn-light{
  background:rgba(255,255,255,.78);
  color:#313343;
  border:1px solid #ffffffb5;
}

.slide-content .btn .link-text{
  line-height:1;
}

.slide-content .btn .arrow{
  font-size:15px;
  line-height:1;
}

/* ---------- فلش‌های ناوبری ---------- */
.slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid #fff;
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  color:#5b5d70;
  font-size:18px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:background .25s,transform .25s;
  z-index:2;
  line-height:1;
}

.slider-arrow:hover{
  background:#fff;
  transform:translateY(-50%) scale(1.06);
}

.slider-arrow.prev{left:12px}
.slider-arrow.next{right:12px}

/* ---------- نقطه‌های ناوبری ---------- */
.slider-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:14px;
}

.slider-dots button{
  width:8px;
  height:8px;
  border-radius:50%;
  border:0;
  background:#c9c6dd;
  cursor:pointer;
  transition:background .25s,transform .25s;
  padding:0;
}

.slider-dots button.active{
  background:linear-gradient(135deg,#a18af7,#84b4ff);
  transform:scale(1.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- تبلت (max 900px) ---------- */
@media(max-width:900px){
  .slider-section{padding:25px 23px}
  .slide{grid-template-columns:1fr}
  .slide-media img{min-height:180px}
  .slide-content{padding:20px 18px}
}

/* ---------- موبایل (max 640px) ---------- */
@media(max-width:640px){
  .slider-section{
    margin-top:10px;
    padding:23px 18px;
    border-radius:21px;
  }
  .slider-section .section-head{
    margin-bottom:19px;
    align-items:start;
  }
  .slider-section .slider-head .title{font-size:23px}
  .slide-content{padding:18px 16px}
  .slider-arrow{width:30px;height:30px;font-size:15px}
}

/* ---------- کاهش حرکت ---------- */
@media(prefers-reduced-motion:reduce){
  .slider-track{transition:none}
  .slider-arrow,
  .slider-dots button{transition:none}
}

/* ==========================================================================
   9. ABOUT
   ========================================================================== */
/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb{
  margin-top:16px;
  padding:14px 22px;
  border-radius:18px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:var(--muted);
  flex-wrap:wrap;
}
.breadcrumb a{color:#696b7c;transition:color .2s}
.breadcrumb a:hover{color:var(--purple)}
.breadcrumb .sep{opacity:.5}
.breadcrumb .current{color:var(--ink);font-weight:600}

/* ============================================================
   HERO — اضافات مخصوص About
   ============================================================ */
/* پیل‌های متا در Hero */
.hero-meta{
  margin-top:35px;
  display:flex;
  gap:9px;
  flex-wrap:wrap;
}
.hero-meta .meta-pill{
  padding:7px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(255,255,255,.9);
  font-size:11px;
  font-weight:600;
  color:#5e6070;
}
.hero-meta .meta-pill strong{
  color:var(--ink);
  font-weight:800;
  margin-inline-end:4px;
}

/* ============================================================
   BIO
   ============================================================ */
.bio-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
}
.bio-content{
  font-size:14px;
  line-height:2.15;
  color:#4f5163;
  max-width:820px;
}
.bio-content p{margin:0 0 18px}
.bio-content p:last-child{margin-bottom:0}
.bio-content strong{color:var(--ink);font-weight:700}
.bio-content .pullquote{
  margin:22px 0;
  padding:18px 22px;
  border-inline-end:3px solid #b9adfa;
  background:rgba(255,255,255,.42);
  border-radius:14px;
  font-style:italic;
  color:#5a5c6e;
  font-size:14px;
  line-height:2;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:8px;
}
.stat-box{
  padding:20px 18px;
  border:1px solid rgba(255,255,255,.9);
  background:rgba(255,255,255,.42);
  border-radius:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .3s,background .3s;
}
.stat-box:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,.7);
}
.stat-box .ico{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.85);
  color:#8c7be4;
  font-size:17px;
}
.stat-box .ico img{
  width:20px;
  height:20px;
  object-fit:contain;
}
.stat-box strong{
  display:block;
  font-size:26px;
  font-weight:800;
  letter-spacing:-1px;
}
.stat-box span{
  font-size:11px;
  color:var(--muted);
}

/* ============================================================
   SKILLS GRID
   ============================================================ */
.skill-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.skill-card{
  padding:20px 18px;
  border-radius:16px;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,255,255,.9);
  transition:transform .3s,background .3s,box-shadow .3s;
}
.skill-card:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,.7);
  box-shadow:0 10px 24px rgba(119,116,155,.12);
}
.skill-card .ico{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:var(--tint);
  color:var(--accent);
  box-shadow:inset 0 0 0 1px #ffffffa8;
  font-size:18px;
  margin-bottom:14px;
}
.skill-card .ico img{
  width:22px;
  height:22px;
  object-fit:contain;
}
.skill-card h3{
  font-size:13px;
  font-weight:700;
  margin:0 0 6px;
}
.skill-card p{
  font-size:11px;
  line-height:1.75;
  color:#747688;
  margin:0;
}

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:11px;
}
.tool{
  min-width:0;
  min-height:78px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #fff;
  background:rgba(255,255,255,.37);
  border-radius:14px;
  transition:transform .3s,background .3s,box-shadow .3s;
  padding:12px 8px;
}
.tool:hover{
  transform:translateY(-5px);
  background:#ffffffb5;
  box-shadow:0 10px 24px #77749b17;
}
.tool-mark{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  font-size:13px;
  font-weight:800;
  background:var(--skillbg);
  color:var(--skill);
}
.tool-mark img{
  width:20px;
  height:20px;
  object-fit:contain;
}
.tool span:last-child{
  font-size:9px;
  color:#656779;
  text-align:center;
}

/* ============================================================
   CONTACT METHODS GRID
   ============================================================ */
.contact-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.contact-method{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  border-radius:16px;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,255,255,.9);
  transition:transform .3s,background .3s,box-shadow .3s;
}
.contact-method:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.7);
  box-shadow:0 10px 24px rgba(119,116,155,.12);
}
.contact-method .cm-ico{
  width:46px;
  height:46px;
  flex-shrink:0;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#ffffff,#e8e3ff);
  color:#8c7be4;
  font-size:20px;
  border:1px solid rgba(255,255,255,.95);
}
.contact-method .cm-ico svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  stroke-width:1.7;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.contact-method .cm-ico img{
  width:22px;
  height:22px;
  object-fit:contain;
}
.contact-method .cm-body{
  flex:1;
  min-width:0;
}
.contact-method .cm-label{
  font-size:11px;
  color:var(--muted);
  margin-bottom:3px;
}
.contact-method .cm-value{
  font-size:13px;
  font-weight:700;
  color:var(--ink);
  direction:ltr;
  text-align:right;
  word-break:break-all;
}
.contact-method .cm-value.rtl{
  direction:rtl;
  text-align:right;
}
.contact-method .cm-arrow{
  color:#a8a9b8;
  font-size:16px;
  transition:transform .3s,color .3s;
}
.contact-method:hover .cm-arrow{
  transform:translateX(-4px);
  color:var(--purple);
}

/* ============================================================
   SOCIAL ROW
   ============================================================ */
.social-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:20px;
}
.social-pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:11px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.95);
  font-size:12px;
  font-weight:600;
  color:#5e6070;
  transition:all .25s;
}
.social-pill:hover{
  background:#fff;
  color:var(--purple);
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(119,116,155,.15);
}
.social-pill svg{
  width:16px;
  height:16px;
  stroke:currentColor;
  stroke-width:1.8;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ============================================================
   CONTACT FORM WRAPPER
   ============================================================ */
.contact-form-wrap{
  padding:24px 26px;
  border-radius:20px;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,255,255,.9);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- تبلت (max 900px) ---------- */
@media(max-width:900px){
  .stats-row{grid-template-columns:repeat(2,1fr)}
  .skill-grid{grid-template-columns:repeat(2,1fr)}
  .tools-grid{grid-template-columns:repeat(4,1fr)}
  .contact-grid{grid-template-columns:1fr}
}

/* ---------- موبایل (max 640px) ---------- */
@media(max-width:640px){
  .breadcrumb{
    padding:12px 16px;
    font-size:11px;
    margin-top:10px;
  }

  .hero-meta{
    margin-top:24px;
    margin-bottom:20px;
  }

  .bio-content{font-size:13px;line-height:2.05}
  .bio-content .pullquote{padding:15px 18px;font-size:13px}

  .stats-row{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }
  .stat-box{padding:16px 14px}
  .stat-box strong{font-size:22px}

  .skill-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .tools-grid{
    grid-template-columns:repeat(4,1fr);
    gap:8px;
  }
  .tool{min-height:70px}
  .tool span:last-child{font-size:8px}

  .contact-method{padding:15px 16px}
  .contact-method .cm-ico{width:40px;height:40px;font-size:17px}
  .contact-method .cm-ico svg{width:20px;height:20px}
  .contact-method .cm-value{font-size:12px}

  .social-pill{padding:10px 14px;font-size:11px}

  .contact-form-wrap{padding:18px 18px}
}

/* ---------- موبایل کوچک (max 360px) ---------- */
@media(max-width:360px){
  .stats-row{grid-template-columns:1fr}
  .stat-box{flex-direction:row;align-items:center;gap:12px}
  .stat-box .ico{margin:0}
  .tools-grid{grid-template-columns:repeat(3,1fr)}
}

/* ==========================================================================
   10. SERVICES
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}
.service-card {
    position: relative;
    min-height: 170px;
    padding: 19px 17px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(255,255,255,.57), rgba(255,255,255,.23));
    transition: transform .35s, box-shadow .35s, border-color .35s;
    overflow: hidden;
}
.service-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    inset-inline-end: -45px;
    top: -50px;
    background: var(--tint, #e0e0f5);
    filter: blur(24px);
    opacity: .5;
    transition: transform .4s;
}
.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 34px rgba(119,116,155,.11);
    border-color: #fff;
}
.service-card:hover::after { transform: scale(1.6); }
.icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: var(--tint, #e0e0f5);
    color: var(--accent, #8c7be4);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.66);
    font-size: 17px;
    margin-bottom: 17px;
    position: relative;
    z-index: 1;
}
.service-card h3 {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.3px;
    margin-bottom: 9px;
}
.service-card p {
    font-size: 11px;
    line-height: 1.8;
    color: #747688;
    margin-bottom: 0;
}
.card-arrow {
    position: absolute;
    bottom: 15px;
    inset-inline-end: 16px;
    font-size: 15px;
    transition: transform .25s;
}
.service-card:hover .card-arrow { transform: translate(3px, -3px); }

/* ==========================================================================
   11. SKILLS
   ========================================================================== */

.skills { padding: 23px 30px; }
.skills .section-head { margin-bottom: 18px; }
.skill-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 11px;
}
.skill {
    min-width: 0;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #fff;
    background: rgba(255,255,255,.37);
    border-radius: 14px;
    transition: transform .3s, background .3s, box-shadow .3s;
    padding: 8px;
}
.skill:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.7);
    box-shadow: 0 10px 24px rgba(119,116,155,.09);
}
.skill-mark {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    background: var(--skillbg, #f0eff8);
    color: var(--skill, #666);
}
.skill-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.skill span:last-child {
    font-size: 10px;
    color: #656779;
    text-align: center;
}

/* ==========================================================================
   12. PROJECTS / ARTICLES CARDS
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.project {
    min-width: 0;
    transition: transform .35s;
    border: 1px solid rgba(255,255,255,.79);
    border-radius: 17px;
    background: var(--artbg, #eae8f7);
}
.project:hover { transform: translateY(-5px); }
.project-art {
    height: 180px;
    
    overflow: hidden;
    position: relative;
    
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255,255,255,.44), transparent 45%, rgba(255,255,255,.15));
}
.project-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}
.project-info {
    position: relative;
    margin: -22px 9px 0;
    z-index: 2;
    padding: 14px 14px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.project-info h3 {
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 4px;
}
.project-info p {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
}
.round-arrow {
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: #f1f0f9;
    border-radius: 50%;
    transition: transform .25s, background .25s;
}
.project:hover .round-arrow {
    transform: rotate(45deg);
    background: #e5e0ff;
}

/* ---- Shared pcard (projects / articles archive) ---- */

.pcard {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    transition: transform .35s, box-shadow .35s, border-color .35s;
}
.pcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(119,116,155,.16);
    border-color: #fff;
}
.pcard-art {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
    background: linear-gradient(135deg, #e9e6ff, #d4d7fb 55%, #f8f7ff);
}
.pcard-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.pcard:hover .pcard-art img { transform: scale(1.06); }
.pcard-badges {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}
.pbadge {
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 700;
    color: #5e6070;
    border: 1px solid rgba(255,255,255,.9);
}
.pbadge.featured {
    background: linear-gradient(135deg, #fff0c8, #ffe0a8);
    color: #8a6414;
    border-color: #fff5d8;
}
.pcard-like {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 700;
    color: var(--pink);
    z-index: 2;
}
.pcard-like .heart {
    font-size: 12px;
    line-height: 1;
}
.pcard-body {
    padding: 16px 17px 17px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pcard-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.pcard-title h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: var(--ink);
    transition: color .25s;
}
.pcard:hover .pcard-title h3 { color: var(--purple); }
.pcard-title .round-arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.75);
    border-radius: 50%;
    transition: transform .3s, background .3s;
    font-size: 13px;
    color: #5e6070;
}
.pcard:hover .pcard-title .round-arrow {
    transform: rotate(-45deg);
    background: #e5e0ff;
    color: var(--purple-deep);
}
.pcard-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 11px;
}
.pcard-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c4c5d2;
}
.pcard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}
.pcard-tags .tag {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.9);
    font-size: 10px;
    color: #71737f;
    font-weight: 600;
    transition: all .25s;
}
.pcard-tags .tag:hover {
    background: #fff;
    color: var(--purple);
    transform: translateY(-1px);
}

/* ==========================================================================
   13. PROCESS
   ========================================================================== */

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.process-card {
    border: 1px solid rgba(255,255,255,.79);
    background: rgba(255,255,255,.34);
    border-radius: 16px;
    padding: 15px 13px;
    min-height: 125px;
    transition: transform .3s, background .3s;
}
.process-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.61);
}
.process-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}
.process-icon {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.6);
    color: #9988e9;
}
.process-num {
    font-size: 10px;
    color: #88899a;
}
.process-card h3 {
    font-weight: 700;
    font-size: 12px;
    margin: 0 0 6px;
}
.process-card p {
    font-size: 10px;
    color: #77798b;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.quote-card {
    padding: 18px 17px;
    border: 1px solid #fff;
    background: rgba(255,255,255,.42);
    border-radius: 17px;
    transition: transform .3s, box-shadow .3s;
}
.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(119,116,155,.09);
}
.quote-mark {
    color: #a293f3;
    font-weight: 800;
    font-size: 26px;
    line-height: .8;
}
.quote-card blockquote {
    font-size: 12px;
    line-height: 1.9;
    color: #656779;
    margin: 9px 0 18px;
}
.person {
    display: flex;
    align-items: center;
    gap: 9px;
}
.avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9c8ff, #9fc7e9);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #4f5070;
}
.person strong {
    display: block;
    font-size: 11px;
}
.person span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

/* ==========================================================================
   15. CONTACT
   ========================================================================== */

.contact {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 30px;
    align-items: center;
}
.contact-copy h2 {
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.35;
    max-width: 320px;
    margin-bottom: 14px;
}
.contact-copy > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.9;
    color: #77798b;
    max-width: 300px;
}
.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 23px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 11px;
    color: #5f6173;
}
.contact-item span:first-child {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.65);
    color: #8e7ee7;
}
.contact-form {
    padding: 19px;
    border: 1px solid #fff;
    background: rgba(255,255,255,.48);
    border-radius: 19px;
    box-shadow: 0 12px 32px rgba(102,98,139,.05);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.field {
    width: 100%;
    border: 1px solid #fff;
    background: rgba(255,255,255,.63);
    border-radius: 11px;
    padding: 13px 14px;
    font-size: 12px;
    color: var(--ink);
    transition: border .25s, box-shadow .25s;
    margin-bottom: 10px;
}
.field::placeholder { color: var(--muted-2); }
.field:focus {
    outline: none;
    border-color: var(--purple-soft);
    box-shadow: 0 0 0 3px rgba(185,173,250,.15);
}
textarea.field {
    resize: vertical;
    min-height: 100px;
}
select.field {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #85869a 50%),
        linear-gradient(135deg, #85869a 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 18px,
        calc(100% - 13px) 18px;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
}
.submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(110deg, #191b2a, #30334b);
    color: #fff;
    font-size: 12px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(40,42,69,.12);
    transition: transform .25s, box-shadow .25s;
    font-weight: 600;
}
.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(40,42,69,.19);
}
.form-status {
    font-size: 11px;
    color: #5c7b6c;
    margin: 10px 2px 0;
    min-height: 14px;
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.footer {
    padding: 24px 5px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted-2);
    font-size: 10px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 17px;
    flex-wrap: wrap;
}
.footer a:hover { color: #6960aa; }

/* ==========================================================================
   17. UTILITIES / STATES
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading-block {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 13px;
}
.loading-block::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto 10px;
    border: 2px solid #e0ddf0;
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 13px;
}
.empty-state::before {
    content: "✧";
    display: block;
    font-size: 34px;
    color: #c7c1e8;
    margin-bottom: 8px;
}
.empty-state--lg {
    padding: 60px 20px;
    font-size: 15px;
    line-height: 2;
}
.empty-state--lg .muted {
    font-size: 13px;
    display: inline-block;
    margin-top: 8px;
}

/* ==========================================================================
   18. PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #5b5d70;
    border: 1px solid rgba(255,255,255,.85);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
    transition: all .2s;
    font-weight: 500;
    line-height: 1;
}
.page-link:hover {
    border-color: var(--purple-soft);
    color: #6a5bd0;
    transform: translateY(-1px);
}
.page-link.active {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(123,105,195,.22);
}
.page-gap {
    color: var(--muted);
    padding: 0 6px;
    font-size: 13px;
}

/* ==========================================================================
   19. SITE ALERTS
   ========================================================================== */

.site-alerts {
    position: fixed;
    top: 88px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(440px, calc(100% - 32px));
    pointer-events: none;
}
.site-alert {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    font-size: 12.5px;
    color: var(--ink);
    animation: rise .3s both;
}
.site-alert__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.site-alert--success .site-alert__icon { background: #dcfce7; color: #166534; }
.site-alert--error   .site-alert__icon { background: #fee2e2; color: #991b1b; }
.site-alert--warning .site-alert__icon { background: #fef3c7; color: #92400e; }
.site-alert--info    .site-alert__icon { background: #dbeafe; color: #1e40af; }
.site-alert__text { flex: 1; min-width: 0; line-height: 1.6; }
.site-alert__close {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
}
.site-alert__close:hover {
    background: rgba(0,0,0,.05);
    color: var(--ink);
}

/* ==========================================================================
   20. ANIMATIONS
   ========================================================================== */

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
@keyframes ambient {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   21. CATEGORY PAGE — breadcrumb, subcats, toolbar
   ========================================================================== */

.breadcrumb {
    margin-top: 16px;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: #696b7c; transition: color .2s; }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.subcats {
    margin-top: 14px;
    padding: 18px 22px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.subcats-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .5px;
}
.subcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.95);
    font-size: 12px;
    color: #5e6070;
    font-weight: 600;
    transition: all .25s;
}
.subcat-chip:hover {
    background: #fff;
    color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(119,116,155,.12);
}
.subcat-chip .count {
    font-size: 10px;
    color: #a8a9b8;
    font-weight: 700;
    padding: 1px 6px;
    background: rgba(255,255,255,.7);
    border-radius: 6px;
}
.subcat-chip.active {
    background: linear-gradient(135deg,#e8e2ff,#d8ccff);
    color: #6b55c9;
    border-color: #e0d5ff;
}

.toolbar {
    margin-top: 14px;
    padding: 14px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.toolbar-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.sort-group {
    display: flex;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(255,255,255,.8);
}
.sort-btn {
    padding: 7px 13px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: #696b7c;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}
.sort-btn:hover { color: var(--ink); }
.sort-btn.active {
    background: linear-gradient(135deg,#e8e2ff,#d8ccff);
    color: #6b55c9;
    box-shadow: 0 3px 10px rgba(140,120,220,.15);
}
.filter-select {
    padding: 8px 32px 8px 14px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377798b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat left 14px center;
    appearance: none;
    font-size: 11px;
    font-weight: 600;
    color: #5e6070;
    cursor: pointer;
    transition: all .25s;
}
.filter-select:hover { background-color: #fff; }
.filter-select:focus {
    outline: none;
    border-color: var(--purple-soft);
    box-shadow: 0 0 0 3px rgba(185,173,250,.15);
}

/* ==========================================================================
   22. ARCHIVE SECTIONS
   ========================================================================== */

.projects-section,
.articles-section {
    margin-top: 14px;
    padding: 28px 30px;
    border-radius: var(--radius-lg);
}
.projects-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.projects-head h2 {
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 750;
    letter-spacing: -1px;
    margin: 0;
}
.result-count {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.result-count strong {
    color: var(--ink);
    font-weight: 800;
}

.articles-archive .slider-section,
.slider-section + .breadcrumb {
    margin-top: 14px;
}

/* ==========================================================================
   23. SEARCH PAGE
   ========================================================================== */

.search-hero {
    margin-top: 14px;
    padding: 30px 32px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}
.search-hero::before {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,191,255,.5), transparent 70%);
    pointer-events: none;
}
.search-hero__inner {
    position: relative;
    z-index: 1;
}
.search-hero__title {
    font-weight: 800;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: -1.2px;
    line-height: 1.3;
    margin: 6px 0 0;
    color: var(--ink);
}
.search-hero__query {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.search-hero__meta {
    font-size: 12.5px;
    color: var(--muted);
    margin: 10px 0 0;
}

.taxonomy-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.taxonomy-group__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
    letter-spacing: .3px;
}
.taxonomy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.taxonomy-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.95);
    font-size: 12px;
    color: #5e6070;
    font-weight: 600;
    transition: all .25s;
}
.taxonomy-chip:hover {
    background: #fff;
    color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(119,116,155,.12);
}
.taxonomy-chip--tag span {
    color: var(--purple);
    font-weight: 800;
    margin-inline-end: 2px;
}

/* ==========================================================================
   24. PROJECT DETAIL
   ========================================================================== */

.project-hero {
    position: relative;
    margin-top: 12px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 420px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    isolation: isolate;
}
.project-hero-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, #f7f8ff, #d8d7ff 60%, #b9c9f7);
}
.project-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .42;
    filter: saturate(.7);
}
.project-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.65) 45%, rgba(228,229,242,.55) 100%);
}
.project-hero-body {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    max-width: 620px;
}
.project-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}
.meta-pill {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 600;
    color: #5e6070;
}
.meta-pill.featured {
    background: linear-gradient(135deg,#fff0c8,#ffe0a8);
    color: #8a6414;
    border-color: #fff5d8;
}
.project-hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.4px;
    margin: 0;
}
.project-hero-subtitle {
    font-size: 15px;
    color: #666878;
    max-width: 520px;
    margin: 0;
    line-height: 2;
}
.project-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}
.project-hero-stats {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.7);
    flex-wrap: wrap;
    align-items: center;
}
.stat-mini {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #5e6070;
}
.stat-mini strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.stat-mini .ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.7);
    color: #8c7be4;
    font-size: 15px;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.4));
    border: 1px solid rgba(255,255,255,.9);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #5e6070;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(119,116,155,.16);
    background: rgba(255,255,255,.9);
}
.like-btn .heart {
    font-size: 17px;
    line-height: 1;
    color: #c9cad8;
    transition: color .25s, transform .25s;
}
.like-btn.liked {
    color: var(--pink);
    background: linear-gradient(135deg, #ffe0ec, #ffd0e0);
    border-color: #ffc8dd;
}
.like-btn.liked .heart {
    color: var(--pink);
    transform: scale(1.15);
}
.like-btn .count {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 14px;
    color: var(--ink);
}
.like-btn.liked .count { color: #c0376b; }

.project-hero-thumb {
    padding: 38px 38px 38px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb-frame {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 28px 65px rgba(101,96,158,.17);
    background: linear-gradient(145deg, #e2e4f2, #c8cce0);
    position: relative;
}
.thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-frame .thumb-badge {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 700;
    color: #5e6070;
}

/* ---- Description / info / software / gallery / output / testimonial ---- */

.description-content {
    font-size: 14px;
    line-height: 2.1;
    color: #4f5163;
    max-width: 820px;
}
.description-content p { margin: 0 0 16px; }
.description-content p:last-child { margin-bottom: 0; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.info-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    gap: 13px;
    transition: transform .3s, background .3s;
}
.info-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.7);
}
.info-card .ico {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.75);
    color: #8c7be4;
    font-size: 17px;
    flex-shrink: 0;
}
.info-card .label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 2px;
}
.info-card .value {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}
.software {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.9);
    background: var(--surface-2);
    border-radius: 14px;
    transition: transform .3s, background .3s, box-shadow .3s;
    padding: 14px 10px;
}
.software:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.8);
    box-shadow: 0 10px 24px rgba(119,116,155,.12);
}
.software-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    background: #f0eff8;
    color: #6b55c9;
    overflow: hidden;
}
.software-mark img { width: 100%; height: 100%; object-fit: contain; }
.software span:last-child {
    font-size: 11px;
    color: #656779;
    text-align: center;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e7ff, #d0d3f0);
    cursor: pointer;
    transition: transform .35s, box-shadow .35s;
    border: 1px solid rgba(255,255,255,.85);
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(119,116,155,.18);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(23,25,37,.55), transparent 55%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.video::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #5e6070;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    padding-inline-end: 4px;
}

.output-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.35));
    border: 1px solid rgba(255,255,255,.9);
    flex-wrap: wrap;
}
.output-cta-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}
.output-cta-text p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}
.output-cta .btn-dark {
    padding: 13px 22px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.testimonial-block {
    padding: 26px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
    border: 1px solid rgba(255,255,255,.9);
    position: relative;
}
.testimonial-block .quote-mark {
    color: #a293f3;
    font-weight: 800;
    font-size: 42px;
    line-height: .8;
    margin-bottom: 10px;
}
.testimonial-block blockquote {
    font-size: 14px;
    line-height: 2;
    color: #4f5163;
    margin: 0 0 18px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9c8ff, #9fc7e9);
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #4f5070;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    font-size: 13px;
}
.testimonial-author span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

/* ==========================================================================
   25. COMMENTS
   ========================================================================== */

.comments-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(255,255,255,.9);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.rating-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rating-number {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--ink);
}
.rating-details {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}
.stars {
    display: flex;
    gap: 2px;
    font-size: 16px;
    color: var(--gold);
    line-height: 1;
}
.stars .off { color: #d4d5e0; }

.comments-list { display: grid; gap: 12px; }
.comment {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    transition: background .3s;
}
.comment:hover { background: rgba(255,255,255,.65); }
.comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9c8ff, #9fc7e9);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #4f5070;
    flex-shrink: 0;
}
.comment-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.comment-meta {
    font-size: 11px;
    color: var(--muted);
}
.comment-stars {
    margin-inline-start: auto;
    display: flex;
    gap: 2px;
    font-size: 13px;
    color: var(--gold);
    line-height: 1;
}
.comment-stars .off { color: #d4d5e0; }
.comment-body {
    font-size: 13px;
    line-height: 2;
    color: #4f5163;
    margin: 0;
}
.comment-reply {
    margin-top: 14px;
    margin-inline-start: 38px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.55);
    border-inline-start: 3px solid var(--purple-soft);
}
.comment-reply .comment-head { margin-bottom: 8px; }
.comment-reply .comment-body { font-size: 12px; }

.comment-form-wrap {
    padding: 24px 26px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    margin-top: 22px;
}
.comment-form-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}
.comment-form-hint {
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 18px;
}
.rating-input {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.rating-input > label:first-child {
    font-size: 12px;
    color: var(--muted);
    margin-inline-start: 6px;
    order: 99;
}
.rating-input input[type=radio] { display: none; }
.rating-input label.star {
    cursor: pointer;
    font-size: 22px;
    color: #d4d5e0;
    transition: color .2s, transform .2s;
}
.rating-input input:checked ~ label.star { color: var(--gold); }

/* ==========================================================================
   26. RELATED
   ========================================================================== */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.related-card {
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    transition: transform .35s, box-shadow .35s;
    display: block;
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(119,116,155,.16);
}
.related-art {
    height: 150px;
    background: linear-gradient(135deg, #e9e6ff, #d4d7fb 55%, #f8f7ff);
    position: relative;
    overflow: hidden;
}
.related-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.related-card:hover .related-art img { transform: scale(1.05); }
.related-info { padding: 14px 16px; }
.related-info h3 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--ink);
}
.related-info p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}

/* ==========================================================================
   27. ARTICLE DETAIL
   ========================================================================== */

.article-hero {
    position: relative;
    margin-top: 12px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 48px 44px;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.35));
}
.article-hero::before {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,191,255,.5), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.article-hero__inner {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.article-hero__title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.3px;
    margin: 0;
    color: var(--ink);
}
.article-hero__lead {
    font-size: 15px;
    line-height: 2;
    color: #666878;
    max-width: 620px;
    margin: 0;
}
.article-hero__stats {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.7);
}
.article-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}
.article-hero__cover {
    aspect-ratio: 3 / 2;
    width: 100%;
    overflow: hidden;
}

.article-hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius:15px;
}

.article-content {
    font-size: 15px;
    line-height: 2.1;
    color: #3f4154;
    max-width: 820px;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.6px;
    margin: 32px 0 14px;
    color: var(--ink);
}
.article-content h1 { font-size: 26px; }
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 18px; }
.article-content h4 { font-size: 16px; }
.article-content p { margin: 0 0 18px; }
.article-content a {
    color: var(--purple-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.article-content a:hover { color: #5b4bb5; }
.article-content strong { font-weight: 700; color: var(--ink); }
.article-content em { font-style: italic; }
.article-content ul,
.article-content ol { margin: 0 0 18px; padding-inline-start: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    margin: 22px 0;
    padding: 14px 22px;
    border-inline-start: 3px solid var(--purple-soft);
    background: rgba(255,255,255,.45);
    border-radius: var(--radius-xs);
    color: #555769;
    font-style: italic;
}
.article-content pre {
    margin: 22px 0;
    padding: 16px 18px;
    background: #1e1e2a;
    color: #e8e8f0;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.7;
    direction: ltr;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-content code {
    background: rgba(0,0,0,.05);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
    direction: ltr;
    display: inline-block;
}
.article-content pre code {
    background: transparent;
    padding: 0;
    display: inline;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 20px 0;
    box-shadow: 0 12px 30px rgba(101,96,158,.12);
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14px;
}
.article-content th,
.article-content td {
    padding: 10px 14px;
    border: 1px solid rgba(200,200,220,.6);
    text-align: start;
}
.article-content th {
    background: rgba(255,255,255,.5);
    font-weight: 700;
}
.article-content hr {
    border: none;
    border-top: 1px solid rgba(200,200,220,.5);
    margin: 32px 0;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.article-footer__info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-footer__info .ico {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.75);
    color: #8c7be4;
    font-size: 18px;
}
.article-footer__info .label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 2px;
}
.article-footer__info .value {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.article-footer__share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-footer__share .label {
    font-size: 11px;
    color: var(--muted);
    margin-inline-end: 4px;
}
.share-btn {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 600;
    color: #5e6070;
    transition: all .25s;
}
.share-btn:hover {
    background: #fff;
    color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(119,116,155,.12);
}

/* ==========================================================================
   28. CONTACT PAGE
   ========================================================================== */

.contact-hero {
    position: relative;
    margin-top: 12px;
    padding: 48px 44px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    isolation: isolate;
}
.contact-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(ellipse at 85% 30%, rgba(201,191,255,.42), transparent 40%),
        linear-gradient(115deg, rgba(255,255,255,.85), rgba(228,229,242,.55));
}
.contact-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 30px;
}
.contact-hero__copy {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-hero__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.4px;
    margin: 0;
    color: var(--ink);
}
.contact-hero__lead {
    font-size: 14.5px;
    line-height: 2;
    color: #63657a;
    max-width: 520px;
    margin: 0;
}
.contact-hero__visual {
    position: relative;
    min-height: 320px;
}
.contact-hero__portrait {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 24px 60px rgba(101,96,158,.16);
    background: linear-gradient(145deg,#e2e4f2,#c8cce0);
    max-width: 380px;
    margin-inline-start: auto;
}
.contact-hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contact-hero__orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    pointer-events: none;
}
.contact-hero__orbit.one {
    width: 240px;
    height: 240px;
    inset-inline-end: 40px;
    top: -40px;
}
.contact-hero__orbit.two {
    width: 180px;
    height: 180px;
    inset-inline-start: 40px;
    bottom: -30px;
}

.contact-method--static { cursor: default; }
.contact-method--static:hover { transform: none; }
.contact-method .cm-value--rtl {
    direction: rtl;
    text-align: start;
    font-weight: 500;
    font-size: 12.5px;
    line-height: 1.8;
    color: #5e6070;
}

/* ==========================================================================
   29. 404 PAGE
   ========================================================================== */

.error-page {
    margin-top: 16px;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.error-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(201,191,255,.42), transparent 42%),
        radial-gradient(ellipse at 80% 80%, rgba(199,218,255,.5), transparent 40%),
        linear-gradient(135deg, rgba(255,255,255,.65), rgba(228,229,242,.42));
}
.error-page__inner {
    max-width: 620px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.error-page__code {
    font-weight: 800;
    font-size: clamp(72px, 12vw, 130px);
    line-height: 1;
    letter-spacing: -6px;
    background: linear-gradient(135deg, var(--purple) 10%, var(--blue) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.error-page__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin: 0;
}
.error-page__lead {
    font-size: 14px;
    line-height: 2;
    color: #63657a;
    max-width: 460px;
    margin: 0;
}
.error-page__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}
.error-page__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
    max-width: 380px;
    padding: 8px 8px 8px 16px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 22px rgba(119,116,155,.09);
}
.error-page__search input {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}
.error-page__search input::placeholder { color: var(--muted-3); }
.error-page__search button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .2s, box-shadow .2s;
    line-height: 1;
}
.error-page__search button:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(123,105,195,.25);
}

/* ==========================================================================
   30. MOBILE BOTTOM NAV
   ========================================================================== */

.mobile-bottom-nav { display: none; }
.mobile-search-panel { display: none; }

@media (max-width: 640px) {
    .mobile-bottom-nav {
        position: fixed;
        z-index: 1000;
        inset-inline: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        padding: 7px;
        border: 1px solid rgba(255,255,255,.9);
        border-radius: 23px;
        background: rgba(247,246,252,.78);
        box-shadow: 0 15px 42px rgba(45,42,80,.16), inset 0 1px 0 #fff;
        backdrop-filter: blur(26px);
        -webkit-backdrop-filter: blur(26px);
    }
    .mobile-nav-item {
        min-width: 0;
        min-height: 49px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 0;
        border-radius: 16px;
        background: transparent;
        color: #77788b;
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: color .25s, background .25s, transform .25s;
    }
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        stroke-width: 1.7;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .mobile-nav-item.active {
        color: #7866d1;
        background: linear-gradient(135deg, #fff, #efecff);
        box-shadow: 0 4px 14px rgba(123,105,195,.12);
    }
    .mobile-nav-item:active { transform: scale(.94); }

    /* ---- Mobile search panel ---- */
    .mobile-search-panel {
        display: block;
        position: fixed;
        z-index: 999;
        inset-inline: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        padding: 12px 14px;
        border: 1px solid rgba(255,255,255,.9);
        border-radius: var(--radius-md);
        background: rgba(248,247,253,.9);
        box-shadow: 0 12px 36px rgba(45,42,80,.13);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .mobile-search-panel.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .mobile-search-panel form {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mobile-search-panel input {
        flex: 1;
        width: 0;
        min-width: 0;
        padding: 11px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--ink);
        font-size: 13px;
    }
    .mobile-search-panel input::placeholder { color: var(--muted-3); }
    #closeMobileSearch {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255,255,255,.72);
        color: #77788b;
        font-size: 22px;
        cursor: pointer;
        line-height: 1;
    }
    .mobile-search-panel .search-suggest {
        inset-inline: 0;
        top: calc(100% - 6px);
    }
}

/* ==========================================================================
   31. RESPONSIVE — LARGE
   ========================================================================== */

@media (min-width: 1400px) {
    :root { --max: 1160px; }
    .hero { min-height: 510px; }
    .hero-visual { height: 425px; }
}

/* ==========================================================================
   32. RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 900px) {
    .container { width: min(100% - 32px, var(--max)); }
    .nav { padding: 0 13px; }
    .brand { min-width: 0; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 11px; }
    .nav-cta { display: none; }

    .hero {
        padding: 45px 28px 35px;
        min-height: 420px;
        grid-template-columns: 1.05fr .95fr;
    }
    .hero-visual { height: 340px; }
    .hero h2 { font-size: 12px; }
    .lead { font-size: 12px; }

    .section { padding: 25px 23px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { min-height: 155px; }
    .skill-grid { grid-template-columns: repeat(4, 1fr); }
    .project-art { height: 150px; }
    .process-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { gap: 25px; }
    .slide { grid-template-columns: 1fr; }
    .slide-media img { min-height: 180px; }
    .slide-content { padding: 20px 18px; }

    .projects-section,
    .articles-section { padding: 24px 22px; }

    .project-hero { grid-template-columns: 1fr; min-height: 0; }
    .project-hero-body { padding: 36px 26px; max-width: none; }
    .project-hero-thumb { padding: 0 26px 32px; }
    .thumb-frame { max-width: 100%; aspect-ratio: 16/10; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.wide { grid-column: span 1; }
    .gallery-item.tall { grid-row: span 1; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }

    .article-hero { padding: 36px 26px; }
    .article-hero__cover { aspect-ratio: 16/10; }

    .contact-hero { padding: 36px 26px; }
    .contact-hero__inner { grid-template-columns: 1fr; gap: 20px; }
    .contact-hero__visual { min-height: 260px; }
    .contact-hero__portrait { max-width: none; }
}

/* ==========================================================================
   33. RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 640px) {
    html {
        scroll-padding-top: 82px;
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }
    .container { width: calc(100% - 24px); }

    .nav-wrap { top: 7px; padding-top: 7px; }
    .nav {
        height: 58px;
        border-radius: 16px;
        padding: 0 11px;
    }
    .brand-mark { width: 32px; height: 32px; }
    .brand-copy strong { font-size: 11px; }
    .brand-copy span { font-size: 9px; }

    .menu-toggle { display: block; }
    .header-search { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        inset-inline: 0;
        padding: 14px;
        border-radius: 17px;
        background: #9C27B0;
        border: 1px solid #fff;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(20px);
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        flex-wrap: wrap;
    }
    .nav-links.open { display: grid; }
    .nav-links a {
        font-size: 12px;
        text-align: center;
        padding: 11px 5px;
        border-radius: 9px;
    }
    .nav-links a:hover { background: rgba(255,255,255,.6); }
    .nav-links a::after { display: none; }

    .hero {
        margin-top: 10px;
        grid-template-columns: 1fr;
        padding: 35px 22px 0;
        min-height: 0;
        border-radius: var(--radius-lg);
    }
    .hero-copy { max-width: none; }
    .hero .eyebrow { margin-bottom: 10px; }
    h1 { font-size: 43px; letter-spacing: -2.2px; }
    .hero h2 { font-size: 21px; margin-bottom: 12px; }
    .lead {
        max-width: 440px;
        font-size: 12px;
        line-height: 1.9;
        margin-bottom: 18px;
    }
    .btn { padding: 12px 15px; font-size: 11px; }
    .trusted { margin-top: 24px; margin-bottom: 20px; }
    .logo-row { gap: 13px; font-size: 11px; }

    .hero-visual {
        height: 310px;
        width: min(100%, 390px);
        justify-self: center;
        margin-top: 0;
    }
    .portrait-frame {
        inset: 10px 23px 0 23px;
        border-radius: 46% 46% 20px 20px;
    }
    .portrait { object-position: center 23%; }
    .orbit.one {
        width: 250px;
        height: 250px;
        inset-inline-end: 0;
        top: 6px;
    }
    .orbit.two {
        width: 190px;
        height: 190px;
        inset-inline-start: 3px;
        bottom: 18px;
    }
    .experience {
        inset-inline-end: 0;
        top: 12px;
        padding: 12px 13px;
        min-width: 78px;
    }
    .experience strong { font-size: 25px; }
    .experience span { font-size: 9px; }
    .chart-card {
        inset-inline-end: -2px;
        bottom: 30px;
        width: 125px;
        padding: 11px;
    }
    .spark {
        inset-inline-start: 3px;
        bottom: 78px;
        width: 39px;
        height: 39px;
    }

    .section {
        margin-top: 10px;
        padding: var(--section-pad-sm);
        border-radius: 21px;
    }
    .section-head {
        margin-bottom: 19px;
        align-items: start;
    }
    .section h2 { font-size: 23px; }

    .about-grid { grid-template-columns: 1fr; gap: 21px; }
    .about-title { font-size: 25px; }
    .stats { gap: 7px; margin-top: 18px; }
    .stat { padding: 12px 9px; }
    .stat strong { font-size: 18px; }
    .stat span { font-size: 9px; }
    .about-copy { font-size: 12px; }

    .services-grid { gap: 9px; }
    .service-card { padding: 15px 13px; min-height: 160px; }
    .service-card h3 { font-size: 13px; }
    .service-card p { font-size: 10px; }
    .icon-box { width: 32px; height: 32px; margin-bottom: 13px; }

    .skills { padding: 22px 17px; }
    .skill-grid { gap: 8px; grid-template-columns: repeat(4, 1fr); }
    .skill { min-height: 66px; }
    .skill span:last-child { font-size: 9px; }

    .projects-grid { grid-template-columns: 1fr; gap: 17px; }
    .project-art { height: 190px; }
    .project-info { margin-top: -20px; }
    .project-info h3 { font-size: 13px; }

    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .process-card { min-height: 118px; padding: 13px 11px; }
    .process-card h3 { font-size: 12px; }

    .testimonial-grid { grid-template-columns: 1fr; gap: 10px; }
    .quote-card { padding: 17px; }
    .quote-card blockquote { margin-bottom: 14px; }

    .contact { grid-template-columns: 1fr; gap: 22px; }
    .contact-copy h2 { font-size: 26px; }
    .contact-form { padding: 14px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .field { margin-bottom: 9px; padding: 13px; }

    /*.footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px 3px 28px;
    }*/
    .footer {
        display: none;
    }
    .footer-links { flex-wrap: wrap; gap: 12px; }

    .slide-content { padding: 18px 16px; }
    .slider-arrow { width: 30px; height: 30px; font-size: 15px; }

    .breadcrumb { padding: 12px 16px; font-size: 11px; margin-top: 10px; }
    .subcats { padding: 14px 16px; gap: 8px; }
    .subcat-chip { padding: 7px 12px; font-size: 11px; }
    .toolbar {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .toolbar-left,
    .toolbar-right { justify-content: space-between; }
    .sort-group { width: 100%; justify-content: space-between; }
    .sort-btn { padding: 7px 10px; font-size: 10.5px; flex: 1; }
    .filter-select { width: 100%; }
    .projects-section,
    .articles-section {
        padding: 20px 18px;
        border-radius: 20px;
        margin-top: 10px;
    }
    .projects-head h2 { font-size: 19px; }
    .pcard-art { aspect-ratio: 16/10; }

    .search-hero { padding: 22px 18px; }
    .empty-state--lg { padding: 40px 16px; font-size: 14px; }

    .project-hero-body { padding: 28px 20px; }
    .project-hero h1 { font-size: 26px; }
    .project-hero-subtitle { font-size: 13px; }
    .project-hero-thumb { padding: 0 20px 26px; }
    .info-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .software-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    .output-cta { padding: 18px 20px; flex-direction: column; align-items: stretch; }
    .output-cta .btn-dark { width: 100%; justify-content: center; }
    .comments-summary { padding: 14px 16px; gap: 14px; }
    .rating-number { font-size: 32px; }
    .comment { padding: 15px 16px; }
    .comment-stars { margin-inline-start: 0; width: 100%; }
    .comment-reply { margin-inline-start: 16px; padding: 12px 14px; }
    .comment-form-wrap { padding: 18px 18px; }
    .related-grid { grid-template-columns: 1fr; gap: 12px; }

    .article-hero { padding: 28px 20px; }
    .article-hero__title { font-size: 24px; }
    .article-hero__lead { font-size: 13px; }
    .article-hero__cover { aspect-ratio: 16/11; margin-top: 16px; }
    .article-content { font-size: 14px; line-height: 2; }
    .article-content h1 { font-size: 22px; }
    .article-content h2 { font-size: 19px; }
    .article-content h3 { font-size: 17px; }
    .article-footer { flex-direction: column; align-items: stretch; }
    .article-footer__share { justify-content: flex-start; }

    .contact-hero { padding: 28px 20px; }
    .contact-hero__title { font-size: 24px; }
    .contact-hero__lead { font-size: 13px; }
    .contact-hero__visual { min-height: 220px; }
    .contact-hero__orbit.one {
        width: 160px;
        height: 160px;
        top: -20px;
        inset-inline-end: 20px;
    }
    .contact-hero__orbit.two {
        width: 130px;
        height: 130px;
        inset-inline-start: 20px;
        bottom: -15px;
    }

    .error-page { padding: 40px 22px; }
    .error-page__code { letter-spacing: -3px; }
    .error-page__lead { font-size: 13px; }
    .error-page__actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   34. RESPONSIVE — TINY
   ========================================================================== */

@media (max-width: 360px) {
    h1 { font-size: 37px; }
    .actions { gap: 8px; }
    .btn { padding: 11px 12px; }
    .logo-row { gap: 9px; }
    .stats { grid-template-columns: 1fr; }
    .stat { display: flex; align-items: center; gap: 10px; }
    .stat-icon { margin: 0; }
    .service-card { padding: 13px 10px; }
    .service-card h3 { font-size: 12px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   35. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .mobile-nav-item,
    .mobile-search-panel { transition: none; }
}