/* ============================================================================
   ANANYA SHANKAR — PORTFOLIO  |  STYLES
   Light, soft, modern. Montserrat throughout.
   ----------------------------------------------------------------------------
   1. Tokens & reset           5. Approach (step cards)
   2. Layout primitives        6. Selected work
   3. Header / nav             7. Testimonials carousel
   4. Hero + mission           8. Contact + footer + motion
   ============================================================================ */

/* --------------------------------------------------------------------------
   1. TOKENS & RESET
-------------------------------------------------------------------------- */
:root {
  /* surfaces — very light navy tint */
  --bg: #f0f0f0;
  --panel: #e4eaf6;
  --card: #ffffff;

  /* ink — primary navy scale */
  --ink: #0e1a40;
  /* primary 900  ✓ 16:1 on --bg */
  --muted: #4a5a80;
  /* primary 500  ✓ 5.9:1 on --bg WCAG AA */
  --hairline: #c0cde6;
  /* primary 200 */
  --primary-gradient: linear-gradient(-45deg, var(--ink), var(--muted));

  /* accents — navy (repurposed var names, new values)
     --teal      primary 700  · white text 13:1 ✓ WCAG AA
     --teal-deep primary 900  · white text 16:1 ✓ WCAG AA          */
  --teal: #1e3472;
  --teal-deep: #0e1a40;
  --mint: #dce6f5;
  --mint-trans: rgb(220, 230, 245, 0.5);
  /* primary 100 — light navy tint */

  /* contact gradient — warm gold tints */
  --lav-1: #eedfc0;
  /* secondary ~150 */
  --lav-2: #f8f2e6;
  /* secondary ~50  */
  --secondary-gradient: linear-gradient(120deg, var(--lav-2), var(--lav-1));

  --cross-gradient: linear-gradient(-45deg, var(--lav-2), var(--mint));
  --cross-gradient-2: linear-gradient(45deg, var(--mint), var(--hairline));
  --cross-gradient-3: linear-gradient(45deg, var(--indigo), var(--gold-medium));

  --indigo: #3a5090;
  /* primary 600 — icon colour */

  /* gold / secondary */
  --gold: #7a521a;
  /* 8.5:1 on white  ✓ WCAG AAA  */
  --gold-medium: #936b2c;
  --gold-light: #ede4cf;
  /* warm tint, kept close to original feel */

  /* radii */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* shadow — navy-tinted */
  --shadow-sm: 0 4px 16px rgba(14, 26, 64, .06);
  --shadow-md: 0 18px 50px rgba(14, 26, 64, .10);
  --shadow-lg: 0 30px 80px rgba(14, 26, 64, .13);
  --shadow-xl: 0 30px 80px rgba(14, 26, 64, .40);

  --maxw: 90%;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(15px, 1vw + .6rem, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.04;
}

p {
  margin: 0;
  font-weight: 500;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-pill);
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   2. LAYOUT PRIMITIVES
-------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 112px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-left: clamp(36px, 6vw, 72px);
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: none;
  flex-wrap: wrap;
}

.section-head--full {
  max-width: none;
  padding-left: clamp(36px, 6vw, 72px);
}

.section-head--full .section-intro {
  max-width: none;
  margin-top: 24px;
}

.section-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.section-intro {
  /* color: var(--muted); */
  font-size: 1.02rem;
  margin-top: 18px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
    color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  transition: transform .25s var(--ease);
}

.btn--pill {
  background: var(--ink);
  color: #fff;
}

.btn--pill-secondary {
  background: var(--gold);
  color: #fff;
}

.btn--pill-var {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn--pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 24, 29, .22);
}

.btn--pill:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(22, 24, 29, .18);
}

.btn--ghost:hover {
  background: rgba(22, 24, 29, .05);
  border-color: rgba(22, 24, 29, .35);
  transform: translateY(-2px);
}

.btn--ghost-secondary {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--ghost-secondary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* tags & chips */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tag--mint {
  background: var(--mint);
  color: var(--teal-deep);
}

.tag--lav {
  background: var(--gold-light);
  color: var(--teal-deep);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 600;
}

.chip--light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   3. HEADER / NAV
-------------------------------------------------------------------------- */
.nav-bar {
  position: fixed;
  justify-self: center;
  z-index: 100;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  top: 14px;
  background: rgba(255, 255, 255, .50);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  /* border: 1px solid rgba(255, 255, 255, .6); */
  border-radius: var(--r-pill);
  padding: 10px 12px 10px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.nav-bar.is-scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, .50);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1rem;
}

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.nav-link:hover {
  background: rgba(22, 24, 29, .06);
}

