/* Visual refinement layer: type rhythm, surfaces and restrained motion. */
:root {
  --ease: 240ms cubic-bezier(.22, 1, .36, 1);
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --paper: #f6f8fa;
  --muted: #607181;
}

body { line-height: 1.85; }
h1, h2 { font-weight: 400; letter-spacing: -.025em; }
h2 { line-height: 1.3; }
h3 { font-weight: 500; letter-spacing: -.015em; }
.large-copy { font-size: 21px; line-height: 1.75; font-weight: 400; }
.intro-copy { line-height: 1.85; }
.about-visual figure > img { object-position: 50% 25%; }
.eyebrow { letter-spacing: .12em; font-weight: 500; }
.section-heading { margin-bottom: 54px; }
.editorial-split > div > p:not(.eyebrow) { max-width: 580px; }
.prose { line-height: 2; }
.prose h2 { margin-top: 50px; }

/* Header keeps a quiet surface; the shadow appears only after scrolling. */
.site-header {
  transition: box-shadow 350ms ease, border-color 350ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 6px 28px rgba(16, 42, 67, .07);
}
.main-nav > a:not(.button), .nav-group-top > a { position: relative; }
.main-nav > a:not(.button)::after, .nav-group-top > a::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--motion-ease);
}
.main-nav > a[aria-current="page"]::after,
.main-nav > a:not(.button):hover::after,
.nav-group-top > a[aria-current="page"]::after,
.nav-group-top > a:hover::after { transform: scaleX(1); }
.nav-group-top { gap: 4px; }
.nav-icon { display: block; flex-shrink: 0; }
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  min-height: 36px;
  padding: 0;
  border-radius: 7px;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.submenu-toggle:hover, .submenu-toggle[aria-expanded="true"] {
  background: #edf3f8;
  color: var(--blue);
}
.submenu-toggle .nav-icon { width: 16px; height: 16px; transition: transform 240ms var(--motion-ease); }
.submenu-toggle[aria-expanded="true"] .nav-icon { transform: rotate(180deg); }
.main-nav .nav-cta {
  gap: 14px;
  padding: 12px 18px;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 600;
}
.main-nav .nav-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
}
.main-nav .nav-cta:hover > .nav-cta-icon { transform: translateX(3px); }
.submenu { border-radius: 0 0 6px 6px; }
.submenu:not([hidden]) { animation: menu-enter 230ms var(--motion-ease) both; }
.submenu a { transition: color 200ms ease, padding-left 250ms var(--motion-ease); }
.submenu a:hover { padding-left: 5px; }

