/* ============================================================
   Fraser Hartley & Co. — built from ClelandsLawyers wireframe
   Type: DM Serif Display (display) / Manrope (text)
   Palette: ink #1c1d20 · tan #e8bf96 · cream #faf6f3 · brown #372d1f
   ============================================================ */

:root {
  --ink: #1c1d20;
  --ink-2: #26272b;
  --ink-3: #38393c;
  --tan: #e8bf96;
  --tan-dark: #d9a978;
  --cream: #faf6f3;
  --brown: #372d1f;
  --white: #ffffff;
  --text: #45464a;
  --text-light: rgba(255, 255, 255, 0.72);
  --line: rgba(28, 29, 32, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-pill: 80px;
  --container: 1344px;
  --gutter: 24px;
  --header-h: 90px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-text: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 16px 40px rgba(28, 29, 32, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--tan); color: var(--ink); padding: 10px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.h-display { font-size: clamp(42px, 6.5vw, 94px); line-height: 1.1; letter-spacing: -0.02em; color: var(--white); }
.h-section { font-size: clamp(32px, 4vw, 52px); line-height: 1.15; letter-spacing: -0.02em; }
.h-card { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.on-dark { color: var(--white); }
.on-dark-muted { color: var(--text-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tan-dark); margin-bottom: 14px;
}
.eyebrow img { width: 20px; height: 20px; }
.section-dark .eyebrow { color: var(--tan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 32px; border-radius: var(--radius-pill);
  background: var(--tan); color: var(--ink);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-transform: capitalize;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
.btn:hover { background: var(--tan-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 191, 150, 0.35); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); box-shadow: 0 10px 24px rgba(28, 29, 32, 0.3); }
.btn--sm { padding: 11px 24px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: 1695px; margin: 0 auto; padding: 0 var(--gutter);
  transition: height 0.3s var(--ease-out);
}
.site-header.is-scrolled .nav { height: 72px; }
.brand img { width: 56px; height: auto; transition: width 0.3s var(--ease-out); }
.site-header.is-scrolled .brand img { width: 46px; }

.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 41px); }
.nav-list a {
  position: relative; display: block; padding: 8px 0;
  color: var(--white); font-weight: 600; font-size: 16px; white-space: nowrap;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--tan); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-list a.is-active { color: var(--tan); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-search { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); transition: color 0.3s, background 0.3s; }
.nav-search:hover { color: var(--tan); background: rgba(255, 255, 255, 0.06); }

.nav-phone {
  display: inline-flex; align-items: center;
  color: var(--white); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; white-space: nowrap;
  transition: color 0.3s;
}
.nav-phone:hover { color: var(--tan); }

.nav-toggle { display: none; position: relative; z-index: 130; width: 44px; height: 44px; }
.nav-toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: calc(var(--header-h) + clamp(80px, 12vh, 200px)) 0 clamp(80px, 12vh, 200px);
  min-height: min(100vh, 1015px);
  display: flex; align-items: center;
}
.hero-bg, .hero-photo-wrap { position: absolute; inset: 0; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(28, 29, 32, 0.82); }
.hero-photo-wrap { left: auto; width: clamp(400px, 45%, 930px); }
.hero-photo-wrap img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom right;
  filter: drop-shadow(-30px 20px 60px rgba(0, 0, 0, 0.45));
}
.hero-photo-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side at 62% 55%, rgba(232, 191, 150, 0.16), transparent 75%);
}
.hero-decor {
  position: absolute; top: var(--header-h); bottom: 0; left: clamp(8px, 1.5vw, 28px);
  display: flex; align-items: center; pointer-events: none;
}
.hero-decor img { width: clamp(30px, 3vw, 56px); max-height: 86%; object-fit: contain; opacity: 0.9; }
.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: min(700px, 56%); padding-left: clamp(0px, 4vw, 72px); }
@media (max-width: 1100px) { .hero-content { max-width: 700px; } }
.hero-content .h-display { margin-bottom: 24px; }
.hero-sub { color: var(--text-light); font-size: 18px; max-width: 540px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-rating { color: var(--white); }
.hero-stars { display: flex; align-items: center; gap: 2px; }
.hero-stars svg { width: 22px; height: 22px; fill: var(--tan); }
.hero-stars strong { margin-left: 8px; font-size: 20px; font-weight: 700; }
.hero-rating small { display: block; color: var(--text-light); font-size: 15px; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); }
.section-head { max-width: 900px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-dark .h-section { color: var(--white); }

/* ---------- Welcome / split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-copy .h-section { margin-bottom: 22px; }
.split-copy p { max-width: 56ch; }
.split-copy .btn { margin-top: 18px; }

.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.collage img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.collage-a { height: 445px; }
.collage-b { height: 540px; margin-top: 96px; }
.collage-badge {
  position: absolute; left: 0; bottom: -36px;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: 30px 34px; text-align: center;
  box-shadow: var(--shadow-soft);
}
.collage-badge .num { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--tan); }
.collage-badge .lbl { font-size: 14px; font-weight: 600; margin-top: 6px; color: var(--text-light); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 28px 12px; border-radius: var(--radius); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.stat .num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 80px); line-height: 1.1; color: var(--brown); }
.stat .lbl { margin-top: 6px; font-weight: 600; color: var(--text); }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; grid-column: span 2; }
.case-card.wide { grid-column: span 3; }
.case-card img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.case-card:hover img { transform: scale(1.05); }
.case-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 29, 32, 0.55), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.case-card:hover::after { opacity: 1; }
.case-play {
  position: absolute; left: 28px; bottom: 28px; z-index: 2;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); display: grid; place-items: center;
  transition: transform 0.35s var(--ease-out), background 0.35s;
}
.case-play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 3px; }
.case-card:hover .case-play { transform: scale(1.1); background: var(--tan); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 72px); }
.process-step { display: flex; gap: 0; align-items: stretch; }
.process-num {
  flex: 0 0 50px; width: 50px; height: 50px; margin-top: 48px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--tan); color: var(--tan);
  font-family: var(--font-display); font-size: 22px; z-index: 2;
}
.process-body {
  flex: 1; margin-left: -25px; padding: 36px 36px 36px 60px;
  background: var(--ink-3); border-radius: var(--radius);
  color: var(--text-light);
  transition: transform 0.35s var(--ease-out), background 0.35s;
}
.process-step:hover .process-body { transform: translateY(-4px); background: #404145; }
.process-body h3 { color: var(--white); font-family: var(--font-text); font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.process-body ul { list-style: none; }
.process-body li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 15px; }
.process-body li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }
.process-cta { text-align: center; margin-top: clamp(36px, 5vw, 60px); }

/* row variant (team page) */
.process-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.process-grid.cols-4 .process-step { flex-direction: column; }
.process-grid.cols-4 .process-num { margin: 0 0 -25px 24px; }
.process-grid.cols-4 .process-body { margin-left: 0; padding: 48px 28px 32px; }

/* ---------- Expertise ---------- */
.expertise-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.expertise-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { min-width: 0; }
.team-card figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.team-card img { width: 100%; aspect-ratio: 280 / 304; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease-out); }
.team-card:hover img { transform: scale(1.05); }
.team-card figure { position: relative; }
.tc-view {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--tan); color: var(--ink); font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: var(--radius-pill);
  opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.tc-view svg { width: 12px; height: 12px; }
