/* Capstone Dental — visual system sampled from the live site:
   charcoal #131718, pale field #dedede / #e8e8ea, JetBrains Mono labels,
   thin geometric headlines (Outfit standing in for commercial Bicyclette). */

:root {
  --ink: #131718;
  --paper: #e6e6e8;
  --line: rgba(255, 255, 255, 0.55);
  --white: #fff;
  --muted: #d7d7da;
  --focus: #f4f1ea;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(12.5% - 1px),
    var(--line) calc(12.5% - 1px),
    var(--line) 12.5%
  );
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100%;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.stage {
  position: relative;
  margin: 0.9rem;
  min-height: 78vh;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #1b2022;
}
.stage.is-home { min-height: 92vh; }
.stage-media,
.stage-media video,
.stage-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage.is-doctor .stage-media img {
  object-position: center 22%;
}

.stage-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 23, 24, 0.28) 0%, rgba(19, 23, 24, 0.72) 100%);
}
.stage-ui {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: 1.4rem 1.5rem 5.5rem;
  min-height: 78vh;
}
.stage.is-home .stage-ui { min-height: 92vh; }
.logo {
  justify-self: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.logo img { width: 148px; height: auto; margin: 0 auto; }
.corner {
  justify-self: start;
  align-self: center;
  margin-top: 1.6rem;
  background: none;
  border: 0;
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.45rem;
  cursor: pointer;
  padding: 0.4rem 0;
}
.corner.right { justify-self: end; }
.stage-copy {
  grid-column: 1 / -1;
  align-self: end;
  text-align: center;
  padding: 0 4vw 1.5rem;
}
.eyebrow, .stage-copy h1.page-title {
  margin: 0 0 0.8rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 5.15rem);
  line-height: 0.95;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.stage-copy h1.page-title.as-display {
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
}

.pop {
  position: absolute;
  top: 4.6rem;
  z-index: 5;
  background: rgba(19, 23, 24, 0.94);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  min-width: min(320px, 86vw);
  padding: 0.45rem;
  display: none;
}
.pop.open { display: grid; }
.pop.left { left: 1rem; }
.pop.right { right: 1rem; }
.pop a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}
.pop a:hover { background: rgba(255,255,255,0.08); }
.pop strong { display: block; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
.pop span, .pop small { display: block; color: #d5d5d5; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.02em; }

.menu-pill {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #1a1e20;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.menu-pill .bars {
  width: 0.95rem;
  display: grid;
  gap: 0.18rem;
}
.menu-pill .bars i {
  display: block;
  height: 1px;
  background: #fff;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(19, 23, 24, 0.94);
  color: #fff;
  display: none;
  padding: 5rem 8vw 6rem;
  overflow: auto;
}
.nav-overlay.open { display: block; }
.nav-overlay nav {
  display: grid;
  gap: 1.4rem 2rem;
  max-width: 920px;
  margin: 0 auto;
}
.nav-overlay nav > div {
  display: grid;
  gap: 0.55rem;
}
.nav-overlay a {
  display: block;
  font-weight: 300;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 0.15rem 0;
}
.nav-overlay a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }
.nav-overlay .sub {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid;
  gap: 0.45rem;
}
.nav-overlay .sub a { font-size: clamp(1.15rem, 2vw, 1.6rem); }
.nav-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
}

.watch {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin: 2.5rem 1.15rem 1rem;
  grid-template-columns: auto 1fr;
}
.watch-open {
  width: 210px;
  height: 210px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  color: var(--ink);
}
.watch-open svg { width: 100%; height: 100%; }
.watch-open text {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 3px;
  fill: currentColor;
}
.play-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.watch-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  min-height: 220px;
}
.watch-frame video {
  width: 100%;
  height: min(52vw, 460px);
  object-fit: cover;
  background: #111;
}

.band {
  display: grid;
  margin: 0 1.15rem;
  min-height: 380px;
  background: var(--ink);
  color: #fff;
}
.band + .band { margin-top: 0; }
.band-copy {
  padding: clamp(1.6rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
}
.band h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
}
.band p { margin: 0; max-width: 36rem; color: #e6e6e6; }
.band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: flex-start;
  margin-top: 0.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}
