/* ==========================================================================
   Warren Endodontics — Homepage styles
   Brand: ink #0D0D0D · cream #F5F1E6 · accents: teal #1F5F57 · brass #C08A4A
   Container / type scale mirrors youngdentalhealth.com
   ========================================================================== */

:root {
  --ink: #0d0d0d;
  --ink-80: rgba(13, 13, 13, 0.82);
  --ink-60: rgba(13, 13, 13, 0.66);
  --ink-40: rgba(13, 13, 13, 0.42);
  --cream: #f5f1e6;
  --cream-deep: #ece6d6;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: rgba(13, 13, 13, 0.14);
  --line-cream: rgba(245, 241, 230, 0.22);

  /* accent palette */
  --teal: #1f5f57;
  --teal-deep: #133c37;
  --teal-soft: #e4efec;
  --brass: #c08a4a;
  --brass-soft: #f3e7d6;
  --blush: #f1e6dc;

  --wrap: 1875px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section-y: clamp(56px, 7vw, 75px);
  --radius: 20px;
  --radius-sm: 12px;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--teal); color: var(--cream); }

/* ------------------------------------------------------- scroll bar UI --- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--brass));
}

/* ------------------------------------------------------------- layout --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--tint { background: linear-gradient(180deg, var(--teal-soft), var(--paper)); }

/* soft accent glow blobs */
.section--glow { overflow: hidden; }
.section--glow::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 95, 87, 0.16), transparent 70%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.section--glow::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 138, 74, 0.14), transparent 70%);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 40px); }
}

.measure { max-width: 66ch; }
.center { text-align: center; margin-inline: auto; }

/* --------------------------------------------------------- typography --- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
}
.section--ink .eyebrow,
.hero .eyebrow,
.finance-card .eyebrow { color: var(--brass); }

.eyebrow--rule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow--rule::before {
  content: "";
  width: 44px;
  height: 2px;
  background: currentColor;
  opacity: 0.8;
}

.h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
}

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 20px;
}

.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.focus {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25;
  margin: 0 0 24px;
}

.lede {
  font-size: clamp(18px, 1.25vw, 21px);
  font-weight: 400;
  color: var(--ink-80);
  margin: 0 0 28px;
}
.section--ink .lede { color: rgba(245, 241, 230, 0.82); }

.u-accent { color: var(--teal); }
.u-brass { color: var(--brass); }

/* underline swipe on a headline word */
.mark-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mark-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 100%;
  height: 0.14em;
  background: var(--brass);
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.35s;
}
.is-in .mark-word::after { transform: scaleX(1); }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ buttons --- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    color 0.45s var(--ease);
}
.btn span { position: relative; z-index: 2; }
.btn svg { position: relative; z-index: 2; width: 15px; height: 15px; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--teal);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(31, 95, 87, 0.28); }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--cream); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); border-color: var(--ink); }

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
}
.btn--light::after { background: var(--brass); }
.btn--light:hover { color: var(--ink); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border: 1.5px solid var(--line-cream);
}
.btn--outline-light::after { background: var(--cream); }
.btn--outline-light:hover { color: var(--ink); border-color: var(--cream); }

.btn--teal { --btn-bg: var(--teal); --btn-fg: var(--cream); }
.btn--teal::after { background: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------- topbar --- */
.topbar {
  background: var(--ink);
  color: rgba(245, 241, 230, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(31, 95, 87, 0.35), transparent);
  pointer-events: none;
}
.topbar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding-block: 8px;
}
.topbar__list { display: flex; flex-wrap: wrap; gap: 26px; }
.topbar__item { display: inline-flex; align-items: center; gap: 9px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--brass); flex: none; }
.topbar a { transition: color 0.3s var(--ease); }
.topbar a:hover { color: var(--brass); }