.team-card:hover .tc-view, .team-card a:focus-visible .tc-view { opacity: 1; transform: translate(-50%, 0); }
.tc-role {
  margin: 20px 0 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan-dark);
}
.team-card h3.tc-name {
  font-family: var(--font-display); font-weight: 400; font-size: 24px;
  letter-spacing: 0; text-transform: none; margin: 0 0 10px; color: var(--ink); line-height: 1.2;
}
.tc-name a { transition: color 0.3s; }
.tc-name a:hover { color: var(--tan-dark); }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tags span {
  font-size: 12px; font-weight: 600; color: var(--text);
  background: var(--cream); border: 1px solid rgba(28, 29, 32, 0.08);
  padding: 4px 11px; border-radius: var(--radius-pill); white-space: nowrap;
}
.section-cream .tc-tags span, .section-cream .team-links a { background: var(--white); }
.team-links { display: flex; gap: 10px; margin-top: 10px; }
.team-links a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--cream); color: var(--ink);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.team-links a:hover { background: var(--tan); transform: translateY(-2px); }
.team-links svg { width: 15px; height: 15px; }

/* ---------- Slider controls ---------- */
.slider-nav { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); background: var(--white);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.slider-btn:hover { background: var(--tan); border-color: var(--tan); transform: translateY(-2px); }
.slider-btn svg { width: 16px; height: 16px; }
.slider-btn:disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Testimonials ---------- */
.testimonial-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.testimonial-head .slider-nav { margin: 0; }
.testimonial-track { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testimonial-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  background: var(--white); border: 1px solid rgba(232, 191, 150, 0.7); border-radius: var(--radius);
  padding: 28px; align-items: start;
  transition: box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.testimonial-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.testimonial-card > img { width: 100%; aspect-ratio: 220 / 260; object-fit: cover; border-radius: 12px; }
.testimonial-quote svg { width: 36px; height: 36px; fill: var(--tan); margin-bottom: 12px; }
.testimonial-quote blockquote { margin: 0 0 18px; font-size: 15px; }
.testimonial-quote cite { font-style: normal; display: block; }
.testimonial-quote cite strong { display: block; color: var(--ink); font-size: 16px; }
.testimonial-quote cite span { font-size: 13.5px; color: var(--text); }

/* review card variant (team page) */
.review-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { border: 1px solid rgba(232, 191, 150, 0.7); border-radius: var(--radius); background: var(--white); padding: 28px; display: flex; flex-direction: column; transition: box-shadow 0.35s, transform 0.35s var(--ease-out); }
.review-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.review-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.review-stars svg { width: 17px; height: 17px; fill: #e8a33d; }
.review-card blockquote { margin: 0 0 20px; font-size: 14.5px; flex: 1; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-who strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.review-who span { font-size: 13px; }
.trusted-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.trusted-left { display: flex; align-items: center; gap: 18px; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--white); object-fit: cover; }
.avatar-stack img + img { margin-left: -18px; }
.trusted-left .eyebrow { margin: 0 0 2px; }
.trusted-rating { text-align: right; }
.trusted-rating .score { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 30px; color: var(--ink); }
.trusted-rating .score svg { width: 22px; height: 22px; fill: #e8a33d; }
.trusted-rating small { display: block; color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; padding: 26px 4px;
  font-size: clamp(16px, 2vw, 19px); font-weight: 600; color: var(--ink);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--tan-dark); }
.faq-icon { flex: 0 0 auto; width: 20px; height: 20px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform 0.35s var(--ease-out);
}
.faq-icon::before { left: 0; right: 0; top: 9px; height: 2px; }
.faq-icon::after { top: 0; bottom: 0; left: 9px; width: 2px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.faq-a-inner { overflow: hidden; }
.faq-a p { max-width: 76ch; padding: 0 4px 26px; margin: 0; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- Contact CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.cta-copy .h-section { color: var(--white); margin-bottom: 20px; }
.cta-copy p { color: var(--text-light); max-width: 52ch; }
.cta-points { margin-top: 32px; display: grid; gap: 18px; }
.cta-points li { display: flex; align-items: center; gap: 16px; color: var(--white); font-weight: 600; }
.cta-points .pt-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--tan); color: var(--ink); display: grid; place-items: center;
}
.cta-points svg { width: 22px; height: 22px; }
.section-cream .cta-copy .h-section { color: var(--ink); }
.section-cream .cta-copy p { color: var(--text); }
.section-cream .cta-points li { color: var(--ink); }

/* dark contact CTA: lifted tone + texture so it doesn't fuse with the footer */
.section-contact-cta { position: relative; overflow: hidden; background: var(--ink-2); }
.section-contact-cta::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/page-hero-bg.jpg") center / cover no-repeat;
  opacity: 0.07;
}
.section-contact-cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 520px at 76% 55%, rgba(232, 191, 150, 0.12), transparent 70%);
}
.section-contact-cta > .container { position: relative; z-index: 1; }

