@font-face {
  font-family: 'Montserrat';
  src: url('./assets/montserrat.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #1e2024;
  --near-black: #15171a;
  --slate: #2e3238;
  --light-text: #f7f8fa;
  --light-muted: #d8dce2;
  --silver: #e9edf4;
  --silver-rule: #aeb7c3;
  --dark-rule: #565d67;
  --accent: #f5a623;
  --accent-hover: #ffbe51;
  --font: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--light-text); font: 1rem/1.6 var(--font); }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.23em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.wrap { width: min(100% - 5rem, 74rem); margin-inline: auto; }
.icon { flex: none; width: 1.35rem; height: 1.35rem; }
.service-symbols { position: absolute; }
.page-loader {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--slate), var(--near-black) 62%);
  color: var(--silver);
  transition: opacity 180ms ease-out, visibility 180ms;
}

.is-loading .page-loader {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.page-loader-tools {
  display: flex;
  width: 9rem;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid var(--dark-rule);
  border-radius: 50%;
}

.page-loader-tools svg { width: 2.7rem; height: 2.7rem; }
.page-loader-scissors { transform: rotate(-12deg); }
.page-loader-comb { transform: rotate(13deg); }

@media (prefers-reduced-motion: no-preference) {
  .is-loading .page-loader-scissors { animation: swing-scissors 340ms ease-in-out infinite alternate; }
  .is-loading .page-loader-comb { animation: swing-comb 340ms ease-in-out infinite alternate; }
}

@keyframes swing-scissors {
  from { transform: rotate(-20deg); }
  to { transform: rotate(14deg); }
}

@keyframes swing-comb {
  from { transform: rotate(18deg); }
  to { transform: rotate(-13deg); }
}

.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: 0.65rem 1rem; transform: translateY(-180%); background: var(--light-text); color: var(--near-black); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--dark-rule);
  background: var(--near-black);
}

.header-inner {
  display: grid;
  min-height: 5.25rem;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img { flex: none; border-radius: 50%; filter: grayscale(1); }
.brand span { font: 650 1.12rem/1.2 var(--font); letter-spacing: -0.025em; }
.brand small { display: block; margin-top: 0.22rem; color: var(--light-muted); font: 500 0.76rem/1.2 var(--font); letter-spacing: 0.035em; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.9vw, 2.7rem); }
.nav a { padding-block: 0.7rem; color: var(--light-muted); font-size: 0.9rem; font-weight: 550; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--light-text); text-decoration: underline; }

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.primary { background: var(--accent); color: var(--near-black); }
.primary:hover { background: var(--accent-hover); }
.primary em { font-weight: 750; }
.secondary { border-color: #b6beca; color: var(--light-text); background: rgb(21 23 26 / 24%); }
.secondary:hover { border-color: var(--silver); background: #474d56; }
.header-book { justify-self: end; min-height: 2.75rem; border-color: var(--accent); color: var(--accent); }
.header-book:hover { background: var(--accent); color: var(--near-black); }

.hero {
  --hero-height: clamp(35rem, 49vw, 41rem);
  position: relative;
  display: grid;
  min-height: var(--hero-height);
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 28% 0%, #626a75, #424851 34%, var(--night) 76%);
}

.hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(58vw, 38rem, calc(var(--hero-height) * 0.98));
  overflow: hidden;
  mask-image: radial-gradient(
    ellipse 100% 205% at 100% 53%,
    #000 77%,
    rgb(0 0 0 / 96%) 83%,
    rgb(0 0 0 / 71%) 90%,
    rgb(0 0 0 / 31%) 95%,
    rgb(0 0 0 / 9%) 98%,
    transparent 100%
  );
}

.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }

.hero-inner { align-self: center; }
.hero-content { padding-block: 4.5rem 5.1rem; }
.eyebrow { display: flex; align-items: center; gap: 0.65rem; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-kicker { margin-bottom: 0.85rem; color: var(--silver); }
.hero-kicker span { width: 1.55rem; height: 1px; background: currentColor; }
.hero h1 { font: 500 clamp(3.15rem, 6.6vw, 6.1rem)/1.02 var(--font); letter-spacing: -0.055em; }
.hero h1 span { display: block; color: var(--silver); }
.hero-description { max-width: 24rem; margin-top: 1.55rem; color: var(--light-muted); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }

.services {
  padding-block: clamp(3.5rem, 7vw, 6.4rem);
  border-top: 1px solid var(--silver-rule);
  color-scheme: light;
  color: #1b222a;
  background: linear-gradient(135deg, #f3f5f8, #c5ced9 55%, #e4e9ef);
}
.services :focus-visible { outline-color: #394c65; }
.section-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.65rem 1.5rem; margin-bottom: 2rem; }
h2 { font: 500 clamp(2.35rem, 5.1vw, 4.2rem)/1.06 var(--font); letter-spacing: -0.045em; }
.section-intro p { color: var(--light-muted); }
.services .section-intro p { color: #374451; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service-group { padding: 1.25rem; border: 1px solid var(--silver-rule); border-radius: 0.32rem; background: #f7f9fc; box-shadow: 0 0.35rem 1rem rgb(33 47 62 / 9%); }
.service-heading { display: grid; min-height: 6rem; align-content: start; gap: 0.65rem; }
.service-heading .icon { width: 1.6rem; height: 1.6rem; color: #43566b; }
.service-heading h3, .visit-heading h3 { font: 650 1.25rem/1.2 var(--font); letter-spacing: -0.025em; }
.service-group ul { margin: 0; padding: 0; list-style: none; }
.service-group li { border-top: 1px solid #d0d8e2; }
.service-group a { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: 0.65rem; padding: 0.5rem 0.4rem; font-size: 0.94rem; font-weight: 550; line-height: 1.4; text-decoration: none; }
.service-group a .icon { width: 1.15rem; height: 1.15rem; color: #43566b; }
.service-group a:hover, .service-group a:focus-visible { background: #e3ebf4; }
.service-group a:hover span, .service-group a:focus-visible span { text-decoration: underline; }

.gallery { padding-block: clamp(3.5rem, 6.5vw, 6rem); border-top: 1px solid var(--dark-rule); background: var(--night); }
.gallery-link { display: inline-block; padding-block: 0.25rem; color: var(--light-muted); font-weight: 650; }
.gallery-link:hover { color: var(--light-text); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-grid figure { overflow: hidden; border: 1px solid var(--dark-rule); border-radius: 0.32rem; background: var(--slate); }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 62%; }
.gallery-grid figcaption { padding: 0.65rem 0.9rem; font-weight: 650; }

.visit { padding-block: clamp(3.5rem, 6.5vw, 6rem); border-top: 1px solid var(--dark-rule); background: var(--slate); }
.visit h2 { margin-bottom: 1.75rem; }
.visit-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1rem; }
.visit-grid section { padding: clamp(1.25rem, 3vw, 2.35rem); border: 1px solid var(--dark-rule); border-radius: 0.28rem; background: var(--night); }
.visit-heading { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.85rem; }
.visit-heading .icon { color: var(--silver); }
.visit address { margin-bottom: 1.25rem; color: var(--light-muted); font: inherit; font-size: 1.06rem; }
.text-link { display: block; width: fit-content; margin-top: 0.75rem; padding-block: 0.15rem; color: var(--light-muted); font-size: 0.94rem; }
.text-link:hover { color: var(--light-text); }
.hours table { width: 100%; border-collapse: collapse; color: var(--light-muted); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 0.46rem 0; border-bottom: 1px solid var(--dark-rule); line-height: 1.32; }
.hours th { font-weight: 500; text-align: left; }
.hours td { padding-left: 0.4rem; text-align: right; white-space: nowrap; }
.hours tr:last-child > * { border-bottom: 0; }
.closed td { color: var(--silver); }

.developer-credit {
  background: #0d1014;
  border-top: 1px solid var(--dark-rule);
  color: var(--light-text);
}

.developer-credit-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 3rem; padding-block: 2rem; }
.developer-credit-profile { display: flex; align-items: center; gap: 1.5rem; }
.developer-credit-profile img { width: 4rem; height: 4rem; flex: none; object-fit: cover; border: 2px solid var(--dark-rule); border-radius: 50%; }
.developer-credit-copy { display: grid; min-width: 0; gap: 0.32rem; font-size: 0.875rem; }
.developer-credit-byline { font-size: 0.95rem; font-weight: 700; }
.developer-credit-name, .developer-credit-links a:first-child, .developer-credit-links .icon { color: var(--silver); }
.developer-credit-tagline { margin-top: 0.24rem; color: var(--light-muted); }
.developer-credit-links { display: grid; min-width: 0; gap: 0.25rem; }
.developer-credit-links a { display: inline-flex; width: fit-content; max-width: 100%; min-height: 2.75rem; align-items: center; gap: 0.7rem; font-size: 0.875rem; text-decoration: none; overflow-wrap: anywhere; }
.developer-credit-links .icon { width: 1.1rem; height: 1.1rem; }
.developer-credit-links a:hover { color: var(--light-text); text-decoration: underline; }

@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-heading { min-height: auto; margin-bottom: 0.85rem; }
  .developer-credit-inner { grid-template-columns: minmax(0, 1fr); }
  .developer-credit-profile { gap: 1.1rem; }
  .developer-credit-profile img { width: 3.5rem; height: 3.5rem; }
  .developer-credit-links { padding-top: 0.7rem; border-top: 1px solid var(--dark-rule); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 0.45rem 0.5rem; padding-top: 0.63rem; }
  .brand { gap: 0.6rem; }
  .brand img { width: 2.75rem; height: 2.75rem; }
  .brand span { font-size: 0.96rem; }
  .brand small { margin-top: 0.27rem; }
  .header-book { padding-inline: 0.65rem; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0.4rem; border-top: 1px solid var(--dark-rule); }
  .nav a { font-size: 0.90rem; }
  .hero { min-height: 0; }
  .hero-inner { grid-row: 1; }
  .hero-content { padding-block: 1.95rem 1.55rem; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.6rem); }
  .hero-description { margin-top: 1rem; font-size: 1rem; }
  .hero-actions { gap: 0.45rem; margin-top: 1.1rem; }
  .hero-actions .button { padding-inline: 0.65rem; font-size: 0.88rem; }
  .hero-actions .icon { width: 1.18rem; height: 1.18rem; }
  .hero-image {
    position: relative;
    z-index: 0;
    inset: auto;
    grid-row: 2;
    width: 100%;
    height: clamp(20rem, 112vw, 48rem);
    mask-image: linear-gradient(
      to bottom,
      transparent,
      rgb(0 0 0 / 25%) 0.7rem,
      rgb(0 0 0 / 85%) 2rem,
      #000 3rem
    );
  }
  .section-intro { margin-bottom: 1.25rem; }
  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .service-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-heading { display: flex; align-items: center; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .gallery-grid img { aspect-ratio: 5 / 4; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 2rem); }
  .hero h1 { font-size: 2.6rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