.nav-link.is-current {
  background: var(--gold);
  color: var(--gold-light);
}

.caret {
  transition: transform .25s var(--ease);
}

/* dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}

.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .18s var(--ease);
}

.dropdown-menu a:hover {
  background: var(--mint);
  color: var(--teal-deep);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .caret:not(.caret--sub) {
  transform: rotate(180deg);
}

/* ---------- Sub-dropdown (LXD / UXD nested menus) ---------- */
.has-subdropdown {
  position: relative;
}

.subdropdown-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Caret points right ">" when closed (rotate -90° on the down-caret path) */
.caret--sub {
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform .25s var(--ease);
}

/* Arrow flips to point left "<" when submenu is open */
.has-subdropdown:hover .caret--sub,
.has-subdropdown:focus-within .caret--sub {
  transform: rotate(90deg);
}

/* Right-opening absolute fly-out */
.subdropdown-menu {
  position: absolute;
  left: calc(100% + 6px);
  top: 0;
  min-width: 260px;
  list-style: none;
  padding: 8px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  z-index: 250;
}

/* Transparent bridges on both sides so the cursor path through the gap
   never leaves a hoverable area, regardless of which direction the panel opens */
.subdropdown-menu::before,
.subdropdown-menu::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10px;
  height: 100%;
}

.subdropdown-menu::before {
  right: 100%;
}

/* bridge for right-opening */
.subdropdown-menu::after {
  left: 100%;
}

/* bridge for left-opening  */

.has-subdropdown:hover .subdropdown-menu,
.has-subdropdown:focus-within .subdropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear 0s;
}

/* Subdropdown links */
.subdropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}

.subdropdown-menu a:hover {
  background: var(--mint);
  color: var(--teal-deep);
}

.nav-cta-item .btn {
  padding-block: 11px;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

/* --------------------------------------------------------------------------
   4. HERO + MISSION
-------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* padding-top: clamp(80px, 10vw, 120px); */
  padding-bottom: 100px;
  /* background: var(--primary-gradient); */
  /* room for pinned scroll cue */
}

.hero__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
  /* color: var(--muted); */
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 8px 16px;
  border-radius: var(--r-pill);
}

.hero__eyebrow--on-photo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  color: var(--teal-deep);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 163, 174, .18);
}

.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  letter-spacing: -.035em;
  line-height: .96;
  color: var(--bg);
  white-space: nowrap;
}

.hero__lede {
  margin-top: 48px;
  color: var(--bg);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* hero portrait */
.hero__portrait {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  /* background: white; */
  max-width: max-content;
  max-height: fit-content;
  box-shadow: var(--shadow-lg);
  align-self: stretch;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.hero__portrait:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 96px rgba(22, 24, 29, .13);
}

.hero__portrait img {
  /* width: 100%;
  height: 100%; */
  height: fit-content;
  object-fit: contain;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 700;
}

.badge--open {
  background: var(--mint);
  color: var(--teal-deep);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(20, 163, 174, .5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(20, 163, 174, 0);
  }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(22, 24, 29, .2);
  border-radius: var(--r-pill);
  padding-top: 7px;
}

.scroll-cue__dot {
  width: 4px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--ink);
  animation: cue 1.6s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(12px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* mission band */
.mission__panel {
  background: #c49040;
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.mission__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission__visual img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(14, 26, 64, .15));
}

.mission__heading {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 2.04;
  color: var(--ink);
}

@media (max-width: 640px) {
  .mission__panel {
    grid-template-columns: 1fr;
  }

  .mission__visual img {
    max-height: 200px;
  }
}

/* --------------------------------------------------------------------------
   5. APPROACH — step cards
-------------------------------------------------------------------------- */
/* Gold-tinted panel wrapping the whole approach section content */
.approach__panel {
  background: var(--gold-light);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px);
  box-shadow: var(--shadow-sm);
}

