/* ===== Design tokens (law-firm theme: deep navy + brass, warm paper) ===== */
:root {
  --bg: #fdfbf7;
  --bg-soft: #f5f1e8;
  --surface: #ffffff;
  --border: #e7e0d2;
  --text: #1c2432;
  --text-soft: #5d6472;
  --accent: #1b3a5c;
  --accent-soft: #ece5d4;
  --accent-ink: #8a6d2f;
  --shadow: 0 1px 2px rgba(28,36,50,.05), 0 12px 32px -12px rgba(28,36,50,.14);
  --radius: 8px;
  --radius-sm: 5px;
  --container: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #10151e;
  --bg-soft: #161c28;
  --surface: #1b2230;
  --border: #2a3242;
  --text: #f0ede5;
  --text-soft: #9aa2b0;
  --accent: #c2a05a;
  --accent-soft: #262d3d;
  --accent-ink: #d8bc7d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.08; letter-spacing: -.02em; font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #c2a05a);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 92px 24px 64px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 600; font-size: .85rem; padding: 7px 15px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 26px auto 0; max-width: 14ch; font-weight: 600; }
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 64px; padding: 28px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-soft);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: "Fraunces", serif; font-size: 1.9rem; font-weight: 600; color: var(--accent); }
.stat-label { font-size: .85rem; color: var(--text-soft); }

/* ===== Logos ===== */
.logos { text-align: center; padding: 40px 24px 16px; }
.logos-label { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--text-soft); }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; margin-top: 18px; }
.logos-row span { font-weight: 600; font-size: 1.15rem; color: var(--text-soft); opacity: .75; letter-spacing: -.01em; }

/* ===== Sections ===== */
.section { padding: 86px 24px; }
.section-head { max-width: 40ch; margin-bottom: 44px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card-num { font-family: "Fraunces", serif; font-size: 1rem; color: var(--accent); font-weight: 600; }
.card h3 { font-size: 1.5rem; margin: 14px 0 10px; }
.card p { color: var(--text-soft); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: .8rem; font-weight: 500; color: var(--text-soft); background: var(--bg-soft); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-item { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform .3s var(--ease); }
.work-item:hover { transform: translateY(-6px); }
.work-thumb { aspect-ratio: 16/10; transition: transform .5s var(--ease); }
.work-item:hover .work-thumb { transform: scale(1.04); }
.thumb-1 { background: linear-gradient(135deg,#1b3a5c,#3d6285); }
.thumb-2 { background: linear-gradient(135deg,#8a6d2f,#c2a05a); }
.thumb-3 { background: linear-gradient(135deg,#4a3b52,#7d6a8a); }
.thumb-4 { background: linear-gradient(135deg,#2e4a3d,#5a7d6a); }
.work-meta { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.work-meta h3 { font-size: 1.25rem; }
.work-meta span { font-size: .85rem; color: var(--text-soft); }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.process li { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.process .step {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-family: "Fraunces", serif;
}
.process h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.process p { color: var(--text-soft); font-size: .95rem; }

/* About / quote */
.about { max-width: 56ch; margin: 0 auto; text-align: center; }
.quote { font-family: "Fraunces", serif; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.3; font-weight: 500; }
.quote-by { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.quote-by strong { font-weight: 600; }
.quote-by span { color: var(--text-soft); font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner { text-align: center; padding: 84px 24px; }
.cta-inner h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.cta-inner p { color: var(--text-soft); margin: 14px auto 30px; max-width: 46ch; }

/* Footer */
.site-footer { padding: 48px 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { color: var(--text-soft); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--text-soft); font-size: .85rem; width: 100%; padding-top: 18px; border-top: 1px solid var(--border); }

/* ===== Blur text animation (ported from 21st.dev blur-text-animation) ===== */
.blur-text {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: .01em;
  max-width: 48ch;
  margin: 22px auto 0;
  color: var(--text);
  perspective: 800px;
}
.blur-text span {
  display: inline-block;
  margin-right: .35em;
  opacity: 0;
  filter: blur(var(--blur, 12px)) brightness(.6);
  transform: translateY(20px) scale(var(--scale, 1)) rotateX(-15deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: filter, transform, opacity;
  text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent);
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blur-text.animating span {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: translateY(0) scale(1) rotateX(0deg);
  text-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .blur-text span { opacity: 1; filter: none; transform: none; text-shadow: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .process { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 16px; margin: 0;
  }
  .work-grid, .cards, .process { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
}
