/* =============================================================================
   Theme: Signature
   The owner's own design language (Servio / Medist), adapted to a developer
   portfolio. Full brief and the adaptation decisions: design-system/MASTER.md.

   Calm, trustworthy, bold-but-warm:
     * canvas tinted toward the brand hue; white cards, 22–28px radius, soft
       shadow + faint ring — never hard borders; dashed dividers inside
     * one brand colour (teal, generated scale below) used as a 600→700→900
       gradient for heroes, the footer band and active pills only
     * amber for the single key action on brand surfaces, amber-300 for icons
       and highlights on glass
     * vivid gradient icon tiles with a light bubble in the corner
     * heavy headings (800/900) with a gradient accent bar; pills everywhere
     * Vazirmatn for both languages, logical properties only

   Shell and hero markup: resources/views/themes/signature/. Every other
   section is the shared markup, restyled here. Screen only (loaded with
   media="screen" and wrapped below) — the printed résumé never sees it.

   Structure
     01 Tokens            06 Projects & other work     11 Case-study pages
     02 Base & buttons    07 Experience                12 Blog
     03 Header            08 Skills                    13 Responsive
     04 Hero & stats      09 Contact                   14 Motion
     05 Sections & about  10 Footer, dock, to-top
   ========================================================================== */

@media screen {

/* ============================================================ 01 TOKENS === */
:root {
  /* brand from #0d9488 (OKLCH hue 185°) — signature-ui brand-scale.mjs.
     Contrast: white on 700 6.25, white on 600 4.62, 700 on 50 5.84. */
  --brand-50: #eefaf8;
  --brand-100: #d5f2ee;
  --brand-200: #afe6de;
  --brand-300: #80d3c8;
  --brand-400: #53bcaf;
  --brand-500: #27a094;
  --brand-600: #028379;
  --brand-700: #026d64;
  --brand-800: #01574f;
  --brand-900: #004841;
  --brand-950: #002b27;
  --sg-accent: #ad459c;
  --shadow-rgb: 0, 43, 39;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-900: #78350f;
  --amber-950: #451a03;

  /* Screen face: Vazirmatn for both languages. --font-resume (Inter) is left
     alone on purpose — print still measures the résumé in it. */
  --font-latin: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fa: "Vazirmatn", ui-sans-serif, Tahoma, system-ui, sans-serif;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --wrap: 1200px;
  --header-h: 72px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --shadow-soft: 0 2px 10px rgba(var(--shadow-rgb), 0.06);
  --shadow-card: 0 6px 24px rgba(var(--shadow-rgb), 0.07);
  --shadow-float: 0 12px 32px rgba(var(--shadow-rgb), 0.14);
  --amber-shadow: 0 10px 24px -12px rgba(180, 83, 9, 0.7);

  --sg-band: linear-gradient(135deg, var(--brand-600), var(--brand-700) 50%, var(--brand-900));
  /* Horizontal variant for bands built from two stacked elements (crumbs +
     page head): a gradient that only varies along the inline axis has no seam. */
  --sg-band-flat: linear-gradient(90deg, var(--brand-600), var(--brand-700) 50%, var(--brand-900));
  --sg-dots: radial-gradient(rgba(255, 255, 255, 0.07) 1.6px, transparent 1.7px) 0 0 / 22px 22px;
  --sg-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V40C240 8 480-4 720 6s480 46 720 34v40z'/%3E%3C/svg%3E");

  --tile-mint: linear-gradient(135deg, #2dd4bf, #0e7490);
  --tile-emerald: linear-gradient(135deg, #34d399, #0f766e);
  --tile-sky: linear-gradient(135deg, #38bdf8, #2563eb);
  --tile-peach: linear-gradient(135deg, #fbbf24, #ea580c);
  --tile-lilac: linear-gradient(135deg, #a78bfa, #7e22ce);
  --tile-rose: linear-gradient(135deg, #f472b6, #e11d48);
  --tile-butter: linear-gradient(135deg, #facc15, #d97706);
  --tile-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}

/* Light (the canon). The base tokens styles.css reads are remapped too, so any
   rule this file does not restate still lands in the language. */
[data-theme="light"] {
  --canvas: #f3f8f7;
  --surface: #ffffff;
  --surface-2: #f7fbfa;
  --ink: #132623;
  --ink-muted: #576765;
  --ink-subtle: #8f9b99;
  --line: #e1eae9;
  --chip: #eef3f4;
  --num: var(--brand-800);
  --brand-ink: var(--brand-700);
  --brand-soft: var(--brand-50);
  --brand-soft-ink: var(--brand-800);
  --band-soft: linear-gradient(180deg, var(--brand-50), var(--canvas));

  --bg: var(--canvas);
  --bg-alt: var(--brand-50);
  --border: var(--line);
  --border-strong: #c9d8d5;
  --text: var(--ink);
  --text-dim: var(--ink-muted);
  --text-faint: #667674;
  --accent: var(--brand-700);
  --accent-strong: var(--brand-800);
  --accent-soft: var(--brand-50);
  --accent-line: var(--brand-200);
  --accent-ink: #ffffff;
  --shadow-sm: var(--shadow-soft);
  --shadow: var(--shadow-card);
  --shadow-lg: var(--shadow-float);
  --glow: rgba(2, 109, 100, 0.18);
  --header-bg: rgba(255, 255, 255, 0.9);
  color-scheme: light;
}

/* Dark is optional in the canon; this is its documented variant, tinted to the
   brand. Gradient bands stay exactly as they are. */
[data-theme="dark"] {
  --canvas: #0c1715;
  --surface: #13211e;
  --surface-2: #182a26;
  --ink: #e6f0ee;
  --ink-muted: #a3b5b1;
  --ink-subtle: #7d908c;
  --line: #24352f;
  --chip: #1c2e2a;
  --num: var(--brand-300);
  --brand-ink: var(--brand-300);
  --brand-soft: rgba(83, 188, 175, 0.12);
  --brand-soft-ink: var(--brand-200);
  --band-soft: linear-gradient(180deg, #0f1f1c, var(--canvas));
  --shadow-rgb: 0, 0, 0;

  --bg: var(--canvas);
  --bg-alt: #0f1f1c;
  --border: var(--line);
  --border-strong: #2f4540;
  --text: var(--ink);
  --text-dim: var(--ink-muted);
  --text-faint: #8fa29e;
  --accent: var(--brand-400);
  --accent-strong: var(--brand-300);
  --accent-soft: rgba(83, 188, 175, 0.12);
  --accent-line: rgba(83, 188, 175, 0.35);
  --accent-ink: #00221f;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.5);
  --glow: rgba(83, 188, 175, 0.14);
  --header-bg: rgba(19, 33, 30, 0.88);
  color-scheme: dark;
}

/* ===================================================== 02 BASE & BUTTONS === */
body {
  background: var(--canvas);
  line-height: 1.75;
  font-feature-settings: normal;
}
html[lang="fa"] body { line-height: 1.85; }

.ambient { display: none; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.015em; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4 { line-height: 1.5; }

a { color: var(--brand-ink); }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 8px;
}
::selection { background: var(--brand-100); color: var(--brand-900); }

.icon { stroke-width: 1.8; }

.wrap { max-width: var(--wrap); padding-inline: var(--gutter); }

.skip-link { background: var(--brand-700); color: #fff; border-radius: 14px; font-weight: 700; }
.skip-link:focus { color: #fff; }

.progress__bar { background: linear-gradient(90deg, var(--brand-400), var(--amber-400)); }

/* --- shared buttons (.btn is the site's existing button) --- */
.btn,
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transform: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover, .btn:active { transform: none; }
.btn .icon, .sg-btn .icon { inline-size: 18px; block-size: 18px; }

.btn--primary {
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--brand-800); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:active { background: var(--brand-900); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
}
.btn--ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--brand-200);
}

.btn--sm { min-block-size: 40px; padding: 0.4rem 0.9rem; border-radius: 12px; font-size: 0.875rem; }
.btn--block { inline-size: 100%; }

.sg-btn--lg { min-block-size: 48px; padding-inline: 1.5rem; border-radius: 16px; font-size: 1rem; }

/* Key action on brand surfaces */
.sg-btn--amber {
  background: var(--amber-400);
  color: var(--amber-950);
  font-weight: 800;
  box-shadow: var(--amber-shadow);
}
.sg-btn--amber:hover { background: var(--amber-300); color: var(--amber-950); }

/* Secondary action on brand surfaces */
.sg-btn--glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sg-btn--glass:hover { background: #fff; color: var(--brand-800); }

/* Icon button (header) */
.btn-icon {
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  border-radius: 16px;
  background: var(--canvas);
  color: var(--ink-muted);
}
.btn-icon:hover { background: var(--brand-soft); color: var(--brand-soft-ink); border: 0; }
.btn-icon .icon { inline-size: 20px; block-size: 20px; }
.lang-btn { inline-size: auto; padding-inline: 0.85rem; gap: 0.4rem; font-weight: 800; }

/* Vivid gradient icon tile + corner bubble */
.sg-tile {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: var(--tile-mint);
  box-shadow: var(--tile-shadow);
}
.sg-tile::after {
  content: "";
  position: absolute;
  inset-block-start: -12px;
  inset-inline-end: -12px;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.sg-tile .icon { position: relative; inline-size: 22px; block-size: 22px; }
.sg-tile--mint { background: var(--tile-mint); }
.sg-tile--emerald { background: var(--tile-emerald); }
.sg-tile--sky { background: var(--tile-sky); }
.sg-tile--peach { background: var(--tile-peach); }
.sg-tile--lilac { background: var(--tile-lilac); }
.sg-tile--rose { background: var(--tile-rose); }
.sg-tile--butter { background: var(--tile-butter); }

/* Shared card language for every boxed thing in the shared markup */
.card {
  background: var(--surface);
  border: 0;
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.card--quiet { background: var(--surface); }
.card__title {
  font-size: 1.0625rem;
  font-weight: 800;
  gap: 0.625rem;
  margin-block-end: 1rem;
}
.card__title::before {
  content: "";
  inline-size: 6px;
  block-size: 20px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--brand-400), var(--brand-700));
}

/* ============================================================ 03 HEADER === */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-block-end: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header.is-stuck { border-block-end-color: var(--line); box-shadow: var(--shadow-soft); }
.site-header__inner { gap: 1rem; }

.brand { gap: 0.7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  position: relative;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 13px;
  background: var(--brand-700);
  color: #fff;
  font-family: var(--font-latin);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 20px -12px var(--brand-700);
}
/* Servio's logo carries one accent dot; this mark carries an amber one. */
.brand__mark::after {
  content: "";
  position: absolute;
  inset-block-start: -3px;
  inset-inline-end: -3px;
  inline-size: 11px;
  block-size: 11px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 0 2.5px var(--surface);
}
.brand__text strong { font-size: 0.975rem; font-weight: 900; }
.brand__text small { font-size: 0.75rem; color: var(--ink-muted); font-weight: 500; }

.nav { gap: 0.25rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 40px;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 700;
}
.nav a:hover { color: var(--brand-soft-ink); background: var(--brand-soft); }
.nav a[aria-current="true"],
.nav a[aria-current="page"] {
  color: var(--brand-soft-ink);
  background: var(--brand-soft);
  font-weight: 800;
}

.site-header__actions { gap: 0.5rem; }
.header-cv { min-block-size: 44px; border-radius: 16px; padding-inline: 1rem; }

/* Mobile menu → a floating sheet under the header */
.mobile-nav {
  inset-block-start: calc(var(--header-h) + 8px);
  inset-inline: 12px;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  padding: 0.5rem;
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
}
.mobile-nav nav { gap: 0.25rem; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-block-size: 48px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}
.mobile-nav a:hover { background: var(--brand-soft); color: var(--brand-soft-ink); }
.mobile-nav a[aria-current="true"],
.mobile-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 12px 22px -14px var(--brand-700);
}
.scrim { background: color-mix(in srgb, var(--brand-950) 45%, transparent); backdrop-filter: blur(2px); }

/* ===================================================== 04 HERO & STATS === */
.sg-hero { padding: 0; }

.sg-hero__band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--sg-dots), var(--sg-band);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(6.5rem, 11vw, 9rem);
}
.sg-hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
.sg-hero__glow--a {
  inset-block-start: -10rem;
  inset-inline-end: -8rem;
  inline-size: 420px;
  block-size: 420px;
  background: color-mix(in srgb, var(--brand-300) 25%, transparent);
}
.sg-hero__glow--b {
  inset-block-end: -8rem;
  inset-inline-start: -6rem;
  inline-size: 360px;
  block-size: 360px;
  background: rgba(252, 211, 77, 0.1);
}
.sg-hero__motif {
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  inset-block-end: clamp(2.5rem, 5vw, 4rem);
  inline-size: 100%;
  block-size: clamp(56px, 7vw, 96px);
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.sg-hero__curve {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  inline-size: 100%;
  block-size: clamp(36px, 5vw, 64px);
  color: var(--canvas);
  pointer-events: none;
}

.sg-hero .hero__inner { position: relative; gap: clamp(2rem, 6vw, 5rem); }

.sg-hero .hero__eyebrow {
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-block-end: 1.25rem;
}
.sg-hero .hero__sep { color: rgba(255, 255, 255, 0.5); }
.sg-hero .dot {
  background: var(--amber-300);
  box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.25);
}

.sg-hero .hero__name {
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  margin-block-end: 0.75rem;
}
html[lang="fa"] .sg-hero .hero__name { line-height: 1.45; }

.sg-hero .hero__role {
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem);
  font-weight: 800;
  color: var(--amber-300);
  margin-block-end: 1.25rem;
}
.sg-hl { position: relative; display: inline-block; padding-block-end: 0.3em; }
.sg-hl__line {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -0.05em;
  inline-size: 100%;
  block-size: 0.42em;
  color: var(--amber-400);
  opacity: 0.85;
}

.sg-hero .hero__tagline {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
  max-inline-size: 58ch;
  margin-block-end: 1.75rem;
}
.sg-hero .hero__cta { gap: 0.75rem; margin-block-end: 1.5rem; }

.sg-hero .hero__socials { gap: 0.5rem; }
.sg-hero .hero__socials a {
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: none;
}
.sg-hero .hero__socials a:hover {
  background: #fff;
  color: var(--brand-800);
  border: 0;
  transform: none;
}
.sg-hero .hero__socials .icon { inline-size: 20px; block-size: 20px; }

/* Portrait on an organic glass blob, with two floating fact chips */
.sg-hero .portrait { inline-size: clamp(200px, 23vw, 290px); }
.sg-portrait__blob {
  position: absolute;
  inset: -9%;
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.sg-hero .portrait img {
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22), 0 30px 60px -24px rgba(0, 20, 18, 0.7);
}
.sg-hero .portrait__ring { display: none; }

.sg-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  padding-inline: 0.5rem 0.95rem;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}
.sg-float--a { inset-block-start: 4%; inset-inline-start: -26%; }
.sg-float--b { inset-block-end: 2%; inset-inline-end: -20%; }
.sg-float__icon {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--tile-emerald);
  flex: none;
}
.sg-float__icon--pin { background: var(--tile-peach); }
.sg-float__icon .icon { inline-size: 18px; block-size: 18px; }
.sg-float__text { display: grid; line-height: 1.35; }
.sg-float__text small { font-size: 0.6875rem; font-weight: 600; color: var(--ink-muted); }
.sg-float__text b { font-size: 0.8125rem; font-weight: 800; }

@media (prefers-reduced-motion: no-preference) {
  .sg-float--a { animation: sg-float 6s ease-in-out infinite; }
  .sg-float--b { animation: sg-float 7s ease-in-out -2s infinite; }
}
@keyframes sg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Stats: the white card that overlaps the hero's curved edge */
.sg-hero__stats {
  position: relative;
  z-index: 2;
  margin-block-start: clamp(-5.5rem, -8vw, -3.75rem);
}
.sg-hero .stats {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  overflow: visible;
}
.sg-hero .stats li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: transparent;
  text-align: start;
}
.sg-hero .stats li:hover { background: color-mix(in srgb, var(--brand-soft) 70%, transparent); }
.sg-stat__text { display: grid; min-inline-size: 0; }
.sg-hero .stat__value {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--num);
}
.sg-hero .stat__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.5;
}
@media (min-width: 900px) {
  .sg-hero .stats li + li { position: relative; }
  .sg-hero .stats li + li::before {
    content: "";
    position: absolute;
    inset-block: 18%;
    inset-inline-start: 0;
    border-inline-start: 1px dashed var(--line);
  }
}

/* ================================================ 05 SECTIONS & ABOUT === */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.sg-hero + .section { padding-block-start: clamp(3rem, 6vw, 4.5rem); }

.section--alt { background: var(--band-soft); }
.section--alt::before,
.section--alt::after { display: none; }

.section__head { margin-block-end: clamp(1.75rem, 4vw, 2.5rem); }

/* Kicker → small brand pill */
.kicker {
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-block-end: 0.75rem;
}
html[lang="fa"] .kicker { font-size: 0.8125rem; }
.kicker::before {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* Section title with the gradient accent bar */
.section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 900;
}
.section__title::before {
  content: "";
  inline-size: 6px;
  block-size: 1.1em;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--brand-400), var(--brand-700));
}
.subsection__title { font-size: 1.25rem; font-weight: 800; gap: 0.75rem; }
.subsection__title::after { block-size: 0; border-block-start: 1px dashed var(--border-strong); background: none; }

