/* ═══════════════════════════════════════════════════
   DEMIURG — Design System
   demiurg.dev · Georgi Demirov
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Backgrounds */
  --bg:          #f0ebe0;
  --surface:     #faf6ef;
  --surface-2:   #e6dece;

  /* Borders */
  --border:        #d5cbba;
  --border-strong: #bfb09a;

  /* Text */
  --text:   #1a1410;
  --text-2: #5a4e42;
  --text-3: #6e6258;

  /* Accent — terracotta */
  --accent:    #b54022;
  --accent-dk: #8a3218;
  --accent-bg: #f5ede8;

  /* Secondary — olive */
  --olive:    #4a5c2e;
  --olive-bg: #edf0e6;

  /* Typography */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base: 1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --max-w: 1200px;
  --gutter: 32px;

  /* Radius — editorial/sharp */
  --r:    3px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 20, 16, .07);
  --shadow-md: 0 8px 28px -6px rgba(26, 20, 16, .14);
  --shadow-lg: 0 20px 52px -14px rgba(26, 20, 16, .20);

  /* Transitions */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-width: thin; scrollbar-color: var(--border-strong) var(--bg); }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; border: 2px solid var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
picture { display: contents; }
button { font-family: inherit; cursor: pointer; border: none; background: none; touch-action: manipulation; }

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }

.lead {
  font-family: var(--sans);
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: var(--text-2);
  line-height: 1.7;
}

.section-label {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-3);
  font-size: var(--text-xs);
  margin: var(--space-8) 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  padding: 11px 22px;
  border-radius: var(--r);
  transition: all .22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-dk);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent-dk); gap: var(--space-3); }
.btn-ghost .arrow { transition: transform .2s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── NAV ── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s, border-color .25s, backdrop-filter .25s, transform .3s var(--ease);
}
#nav.nav-hidden { transform: translateY(-100%); }
#nav.scrolled {
  background: rgba(240, 235, 224, .85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
#nav.scrolled .logo-word { color: var(--text); }
#nav.scrolled .nav-links a { color: var(--text-2); }
#nav.scrolled .nav-links a:hover,
#nav.scrolled .nav-links a.active { color: var(--text); }
#nav.scrolled .lang-toggle button { color: var(--text-3); }
#nav.scrolled .lang-toggle button.active { color: var(--accent); background: var(--accent-bg); }
#nav.scrolled .nav-hamburger span { background: var(--text); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height .25s;
}
#nav.scrolled .nav-inner { height: 58px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-mark {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.logo-word {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--surface);
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(250,246,239,.65);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--surface); }
.nav-links a.active { font-weight: 600; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: var(--space-6); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--sans);
}
.lang-toggle button {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(250,246,239,.65);
  padding: 0 8px;
  min-height: 44px;
  border-radius: 2px;
  transition: color .2s, background .2s;
}
.lang-toggle button.active {
  color: var(--surface);
  background: var(--accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--surface);
  border-radius: 2px;
  display: block;
  transition: transform .3s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.mobile-overlay.open { pointer-events: auto; }
.mobile-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, .5);
  opacity: 0;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.mobile-overlay.open .mobile-overlay-bg { opacity: 1; }
.mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(280px, 82vw);
  background: var(--surface);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.25, .85, .25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(26, 20, 16, .12);
}
.mobile-overlay.open .mobile-panel { transform: translateX(0); }
.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-panel-head .logo-word { color: var(--text); }
.mobile-close {
  color: var(--text-2);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.mobile-close:hover { color: var(--text); }
.mobile-nav-links {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.mobile-nav-links a {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--accent); }
.mobile-panel-foot {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
}

/* ── HERO ── */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
}
.hero-eyebrow { margin-bottom: var(--space-6); }
.hero h1 { max-width: 14ch; margin-bottom: var(--space-6); }
.hero .lead { max-width: 46ch; margin-bottom: var(--space-8); }
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.hero-trust {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-trust::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
  flex-shrink: 0;
}