/* ---------------------------------------------------------- nav / hdr --- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 84px;
}
.nav__logo { flex: none; }
.nav__logo img { width: clamp(168px, 15vw, 220px); height: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}

/* --- dropdown ---------------------------------------------------------- */
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(13.5px, 0.85vw, 15.5px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-80);
  padding-block: 30px;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover,
.nav__item:hover > .nav__link { color: var(--teal); }
.nav__link:hover::after,
.nav__item:hover > .nav__link::after { transform: scaleX(1); transform-origin: left; }

.nav__caret {
  width: 9px;
  height: 9px;
  flex: none;
  transition: transform 0.4s var(--ease);
}
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 286px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 26px 50px rgba(13, 13, 13, 0.14);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-80);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    padding-left 0.3s var(--ease);
}
.dropdown a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.dropdown a:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
  padding-left: 18px;
}
.dropdown a:hover::before { opacity: 1; }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn { padding: 14px 26px; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle i {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open i:nth-child(2) { opacity: 0; }
.nav__toggle.is-open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- mobile menu ------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--cream);
  padding: 110px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.m-item { border-bottom: 1px solid var(--line-cream); }
.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  padding-block: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    color 0.3s var(--ease);
}
.mobile-menu.is-open .m-link { opacity: 1; transform: none; }
.m-link:hover { color: var(--brass); }
.m-link svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.m-item.is-open .m-link svg { transform: rotate(180deg); }
.m-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.m-sub a {
  display: block;
  padding: 9px 0 9px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(245, 241, 230, 0.7);
  border-left: 2px solid var(--line-cream);
  margin-left: 2px;
}
.m-sub a:hover { color: var(--brass); border-left-color: var(--brass); }
.m-sub > :last-child { margin-bottom: 18px; }
.mobile-menu__foot { margin-top: 28px; display: grid; gap: 14px; font-size: 14px; }
.mobile-menu__foot .btn { width: 100%; }

/* --------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.8) 44%, rgba(13, 13, 13, 0.5) 100%);
}
.hero__slide--1 { background: radial-gradient(120% 120% at 18% 20%, #1f5f57 0%, #0d0d0d 62%); }
.hero__slide--2 { background: radial-gradient(120% 120% at 82% 28%, #6b4a24 0%, #0d0d0d 64%); }
.hero__slide--3 { background: radial-gradient(120% 120% at 50% 95%, #133c37 0%, #0d0d0d 60%); }

.hero__mark {
  position: absolute;
  right: -4vw;
  bottom: -8vw;
  width: min(58vw, 780px);
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
  animation: floaty 14s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(90px, 13vw, 160px);
  max-width: 1000px;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: italic;
  color: var(--brass);
}
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  margin: 24px 0 0;
  color: rgba(245, 241, 230, 0.9);
}
.hero__text {
  max-width: 56ch;
  margin: 22px 0 36px;
  color: rgba(245, 241, 230, 0.78);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line-cream);
}
.hero__meta div { min-width: 150px; }
.hero__meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 7px;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
}

.hero__dots {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dots button {
  width: 34px;
  height: 3px;
  background: rgba(245, 241, 230, 0.28);
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.hero__dots button.is-active { background: var(--brass); width: 58px; }

/* ------------------------------------------------------------ marquee --- */
.marquee {
  background: var(--teal);
  color: var(--cream);
  overflow: hidden;
  padding-block: 18px;
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide-x 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}
@keyframes slide-x {
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------- about --- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
}
.split__media { grid-column: span 6; }
.split__body { grid-column: span 6; }
.split--reverse .split__media { order: 2; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }

.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal-soft), var(--cream));
  aspect-ratio: 4 / 3.2;
  display: grid;
  place-items: center;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px solid rgba(31, 95, 87, 0.2);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.frame img { width: 52%; opacity: 0.45; }
.frame--ink { background: var(--ink); }
.frame--ink::after { border-color: var(--line-cream); }