/* ---------- Consultation form ---------- */
.consult-form {
  background: var(--tan); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.consult-form h3 { font-family: var(--font-text); font-weight: 800; font-size: 24px; color: var(--ink); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.consult-form input, .consult-form select, .consult-form textarea {
  width: 100%; border: 1px solid transparent; border-radius: 10px;
  background: var(--white); padding: 15px 18px; font-size: 15px; color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.consult-form textarea { min-height: 140px; resize: vertical; }
.consult-form input:focus, .consult-form select:focus, .consult-form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 29, 32, 0.12);
}
.consult-form ::placeholder { color: #8b8c90; }
.consult-form .btn { margin-top: 20px; }
.form-note { display: none; margin: 16px 0 0; font-weight: 600; color: var(--ink); }
.form-note.is-visible { display: block; }
.consult-form.on-light { background: var(--white); box-shadow: var(--shadow-soft); }
.consult-form.on-light input, .consult-form.on-light select, .consult-form.on-light textarea { background: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: #141518; color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(56px, 7vw, 90px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 0.8fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand img { width: min(240px, 70%); }
.footer-social { display: flex; gap: 14px; margin-top: 28px; }
.footer-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--white);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.footer-social a:hover { background: var(--tan); border-color: var(--tan); color: var(--ink); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-family: var(--font-text); font-size: 16px; font-weight: 800; letter-spacing: 0.1em; color: var(--white); margin-bottom: 22px; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { font-size: 17px; font-weight: 600; transition: color 0.3s, padding-left 0.3s var(--ease-out); }
.footer-links a:hover { color: var(--tan); padding-left: 6px; }
.footer-contact li { display: flex; gap: 16px; margin-bottom: 20px; font-size: 15px; }
.footer-contact .f-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--tan); color: var(--tan); display: grid; place-items: center;
}
.footer-contact svg { width: 20px; height: 20px; }
.footer-contact strong { display: block; color: var(--white); font-size: 16px; }
.footer-contact a:hover { color: var(--tan); }
.footer-news h4 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: 0; text-transform: none; text-align: center; }
.footer-news p { font-size: 14.5px; text-align: center; }
.newsletter { display: flex; margin-top: 20px; border-radius: 10px; overflow: hidden; }
.newsletter input { flex: 1; min-width: 0; border: 0; padding: 15px 18px; font-size: 15px; background: var(--white); color: var(--ink); }
.newsletter input:focus { outline: none; }
.newsletter button { background: var(--tan-dark); color: var(--ink); font-weight: 700; padding: 0 26px; transition: background 0.3s; }
.newsletter button:hover { background: var(--tan); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--tan); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--ink);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 9vw, 110px);
  text-align: center;
}
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero-bg img { width: 100%; height: 130%; object-fit: cover; opacity: 0.22; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,29,32,0.4), rgba(28,29,32,0.95)); }
.page-hero h1 { position: relative; color: var(--white); font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.01em; }

