:root {
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.58; background: var(--page); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(2.55rem, 5.3vw, 5.25rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2rem, 3.4vw, 3.375rem); letter-spacing: -.052em; }
h3 { font-size: 1.2rem; letter-spacing: -.022em; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
section[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(100% - 7rem, 78rem); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 5; padding: .75rem 1rem; color: #111; background: #fff; translate: 0 -200%; }
.skip:focus { translate: 0; }

.header-inner, .footer-inner, .actions, nav, .brand { display: flex; align-items: center; }
.header-inner, .footer-inner { justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 5.25rem; }
.brand { text-decoration: none; gap: .65rem; font-weight: 800; letter-spacing: .07em; font-size: 1.125rem; white-space: nowrap; line-height: 1; }
.brand-suffix { font-size: .72rem; letter-spacing: 0; font-weight: 550; color: var(--muted); align-self: end; }
.brand-mark {
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  width: 32px;
  height: 30px;
  color: var(--mark);
  border: 2px solid currentColor;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  width: 15px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: skew(-22deg);
}
nav { gap: clamp(1rem, 3vw, 2.625rem); }
nav a { font-size: .95rem; font-weight: 650; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .24em; }
.nav-contact { padding: .53rem .95rem; border: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--mark); text-transform: uppercase; letter-spacing: .16em; font-weight: 750; font-size: .875rem; margin-bottom: 1.125rem; }
.hero-intro { font-size: clamp(1.08rem, 1.55vw, 1.35rem); line-height: 1.5; margin-top: 1.35rem; max-width: 32rem; color: var(--muted); }
.actions { gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.15rem;
  padding: .7rem 1.16rem;
  border: 1px solid transparent;
  background: var(--button);
  color: var(--button-ink);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 750;
}
.button:hover { background: var(--button-hover); }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: var(--soft); }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; bottom: .65rem; right: .75rem; color: white; background: #101c2c; padding: .15rem .45rem; font-size: .8rem; }
.services-list { margin: 0; padding: 0; list-style: none; }
.services-list p { color: var(--muted); margin-top: .53rem; }
.gallery { padding-block: clamp(3rem, 7vw, 6rem); }
.gallery-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.75rem; }
.gallery-heading p, .gallery figure figcaption { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.gallery-grid a { display: block; overflow: hidden; background: var(--soft); }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .2s ease; }
.gallery-grid a:hover img { transform: scale(1.045); }
.gallery-grid figcaption { margin-top: .54rem; }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: start; gap: 2rem; padding-block: clamp(3rem, 6vw, 5.4rem); }
.contact-intro p { max-width: 34rem; margin-block: 1rem 1.35rem; }
.contact-details { display: grid; justify-items: start; gap: .65rem; font-style: normal; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-details strong { font-size: 1.2rem; }
.contact-details a { text-underline-offset: .22em; }
.footer-inner { padding-block: 1.2rem; font-size: .875rem; }
.footer a { text-decoration: none; }
dialog { width: min(92vw, 72rem); max-height: 93vh; border: 1px solid #38485a; padding: .75rem; color: #fff; background: #111b27; }
dialog::backdrop { background: #0b131cdd; }
dialog form { text-align: right; margin-bottom: .6rem; }
dialog button { font: inherit; cursor: pointer; background: white; color: #122034; border: 0; padding: .28rem .7rem; }
dialog img { width: 100%; max-height: 74vh; object-fit: contain; }
dialog figcaption { margin: .55rem .3rem .15rem; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 4rem); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { flex-wrap: wrap; padding-block: .9rem; gap: .7rem 1rem; }
  nav { flex-wrap: wrap; gap: 1.05rem; }
  .nav-contact { padding: .32rem .62rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .gallery-grid img { transition: none; }
}

.about-inner {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
}
.about-copy { max-width: 42rem; color: var(--muted); }
.about-copy p + p { margin-top: .95rem; }
@media (max-width: 770px) {
  .about-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}

.hero-media figure { height: 100%; }
.carousel-controls {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  z-index: 2;
  display: flex;
  gap: .25rem;
  padding: .25rem;
  background: #101c2c;
}
.carousel-controls[hidden] { display: none; }
.carousel-controls button {
  min-height: 2.6rem;
  padding-inline: .65rem;
  border: 1px solid #57687d;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.carousel-controls button:hover { background: #2a405a; }
.carousel-controls button:focus-visible { outline-color: #fff; outline-offset: 1px; }
.hero-media:has(.carousel-controls:not([hidden])) figcaption { bottom: 4.35rem; }
.gallery-teaser { position: relative; background: #182129; }
.gallery-teaser-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.gallery-teaser-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gallery-teaser p { margin-top: .7rem; color: var(--muted); }
.gallery-pages { margin-top: 2rem; justify-content: center; text-align: center; }
.gallery-pages .button { min-height: 2.6rem; }

.hero-media figcaption { max-width: calc(100% - 1.5rem); overflow-wrap: anywhere; }
.viewer-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem; margin-bottom: .6rem; }
.viewer-toolbar form { margin: 0 0 0 auto; }
.viewer-navigation { display: flex; gap: .45rem; }
.viewer-navigation button:disabled { opacity: .55; cursor: default; }
