/* ============================================
   SUPER CODING — Editorial Redesign
   Bold & Editorial aesthetic, Arabic-first
   ============================================ */

:root {
  /* Colors — warm off-white + deep ink + purple/blue accent */
  --bg: oklch(0.97 0.008 85);
  --bg-soft: oklch(0.94 0.012 80);
  --bg-deep: oklch(0.20 0.02 160);
  --ink: oklch(0.18 0.015 60);
  --ink-soft: oklch(0.35 0.012 60);
  --ink-mute: oklch(0.55 0.01 60);
  --rule: oklch(0.85 0.01 70);
  --rule-soft: oklch(0.90 0.008 75);
  --accent: #5722ad;                    /* purple */
  --accent-deep: #3854da;               /* blue */
  --paper: oklch(0.99 0.005 85);

  /* Type */
  --display: "Noto Kufi Arabic", system-ui, sans-serif;
  --body: "Tajawal", system-ui, sans-serif;
  --serif: "Amiri", "Noto Kufi Arabic", serif;
  --stat: "Reem Kufi", "Noto Kufi Arabic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Small-text tokens */
  --text-caption: 11px;
  --text-label: 10px;

  /* Spacing scale (8pt grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-15: 120px;

  /* Motion */
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Text on dark surfaces */
  --ink-on-dark: color-mix(in oklab, var(--bg) 95%, transparent);
  --ink-on-dark-mute: color-mix(in oklab, var(--bg) 55%, transparent);

  /* Scales */
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

/* LTR (Swedish / Latin) typography overrides */
html[dir="ltr"] {
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --serif: "Source Serif Pro", Georgia, serif;
  --stat: "Inter", system-ui, sans-serif;
}

/* Card content direction follows page direction even inside fixed-direction marquees. */
html[dir="rtl"] .testi-marquee .testi-card { direction: rtl; }
html[dir="ltr"] .testi-marquee .testi-card { direction: ltr; }

/* === Language switcher === */
.nav-lang {
  position: relative;
  display: inline-flex;
}
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-smooth), color 0.25s, background 0.25s;
}
.nav-lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-lang-btn svg { flex-shrink: 0; }
.nav-lang-current { line-height: 1; }
.nav-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 16px 40px -16px color-mix(in oklab, var(--ink) 30%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease-smooth), transform 0.2s, visibility 0.2s;
  z-index: 100;
}
.nav-lang[data-open] .nav-lang-menu,
.nav-lang:hover .nav-lang-menu,
.nav-lang:focus-within .nav-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-lang-menu a:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); color: var(--ink); }
.nav-lang-menu a.is-current { color: var(--accent); font-weight: 600; }
.nav-lang-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
}
.nav-lang-menu a.is-current .nav-lang-code { background: var(--accent); color: var(--bg); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* direction is inherited from <html dir> set by ss_language_attributes() */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  width: 100%;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px var(--gutter);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  transition: transform 0.4s var(--ease-smooth), padding 0.3s var(--ease-smooth), background 0.3s;
}
.nav.scrolled {
  padding: 10px var(--gutter);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom-color: color-mix(in oklab, var(--ink) 8%, transparent);
}
.nav.is-hidden {
  transform: translateY(-110%);
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--rule));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  transition: background 0.3s, border-color 0.3s;
}
.nav-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: nav-status-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes nav-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--accent) 0%, transparent); }
}
@media (max-width: 640px) {
  .nav-status-text { display: none; }
  .nav-status { padding: 6px; }
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: var(--accent);
}
.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.footer-logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
/* WP custom_logo() wrapper */
.logo .custom-logo-link img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  font-size: 14px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { background: var(--ink); color: var(--bg); }
.nav-links a.active { background: var(--ink); color: var(--accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta .arrow { transform: scaleX(-1); }

/* Burger (hidden on desktop) */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-smooth), opacity 0.25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-burger:hover { border-color: var(--accent); }

/* Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 290;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.4s;
}
.nav-drawer.is-open { pointer-events: auto; visibility: visible; }
.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}
.nav-drawer.is-open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer-panel {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  height: 100%;
  width: min(360px, 88vw);
  background: var(--paper);
  border-inline-start: 1px solid var(--rule);
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-smooth);
  box-shadow: -20px 0 60px -20px color-mix(in oklab, var(--ink) 40%, transparent);
  overflow-y: auto;
}
[dir="rtl"] .nav-drawer-panel { transform: translateX(-100%); }
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.nav-drawer-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.nav-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.nav-drawer-close:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); transform: rotate(90deg); }
.nav-drawer-close svg { width: 18px; height: 18px; }

.nav-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-drawer-links li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s var(--ease-smooth), transform 0.5s var(--ease-smooth);
  transition-delay: calc(var(--i, 0) * 40ms + 180ms);
}
[dir="rtl"] .nav-drawer-links li { transform: translateX(-20px); }
.nav-drawer.is-open .nav-drawer-links li { opacity: 1; transform: translateX(0); }
.nav-drawer-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s, padding-inline-start 0.3s, background 0.3s;
}
.nav-drawer-links a:hover,
.nav-drawer-links a:focus-visible,
.nav-drawer-links a.current-menu-item {
  color: var(--accent);
  padding-inline-start: 16px;
}
.nav-drawer-links .drawer-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  min-width: 28px;
}
.nav-drawer-cta {
  margin-top: 12px;
  justify-content: center;
}

/* Prevent body scroll when drawer is open */
body.ss-nav-open { overflow: hidden; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-status { display: none; }
}

/* ============================================
   HERO — EDITORIAL / KINETIC
   ============================================ */
.hero {
  padding-top: 96px;
  padding-bottom: 0;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}

/* ---- BG layers ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 90%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift {
  to { background-position: 80px 80px; }
}
.hero-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  mix-blend-mode: multiply;
}
.hero-blob-a {
  background: var(--accent);
  top: -150px;
  inset-inline-end: -100px;
  animation: blob-float-a 18s ease-in-out infinite;
}
.hero-blob-b {
  background: color-mix(in oklab, var(--accent) 60%, #60a5fa);
  bottom: -200px;
  inset-inline-start: 10%;
  width: 500px; height: 500px;
  opacity: 0.25;
  animation: blob-float-b 22s ease-in-out infinite;
}
@keyframes blob-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 60px) scale(1.1); }
  66% { transform: translate(30px, -40px) scale(0.95); }
}
@keyframes blob-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -80px) scale(1.15); }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  mix-blend-mode: multiply;
}
.hero-canvas canvas { width: 100%; height: 100%; display: block; }

/* ---- vertical marquees on the edges ---- */
.hero-vert {
  position: absolute;
  top: 96px;
  bottom: 0;
  width: 28px;
  z-index: 1;
  overflow: hidden;
  border-inline: 1px solid var(--rule);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.hero-vert-start { inset-inline-start: 0; }
.hero-vert-end { inset-inline-end: 0; }
.hero-vert-track {
  writing-mode: vertical-rl;
  white-space: nowrap;
  animation: vert-scroll 40s linear infinite;
}
.hero-vert-track.reverse { animation: vert-scroll-rev 45s linear infinite; }
@keyframes vert-scroll {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
@keyframes vert-scroll-rev {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* ---- wrap ---- */
.hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 96px);
  padding: 32px 56px 48px;
  gap: 0;
}

/* ---- top meta bar ---- */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  animation: fade-down 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}
.hero-meta-left { display: flex; align-items: center; }
.hero-meta-right { display: flex; gap: 14px; align-items: center; }
.hero-meta-right .sep { color: var(--accent); font-size: 10px; }
.hero-meta-right .clock { color: var(--ink); font-feature-settings: "tnum" 1; min-width: 72px; text-align: start; }
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-inline-end: 10px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 15%, transparent); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- body ---- */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px;
  position: relative;
}
.hero-eyebrow {
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  cursor: default;
}
.pill:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.pill:hover .pill-dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: all 0.3s;
}
.pill-arrow {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  margin-inline-start: 4px;
  transition: transform 0.3s;
}
.pill:hover .pill-arrow { transform: rotate(45deg); }

/* ---- TITLE ---- */
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  position: relative;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-top: 0.22em;
  padding-bottom: 0.12em;
  margin-top: -0.16em;
  margin-bottom: -0.08em;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.5s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.65s; }

.hero-line-mid {
  display: flex !important;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  overflow: visible !important;
  padding-bottom: 0.1em !important;
}

/* circular badge w/ orbiting text + star */
.hero-badge {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: clamp(84px, 11vw, 160px);
  height: clamp(84px, 11vw, 160px);
  background: var(--accent);
  color: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.4);
  animation: badge-in 1s cubic-bezier(0.2, 0.85, 0.2, 1.3) 0.7s forwards;
  box-shadow: 0 20px 60px -20px color-mix(in oklab, var(--accent) 80%, transparent);
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed color-mix(in oklab, var(--ink) 30%, transparent);
  border-radius: 50%;
  animation: spin 30s linear infinite reverse;
}
.hero-badge .spin {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 20s linear infinite;
}
.hero-badge-star {
  width: 38%;
  height: 38%;
  z-index: 1;
  animation: star-pulse 3s ease-in-out infinite;
}
@keyframes badge-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes star-pulse {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(12deg); }
}

.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  padding-inline-end: 0.06em;
  position: relative;
  display: inline-block;
}

@keyframes rise { to { transform: translateY(0); } }

/* scribble underline under the title */
.hero-scribble {
  position: absolute;
  bottom: 20px;
  inset-inline-end: 8%;
  width: clamp(140px, 16vw, 240px);
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s forwards;
}
.hero-scribble svg { width: 100%; height: auto; }
.scribble-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-path 2s cubic-bezier(0.65, 0, 0.35, 1) 1.7s forwards;
}
@keyframes draw-path { to { stroke-dashoffset: 0; } }