/* ---------- Search bar ---------- */
.search-bar { display: flex; max-width: 860px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); background: var(--white); }
.search-bar input { flex: 1; min-width: 0; border: 0; padding: 18px 22px; font-size: 15.5px; }
.search-bar input:focus { outline: none; }
.search-bar .btn { border-radius: 0; padding: 0 34px; }
.search-bar .filter-btn { background: var(--ink); color: var(--white); padding: 0 20px; display: grid; place-items: center; }
.search-bar .filter-btn svg { width: 20px; height: 20px; }

/* ---------- Practice cards ---------- */
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.practice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.practice-card {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.practice-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(28, 29, 32, 0.16); }
.practice-card img { width: 100%; aspect-ratio: 624 / 400; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.practice-card:hover img { transform: scale(1.03); }

/* intro blurb on practice page */
.practice-intro { display: flex; gap: 32px; align-items: flex-start; max-width: 1000px; }
.practice-intro-icon {
  flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink);
}
.practice-intro-icon svg { width: 34px; height: 34px; }
.practice-intro h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }

/* ---------- About: mission / vision / timeline / awards ---------- */
.about-rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-row img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow-soft); }
.about-row h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 16px; }
.about-row.flip .about-media { order: 2; }

.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: rgba(217, 169, 120, 0.5); transform: translateX(-50%);
}
.timeline-item { position: relative; width: calc(50% - 44px); margin-bottom: 44px; }
.timeline-item:nth-child(odd) { margin-right: auto; }
.timeline-item:nth-child(even) { margin-left: auto; }
.timeline-card {
  position: relative; background: var(--ink); color: var(--text-light);
  border-radius: var(--radius); padding: 28px 30px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.timeline-card .year { font-family: var(--font-display); font-size: 40px; color: var(--tan); line-height: 1; margin-bottom: 10px; display: block; }
.timeline-card small { display: block; color: var(--tan); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; margin-bottom: 4px; }
.timeline-card p { margin: 0; font-size: 14.5px; }
.timeline-item::after {
  content: ""; position: absolute; top: 44px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--tan); border: 3px solid var(--cream);
}
.timeline-item:nth-child(odd)::after { right: -52px; }
.timeline-item:nth-child(even)::after { left: -52px; }
.timeline-item::before {
  content: ""; position: absolute; top: 50px; height: 2px; width: 38px; background: rgba(217, 169, 120, 0.5);
}
.timeline-item:nth-child(odd)::before { right: -38px; }
.timeline-item:nth-child(even)::before { left: -38px; }