/* About */
.about { gap: clamp(1.25rem, 3vw, 1.75rem); }
.about__prose {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.about__prose p {
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--ink-muted);
  margin-block-end: 1rem;
}
.about__prose p:first-child { color: var(--ink); font-weight: 500; }
.about__side { gap: 1rem; }

.deflist dt { color: var(--ink-muted); }
.deflist dd { font-weight: 700; text-align: end; }
.deflist > div { border-block-end-color: var(--line); }

.edu + .edu { margin-block-start: 0.85rem; padding-block-start: 0.85rem; border-block-start: 1px dashed var(--line); }
.edu__degree { font-weight: 800; }
.edu__school { color: var(--brand-ink); font-weight: 700; }
.edu__period { color: var(--ink-muted); }

.lang__name { font-weight: 800; }
.lang__level {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.lang__track { block-size: 8px; background: var(--brand-soft); }
.lang__fill { background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
html[dir="rtl"] .lang__fill { background: linear-gradient(270deg, var(--brand-500), var(--brand-700)); }

/* ============================================ 06 PROJECTS & OTHER WORK === */
.projects { gap: 1.25rem; }

.project {
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.project::before { display: none; }
.project:hover {
  transform: none;
  border-color: transparent;
  box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200);
}
.project--linked:focus-within { outline: 2px solid var(--brand-500); outline-offset: 3px; }

/* The index becomes a vivid number tile; neighbours get different colours. */
.project__index {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  margin-block-end: 1rem;
  border-radius: 18px;
  overflow: hidden;
  font-family: var(--font-latin);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
  background: var(--tile-mint);
  box-shadow: var(--tile-shadow);
}
.project__index::after {
  content: "";
  position: absolute;
  inset-block-start: -12px;
  inset-inline-end: -12px;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.project:nth-child(6n + 2) .project__index { background: var(--tile-sky); }
.project:nth-child(6n + 3) .project__index { background: var(--tile-peach); }
.project:nth-child(6n + 4) .project__index { background: var(--tile-lilac); }
.project:nth-child(6n + 5) .project__index { background: var(--tile-rose); }
.project:nth-child(6n + 6) .project__index { background: var(--tile-emerald); }

.project__name { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); font-weight: 900; }
.project__titlelink:hover,
.project--linked:hover .project__name { color: var(--brand-ink); }
.project__meta { color: var(--brand-ink); font-weight: 700; }
.project__period {
  border: 0;
  background: var(--chip);
  color: var(--ink-muted);
  font-weight: 700;
  padding: 0.25rem 0.7rem;
}

/* Case-study affordance: always visible as a soft chip (Servio's card CTA) */
.project__cta {
  min-block-size: 36px;
  padding-inline: 0.85rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-weight: 800;
  opacity: 1;
  transform: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
html[dir="rtl"] .project__cta { transform: none; }
.project--linked:hover .project__cta { background: var(--brand-600); color: #fff; }
.project__cta .icon { transition: transform 0.2s var(--ease); }
html[dir="ltr"] .project--linked:hover .project__cta .icon { transform: translateX(2px); }
html[dir="rtl"] .project--linked:hover .project__cta .icon { transform: scaleX(-1) translateX(2px); }

.project__link { color: var(--brand-ink); font-weight: 700; margin-inline-start: 0.5rem; }

.project__body {
  padding-inline-start: clamp(1.25rem, 3vw, 2rem);
  border-inline-start: 1px dashed var(--line);
}
.project__summary { font-size: 1rem; line-height: 1.9; color: var(--ink-muted); }
.project__highlights li { color: var(--ink); font-size: 0.9375rem; }
.project__highlights li::before {
  inline-size: 7px;
  block-size: 7px;
  border: 0;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.tag {
  border: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
}
.project:hover .tag { border-color: transparent; }

.otherwork { gap: 1rem; }
.otherwork li {
  border: 0;
  border-radius: 22px;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.otherwork li:hover { transform: none; border-color: transparent; box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200); }
.otherwork h4 { font-size: 1.0625rem; font-weight: 800; }
.otherwork__item:hover h4 a { color: var(--brand-ink); }
.otherwork__item:focus-within { outline-color: var(--brand-500); }
.otherwork p { color: var(--ink-muted); padding-block-end: 0.75rem; border-block-end: 1px dashed var(--line); }

/* ======================================================== 07 EXPERIENCE === */
.timeline { gap: 1rem; padding-inline-start: clamp(1.75rem, 4vw, 2.5rem); }
.timeline::before {
  inset-block: 1.6rem 1.6rem;
  inset-inline-start: 6px;
  inline-size: 0;
  border-inline-start: 2px dashed var(--border-strong);
  background: none;
}

.job {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.job:hover { box-shadow: var(--shadow-card), 0 0 0 1px var(--brand-200); }
.job::before {
  inset-block-start: 1.55rem;
  inset-inline-start: calc(-1 * clamp(1.75rem, 4vw, 2.5rem));
  inline-size: 14px;
  block-size: 14px;
  border: 0;
  background: var(--border-strong);
  box-shadow: 0 0 0 4px var(--canvas);
}
.job:hover::before { border: 0; background: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-soft); }
.job--current {
  box-shadow: var(--shadow-card), 0 0 0 2px var(--brand-200);
}
.job--current::before {
  background: var(--brand-600);
  box-shadow: 0 0 0 4px var(--brand-100);
}
[data-theme="dark"] .job--current::before { box-shadow: 0 0 0 4px rgba(83, 188, 175, 0.25); }

.job__role { font-size: 1.125rem; font-weight: 900; gap: 0.6rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-900);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.badge::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--amber-500);
}
.job__period {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 0.75rem;
  font-weight: 800;
}
.job__company { color: var(--brand-ink); font-weight: 800; margin-block: 0.35rem 0.6rem; }
.job__company span { color: var(--ink-muted); font-weight: 600; }
.job__desc {
  color: var(--ink-muted);
  line-height: 1.9;
  padding-block-start: 0.75rem;
  border-block-start: 1px dashed var(--line);
}

/* ============================================================ 08 SKILLS === */
.skills { gap: 1rem; }
.skillgroup {
  border: 0;
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 1.5rem);
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.skillgroup:hover { transform: none; border-color: transparent; box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200); }
.skillgroup__head {
  gap: 0.85rem;
  padding-block-end: 1rem;
  margin-block-end: 1rem;
  border-block-end: 1px dashed var(--line);
}
.skillgroup__icon {
  position: relative;
  inline-size: 48px;
  block-size: 48px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: var(--tile-mint);
  box-shadow: var(--tile-shadow);
}
.skillgroup__icon::after {
  content: "";
  position: absolute;
  inset-block-start: -12px;
  inset-inline-end: -12px;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.skillgroup__icon .icon { position: relative; inline-size: 22px; block-size: 22px; }
.skillgroup:nth-child(6n + 2) .skillgroup__icon { background: var(--tile-sky); }
.skillgroup:nth-child(6n + 3) .skillgroup__icon { background: var(--tile-lilac); }
.skillgroup:nth-child(6n + 4) .skillgroup__icon { background: var(--tile-peach); }
.skillgroup:nth-child(6n + 5) .skillgroup__icon { background: var(--tile-rose); }
.skillgroup:nth-child(6n + 6) .skillgroup__icon { background: var(--tile-emerald); }
.skillgroup__title { font-size: 1.0625rem; font-weight: 900; }

.chips { gap: 0.5rem; }
.chip {
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
}
.chip:hover {
  color: var(--brand-soft-ink);
  background: var(--brand-soft);
  border-color: transparent;
  transform: none;
}

/* =========================================================== 09 CONTACT === */
.contact { gap: clamp(1.25rem, 3vw, 1.75rem); }
.contact__info {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.contact__intro { font-size: 1.0625rem; line-height: 1.9; color: var(--ink-muted); margin-block-end: 1.25rem; }
.contact__list { gap: 0; margin-block-end: 1.5rem; }
.contact__row {
  gap: 0.9rem;
  padding: 0.8rem 0.25rem;
  border: 0;
  border-block-end: 1px dashed var(--line);
  border-radius: 0;
  background: transparent;
}
.contact__row:last-child { border-block-end: 0; }
.contact__row:hover { background: transparent; border-color: var(--line); }
/* The row icon is drawn as a vivid tile (padding on the outer <svg> box). */
.contact__row > .icon {
  inline-size: 44px;
  block-size: 44px;
  padding: 11px;
  border-radius: 15px;
  color: #fff;
  background: var(--tile-mint);
  box-shadow: var(--tile-shadow);
}
.contact__row:nth-child(6n + 2) > .icon { background: var(--tile-sky); }
.contact__row:nth-child(6n + 3) > .icon { background: var(--tile-lilac); }
.contact__row:nth-child(6n + 4) > .icon { background: var(--tile-rose); }
.contact__row:nth-child(6n + 5) > .icon { background: var(--tile-peach); }
.contact__row:nth-child(6n + 6) > .icon { background: var(--tile-emerald); }
.contact__label { font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; text-transform: none; }
.contact__value { font-weight: 800; color: var(--ink); }
a.contact__value:hover { color: var(--brand-ink); }

.copy-btn {
  inline-size: 40px;
  block-size: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
}
.copy-btn:hover { background: var(--brand-100); color: var(--brand-800); border: 0; }
.copy-btn.is-copied { background: var(--brand-600); color: #fff; border: 0; }

.contact__actions { gap: 0.75rem; padding-block-start: 1.25rem; border-block-start: 1px dashed var(--line); }

.contact__form.card { padding: clamp(1.25rem, 3.5vw, 2rem); border-radius: 24px; gap: 1.1rem; }
.field { gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  min-block-size: 48px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.field textarea { min-block-size: 130px; line-height: 1.8; }
.field input:focus,
.field textarea:focus { border: 0; box-shadow: inset 0 0 0 2px var(--brand-500); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-subtle); }
.contact__form .btn--primary { min-block-size: 48px; border-radius: 16px; font-size: 1rem; }

.form__ok {
  border: 0;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  background: #e9f7ef;
  color: #17693c;
  box-shadow: inset 0 0 0 1px #c8ebd6;
}
.form__error { color: #c53030; font-weight: 600; }
[data-theme="dark"] .form__ok { background: rgba(31, 157, 85, 0.14); color: #8be0ad; box-shadow: inset 0 0 0 1px rgba(31, 157, 85, 0.35); }
[data-theme="dark"] .form__error { color: #f59a9a; }

/* ================================================ 10 FOOTER, DOCK, TOP === */
.sg-footer { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }

.sg-footer__band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 32px;
  color: #fff;
  background: var(--sg-dots), var(--sg-band);
  box-shadow: 0 22px 44px -30px var(--brand-900);
}
.sg-footer__glow {
  position: absolute;
  z-index: -1;
  inset-block-start: -9rem;
  inset-inline-end: -6rem;
  inline-size: 360px;
  block-size: 360px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-300) 25%, transparent);
  filter: blur(60px);
}
.sg-footer__id { display: flex; align-items: center; gap: 1rem; min-inline-size: 0; }
.sg-footer__mark {
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  border-radius: 18px;
  flex: none;
  background: #fff;
  color: var(--brand-700);
  font-family: var(--font-latin);
  font-weight: 900;
}
.sg-footer__name { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 900; line-height: 1.4; }
.sg-footer__role { color: var(--amber-300); font-weight: 700; font-size: 0.9375rem; }
.sg-footer__line {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
  font-weight: 700;
}
.sg-footer__live {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--amber-300);
  box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.25);
}
.sg-footer__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.sg-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-block: clamp(2rem, 5vw, 2.75rem);
}
.sg-footer__about p { color: var(--ink-muted); line-height: 1.9; max-inline-size: 42ch; }
.sg-footer__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--ink);
}
.sg-footer__head::before {
  content: "";
  inline-size: 5px;
  block-size: 16px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--brand-400), var(--brand-700));
}
.sg-footer__col ul { display: grid; gap: 0.15rem; }
.sg-footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 36px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.sg-footer__col a:hover { color: var(--brand-ink); }
.sg-footer__col .icon { inline-size: 16px; block-size: 16px; color: var(--brand-500); }

