/* ============================================================
   BESOCIS — Design System
   Institutional advisory, boutique practice
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter+Tight:wght@300;400;500;600&display=swap');

:root {
  /* Colors — extracted from brand */
  --navy: #162A3A;
  --navy-deep: #0E1E2B;
  --navy-soft: #1E3648;
  --mint: #8FE0A0;
  --mint-dim: #6FC382;
  --paper: #F5F3EE;
  --paper-warm: #EDEAE2;
  --ink: #141414;
  --ink-60: rgba(20, 20, 20, 0.6);
  --ink-40: rgba(20, 20, 20, 0.4);
  --ink-10: rgba(20, 20, 20, 0.1);
  --line: rgba(20, 20, 20, 0.12);
  --line-light: rgba(245, 243, 238, 0.15);

  /* Typography */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, sans-serif;

  /* Spacing */
  --container: 1280px;
  --pad-x: clamp(1.5rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Typography
   ============================================================ */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

h1.display {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
}

h2.display {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

h3.display {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.eyebrow.on-dark { color: var(--mint); }

.num {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144;
  font-weight: 300;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

em, .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.rule.dark { border-top-color: var(--line-light); }

/* ============================================================
   Navigation — dark navy
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.9);
  display: block;
  margin-bottom: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 400;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.68);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}

.nav-links a:hover { color: #fff; }

.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--mint);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 1.5rem var(--pad-x);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1.25rem;
  }
  .nav-links.mobile-open a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
  }
  .nav-links.mobile-open a:hover { color: #fff; }
}

/* ============================================================
   Buttons — rectangular, institutional
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary svg { position: relative; z-index: 1; transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: gap 0.3s var(--ease);
}

.btn-arrow:hover { gap: 0.85rem; }

.btn-arrow svg { transition: transform 0.3s var(--ease); }
.btn-arrow:hover svg { transform: translateX(2px); }

/* ============================================================
   Hero — full-bleed dark navy with background image
   ============================================================ */
.hero {
  background: var(--navy);
  background-image: url('https://images.pexels.com/photos/33577317/pexels-photo-33577317.jpeg?auto=compress&cs=tinysrgb&w=1800');
  background-size: cover;
  background-position: center 55%;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(5rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(14, 30, 43, 0.95) 45%, rgba(14, 30, 43, 0.75) 100%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-eyebrow .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.hero-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-headline {
  max-width: 18ch;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-headline em {
  color: var(--mint);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
  max-width: 48ch;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions .btn-primary {
  background: var(--mint);
  color: var(--navy);
}

.hero-actions .btn-primary::before {
  background: var(--mint-dim);
}

.hero-actions .btn-arrow {
  color: rgba(255, 255, 255, 0.68);
}

.hero-actions .btn-arrow:hover {
  color: #fff;
}

.hero-jurisdictions {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
  align-items: baseline;
}

.hero-jur-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

.hero-jur-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Decorative mark — hidden when background image is present */
.hero-decor {
  display: none;
}

.hero .container { position: relative; z-index: 1; }

/* ============================================================
   Services
   ============================================================ */
.services-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  align-items: end;
}

@media (min-width: 820px) {
  .services-head { grid-template-columns: 1fr 1fr; }
}

.services-head-right { max-width: 44ch; color: var(--ink-60); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
}

.service-card {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 2.5rem 2rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.4s var(--ease);
}

.service-card:nth-child(even) { padding-left: 2rem; padding-right: 0; border-right: none; }

@media (min-width: 760px) {
  .service-card { padding-right: 2.5rem; }
  .service-card:nth-child(even) { padding-left: 2.5rem; padding-right: 2.5rem; }
  .service-card:last-child, .service-card:nth-last-child(1) { border-right: none; }
}

.service-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--ink-40);
  letter-spacing: 0.05em;
}

.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-top: 0.5rem;
}

.service-desc {
  color: var(--ink-60);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.25rem;
  flex: 1;
}

.service-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--ease);
  font-weight: 500;
}

.service-link:hover { gap: 0.7rem; }

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  background: var(--navy);
  color: var(--paper);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.stat {
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line-light);
}

.stat:last-child { border-right: none; }

@media (max-width: 760px) {
  .stat { border-right: none; border-bottom: 1px solid var(--line-light); }
  .stat:last-child { border-bottom: none; }
}

.stat-value {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--paper);
}