.award-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.award-tab {
  padding: 10px 26px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  font-weight: 600; font-size: 14.5px; color: var(--ink); transition: background 0.3s, border-color 0.3s;
}
.award-tab.is-active, .award-tab:hover { background: var(--tan); border-color: var(--tan); }
.awards-band { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.awards-band h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.award-cards { display: flex; gap: 24px; align-items: stretch; flex-wrap: wrap; }
.award-card {
  background: var(--white); border-radius: var(--radius); padding: 28px; text-align: center;
  box-shadow: var(--shadow-soft); flex: 1 1 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: transform 0.35s var(--ease-out);
}
.award-card:hover { transform: translateY(-5px); }
.award-card.major { flex: 1.4 1 240px; }
.award-card img { max-height: 150px; width: auto; object-fit: contain; }
.award-card strong { color: var(--ink); font-size: 15px; line-height: 1.4; }
.award-card span { font-size: 13px; color: var(--text); }

/* ---------- Team filter dropdown ---------- */
.team-toolbar { position: relative; max-width: 860px; margin: 0 auto; }
.team-toolbar .search-bar { max-width: none; overflow: visible; }
.team-toolbar .search-bar input { border-radius: 12px 0 0 12px; }
.filter-wrap { position: relative; }
.filter-wrap .filter-btn { height: 100%; border-radius: 0 12px 12px 0; transition: background 0.3s, color 0.3s; }
.filter-wrap .filter-btn.has-filter { background: var(--tan); color: var(--ink); }
.filter-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 280px; padding: 8px; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 56px rgba(28, 29, 32, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
}
.filter-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.filter-menu li { list-style: none; }
.filter-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; padding: 11px 14px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: background 0.2s;
}
.filter-option:hover { background: var(--cream); }
.filter-option[aria-selected="true"] { background: var(--tan); }
.filter-option svg { width: 14px; height: 14px; opacity: 0; flex: 0 0 auto; }
.filter-option[aria-selected="true"] svg { opacity: 1; }
.filter-status { margin: 14px 4px 0; font-size: 14px; color: var(--text); display: none; }
.filter-status.is-visible { display: block; }
.filter-status button {
  margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--tan-dark); text-decoration: underline;
}
.team-empty { display: none; text-align: center; padding: 56px 0 8px; color: var(--text); }
.team-empty.is-visible { display: block; }

/* ---------- Attorney profile ---------- */
.profile-hero {
  position: relative; overflow: hidden; background: var(--ink);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) 0 clamp(56px, 8vw, 100px);
}
.profile-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.profile-hero-bg img { width: 100%; height: 120%; object-fit: cover; opacity: 0.14; }
.profile-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(28,29,32,0.55) 40%, rgba(28,29,32,0.95)); }
.profile-hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ph-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--tan); margin-bottom: 22px; }
.ph-crumb svg { width: 13px; height: 13px; }
.ph-crumb:hover { text-decoration: underline; }
.ph-role { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); margin-bottom: 12px; }
.ph-role::before { content: ""; width: 26px; height: 1.5px; background: var(--tan); }
.ph-name { color: var(--white); font-size: clamp(40px, 5.5vw, 64px); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 18px; }
.ph-intro { color: var(--text-light); font-size: 17px; max-width: 54ch; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.ph-chips span {
  font-size: 12.5px; font-weight: 600; color: var(--tan);
  border: 1px solid rgba(232, 191, 150, 0.45); border-radius: var(--radius-pill);
  padding: 6px 14px; white-space: nowrap;
}
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ph-icon-btn {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--white);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.ph-icon-btn:hover { background: var(--tan); border-color: var(--tan); color: var(--ink); transform: translateY(-2px); }
.ph-icon-btn svg { width: 19px; height: 19px; }
.ph-photo { position: relative; justify-self: end; width: min(400px, 100%); }
.ph-photo::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid rgba(232, 191, 150, 0.5); border-radius: var(--radius); z-index: 0;
}
.ph-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); }

