/* ============================================================
   ARIEL SHEMESH — PORTFOLIO  ·  global stylesheet
   Multi-page static site. Liquid Glass aesthetic, Space Grotesk.
   ============================================================ */

:root {
  /* Brand colors — ported from React build */
  --color-bg: #F3F6FD;
  --color-ink: #1B2A6B;
  --color-blue: #1E36B8;
  --color-blue-glow: #4A8DFF;
  --color-dark: #0E1024;
  --color-dark-2: #15182E;
  --color-muted: #6B7094;
  --color-line: #D7DEEF;

  /* Surface text tokens (dark canvas) */
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-muted: rgba(255, 255, 255, 0.48);

  --accent: var(--color-blue-glow);

  /* Type */
  --font-display: "Space Grotesk", "Manrope", -apple-system, sans-serif;
  --font-sans: "Space Grotesk", "Manrope", -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Motion + radii */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-pill: 980px;
  --r-card: 18px;

  /* Liquid Glass surfaces */
  --glass-bg-dark: linear-gradient(180deg, rgba(20, 22, 36, 0.78) 0%, rgba(12, 14, 26, 0.62) 100%);
  --glass-border-dark: 0.5px solid rgba(255, 255, 255, 0.18);
  --glass-gloss-dark: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.30);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--color-dark); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  animation: page-fade 0.6s var(--ease);

  /* Site-wide ambient background — the hero atmosphere extended to every page.
     background-attachment: fixed keeps the radial centers anchored as you scroll. */
  background-color: #0a0820;
  background-image:
    radial-gradient(ellipse 70% 60% at 18% 22%, rgba(82, 0, 255, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 70% 55% at 82% 78%, rgba(60, 255, 208, 0.32) 0%, transparent 65%),
    radial-gradient(ellipse 90% 60% at 50% 55%, rgba(30, 54, 184, 0.45) 0%, transparent 60%);
  background-attachment: fixed;
  background-size: 100% 100%;
}
@keyframes page-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img, svg, video { display: block; max-width: 100%; }

:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--color-blue-glow); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2f52; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blue-glow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.site-wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  width: 100%;
}
@media (min-width: 640px)  { .site-wrap { padding-inline: 1.75rem; } }
@media (min-width: 1024px) { .site-wrap { padding-inline: 2.75rem; } }
@media (min-width: 1280px) { .site-wrap { padding-inline: 4rem; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.72;
}
.body-figma { letter-spacing: -0.011em; line-height: 1.6; }

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  will-change: opacity;
  transform: translateZ(0);
}
.orb-blue   { background: radial-gradient(circle, #3859FF 0%, transparent 70%); }
.orb-deep   { background: radial-gradient(circle, #1E36B8 0%, transparent 70%); }
.orb-mint   { background: radial-gradient(circle, #3cffd0 0%, transparent 70%); }
.orb-violet { background: radial-gradient(circle, #5200ff 0%, transparent 70%); }
.grid-dark {
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.noise {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV — floating Liquid Glass pill
   ============================================================ */
.nav {
  position: fixed; top: 54px; left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 200;
  width: calc(100% - 32px); max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 20px;
  border-radius: var(--r-pill);
  background: var(--glass-bg-dark);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: var(--glass-border-dark);
  box-shadow: var(--glass-gloss-dark), var(--glass-shadow);
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease), top 0.35s var(--ease);
  will-change: transform;
}
.nav.scrolled { top: 14px; }
.nav.hidden   { transform: translate3d(-50%, -160%, 0); opacity: 0; pointer-events: none; }

.nav.over-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 250, 0.92));
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 36px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.05);
}
.nav.over-light .nav-logo { color: var(--color-ink); }
.nav.over-light .nav-trigger { color: #3c3c3c; }
.nav.over-light .nav-trigger:hover,
.nav.over-light .nav-item:hover .nav-trigger {
  color: #000;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}
.nav.over-light .nav-trigger.active { color: var(--color-ink); }
.nav.over-light .nav-cta { background: var(--color-ink); color: #fff; }
.nav.over-light .nav-cta:hover { background: var(--color-blue); color: #fff; }
.nav.over-light .nav-burger { background: rgba(0, 0, 0, 0.06); color: #000; }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.025em;
  font-size: 15px; color: #fff;
  font-family: var(--font-display);
  transition: opacity 0.25s var(--ease);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo .logo-3d {
  width: 32px; height: 32px;
  display: block; flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

.nav-links {
  display: flex; gap: 2px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
}
.nav-item { position: relative; padding-bottom: 22px; margin-bottom: -22px; }
.nav-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-pill);
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-family: var(--font-sans);
}
.nav-trigger:hover, .nav-item:hover .nav-trigger {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.nav-trigger.active { color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--r-pill);
  color: #fff;
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em;
  font-family: var(--font-sans);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, rgba(74, 141, 255, 0.45) 0%, rgba(30, 54, 184, 0.30) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 3px 12px -4px rgba(74, 141, 255, 0.30);
  transition:
    background 0.32s var(--ease),
    transform 0.32s var(--ease),
    border-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}
.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(180deg, rgba(96, 158, 255, 0.55) 0%, rgba(40, 70, 200, 0.36) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 6px 18px -6px rgba(74, 141, 255, 0.45);
}
.nav-cta .arrow { display: inline-block; transition: transform 0.32s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }
.nav-burger {
  display: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); place-items: center;
  color: #fff;
}
.nav-burger svg { width: 15px; height: 15px; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .nav { padding: 8px 8px 8px 16px; top: 16px; }
  .nav.scrolled { top: 8px; }
}

/* ============================================================
   MOBILE DRAWER — Clickpros-style accordion (1:1)
   ============================================================ */
.drawer {
  position: fixed; inset: 0; z-index: 300;
  /* Liquid Glass — translucent so the site-wide hero gradient shows through */
  background: linear-gradient(180deg, rgba(20, 22, 46, 0.58) 0%, rgba(14, 16, 36, 0.48) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column;
  padding: 72px 18px 24px;
  overflow: hidden;
  transform: translate3d(0, -110vh, 0);
  visibility: hidden; pointer-events: none;
  transition: transform 0.5s var(--ease), visibility 0.5s var(--ease);
}
.drawer.open {
  transform: translate3d(0, 0, 0);
  visibility: visible; pointer-events: auto;
}
.drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: #fff; flex-shrink: 0; z-index: 5;
  transition: background 0.25s var(--ease);
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.14); }
.drawer-foot {
  margin-top: auto; padding-top: 24px;
  font-size: 12.5px; color: var(--ink-muted);
  flex-shrink: 0; text-align: center;
}

/* Simple drawer link list — top-level pages only on mobile */
.drawer ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  padding: 0; margin: 0;
}
.drawer ul li { margin: 0; }
.drawer ul a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
  color: #fff;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.drawer ul a::after {
  content: '\2192';
  font-size: 18px;
  color: var(--ink-muted);
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
}
.drawer ul a:hover {
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
}
.drawer ul a:hover::after { color: var(--accent); transform: translateX(3px); }

/* ============================================================
   LIQUID GLASS — surfaces
   ============================================================ */
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 30px 80px -20px rgba(12, 20, 80, 0.55),
    0 14px 40px -10px rgba(74, 141, 255, 0.22);
  border-radius: 24px;
}
.glass-shine {
  pointer-events: none; position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, 0.25) 0%, transparent 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(74, 141, 255, 0.28) 0%, transparent 60%);
  mix-blend-mode: screen; opacity: 0.9;
}
.lg-chip {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--color-blue-glow);
  border: 0.5px solid rgba(255, 255, 255, 0.30);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%),
    radial-gradient(120% 100% at 50% 0%, rgba(74, 141, 255, 0.20) 0%, rgba(74, 141, 255, 0) 70%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 6px 14px -6px rgba(74, 141, 255, 0.32);
}

/* ============================================================
   BUTTONS
   ============================================================ */
/* Lighter primary CTA — translucent glass pill with blue glow halo, less weight */
.btn-apple {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.7rem 1.4rem;
  color: #fff; font-weight: 500; font-size: 0.9rem;
  letter-spacing: -0.01em; border-radius: 980px;
  border: 0.5px solid rgba(255, 255, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, rgba(74, 141, 255, 0.55) 0%, rgba(30, 54, 184, 0.45) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 16px -6px rgba(74, 141, 255, 0.40);
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    background 0.32s var(--ease),
    border-color 0.32s var(--ease);
}
.btn-apple:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(180deg, rgba(96, 158, 255, 0.65) 0%, rgba(40, 70, 200, 0.50) 100%);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 24px -8px rgba(74, 141, 255, 0.55);
}
.btn-apple:active { transform: translateY(0) scale(0.985); transition-duration: 0.12s; }

.btn-apple-ghost-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  color: #fff; font-weight: 500; font-size: 0.88rem;
  letter-spacing: -0.01em; border-radius: 980px;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 14px -8px rgba(0, 0, 0, 0.30);
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    background 0.32s var(--ease),
    border-color 0.32s var(--ease);
}
.btn-apple-ghost-light:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 8px 22px -8px rgba(74, 141, 255, 0.30);
}
.btn-apple-ghost-light:active { transform: translateY(0) scale(0.985); transition-duration: 0.12s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  /* Background comes from body — already carries the hero atmosphere site-wide. */
  padding: 7rem 0 3rem;
}
@media (min-width: 768px) { .hero { padding: 8rem 0 4rem; min-height: 92vh; } }