/* ---- bottom row ---- */
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 40px;
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-desc {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
  animation-delay: 1.2s !important;
}
.hero-ctas { display: flex; gap: 12px; animation-delay: 1.35s !important; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--body);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px color-mix(in oklab, var(--ink) 50%, transparent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-3px);
}
.btn .arrow {
  width: 16px; height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10M9 4l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10M9 4l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
  transform: scaleX(-1);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover .arrow { transform: scaleX(-1) translateX(-6px); }

/* ribbon stats — premium cards */
.hero-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  animation-delay: 1.5s !important;
}
.ribbon-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 10px;
  padding: 18px 20px 16px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: color-mix(in oklab, var(--paper) 65%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, background 0.4s;
}
.ribbon-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: color-mix(in oklab, var(--paper) 85%, transparent);
}
.ribbon-item:first-child { border-inline-start: 1px solid var(--rule); padding-inline-start: 20px; }
.ribbon-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  display: grid;
  place-items: center;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.4s var(--ease-smooth);
}
.ribbon-icon svg { width: 22px; height: 22px; }
.ribbon-icon--emerald { --ic: #34D399; }
.ribbon-icon--amber   { --ic: #F59E0B; }
.ribbon-icon--violet  { --ic: #8B5CF6; }
.ribbon-icon--emerald,
.ribbon-icon--amber,
.ribbon-icon--violet {
  background: color-mix(in oklab, var(--ic) 16%, transparent);
  color: var(--ic);
  border-color: color-mix(in oklab, var(--ic) 35%, transparent);
}
.ribbon-item:hover .ribbon-icon {
  transform: rotate(-6deg) scale(1.08);
  background: var(--ic, var(--accent));
  color: #fff;
  border-color: var(--ic, var(--accent));
}
.ribbon-bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--ic, var(--accent)), color-mix(in oklab, var(--ic, var(--accent)) 55%, var(--ink)));
  border-radius: 3px;
  transform-origin: left center;
  animation: ribbon-bar-grow 1.4s var(--ease-smooth) 0.3s both;
}
.ribbon-item .ribbon-icon--emerald ~ .ribbon-bar span { --ic: #34D399; }
.ribbon-item .ribbon-icon--amber ~ .ribbon-bar span   { --ic: #F59E0B; }
.ribbon-item .ribbon-icon--violet ~ .ribbon-bar span  { --ic: #8B5CF6; }
@keyframes ribbon-bar-grow {
  from { width: 0; }
  to   { width: var(--w, 0%); }
}
.ribbon-content { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 2px; }
.ribbon-item b {
  font-family: var(--stat);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
  display: flex;
  align-items: baseline;
}
.ribbon-item b i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.55em;
  margin-inline-start: 2px;
}
.ribbon-item .ribbon-content > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.ribbon-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 3px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}
.ribbon-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  inset-inline-end: auto;
  width: var(--fill, 0%);
  background: linear-gradient(to left, var(--accent), var(--accent-deep));
  border-radius: 3px;
  transform-origin: right center;
  animation: ribbon-bar-fill 1.4s var(--ease-smooth) 0.3s both;
}
@keyframes ribbon-bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 640px) {
  .hero-ribbon { grid-template-columns: 1fr; gap: 10px; }
  .ribbon-item { padding: 14px 16px; }
  .ribbon-item b { font-size: 28px; }
}

/* reveal animation (reused) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  z-index: 3;
  opacity: 0;
  animation: fade-up 0.8s ease-out 2s forwards;
}
.scroll-line {
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scroll-anim 2.2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes char-wave {
  0%, 100% { transform: translateY(0); color: var(--accent); }
  50% { transform: translateY(-6px); color: color-mix(in oklab, var(--accent) 70%, var(--ink)); }
}

@media (max-width: 1024px) {
  .hero-wrap { padding: 32px 40px 48px; }
  .hero-vert { width: 24px; }
}
@media (max-width: 820px) {
  .hero-wrap { padding: 24px 32px 64px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta-right { display: none; }
  .hero-ribbon { gap: 20px; }
  .ribbon-item b { font-size: 26px; }
  .hero-vert { display: none; }
  .hero-scribble { display: none; }
  .hero-line-mid { gap: 14px; }
}

/* ============================================
   TICKER / MARQUEE
   ============================================ */
.ticker {
  padding: 24px 0;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll-ltr 40s linear infinite;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.02em;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.ticker-track i {
  font-style: normal;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 400;
}
.ticker-track .star {
  display: inline-block;
  width: 24px; height: 24px;
  color: var(--accent);
}
@keyframes scroll-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ============================================
   SECTION HEADER
   ============================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker link"
    "title  link";
  column-gap: 40px;
  row-gap: 14px;
  align-items: end;
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--rule);
  text-align: start;
}
.sec-head > .sec-kicker {
  grid-area: kicker;
  justify-self: start;
  align-self: end;
}
.sec-head > .sec-title,
.sec-head > h2 {
  grid-area: title;
  justify-self: start;
  text-align: start;
  margin: 0;
}
.sec-head > .sec-link,
.sec-head > a {
  grid-area: link;
  justify-self: end;
  align-self: end;
  margin-bottom: 8px;
}
.sec-head > div:empty { display: none; }
.sec-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.sec-kicker::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  margin-inline-end: 10px;
  vertical-align: middle;
}
.sec-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.sec-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.sec-title strong { font-weight: 600; font-style: normal; }
.sec-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: all 0.3s;
  white-space: nowrap;
}
.sec-link:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 820px) {
  .sec-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "link";
    gap: 16px;
    padding: 60px 0 32px;
  }
  .sec-head > .sec-link,
  .sec-head > a { justify-self: start; margin-bottom: 0; }
}

/* ============================================
   INTRO / ABOUT
   ============================================ */
.intro {
  padding: 100px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.intro-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.intro-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 24px;
}
.intro-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}
.intro-body {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  text-wrap: pretty;
}
.intro-body p + p { margin-top: 20px; }
.intro-body strong { color: var(--ink); font-weight: 600; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 100px;
  padding: 40px 0 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.stats-strip::before {
  content: "— الأرقام لا تكذب";
  position: absolute;
  top: -14px;
  inset-inline-start: 0;
  background: var(--bg);
  padding-inline-end: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.stats-strip::after {
  content: "IMPACT 2018 — 2026";
  position: absolute;
  top: -14px;
  inset-inline-end: 0;
  background: var(--bg);
  padding-inline-start: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.stat {
  position: relative;
  padding: 32px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-inline-end: 1px dashed var(--rule);
  transition: background 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; padding-inline-end: 0; }
.stat::before {
  content: "";
  position: absolute;
  inset: 12px 8px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  pointer-events: none;
  z-index: -1;
}
.stat:hover::before { opacity: 1; }
.stat:hover { transform: translateY(-4px); }
.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.stat-trend {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.stat:hover .stat-trend { background: var(--accent); color: var(--bg); }
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-smooth);
}
.stat-icon svg { width: 20px; height: 20px; }
.stat:hover .stat-icon {
  background: var(--ink);
  color: var(--accent);
  transform: rotate(-4deg);
}
.stat b {
  display: flex;
  align-items: baseline;
  font-family: var(--stat);
  font-weight: 700;
  font-size: clamp(72px, 9vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.stat b i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  font-size: 0.42em;
  margin-inline-start: 0.08em;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-caption {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.stat-bar {
  margin-top: 20px;
  height: 3px;
  background: var(--rule);
  overflow: hidden;
  border-radius: 2px;
}
.stat-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stat.in .stat-bar i { width: var(--w); }

@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px dashed var(--rule); }
}
@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr; }
  .stat { border-inline-end: 0; border-bottom: 1px dashed var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .stats-strip::after { display: none; }
}

/* ============================================
   SERVICES — STICKY SCROLL
   ============================================ */
.services {
  background: var(--bg-deep);
  color: var(--bg);
  padding-bottom: 120px;
  position: relative;
}
.services .sec-head { border-bottom-color: color-mix(in oklab, var(--bg) 15%, transparent); }
.services .sec-kicker { color: color-mix(in oklab, var(--bg) 55%, transparent); }
.services .sec-title { color: var(--bg); }
.services .sec-link {
  color: var(--bg);
  border-color: color-mix(in oklab, var(--bg) 30%, transparent);
}
.services .sec-link:hover { background: var(--bg); color: var(--bg-deep); }

.svc-stack {
  position: relative;
  margin-top: 0;
}
.svc-item {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 80px 0;
  background: var(--bg-deep);
  border-top: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.svc-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 600px at 90% 30%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%);
  pointer-events: none;
}
.svc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  width: 100%;
  position: relative;
  z-index: 2;
}
.svc-big {
  position: absolute;
  top: 50%;
  inset-inline-end: -3vw;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(280px, 42vw, 640px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  color: var(--bg);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  font-feature-settings: "tnum" 1;
}
.svc-num {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  padding-top: 0;
}
.svc-num-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.svc-num-head span:last-child {
  color: var(--accent);
}
.svc-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--bg);
  text-wrap: balance;
  position: relative;
  z-index: 2;
}
.svc-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}
.svc-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.svc-desc {
  font-size: 17px;
  line-height: 1.6;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  text-wrap: pretty;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-tags span {
  padding: 6px 12px;
  border: 1px solid color-mix(in oklab, var(--bg) 25%, transparent);
  border-radius: 100px;
  font-size: 13px;
  font-family: var(--mono);
  color: color-mix(in oklab, var(--bg) 80%, transparent);
}
.svc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
}
.svc-features li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 15px;
  color: color-mix(in oklab, var(--bg) 85%, transparent);
}
.svc-features li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--mono);
  transform: scaleX(-1);
  display: inline-block;
}

@media (max-width: 960px) {
  .svc-inner { grid-template-columns: 1fr; gap: 24px; }
  .svc-item { min-height: auto; position: relative; top: 0; }
}

/* ============================================
   SERVICES — BENTO VARIANT (overrides .svc-stack sticky)
   ============================================ */
.svc-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
  grid-auto-flow: dense;
  margin-top: 0;
  perspective: 1200px;
}
.svc-bento .svc-item {
  position: relative;
  top: auto;
  min-height: 0;
  padding: 32px;
  border-top: none;
  border: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth), border-color 0.4s;
  will-change: transform;
}
.svc-bento .svc-item::before { display: none; }
.svc-bento .svc-item:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
}

/* Size modifiers */
.svc-bento .svc-item--feature {
  grid-column: span 2;
  grid-row: span 2;
  padding: 48px;
}
.svc-bento .svc-item--tall {
  grid-row: span 2;
}
.svc-bento .svc-item--wide {
  grid-column: span 3;
}

