/* =====================================================================
   Capital City Technology Solutions: site stylesheet
   One file for the whole site. Colors and fonts are set once in :root.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Core palette (brand spec) */
  --navy:        #0B1F33;   /* Dark Navy */
  --blue:        #1677C8;   /* Technology Blue */
  --white:       #FFFFFF;
  --gray-50:     #F3F6F8;   /* Light Gray */
  --charcoal:    #263238;
  --black:       #000000;

  /* Derived shades */
  --navy-950:    #061321;
  --navy-850:    #10273F;
  --navy-800:    #15304C;
  --navy-700:    #1D3B5A;
  --line-dark:   rgba(150, 185, 220, .16);
  --line-dark-2: rgba(150, 185, 220, .28);
  --blue-700:    #1268B0;   /* blue text/links on light backgrounds (AA contrast) */
  --blue-800:    #0E5694;
  --blue-400:    #4FA0E6;   /* blue text on navy (AA contrast) */
  --blue-200:    #A9CFF2;
  --gray-100:    #E8EDF1;
  --gray-200:    #D6DEE4;
  --gray-300:    #BAC6CF;
  --gray-500:    #5B6B76;   /* secondary text on light (AA contrast) */
  --muted-dark:  #9FB2C4;   /* secondary text on navy (AA contrast) */

  /* Accent: used sparingly */
  --gold:        #C9A24A;
  --gold-light:  #DDBB6A;

  /* Type */
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container:   76rem;
  --gutter:      clamp(1.25rem, 4vw, 2rem);
  --section-y:   clamp(4.5rem, 9vw, 7rem);
  --radius:      6px;
  --radius-sm:   3px;
  --header-h:    4.25rem;
  --shadow-sm:   0 1px 2px rgba(11, 31, 51, .06), 0 1px 1px rgba(11, 31, 51, .04);
  --shadow-md:   0 10px 30px -12px rgba(11, 31, 51, .22), 0 2px 6px rgba(11, 31, 51, .06);
  --shadow-lg:   0 30px 60px -25px rgba(11, 31, 51, .45);
  --ease:        cubic-bezier(.2, .7, .2, 1);

  /* Safe areas for phones with notches */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--navy-950);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 1.5rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; color: inherit; }
p, ul, ol, dl, dd, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible,
.section--navy :focus-visible, .section--deep :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible { outline-color: var(--gold-light); }
::selection { background: rgba(22, 119, 200, .22); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--navy); font-weight: 600; padding: .65rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); color: var(--navy); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--white { background: var(--white); }
.section--light { background: var(--gray-50); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--deep  { background: var(--navy-950); color: var(--white); }
.relative { position: relative; }

/* ---------- 3. Typography helpers ---------- */
.display { font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.06; }
.section--white .h2, .section--light .h2 { color: var(--navy); }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); line-height: 1.6; }
.muted { color: var(--gray-500); }
.section--navy .muted, .section--deep .muted, .practices-section .muted, .cta-band .muted { color: var(--muted-dark); }
.kicker { display: block; font-size: .95rem; font-weight: 600; color: var(--blue-700); margin-bottom: .9rem; }
.section--navy .kicker, .section--deep .kicker { color: var(--blue-400); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 64rem) {
  .section-head--split { grid-template-columns: 7fr 5fr; align-items: end; gap: 3rem; }
}
.section-head p { max-width: 38rem; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 1.05rem; height: 1.05rem; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px -10px rgba(22, 119, 200, .8); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--gray-50); color: var(--navy); transform: translateY(-1px); }
.btn--sm { min-height: 2.5rem; padding: .55rem 1rem; font-size: .925rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 30rem) { .btn-row .btn { width: 100%; } }