.frame__badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  background: var(--teal);
  color: var(--cream);
  padding: 22px 28px;
  border-top-left-radius: var(--radius);
  text-align: left;
  max-width: 62%;
}
.frame__badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}
.frame__badge span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.checklist { display: grid; gap: 14px; margin: 26px 0 32px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-80);
}
.checklist svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--teal); }
.section--ink .checklist li { color: rgba(245, 241, 230, 0.82); }
.section--ink .checklist svg { color: var(--brass); }

/* -------------------------------------------------------------- stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-cream);
  border-block: 1px solid var(--line-cream);
}
.stats__cell {
  background: var(--ink);
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 32px);
  transition: background 0.5s var(--ease);
}
.stats__cell:hover { background: var(--teal-deep); }
.stats__num {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--brass);
}
.stats__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.7);
  margin: 0;
}

/* ----------------------------------------------------------- services --- */
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.head-row__text { max-width: 760px; }

.grid { display: grid; gap: clamp(18px, 1.6vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 2.6vw, 42px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s var(--ease), border-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease), color 0.55s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, var(--teal-deep), var(--ink));
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  color: var(--cream);
  border-color: var(--teal-deep);
  box-shadow: 0 26px 50px rgba(19, 60, 55, 0.26);
}
.card:hover::before { transform: translateY(0); }
.card:hover::after { transform: scaleX(1); }
.card:hover .card__text { color: rgba(245, 241, 230, 0.8); }
.card:hover .card__num { color: var(--brass); }
.card:hover .card__icon {
  border-color: var(--brass);
  background: rgba(192, 138, 74, 0.16);
  color: var(--brass);
  transform: rotate(-8deg) scale(1.06);
}
.card:hover .card__link { color: var(--brass); }

.card__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--brass);
  transition: color 0.55s var(--ease);
}
.card__icon {
  width: 62px;
  height: 62px;
  border: 1.5px solid rgba(31, 95, 87, 0.28);
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 0 24px;
  transition: border-color 0.55s var(--ease), color 0.55s var(--ease),
    background 0.55s var(--ease), transform 0.55s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card__text { color: var(--ink-60); font-size: 16.5px; transition: color 0.55s var(--ease); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  transition: color 0.55s var(--ease), gap 0.4s var(--ease);
}
.card:hover .card__link { gap: 16px; }
.card__link svg { width: 14px; height: 14px; }

.card--flat:hover { transform: translateY(-4px); }

/* ------------------------------------------------------------- pillar --- */
.pillar {
  border: 1px solid var(--line-cream);
  border-radius: var(--radius);
  padding: clamp(28px, 2.6vw, 40px);
  transition: background 0.5s var(--ease), transform 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.pillar:hover {
  background: rgba(31, 95, 87, 0.18);
  border-color: var(--teal);
  transform: translateY(-6px);
}
.pillar__ix {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 20px;
}
.pillar p { color: rgba(245, 241, 230, 0.78); font-size: 16.5px; }

/* the same pillar on a light section — cream text would be invisible */
.section--cream .pillar,
.section--paper .pillar,
.section--tint .pillar { border-color: var(--line); }
.section--cream .pillar:hover,
.section--paper .pillar:hover,
.section--tint .pillar:hover { background: var(--teal-soft); border-color: var(--teal); }
.section--cream .pillar p,
.section--paper .pillar p,
.section--tint .pillar p { color: var(--ink-60); }

/* --------------------------------------------------------- doctor bio --- */
.doc {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}
.doc__media { grid-column: span 5; position: sticky; top: 120px; }
.doc__body { grid-column: span 7; }

.doc__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal-soft), var(--cream));
  aspect-ratio: 1 / 1.1;
}
/* fallback monogram sits underneath; the real photo covers it once loaded.
   If the photo file is missing, main.js removes it and the monogram shows. */
.doc__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.doc__fallback img { width: 46%; opacity: 0.4; }
.doc__real {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doc__plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px 22px;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.92), transparent);
  color: var(--cream);
}
.doc__plate strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}
.doc__plate span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid rgba(31, 95, 87, 0.24);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.chip:hover { background: var(--brass-soft); transform: translateY(-3px); }
.chip svg { width: 14px; height: 14px; }