/* Let the header + subtext fill the full container width */
.approach .section-head {
  max-width: none;
  padding-left: 0;
  /* already inside panel padding */
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.step-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 26px;
  min-height: 230px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(108, 111, 240, .12);
  color: var(--ink);
  margin-bottom: 20px;
}

.step-card__icon svg {
  width: 22px;
  height: 22px;
}

.step-card__text {
  /* color: var(--muted); */
  font-size: .92rem;
  flex: 1;
}

.step-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.step-card__title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  color: var(--gold);
}

.step-card__num {
  font-weight: 700;
  color: #c3c6cc;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   6. SELECTED WORK
-------------------------------------------------------------------------- */
.featured_container {
  display: flex;
  flex-direction: column;
  /* background: var(--card); */
  background: var(--cross-gradient);
  border-radius: var(--r-xl);
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--shadow-md);
}

.featured {
  display: grid;
  grid-template-columns: 2fr 8fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.featured__rev {
  display: grid;
  grid-template-columns: 8fr 2fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.featured__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.featured__media img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: contain;
}

.featured__tag {
  position: absolute;
  top: 4px;
  left: 16px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.featured__body {
  padding: clamp(8px, 2vw, 28px) clamp(8px, 2vw, 24px);
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.featured__body .btn {
  margin-left: auto;
}

.featured__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.featured__text {
  /* color: var(--muted); */
  margin-top: 18px;
  font-size: 1rem;
}

.featured__meta {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}

.featured__meta li {
  font-size: .9rem;
  /* color: var(--muted); */
}

.featured__meta strong {
  display: inline-block;
  min-width: 92px;
  color: var(--ink);
  font-weight: 700;
}

/* Stats row — gold left border accent */
.case-card__stats {
  display: flex;
  flex-direction: row;
  padding: 18px;
  /* background: var(--gold-light); */
  border-radius: var(--r-md);
  flex-wrap: wrap;
}

.case-card__stat {
  display: flex;
  width: 33.33%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 5px;
}

.case-card__stat-val {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}

.case-card__stat-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
  max-width: 140px;
}

/* Tag pills — outline style */
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-bridge {
  margin-bottom: 28px;
  padding-left: clamp(36px, 6vw, 72px);
}

.work-bridge__lead {
  /* color: var(--muted); */
  font-size: 1.05rem;
}

.work-bridge__sub {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 24px;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.practice-card {
  /* background: 
    linear-gradient(to right, var(--bg), var(--bg)), 
    var(--cross-gradient-3); 
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box; */
  background: var(--secondary-gradient);
  border-radius: var(--r-xl);
  border: 1px solid var(--gold);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* transition: transform .35s var(--ease), box-shadow .35s var(--ease); */
}

.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.practice-card__media {
  position: relative;
}

.practice-card__media img {
  width: 100%;
  aspect-ratio: 16/5;
  object-fit: contain;
  display: block;
  padding: clamp(12px, 1.5vw, 18px) clamp(20px, 4vw, 48px);
}

/* Tag on gold background: white pill for readability */
.practice-card__media .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  /* background: rgba(255, 255, 255, .9);
  color: var(--ink); */
  background: var(--ink);
  color: var(--bg);
}

/* Body: flex column with equal spacing; button pinned right */
.practice-card__body {
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.practice-card__title {
  font-size: 1.4rem;
  color: var(--ink);
}

.practice-card__text {
  color: var(--ink);
  font-size: .96rem;
}

.practice-card__body .btn {
  align-self: flex-end;
  background: var(--ink);
  flex-wrap: wrap;
  text-wrap: initial;
  color: var(--card);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--teal-deep);
}

.text-link span {
  transition: transform .25s var(--ease);
}

.text-link:hover span {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   7. TESTIMONIALS CAROUSEL
-------------------------------------------------------------------------- */
/* Mint-tinted panel wrapping the testimonials section content */
.testimonials__panel {
  background: var(--mint);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px);
  box-shadow: var(--shadow-sm);
}

.testimonials .section-head {
  padding-left: 0;
  /* already inside panel padding */
}

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform .55s var(--ease);
}

.t-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.t-card {
  margin: 10;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 32px;
}

.t-quote {
  display: block;
  font-size: 4rem;
  line-height: .5;
  color: var(--mint);
  font-weight: 800;
  margin-bottom: 18px;
}

.t-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.5;
  color: var(--ink);
}