.sg-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px dashed var(--border-strong);
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

/* Floating mobile dock */
.sg-dock { display: none; }

.to-top {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 16px;
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-float);
}
.to-top:hover { background: var(--brand-800); }

/* ================================================ 11 CASE-STUDY PAGES === */
/* Project pages tint per-project with --case-hue; in this theme the accents
   stay on brand and the hue survives only in the cover/monogram tiles. */
[data-theme] .case {
  --case-accent: var(--brand-ink);
  --case-soft: var(--brand-soft);
  --case-line: var(--brand-200);
  --case-glow: rgba(255, 255, 255, 0.14);
}

/* Breadcrumb + hero read as one full-bleed band. Both use the horizontal
   gradient so the two boxes meet without a seam. */
.case > .crumbs,
.post > .crumbs,
.blog-crumbs {
  color: rgba(255, 255, 255, 0.75);
  background: var(--sg-dots), var(--sg-band-flat);
  padding-block: 1.25rem 0;
}
.post > .crumbs,
main > .crumbs.wrap {
  max-inline-size: none;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}
.case > .crumbs ol,
.post > .crumbs ol,
main > .crumbs.wrap ol {
  display: inline-flex;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}
.case > .crumbs a,
.post > .crumbs a,
main > .crumbs.wrap a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.case > .crumbs a:hover,
.post > .crumbs a:hover,
main > .crumbs.wrap a:hover { color: var(--amber-300); }
.case > .crumbs [aria-current="page"],
.post > .crumbs [aria-current="page"],
main > .crumbs.wrap [aria-current="page"] { color: #fff; font-weight: 800; }
.crumbs .icon { opacity: 0.6; }
main > .crumbs.wrap { background: var(--sg-dots), var(--sg-band-flat); padding-block: 1.25rem 0; }

/* Stacked band boxes meet on fractional pixels; a 1px overlap stops the
   canvas bleeding through as a hairline. The bands clip sideways (no page
   overflow from the glows) but let the curve reach 3px past their last,
   fractional row, so no sliver of gradient shows under it. */
.case > .crumbs + .case-hero,
.post > .crumbs + .post__head,
main > .crumbs.wrap + .blog-head .section__head { margin-block-start: -1px; }
.sg-hero__band,
.case-hero,
.post__head,
.blog-head .section__head {
  overflow: visible;
  overflow-x: clip;
  clip-path: inset(0 0 -3px 0);
}

/* The curved bottom edge, as a mask so it always matches the canvas colour */
.case-hero::after,
.post__head::after,
.blog-head .section__head::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  block-size: clamp(36px, 5vw, 64px);
  background: var(--canvas);
  -webkit-mask: var(--sg-curve) center / 100% 100% no-repeat;
  mask: var(--sg-curve) center / 100% 100% no-repeat;
  pointer-events: none;
}

