*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Figtree', sans-serif; font-weight: 400; color: #1a1a1a; background: #faf9f7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

:root {
  --navy: #0f2240;
  --navy-mid: #1a3357;
  --orange: #e84c1e;
  --orange-mid: #ff5a28;
  --orange-dim: rgba(232,76,30,0.1);
  --ink: #1a1a1a;
  --ink-mid: #4a4a4a;
  --ink-soft: #888;
  --stone: #f0ede8;
  --parchment: #faf9f7;
  --white: #ffffff;
  --rule: rgba(26,26,26,0.11);
  --rule-light: rgba(26,26,26,0.055);
  --card-num: rgba(26,26,26,0.28);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --footer-bg: #0b1c33;
}

#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,249,247,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule-light); transition: box-shadow 0.3s; }
#navbar.scrolled { box-shadow: 0 2px 28px rgba(0,0,0,0.07); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 52px; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 11.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-mid); transition: color 0.2s; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 26px; background: var(--orange); color: var(--white); border: none; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.nav-cta:hover { background: var(--orange-mid); transform: translateY(-1px); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: rgba(26, 26, 26, 0.22); background: rgba(26, 26, 26, 0.03); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-mid);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-mobile {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(250, 249, 247, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 20px 24px 28px;
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-links { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.nav-mobile-links a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
  transition: color 0.2s;
}
.nav-mobile-links a:hover,
.nav-mobile-links a.active { color: var(--ink); }
.nav-mobile-cta {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  background: var(--orange);
  color: var(--white);
  border: none;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.nav-mobile-cta:hover { background: var(--orange-mid); }
nav.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

.pill, .section-pill { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; background: var(--orange); color: var(--white); padding: 5px 14px; margin-bottom: 20px; }
.accent { color: var(--orange); font-style: italic; }
.navy-it { color: var(--navy); font-style: italic; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 80px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 13px 30px; background: var(--navy); color: var(--white); border: none; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 26px; background: transparent; color: var(--navy); border: 1.5px solid var(--navy); transition: all 0.2s; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.svc-link { margin-top: auto; font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--orange); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--orange-dim); padding-bottom: 2px; transition: gap 0.2s, border-color 0.2s; align-self: flex-start; }
.svc-link:hover { gap: 14px; border-color: var(--orange); }

.practice-card-list li::before,
.approach-list:not(.approach-list--ordered) li::before,
.cadence-list li::before,
.eng-list li::before {
  content: '>';
  color: var(--orange);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.cta-section { padding: 100px 0; background: var(--white); border-top: 1px solid var(--rule-light); }
.cta-inner { max-width: 1240px; margin: 0 auto; padding: 0 80px; display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.cta-headline { font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
.cta-right { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.cta-sub { font-size: 13px; color: var(--ink-soft); }

footer { background: var(--footer-bg); padding: 80px 0 0; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 80px; display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, max-content); column-gap: 72px; row-gap: 40px; }
.footer-logo-row { margin-bottom: 48px; }
.footer-tagline { font-family: var(--serif); font-size: 17px; font-style: italic; color: rgba(255,255,255,0.35); line-height: 1.5; margin-bottom: 16px; }
.footer-address { font-size: 13.5px; line-height: 1.8; color: var(--white); font-weight: 400; font-style: normal; margin-top: 0; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 22px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { font-size: 13.5px; color: var(--white); transition: color 0.2s; white-space: nowrap; }
.footer-links a:hover { color: var(--white); }
.footer-links-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 4px 0; list-style: none; }
.footer-social { margin-top: 18px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: rgba(255,255,255,0.5); transition: color 0.2s, background 0.2s; }
.footer-social-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.footer-social-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { max-width: 1240px; margin: 60px auto 0; padding: 22px 80px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.22); letter-spacing: 0.04em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.22); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }
.footer-legal-btn { font-size: 12px; color: rgba(255,255,255,0.22); background: none; border: none; padding: 0; letter-spacing: 0.04em; transition: color 0.2s; }
.footer-legal-btn:hover { color: rgba(255,255,255,0.5); }

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cookie-consent--visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  background: var(--footer-bg);
}
.cookie-consent-inner {
  width: 100%;
  background: var(--footer-bg);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -12px 48px rgba(0,0,0,0.22);
}
.cookie-consent--prefs .cookie-consent-inner {
  min-height: var(--cookie-panel-height, 420px);
  display: flex;
  flex-direction: column;
}
.cookie-consent--prefs .cookie-consent-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}
.cookie-consent--prefs .cookie-consent-actions--panel {
  margin-top: auto;
  padding-top: 24px;
}
.cookie-consent-banner,
.cookie-consent-panel {
  padding: 28px 80px;
}
.cookie-consent--prefs .cookie-consent-banner { display: none; }
.cookie-consent:not(.cookie-consent--prefs) .cookie-consent-panel { display: none; }
.cookie-consent-copy { max-width: 760px; }
.cookie-consent-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.cookie-consent-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}
.cookie-consent-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent-text a:hover { color: var(--orange-mid); }
.cookie-consent-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-consent-actions--panel { margin-top: 24px; }
.cookie-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-btn--primary {
  background: var(--orange);
  color: var(--white);
}
.cookie-btn--primary:hover { background: var(--orange-mid); }
.cookie-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.18);
}
.cookie-btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.04);
}
.cookie-category {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-category:first-of-type { margin-top: 20px; }
.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.cookie-category-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.cookie-category-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}
.cookie-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}
.cookie-category-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cookie-category-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  transition: background 0.2s;
}
.cookie-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s;
}
.cookie-category-toggle input:checked + .cookie-switch { background: var(--orange); }
.cookie-category-toggle input:checked + .cookie-switch::after { transform: translateX(20px); }
.cookie-category-toggle input:focus-visible + .cookie-switch {
  outline: 2px solid var(--orange-mid);
  outline-offset: 2px;
}
body.cookie-banner-open { padding-bottom: 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media(max-width:1024px) {
  .nav-inner { padding-left: 40px; padding-right: 40px; }
  .nav-links,
  .nav-actions > .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .wrap, .cta-inner, .footer-inner, .footer-bottom { padding-left: 40px; padding-right: 40px; }
  .cta-section { padding: 80px 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-headline { font-size: 40px; }
  .cta-right { align-items: flex-start; width: 100%; }
  .cta-right .btn-primary { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cookie-consent-banner { grid-template-columns: 1fr; }
  .cookie-consent-actions { justify-content: flex-start; }
  .cookie-consent-banner,
  .cookie-consent-panel { padding: 28px 40px; }
}
@media(max-width:768px) {
  .nav-inner { padding-left: 24px; padding-right: 24px; }
  .wrap, .cta-inner, .footer-inner, .footer-bottom { padding-left: 24px; padding-right: 24px; }
  .cta-section { padding: 72px 0; }
  .cta-headline { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  footer { padding-top: 64px; }
  .cookie-consent-banner,
  .cookie-consent-panel { padding: 24px 24px; }
}
@media(max-width:480px) {
  .nav-inner { padding-left: 20px; padding-right: 20px; }
  .nav-mobile { padding-left: 20px; padding-right: 20px; }
  .wrap, .cta-inner, .footer-inner, .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .cta-headline { font-size: 28px; }
  .cta-section { padding: 64px 0; }
  .cookie-consent-banner,
  .cookie-consent-panel { padding: 24px 20px; }
}