/* Inner layout per size */
.svc-bento .svc-inner {
  grid-template-columns: 1fr;
  gap: 20px;
  z-index: 2;
}
.svc-bento .svc-item--feature .svc-inner {
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.svc-bento .svc-item--wide .svc-inner {
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.svc-bento .svc-num { gap: 16px; }
.svc-bento .svc-big {
  font-size: clamp(140px, 20vw, 280px);
  inset-inline-end: -2vw;
  opacity: 0.06;
}
.svc-bento .svc-item--feature .svc-big {
  font-size: clamp(240px, 30vw, 480px);
}
.svc-bento .svc-title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}
.svc-bento .svc-item--feature .svc-title {
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.05;
}
.svc-bento .svc-item--wide .svc-title {
  font-size: clamp(36px, 4.5vw, 60px);
}
.svc-bento .svc-desc {
  font-size: 14px;
  line-height: 1.55;
}
.svc-bento .svc-item--feature .svc-desc {
  font-size: 17px;
  line-height: 1.65;
}

/* Hide features list on small cards, keep on feature */
.svc-bento .svc-item:not(.svc-item--feature):not(.svc-item--tall) .svc-features { display: none; }

/* Compact tags */
.svc-bento .svc-tags { gap: 8px; flex-wrap: wrap; }
.svc-bento .svc-tags span {
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* Mesh coloring per service */
.svc-mesh {
  background:
    radial-gradient(60% 70% at 85% 20%, color-mix(in oklab, var(--accent) 50%, transparent) 0%, transparent 60%),
    radial-gradient(55% 60% at 15% 90%, color-mix(in oklab, var(--accent) 25%, transparent) 0%, transparent 55%);
  opacity: 0.4;
  transition: opacity 0.5s var(--ease-smooth), transform 1.2s var(--ease-smooth);
  z-index: 0;
  filter: blur(50px);
}
.svc-bento .svc-item:hover .svc-mesh {
  opacity: 0.7;
  transform: scale(1.15);
}
[data-svc="mobile"] .svc-mesh {
  background:
    radial-gradient(60% 70% at 15% 20%, color-mix(in oklab, var(--accent) 55%, transparent) 0%, transparent 60%),
    radial-gradient(55% 60% at 85% 90%, color-mix(in oklab, #60a5fa 35%, transparent) 0%, transparent 55%);
}
[data-svc="erp"] .svc-mesh {
  background:
    radial-gradient(60% 60% at 50% 30%, color-mix(in oklab, var(--accent) 45%, transparent) 0%, transparent 60%),
    radial-gradient(70% 70% at 50% 100%, color-mix(in oklab, #a78bfa 30%, transparent) 0%, transparent 55%);
}
[data-svc="uiux"] .svc-mesh {
  background:
    radial-gradient(70% 60% at 20% 30%, color-mix(in oklab, #f472b6 35%, transparent) 0%, transparent 55%),
    radial-gradient(60% 70% at 85% 80%, color-mix(in oklab, var(--accent) 45%, transparent) 0%, transparent 55%);
}
[data-svc="consult"] .svc-mesh {
  background:
    radial-gradient(65% 70% at 80% 20%, color-mix(in oklab, var(--accent) 40%, transparent) 0%, transparent 60%),
    radial-gradient(60% 60% at 10% 100%, color-mix(in oklab, #fbbf24 25%, transparent) 0%, transparent 55%);
}
[data-svc="support"] .svc-mesh {
  background:
    radial-gradient(60% 60% at 50% 50%, color-mix(in oklab, var(--accent) 50%, transparent) 0%, transparent 65%);
}

@media (max-width: 960px) {
  .svc-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
  .svc-bento .svc-item--feature { grid-column: span 2; grid-row: span 2; }
  .svc-bento .svc-item--tall { grid-row: span 2; }
  .svc-bento .svc-item--wide { grid-column: span 2; }
  .svc-bento .svc-item--feature .svc-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .svc-bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px; }
  .svc-bento .svc-item,
  .svc-bento .svc-item--feature,
  .svc-bento .svc-item--tall,
  .svc-bento .svc-item--wide {
    grid-column: span 1;
    grid-row: span 1;
    padding: 28px;
    min-height: 280px;
  }
  .svc-bento .svc-item--feature { padding: 36px; }
}

/* ============================================
   PORTFOLIO — MASONRY
   ============================================ */
.portfolio {
  padding-bottom: 120px;
}
.masonry {
  column-count: 3;
  column-gap: 24px;
  margin-top: 60px;
}
/* When masonry contains the unified .proj cards, switch to grid for consistent sizing */
.masonry:has(.proj) {
  column-count: initial;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) {
  .masonry:has(.proj) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .masonry:has(.proj) { grid-template-columns: 1fr; }
}
.masonry .work {
  break-inside: avoid;
  margin-bottom: 32px;
  display: block;
  position: relative;
  overflow: visible;
  cursor: pointer;
  perspective: 1200px;
  transition: transform 0.5s var(--ease-smooth);
  will-change: transform;
}
.masonry .work:hover { transform: translateY(-6px); }
.work-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 18px;
  border: 1px solid var(--rule);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth), border-color 0.4s;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, color-mix(in oklab, var(--ink) 70%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 18px 18px;
}
.work-thumb svg { transition: transform 0.8s var(--ease-smooth); }
.work:hover .work-thumb {
  transform: rotateX(2deg) rotateY(-2deg) scale(1.01);
  box-shadow: 0 28px 56px -14px color-mix(in oklab, var(--ink) 32%, transparent);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
}
.work:hover .work-thumb::after { opacity: 1; }
.work:hover .work-thumb svg { transform: scale(1.06); }
.work-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Chips on thumb (index + year) */
.work-chip {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 500;
}
.work-chip--index {
  inset-inline-start: 14px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.work-chip--index::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in oklab, var(--accent) 60%, transparent);
}
.work-chip--year {
  inset-inline-end: 14px;
  background: color-mix(in oklab, var(--ink) 75%, transparent);
  color: var(--bg);
  border: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}

/* "View project" pill — shows on hover */
.work-view {
  position: absolute;
  bottom: 16px;
  inset-inline: 16px;
  z-index: 3;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth);
}
.work-view .arrow { transform: scaleX(-1); }
.work:hover .work-view {
  opacity: 1;
  transform: translateY(0);
}

/* Meta below thumb */
.work-meta {
  padding: 22px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.3s;
  margin: 0;
}
.work-title em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent);
  font-weight: 400;
}
.work:hover .work-title { color: var(--accent); }
.work-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.work-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.work-details b {
  color: var(--ink);
  font-weight: 500;
}
.work-details .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 25%, transparent);
  flex-shrink: 0;
}
.work--featured .work-title { font-size: 28px; }

/* Masonry tiles - varied heights via aspect-ratio */
.tile-a { aspect-ratio: 4/5; }
.tile-b { aspect-ratio: 4/3; }
.tile-c { aspect-ratio: 1/1; }
.tile-d { aspect-ratio: 3/4; }
.tile-e { aspect-ratio: 5/4; }
.tile-f { aspect-ratio: 4/6; }

@media (max-width: 960px) {
  .masonry { column-count: 2; }
}
@media (max-width: 620px) {
  .masonry { column-count: 1; }
}

/* ============================================
   TECH — LOGO GRID
   ============================================ */
.tech {
  padding: 120px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
}
.tech-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: baseline;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
.tech-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tech-kicker::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  margin-inline-end: 10px;
  vertical-align: middle;
}
.tech-lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}
.tech-lede em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--rule);
  border-inline-start: 1px solid var(--rule);
}
.tech-cell {
  aspect-ratio: 1.6 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  border-inline-end: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.tech-cell:hover {
  background: var(--bg-soft);
}
.tech-cell::before {
  content: attr(data-num);
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.tech-cell svg {
  width: 48px;
  height: 48px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s;
  color: var(--ink);
}
.tech-cell:hover svg {
  transform: scale(1.12);
  color: var(--accent);
}
.tech-cell span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (max-width: 960px) {
  .tech-head { grid-template-columns: 1fr; gap: 20px; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PROCESS — VERTICAL EDITORIAL
   ============================================ */
.process {
  padding: 120px 0;
  background: var(--bg);
}
.process-wrap {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
.process-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr 80px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s;
}
.process-row:last-child { border-bottom: 1px solid var(--rule); }
.process-row:hover {
  background: var(--bg-soft);
}
.process-row:hover .process-big {
  color: var(--accent);
  transform: translateX(-8px);
}
.process-big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--ink);
  transition: color 0.4s, transform 0.4s;
  font-feature-settings: "tnum" 1;
}
.process-big i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  font-size: 0.4em;
  vertical-align: 0.8em;
  margin-inline-start: -0.1em;
}
.process-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-top: 12px;
}
.process-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.process-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
  padding-top: 18px;
  max-width: 520px;
}
.process-meta {
  text-align: end;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.process-meta b {
  display: block;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 4px;
}

@media (max-width: 820px) {
  .process-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .process-meta { text-align: start; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi {
  background: var(--bg-soft);
  padding: 120px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}
.testi-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 34px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-smooth), border-color 0.4s, box-shadow 0.5s;
}
.testi-card::before {
  content: "";
  position: absolute;
  top: -80px;
  inset-inline-start: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, transparent) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.5s, transform 0.8s var(--ease-smooth);
}
.testi-card:hover::before {
  opacity: 1;
  transform: translate(20px, 20px);
}
.testi-card > * { position: relative; z-index: 1; }
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px color-mix(in oklab, var(--ink) 30%, transparent);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
}
.testi-quote-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.7;
  color: var(--accent);
  margin: 0;
  padding: 0;
  display: block;
}
.testi-quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0;
}
.testi-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  margin-top: auto;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), color-mix(in oklab, var(--ink) 70%, var(--accent)));
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent);
  position: relative;
}
.testi-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.testi-author h5 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: 0;
}
.testi-author p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.testi-verified {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .testi-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Testimonials marquee --- */
.testi-marquee {
  margin-top: 60px;
  overflow: hidden;
  position: relative;
  padding: 24px 0;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.testi-marquee .testi-track {
  display: flex;
  gap: 28px;
  width: max-content;
  will-change: transform;
}
.testi-marquee .testi-card {
  flex: 0 0 auto;
  width: clamp(340px, 34vw, 460px);
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, var(--rule));
  box-shadow: 0 12px 32px -16px color-mix(in oklab, var(--ink) 25%, transparent);
  margin: 0;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, box-shadow 0.4s;
}
@supports (backdrop-filter: blur(1px)) {
  .testi-marquee .testi-card {
    background: color-mix(in oklab, var(--paper) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}
.testi-marquee .testi-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow: 0 20px 44px -16px color-mix(in oklab, var(--ink) 35%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .testi-marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; padding: 0; }
  .testi-marquee .testi-track {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    transform: none !important;
  }
  .testi-marquee .testi-card[aria-hidden="true"] { display: none; }
}

/* ============================================
   BLOG
   ============================================ */
.blog {
  padding: 120px 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.blog-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 28px;
  margin-top: 60px;
}
.blog-bento--2x2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
}
.blog-bento--2x2 .post-card .post-thumb { aspect-ratio: 16/10; }

@media (max-width: 820px) {
  .blog-bento--2x2 { grid-template-columns: 1fr; }
}
.blog-bento .post-card--featured,
.blog-bento .post--featured {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.blog-bento .post-card--featured .post-thumb,
.blog-bento .post--featured .post-thumb { aspect-ratio: 5/4; }
.blog-bento .post-card:not(.post-card--featured) .post-thumb,
.blog-bento .post:not(.post--featured) .post-thumb { aspect-ratio: 16/10; }
.post-card--featured .post-body,
.post--featured .post-body { gap: 16px; padding: 30px 32px 32px; }
.post-card--featured h3 {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  -webkit-line-clamp: 3;
}
.post-card--featured .post-excerpt {
  font-size: 15px;
  -webkit-line-clamp: 4;
}

/* Featured pill badge on the thumb */
.post-featured-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.post-featured-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: ssFeaturedPulse 2.2s ease-in-out infinite;
}
@keyframes ssFeaturedPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.55; }
}

@media (max-width: 820px) {
  .blog-bento {
    grid-template-columns: 1fr;
  }
  .blog-bento .post-card--featured,
  .blog-bento .post--featured {
    grid-column: 1;
    grid-row: auto;
  }
  .blog-bento .post-card--featured .post-thumb,
  .blog-bento .post--featured .post-thumb { aspect-ratio: 16/10; }
}
.post-excerpt {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}
.post-featured-badge {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 2;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 820px) {
  .blog-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 32px;
  }
  .blog-bento .post--featured { grid-column: 1; grid-row: auto; }
  .blog-bento .post--featured .post-thumb { aspect-ratio: 16/10; }
}
.post {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  perspective: 1200px;
  transition: transform 0.4s var(--ease-smooth);
}
.post-thumb {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--rule);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth);
}
.post-thumb svg { width: 100%; height: 100%; display: block; transition: transform 0.8s var(--ease-smooth); }
.post:hover .post-thumb {
  transform: rotateX(3deg) rotateY(3deg) scale(1.015);
  box-shadow: 0 24px 48px -14px color-mix(in oklab, var(--ink) 28%, transparent);
}
.post:hover .post-thumb svg { transform: scale(1.04); }
.post-read {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), background 0.3s;
}
.post:hover .post-read {
  opacity: 1;
  transform: translateY(0);
}
.post-read:hover { background: var(--accent); }
.post-read .arrow { transform: scaleX(-1); }
.post-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.post-meta b { color: var(--accent); font-weight: 400; }
.post h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  transition: color 0.3s;
  text-wrap: pretty;
}
.post:hover h3 { color: var(--accent); }