.t-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.t-foot__info {
  display: flex;
  flex-direction: column;
}

.t-name {
  font-weight: 800;
  font-size: 1.02rem;
}

.t-role {
  /* color: var(--muted); */
  font-size: .85rem;
  font-weight: 500;
}

.t-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-deep);
  transition: transform .25s var(--ease), background .25s var(--ease);
  flex-shrink: 0;
}

.t-linkedin:hover {
  transform: translateY(-2px);
  background: var(--teal);
  color: #fff;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.t-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.t-arrow:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.t-dots {
  display: flex;
  gap: 9px;
}

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(22, 24, 29, .2);
  transition: width .3s var(--ease), background .3s var(--ease);
}

.t-dot.is-active {
  width: 26px;
  border-radius: var(--r-pill);
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   8. CONTACT + FOOTER + MOTION
-------------------------------------------------------------------------- */
.contact__panel {
  background: var(--secondary-gradient);
  border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 96px);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact__panel .section-kicker {
  color: var(--gold);
}

.contact__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #1c1f4a;
  max-width: 16ch;
  margin: 0 auto;
}

.contact__intro {
  color: #4a4f7a;
  margin: 22px auto 0;
  max-width: 460px;
  font-size: 1.05rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.contact__actions .btn--ghost {
  border-color: rgba(28, 31, 74, .25);
  color: #1c1f4a;
}

.contact__actions .btn--ghost:hover {
  background: rgba(28, 31, 74, .07);
}

.site-footer {
  padding-block: clamp(36px, 5vw, 64px);
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px) clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.footer__note {
  /* color: var(--muted); */
  font-size: .9rem;
  flex: 1;
  min-width: 200px;
}

.footer__copy {
  text-align: center;
  /* color: var(--muted); */
  font-size: .8rem;
  margin-top: 22px;
}

/* ---- reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* hero staggered entrance */
.anim {
  opacity: 0;
  transform: translateY(20px);
  animation: rise .8s var(--ease) forwards;
}

.anim[data-anim="1"] {
  animation-delay: .05s;
}

.anim[data-anim="2"] {
  animation-delay: .18s;
}

.anim[data-anim="3"] {
  animation-delay: .32s;
}

.anim[data-anim="4"] {
  animation-delay: .46s;
}

.anim[data-anim="5"] {
  animation-delay: .60s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__portrait {
    max-width: 480px;
  }

  .section-head--row {
    align-items: flex-start;
  }

  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured,
  .featured__rev {
    grid-template-columns: 1fr;
  }

  .featured__rev .featured__media {
    order: -1;
    /* image above text when stacked */
  }

  .featured__media img {
    aspect-ratio: 16/10;
  }
}

@media (max-width: 760px) {

  /* mobile nav */
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 12px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height .35s var(--ease), opacity .3s var(--ease), visibility .3s, padding .35s var(--ease);
  }

  .primary-nav.is-open {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
  }

  .nav-cta-item {
    margin-top: 8px;
  }

  .nav-cta-item .btn {
    width: 100%;
    justify-content: center;
  }

  /* dropdown becomes accordion */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }

  .has-dropdown.is-open .dropdown-menu {
    max-height: 800px;
  }

  .has-dropdown.is-open .caret:not(.caret--sub) {
    transform: rotate(180deg);
  }

  /* Mobile: in-flow accordion, arrow down/up */
  .caret--sub {
    transform: rotate(0deg) !important;
    /* points down "v" when closed */
  }

  .has-subdropdown.is-sub-open .caret--sub {
    transform: rotate(180deg) !important;
    /* points up "^" when open */
  }

  .subdropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    background: transparent;
    padding: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }

  .has-subdropdown.is-sub-open .subdropdown-menu {
    max-height: 400px;
  }
}

@media (max-width: 640px) {
  .step-grid {
    grid-template-columns: 1fr;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .hero__portrait {
    max-width: 100%;
  }

  .hero__title {
    white-space: normal;
  }

  .t-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .anim {
    opacity: 1;
    transform: none;
  }

  .badge__dot,
  .scroll-cue__dot {
    animation: none;
  }
}

/* Nav always floats above content */
#siteHeader {
  z-index: 200;
}