.stat-value .accent { color: var(--mint); }

.stat-label {
  font-size: 0.85rem;
  color: rgba(245, 243, 238, 0.6);
  line-height: 1.5;
  max-width: 22ch;
}

/* ============================================================
   Case studies
   ============================================================ */
.cases-head { margin-bottom: clamp(3rem, 5vw, 4.5rem); }

.case-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.case-item:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 820px) {
  .case-item {
    grid-template-columns: 0.35fr 0.85fr 1fr;
    gap: 3rem;
  }
}

.case-meta-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3rem;
  color: var(--ink-40);
  line-height: 1;
}

.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--ink-10);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.case-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.case-body p {
  color: var(--ink-60);
  font-size: 0.95rem;
  line-height: 1.65;
}

.case-body p + p { margin-top: 0.75rem; }

.case-outcome {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ink-10);
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
}

.case-outcome .outcome-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* ============================================================
   Approach / manifesto
   ============================================================ */
.manifesto {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .manifesto-grid { grid-template-columns: 0.8fr 1fr; gap: 5rem; }
}

.manifesto-head .display { color: var(--paper); max-width: 14ch; }

.manifesto-principles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-light);
}

.principle:last-child { border-bottom: none; }

.principle-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--mint);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.principle-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--paper);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.principle-body {
  color: rgba(245, 243, 238, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   Insights teaser
   ============================================================ */
.insights-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
  .insights-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Insight card image */
.insight-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.insight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}

.insight-card:hover .insight-img img {
  transform: scale(1.04);
}

.insight-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: opacity 0.3s var(--ease);
}

@media (min-width: 820px) {
  .insight-card { padding: 2.25rem 2rem 2.25rem 0; border-right: 1px solid var(--line); }
  .insight-card:nth-child(3n) { border-right: none; padding-right: 0; }
  .insight-card:not(:first-child) { padding-left: 2rem; }
  .insight-card:nth-child(3n+1) { padding-left: 0; }
}

.insight-card:hover { opacity: 0.65; }

.insight-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.insight-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.insight-excerpt {
  color: var(--ink-60);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  background: var(--paper);
}

.cta-banner .display { max-width: 20ch; margin: 0 auto 1.5rem; }
.cta-banner-sub {
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  color: var(--ink-60);
  font-size: 1.05rem;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(245, 243, 238, 0.7);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 32ch;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.5);
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: rgba(245, 243, 238, 0.7);
  transition: color 0.3s var(--ease);
}

.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(245, 243, 238, 0.4);
}

/* ============================================================
   Page header — dark navy with background image (interior pages)
   ============================================================ */
.page-head {
  background: var(--navy);
  background-image: url('https://images.pexels.com/photos/19965889/pexels-photo-19965889.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center 40%;
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  position: relative;
}

.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 30, 43, 0.88);
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.page-head-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 820px) {
  .page-head-grid { grid-template-columns: 1.4fr 1fr; }
}

.page-head .display {
  color: #fff;
}

.page-head em {
  color: var(--mint);
}

.page-head-right {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
  line-height: 1.55;
}

.breadcrumbs {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s var(--ease);
}

.breadcrumbs a:hover { color: rgba(255, 255, 255, 0.8); }
.breadcrumbs .sep { opacity: 0.3; }

/* ============================================================
   Services detail blocks
   ============================================================ */
.srv-block {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.srv-block:last-child { border-bottom: none; }

.srv-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .srv-block-grid { grid-template-columns: 0.4fr 1fr; gap: 4rem; }
}

.srv-block-label {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-40);
  letter-spacing: 0.02em;
}

.srv-block-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.srv-block-lead {
  font-size: 1.05rem;
  color: var(--ink-60);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 60ch;
}

.srv-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 2rem;
}

@media (min-width: 600px) { .srv-list { grid-template-columns: 1fr 1fr; } }

.srv-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.srv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 1px;
  background: var(--navy);
}