@media (max-width: 820px) {
  .blog-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   CTA
   ============================================ */
/* ============================================
   CTA (unified band above footer — with decor)
   ============================================ */
.cta {
  padding: 110px 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid color-mix(in oklab, var(--bg) 8%, transparent);
}
.cta .wrap { position: relative; z-index: 2; }

/* --- DECOR: grid + blobs + stamp + ghost-num + sparkles --- */
.cta-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* grid dot pattern */
.cta-decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--bg) 14%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
  opacity: 0.55;
}
/* main emerald glow behind title */
.cta-glow {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: min(900px, 90vw);
  height: 460px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 32%, transparent), transparent 70%);
  filter: blur(60px);
  z-index: 0;
  opacity: 0.8;
}
/* floating blobs */
.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.cta-blob-1 {
  top: -80px;
  inset-inline-end: -60px;
  width: 340px; height: 340px;
  background: var(--accent);
  animation: cta-blob-a 14s ease-in-out infinite;
}
.cta-blob-2 {
  bottom: -100px;
  inset-inline-start: -60px;
  width: 380px; height: 380px;
  background: color-mix(in oklab, var(--accent) 60%, #60a5fa);
  opacity: 0.22;
  animation: cta-blob-b 18s ease-in-out infinite;
}
@keyframes cta-blob-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes cta-blob-b {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.12); }
}
/* rotating stamp — top-start corner */
.cta-stamp {
  position: absolute;
  top: 40px;
  inset-inline-start: 40px;
  width: 96px;
  height: 96px;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.cta-stamp svg {
  width: 100%;
  height: 100%;
  animation: spin 32s linear infinite;
}
.cta-stamp-star {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.cta-stamp-star svg { animation: none; width: 100%; height: 100%; }

/* ghost big number — bottom-end corner */
.cta-ghost-num {
  position: absolute;
  bottom: -30px;
  inset-inline-end: -14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(160px, 18vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: color-mix(in oklab, var(--bg) 4%, transparent);
  font-feature-settings: "tnum" 1;
  user-select: none;
}

/* sparkles */
.cta-sparkle {
  position: absolute;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  animation: cta-twinkle 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 60%, transparent));
}
.cta-sparkle:nth-child(1) { top: 22%; inset-inline-start: 18%; animation-delay: 0s; }
.cta-sparkle:nth-child(2) { top: 70%; inset-inline-start: 82%; animation-delay: 1s; font-size: 14px; }
.cta-sparkle:nth-child(3) { top: 40%; inset-inline-start: 88%; animation-delay: 1.8s; font-size: 22px; }
.cta-sparkle:nth-child(4) { top: 80%; inset-inline-start: 25%; animation-delay: 0.6s; font-size: 12px; }
.cta-sparkle:nth-child(5) { top: 15%; inset-inline-start: 75%; animation-delay: 2.2s; font-size: 16px; }
@keyframes cta-twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
  50%      { transform: scale(1) rotate(180deg); opacity: 1; }
}

/* corner brackets */
.cta-brackets {
  position: absolute;
  inset: 28px;
  pointer-events: none;
}
.cta-brackets::before,
.cta-brackets::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
}
.cta-brackets::before {
  top: 0;
  inset-inline-start: 0;
  border-inline-end: 0;
  border-block-end: 0;
}
.cta-brackets::after {
  bottom: 0;
  inset-inline-end: 0;
  border-inline-start: 0;
  border-block-start: 0;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 85%, transparent);
}
.cta-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent);
  animation: cta-badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes cta-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
}
.cta-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--bg);
  text-wrap: balance;
}
.cta-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}
.cta-lead {
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--bg) 68%, transparent);
  margin: 0;
}
.cta-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Button overrides inside CTA (dark bg) */
.cta .btn-primary {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(240deg, transparent 30%, color-mix(in oklab, var(--accent) 60%, transparent) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.9s var(--ease-smooth);
  z-index: -1;
}
.cta .btn-primary:hover::after { transform: translateX(-120%); }
.cta .btn-primary:hover { background: var(--accent); color: var(--ink); }
.cta .btn-ghost {
  color: var(--bg);
  border-color: color-mix(in oklab, var(--bg) 30%, transparent);
}
.cta .btn-ghost:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

@media (max-width: 820px) {
  .cta-stamp { width: 72px; height: 72px; top: 24px; inset-inline-start: 24px; }
  .cta-ghost-num { font-size: clamp(120px, 22vw, 180px); bottom: -16px; }
  .cta-brackets { inset: 18px; }
  .cta-brackets::before, .cta-brackets::after { width: 22px; height: 22px; }
}
@media (max-width: 620px) {
  .cta { padding: 80px 0; }
  .cta-inner { gap: 18px; }
  .cta-glow { height: 300px; }
  .cta-stamp { display: none; }
  .cta-ghost-num { display: none; }
  .cta-sparkle { font-size: 12px !important; }
  .cta-brackets { display: none; }
}

/* --- Tech grid hover (compose with existing scale) --- */
.tech-cell:hover svg {
  transform: rotate(360deg) scale(1.12);
  transition: transform 0.8s var(--ease-smooth), color 0.3s;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 100px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-giant {
  position: absolute;
  bottom: -0.15em;
  inset-inline-start: 50%;
  transform: translateX(50%);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.055em;
  color: color-mix(in oklab, var(--bg) 5%, transparent);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 0;
}
.footer .wrap { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--bg);
  line-height: 1;
}
.footer-logo em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent);
}
.footer-brand p {
  font-size: 15px;
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}
.footer-subscribe {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}
.footer-subscribe-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.footer-subscribe-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 4%, transparent);
  transition: border-color 0.3s, background 0.3s;
}
.footer-subscribe-row:focus-within {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.footer-subscribe-row input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  color: var(--bg);
  font-family: var(--display);
  font-size: 14px;
  outline: none;
}
.footer-subscribe-row input::placeholder {
  color: color-mix(in oklab, var(--bg) 45%, transparent);
}
.footer-subscribe-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth), background 0.3s;
}
.footer-subscribe-btn:hover { transform: translateX(-4px); background: var(--bg); }
.footer-subscribe-btn .arrow { transform: scaleX(-1); }
.footer-subscribe-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--bg) 45%, transparent);
  margin-top: 4px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed color-mix(in oklab, var(--bg) 14%, transparent);
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.footer-col a {
  font-size: 15px;
  color: color-mix(in oklab, var(--bg) 85%, transparent);
  transition: color 0.2s, padding-inline-start 0.3s var(--ease-smooth);
  display: inline-block;
}
.footer-col a:hover {
  color: var(--accent);
  padding-inline-start: 6px;
}
.footer-contact li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: baseline;
}
.footer-contact-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 42%, transparent);
}
.footer-contact li > a,
.footer-contact li > span:not(.footer-contact-label) {
  font-size: 14px;
  color: color-mix(in oklab, var(--bg) 85%, transparent);
  transition: color 0.2s;
}
.footer-contact li > a:hover { color: var(--accent); }

/* Phone numbers: keep digit order LTR; align to the inline-end (right in RTL, left in LTR). */
a[href^="tel:"][dir="ltr"] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: embed;
  text-align: end;
}
html[dir="ltr"] a[href^="tel:"][dir="ltr"] { text-align: start; }
.footer-contact a[href^="tel:"][dir="ltr"] {
  display: block;
  width: 100%;
}
.footer-foot {
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}
.footer-foot-left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-foot-left a { color: inherit; transition: color 0.2s; }
.footer-foot-left a:hover { color: var(--accent); }
.footer-sep { opacity: 0.4; }
.footer-social {
  display: flex;
  gap: 10px;
  justify-self: center;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  display: grid;
  place-items: center;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-smooth);
}
.footer-social a:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer-made {
  justify-self: end;
}
.footer-spark {
  color: var(--accent);
  display: inline-block;
  animation: spin 8s linear infinite;
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-foot { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .footer-foot-left { justify-content: center; }
  .footer-made { justify-self: center; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-lines .line {
  overflow: hidden;
  display: block;
}
.reveal-lines .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-lines.in .line > span { transform: translateY(0); }
.reveal-lines .line:nth-child(2) > span { transition-delay: 0.1s; }
.reveal-lines .line:nth-child(3) > span { transition-delay: 0.2s; }

/* Arrow glyph */
.arrow::before { content: "→"; }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }


/* ===== PAGES ===== */
/* ============================================
   SUPER CODING — PAGES CSS
   ============================================ */

/* ---- PAGE HERO (shared) ---- */
.page-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 200px;
  inset-inline-end: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  filter: blur(80px);
  z-index: 0;
}
.page-hero > .wrap { position: relative; z-index: 1; }

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 40px;
}
.crumbs a { color: var(--ink-mute); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span:not(:last-child) { color: var(--rule); }
.crumbs > span:last-child { color: var(--ink); }

.page-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.page-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 16px;
  min-width: 140px;
}
.page-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  width: fit-content;
}
.page-stamp {
  position: relative;
  width: 120px; height: 120px;
  display: grid;
  place-items: center;
}
.page-stamp svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: var(--ink);
}
.stamp-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}
.spin-slow { animation: spin 40s linear infinite; }

.page-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.page-title .line {
  display: block;
  overflow: hidden;
  padding-top: 0.2em;
  padding-bottom: 0.1em;
  margin-top: -0.15em;
  margin-bottom: -0.08em;
}
.page-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}
.page-title .line:nth-child(2) > span { animation-delay: 0.15s; }
.page-title .line:nth-child(3) > span { animation-delay: 0.3s; }
.page-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.page-hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: end;
  padding-top: 48px;
}
.page-lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
  text-wrap: pretty;
}

.hero-portrait {
  position: relative;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--ink);
}
.hero-portrait svg { width: 100%; height: 100%; display: block; }
.portrait-badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  background: var(--bg);
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 100px;
}

/* ============================================
   ABOUT — MANIFESTO
   ============================================ */