.hero-grid {
  position: relative; z-index: 10;
  display: grid; gap: 2.25rem; align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr auto; gap: 3rem; }
}
.hero-eye-rule {
  position: relative; padding-left: 1.25rem; margin-bottom: 1.5rem;
}
.hero-eye-rule::before {
  content: ''; position: absolute; left: 0; top: 0.25rem; bottom: 0.5rem;
  width: 3px; border-radius: 999px;
  background: var(--color-blue-glow); opacity: 0.85;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 6rem); line-height: 0.9;
  letter-spacing: -0.045em; color: #fff;
}
.hero h1 .pill-decisions {
  display: inline-block; vertical-align: baseline;
  padding: 0.05em 0.4em; margin-right: 0.1em;
  background: #3cffd0; color: #0a0a0a;
  border-radius: 0.4rem;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
}
.hero p.tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem; max-width: 34rem;
  letter-spacing: -0.011em; line-height: 1.55;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) { .hero p.tagline { font-size: 1.125rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  transition: transform 0.3s var(--ease);
}
.hero-link-arrow:hover { transform: translateX(8px); }
.hero-link-arrow span { border-bottom: 2px solid #fff; padding-bottom: 0.25rem; }

.profile-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 420px;
  margin-inline: auto;
}
.profile-card .viewer { position: relative; height: 260px; width: 100%; }
.profile-card .profile-photo {
  display: flex; justify-content: center;
  padding: 28px 0 16px;
}
.profile-card .profile-photo img {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.profile-card .profile-photo .photo-pending { display: none; }
.profile-card .profile-photo.no-photo img { display: none; }
.profile-card .profile-photo.no-photo .photo-pending {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  width: 200px; height: 200px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px; font-weight: 500; text-align: center;
}
.profile-card .info-rows {
  position: relative; padding: 0.25rem 1.5rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.profile-card .row {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 500;
  letter-spacing: -0.011em; line-height: 1.6;
}

/* ============================================================
   SECTION shells
   ============================================================ */
.section { position: relative; padding: 3.25rem 0; }
.section-header {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.045em; line-height: 0.9;
  color: #fff;
}
.section h2 .accent { color: var(--color-blue-glow); }
.section .lede {
  color: rgba(255, 255, 255, 0.65); font-size: 1.05rem;
  max-width: 36rem; letter-spacing: -0.011em; line-height: 1.6;
}

.page-hero {
  position: relative; padding: 8rem 0 2.5rem;
  overflow: hidden;
  /* Background comes from body — transparent so the site-wide gradient shows through. */
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  letter-spacing: -0.045em; line-height: 0.88;
  color: #fff; max-width: 18ch;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem; max-width: 36rem;
  margin-top: 1rem;
  letter-spacing: -0.011em; line-height: 1.55;
}

/* ============================================================
   PROJECT TILES
   ============================================================ */
/* Horizontal rail — projects on a single row, swipe / scroll between them. */
.projects-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: safe center;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 0.25rem 0.75rem;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
}
.projects-grid::-webkit-scrollbar { display: none; }

/* Desktop: rails unfold into a centered, wrapping grid — no horizontal scroll. */
@media (min-width: 1024px) {
  .projects-grid,
  .services-grid {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    row-gap: 1.25rem;
  }
}
.tag {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.7rem;
  background: rgba(30, 54, 184, 0.08);
  color: var(--color-blue);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
}

/* ============================================================
   SERVICE / ARTICLE TILE — shared pill tag chip
   ============================================================ */
.svc-tool {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em;
}

/* ============================================================
   ARTICLE TILES (Liquid Glass — same vocabulary as service-card)
   ============================================================ */
.article-tile {
  position: relative;
  padding: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 12px 40px rgba(0, 0, 0, 0.30);
  display: flex; flex-direction: column; gap: 0.85rem;
  flex: 0 0 auto !important;
  width: 320px !important;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
@media (min-width: 1024px) {
  .article-tile { width: 360px !important; }
}
.article-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 141, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 60px rgba(0, 0, 0, 0.35),
    0 6px 20px -4px rgba(74, 141, 255, 0.25);
}
.article-tile-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.article-tile-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.25rem; line-height: 1; letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
}
.article-tile-tag {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  flex: 1; text-align: left; padding-left: 0.6rem;
}
.article-tile-arrow {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.04);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  transition:
    transform 0.5s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.article-tile:hover .article-tile-arrow {
  transform: rotate(45deg);
  background: rgba(74, 141, 255, 0.15);
  border-color: rgba(74, 141, 255, 0.40);
}
.article-tile h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; letter-spacing: -0.03em; line-height: 1.1;
  color: #fff; margin-top: 0.25rem;
}
.article-tile-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem; letter-spacing: -0.011em; line-height: 1.55;
  flex: 1;
}
.article-tile-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem;
}

.article-tag {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.7rem;
  background: rgba(74, 141, 255, 0.12);
  color: var(--color-blue-glow);
  border: 0.5px solid rgba(74, 141, 255, 0.30);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.06em;
}
/* ============================================================
   ARTICLE PAGE — back-link
   ============================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s var(--ease);
}
.back-link:hover { color: var(--accent); }

/* ============================================================
   MOBILE ACCORDION CARDS (≤640px)
   Pattern lifted from CLICKPROS' "Brand. Performance. Content."
   section: each card collapses to a single row; tap toggles open.
   ============================================================ */