.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.text-link svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(6, 19, 33, .9); color: var(--white);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand__mark { width: 30px; height: 30px; }
.brand__text { line-height: 1.05; }
.brand__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.005em; }
.brand__sub  { display: block; font-size: .72rem; color: var(--muted-dark); margin-top: .15rem; }
.nav__right { display: flex; align-items: center; gap: 2.25rem; }
.nav__links { display: none; align-items: center; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: inline-block; color: var(--muted-dark); text-decoration: none; font-size: .95rem; font-weight: 500; padding-block: .6rem; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc((var(--header-h) - 2.75rem) / -2); height: 2px; background: var(--gold);
}
.nav__cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-right: -.5rem;
  background: none; border: 0; color: var(--white); cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.no-js .nav-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--line-dark); background: var(--navy-950); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: .75rem var(--gutter) 1.5rem; }
.mobile-nav li + li { border-top: 1px solid var(--line-dark); }
.mobile-nav a:not(.btn) { display: block; padding: 1rem 0; color: var(--white); text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.mobile-nav a[aria-current="page"] { color: var(--blue-400); }
.mobile-nav .btn { width: 100%; margin-top: 1rem; }
@media (min-width: 52rem) {
  .nav__links, .nav__cta { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}
/* Without JavaScript on small screens, show the links inline instead of a menu button */
@media (max-width: 51.99rem) {
  .no-js .nav__links { display: flex; gap: 1.1rem; }
  .no-js .brand__sub { display: none; }
}

/* ---------- 6. Shared backgrounds / motifs ---------- */
.hero-bg {
  background:
    radial-gradient(55% 65% at 82% 28%, rgba(22, 119, 200, .26), transparent 70%),
    radial-gradient(40% 50% at 8% 95%, rgba(22, 119, 200, .14), transparent 70%),
    var(--navy);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 207, 242, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 207, 242, .065) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
          mask-image: linear-gradient(to bottom, #000 35%, transparent);
}
.dots-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(#C8D3DC 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
          mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.stripes-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(201, 162, 74, .06) 0 2px, transparent 2px 14px);
}
.gold-rule { display: flex; gap: .35rem; margin-bottom: 1.5rem; }
.gold-rule span { width: 2.5rem; height: .4rem; background: var(--gold); }
.gold-rule--sm span { width: 1.75rem; height: .3rem; }
.cta-band .gold-rule span { background: var(--gold-light); }

/* ---------- 7. Home hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); }
.hero__topology { position: absolute; right: 0; top: 0; width: 100%; height: 100%; opacity: .32; pointer-events: none; }
@media (min-width: 64rem) {
  .hero__topology { width: 58%; opacity: .95; }
  /* soft fade where the diagram meets the headline */
  .hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none;
    background: linear-gradient(90deg, rgba(11, 31, 51, .85) 55%, transparent); }
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: clamp(30rem, 72vh, 40rem); padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero__copy { max-width: 40rem; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.6rem;
  font-size: .875rem; color: var(--blue-200); padding: .35rem .85rem; border-radius: 999px;
  background: rgba(22, 119, 200, .12); border: 1px solid rgba(79, 160, 230, .35);
}
.pill__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); }
.hero__title { max-width: 15ch; }
.hero__title .accent { color: var(--gold-light); }
.hero__lead { margin-top: 1.5rem; max-width: 36rem; color: var(--muted-dark); }
.hero .btn-row { margin-top: 2.25rem; }

.packet { offset-rotate: 0deg; animation: travel 4s linear infinite; }
.packet--a { offset-path: path("M80 90 L300 60 L520 120"); }
.packet--b { offset-path: path("M300 60 L300 300"); animation-duration: 3s; animation-delay: -1s; }
.packet--c { offset-path: path("M80 90 L140 330 L300 300 L470 360 L520 120"); animation-duration: 7s; }
.packet--d { offset-path: path("M470 360 L420 540"); animation-duration: 2.5s; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }


/* ---------- 8. Technology strip ---------- */
.tech-strip { background: var(--navy-950); color: var(--white); border-block: 1px solid var(--line-dark); }
.tech-strip__inner { display: flex; flex-direction: column; gap: .9rem; padding-block: 1.5rem; }
@media (min-width: 52rem) { .tech-strip__inner { flex-direction: row; align-items: center; gap: 2.5rem; } }
.tech-strip__label { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--muted-dark); flex-shrink: 0; }
.tech-strip__label::before { content: ""; width: .45rem; height: .45rem; background: var(--gold); }
.tech-strip ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; margin: 0; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: rgba(255, 255, 255, .82); }

/* ---------- 9. Value proposition ---------- */
.split { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.split .lead { margin-top: 1.5rem; }
.split .lead + .lead { margin-top: 1.1rem; }
.split .btn { margin-top: 2rem; }
.need-list { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.need-list__head { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--gray-200); border-top: 3px solid var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); background: #FAFBFC; }
.need-list ul { list-style: none; margin: 0; padding: 0; }
.need-list li { display: flex; gap: 1rem; align-items: baseline; padding: .95rem 1.5rem; border-top: 1px solid var(--gray-100); }
.need-list li:first-child { border-top: 0; }
.need-list li::before { content: ""; width: .45rem; height: .45rem; background: var(--blue); flex-shrink: 0; transform: translateY(-.1rem); }
.need-list strong { display: block; color: var(--navy); font-weight: 600; }
.need-list span { display: block; color: var(--gray-500); font-size: .95rem; }

/* ---------- 10. Practices (tabs on home; stacked without JS) ---------- */
.practices-section { overflow: hidden; background: linear-gradient(160deg, #0E2A47 0%, var(--navy) 45%, var(--navy-950) 100%); color: var(--white); }
.practices-section::before {
  content: ""; position: absolute; width: 34rem; height: 34rem; right: -12rem; top: -14rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 200, .22), transparent 65%); pointer-events: none;
}
.practices { position: relative; display: grid; gap: 1.25rem; }
.practices__tabs { display: none; }
.js-tabs .practices__tabs { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; scrollbar-width: thin; }
.tab {
  position: relative; display: flex; align-items: center; gap: .8rem; flex-shrink: 0; scroll-snap-align: start;
  min-height: 3.25rem; padding: .8rem 1.1rem; border-radius: var(--radius); text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab svg { width: 1.4rem; height: 1.4rem; color: var(--blue-400); flex-shrink: 0; }
.tab::before { content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 3px; border-radius: 0 2px 2px 0; background: transparent; }
.tab:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.tab[aria-selected="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.tab[aria-selected="true"] svg { color: var(--blue-700); }
.tab[aria-selected="true"]::before { background: var(--gold); }
.tab:focus-visible { outline-color: var(--gold-light); }
@media (min-width: 64rem) {
  .js-tabs.practices { grid-template-columns: 21rem 1fr; gap: 1.5rem; align-items: start; }
  .js-tabs .practices__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .tab { white-space: normal; min-height: 3.6rem; }
}
.practice-panel { background: var(--white); color: var(--charcoal); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-lg); }
.practice-panel[hidden] { display: none; }
.practice-panel:focus-visible { outline-color: var(--gold-light); }
.js-tabs .practice-panel { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.practice-panel__head { display: flex; gap: 1rem; align-items: flex-start; }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; flex-shrink: 0; border-radius: var(--radius); background: rgba(22, 119, 200, .1); color: var(--blue-700); }
.icon-box svg { width: 1.5rem; height: 1.5rem; }
.practice-panel h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.practice-panel__lead { margin-top: .4rem; color: var(--gray-500); }
.check-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0 2rem; }
@media (min-width: 40rem) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; gap: .8rem; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--gray-100); }
.check-list li::before { content: ""; width: .4rem; height: .4rem; background: var(--blue); flex-shrink: 0; transform: translateY(-.15rem); }
.practice-panel .btn { margin-top: 1.75rem; }