.manifesto { padding: 120px 0; border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.manifesto::before {
  content: "";
  position: absolute;
  top: 30%;
  inset-inline-start: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: svc-float 16s ease-in-out infinite;
  z-index: 0;
}
.manifesto > .wrap { position: relative; z-index: 1; }
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
  border: 0;
}
.manifesto-item {
  padding: 40px 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, box-shadow 0.5s, background 0.4s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.manifesto-item::before {
  content: "";
  position: absolute;
  top: -60px;
  inset-inline-end: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s, transform 0.7s var(--ease-smooth);
  pointer-events: none;
  z-index: 0;
}
.manifesto-item > * { position: relative; z-index: 1; }
.manifesto-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 24px 48px -22px color-mix(in oklab, var(--ink) 26%, transparent);
}
.manifesto-item:hover::before {
  opacity: 1;
  transform: scale(1.2);
}
.manifesto-item .m-num {
  position: absolute;
  top: 18px;
  inset-inline-end: 24px;
  width: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 10vw, 160px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: color-mix(in oklab, var(--accent) 10%, transparent);
  z-index: 0;
  transition: color 0.5s, transform 0.6s var(--ease-smooth);
  pointer-events: none;
}
.manifesto-item:hover .m-num {
  color: color-mix(in oklab, var(--accent) 20%, transparent);
  transform: translate(-10px, -6px) rotate(-6deg);
}
.manifesto-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: background 0.35s, color 0.35s, transform 0.5s var(--ease-smooth);
  flex-shrink: 0;
}
.manifesto-icon svg { width: 24px; height: 24px; }
.manifesto-item:hover .manifesto-icon {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-6deg) scale(1.05);
}
.manifesto-item h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  transition: color 0.3s;
}
.manifesto-item:hover h3 { color: var(--accent); }
.manifesto-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.manifesto-tag {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.manifesto-tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 820px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-item { padding: 32px 28px; }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline { padding: 120px 0; border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; overflow: hidden; }
.timeline::before {
  content: "";
  position: absolute;
  top: 30%;
  inset-inline-end: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: svc-float 16s ease-in-out infinite;
  animation-delay: -3s;
  z-index: 0;
}
.timeline > .wrap { position: relative; z-index: 1; }
.tline {
  position: relative;
  padding-inline-start: 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tline::before {
  content: "";
  position: absolute;
  inset-inline-start: 90px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--rule) 0%, var(--accent) 50%, var(--rule) 100%);
  border-radius: 2px;
}
.tline-item {
  display: grid;
  grid-template-columns: 180px 52px 1fr;
  column-gap: 28px;
  row-gap: 0;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 18px;
  position: relative;
  align-items: center;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, box-shadow 0.5s;
  overflow: hidden;
}
.tline-item:last-child { border-bottom: 1px solid var(--rule); }
.tline-item:hover {
  transform: translateX(-6px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 16px 36px -20px color-mix(in oklab, var(--ink) 25%, transparent);
}
/* year on right (start in RTL) */
.tline-year {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tline-year::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.tline-item.is-now .tline-year { color: var(--accent); }
/* central dot */
.tline-dot {
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transition: all 0.4s var(--ease-smooth);
  z-index: 2;
  inset: auto;
}
.tline-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--ink) 18%, transparent);
  opacity: 0;
  transition: opacity 0.4s, transform 0.5s var(--ease-smooth);
}
.tline-item:hover .tline-dot::before {
  opacity: 1;
  transform: rotate(90deg);
}
.tline-item:hover .tline-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}
.tline-item.is-now .tline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 28%, transparent);
  animation: tline-pulse 2s ease-in-out infinite;
}
@keyframes tline-pulse {
  0%, 100% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 28%, transparent); }
  50%      { box-shadow: 0 0 0 12px color-mix(in oklab, var(--accent) 0%, transparent); }
}
/* body */
.tline-body {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tline-body-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.tline-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.tline-item.is-now .tline-badge {
  background: var(--accent);
  color: var(--ink);
}
.tline-item.is-now .tline-badge::before { background: var(--ink); }
.tline-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 22px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.tline-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
@media (max-width: 820px) {
  .tline::before { display: none; }
  .tline-item { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .tline-year { font-size: 36px; justify-content: flex-start; }
  .tline-dot { display: none; }
  .tline-body { grid-column: 1; }
}

/* ============================================
   TEAM
   ============================================ */
.team-sec { padding: 120px 0; border-bottom: 1px solid var(--rule); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.member {
  transition: transform 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.member:hover { transform: translateY(-8px); }
.member-photo {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: border-color 0.4s, box-shadow 0.5s;
}
.member-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, color-mix(in oklab, var(--ink) 75%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 18px 18px;
}
.member:hover .member-photo {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 22px 44px -16px color-mix(in oklab, var(--ink) 30%, transparent);
}
.member:hover .member-photo::after { opacity: 1; }
.member-photo svg,
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease-smooth); }
.member:hover .member-photo svg,
.member:hover .member-photo img { transform: scale(1.06); }
.member-role {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.member-role::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in oklab, var(--accent) 60%, transparent);
}
.member-socials {
  position: absolute;
  bottom: 14px;
  inset-inline: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth);
}
.member:hover .member-socials {
  opacity: 1;
  transform: translateY(0);
}
.member-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-smooth);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.member-socials a:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}
.member-socials svg { width: 14px; height: 14px; }
.member-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.member h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
  transition: color 0.3s;
}
.member:hover h4 { color: var(--accent); }
.member p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.member-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.member-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 25%, transparent);
}
.team-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.3s;
}
.team-more:hover { background: var(--ink); color: var(--bg); }
.team-more .arrow {
  width: 16px; height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10M9 4l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10M9 4l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
  transform: scaleX(-1);
}

/* ============================================
   CULTURE
   ============================================ */
.culture { padding: 120px 0; background: var(--ink); color: var(--bg); border-bottom: 1px solid var(--ink); }
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.culture .sec-kicker { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.culture-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-top: 20px;
  margin-bottom: 24px;
}
.culture-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.culture-lead {
  font-size: 17px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  max-width: 520px;
  margin-bottom: 48px;
}
.culture-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
}
.culture-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.culture-stats b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}
.culture-stats b i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.6em;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}
.culture-stats span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}

.culture-visual {
  position: relative;
  height: 480px;
}
.polaroid {
  position: absolute;
  width: 240px;
  background: var(--bg);
  padding: 12px 12px 20px;
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / 0.5);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.polaroid svg,
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.polaroid span {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  color: var(--ink);
}
.polaroid.p-1 { top: 0; inset-inline-start: 10%; transform: rotate(-6deg); }
.polaroid.p-2 { top: 100px; inset-inline-end: 10%; transform: rotate(5deg); z-index: 2; }
.polaroid.p-3 { bottom: 0; inset-inline-start: 30%; transform: rotate(-2deg); }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 3; }

/* ============================================
   SERVICES PAGE
   ============================================ */
.svc-index {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}
.svc-index-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.svc-index-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 14px;
  padding: 28px 30px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.svc-index-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}
/* Big ghost number behind card */
.svc-index-item::after {
  content: attr(data-ghost);
  position: absolute;
  bottom: -28px;
  inset-inline-end: -18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 180px;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: color-mix(in oklab, var(--accent) 7%, transparent);
  font-feature-settings: "tnum" 1;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.7s var(--ease-smooth), color 0.5s;
}
.svc-index-item > * { position: relative; z-index: 1; }
.svc-index-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 20px 44px -22px color-mix(in oklab, var(--ink) 30%, transparent);
}
.svc-index-item:hover::before { opacity: 1; }
.svc-index-item:hover::after {
  transform: translate(-8px, -8px) rotate(-4deg);
  color: color-mix(in oklab, var(--accent) 16%, transparent);
}
/* Emerald stripe on top of card (animated on hover) */
.svc-index-item .svc-index-stripe {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(to left, var(--accent), var(--accent-deep), var(--accent));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-smooth);
  z-index: 2;
  border-radius: 20px 20px 0 0;
  animation: stripe-shift 3s linear infinite;
}
.svc-index-item:hover .svc-index-stripe {
  transform: scaleX(1);
}
@keyframes stripe-shift {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

.svc-index-num {
  grid-column: 1;
  grid-row: 1;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--stat);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-smooth);
}
.svc-index-item:hover .svc-index-num {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-6deg);
}
.svc-index-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  transition: color 0.3s;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-index-item:hover .svc-index-title { color: var(--accent); }
.svc-index-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.svc-index-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.svc-index-arrow {
  grid-column: 3;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease-smooth);
  align-self: center;
}
.svc-index-item:hover .svc-index-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
  transform: rotate(-45deg);
}
.svc-index-arrow svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .svc-index-list { grid-template-columns: 1fr; }
  .svc-index-item { padding: 22px 24px; }
  .svc-index-num { width: 48px; height: 48px; font-size: 20px; }
}

.svc-detail {
  padding: 120px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.svc-detail:nth-child(even) { background: var(--paper); }

/* Floating decor shapes per service detail */
.svc-detail::before {
  content: "";
  position: absolute;
  top: 20%;
  inset-inline-start: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 20%, transparent) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: svc-float 14s ease-in-out infinite;
  z-index: 0;
}
.svc-detail:nth-child(even)::before {
  inset-inline-start: auto;
  inset-inline-end: -120px;
  top: 60%;
  animation-duration: 18s;
  animation-delay: -4s;
}
@keyframes svc-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.15); }
}
.svc-detail > .wrap { position: relative; z-index: 1; }

/* Sparkles scattered inside service detail */
.svc-sparkle {
  position: absolute;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  animation: svc-twinkle 3.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--accent) 50%, transparent));
}
@keyframes svc-twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
  50%      { transform: scale(1) rotate(180deg); opacity: 0.9; }
}

/* Marquee divider between services */
.svc-divider {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  position: relative;
  padding: 18px 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 8%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 8%, transparent);
}
.svc-divider-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: svc-divider-slide 32s linear infinite;
  width: max-content;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  align-items: center;
}
.svc-divider-track > span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--bg);
}
.svc-divider-track > span > i {
  display: inline-block;
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent);
  font-weight: 400;
}
.svc-divider-track > span > .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 70%, transparent);
}
@keyframes svc-divider-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.svc-divider:hover .svc-divider-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .svc-divider-track { animation: none; }
  .svc-detail::before { animation: none; }
  .svc-sparkle { animation: none; opacity: 0.5; }
}
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.svc-detail-side {
  position: sticky;
  top: 120px;
}
.svc-detail-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 180px;
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
  margin-bottom: 24px;
}
.svc-detail-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
  display: block;
}
.svc-detail h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.svc-detail h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.svc-detail .svc-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.svc-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.svc-feature {
  padding: 24px 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.svc-feature::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 26%, transparent) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s, transform 0.7s var(--ease-smooth);
  pointer-events: none;
}
.svc-feature:hover::before {
  opacity: 1;
  transform: scale(1.4);
}
.svc-feature > * { position: relative; z-index: 1; }
.svc-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  background: var(--paper);
}
.svc-detail:nth-child(even) .svc-feature { background: var(--bg); }
.svc-detail:nth-child(even) .svc-feature:hover { background: var(--paper); }
.svc-feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-smooth);
}
.svc-feature-icon svg { width: 22px; height: 22px; }
.svc-feature:hover .svc-feature-icon {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-6deg);
}
.svc-feature h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.svc-feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
/* change svc-features layout to grid 2-cols card layout */
.svc-features {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 0 !important;
}
@media (max-width: 640px) {
  .svc-features { grid-template-columns: 1fr; }
}

/* Meta strip inside svc-detail side: duration, team, starting price */
.svc-meta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}
.svc-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-meta-cell-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.svc-meta-cell-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc-meta-cell-value svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Services stats band (after page hero) */
.svc-stats-band {
  padding: 50px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}