.bio p { color: var(--ink-80); }
.bio__more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--ease);
}
.bio__more p { margin-top: 18px; }
.bio__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bio__toggle:hover { color: var(--brass); border-color: var(--brass); }
.bio__toggle svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.bio.is-open .bio__toggle svg { transform: rotate(180deg); }

/* --------------------------------------------------------------- team --- */
.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
    border-color 0.55s var(--ease);
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--teal);
  box-shadow: 0 26px 50px rgba(19, 60, 55, 0.2);
}
.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1.12;
  background: linear-gradient(150deg, var(--teal-soft), var(--cream));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.team-card__photo > img {
  width: 46%;
  opacity: 0.42;
  transition: transform 0.8s var(--ease);
}
.team-card__photo > .doc__real { opacity: 1; }
.team-card:hover .team-card__photo > img { transform: scale(1.07); }
.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.22), transparent 48%);
}
.team-card__body { padding: clamp(22px, 2vw, 30px); }
.team-card__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 4px;
}
.team-card__role {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.team-card__meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}

/* ------------------------------------------------------------ gallery --- */
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  user-select: none;
  border: 1px solid var(--line);
}
.ba__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: 0.14em;
}
.ba__before { background: var(--cream-deep); color: rgba(13, 13, 13, 0.34); }
.ba__after {
  background: linear-gradient(150deg, var(--teal-deep), var(--ink));
  color: var(--brass);
  clip-path: inset(0 0 0 50%);
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--brass);
  transform: translateX(-1.5px);
  pointer-events: none;
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brass);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(13, 13, 13, 0.34);
}
.ba__tag {
  position: absolute;
  top: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  z-index: 3;
}
.ba__tag--b { left: 16px; background: rgba(13, 13, 13, 0.1); color: var(--ink-80); }
.ba__tag--a { right: 16px; background: rgba(192, 138, 74, 0.2); color: var(--brass); }
.ba__cap {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* -------------------------------------------------------- ins/finance --- */
.logo-chip {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-80);
  padding: 16px;
  text-align: center;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.logo-chip:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
  transform: translateY(-5px);
}

.note {
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-80);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--brass-soft);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--brass); }

.finance-card {
  background: linear-gradient(140deg, var(--teal-deep), var(--ink) 70%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(32px, 3.4vw, 56px);
  position: relative;
  overflow: hidden;
}
.finance-card__mark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 280px;
  opacity: 0.08;
}
.finance-card p { color: rgba(245, 241, 230, 0.82); }

/* ------------------------------------------------------- testimonials --- */
.quotes { position: relative; }
.quotes__viewport { overflow: hidden; }
.quotes__track { display: flex; transition: transform 0.75s var(--ease); }
.quotes__slide { flex: 0 0 100%; padding-inline: clamp(0px, 3vw, 60px); }
.quote-text {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.38;
  margin: 0 0 26px;
}
.quote-stars { letter-spacing: 0.3em; font-size: 16px; margin-bottom: 22px; color: var(--brass); }
.quote-by {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.quotes__nav { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.quotes__nav button {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--line-cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.quotes__nav button:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.quotes__nav svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- faq --- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); transition: background 0.4s var(--ease); }
.faq__item.is-open { background: linear-gradient(90deg, var(--teal-soft), transparent); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: clamp(20px, 2vw, 28px) 16px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 600;
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--teal); }
.faq__item.is-open .faq__q { color: var(--teal-deep); }
.faq__sign { position: relative; width: 20px; height: 20px; flex: none; color: var(--brass); }
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item.is-open .faq__sign::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.6s var(--ease); }
.faq__a p { padding: 0 16px 28px; max-width: 76ch; color: var(--ink-80); }