.profile-body { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.profile-bio h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.profile-bio h3 { font-family: var(--font-text); font-weight: 800; font-size: 18px; color: var(--ink); margin: 30px 0 10px; }
.profile-bio ul { margin: 0 0 1em; }
.profile-bio ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.profile-bio ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--tan); }
.profile-side { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.cred-card { background: var(--cream); border-radius: var(--radius); padding: 30px; }
.cred-card h3 { font-family: var(--font-text); font-weight: 800; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.cred-card li { padding: 12px 0; border-bottom: 1px solid rgba(28, 29, 32, 0.08); font-size: 14.5px; }
.cred-card li:last-child { border-bottom: 0; }
.cred-card li strong { display: block; color: var(--ink); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.side-cta { background: var(--ink); border-radius: var(--radius); padding: 30px; color: var(--text-light); }
.side-cta h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--white); margin-bottom: 10px; }
.side-cta p { font-size: 14.5px; }
.side-cta .btn { margin-top: 8px; }
.draft-note { font-size: 12.5px; color: #8b8c90; margin-top: 28px; }

@media (max-width: 900px) {
  .profile-hero .container { grid-template-columns: 1fr; }
  .ph-photo { justify-self: start; }
  .profile-body { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .filter-menu { right: auto; left: 0; }
}

/* ---------- News & Insights ---------- */
.cat-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 40px 0 0; }
.cat-pill {
  padding: 10px 24px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  font-weight: 600; font-size: 14.5px; color: var(--ink); background: var(--white);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.cat-pill:hover { transform: translateY(-2px); }
.cat-pill.is-active, .cat-pill:hover { background: var(--tan); border-color: var(--tan); }

.featured-post {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); color: var(--text-light);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.featured-post .fp-media { position: relative; min-height: 340px; }
.featured-post .fp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fp-badge {
  display: inline-block; background: var(--tan); color: var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.featured-post h2 { color: var(--white); font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
.featured-post h2 a { transition: color 0.3s; }
.featured-post h2 a:hover { color: var(--tan); }
.featured-post p { margin: 0; font-size: 15.5px; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.post-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.post-meta strong { display: block; font-size: 14px; color: inherit; }
.featured-post .post-meta strong { color: var(--white); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(28, 29, 32, 0.14); }
.post-card .pc-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.post-card:hover .pc-media img { transform: scale(1.05); }
.pc-cat {
  position: absolute; left: 16px; top: 16px;
  background: rgba(28, 29, 32, 0.85); color: var(--white);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.post-card .pc-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.pc-date { font-size: 13px; color: var(--text); font-weight: 600; }
.post-card h3 { font-family: var(--font-text); font-weight: 800; font-size: 19px; line-height: 1.35; color: var(--ink); }
.post-card h3 a { transition: color 0.3s; }
.post-card h3 a:hover { color: var(--tan-dark); }
.post-card .pc-excerpt { margin: 0; font-size: 14.5px; flex: 1; }
.pc-read { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.pc-read svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease-out); }
.pc-read:hover { color: var(--tan-dark); }
.pc-read:hover svg { transform: translate(3px, -3px); }

.posts-empty { display: none; text-align: center; padding: 48px 0; color: var(--text); }
.posts-empty.is-visible { display: block; }

.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: clamp(36px, 5vw, 56px); }
.page-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink); background: var(--white);
  transition: background 0.3s, border-color 0.3s;
}
.page-num.is-active, .page-num:hover { background: var(--tan); border-color: var(--tan); }
.page-next { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); padding: 0 8px; }
.page-next:hover { color: var(--tan-dark); }
.blog-disclaimer { max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; font-size: 13.5px; color: #8b8c90; }

@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .featured-post { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius); padding: 30px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.contact-card .c-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--tan-dark); color: var(--tan-dark); display: grid; place-items: center; }
.contact-card svg { width: 22px; height: 22px; }
.contact-card h3 { font-family: var(--font-text); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.contact-card p { margin: 0; font-size: 14.5px; }
.contact-card a:hover { color: var(--tan-dark); text-decoration: underline; }

.map-wrap { position: relative; background: var(--cream); }
.map-wrap iframe { display: block; width: 100%; height: 520px; border: 0; filter: saturate(0.85); }
.map-form {
  position: relative; max-width: 720px;
  margin: clamp(48px, 7vw, 80px) auto clamp(64px, 9vw, 120px);
  background: var(--cream); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.map-form h2 { font-family: var(--font-text); font-weight: 800; font-size: 26px; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.01em; }
.map-form input, .map-form select, .map-form textarea {
  width: 100%; border: 1px solid transparent; border-radius: 10px;
  background: var(--white); padding: 15px 18px; font-size: 15px; color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.map-form textarea { min-height: 130px; resize: vertical; }
.map-form input:focus, .map-form select:focus, .map-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,29,32,0.1); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--tan); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s, background 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--tan-dark); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Custom cursor ---------- */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(217, 169, 120, 0.75);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s, opacity 0.3s;
  opacity: 0;
}
.cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-hover { width: 56px; height: 56px; background: rgba(232, 191, 150, 0.14); }
.cursor-ring.is-down { width: 24px; height: 24px; }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in, .reveal-left.is-in, .reveal-right.is-in { opacity: 1; transform: none; }