/* Hero preserves all copy, with a calmer two-line heading on wide screens. */
.hero-inner { min-height: 700px; padding-block: 104px; }
.hero-copy { max-width: 880px; }
.hero h1 { font-size: clamp(44px, 4.4vw, 66px); line-height: 1.18; letter-spacing: -.025em; }
.hero h1 em { color: #e4f1f8; }
.hero .eyebrow { color: #c8e0ed; margin-bottom: 25px; font-size: 11px; }
.hero-description { max-width: 550px; font-size: 16px; line-height: 1.85; color: #dde7ed; margin-top: 30px; }
.hero::after { background: linear-gradient(90deg, rgba(7,26,45,.9) 0%, rgba(7,26,45,.72) 50%, rgba(7,26,45,.35) 100%); }
.hero-actions { align-items: center; gap: 28px; margin-top: 35px; }
.hero-note { width: min(100%, 550px); margin-top: 38px; border-color: rgba(255,255,255,.18); }
.hero-background { animation: hero-settle 1400ms var(--motion-ease) both; }

/* Controls move a few pixels without changing their layout dimensions. */
.button {
  border-radius: 5px;
  transition: transform 300ms var(--motion-ease), background-color 250ms ease, box-shadow 300ms ease, border-color 250ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(16,42,67,.12); }
.button:active { transform: translateY(0); box-shadow: none; }
.button > span, .text-link > span, .row-arrow {
  transition: transform 320ms var(--motion-ease), color 250ms ease;
}
.button:hover > span, .text-link:hover > span { transform: translateX(3px); }
.link-icon, .row-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
}
.link-icon > svg, .row-arrow > svg { width: 18px; height: 18px; }
.button > .link-icon { color: inherit; }
.practice-row > .row-arrow { justify-self: end; }
.text-link { transition: color 230ms ease, border-color 230ms ease; }
.text-link:hover { border-color: var(--blue); }
.hero-actions .text-link:hover { color: #d7effb; border-color: #d7effb; }
.hero-actions > .button { padding-inline: 27px; }
.button:disabled { transform: none; box-shadow: none; }

/* Editorial rows, rather than more floating cards. */
.practice-row { transition: background-color 350ms ease; }
.practice-row h3 { font-weight: 400; transition: color 250ms ease, transform 350ms var(--motion-ease); }
.practice-row .row-number { transition: color 250ms ease; }
.practice-row:hover { background: #f8fafc; }
.practice-row:hover h3 { transform: translateX(5px); }
.practice-row:hover .row-number { color: var(--blue); }
.practice-row:hover .row-arrow { transform: translateX(3px); }
.principles h3 { font-size: 18px; }
.principles > div { padding-block: 26px; }
.approach-list h3 { font-size: 18px; }
.team-copy h2 { font-weight: 400; }
.portrait { overflow: hidden; border-radius: 4px; }
.portrait img, .insight-image img { transition: transform 800ms var(--motion-ease); }
.insight-image { border-radius: 4px; }
.insight-item h3 { font-weight: 400; line-height: 1.35; }
.insight-item h3 a { transition: color 250ms ease; }
.document-row { transition: background-color 300ms ease; }
.document-row h2 { font-weight: 400; }
.document-status { flex-shrink: 0; max-width: 220px; color: var(--muted); font-size: 12px; line-height: 1.8; padding-top: 12px; }
.update-notice { padding: 20px 24px; background: var(--paper); border-left: 2px solid var(--cyan); color: var(--navy); }
.filter-bar { border-radius: 6px; }
input:not([type="checkbox"]), select, textarea {
  border-radius: 4px;
  border-color: #c5cfd8;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
input:not([type="checkbox"]):focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,105,170,.07);
}
.faq-list details[open] > p { animation: content-enter 300ms var(--motion-ease) both; }
.faq-list summary { transition: color 200ms ease; }
.faq-list summary:hover { color: var(--blue); }

/* JS only marks elements pending when IntersectionObserver is available. */
.testimonial {
  background: #061b2c;
  color: var(--white);
  padding: 65px 0 95px;
  text-align: center;
}
.testimonial-inner { max-width: 1000px; }
.testimonial-mark {
  color: #c9a15a;
  font-family: var(--display-font);
  font-size: 68px;
  line-height: 1;
  margin-bottom: 44px;
}
.testimonial-figure { margin: 0; }
.testimonial blockquote { margin: 0 auto 50px; max-width: 850px; }
.testimonial blockquote p {
  font-family: var(--display-font);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.testimonial figcaption { display: flex; flex-direction: column; align-items: center; }
.testimonial-logo { width: 64px; height: 64px; object-fit: contain; background: var(--white); padding: 8px; border-radius: 50%; margin-bottom: 20px; }
.testimonial figcaption strong { font-size: 18px; font-weight: 600; line-height: 1.6; }
.testimonial figcaption > span { font-size: 12px; font-weight: 500; color: #c9a15a; letter-spacing: .06em; margin-top: 5px; }
@media (max-width:520px) {
  .testimonial { padding: 55px 0 65px; }
  .testimonial-mark { margin-bottom: 25px; font-size: 58px; }
  .testimonial blockquote { margin-bottom: 32px; }
  .testimonial blockquote p { font-size: 28px; line-height: 1.55; }
}

.reveal-item {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--motion-ease) var(--reveal-delay,0ms), transform 700ms var(--motion-ease) var(--reveal-delay,0ms);
}
.reveal-item.is-pending { opacity: 0; transform: translateY(18px); }
.reveal-item.is-visible { opacity: 1; transform: none; }

@keyframes hero-settle { from { transform: scale(1.035); } to { transform: scale(1); } }
@keyframes menu-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes content-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (hover:hover) and (pointer:fine) {
  .portrait:hover img, .insight-item:hover .insight-image img { transform: scale(1.025); }
}
@media (max-width:1080px) {
  .submenu-toggle { width: 44px; min-height: 44px; }
  .main-nav.is-open { animation: menu-enter 230ms var(--motion-ease) both; }
  .main-nav > a:not(.button)::after, .nav-group-top > a::after { width: 28px; bottom: 8px; }
}
@media (max-width:800px) {
  .hero-inner { min-height: 650px; padding-block: 85px; }
  .hero h1 { font-size: 49px; }
  .hero-copy { max-width: 700px; }
  .hero::after { background: rgba(7,26,45,.76); }
  .large-copy { font-size: 19px; }
  .section-heading { margin-bottom: 36px; }
}
@media (max-width:520px) {
  .hero-inner { min-height: 660px; padding-block: 66px; }
  .hero h1 { font-size: 40px; line-height: 1.22; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .hero-description { font-size: 15px; line-height: 1.85; margin-top: 24px; }
  .hero-actions { align-items: stretch; gap: 15px; margin-top: 28px; }
  .hero-note { margin-top: 28px; }
  .large-copy { font-size: 18px; }
  .practice-row h3 { font-size: 24px; }
  .reveal-item.is-pending { transform: translateY(12px); }
}
@media (prefers-reduced-motion:reduce) {
  .reveal-item, .reveal-item.is-pending, .reveal-item.is-visible { opacity: 1 !important; transform: none !important; }
  .hero-background { transform: none !important; }
}
@media print {
  .reveal-item, .reveal-item.is-pending { opacity: 1 !important; transform: none !important; }
}