/* ------------------------------------------------------------ contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 3.5vw, 64px);
  align-items: start;
}
.info-list { display: grid; gap: 2px; }
.info-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-cream);
}
.info-item__ico {
  width: 48px;
  height: 48px;
  flex: none;
  border: 1.5px solid rgba(192, 138, 74, 0.4);
  background: rgba(192, 138, 74, 0.12);
  color: var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.info-item:hover .info-item__ico { background: var(--brass); color: var(--ink); transform: scale(1.08); }
.info-item__ico svg { width: 19px; height: 19px; }
.info-item h4 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.info-item p { margin: 0; font-size: 17px; font-weight: 500; color: var(--cream); }
.info-item a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hours-card {
  background: rgba(31, 95, 87, 0.18);
  border: 1px solid var(--line-cream);
  border-radius: var(--radius);
  padding: clamp(28px, 2.8vw, 44px);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(245, 241, 230, 0.18);
  font-size: 15.5px;
  font-weight: 500;
}
.hours-row:last-of-type { border-bottom: 0; }
.hours-row span:first-child { color: rgba(245, 241, 230, 0.72); }
.hours-row span:last-child { color: var(--cream); }
.hours-row--off span:last-child { color: var(--brass); }

/* ---------------------------------------------------------------- map --- */
.map {
  position: relative;
  width: 100%;
  height: clamp(300px, 38vw, 440px);
  border-top: 1px solid var(--line-cream);
  border-bottom: 1px solid var(--line-cream);
  overflow: hidden;
  /* branded fallback shown if the Maps tiles are blocked or slow to load */
  background:
    url("../img/mark-cream.svg") center / 180px no-repeat,
    linear-gradient(140deg, var(--teal-deep), var(--ink) 70%);
}
.map iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.6s var(--ease);
}
.map:hover iframe { filter: grayscale(0) contrast(1) brightness(1); }
.map__card {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 4.5vw, 64px);
  max-width: 330px;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-cream);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  color: var(--cream);
  pointer-events: none;
}
.map__card h4 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}
.map__card p { margin: 0 0 14px; font-size: 14.5px; color: rgba(245, 241, 230, 0.78); }
.map__card a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 3px;
}
.map__card svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------- footer --- */
.footer { background: var(--ink); color: rgba(245, 241, 230, 0.7); }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 3vw, 60px);
  padding-block: clamp(50px, 6vw, 80px);
}
.footer__logo { width: 230px; margin-bottom: 24px; }
.footer h5 {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer li { margin-bottom: 12px; font-size: 16px; font-weight: 400; }
.footer a { transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--brass); }
.footer__bottom {
  border-top: 1px solid var(--line-cream);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
}

.fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: none; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  box-shadow: 0 14px 30px rgba(19, 60, 55, 0.34);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    visibility 0.4s, background 0.3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brass); color: var(--ink); }
.to-top svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------- reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal="flip"] { transform: perspective(900px) rotateX(12deg) translateY(28px); }

.line-in { display: block; overflow: hidden; }
.line-in > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.is-in .line-in > span,
.line-in.is-in > span { transform: none; }

/* parallax drift applied by JS */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .line-in > span { transform: none; }
  .mark-word::after { transform: scaleX(1); }
}

/* -------------------------------------------------------- responsive --- */
@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  /* below this the desktop nav can no longer sit on one line without
     squashing the logo, so switch to the burger menu */
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
}