/* ---------- 11. Project positioning ---------- */
.attr-grid { display: grid; gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 40rem) { .attr-grid { grid-template-columns: 1fr 1fr; } }
.attr { background: var(--white); padding: 1.6rem 1.6rem 1.75rem; transition: background-color .25s; }
.attr:hover { background: #FAFBFC; }
.attr h3 { font-size: 1.2rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: .65rem; }
.attr h3::before { content: ""; width: 1.1rem; height: 2px; background: var(--blue); flex-shrink: 0; }
.attr p { margin-top: .55rem; color: var(--gray-500); }

.process { list-style: none; margin: clamp(3.5rem, 7vw, 5rem) 0 0; padding: 0; display: grid; gap: 2.25rem; position: relative; }
@media (min-width: 40rem) { .process { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
  .process::before { content: ""; position: absolute; top: 1.4rem; left: 1.5rem; right: 1.5rem; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue) 70%, var(--gold)); }
}
.process li { position: relative; }
.process__num {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; box-shadow: 0 0 0 7px var(--gray-50);
}
.section--white .process__num { box-shadow: 0 0 0 7px var(--white); }
.process li:last-child .process__num { background: var(--gold); color: var(--navy); }
.process h3 { margin-top: 1.2rem; font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.process p { margin-top: .45rem; color: var(--gray-500); }

/* ---------- 12. Experience / environment cards (dark) ---------- */
.env-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .env-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .env-grid { grid-template-columns: repeat(3, 1fr); } }
.env-card { position: relative; padding: 1.6rem; border-radius: var(--radius); background: rgba(21, 48, 76, .55); border: 1px solid var(--line-dark); transition: border-color .25s, transform .25s var(--ease), background-color .25s; }
.env-card:hover { border-color: var(--line-dark-2); background: rgba(21, 48, 76, .8); transform: translateY(-2px); }
.env-card h3 { font-size: 1.2rem; font-weight: 600; }
.env-card p { margin-top: .5rem; color: var(--muted-dark); font-size: .975rem; }
.env-card__mark { display: block; width: 1.75rem; height: 2px; background: var(--blue-400); margin-bottom: 1.1rem; }
.env-card--gold .env-card__mark { background: var(--gold); }

/* ---------- 13. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(110deg, var(--blue-800) 0%, var(--blue) 100%); }
.cta-band .grid-bg { opacity: .8; }
.cta-band__inner { position: relative; display: grid; gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 5rem); }
@media (min-width: 64rem) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 4rem; } }
.cta-band p { margin-top: .9rem; max-width: 40rem; color: rgba(255, 255, 255, .9); font-size: 1.1rem; }

/* ---------- 14. Interior page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--white); border-bottom: 1px solid var(--line-dark); }
.page-hero__inner { position: relative; padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(3.5rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; max-width: 20ch; }
.page-hero .lead { margin-top: 1.4rem; max-width: 44rem; color: var(--muted-dark); }
.page-hero__sub { display: block; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--blue-200); line-height: 1.2; }
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.25rem 0 0; list-style: none; padding: 0; }
.jump-links a {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .5rem .9rem;
  border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
  color: var(--white); text-decoration: none; font-size: .925rem; transition: border-color .2s, background-color .2s;
}
.jump-links a:hover { border-color: var(--blue-400); background: rgba(22, 119, 200, .14); color: var(--white); }
.jump-links svg { width: 1.05rem; height: 1.05rem; color: var(--blue-400); }

/* ---------- 15. Services page ---------- */
.svc-layout { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .svc-layout { grid-template-columns: 16.5rem minmax(0, 1fr); gap: 3rem; align-items: start; } }
.svc-index { display: none; }
@media (min-width: 64rem) {
  .svc-index { display: block; position: sticky; top: calc(var(--header-h) + 2rem); }
}
.svc-index__label { font-size: .85rem; color: var(--gray-500); margin: 0 0 .75rem .9rem; }
.svc-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.svc-index a {
  position: relative; display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--radius);
  color: var(--gray-500); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color .2s, color .2s;
}
.svc-index a svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.svc-index a:hover { color: var(--navy); background: var(--white); }
.svc-index a[aria-current="true"] { color: var(--navy); background: var(--white); box-shadow: var(--shadow-sm); }
.svc-index a[aria-current="true"] svg { color: var(--blue-700); }
.svc-index a[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 0 2px 2px 0; background: var(--gold); }