.pill .circ {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.pill.solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.pill.ghost { color: #fff; }

.quote-block, .panel {
  margin: 1.2rem 1.15rem;
  background: var(--ink);
  color: #f3f3f3;
  border-radius: 0;
  padding: clamp(1.6rem, 4vw, 3.2rem);
}
.quote-block h2, .panel h2 {
  margin: 0 0 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.quote-block p { font-size: 1.15rem; max-width: 48rem; }
.quote-block footer { color: #c8c8c8; font-family: "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

.page-body { margin: 0 1.15rem 3rem; padding-top: 0.5rem; }
.page-body .wrap, .wrap { width: min(980px, 100%); margin-inline: auto; }
.page-body h2, .prose h2, .prose h3 {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.8rem; }
.prose h3 { font-size: 1.15rem; letter-spacing: 0.06em; }
.prose { max-width: 46rem; }
.crumbs { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs a { text-underline-offset: 0.2em; }
.note {
  background: #fff;
  border: 1px solid #cfcfd2;
  padding: 0.85rem 1rem;
}
blockquote.voice {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--ink);
}

.cards { display: grid; gap: 0.9rem; }
.card {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(19,23,24,0.12);
  padding: 1.1rem 1.15rem 1.25rem;
}
.office-name, .card h2, .card h3 {
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hours { list-style: none; padding: 0; margin: 0.6rem 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(19,23,24,0.12);
  padding: 0.28rem 0;
  font-size: 0.95rem;
}
.actions, .card .actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.lede { font-size: 1.12rem; max-width: 40rem; }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0.7rem; }
.steps li {
  background: rgba(255,255,255,0.62);
  padding: 0.85rem 1rem 0.85rem 3.4rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 0.85rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}
.article-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.article-list a {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(19,23,24,0.1);
  padding: 0.95rem 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.article-list span {
  display: block;
  margin-top: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #333;
}
.team-grid, .cards.three, .cards.two { display: grid; gap: 0.9rem; }
.fine { color: #333; font-size: 0.95rem; }
form.contact { display: grid; gap: 0.55rem; max-width: 34rem; }
label { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #bdbdc2;
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
textarea { min-height: 8rem; }
.map-link { font-weight: 500; }

.site-foot {
  margin: 0.4rem 0.9rem 5.5rem;
  padding: 1.6rem 0.4rem 1rem;
  color: var(--ink);
}
.brand-once {
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}
.foot-grid {
  display: grid;
  gap: 1.1rem;
}
.site-foot h2 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-foot p { margin: 0.15rem 0; }
.site-foot a { text-underline-offset: 0.15em; }
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(19,23,24,0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; font-family: "JetBrains Mono", monospace; }

@media (min-width: 800px) {
  .watch { grid-template-columns: 240px 1fr; }
  .band { grid-template-columns: 1.05fr 0.95fr; }
  .band.flip { grid-template-columns: 0.95fr 1.05fr; }
  .band.flip .band-copy { order: 2; }
  .cards.three, .team-grid, .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .nav-overlay nav { grid-template-columns: 1.3fr 0.8fr; }
  .nav-overlay .sub { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (max-width: 700px) {
  .stage { margin: 0.45rem; border-radius: 14px; min-height: 100svh; }
  .stage.is-home { min-height: 100svh; }
  .stage-ui, .stage.is-home .stage-ui { min-height: 100svh; padding: 1rem 0.8rem 5rem; }
  .stage.is-office { height: auto; min-height: 100svh; }
  .office-facts .hours-line { white-space: normal; }
  .logo img { width: 112px; }
  .corner {
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-top: 0.6rem;
    min-height: 44px;
    padding: 0.7rem 0.15rem;
    display: inline-flex;
    align-items: center;
  }
  .pill, .btn, button.btn { min-height: 44px; }
  .watch { grid-template-columns: 1fr; justify-items: center; }
  .watch-open { width: 170px; height: 170px; }
  .pop.left, .pop.right { left: 0.5rem; right: 0.5rem; }
}
@media (max-width: 480px) {
  .stage-ui, .stage.is-home .stage-ui {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .stage-ui .logo { grid-column: 1 / -1; grid-row: 1; }
  .stage-ui .corner { grid-row: 2; grid-column: 1; justify-self: start; }
  .stage-ui .corner.right { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.faq-list { display: grid; gap: 0.9rem; max-width: 48rem; }
.faq-item {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(19,23,24,0.12);
  padding: 1.1rem 1.15rem 1.2rem;
}
.faq-item h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}
.faq-item p { margin: 0; }

.stage.is-office {
  min-height: calc(100vh - 1.8rem);
  height: calc(100vh - 1.8rem);
}
.stage.is-office .stage-ui {
  min-height: 100%;
  height: 100%;
  padding: 1.15rem 1.4rem 4.75rem;
}
.stage.is-office .stage-copy { padding-bottom: 0.15rem; }
.office-facts { max-width: 52rem; margin-inline: auto; }
.office-facts h1.page-title.as-display {
  font-size: clamp(2rem, 4vw, 3.45rem);
  margin: 0 0 0.45rem;
}
.office-facts p { margin: 0.12rem 0; }
.office-facts a { color: #fff; }
.office-facts .addr,
.office-facts .hours-line,
.office-facts .phone-line {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}
.office-facts .hours-line { white-space: nowrap; }
.office-facts .book-row { margin-top: 0.75rem; }
.office-facts .pill { margin-top: 0; }
.panel a { color: #fff; }
.svc-links { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.45rem; }
.svc-links a { font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 700px) {
  .stage.is-office { height: auto; min-height: 100svh; }
  .stage.is-office .stage-ui { height: auto; min-height: 100svh; }
  .office-facts .hours-line { white-space: normal; }
}

.team-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2rem}
.team-list img{width:100%;height:auto;display:block;margin-bottom:.5rem}

/* Homepage Locations menu: Downtown booking + phone grouped as one entry */
.pop .pop-group { display: grid; border-radius: inherit; }
.pop .pop-group > a:first-child { padding-bottom: 0.15rem; }
.pop .pop-group > a.pop-tel { padding-top: 0.15rem; color: #d5d5d5; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.02em; }

/* Locations menu: small calendar icon beside each "Book" label */
.pop strong.book-label { display: flex; align-items: center; gap: 6px; }
.pop .book-ico { width: 14px; height: 14px; flex: none; }
