:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: #333333;
  --panel: #111111;
  --max: 1180px;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1rem;
  background: var(--bg);
  color: var(--fg);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: .05rem;
  text-decoration: none;
  line-height: 1;
}

.brand-main {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-sub {
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: .7rem;
  border: 1px solid var(--fg);
  background: transparent;
  display: grid;
  align-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--fg);
}

.main-nav {
  position: absolute;
  inset: 68px 0 auto 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: .5rem 1rem 1rem;
}

body.menu-open .main-nav { display: flex; }

.main-nav a {
  padding: 1rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.main-nav a:last-child { border-bottom: 0; }

.view { min-height: calc(100svh - 68px); }

.view[hidden] { display: none; }

/* HOME */
.view-home {
  display: flex;
  align-items: stretch;
}

.home-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 68px);
}

.home-graphic-wrap {
  min-height: 26svh;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.home-graphic {
  display: block;
  width: min(100%, 900px);
  height: auto;
  max-height: 30svh;
  object-fit: contain;
}

.home-location {
  padding: .75rem 0 1rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  flex: 1;
}

.home-button {
  min-height: 92px;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: .75rem;
  text-decoration: none;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.home-button:hover,
.home-button:focus-visible {
  background: var(--bg);
  color: var(--fg);
  transform: translateY(-2px);
}

.home-button-large {
  grid-column: 1 / -1;
  min-height: 125px;
}

.button-index {
  align-self: start;
  font-family: var(--mono);
  font-size: .68rem;
  opacity: .65;
}

.button-label {
  font-size: clamp(1.35rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .95;
}

.button-arrow {
  font-size: 1.2rem;
}

/* PAGES */
.page-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.page-heading {
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.eyebrow,
.panel-number,
.fact strong {
  font-family: var(--mono);
}

.eyebrow {
  display: block;
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.page-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.page-heading p {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

/* GALLERY */
.gallery-controls {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.filter-button {
  padding: .55rem .8rem;
  border: 1px solid var(--fg);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  background: var(--bg);
  color: var(--fg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: .65rem;
  font-family: var(--mono);
  font-size: .62rem;
  text-transform: uppercase;
  color: var(--muted);
}

/* BIO */
.bio-layout {
  display: grid;
  gap: 2.5rem;
}

.bio-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.fact {
  padding: 1rem;
  min-height: 105px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fact strong {
  font-size: 1.1rem;
  font-weight: 400;
}

.fact span {
  color: var(--muted);
  font-size: .78rem;
}

.bio-copy {
  max-width: 760px;
}

.bio-copy p {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.bio-copy p:first-child {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.45;
  font-weight: 600;
}

/* AWARENESS */
.awareness-copy {
  display: grid;
  gap: 0;
}

.awareness-copy article {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  max-width: 800px;
}

.awareness-copy article:first-child { padding-top: 0; }

.awareness-copy h3 {
  margin: 0 0 .8rem;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.awareness-copy p {
  margin: 0 0 .9rem;
  max-width: 720px;
}

.awareness-copy p:last-child { margin-bottom: 0; }

/* APPOINTMENT */
.appointment-grid {
  display: grid;
  gap: .65rem;
}

.info-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.info-panel h3 {
  margin: 2rem 0 .5rem;
  font-size: 1.5rem;
}

.info-panel p { margin: 0; color: var(--fg); }

.cta-row {
  display: grid;
  gap: .65rem;
  margin-top: 1.25rem;
}

.primary-cta,
.secondary-cta {
  display: block;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--fg);
  font-weight: 700;
}

.primary-cta {
  background: var(--fg);
  color: var(--bg);
}

.secondary-cta {
  background: transparent;
}

.qr-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .8rem;
}

/* CONTACT */
.contact-list {
  border-top: 1px solid var(--fg);
}

.contact-list > * {
  display: grid;
  grid-template-columns: .7fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-list span {
  font-family: var(--mono);
  font-size: .65rem;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list strong {
  font-size: clamp(1rem, 3vw, 1.4rem);
}

/* FOOTER */
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  color: white;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  margin: 0;
  max-height: 90svh;
  display: grid;
  justify-items: center;
  gap: .75rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 82svh;
  object-fit: contain;
}

.lightbox figcaption {
  font-family: var(--mono);
  font-size: .65rem;
  text-align: center;
}

.lightbox button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: white;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

@media (min-width: 720px) {
  .nav-shell {
    min-height: 76px;
  }

  .menu-toggle { display: none; }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .main-nav a {
    padding: .3rem 0;
    border: 0;
    font-size: .62rem;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .3rem;
  }

  .view,
  .home-inner {
    min-height: calc(100svh - 76px);
  }

  .home-inner {
    padding-top: 2.5rem;
  }

  .home-graphic-wrap {
    min-height: 30svh;
  }

  .home-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-button-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 260px;
  }

  .home-button {
    min-height: 125px;
  }

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

  .bio-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }

  .bio-facts {
    grid-template-columns: 1fr;
  }

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

  .cta-row {
    grid-template-columns: auto auto;
    justify-content: start;
  }
}

@media (min-width: 1040px) {
  .home-inner {
    padding-top: 3rem;
  }

  .home-graphic-wrap {
    min-height: 36svh;
  }

  .home-grid {
    gap: .8rem;
  }

  .home-button-large {
    min-height: 290px;
  }

  .home-button {
    min-height: 135px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-button { transition: none; }
}


.gallery-controls .filter-button:not(.is-active) {
  color: #8f8f8f;
  border-color: #555555;
  background: transparent;
}

.gallery-controls .filter-button:not(.is-active):hover,
.gallery-controls .filter-button:not(.is-active):focus-visible {
  color: #ffffff;
  border-color: #ffffff;
  background: #000000;
}


.appointment-copy {
  max-width: 820px;
}

.appointment-copy > p {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.appointment-section {
  padding: 1.5rem 0;
}

.appointment-section h3 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.appointment-section h4 {
  margin: 1.8rem 0 .55rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
}

.appointment-section p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.appointment-section ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.appointment-section li {
  margin-bottom: .65rem;
  line-height: 1.6;
}

.appointment-divider {
  margin: .5rem 0;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