.practice { padding-bottom: clamp(3rem, 6vw, 4.5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--gray-200); }
.practice:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.practice__head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 2rem; }
.practice__head .icon-box { width: 3.5rem; height: 3.5rem; background: var(--navy); color: var(--blue-200); box-shadow: inset 0 -3px 0 var(--gold); }
.practice__head .icon-box svg { width: 1.75rem; height: 1.75rem; }
.practice__head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); color: var(--navy); }
.practice__intro { margin-top: .5rem; font-size: 1.1rem; color: var(--gray-500); max-width: 44rem; }
.cap-grid { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .cap-grid { grid-template-columns: 1fr 1fr; } }
.cap-card { background: var(--white); border: 1px solid var(--gray-200); border-top: 3px solid var(--gray-200); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.5rem; transition: border-color .25s, box-shadow .25s; }
.cap-card:hover { border-color: var(--gray-300); border-top-color: var(--gold); box-shadow: var(--shadow-md); }
.cap-card h3 { font-size: 1.12rem; font-weight: 600; color: var(--navy); padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px solid var(--gray-100); }
.cap-card ul { list-style: none; margin: 0; padding: 0; }
.cap-card li { position: relative; padding: .28rem 0 .28rem 1.05rem; font-size: .955rem; line-height: 1.45; }
.cap-card li::before { content: ""; position: absolute; left: 0; top: .78rem; width: .35rem; height: .35rem; background: var(--blue); }
.practice__cta { margin-top: 1.75rem; }
.practice__note { margin-top: 1rem; font-size: .9rem; color: var(--gray-500); }

.pro-panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; overflow: hidden; }
.pro-panel > :not(.stripes-bg) { position: relative; }
.pro-panel h3 { font-size: 1.35rem; font-weight: 600; }
.pro-panel p { color: #D3DEE8; max-width: 46rem; margin-top: .75rem; }
.pro-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0 2rem; }
@media (min-width: 40rem) { .pro-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .pro-list { grid-template-columns: repeat(3, 1fr); } }
.pro-list li { display: flex; gap: .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); color: #DCE6EF; }
.pro-list li::before { content: ""; width: .4rem; height: .4rem; background: var(--gold); flex-shrink: 0; transform: translateY(-.15rem); }
.discipline-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.discipline-chips a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .45rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--line-dark-2); color: var(--white); text-decoration: none; font-size: .9rem; transition: border-color .2s, background-color .2s; }
.discipline-chips a:hover { border-color: var(--blue-400); background: rgba(22, 119, 200, .16); color: var(--white); }
.pro-panel :focus-visible { outline-color: var(--gold-light); }