@media (max-width: 640px) {
  /* SCOPED to .mobile-accordion — Featured on home keeps the rail. */
  .projects-grid.mobile-accordion {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow: visible !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    padding-block: 0.5rem 0 !important;
    scroll-snap-type: none !important;
  }

  .mobile-accordion > .article-tile {
    width: 100% !important;
    flex: 0 0 auto !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    scroll-snap-align: none !important;
  }

  .mobile-accordion > .article-tile::after {
    content: '+';
    position: absolute;
    top: 14px; right: 18px;
    font-size: 24px; font-weight: 300; line-height: 1;
    color: rgba(255, 255, 255, 0.55);
    transition: transform 0.35s var(--ease), color 0.25s var(--ease);
    pointer-events: none;
    z-index: 5;
  }
  .mobile-accordion > .article-tile.open::after {
    transform: rotate(45deg);
    color: var(--color-blue-glow);
  }
  .mobile-accordion > .article-tile {
    width: 100% !important;
    padding: 14px 50px 14px 18px !important;
    gap: 0 !important;
  }
  .mobile-accordion > .article-tile .article-tile-arrow { display: none !important; }
  .mobile-accordion > .article-tile .article-tile-num { font-size: 18px !important; }
  .mobile-accordion > .article-tile .article-tile-tag { padding-left: 0.6rem; }
  .mobile-accordion > .article-tile h3 {
    font-size: 16px !important;
    margin-top: 8px !important;
  }
  .mobile-accordion > .article-tile .article-tile-desc,
  .mobile-accordion > .article-tile .article-tile-tags {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0 !important;
    transition:
      max-height 0.45s var(--ease),
      opacity 0.3s var(--ease),
      margin 0.35s var(--ease);
  }
  .mobile-accordion > .article-tile.open .article-tile-desc {
    max-height: 240px;
    opacity: 1;
    margin-top: 10px !important;
  }
  .mobile-accordion > .article-tile.open .article-tile-tags {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px !important;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 2rem; }
}
.contact-form {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.5rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(140%);
}
.contact-form label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
/* Liquid Glass form inputs */
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.20),
    0 1px 2px rgba(0, 0, 0, 0.20);
  color: #fff; font-family: var(--font-sans);
  font-size: 0.95rem; letter-spacing: -0.005em;
  transition:
    border-color 0.32s var(--ease),
    background 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.30); }
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(74, 141, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(74, 141, 255, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(74, 141, 255, 0.10),
    0 4px 18px -6px rgba(74, 141, 255, 0.30);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form button { align-self: flex-start; margin-top: 0.5rem; }

.contact-aside {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 0.5px solid rgba(255, 255, 255, 0.10);
}
.contact-aside h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: #fff; letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}
.contact-row {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .lg-chip { width: 2rem; height: 2rem; }
.contact-row .lg-chip svg { width: 14px; height: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; padding: 2rem 0 1.25rem;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
}
.footer h4 {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.6rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.footer ul a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem; letter-spacing: -0.011em;
  transition: color 0.2s ease;
}
.footer ul a:hover { color: #fff; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  max-width: 32ch;
  letter-spacing: -0.011em; line-height: 1.6;
}
.footer-base {
  margin-top: 1.75rem; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45); font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
@media (min-width: 768px) {
  .footer-base { flex-direction: row; justify-content: space-between; }
}
.footer-base a { color: rgba(255, 255, 255, 0.7); }
.footer-base a:hover { color: #fff; }

/* ============================================================
   ARTICLE DETAIL PAGES — clean editorial light theme
   Inspired by Cursor (cream canvas, warm ink, JetBrains Mono)
   and Figma (white surface, pill CTAs, hairline depth, no shadows).
   ============================================================ */
body.article-detail {
  background: #f7f7f4 !important;
  background-attachment: scroll !important;
  background-image: none !important;
  color: #26251e;
}
body.article-detail .nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 8px 28px rgba(0, 0, 0, 0.06);
}
body.article-detail .nav a,
body.article-detail .nav-trigger,
body.article-detail .nav-cta,
body.article-detail .nav-burger { color: #26251e; }
body.article-detail .nav-cta {
  background: #26251e !important;
  color: #f7f7f4 !important;
  border: 0.5px solid #26251e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.article-detail .nav-cta:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: #f7f7f4 !important;
}
body.article-detail .nav-cta .arrow { color: #f7f7f4 !important; }
/* On cream pages the NAV pill is white and so is the dropdown —
   add a Runway-style pill ring on hover so the trigger stays visible,
   and detach the dropdown from the NAV with a small gap + stronger border. */
body.article-detail .nav-trigger:hover,
body.article-detail .nav-item:hover .nav-trigger {
  color: #000 !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(38, 37, 30, 0.28) !important;
}
body.article-detail .nav-item.open > .nav-trigger {
  box-shadow: inset 0 0 0 1px rgba(38, 37, 30, 0.45) !important;
}
/* AS 3D logo — dark circular surround so the light-toned model reads on cream. */
body.article-detail .nav-logo .logo-3d,
body.article-detail .footer .nav-logo .logo-3d {
  background: #141413 !important;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

body.article-detail .page-hero {
  background: transparent;
  color: #26251e;
  padding-top: 7rem;
  padding-bottom: 2.5rem;
}
body.article-detail .page-hero .orb { display: none !important; }
body.article-detail .page-hero h1 {
  color: #26251e !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
}
body.article-detail .page-hero p { color: #5a5852; }
body.article-detail .back-link {
  color: #807d72;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
body.article-detail .back-link:hover { color: #26251e; }

/* ============================================================
   CREAM PAGES (article-detail = articles/*, services/*, contact)
   NAV is visible — each NAV item navigates straight to the top of
   its main page. On detail pages, the in-hero .back-link still
   offers a quick return to the parent listing.
   ============================================================ */
body.article-detail .nav-item { padding-bottom: 0; margin-bottom: 0; }
body.article-detail .article-tag {
  background: rgba(0, 0, 0, 0.06);
  color: #26251e;
  border: 0.5px solid rgba(0, 0, 0, 0.10);
}
body.article-detail .article-meta { color: #807d72; }

body.article-detail .section { padding: 1.5rem 0 5rem; }

/* ============================================================
   CONTACT — cream canvas, Liquid Glass form/aside on top.
   No dark backdrop — the form's own Liquid Glass is the surface.
   ============================================================ */
body.article-detail.contact-page .section { padding: 0.5rem 0 3rem; }
body.article-detail.contact-page .page-hero { padding-top: 5.5rem; padding-bottom: 1rem; }
body.article-detail.contact-page .page-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem) !important;
  margin-top: 0.5rem !important;
}
body.article-detail.contact-page .page-hero p {
  font-size: 0.95rem;
  max-width: 52ch;
}

/* The contact-grid stays a 2-col layout, tighter for desktop fit. */
body.article-detail .contact-grid {
  max-width: 880px;
  margin: 0 auto;
  gap: 1.25rem;
}
/* Form + aside — full Liquid Glass on the cream canvas
   (translucent gradient + hairline edge + top gloss + clay halo). */
body.article-detail .contact-form,
body.article-detail .contact-aside {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.42) 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(38, 37, 30, 0.06),
    0 24px 60px rgba(38, 37, 30, 0.10),
    0 4px 16px -8px rgba(201, 100, 66, 0.22);
  padding: 2rem;
  border-radius: 22px;
  overflow: hidden;
}
/* Subtle inner gloss highlight along the top edge. */
body.article-detail .contact-form::before,
body.article-detail .contact-aside::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 1), transparent);
  pointer-events: none;
}
body.article-detail .contact-form label { color: #807d72; }
/* Inputs — Liquid Glass tiles inside the glass card. */
body.article-detail .contact-form input,
body.article-detail .contact-form textarea {
  padding: 0.55rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 100%);
  border: 0.5px solid rgba(38, 37, 30, 0.12);
  color: #26251e;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -0.5px 0 rgba(38, 37, 30, 0.04),
    0 1px 2px rgba(38, 37, 30, 0.04);
}
body.article-detail .contact-form textarea {
  min-height: 84px;
  resize: none;
  overflow: hidden;
}
body.article-detail .contact-form button.cta-pill {
  padding: 10px 20px;
  font-size: 14px;
  margin-top: 0.35rem;
}
body.article-detail .contact-form input::placeholder,
body.article-detail .contact-form textarea::placeholder { color: rgba(38, 37, 30, 0.35); }
body.article-detail .contact-form input:hover,
body.article-detail .contact-form textarea:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.70) 100%);
  border-color: rgba(201, 100, 66, 0.30);
}
body.article-detail .contact-form input:focus,
body.article-detail .contact-form textarea:focus {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 247, 243, 0.85) 100%);
  border-color: #c96442;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 4px rgba(201, 100, 66, 0.14),
    0 6px 18px -6px rgba(201, 100, 66, 0.35);
}
button.cta-pill { font-family: inherit; cursor: pointer; }