/* hero entrance */
.hero .fx { opacity: 0; transform: translateY(30px); animation: heroIn 0.9s var(--ease-out) forwards; }
.hero .fx-1 { animation-delay: 0.1s; }
.hero .fx-2 { animation-delay: 0.25s; }
.hero .fx-3 { animation-delay: 0.4s; }
.hero-photo-wrap { opacity: 0; animation: heroFade 1.1s ease 0.3s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroFade { to { opacity: 1; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 1180px) {
  .nav-list {
    position: fixed; inset: 0; z-index: 120;
    flex-direction: column; justify-content: center; gap: 8px;
    background: var(--ink);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; }
  .nav-list a { font-size: 24px; font-family: var(--font-display); font-weight: 400; padding: 12px 0; opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); transition-delay: calc(var(--i) * 0.05s + 0.1s); }
  .nav-list.is-open a { opacity: 1; transform: none; }
  .nav-toggle { display: block; }
  .nav-search { display: none; }
  .nav-cta .btn { display: none; }
  .nav-list .btn { display: inline-flex; margin-top: 18px; opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease-out) 0.45s, transform 0.45s var(--ease-out) 0.45s; }
  .nav-list.is-open .btn { opacity: 1; transform: none; }
  .nav-list a.btn {
    font-family: var(--font-text); font-size: 16px; font-weight: 700;
    color: var(--ink); padding: 15px 32px; line-height: 1.5;
  }
  .nav-list a.btn::after { display: none; }
}
@media (min-width: 1181px) { .nav-list .btn { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-photo-wrap { opacity: 0; animation-name: heroFadeDim; }
  @keyframes heroFadeDim { to { opacity: 0.35; } }
  .hero-content { max-width: 620px; }
  .process-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-track { grid-template-columns: 1fr; }
  .awards-band { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .split, .about-row, .cta-grid { grid-template-columns: 1fr; }
  .about-row.flip .about-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-card, .case-card.wide { grid-column: span 1; }
  .case-card img { min-height: 240px; }
  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .review-strip { grid-template-columns: 1fr; }
  .practice-grid, .practice-grid.cols-3 { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .collage-a { height: 340px; }
  .collage-b { height: 400px; margin-top: 64px; }
  .hero-decor { display: none; }
  .timeline::before { left: 8px; }
  .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { width: auto; margin-left: 44px; margin-right: 0; }
  .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after { left: -42px; right: auto; }
  .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before { left: -30px; right: auto; width: 26px; }
  .testimonial-card { grid-template-columns: 1fr; }
  .testimonial-card > img { max-width: 300px; aspect-ratio: 4 / 3; }
  .map-form { margin: 48px 16px clamp(64px, 9vw, 120px); }
  .map-wrap iframe { height: 380px; }
  .practice-intro { flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  body { font-size: 15px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-news h4, .footer-news p { text-align: left; }
  .collage { gap: 14px; }
  .collage-a { height: 250px; }
  .collage-b { height: 300px; margin-top: 44px; }
  .collage-badge { padding: 20px 22px; bottom: -24px; }
  .collage-badge .num { font-size: 34px; }
  .hero { min-height: 0; }
  .hero-sub { font-size: 16px; }
  .search-bar .btn { padding: 0 20px; }
  .newsletter button { padding: 0 18px; }
  .to-top { right: 16px; bottom: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .hero .fx, .hero-photo-wrap { opacity: 1 !important; transform: none !important; }
  .cursor-ring { display: none !important; }
}