@media (max-width: 1024px) {
  .split__media, .split__body, .col-5, .col-7 { grid-column: span 12; }
  .split--reverse .split__media { order: 0; }
  .doc__media, .doc__body { grid-column: span 12; }
  .doc__media { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .map__card { max-width: 280px; }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .head-row { flex-direction: column; align-items: flex-start; }
  .topbar__item--hide { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .hero__meta { gap: 22px; }
  .footer__top { grid-template-columns: 1fr; }
  .fab { display: block; }
  .to-top { display: none; }
  .fab .btn { box-shadow: 0 14px 30px rgba(19, 60, 55, 0.38); }
  .quotes__slide { padding-inline: 0; }
  .map__card { position: static; max-width: none; border-radius: 0; border-inline: 0; }
  .map { height: auto; }
  .map iframe { height: 320px; }
}

@media (max-width: 560px) {
  .topbar__list { gap: 16px; font-size: 11px; }
  .nav { min-height: 70px; }
  .btn { padding: 15px 26px; font-size: 11.5px; }
  .stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

/* --------------------------------------------------------- current nav --- */
.nav__item.is-current > .nav__link { color: var(--teal); }
.nav__item.is-current > .nav__link::after { transform: scaleX(1); }

/* ---------------------------------------------------------- page hero --- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-deep), var(--ink) 62%);
  color: var(--cream);
  padding: clamp(96px, 11vw, 168px) 0 clamp(60px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -30%;
  width: min(620px, 58vw);
  aspect-ratio: 1;
  background: url("../img/mark-cream.svg") center / contain no-repeat;
  opacity: 0.06;
  z-index: -1;
}
.page-hero__inner { max-width: 900px; }
.page-hero .h1 { font-size: clamp(38px, 5.2vw, 74px); }
.page-hero .lede {
  color: rgba(245, 241, 230, 0.78);
  max-width: 62ch;
  margin-top: 22px;
}
.page-hero .eyebrow { color: var(--brass); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.55);
}
.crumbs a { color: rgba(245, 241, 230, 0.75); transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--brass); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.5; }
.crumbs [aria-current] { color: var(--brass); }

/* ------------------------------------------------------------- figure --- */
.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  display: block;
}
.figure img { display: block; width: 100%; height: auto; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--tall img { height: 100%; object-fit: cover; }
.figure__cap {
  padding: 16px 22px;
  background: var(--ink);
  color: rgba(245, 241, 230, 0.62);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--line-cream);
}
.section--ink .figure,
.section--ink .figure__cap { border-color: var(--line-cream); }

/* -------------------------------------------------------------- steps --- */
.steps { counter-reset: step; display: grid; gap: 2px; }
.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(18px, 2vw, 34px);
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.steps__item:first-child { border-top: 1px solid var(--line); }
.section--ink .steps__item { border-color: var(--line-cream); }
.steps__ix {
  counter-increment: step;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
}
.steps__ix::before { content: counter(step, decimal-leading-zero); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-60); max-width: 70ch; }
.section--ink .steps p { color: rgba(245, 241, 230, 0.74); }

/* ------------------------------------------------------------- aside --- */
.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.aside { position: sticky; top: 118px; display: grid; gap: 20px; }

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.2vw, 32px);
  background: var(--white);
}
.aside-card h4 {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.aside-card--ink {
  background: linear-gradient(140deg, var(--teal-deep), var(--ink) 72%);
  border-color: transparent;
  color: var(--cream);
}
.aside-card--ink h4 { color: var(--brass); }
.aside-card--ink p { color: rgba(245, 241, 230, 0.8); font-size: 16px; }

.side-nav { display: grid; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-80);
  transition: color 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.side-nav a:last-child { border-bottom: 0; }
.side-nav a svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.35s var(--ease); }
.side-nav a:hover { color: var(--teal); padding-left: 8px; }
.side-nav a:hover svg { opacity: 1; }
.side-nav a[aria-current] { color: var(--teal); font-weight: 700; }
.side-nav a[aria-current] svg { opacity: 1; }

/* ----------------------------------------------------------- cta band --- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-deep), var(--ink) 72%);
  color: var(--cream);
  padding: clamp(56px, 6.5vw, 96px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 420px;
  aspect-ratio: 1;
  background: url("../img/mark-cream.svg") center / contain no-repeat;
  opacity: 0.07;
  z-index: -1;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 64px);
  flex-wrap: wrap;
}
.cta-band .h2 { margin: 0; max-width: 18ch; }
.cta-band p { color: rgba(245, 241, 230, 0.76); margin: 14px 0 0; max-width: 48ch; }

/* -------------------------------------------------------------- table --- */
.table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.table th,
.table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.table td:first-child { font-weight: 600; }
.table tbody tr { transition: background 0.35s var(--ease); }
.table tbody tr:hover { background: var(--teal-soft); }