body.article-detail .contact-aside { gap: 0.5rem; }
body.article-detail .contact-aside h3 {
  color: #26251e;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.1rem;
}
body.article-detail .contact-row {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom-color: rgba(38, 37, 30, 0.10);
  color: #3d3c34;
  gap: 0.65rem;
}
body.article-detail .contact-row .lg-chip { width: 1.7rem; height: 1.7rem; }
body.article-detail .contact-row .lg-chip svg { width: 12px; height: 12px; }
body.article-detail .contact-row a {
  color: #26251e;
  text-decoration: underline;
  text-decoration-color: rgba(38, 37, 30, 0.30);
  text-underline-offset: 3px;
}
body.article-detail .contact-row a:hover {
  color: #c96442;
  text-decoration-color: #c96442;
}
body.article-detail .lg-chip {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
  border: 0.5px solid rgba(0, 0, 0, 0.10);
  color: #26251e;
}
body.article-detail .contact-based-in {
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(38, 37, 30, 0.10);
}
body.article-detail .contact-based-in .eyebrow { color: #807d72; }
body.article-detail .contact-based-in p {
  color: #26251e;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* The reading sheet — a generous editorial column on the cream canvas. */
.article-paper {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e6e5e0;
  border-radius: 24px;
  padding: 3.5rem 3rem;
  color: #26251e;
}
@media (max-width: 720px) {
  .article-paper { padding: 2rem 1.4rem; border-radius: 18px; }
}
.article-paper h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.013em;
  line-height: 1.3;
  color: #26251e;
  margin: 2.6rem 0 1rem;
  padding-top: 0.4rem;
}
.article-paper h2:first-child { margin-top: 0; }
.article-paper p {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: #3d3c34;
  margin: 0 0 1.05rem;
}
.article-paper strong { color: #26251e; font-weight: 600; }
.article-paper em { font-style: italic; color: #26251e; }
.article-paper a {
  color: #26251e;
  text-decoration: underline;
  text-decoration-color: rgba(38, 37, 30, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}
.article-paper a:hover { text-decoration-color: #c96442; color: #c96442; }
.article-paper ul, .article-paper ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  color: #3d3c34;
  font-size: 17px;
  line-height: 1.65;
}
.article-paper li { margin: 0.35rem 0; }
.article-paper blockquote {
  margin: 1.5rem 0;
  padding: 0.6rem 1.1rem;
  border-left: 3px solid #26251e;
  color: #26251e;
  font-style: italic;
}

/* Inline code — Claude parchment tint */
.article-paper :not(pre) > code,
.article-paper p code,
.article-paper li code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: #f5f4ed;
  border: 0.5px solid #e6e1d4;
  color: #141413;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Code BLOCK — Cursor-style white card with a hairline of Claude clay */
.article-paper .code-block {
  margin: 1.4rem 0 1.6rem;
  background: #ffffff;
  border: 1px solid #e6e5e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.article-paper .code-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: #c96442;
  opacity: 0.55;
}
.article-paper .code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 6px 14px;
  background: #f5f4ed;
  border-bottom: 1px solid #e6e1d4;
}
.article-paper .code-block-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #807d72;
}
.article-paper .code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0.5px solid transparent;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #5a5852;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.article-paper .code-copy-btn:hover {
  background: rgba(201, 100, 66, 0.08);
  border-color: rgba(201, 100, 66, 0.20);
  color: #c96442;
}
.article-paper .code-copy-btn.copied {
  color: #c96442;
  background: rgba(201, 100, 66, 0.10);
  border-color: rgba(201, 100, 66, 0.25);
}
.article-paper .code-copy-btn svg {
  width: 13px;
  height: 13px;
}
.article-paper .code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: #ffffff;
  scrollbar-width: thin;
}
.article-paper .code-block pre::-webkit-scrollbar { height: 6px; }
.article-paper .code-block pre::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}
.article-paper .code-block pre code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #26251e;
  background: transparent;
  border: none;
  padding: 0;
  white-space: pre;
  display: block;
}