.svc-stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-stats-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  position: relative;
}
.svc-stats-cell:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--rule);
}
.svc-stats-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.svc-stats-icon svg { width: 20px; height: 20px; }
.svc-stats-body { display: flex; flex-direction: column; gap: 2px; }
.svc-stats-value {
  font-family: var(--stat);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.svc-stats-value i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  font-size: 0.55em;
  margin-inline-start: 2px;
}
.svc-stats-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 820px) {
  .svc-stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .svc-stats-cell:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .svc-stats-band-grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-stats-cell::after { display: none; }
}

.svc-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.svc-tech-chip {
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all 0.2s;
}
.svc-tech-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.portfolio-filters .f-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-inline-end: 12px;
}
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.portfolio-grid {
  padding: 80px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--rule);
}
.portfolio-grid .proj.is-hidden { display: none; }
@media (max-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.proj {
  position: relative;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-smooth), border-color 0.4s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
}
.proj:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 28px 56px -20px color-mix(in oklab, var(--ink) 30%, transparent);
}
.proj-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.proj-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, color-mix(in oklab, var(--ink) 65%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  z-index: 1;
  pointer-events: none;
}
.proj:hover .proj-thumb::after { opacity: 1; }
.proj-thumb svg { width: 100%; height: 100%; display: block; transition: transform 0.8s var(--ease-smooth); }
.proj:hover .proj-thumb svg { transform: scale(1.06); }

/* Chips on thumb */
.proj-chip {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 500;
}
.proj-chip--index {
  inset-inline-start: 14px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.proj-chip--index::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in oklab, var(--accent) 60%, transparent);
}
.proj-chip--year {
  inset-inline-end: 14px;
  background: color-mix(in oklab, var(--ink) 75%, transparent);
  color: var(--bg);
  border: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}

/* View pill on hover */
.proj-view {
  position: absolute;
  bottom: 16px;
  inset-inline: 16px;
  z-index: 3;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth);
}
.proj-view .arrow { transform: scaleX(-1); }
.proj:hover .proj-view {
  opacity: 1;
  transform: translateY(0);
}

.proj-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.proj-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.proj-tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.proj-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.3s;
  margin: 0;
  text-wrap: balance;
}
.proj-title em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent);
  font-weight: 400;
}
.proj:hover .proj-title { color: var(--accent); }
.proj-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.proj-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.proj-meta span b {
  color: var(--ink);
  font-weight: 500;
}
.proj-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 25%, transparent);
  flex-shrink: 0;
}

/* Size modifiers */
.proj.big { grid-column: span 8; }
.proj.big .proj-thumb { aspect-ratio: 16/9; }
.proj.big .proj-title { font-size: 32px; }
.proj.big .proj-body { padding: 32px; gap: 14px; }
.proj.med { grid-column: span 4; }
.proj.sm { grid-column: span 4; }
.proj.wide { grid-column: span 6; }
.proj.wide .proj-title { font-size: 26px; }

/* ============================================
   CASE STUDY PAGE
   ============================================ */
.cs-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--ink);
  color: var(--bg);
  position: relative;
}
.cs-hero .crumbs { color: color-mix(in oklab, var(--bg) 55%, transparent); }
.cs-hero .crumbs a { color: color-mix(in oklab, var(--bg) 55%, transparent); }
.cs-hero .crumbs > span:last-child { color: var(--bg); }

.cs-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding: 40px 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.cs-client {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.cs-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
}
.cs-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.cs-summary {
  font-size: 18px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  max-width: 560px;
}
.cs-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.cs-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.cs-meta-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.cs-meta-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  transition: transform 0.35s var(--ease-smooth);
}
.cs-meta-row:hover .cs-meta-icon {
  transform: rotate(-6deg) scale(1.06);
}
.cs-meta-icon svg { width: 20px; height: 20px; }
.cs-meta-row:last-child { border-bottom: 0; }
.cs-meta-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.cs-meta-row .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cs-cover {
  aspect-ratio: 16/7;
  margin-top: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.cs-cover svg { width: 100%; height: 100%; display: block; }

.cs-body { padding: 120px 0; border-bottom: 1px solid var(--rule); }
.cs-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.cs-section:first-child { border-top: 0; }
.cs-section-label {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-section-label-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  color: var(--accent);
  transition: transform 0.4s var(--ease-smooth), background 0.4s;
}
.cs-section:hover .cs-section-label-icon {
  transform: rotate(-4deg) scale(1.05);
  background: color-mix(in oklab, var(--accent) 28%, transparent);
}
.cs-section-label-icon svg { width: 24px; height: 24px; }
.cs-section-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.cs-section-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.cs-section h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cs-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 680px;
}
.cs-section ul {
  padding: 0;
  margin: 16px 0;
  max-width: 680px;
}
.cs-section ul li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cs-section ul li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  margin-top: 10px;
  border-radius: 50%;
}

.cs-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--ink);
}
.cs-result {
  padding: 32px 24px;
  border-inline-end: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cs-result:last-child { border-inline-end: 0; }
.cs-result b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
  margin-bottom: 8px;
}
.cs-result b i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.6em;
}
.cs-result span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.cs-gallery {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.cs-gallery-item {
  grid-column: span 3;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.cs-gallery-item.wide { grid-column: span 6; aspect-ratio: 16/7; }
.cs-gallery-item svg { width: 100%; height: 100%; display: block; }

.cs-next {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.cs-next a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  transition: padding-inline-start 0.3s;
}
.cs-next a:hover { padding-inline-start: 16px; background: var(--paper); }
.cs-next-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-smooth);
}
.cs-next a:hover .cs-next-arrow {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: translateX(-6px);
}
.cs-next-arrow svg { width: 22px; height: 22px; }

/* Client chip on hero */
.cs-client { display: inline-flex; align-items: center; gap: 10px; }
.cs-client-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 60%, transparent);
  animation: ssClientPulse 2.2s ease-in-out infinite;
}
@keyframes ssClientPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.65; }
}

/* Results section head (centered) */
.cs-results { padding: 100px 0; border-bottom: 1px solid var(--rule); }
.cs-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-radius: 999px;
  margin-bottom: 40px;
}
.cs-kicker-icon { display: inline-grid; place-items: center; }
.cs-kicker-icon svg { width: 14px; height: 14px; }
.sec-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Tech stack */
.cs-tech {
  padding: 60px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}
.cs-tech-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.cs-tech-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--accent);
}
.cs-tech-icon svg { width: 18px; height: 18px; }
.cs-tech-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cs-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-tech-chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s, background 0.25s;
  cursor: default;
}
.cs-tech-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, var(--paper));
}
.cs-next-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.cs-next-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-main {
  padding: 60px 0 120px;
  border-bottom: 1px solid var(--rule);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-form h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
}
.field label .req { color: var(--accent); }
.field input,
.field textarea,
.field select {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.budget-group,
.service-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-input {
  position: relative;
}
.chip-input input { position: absolute; opacity: 0; pointer-events: none; }
.chip-input label {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.chip-input label:hover { border-color: var(--ink); color: var(--ink); }
.chip-input input:checked + label {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}
.form-submit .form-note {
  font-size: 12px;
  color: var(--ink-mute);
}

.contact-info {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: -100px;
  inset-inline-end: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  filter: blur(60px);
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.contact-info h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.info-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.info-row {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.info-row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.info-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  transition: transform 0.3s var(--ease-smooth), background 0.3s;
}
.info-row:hover .info-icon {
  transform: rotate(-6deg) scale(1.06);
  background: color-mix(in oklab, var(--accent) 28%, transparent);
}
.info-icon svg { width: 20px; height: 20px; }
.info-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.info-row .v {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.info-row .v a { color: var(--bg); transition: color 0.2s; }
.info-row .v a:hover { color: var(--accent); }

.info-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.info-social a {
  width: 40px; height: 40px;
  border: 1px solid color-mix(in oklab, var(--bg) 25%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bg);
  transition: all 0.2s;
  font-size: 14px;
}
.info-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.contact-map {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.map-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 21/9;
  position: relative;
}
.map-card svg { width: 100%; height: 100%; display: block; }
.map-pin {
  position: absolute;
  top: 40%;
  inset-inline-start: 48%;
  width: 24px; height: 24px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 30%, transparent);
  animation: pulse 2s infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-foot { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { width: 100%; max-width: 320px; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .tline-item { grid-template-columns: 1fr; gap: 12px; }
  .tline-year { font-size: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: 1fr; gap: 60px; }
  .culture-visual { height: 380px; }
  .svc-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-detail-side { position: static; }
  .svc-detail-num { font-size: 120px; }
  .cs-hero-grid { grid-template-columns: 1fr; }
  .cs-section { grid-template-columns: 1fr; gap: 20px; }
  .cs-section-label { position: static; }
  .cs-result-grid { grid-template-columns: 1fr; }
  .cs-gallery-grid { grid-template-columns: 1fr; }
  .cs-gallery-item, .cs-gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .proj.big, .proj.med, .proj.sm, .proj.wide { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { position: static; }
  .svc-index-item { grid-template-columns: 60px 1fr auto; gap: 20px; }
  .svc-index-arrow { width: 44px; height: 44px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================
   CUSTOM SELECT (ss-select)
   ============================================ */
.ss-select {
  position: relative;
  width: 100%;
  font-family: var(--display);
}
.ss-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.3s, background 0.3s;
}
.ss-select-trigger:hover {
  border-color: var(--ink);
}
.ss-select-trigger:focus-visible {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}
.ss-select.is-open .ss-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
  background: color-mix(in oklab, var(--accent) 4%, var(--paper));
}
.ss-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-select-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  transition: transform 0.35s var(--ease-smooth), background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.ss-select-icon svg { width: 12px; height: 12px; }
.ss-select.is-open .ss-select-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: var(--ink);
}

.ss-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  list-style: none;
  padding: 6px;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px color-mix(in oklab, var(--ink) 28%, transparent),
              0 4px 12px -4px color-mix(in oklab, var(--ink) 12%, transparent);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  transform-origin: top center;
}
.ss-select.is-open .ss-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ss-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, padding 0.3s var(--ease-smooth);
}
.ss-select-option:hover,
.ss-select-option.is-hovered {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  color: var(--ink);
  padding-inline-end: 20px;
}
.ss-select-option.is-selected {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--ink);
  font-weight: 600;
}
.ss-select-option.is-selected:hover {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
}
.ss-select-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.3s var(--ease-smooth);
  flex-shrink: 0;
}
.ss-select-option.is-selected .ss-select-check {
  opacity: 1;
  transform: scale(1);
}

/* Compact variant — used in blog sort */
.ss-select--compact {
  width: auto;
  min-width: 180px;
}
.ss-select--compact .ss-select-trigger {
  padding: 8px 14px 8px 10px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.ss-select--compact .ss-select-icon {
  width: 20px;
  height: 20px;
}
.ss-select--compact .ss-select-menu {
  border-radius: 14px;
  min-width: 200px;
}

/* Scrollbar inside menu */
.ss-select-menu::-webkit-scrollbar { width: 6px; }
.ss-select-menu::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--ink) 15%, transparent);
  border-radius: 3px;
}