/* ── SECTION ── */
section { padding: clamp(var(--space-16), 8vw, var(--space-24)) 0; }
.section-header { margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); }
.section-header .eyebrow { margin-bottom: var(--space-3); }
.section-header h2 { max-width: 22ch; }
.section-header .lead { margin-top: var(--space-4); max-width: 50ch; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card.featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dk);
}
.service-card.featured .service-price,
.service-card.featured .lead,
.service-card.featured .service-includes li { color: rgba(255,255,255,.92); }
.service-icon {
  width: 40px; height: 40px;
  background: var(--accent-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.service-card.featured .service-icon {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.service-name {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 600;
}
.service-type {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: -2px;
}
.service-card.featured .service-type { color: rgba(255,255,255,.90); }
.service-price {
  font-family: var(--sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
}
.service-price .from {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 2px;
}
.service-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.service-includes li {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.service-includes li::before {
  content: "—";
  color: var(--accent);
  font-size: var(--text-xs);
  flex-shrink: 0;
}
.service-card.featured .service-includes li::before { color: rgba(255,255,255,.75); }
.service-card.featured .service-price .from { color: rgba(255,255,255,.90); }
.card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  margin-top: auto;
  align-self: flex-end;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.card-arrow:hover { background: var(--accent); color: var(--surface); transform: translateX(3px); }
.service-card.featured .card-arrow { border-color: rgba(255,255,255,.55); color: rgba(255,255,255,.9); }
.service-card.featured .card-arrow:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; transform: translateX(3px); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ── WORK / PORTFOLIO CARDS ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.work-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.work-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.work-card:hover .work-card-img img { transform: scale(1.04); }
.work-card-img .work-placeholder {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: var(--text-sm);
}
.work-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.work-card-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.tag.accent { background: var(--accent-bg); color: var(--accent); border-color: transparent; }
.tag[data-tip] {
  position: relative;
  cursor: default;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tag[data-tip]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.tag[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 14px;
  border-radius: 10px;
  min-width: 200px;
  max-width: 260px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
  z-index: 50;
}
.tag[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
  z-index: 50;
}
.tag[data-tip]:hover::after,
.tag[data-tip]:hover::before { opacity: 1; }
/* Edge corrections — applied by JS when tooltip would overflow viewport */
.tag[data-tip].tip-left::after  { left: 0; transform: none; }
.tag[data-tip].tip-left::before { left: 10px; transform: none; }
.tag[data-tip].tip-right::after  { left: auto; right: 0; transform: none; }
.tag[data-tip].tip-right::before { left: auto; right: 10px; transform: none; }
.work-card-body h3 { font-size: var(--text-xl); }
.work-card-body p {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
}
.work-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.work-card-year {
  font-family: var(--sans);
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* ── PROCESS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.process-step { display: flex; flex-direction: column; gap: var(--space-2); }
.process-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
  opacity: .85;
}
.process-step h3 {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
}
.process-step p { font-family: var(--sans); font-size: var(--text-sm); color: var(--text-2); line-height: 1.7; }

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: var(--space-12) auto 0;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-family: var(--serif);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.faq-a { font-family: var(--sans); font-size: var(--text-sm); color: var(--text-2); line-height: 1.75; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--text);
  color: #fff;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto var(--space-6); }
.cta-band .lead { color: rgba(255,255,255,.65); margin: 0 auto var(--space-8); max-width: 46ch; }
.cta-band .btn-primary {
  background: var(--accent);
  font-size: var(--text-base);
  padding: 14px 32px;
}
.cta-band .btn-primary:hover { background: var(--accent-dk); }

/* ── ABOUT TEASER ── */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
}
.about-teaser-img {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.about-teaser-img:not(:has(img))::before {
  content: '';
  position: absolute;
  inset: var(--space-6);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  pointer-events: none;
}
.about-teaser-img img { width: 100%; height: 100%; object-fit: cover; }

@keyframes text-write {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0%   0 0); }
}
@keyframes draw-rule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── BLOG CARDS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}
.blog-card:last-child { border-bottom: 1px solid var(--border); }
.blog-card-date {
  font-family: var(--sans);
  font-size: var(--text-xs);
  color: var(--text-3);
}
.blog-card h3 a { transition: color .2s; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}

/* ── CONTACT FORM ── */
.form-grid { display: flex; flex-direction: column; gap: var(--space-6); }
#contact-form { scroll-margin-top: 88px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.form-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }

/* ── CUSTOM SELECT ── */
.custom-select { position: relative; user-select: none; }
.custom-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  font-family: var(--sans); font-size: var(--text-base);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 10px 14px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.custom-select-trigger:focus { outline: none; }
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.custom-select-value { flex: 1; color: var(--text); line-height: 1.5; }
.custom-select-value.is-placeholder { color: var(--text-3); }
.custom-select-chevron { flex-shrink: 0; color: var(--text-3); transition: transform .2s var(--ease); }
.custom-select.open .custom-select-chevron { transform: rotate(180deg); }
.custom-select-options {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 200;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 4px; margin: 0; list-style: none;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.custom-select.open .custom-select-options { opacity: 1; transform: translateY(0); pointer-events: auto; }
.custom-select-option {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  font-family: var(--sans); font-size: var(--text-base); color: var(--text);
  padding: 9px 12px; border-radius: calc(var(--r-md) - 2px); cursor: pointer;
  transition: background .15s, color .15s;
}
.custom-select-option:hover,
.custom-select-option.focused { background: var(--accent-bg); color: var(--accent); }
.custom-select-option.selected { color: var(--accent); font-weight: 500; }
.custom-select-option.selected::after {
  content: ''; display: block; flex-shrink: 0;
  width: 6px; height: 10px;
  border-right: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(45deg) translateY(-1px);
}

/* ── FOOTER ── */
#footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}
.footer-brand .nav-logo { margin-bottom: var(--space-3); display: flex; align-items: center; }
.footer-brand .logo-word { font-size: var(--text-2xl); color: var(--text); }
.footer-brand .logo-mark { height: 28px; }
.footer-brand p {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 32ch;
}
.footer-col h3 {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: var(--sans);
  font-size: var(--text-xs);
  color: var(--text-2);
}

/* ── SCROLL REVEAL ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── CASE STUDY ── */
.case-hero { padding: clamp(var(--space-16), 8vw, var(--space-24)) 0 var(--space-12); border-bottom: 1px solid var(--border); }
.case-meta {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.case-meta-item { display: flex; flex-direction: column; gap: var(--space-1); }
.case-meta-label {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.case-meta-value {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}
.case-screenshot {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: var(--space-12) 0;
  border: 1px solid var(--border);
}
.case-screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-body { max-width: 720px; }
.case-body h2 { margin-bottom: var(--space-4); }
.case-body p { font-family: var(--sans); color: var(--text-2); margin-bottom: var(--space-6); }

/* ── HERO C · STATEMENT ── */
.hero-rule { height: 1px; background: var(--border); }

.hc-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0 clamp(var(--space-8), 4vw, var(--space-12));
}
.hc-split-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.hc-split .hc-state { font-size: clamp(3rem, 6.5vw, 5rem); }
.hc-split-photo { position: relative; }
.hc-photo {
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--surface);
}
.hc-photo-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: radial-gradient(circle at 50% 38%, rgba(192,72,40,.07) 0%, var(--surface) 65%);
}
.hc-photo-inner svg { color: var(--text-3); }
.hc-photo-inner p {
  font-family: var(--sans);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.hc-split-photo .hc-note { bottom: 22%; left: -9%; }

.hc-wrap { padding: clamp(var(--space-12), 6vw, var(--space-20)) 0 0; }
.hc-state {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .94;
  letter-spacing: -.025em;
  margin: 0;
  position: relative;
}
.hc-line { display: block; }
.hc-em {
  font-style: italic;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hc-ring {
  position: absolute;
  left: -5%; top: -14%;
  width: 110%; height: 128%;
  color: var(--accent);
  opacity: .9;
  pointer-events: none;
}
.hc-note {
  position: absolute;
  font-family: 'Caveat', cursive !important;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--accent);
  line-height: 1.35;
  width: 24ch;
  transform: rotate(-3deg);
}
.hc-note > span:nth-child(1),
.hc-note > span:nth-child(2) {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: text-write 1.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hc-note > span:nth-child(1) { animation-delay: 0.5s; }
.hc-note > span:nth-child(2) { animation-delay: 1.8s; }
.hc-rule {
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  margin: 7px 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-rule 0.2s ease-out 3.1s both;
}
.hc-sig {
  display: block;
  font-size: 1.35rem;
  font-style: italic;
  clip-path: inset(0 100% 0 0);
  animation: text-write 1.2s cubic-bezier(0.4, 0, 0.2, 1) 3.3s both;
}
/* ── HERO SECTION — terracotta entrance ── */
.hero-section {
  background-color: var(--accent-dk);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  background-blend-mode: overlay;
}
.hero-section .eyebrow {
  color: rgba(255, 255, 255, .62);
}
.hero-section .hc-state {
  color: #fff;
}
.hero-section .hc-accent-word {
  color: #fff;
  font-style: italic;
  font-weight: 800;
}
.hero-section .hc-em {
  color: rgba(255, 255, 255, .95);
}
.hero-section .hc-ring {
  color: var(--bg);
}
.hero-section .hc-note {
  color: rgba(255, 255, 255, .72);
}
.hero-section .lead {
  color: rgba(255, 255, 255, .82);
}
.hero-section .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(26, 20, 16, .18);
}
.hero-section .btn-primary:hover {
  background: var(--surface);
  color: var(--accent-dk);
  box-shadow: 0 8px 28px -6px rgba(26, 20, 16, .22);
}
.hero-section .btn-outline {
  color: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .28);
}
.hero-section .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}
.hero-section .hero-trust {
  color: rgba(255, 255, 255, .78);
}
.hc-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-section .hc-photo {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to top, transparent 0%, black 12%),
    linear-gradient(to right, transparent 0%, black 14%),
    linear-gradient(to left, transparent 0%, black 10%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    linear-gradient(to top, transparent 0%, black 12%),
    linear-gradient(to right, transparent 0%, black 14%),
    linear-gradient(to left, transparent 0%, black 10%);
  mask-composite: intersect, intersect;
}
.hero-section .hc-portrait {
  filter: grayscale(15%) sepia(10%) brightness(1.08) contrast(1.02);
}
.hero-section .hc-split {
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}
.hero-section .hc-split-text {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.hero-section .hc-photo {
  aspect-ratio: unset;
  height: 100%;
  min-height: 600px;
}

.hc-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-top: clamp(var(--space-12), 7vw, var(--space-20));
  padding: var(--space-6) 0;
  border-top: 1.5px solid var(--text);
  border-bottom: 1px solid var(--border);
}
.hc-band .lead { margin: 0; max-width: 44ch; }
.hc-band .hero-cta { flex-shrink: 0; }

/* ── PRICING C · RATE CARD ── */
.pc-list { border-top: 1.5px solid var(--text); }
.pc-row {
  display: grid;
  grid-template-columns: 48px 1.8fr 2fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  transition: background .2s var(--ease);
}
.pc-row:not(.featured):hover { background: var(--surface); }
.pc-row.featured { background: var(--accent); color: #fff; border-color: var(--accent-dk); }
.pc-num {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  color: var(--border-strong);
  line-height: 1;
}
.pc-row.featured .pc-num { color: rgba(255,255,255,.70); }
.pc-name { font-family: var(--serif); font-size: var(--text-xl); font-weight: 600; }
.pc-tag {
  font-family: var(--sans);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-top: var(--space-1);
}
.pc-row.featured .pc-tag { color: rgba(255,255,255,.90); }
.pc-desc { font-family: var(--sans); font-size: var(--text-sm); color: var(--text-2); line-height: 1.5; margin-top: var(--space-2); }
.pc-row.featured .pc-desc { color: rgba(255,255,255,.92); }
.pc-incl {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1) var(--space-6);
}
.pc-incl li {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}
.pc-incl li::before { content: "—"; color: var(--accent); flex-shrink: 0; font-size: var(--text-xs); }
.pc-row.featured .pc-incl li { color: rgba(255,255,255,.92); }
.pc-row.featured .pc-incl li::before { color: rgba(255,255,255,.70); }
.pc-end {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-3) var(--space-8);
  align-items: start;
}
.pc-end .pc-price-block:first-child { grid-column: 1; grid-row: 1; }
.pc-end .pc-price-block:last-child  { grid-column: 2; grid-row: 1; }
.pc-end .btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
.pc-price-block {
  display: flex; flex-direction: column; gap: 4px;
}
.pc-price-block:first-child { align-items: flex-start; text-align: left; }
.pc-price-block:last-child  { align-items: flex-start; text-align: left; }
.pc-price { font-family: var(--serif); font-size: var(--text-3xl); line-height: 1; }
.pc-mo { font-size: var(--text-lg); font-weight: 400; opacity: .6; }
.pc-pricefrom {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap;
}
.pc-row.featured .pc-pricefrom { color: rgba(255,255,255,.90); }
.pc-row.featured .btn { background: #fff; color: var(--accent); }
.pc-row.featured .btn:hover { background: var(--accent-bg); }

/* ── JARGON TOOLTIPS ── */
.tip {
  color: inherit;
  border-bottom: 1px dotted currentColor;
  cursor: help;
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: bottom left;
  background-repeat: no-repeat;
  transition: color .2s var(--ease), background-size .3s var(--ease);
}
.pc-incl .tip:hover,
.service-includes .tip:hover {
  color: var(--accent);
  border-bottom-color: transparent;
  background-size: 100% 1px;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 14px;
  border-radius: 10px;
  min-width: 200px;
  max-width: 260px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
  z-index: 50;
}
.tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
  z-index: 50;
}
.tip:hover::after,
.tip:hover::before { opacity: 1; }
.pc-row.featured .tip,
.service-card.featured .tip {
  border-bottom-color: rgba(255,255,255,.6);
  background-image: linear-gradient(#fff, #fff);
}
.pc-row.featured .pc-incl .tip:hover,
.service-card.featured .service-includes .tip:hover {
  color: #fff;
  border-bottom-color: transparent;
  background-size: 100% 1px;
}

/* ── RETAINER OFFER ── */
.retainer-offer {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.retainer-offer .eyebrow { margin-bottom: var(--space-3); }
.retainer-offer > p + p {
  font-family: var(--sans);
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 auto var(--space-6);
}

/* ── PRICING STRIP (index teaser) ── */
.pricing-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pricing-strip-item {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: background .2s var(--ease);
}
.pricing-strip-item:last-child { border-right: none; }
.pricing-strip-item:not(.featured):hover { background: var(--surface-2); }
.pricing-strip-item.featured {
  background: var(--accent);
  color: #fff;
  border-right-color: rgba(255,255,255,.18);
}
.ps-type {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pricing-strip-item.featured .ps-type { color: rgba(255,255,255,.55); }
.ps-name {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-1);
}
.ps-price {
  font-family: var(--sans);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-top: var(--space-3);
  line-height: 1;
}
.ps-mo {
  font-size: var(--text-base);
  font-weight: 500;
  opacity: .65;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-links, .nav-right, .lang-toggle { display: none; }
  .nav-hamburger { display: flex; }
  .nav-lang-mobile { display: flex !important; margin-left: auto; margin-right: var(--space-3); }
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser-img { aspect-ratio: 1/1; max-width: 360px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  /* Hero C */
  .hc-split { grid-template-columns: 1fr; }
  .hc-split-photo { display: none; }
  .hc-note { display: none; }
  .hc-band { flex-direction: column; align-items: flex-start; }
  .hc-em { white-space: normal; }
  .hc-ring { display: none; }
  .hero-section .hc-em { border-bottom: 2.5px solid rgba(255,255,255,.7); padding-bottom: 2px; }  /* Pricing strip */

  .pricing-strip { grid-template-columns: 1fr 1fr; }
  .pricing-strip-item { border-bottom: 1px solid var(--border); }
  .pricing-strip-item:nth-child(2n) { border-right: none; }
  .pricing-strip-item:nth-last-child(-n+2) { border-bottom: none; }
  .pricing-strip-item.featured { border-right-color: rgba(255,255,255,.18); }
  /* Pricing C */
  .pc-list { border-top: none; }
  .pc-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: var(--space-4);
  }
  .pc-row.featured { border-color: var(--accent-dk); }
  .pc-incl { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .pc-end { grid-column: 1 / -1; gap: var(--space-3) var(--space-6); }
  /* Hero C — portrait peek, blur only at text overlap */
  .hero-section { position: relative; overflow: hidden; min-height: 82vw; }
  .hero-section .hc-split-photo {
    display: block;
    position: absolute;
    right: -10%;
    top: 0;
    bottom: 0;
    width: 52%;
    pointer-events: none;
    z-index: 0;
  }
  .hero-section .hc-photo {
    aspect-ratio: unset;
    height: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    -webkit-mask-image:
      linear-gradient(to top, transparent 0%, black 22%),
      linear-gradient(to right, transparent 0%, black 35%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to top, transparent 0%, black 22%),
      linear-gradient(to right, transparent 0%, black 35%);
    mask-composite: intersect;
  }
  .hero-section .hc-portrait { object-position: center top; }
  .hero-section .hc-split-text {
    position: relative;
    z-index: 1;
    max-width: 65%;
  }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .pricing-strip { grid-template-columns: 1fr; }
  .pricing-strip-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .pricing-strip-item:last-child { border-bottom: none; }
  .services-grid, .work-grid, .blog-grid, .process-steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .pc-end { gap: var(--space-2) var(--space-4); }
}
.nav-lang-mobile { display: none; }

/* ── VALUES BARS ── */
.values-bars { margin-top: var(--space-12); display: flex; flex-direction: column; gap: var(--space-6); }
.vbar-clip { overflow: hidden; border-radius: var(--r); }
.vbar {
  display: flex;
  align-items: stretch;
  background: var(--text);
  min-height: 200px;
}
.vbar-right { flex-direction: row-reverse; }
.vbar-text {
  flex: 1;
  padding: var(--space-12) clamp(var(--space-12), 6vw, var(--space-20));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}
.vbar-text::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  margin-top: var(--space-2);
  flex-shrink: 0;
}
.vbar-text h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.vbar-text p {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.80);
  line-height: 1.75;
  max-width: 54ch;
}

/* Clip wrapper — override default .reveal fade/slide; observer watches this */
.vbar-clip.reveal    { opacity: 1; transform: none; transition: none; }
.vbar-clip.reveal.in { opacity: 1; transform: none; }

/* Bars start off-screen (clipped by .vbar-clip overflow:hidden) */
.vbar-left  { transform: translateX(-110%); transition: transform .85s cubic-bezier(0.16, 1, 0.3, 1); }
.vbar-right { transform: translateX(110%);  transition: transform .85s cubic-bezier(0.16, 1, 0.3, 1); }

/* When clip enters viewport, slide bar in */
.vbar-clip.in .vbar-left  { transform: translateX(0); }
.vbar-clip.in .vbar-right { transform: translateX(0); }

@media (max-width: 900px) {
  .vbar-text { padding: var(--space-8); }
}
@media (max-width: 600px) {
  .vbar-text { padding: var(--space-6); }
}

/* ── BACK TO TOP ── */
.back-to-top {
  display: none;
}
@media (max-width: 900px) {
  .back-to-top {
    display: flex;
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 90;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: var(--surface);
    border: none;
    border-radius: var(--r);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    pointer-events: none;
    box-shadow: var(--shadow-md);
  }
  .back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .vbar-left, .vbar-right { transform: none; transition: none; }
  .hc-note > span { clip-path: none !important; animation: none !important; }
  .hc-rule { transform: scaleX(1) !important; animation: none !important; }
  .hc-sig { clip-path: none !important; animation: none !important; }
}

/* ── POST CONTENT ── */
.post-content { max-width: 720px; }
.post-content h2 { font-family: var(--serif); font-size: var(--text-2xl); margin: var(--space-8) 0 var(--space-4); line-height: 1.3; }
.post-content h3 { font-family: var(--serif); font-size: var(--text-xl); margin: var(--space-6) 0 var(--space-3); line-height: 1.35; }
.post-content p { font-family: var(--sans); font-size: var(--text-base); color: var(--text-2); line-height: 1.75; margin-bottom: var(--space-6); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--accent-dk); }
.post-content ul, .post-content ol { font-family: var(--sans); color: var(--text-2); padding-left: var(--space-8); margin-bottom: var(--space-6); }
.post-content li { margin-bottom: var(--space-2); line-height: 1.65; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: var(--space-6); margin: var(--space-8) 0; }
.post-content blockquote p { color: var(--text-2); font-style: italic; }
.post-content code { font-family: monospace; background: var(--surface-2); padding: 2px 6px; border-radius: var(--r); font-size: 0.9em; }
.post-content pre { background: var(--text); color: var(--bg); padding: var(--space-6); border-radius: var(--r-md); overflow-x: auto; margin-bottom: var(--space-6); }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img { border-radius: var(--r-md); border: 1px solid var(--border); margin: var(--space-8) 0; width: 100%; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: var(--space-8) 0; }