/* ---------- 16. About page ---------- */
.prose { max-width: 42rem; }
.prose p { font-size: 1.1rem; line-height: 1.7; color: var(--charcoal); }
.prose p + p { margin-top: 1.25rem; }
.section--navy .prose p, .section--deep .prose p { color: #D3DEE8; }
.about-intro { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .about-intro { grid-template-columns: 5fr 7fr; gap: 5rem; } }

.approach { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 40rem) { .approach { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .approach { grid-template-columns: repeat(5, 1fr); } }
.approach li { background: var(--navy); padding: 1.5rem 1.4rem 1.7rem; }
.approach li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 64rem) { .approach li:last-child:nth-child(odd) { grid-column: auto; } }
.approach__num { font-family: var(--font-mono); font-size: .8rem; color: var(--blue-400); }
.approach p { margin-top: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; color: var(--white); }

.hub { display: grid; gap: 1rem; margin-top: 3rem; }
.hub__center {
  border-bottom: 4px solid var(--gold);
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 2rem 1.5rem; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: var(--shadow-lg);
}
.hub__center svg { width: 40px; height: 40px; margin-bottom: 1rem; }
.hub__center strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.hub__center span { margin-top: .35rem; color: var(--muted-dark); font-size: .925rem; }
.hub__col { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.hub__col a {
  position: relative; display: flex; align-items: center; gap: .75rem; padding: .95rem 1.1rem; min-height: 3.5rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  color: var(--navy); text-decoration: none; font-weight: 600; line-height: 1.3; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.hub__col a:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--navy); }
.hub__col svg { width: 1.3rem; height: 1.3rem; color: var(--blue-700); flex-shrink: 0; }
@media (min-width: 30rem) and (max-width: 63.99rem) { .hub__col { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .hub { grid-template-columns: 1fr 17rem 1fr; gap: 3.5rem; align-items: center; }
  .hub__center { order: 2; min-height: 15rem; }
  .hub__col--left { order: 1; } .hub__col--right { order: 3; }
  .hub__col a::after { content: ""; position: absolute; top: 50%; width: 3.5rem; height: 1px; background: var(--gray-300); }
  .hub__col--left a::after { left: 100%; }
  .hub__col--right a::after { right: 100%; }
}
.quote {
  margin: 3.5rem auto 0; max-width: 46rem; text-align: center; padding: 2rem 1rem 0; border-top: 1px solid var(--gray-200);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; color: var(--navy);
}
.quote::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--gold); margin: 0 auto 1.25rem; }