/* ============================================================
   About — values / jurisdictions
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) { .values-grid { grid-template-columns: 1fr 1fr; } }

.value-card {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 820px) {
  .value-card { padding: 2.75rem 2.5rem; border-right: 1px solid var(--line); }
  .value-card:nth-child(even) { border-right: none; }
  .value-card:nth-child(2n+1) { padding-left: 0; }
  .value-card:nth-child(2n) { padding-right: 0; }
}

.value-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink-40);
  margin-bottom: 1.25rem;
  display: block;
}

.value-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.value-body { color: var(--ink-60); font-size: 0.95rem; line-height: 1.65; }

.jurisdiction-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.jurisdiction-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.jurisdiction-item .code {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--ink-40);
  letter-spacing: 0.1em;
}

/* ============================================================
   Insights list — 2-column card grid on desktop
   ============================================================ */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  border-top: none;
}

@media (min-width: 820px) {
  .article-list { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.article-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-bottom: none;
  border: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  background: #fff;
}

.article-row:hover {
  padding-left: 0;
  box-shadow: 0 8px 32px rgba(22,42,58,0.10);
  transform: translateY(-3px);
}

/* Thumbnail on listing page */
.article-thumb {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.article-row:hover .article-thumb img {
  transform: scale(1.04);
}

/* Text content area inside card */
.article-row > .article-date {
  padding: 1.5rem 1.5rem 0;
}

.article-row > .article-title {
  padding: 0.6rem 1.5rem 0;
}

.article-row > .article-tags,
.article-row > .article-category {
  padding: 0.5rem 1.5rem 1.5rem;
}

.article-date {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.article-title-link { transition: color 0.3s var(--ease); }
.article-row:hover .article-title { color: var(--navy-deep); }

.article-category {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ============================================================
   Article detail — dark hero with image, white body
   ============================================================ */
.article-hero {
  background: var(--navy);
  background-size: cover;
  background-position: center 40%;
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  position: relative;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 30, 43, 0.86);
}

.article-hero-inner {
  position: relative;
  z-index: 1;
}

.article-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.article-hero .breadcrumbs {
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.article-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.5rem;
}

.article-hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem var(--pad-x) clamp(4rem, 7vw, 6rem);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.article-body p { margin-bottom: 1.35rem; }

.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3.5em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--navy);
}

.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--ink);
}

.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--mint-dim);
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.55;
}

.article-body strong { font-weight: 600; color: var(--navy); }

.article-body .disclaimer {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ink-10);
  border-radius: 3px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-60);
  font-style: italic;
  font-family: var(--serif);
}

/* Article continue reading */
.article-continue {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }

.contact-intro h2 { margin-bottom: 1.5rem; }
.contact-intro p { color: var(--ink-60); margin-bottom: 2.5rem; font-size: 1.05rem; line-height: 1.6; }

.contact-direct {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-direct-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.4rem;
}

.contact-direct a {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-10);
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit { grid-column: 1 / -1; margin-top: 1rem; display: flex; justify-content: flex-end; align-items: center; gap: 2rem; flex-wrap: wrap; }
.form-note { font-size: 0.8rem; color: var(--ink-40); max-width: 36ch; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Staggered hero entrance */
.hero-eyebrow, .hero-headline, .hero-sub, .hero-actions, .hero-jurisdictions {
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 0.9s var(--ease) forwards;
}

.hero-headline { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.4s; }
.hero-jurisdictions { animation-delay: 0.55s; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-muted { color: var(--ink-60); }
.mint { color: var(--mint-dim); }
.navy { color: var(--navy); }

/* ============================================================
   Back-to-top button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--navy-soft);
}

/* ============================================================
   Form: honeypot (hide from real users, visible to bots)
   ============================================================ */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Form: validation error state + contact success
   ============================================================ */
.field-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.08);
}

.contact-success {
  padding: 3rem;
  text-align: center;
}

.contact-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   Insights: filter controls + search
   ============================================================ */
.insights-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.insights-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-60);
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.filter-btn.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.insights-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.insights-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  color: var(--ink-40);
  pointer-events: none;
}

.insights-search {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  background: white;
  width: 200px;
  transition: border-color 0.2s, width 0.3s var(--ease);
}

.insights-search:focus {
  outline: none;
  border-color: var(--navy);
  width: 260px;
}

.insights-empty {
  padding: 3rem 0;
  color: var(--ink-40);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}

.insights-reset {
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--serif);
  font-style: italic;
  font-size: inherit;
  padding: 0;
}

/* Article tags (replace article-category) */
.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.article-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
  background: var(--paper);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

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