.case-hero {
  color: #fff;
  background: var(--sg-dots), var(--sg-band-flat);
  padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(5.5rem, 10vw, 7.5rem);
}
.case-hero::before {
  /* Kept clear of the top edge: the crumbs above are a separate box, and a
     glow clipped there would show as a seam. */
  inset-block-start: 2rem;
  inset-inline-end: -10rem;
  inline-size: 420px;
  block-size: 420px;
  background: color-mix(in srgb, var(--brand-300) 28%, transparent);
  filter: blur(64px);
}
.case-hero__eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
}
.case-hero__title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  color: #fff;
}
html[lang="fa"] .case-hero__title { line-height: 1.45; }
.case-hero__summary { color: rgba(255, 255, 255, 0.86); font-size: 1.0625rem; line-height: 1.9; }

.case-facts {
  gap: 0.6rem;
  padding: 0;
  border: 0;
}
.case-facts__item {
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.case-facts dt { color: rgba(255, 255, 255, 0.72); letter-spacing: 0; text-transform: none; font-size: 0.75rem; font-weight: 600; }
.case-facts dd { color: #fff; font-weight: 800; }

/* The one key action on the band → amber */
.case-hero__cta.btn--primary {
  background: var(--amber-400);
  color: var(--amber-950);
  font-weight: 800;
  box-shadow: var(--amber-shadow);
}
.case-hero__cta.btn--primary:hover { background: var(--amber-300); color: var(--amber-950); }

.case-cover {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 30px 60px -28px rgba(0, 20, 18, 0.75);
  background: var(--surface);
}
[data-theme] .case-cover__generated {
  background:
    radial-gradient(ellipse at 75% 10%, var(--brand-soft), transparent 60%),
    var(--surface);
}
.case-cover__grid { color: var(--brand-500); opacity: 0.1; }
.case-cover__mono { border-radius: 22px; }
.case-cover__name { color: var(--ink); font-weight: 900; letter-spacing: 0; }
.case-cover__tags { color: var(--brand-ink); letter-spacing: 0; text-transform: none; font-weight: 700; }

/* First block after the hero overlaps its curve */
.case-hero + .case-metrics,
.case-hero + .case-story {
  position: relative;
  z-index: 2;
  margin-block-start: clamp(-4.5rem, -7vw, -3.25rem);
  padding-block-start: 0;
}
.case-hero + .case-metrics .case-eyebrow {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.case-section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.case-section--alt { background: var(--band-soft); }
.case-section--alt::before,
.case-section--alt::after { display: none; }

.case-eyebrow {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8125rem;
  font-weight: 800;
}
.case-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
}
.case-title::before {
  content: "";
  inline-size: 6px;
  block-size: 1.1em;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--brand-400), var(--brand-700));
}