/* ============================================
   MOTION PRIMITIVES — grain, cursor, scroll-progress, mesh
   ============================================ */

/* --- Grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(to left, var(--accent), var(--accent-deep));
  will-change: transform;
}

/* --- Custom cursor (contextual / non-traditional) --- */
html:not(.touch) body { cursor: none; }
html:not(.touch) body a,
html:not(.touch) body button,
html:not(.touch) body .btn,
html:not(.touch) body [role="button"],
html:not(.touch) body input,
html:not(.touch) body textarea,
html:not(.touch) body select { cursor: none; }

.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  mix-blend-mode: difference;
  transition: opacity 0.25s ease, transform 0.12s ease;
}
.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  backdrop-filter: blur(2px);
  transition: width 0.35s var(--ease-smooth),
              height 0.35s var(--ease-smooth),
              background 0.35s,
              border-color 0.3s,
              border-radius 0.45s var(--ease-smooth);
  display: grid;
  place-items: center;
}
.cursor-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.35s var(--ease-smooth);
  font-weight: 700;
  white-space: nowrap;
}

/* Hover over links/buttons — morph into filled pill with label */
.cursor.is-link .cursor-ring {
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 50%;
}
.cursor.is-link .cursor-label {
  opacity: 1;
  transform: scale(1);
}
.cursor.is-link .cursor-dot { opacity: 0; }

/* Morph into a "view" square for images / project cards */
.cursor.is-view .cursor-ring {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.is-view .cursor-label { opacity: 1; transform: scale(1); }
.cursor.is-view .cursor-dot { opacity: 0; }

/* Click squish */
.cursor.is-down .cursor-ring {
  width: 28px;
  height: 28px;
  background: var(--accent);
}
.cursor.is-down .cursor-dot { opacity: 0; }

@media (pointer: coarse) {
  .cursor { display: none !important; }
  html:not(.touch) body { cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-ring { transition: none; }
}

/* --- Preloader --- */
.ss-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.ss-preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.ss-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.ss-preloader-mark {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.ss-preloader-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  animation: ssPreBreathe 2.2s ease-in-out infinite;
}
.ss-preloader-orbit {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 50%;
  animation: ssPreSpin 1.1s linear infinite;
}
.ss-preloader-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}
.ss-preloader-bar {
  width: 180px;
  height: 2px;
  background: color-mix(in oklab, var(--bg) 15%, transparent);
  border-radius: 2px;
  overflow: hidden;
}
.ss-preloader-bar span {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: ssPreSlide 1.6s ease-in-out infinite;
}
@keyframes ssPreSpin {
  to { transform: rotate(360deg); }
}
@keyframes ssPreBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.92); opacity: 0.7; }
}
@keyframes ssPreSlide {
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(180%); }
  100% { transform: translateX(380%); }
}

/* --- Back-to-top button --- */
.ss-backtop {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  z-index: 280;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), background 0.3s, color 0.3s, border-color 0.3s;
  box-shadow: 0 12px 28px -14px color-mix(in oklab, var(--ink) 40%, transparent);
}
.ss-backtop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ss-backtop:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1);
}
.ss-backtop-arrow {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-smooth);
}
.ss-backtop:hover .ss-backtop-arrow { transform: translateY(-3px); }
.ss-backtop-arrow svg { width: 20px; height: 20px; }
.ss-backtop-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.ss-backtop-progress {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ss-backtop-progress circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 170;
  stroke-dashoffset: calc(170 - 170 * var(--progress, 0));
  transition: stroke-dashoffset 0.15s linear;
}

/* --- WhatsApp floating button --- */
.ss-whatsapp {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 280;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 14px 32px -10px rgba(37, 211, 102, 0.55);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s;
}
.ss-whatsapp:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.75);
}
.ss-whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: ssWaPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes ssWaPulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.ss-whatsapp svg { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .ss-backtop, .ss-whatsapp { width: 48px; height: 48px; bottom: 20px; }
  .ss-backtop { inset-inline-start: 16px; }
  .ss-whatsapp { inset-inline-end: 16px; }
  .ss-whatsapp svg { width: 24px; height: 24px; }
}

/* --- Ribbon counters --- */
.ribbon-count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- Mesh primitive (emerald + ink) --- */
.mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, color-mix(in oklab, var(--accent) 55%, transparent) 0%, transparent 60%),
    radial-gradient(55% 60% at 80% 90%, color-mix(in oklab, var(--ink) 40%, transparent) 0%, transparent 60%);
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
}

/* --- Focus-visible rings (accessibility) --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.pill:focus-visible,
.work:focus-visible,
.svc-item:focus-visible,
.post:focus-visible,
.filter-chip:focus-visible,
.tech-cell:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  top: -40px;
  inset-inline-start: 16px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  z-index: 400;
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.25s;
}
.skip-link:focus { top: 16px; }

/* --- Backdrop-filter fallback (older/underpowered browsers) --- */
@supports not (backdrop-filter: blur(1px)) {
  .testi-marquee .testi-card {
    background: color-mix(in oklab, var(--paper) 92%, transparent);
  }
  .svc-bento .svc-item:hover {
    backdrop-filter: none;
  }
}

/* --- Reduced motion: disable everything new + collapse old --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cursor,
  .grain,
  .scroll-progress { display: none !important; }
}

/* --- Kill switch via data attribute --- */
html[data-motion="off"] .cursor,
html[data-motion="off"] .grain,
html[data-motion="off"] .scroll-progress { display: none !important; }
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

/* ============================================
   CONSULTATION PAGE
   ============================================ */
.page-consultation { background: var(--bg); }

/* --- Trust bar --- */
.trust-bar-section { padding: 40px 0 60px; }
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, box-shadow 0.4s;
}
.trust-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  box-shadow: 0 16px 32px -18px color-mix(in oklab, var(--ink) 25%, transparent);
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-smooth);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-item:hover .trust-icon {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-5deg);
}
.trust-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust-body b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-body span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- Wizard --- */
.wizard-section { padding: 40px 0 100px; }
.wizard {
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--ink) 28%, transparent);
}

/* step indicator */
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.wizard-steps-line {
  position: absolute;
  top: 18px;
  inset-inline: 16%;
  height: 2px;
  background: var(--rule);
  z-index: 0;
  border-radius: 2px;
  overflow: hidden;
}
.wizard-steps-fill {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(to left, var(--accent), var(--accent-deep));
  transition: width 0.6s var(--ease-smooth);
}
.wizard-step-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.wizard-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rule);
  color: var(--ink-mute);
  display: grid;
  place-items: center;
  font-family: var(--stat);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s var(--ease-smooth);
}
.wizard-step-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.4s;
}
.wizard-step-btn.is-active .wizard-step-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
  transform: scale(1.12);
}
.wizard-step-btn.is-active .wizard-step-label {
  color: var(--ink);
}
.wizard-step-btn.is-complete .wizard-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.wizard-step-btn.is-complete .wizard-step-label {
  color: var(--accent);
}

/* steps */
.wizard-step {
  display: none;
  animation: wizard-in 0.6s var(--ease-smooth);
}
.wizard-step.is-active {
  display: block;
}
@keyframes wizard-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-step-head { margin-bottom: 32px; }
.wizard-step-kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.wizard-step-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.wizard-step-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.wizard-field { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.wizard-field-label {
  display: block;
  width: 100%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}

.wizard-form .field-row { margin-bottom: 20px; }
.wizard-form .field { margin-bottom: 20px; }
.wizard-form .field:last-child { margin-bottom: 0; }

/* wizard nav */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
}
.wizard-nav--submit { justify-content: space-between; }
.wizard-nav-info {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.wizard-next, .wizard-submit {
  margin-inline-start: auto;
}
.wizard-prev .arrow-back { transform: rotate(180deg); }
.wizard-consent {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.6;
}
.wizard-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.wizard-step[data-error] .service-group,
.wizard-step[data-error] .budget-group {
  animation: wizard-shake 0.4s;
}
@keyframes wizard-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.wizard-step-error {
  color: #ef4444;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 10px;
  display: none;
}
.wizard-step[data-error] .wizard-step-error { display: block; }

@media (max-width: 820px) {
  .wizard { padding: 32px 24px; }
  .wizard-steps { margin-bottom: 32px; padding-bottom: 24px; }
  .wizard-step-label { display: none; }
  .wizard-nav { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .trust-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-bar { grid-template-columns: 1fr; }
}

/* --- Consultation process --- */
.cons-process { padding: 100px 0; background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cons-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.cons-step {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s;
}
.cons-step:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
}
.cons-step-num {
  font-family: var(--stat);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.cons-step h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}
.cons-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.cons-step-time {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 960px) {
  .cons-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cons-steps { grid-template-columns: 1fr; }
}

/* --- Consultation testimonials --- */
.cons-testi { padding: 100px 0; }
.cons-testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 60px;
}
@media (max-width: 820px) {
  .cons-testi-grid { grid-template-columns: 1fr; }
}

/* --- FAQ accordion --- */
.cons-faq { padding: 100px 0; background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.faq-accordion {
  max-width: 820px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 4px 6px;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.faq-item[open] {
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  box-shadow: 0 16px 40px -24px color-mix(in oklab, var(--ink) 25%, transparent);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s, transform 0.4s var(--ease-smooth);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-smooth), background 0.3s;
}
.faq-toggle::before {
  top: 50%;
  inset-inline: 8px;
  height: 2px;
  transform: translateY(-50%);
}
.faq-toggle::after {
  inset-inline-start: 50%;
  inset-block: 8px;
  width: 2px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-toggle {
  background: var(--accent);
}
.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after {
  background: var(--ink);
}
.faq-item[open] .faq-toggle::after {
  transform: translateX(-50%) rotate(90deg);
}
.faq-a {
  padding: 0 22px 22px;
  animation: faq-open 0.4s var(--ease-smooth);
}
.faq-a p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 70ch;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BLOG PAGE (LISTING)
   ============================================ */
.page-blog { background: var(--bg); }

/* --- Featured post --- */
.blog-featured-section { padding: 40px 0 60px; }
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  align-items: center;
  perspective: 1400px;
  transition: transform 0.5s var(--ease-smooth), border-color 0.4s, box-shadow 0.5s;
}
.blog-featured:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 24px 56px -24px color-mix(in oklab, var(--ink) 30%, transparent);
}
.blog-featured-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-smooth);
}
.blog-featured:hover .blog-featured-thumb { transform: rotateY(3deg) scale(1.01); }
.blog-featured-thumb svg {
  width: 100%; height: 100%; display: block;
  transition: transform 1s var(--ease-smooth);
}
.blog-featured:hover .blog-featured-thumb svg { transform: scale(1.06); }
.blog-featured-badge {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.blog-featured-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}
.blog-featured-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  transition: color 0.3s;
}
.blog-featured:hover .blog-featured-body h2 { color: var(--accent); }
.blog-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
  transition: gap 0.4s var(--ease-smooth);
}
.blog-featured:hover .blog-featured-cta { gap: 16px; }
.blog-featured-cta .arrow { transform: scaleX(-1); }