/* the same table on a dark section — teal headings, ink rules and the light
   hover fill all disappear against the ink background */
.section--ink .table th { color: var(--brass); }
.section--ink .table th,
.section--ink .table td { border-bottom-color: var(--line-cream); }
.section--ink .table tbody tr:hover { background: rgba(245, 241, 230, 0.06); }

/* ------------------------------------------------------ gallery cases --- */
.case { display: grid; gap: 0; }
.case .ba { aspect-ratio: 1 / 1; cursor: ew-resize; }
.ba__layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__before--img,
.ba__after--img { background: var(--ink); }
.case .ba__tag--b { background: rgba(245, 241, 230, 0.22); color: var(--cream); }
.case__body { padding: 20px 2px 0; }
.case__body h3 { margin-bottom: 6px; }
.case__body p { margin: 0; color: var(--ink-60); font-size: 16px; }
.section--ink .case__body p { color: rgba(245, 241, 230, 0.72); }

/* ------------------------------------------------------- review cards --- */
.review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.4vw, 38px);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.review:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 24px 46px rgba(19, 60, 55, 0.16);
}
.review p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-80);
}
.review__by {
  margin-top: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --------------------------------------------------------------- form --- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line-cream);
  border-radius: var(--radius-sm);
  background: rgba(245, 241, 230, 0.06);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 241, 230, 0.38); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(245, 241, 230, 0.1);
}
.field select option { background: var(--ink); color: var(--cream); }
.form__note { font-size: 13px; color: rgba(245, 241, 230, 0.55); margin: 0; }

/* the same form on a light section */
.section--paper .field > span,
.section--cream .field > span,
.section--tint .field > span { color: var(--teal-deep); }
.section--paper .field input,
.section--paper .field select,
.section--paper .field textarea,
.section--cream .field input,
.section--cream .field select,
.section--cream .field textarea,
.section--tint .field input,
.section--tint .field select,
.section--tint .field textarea {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.section--paper .field input::placeholder,
.section--paper .field textarea::placeholder,
.section--cream .field input::placeholder,
.section--cream .field textarea::placeholder,
.section--tint .field input::placeholder,
.section--tint .field textarea::placeholder { color: var(--ink-40, rgba(13, 13, 13, 0.36)); }
.section--paper .field input:focus,
.section--paper .field select:focus,
.section--paper .field textarea:focus,
.section--cream .field input:focus,
.section--cream .field select:focus,
.section--cream .field textarea:focus,
.section--tint .field input:focus,
.section--tint .field select:focus,
.section--tint .field textarea:focus { border-color: var(--teal); background: var(--white); }
.section--paper .field select option,
.section--cream .field select option,
.section--tint .field select option { background: var(--white); color: var(--ink); }
.section--paper .form__note,
.section--cream .form__note,
.section--tint .form__note { color: var(--ink-60); }

/* ------------------------------------------------------------ tidbits --- */
.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin: clamp(30px, 3vw, 44px) 0;
}
.fact {
  background: var(--paper);
  padding: clamp(22px, 2.2vw, 32px);
}
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 8px;
}
.fact span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.prose > * + * { margin-top: 18px; }
.prose h3 { margin-top: 38px; }
.prose ul { display: grid; gap: 10px; padding-left: 20px; list-style: disc; }
.prose li { color: var(--ink-80); }
.section--ink .prose li,
.section--ink .prose p { color: rgba(245, 241, 230, 0.8); }

/* --------------------------------------------------- inner responsive --- */
@media (max-width: 1100px) {
  .with-aside { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .aside { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr; }
  .steps__item { grid-template-columns: 54px 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