.metrics {
  gap: 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  overflow: visible;
}
.metrics li { position: relative; border-radius: 20px; background: transparent; }
.metrics li:hover { background: color-mix(in srgb, var(--brand-soft) 70%, transparent); }
.metrics li + li::before {
  content: "";
  position: absolute;
  inset-block: 20%;
  inset-inline-start: 0;
  border-inline-start: 1px dashed var(--line);
}
.metrics__value { font-weight: 900; letter-spacing: 0; color: var(--num); }
.metrics__label { color: var(--ink-muted); font-weight: 600; }

.case-story .wrap { gap: 1.25rem; }
.chapter,
.chapter:first-child {
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.case-hero + .case-story .chapter:first-child { box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.chapter__num {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--tile-mint);
  box-shadow: var(--tile-shadow);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0;
}
.chapter:nth-child(4n + 2) .chapter__num { background: var(--tile-sky); }
.chapter:nth-child(4n + 3) .chapter__num { background: var(--tile-peach); }
.chapter:nth-child(4n + 4) .chapter__num { background: var(--tile-lilac); }
.chapter__title { font-weight: 900; letter-spacing: 0; }
.chapter__body {
  padding-inline-start: clamp(1rem, 3vw, 2rem);
  border-inline-start: 1px dashed var(--line);
}
.chapter__body p { font-size: 1rem; line-height: 1.95; color: var(--ink-muted); }
.chapter__body p:first-child { color: var(--ink); }

.builds { gap: 1rem; }
.builds li {
  border: 0;
  border-radius: 22px;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.builds li::before { display: none; }
.builds li:hover { transform: none; border-color: transparent; box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200); }
.builds__num {
  inline-size: 32px;
  block-size: 32px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  font-weight: 900;
}
.builds p { color: var(--ink); line-height: 1.85; }

.gallery { gap: 1rem; }
.gallery__btn {
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.gallery__btn:hover { transform: none; border-color: transparent; box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200); }
.gallery__zoom { border-radius: 12px; background: color-mix(in srgb, var(--brand-950) 60%, transparent); }
.gallery figcaption { color: var(--ink-muted); }
.lightbox::backdrop { background: color-mix(in srgb, var(--brand-950) 85%, transparent); }
.lightbox img { border-radius: 22px; }
.lightbox__close { border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

/* Pager (case + blog) */
.pager { gap: 1rem; }
.pager__link {
  border: 0;
  border-radius: 22px;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.pager__link:hover {
  transform: none;
  background: var(--surface);
  border-color: transparent;
  box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200);
}
.pager__dir { color: var(--brand-ink); font-weight: 800; letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.pager__link strong { font-weight: 900; letter-spacing: 0; }

.related { gap: 0.75rem; }
.related a {
  border: 0;
  border-radius: 20px;
  padding: 0.8rem 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.related a:hover { background: var(--surface); border-color: transparent; box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200); }
.related__swatch { inline-size: 44px; block-size: 44px; border-radius: 15px; box-shadow: var(--tile-shadow); }
.related__body strong { font-weight: 800; }
.related__body span { color: var(--ink-muted); }

/* Closing CTA → a brand band with amber action */
.case-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  color: #fff;
  background: var(--sg-dots), var(--sg-band);
  box-shadow: 0 22px 44px -30px var(--brand-900);
}
.case-cta p { color: #fff; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 900; }
.case-cta .btn--primary { background: var(--amber-400); color: var(--amber-950); font-weight: 800; box-shadow: var(--amber-shadow); }
.case-cta .btn--primary:hover { background: var(--amber-300); color: var(--amber-950); }
.case-cta .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.case-cta .btn--ghost:hover { background: #fff; color: var(--brand-800); }

/* ============================================================== 12 BLOG === */
.post-card, .post { --post-accent: var(--brand-ink); }

/* Blog index: crumbs + the section head form the band */
.blog-head { padding-block-start: 0; }
/* A band must never fade or slide in — it would open a gap under the crumbs. */
.blog-head .section__head.reveal { opacity: 1; transform: none; }
.blog-head > .wrap { max-inline-size: none; padding-inline: 0; }
.blog-head > .wrap > :not(.section__head) {
  margin-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}
.blog-head .section__head {
  position: relative;
  isolation: isolate;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(5.5rem, 10vw, 7rem);
  margin-block-end: 0;
  color: #fff;
  background: var(--sg-dots), var(--sg-band-flat);
}
.blog-head .section__head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: 1.5rem;
  inset-inline-end: -6rem;
  inline-size: 420px;
  block-size: 420px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-300) 28%, transparent);
  filter: blur(64px);
}
.blog-head .kicker { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.blog-head .kicker::before { background: var(--amber-300); }
.blog-head .section__title { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); }
.blog-head .section__title::before { background: linear-gradient(to bottom, var(--amber-300), var(--amber-500)); }
.blog-head__intro { color: rgba(255, 255, 255, 0.86); line-height: 1.9; }

/* Filters: the white card that overlaps the curve */
.blog-filters {
  position: relative;
  z-index: 2;
  gap: 1rem;
  margin-block: clamp(-4.5rem, -7vw, -3.25rem) clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.blog-filters__group + .blog-filters__group { padding-block-start: 1rem; border-block-start: 1px dashed var(--line); }
.blog-filters__label { color: var(--ink); font-weight: 800; letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.blog-chip {
  min-block-size: 40px;
  padding: 0.35rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-muted);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
}
.blog-chip:hover { color: var(--brand-soft-ink); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-200); }
.blog-chip.is-active,
.blog-chip.is-active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 10px 18px -12px var(--brand-700);
}
.blog-chip__count {
  min-inline-size: 22px;
  padding-inline: 0.4rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  opacity: 1;
}
.blog-chip.is-active .blog-chip__count { background: rgba(255, 255, 255, 0.2); color: #fff; }

.blog-head .blog-filters + .post-grid,
.blog-head .section__head + .post-grid,
.blog-head .section__head + .blog-empty { position: relative; z-index: 2; }
.blog-head .section__head + .post-grid,
.blog-head .section__head + .blog-empty { margin-block-start: clamp(-4.5rem, -7vw, -3.25rem); }

.post-grid { gap: 1.25rem; }
.post-card {
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow 0.25s var(--ease);
}
.post-card:hover { transform: none; border-color: transparent; box-shadow: var(--shadow-float), 0 0 0 1px var(--brand-200); }
.post-card:focus-within { outline-color: var(--brand-500); }
.post-card__media { border: 0; background: var(--surface-2); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
[data-theme] .post-card__generated {
  background:
    radial-gradient(ellipse at 75% 10%, var(--brand-100), transparent 60%),
    var(--brand-soft);
}
[data-theme="dark"] .post-card__generated { background: radial-gradient(ellipse at 75% 10%, rgba(83, 188, 175, 0.18), transparent 60%), var(--surface-2); }
.post-card__mono { border-radius: 18px; }
.post-card__body { gap: 0.6rem; padding: 1.25rem 1.35rem 1.35rem; }
.post-card__meta { color: var(--ink-muted); font-weight: 600; }
.post-card__cat {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-weight: 800;
  letter-spacing: 0;
}
.post-card__title { font-size: 1.125rem; font-weight: 900; line-height: 1.5; }
.post-card:hover .post-card__title { color: var(--brand-ink); }
.post-card__excerpt { color: var(--ink-muted); line-height: 1.85; }
.post-card__tags { padding-block-start: 0.75rem; border-block-start: 1px dashed var(--line); }

/* Stacked rotated-tile empty state */
.blog-empty.card {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 3.5rem 1.5rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.blog-empty.card::before {
  content: "";
  inline-size: 80px;
  block-size: 80px;
  margin-block-end: 1.25rem;
  border-radius: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2ZM22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7Z'/%3E%3C/svg%3E") center / 36px no-repeat,
    linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 10px -6px 0 -2px var(--brand-100), 0 12px 24px -10px var(--brand-700);
  rotate: -3deg;
}
.blog-empty__title { font-size: 1.0625rem; font-weight: 900; }
.blog-empty__hint { max-inline-size: 26rem; color: var(--ink-muted); line-height: 1.85; }

.blog-pager { gap: 0.75rem; }
.blog-pager__status {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 700;
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}

/* Single post */
.post__head {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--sg-dots), var(--sg-band-flat);
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(5.5rem, 10vw, 7rem);
}
.post__head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: 1.5rem;
  inset-inline-end: -6rem;
  inline-size: 420px;
  block-size: 420px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-300) 28%, transparent);
  filter: blur(64px);
}
.post__cat a {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}
.post__cat a:hover { background: #fff; color: var(--brand-800); }
.post__title { color: #fff; font-weight: 900; letter-spacing: 0; line-height: 1.25; }
html[lang="fa"] .post__title { line-height: 1.5; }
.post__excerpt { color: rgba(255, 255, 255, 0.86); line-height: 1.9; }
.post__meta { color: rgba(255, 255, 255, 0.78); font-weight: 600; }

.post__head + .wrap {
  position: relative;
  z-index: 2;
  margin-block-start: clamp(-4.5rem, -7vw, -3.25rem);
}
.post__cover {
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}

.prose {
  max-inline-size: 820px;
  margin-inline: auto;
  padding: clamp(1.4rem, 4vw, 2.75rem);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  line-height: 1.95;
}
.post__head + .wrap .prose { box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.prose h2, .prose h3 { font-weight: 900; letter-spacing: 0; }
.prose a { color: var(--brand-ink); font-weight: 600; text-decoration-color: var(--brand-200); }
.prose blockquote {
  border: 0;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: var(--brand-soft);
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--brand-500);
}
html[dir="rtl"] .prose blockquote { box-shadow: inset -4px 0 0 var(--brand-500); }
.prose code { border-radius: 8px; }
.prose pre { border-radius: 18px; }
.prose hr { border: 0; border-block-start: 1px dashed var(--border-strong); }

.post__tags { max-inline-size: 820px; border-block-start: 1px dashed var(--line); }
.tag--link:hover { color: #fff; background: var(--brand-600); border-color: transparent; }
.post__nav .pager { max-inline-size: 820px; margin-inline: auto; }

/* ======================================================= 13 RESPONSIVE === */
@media (max-width: 1100px) {
  .sg-float--a { inset-inline-start: -14%; }
  .sg-float--b { inset-inline-end: -10%; }
}

@media (max-width: 980px) {
  .project__body {
    padding-inline-start: 0;
    padding-block-start: 1.25rem;
    border-inline-start: 0;
    border-block-start: 1px dashed var(--line);
  }
  .chapter__body { padding-inline-start: 0; border-inline-start: 0; }
  .sg-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .sg-hero .hero__aside { order: -1; justify-self: center; margin-block: 0.5rem 1.5rem; }
  .sg-hero .portrait { inline-size: clamp(150px, 42vw, 200px); }
  .sg-float--a { inset-inline-start: -38%; }
  .sg-float--b { inset-inline-end: -36%; }
  .sg-hero .hero__text { text-align: start; }

  .sg-footer__band { grid-template-columns: minmax(0, 1fr); }
  .sg-footer__line, .sg-footer__actions { grid-column: 1; grid-row: auto; }
  .sg-footer__actions { justify-content: flex-start; }

  /* Floating tab dock */
  .sg-dock {
    position: fixed;
    z-index: 95;
    inset-inline: 12px;
    inset-block-end: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.375rem;
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .sg-dock a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.15rem;
    min-block-size: 56px;
    padding-inline: 0.15rem;
    border-radius: 18px;
    color: var(--ink-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .sg-dock a span { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sg-dock .icon { inline-size: 21px; block-size: 21px; }
  .sg-dock a:hover { color: var(--brand-soft-ink); background: var(--brand-soft); }
  .sg-dock a[aria-current] { color: #fff; background: var(--brand-700); }

  body.sg-body { padding-block-end: 92px; }
  .to-top { inset-block-end: 96px; }
}

@media (max-width: 640px) {
  .sg-hero__band { padding-block-end: 6rem; }
  .sg-hero .hero__cta .sg-btn { flex: 1 1 100%; }
  .sg-float { display: none; }
  .sg-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.35rem; border-radius: 24px; }
  .sg-hero .stats li { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.85rem; }
  .sg-hero .stats .sg-tile { inline-size: 40px; block-size: 40px; border-radius: 14px; }
  .sg-hero .stats .sg-tile .icon { inline-size: 19px; block-size: 19px; }

  .sg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-footer__actions .sg-btn { flex: 1 1 100%; }
  .sg-footer__meta { justify-content: center; text-align: center; }

  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics li + li::before { display: none; }

  .contact__row > .icon { inline-size: 40px; block-size: 40px; padding: 10px; }
  .job__top { gap: 0.5rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand__mark { inline-size: 40px; block-size: 40px; }
  .header-cv { display: none; }
}

/* =========================================================== 14 MOTION === */
@media (prefers-reduced-motion: reduce) {
  .sg-float--a, .sg-float--b { animation: none; }
  .sg-hero .dot { animation: none; }
}

} /* @media screen */