@media (max-width: 960px) {
  .blog-featured { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .blog-featured-body { padding: 10px; }
}

/* --- Blog listing grid --- */
.blog-listing-section { padding: 40px 0 100px; }
.blog-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-filters .filter-chip .filter-count {
  display: inline-block;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  color: var(--ink-mute);
  padding: 1px 8px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  margin-inline-start: 6px;
  transition: background 0.3s, color 0.3s;
}
.blog-filters .filter-chip.active .filter-count {
  background: color-mix(in oklab, var(--bg) 25%, transparent);
  color: var(--bg);
}
.blog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-sort-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.blog-sort-select {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--paper);
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
}

.blog-listing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-listing .post.is-hidden {
  display: none;
}
.blog-load-more-wrap {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

@media (max-width: 960px) {
  .blog-listing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-listing { grid-template-columns: 1fr; }
  .blog-filters-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* --- Newsletter band --- */
.newsletter-band {
  padding: 100px 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.newsletter-band .wrap { position: relative; z-index: 1; }
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.newsletter-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 20px 0 20px;
}
.newsletter-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}
.newsletter-lead {
  font-size: 17px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  max-width: 52ch;
  margin: 0;
}
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.newsletter-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 4%, transparent);
  transition: border-color 0.3s, background 0.3s;
}
.newsletter-row:focus-within {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.newsletter-row input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 18px;
  color: var(--bg);
  font-family: var(--display);
  font-size: 15px;
  outline: none;
}
.newsletter-row input::placeholder {
  color: color-mix(in oklab, var(--bg) 45%, transparent);
}
.newsletter-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}
@media (max-width: 820px) {
  .newsletter-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   BLOG POST (ARTICLE DETAIL)
   ============================================ */
.page-blog-post { background: var(--bg); }

/* --- Article hero --- */
.article-hero {
  padding: 140px 0 0;
  border-bottom: 1px solid var(--rule);
}
.article-hero .crumbs { margin-bottom: 48px; }
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.article-category {
  padding: 6px 14px;
  border-radius: 100px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 500;
}
.article-meta-sep { opacity: 0.4; }
.article-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 0 28px;
  text-wrap: balance;
}
.article-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}
.article-lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.article-hero-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 40px;
}
.article-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), color-mix(in oklab, var(--ink) 70%, var(--accent)));
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent);
  flex-shrink: 0;
}
.article-author-info h5 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}
.article-author-info p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.article-cover {
  aspect-ratio: 16/7;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
}
.article-cover svg { width: 100%; height: 100%; display: block; }

/* --- Article layout (sidebar + body) --- */
.article-layout-section { padding: 80px 0 60px; }
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

/* --- Sidebar: TOC + share --- */
.article-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.article-toc h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}
.article-toc li { counter-increment: toc; }
.article-toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
  position: relative;
  transition: color 0.3s, padding-inline-start 0.3s var(--ease-smooth);
}
.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  flex-shrink: 0;
  width: 24px;
  padding-top: 2px;
}
.article-toc a:hover {
  color: var(--accent);
  padding-inline-start: 4px;
}
.article-toc a.is-active {
  color: var(--ink);
  font-weight: 600;
}
.article-toc a.is-active::before {
  color: var(--accent);
  font-weight: 700;
}

.article-share-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.article-share-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-share-btns a,
.article-share-btns button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-smooth);
}
.article-share-btns a:hover,
.article-share-btns button:hover {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.article-share-btns button.is-copied {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

/* --- Article body typography --- */
.article-body {
  max-width: 720px;
}
.article-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 56px 0 20px;
  color: var(--ink);
  scroll-margin-top: 120px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
  color: var(--ink);
  scroll-margin-top: 120px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in oklab, var(--accent) 50%, transparent);
  transition: text-decoration-color 0.3s, color 0.3s;
}
.article-body a:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-inline-start: 6px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.article-body ul li,
.article-body ol li {
  margin-bottom: 10px;
  padding-inline-start: 28px;
  position: relative;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  inset-inline-start: 0;
  width: 14px;
  height: 2px;
  background: var(--accent);
}
.article-body ol { counter-reset: ol; list-style: none; }
.article-body ol li { counter-increment: ol; }
.article-body ol li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.article-body blockquote {
  margin: 32px 0;
  padding: 28px 32px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  border-inline-start: 4px solid var(--accent);
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.article-body figure {
  margin: 36px 0;
}
.article-figure-visual {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.article-figure-visual svg { width: 100%; height: auto; display: block; }
.article-body figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.6;
}
.article-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 8px;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--ink);
  border-radius: 4px;
}
.article-body pre {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  overflow-x: auto;
}
.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    gap: 20px;
  }
  .article-share-vertical {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-top: 0;
  }
}

/* --- Author bio --- */
.article-author-bio-section { padding: 40px 0; }
.author-bio {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), color-mix(in oklab, var(--ink) 60%, var(--accent)));
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px color-mix(in oklab, var(--accent) 30%, transparent);
}
.author-bio-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.author-bio-body h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.author-bio-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.author-bio-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.author-bio-links a {
  color: var(--ink);
  transition: color 0.3s;
}
.author-bio-links a:hover { color: var(--accent); }
.author-bio-links span { opacity: 0.3; }

@media (max-width: 640px) {
  .author-bio { grid-template-columns: 1fr; text-align: start; padding: 24px; }
  .author-bio-avatar { margin-bottom: 10px; }
}

/* --- Article footer (tags + share) --- */
.article-footer-section { padding: 40px 0 60px; }
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.article-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.article-tag-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-tag {
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.article-tag:hover {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}
.article-share-horizontal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-share-horizontal a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-smooth);
}
.article-share-horizontal a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

/* --- Prev / Next --- */
.article-nav-section { padding: 40px 0 80px; }
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.article-nav-item {
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s, box-shadow 0.4s;
}
.article-nav-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  box-shadow: 0 16px 36px -18px color-mix(in oklab, var(--ink) 25%, transparent);
}
.article-nav-next { text-align: start; }
.article-nav-prev { text-align: end; }
.article-nav-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-nav-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.3s;
}
.article-nav-item:hover .article-nav-title { color: var(--accent); }
.article-nav-arrow {
  position: absolute;
  bottom: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s;
}
.article-nav-prev .article-nav-arrow { inset-inline-start: 24px; }
.article-nav-next .article-nav-arrow { inset-inline-end: 24px; }
.article-nav-item:hover .article-nav-arrow {
  background: var(--accent);
  color: var(--ink);
}
.article-nav-arrow .arrow-back { transform: rotate(180deg); }

@media (max-width: 640px) {
  .article-nav { grid-template-columns: 1fr; }
}

/* --- Related posts --- */
.related-posts-section { padding: 80px 0 100px; background: var(--bg-soft); border-top: 1px solid var(--rule); }
.related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .related-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related-posts { grid-template-columns: 1fr; }
}

/* --- Form feedback banner (AJAX submit result) --- */
.ss-form-feedback {
  display: none;
  margin-top: 22px;
  padding: 16px 20px 16px 56px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  position: relative;
  box-shadow: 0 6px 22px rgba(10, 22, 18, 0.06);
  animation: ssFeedbackIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
[dir="rtl"] .ss-form-feedback,
.ss-form-feedback {
  padding: 16px 56px 16px 20px;
}
.ss-form-feedback:not(:empty) { display: block; }
.ss-form-feedback::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.ss-form-feedback[data-kind="success"] {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: color-mix(in srgb, var(--accent) 85%, var(--ink));
}
.ss-form-feedback[data-kind="success"]::before {
  background: var(--accent);
  content: "✓";
  font-size: 16px;
}
.ss-form-feedback[data-kind="error"] {
  background: #fdecec;
  border-color: #f3b6b6;
  color: #a81f1f;
}
.ss-form-feedback[data-kind="error"]::before {
  background: #d14343;
  content: "!";
  font-size: 15px;
}
.ss-form-feedback[data-kind="info"] {
  background: var(--bg-soft);
  border-color: var(--rule);
  color: var(--muted);
}
.ss-form-feedback[data-kind="info"]::before {
  background: var(--muted);
  content: "…";
  font-size: 15px;
  letter-spacing: 1px;
  padding-bottom: 6px;
}
.ss-form-feedback .ss-feedback-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: 0.55;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.ss-form-feedback .ss-feedback-close:hover { opacity: 1; background: rgba(0,0,0,0.06); }

@keyframes ssFeedbackIn {
  0%   { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

form.is-submitted .ss-form-feedback[data-kind="success"] {
  box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ss-form-feedback { animation: none; }
}

/* ============================================
   Blog cards — refined design
   ============================================ */
.blog-listing {
  gap: 28px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  gap: 0;
  transition: transform 0.45s var(--ease-smooth), border-color 0.45s, box-shadow 0.45s var(--ease-smooth);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--rule));
  box-shadow: 0 24px 44px -18px color-mix(in oklab, var(--ink) 30%, transparent);
}
.post-card .post-thumb {
  aspect-ratio: 16/10;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  background: var(--bg-soft);
  transform: none !important;
  box-shadow: none !important;
}
.post-card .post-thumb svg,
.post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-smooth);
}
.post-card:hover .post-thumb svg,
.post-card:hover .post-thumb img {
  transform: scale(1.06);
}
.post-cat-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.post-card .post-read {
  inset-inline-end: 14px;
  bottom: 14px;
  padding: 9px 14px;
  font-size: 10px;
  background: var(--ink);
  color: var(--bg);
}
.post-card:hover .post-read { background: var(--accent); color: var(--ink); }
.post-card .post-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-card .post-meta {
  gap: 10px;
  align-items: center;
  font-size: 10.5px;
  color: var(--ink-mute);
}
.post-card .post-meta .post-dot { opacity: 0.5; }
.post-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover h3 { color: color-mix(in oklab, var(--accent) 85%, var(--ink)); }
.post-card .post-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .post-cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s, gap 0.3s;
}
.post-card:hover .post-cta {
  color: var(--accent);
  gap: 12px;
}
.post-card .post-cta .arrow {
  transform: scaleX(-1);
  transition: transform 0.3s var(--ease-smooth);
}
.post-card:hover .post-cta .arrow { transform: scaleX(-1) translateX(-3px); }

/* ============================================
   Pagination — blog / archive / search
   ============================================ */
.pagination-wrap {
  margin-top: 72px;
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
}
.pagination-wrap .nav-links,
.pagination-wrap > * {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.pagination-wrap .page-numbers + .page-numbers {
  margin-inline-start: 6px;
}
.pagination-wrap .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    background 0.3s var(--ease-smooth),
    color 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s;
}
.pagination-wrap a.page-numbers:hover {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px color-mix(in oklab, var(--ink) 55%, transparent);
}
.pagination-wrap .page-numbers.current {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--accent) 70%, transparent);
}
.pagination-wrap .page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: auto;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
}
.pagination-wrap .prev,
.pagination-wrap .next {
  padding: 0 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  gap: 8px;
}
.pagination-wrap .prev:hover,
.pagination-wrap .next:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

@media (max-width: 520px) {
  .pagination-wrap { margin-top: 48px; margin-bottom: 64px; }
  .pagination-wrap .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 12px;
    padding: 0 10px;
  }
  .pagination-wrap .prev,
  .pagination-wrap .next { padding: 0 14px; }
}