.vet-grid { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .vet-grid { grid-template-columns: 6fr 5fr; gap: 5rem; align-items: center; } }
.principles-label { font-size: .95rem; color: var(--muted-dark); margin-bottom: .9rem; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 30rem) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(21, 48, 76, .6); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.principles li::before { content: ""; width: .5rem; height: .5rem; background: var(--gold); flex-shrink: 0; }
@media (min-width: 30rem) { .principles li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- 17. Contact page ---------- */
.contact-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64rem) { .contact-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; } }
.form-card { background: var(--white); color: var(--charcoal); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow-lg); }
.form-card :focus-visible { outline-color: var(--blue); }
.notice { display: flex; gap: .85rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: #FBF6EA; border: 1px solid #E6D5A8; color: #4A3D1C; font-size: .925rem; line-height: 1.5; margin-bottom: 1.75rem; }
.notice svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: #8A6A1F; margin-top: .1rem; }
.form-required-note { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .925rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field .req { color: #B42318; margin-left: .15rem; }
.field .opt { font-weight: 400; color: var(--gray-500); margin-left: .25rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300); background: var(--white); color: var(--charcoal); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235B6B76' stroke-width='1.8'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; }
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 119, 200, .22); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field__help { margin-top: .4rem; font-size: .875rem; color: var(--gray-500); }
.field__error { margin-top: .4rem; font-size: .875rem; color: #B42318; font-weight: 500; }
.field__error[hidden] { display: none; }
.field__count { margin-top: .3rem; font-size: .8rem; color: var(--gray-500); text-align: right; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { margin-top: 1.5rem; min-height: 65px; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .btn { min-width: 15rem; }
@media (max-width: 30rem) { .form-actions .btn { width: 100%; min-width: 0; } }
.form-alert { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: #FEF3F2; border: 1px solid #FECDCA; color: #7A271A; font-size: .95rem; }
.form-alert[hidden] { display: none; }
.form-alert a { color: #7A271A; font-weight: 600; }
.form-alert:focus { outline: none; }
.noscript-note { padding: 1rem 1.1rem; margin-bottom: 1.5rem; border-radius: var(--radius-sm); background: var(--gray-50); border: 1px solid var(--gray-200); font-size: .95rem; }
.success[hidden] { display: none; }
.success__icon { display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: rgba(22, 119, 200, .12); color: var(--blue-700); }
.success__icon svg { width: 1.6rem; height: 1.6rem; }
.success h2 { margin-top: 1.25rem; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.success p { margin-top: .75rem; color: var(--gray-500); max-width: 36rem; }
.success .btn { margin-top: 1.75rem; }
.success:focus { outline: none; }
.aside-stack { display: grid; gap: 1rem; }
.aside-card { padding: 1.5rem; border-radius: var(--radius); background: rgba(6, 19, 33, .7); border: 1px solid var(--line-dark); color: var(--white); }
.aside-card h2 { font-size: 1.2rem; font-weight: 600; }
.aside-card p, .aside-card li { color: var(--muted-dark); font-size: .95rem; }
.aside-card p { margin-top: .5rem; }
.aside-card .email-link { display: inline-block; margin-top: .6rem; color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.aside-card .email-link:hover { color: var(--blue-200); }
.aside-card ul { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .6rem; }
.aside-card ul li { display: flex; gap: .7rem; align-items: baseline; }
.aside-card ul li::before { content: ""; width: .35rem; height: .35rem; background: var(--blue-400); flex-shrink: 0; transform: translateY(-.15rem); }
.next-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.next-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.next-steps span { display: flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; flex-shrink: 0; background: var(--navy-700); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.next-steps li:last-child span { background: var(--gold); color: var(--navy); }
.next-steps p { margin: 0; color: var(--muted-dark); font-size: .95rem; padding-top: .15rem; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--white); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; gap: 2.5rem; padding-block: 3.75rem; }
@media (min-width: 40rem) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 5fr 2fr 3fr 3fr; gap: 3rem; } }
.footer__brand .brand__name { font-size: 1.15rem; }
.footer__desc { margin-top: 1rem; color: var(--muted-dark); font-size: .95rem; max-width: 22rem; }
.footer__vet { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.25rem; font-size: .85rem; color: var(--gold-light); border: 1px solid rgba(201, 162, 74, .4); border-radius: var(--radius-sm); padding: .35rem .7rem; }
.footer__vet::before { content: ""; width: .4rem; height: .4rem; background: var(--gold); }
.footer__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.footer__title::after { content: ""; display: block; width: 1.5rem; height: 2px; margin-top: .5rem; background: var(--gold); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer__links a { overflow-wrap: anywhere; color: var(--muted-dark); text-decoration: none; font-size: .95rem; display: inline-block; padding-block: .1rem; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--line-dark); }
.footer__bottom .container { display: flex; flex-direction: column; gap: .5rem; padding-block: 1.4rem; font-size: .825rem; color: var(--muted-dark); }
@media (min-width: 52rem) { .footer__bottom .container { flex-direction: row; justify-content: space-between; } }
.footer__legal { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer__legal a { color: var(--muted-dark); }

/* ---------- 19. 404 ---------- */
.not-found { min-height: 62vh; display: flex; align-items: center; }
.not-found__code { font-family: var(--font-mono); color: var(--blue-400); font-size: .95rem; margin-bottom: 1rem; }

/* ---------- 20. Reveal-on-scroll (subtle, JS-enabled only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .packet { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 22. Print ---------- */
@media print {
  .site-header, .nav-toggle, .mobile-nav, .cta-band, .hero__topology, .grid-bg, .dots-bg, .stripes-bg, .turnstile-wrap { display: none !important; }
  body, .section--navy, .section--deep, .hero, .page-hero, .practices-section { background: #fff !important; color: #000 !important; }
}

/* ---------- 23. Small page-specific spacing ---------- */
.experience-link { margin-top: 2.5rem; }
.experience-link .text-link { color: var(--blue-200); }
.experience-link .text-link:hover { color: var(--white); }
.vet-prose { margin-top: 1.5rem; }
.not-found__actions { margin-top: 2rem; }
.contact-body { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero .lead + .lead { margin-top: 1rem; }