.article-paper .article-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e5e0;
}
.article-paper .article-tags .tag {
  background: rgba(0, 0, 0, 0.05);
  color: #26251e;
  border: 0.5px solid rgba(0, 0, 0, 0.10);
}

body.article-detail .footer {
  background: #f7f7f4;
  border-top: 1px solid #e6e5e0;
  color: #5a5852;
}
body.article-detail .footer h4 { color: #26251e; }
body.article-detail .footer a { color: #5a5852; }
body.article-detail .footer a:hover { color: #c96442; }
body.article-detail .footer-grid > div p { color: #807d72; }
body.article-detail .footer-base { color: #807d72; border-top-color: #e6e5e0; }
body.article-detail .footer-base a { color: #5a5852; }
body.article-detail .footer-base a:hover { color: #26251e; }

body.article-detail .drawer { /* drawer stays dark — opens overlay */
  background: #1a1817;
}

/* ============================================================
   SERVICE DETAIL — Figma color-block sections (CLICKPROS-style)
   Pastel blocks, pill CTAs, editorial display type, Claude clay
   accent for emphasis. Layered onto body.article-detail.
   ============================================================ */
body.article-detail .svc-stack { display: flex; flex-direction: column; gap: 18px; }

.svc-block {
  border-radius: 24px;
  padding: 56px 48px;
  margin: 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .svc-block { padding: 40px 24px; border-radius: 18px; }
}
.svc-block.cream { background: #f4ecd6; color: #1a1a1a; }
.svc-block.lime  { background: #dceeb1; color: #1a1a1a; }
.svc-block.lilac { background: #c5b0f4; color: #1a1a1a; }
.svc-block.pink  { background: #efd4d4; color: #1a1a1a; }
.svc-block.mint  { background: #c8e6cd; color: #1a1a1a; }
.svc-block.coral { background: #f3c9b6; color: #1a1a1a; }
.svc-block.navy  { background: #1f1d3d; color: #ffffff; }
.svc-block.ink   { background: #141413; color: #f5f4ed; }
.svc-block.paper { background: #ffffff; color: #1a1a1a; border: 1px solid #e6e5e0; }

.svc-block .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.65;
  display: inline-block;
  margin-bottom: 18px;
}
.svc-block h2 {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 600;
  letter-spacing: -0.026em; line-height: 1.10;
  color: inherit;
  margin: 0 0 18px;
  max-width: 820px;
}
@media (max-width: 768px) {
  .svc-block h2 { font-size: 28px; }
}
.svc-block p {
  font-size: 17px; line-height: 1.6;
  letter-spacing: -0.005em;
  color: inherit;
  opacity: 0.88;
  margin: 0 0 14px;
  max-width: 660px;
}
.svc-block p.lead {
  font-size: 22px; line-height: 1.45; opacity: 1;
  font-weight: 400;
}
.svc-block strong { font-weight: 600; opacity: 1; }

.svc-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.svc-pill {
  display: inline-flex; align-items: center;
  background: rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(0, 0, 0, 0.10);
  padding: 7px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: inherit;
  white-space: nowrap;
}
.svc-block.navy .svc-pill,
.svc-block.ink .svc-pill {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Process — numbered card grid */
.svc-process {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 26px;
}
@media (min-width: 640px) {
  .svc-process { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .svc-process { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
.svc-step {
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 22px 20px;
  backdrop-filter: blur(10px);
}
.svc-block.navy .svc-step,
.svc-block.ink .svc-step {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}
.svc-block.paper .svc-step { background: #fafaf7; }
.svc-step .svc-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #c96442;
  margin-bottom: 10px;
}
.svc-step h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.013em; line-height: 1.25;
  color: inherit;
  margin: 0 0 6px;
}
.svc-step p {
  font-size: 14px; line-height: 1.5;
  margin: 0; opacity: 0.78;
}

/* Stat row */
.svc-stat-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 26px;
  max-width: 920px;
}
.svc-stat-cell .svc-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 44px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1;
  color: inherit;
  margin-bottom: 8px;
}
.svc-stat-cell .svc-stat-label {
  font-size: 13px; line-height: 1.45;
  opacity: 0.72;
}

/* Pill CTA — Claude clay accent */
.cta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: #c96442;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em;
  border: 0.5px solid #c96442;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
}
.cta-pill:hover {
  transform: translateY(-2px);
  background: #b35637;
  box-shadow: 0 12px 28px rgba(201, 100, 66, 0.35);
}
.cta-pill .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.cta-pill:hover .arrow { transform: translateX(3px); }

.cta-pill-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 9999px;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  text-decoration: none;
}
.svc-block.navy .cta-pill-ghost:hover,
.svc-block.ink .cta-pill-ghost:hover { background: rgba(255, 255, 255, 0.10); }

.svc-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 22px;
}

/* ============================================================
   SERVICE DEMO ILLUSTRATIONS — small bespoke graphics per service
   ============================================================ */
.svc-demo-card {
  background: #ffffff;
  border: 1px solid #e6e5e0;
  border-radius: 16px;
  padding: 36px 32px;
  margin-top: 26px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 640px) {
  .svc-demo-card { padding: 26px 20px; }
}

/* Flow (Discovery, Automation) */
.demo-flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 10px;
}
.demo-flow-node {
  padding: 14px 18px;
  background: #f5f4ed;
  border: 1px solid #e6e1d4;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600;
  color: #141413;
  letter-spacing: 0.02em;
}
.demo-flow-node--accent {
  background: #c96442;
  border-color: #b35637;
  color: #ffffff;
}
.demo-flow-arrow {
  color: #c96442;
  font-size: 18px;
  font-weight: 600;
}

/* Browser mockup (Landing, Websites) */
.demo-browser {
  border: 1px solid #e6e5e0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  max-width: 520px;
}
.demo-browser-bar {
  display: flex; align-items: center; gap: 6px;
  background: #f5f4ed;
  padding: 10px 14px;
  border-bottom: 1px solid #e6e1d4;
}
.demo-browser-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d4d4d4;
  display: inline-block;
}
.demo-browser-bar .dot:nth-child(1) { background: #ff5f57; }
.demo-browser-bar .dot:nth-child(2) { background: #ffbd2e; }
.demo-browser-bar .dot:nth-child(3) { background: #28c840; }
.demo-browser-bar .url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #807d72;
}
.demo-browser-body { padding: 28px 24px; }
.demo-browser-hero {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.022em; color: #141413; margin-bottom: 6px;
}
.demo-browser-sub {
  font-size: 13px; color: #5a5852; margin-bottom: 14px; line-height: 1.5;
}
.demo-browser-cta {
  display: inline-block;
  padding: 8px 16px;
  background: #c96442; color: #ffffff;
  border-radius: 9999px;
  font-size: 12px; font-weight: 600;
}
.demo-browser-sections {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 18px;
}
.demo-browser-sections div {
  height: 36px; background: #f5f4ed; border-radius: 6px;
}

/* Sitemap (Websites) */
.demo-sitemap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.demo-sitemap-root {
  padding: 10px 22px;
  background: #c96442; color: #ffffff;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
}
.demo-sitemap-children {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  position: relative;
}
.demo-sitemap-children::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0;
  height: 1px; background: #e6e1d4;
}
.demo-sitemap-children > div {
  padding: 8px 14px;
  background: #f5f4ed;
  border: 1px solid #e6e1d4;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px; color: #141413;
  position: relative;
}
.demo-sitemap-children > div::before {
  content: ''; position: absolute; top: -14px; left: 50%;
  width: 1px; height: 14px; background: #e6e1d4;
}

/* Brand kit panel (Brand Identity) */
.demo-brand {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.demo-brand-mono {
  width: 92px; height: 92px; border-radius: 16px;
  background: #141413; color: #f5f4ed;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700; letter-spacing: -0.04em;
}
.demo-brand-swatches { display: flex; gap: 6px; }
.demo-brand-swatches span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  display: inline-block;
}
.demo-brand-type {
  display: flex; flex-direction: column; gap: 4px;
}
.demo-brand-display {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: #141413;
}
.demo-brand-body {
  font-size: 13px; color: #5a5852; line-height: 1.4;
}

/* Kanban (CRM) */
.demo-kanban {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 640px) {
  .demo-kanban { grid-template-columns: 1fr; }
}
.demo-kanban-col {
  background: #f5f4ed;
  border: 1px solid #e6e1d4;
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.demo-kanban-head {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #807d72;
  padding: 4px 6px 6px;
}
.demo-kanban-card {
  background: #ffffff;
  border: 0.5px solid #e6e1d4;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px; color: #141413;
  font-weight: 500;
}
.demo-kanban-card--won {
  background: #c96442; color: #ffffff; border-color: #b35637;
}

/* Calendar (Content) */
.demo-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  max-width: 360px;
}
.demo-calendar-cell {
  aspect-ratio: 1;
  background: #f5f4ed;
  border-radius: 4px;
  position: relative;
}
.demo-calendar-cell.has-post::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%;
  width: 5px; height: 5px;
  background: #c96442;
  border-radius: 50%;
  transform: translateX(-50%);
}
.demo-calendar-cell.has-ab::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%;
  width: 5px; height: 5px;
  background: #1f1d3d;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* SERP snippet (SEO) */
.demo-serp {
  max-width: 520px;
}
.demo-serp-url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #5a5852;
  margin-bottom: 4px;
}
.demo-serp-title {
  font-size: 18px; font-weight: 500;
  color: #1a0dab;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.demo-serp-desc {
  font-size: 13px; line-height: 1.45;
  color: #4d5156;
  margin-bottom: 18px;
}
.demo-serp-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 60px;
  padding-top: 12px;
  border-top: 1px dashed #e6e1d4;
}
.demo-serp-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, #c96442 0%, rgba(201, 100, 66, 0.4) 100%);
  border-radius: 3px 3px 0 0;
}

/* Funnel (Marketing) */
.demo-funnel {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  max-width: 460px; margin: 0 auto;
}
.demo-funnel-row {
  padding: 14px 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em;
  color: #141413;
  border-radius: 4px;
}
.demo-funnel-row:nth-child(1) { background: #efd4d4; width: 100%; }
.demo-funnel-row:nth-child(2) { background: #f3c9b6; width: 80%; align-self: center; }
.demo-funnel-row:nth-child(3) { background: #c5b0f4; width: 60%; align-self: center; }
.demo-funnel-row:nth-child(4) { background: #c96442; color: #ffffff; width: 40%; align-self: center; }

/* Gantt (Project Management) */
.demo-gantt {
  display: flex; flex-direction: column; gap: 8px;
}
.demo-gantt-track {
  position: relative;
  height: 22px;
  background: #f5f4ed;
  border-radius: 4px;
}
.demo-gantt-bar {
  position: absolute;
  top: 3px; bottom: 3px;
  background: #c96442;
  border-radius: 3px;
  display: block;
}
.demo-gantt-bar.bar-pink { background: #efd4d4; }
.demo-gantt-bar.bar-mint { background: #c8e6cd; }
.demo-gantt-bar.bar-lilac { background: #c5b0f4; }
.demo-gantt-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #807d72;
  padding: 0 8px;
}

