.border-light-subtle {
  border-color: var(--divider) !important;
}
.fixed-bottom-menu {
  position: fixed !important;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 454px;
  max-width: calc(100% - 1rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;

  /* Stronger contrast on light backgrounds */
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(16px) saturate(120%) contrast(125%);
  -webkit-backdrop-filter: blur(16px) saturate(120%) contrast(125%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  z-index: 12001 !important;
  pointer-events: auto !important;
  gap: 0.25rem;
  overflow: hidden; /* keep highlights in-bounds */
  position: fixed;
}

/* Subtle highlight and dark halo so it reads on white */
.fixed-bottom-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
      112% 20% at 10% -20% /* 112% 20% at 10% -20%, */ rgba(255, 255, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      80% 50% at 90% 120%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    );
  mix-blend-mode: screen;
}

.fixed-bottom-menu::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset; /* dark ring for white pages */
}

/* Text stays readable on any backdrop */
.fixed-bottom-menu .nav-button {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Keep the white pill indicator separated from white pages */
.fixed-bottom-menu .nav-indicator {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Fallback when backdrop-filter is not supported */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .fixed-bottom-menu {
    background: rgba(12, 12, 12, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.fixed-bottom-menu * {
  pointer-events: auto !important;
}

.fixed-bottom-menu .nav-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  position: relative;
  font-size: 1rem;
  color: rgb(255, 255, 255);
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.fixed-bottom-menu .nav-button:hover,
.fixed-bottom-menu .nav-button:focus {
  color: #ffffff;
}

.fixed-bottom-menu .nav-button.active {
  color: rgb(0, 0, 0);
}

.fixed-bottom-menu.nav-ready .nav-button.active {
  color: #000;
}

.fixed-bottom-menu .nav-indicator {
  position: absolute;
  inset: 0.45rem 0rem;
  border-radius: 50px;
  background: #ffffff;
  transform: translateX(var(--indicator-x, 0));
  width: var(--indicator-width, 0);
  max-width: 100%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  z-index: 0 !important;
  pointer-events: none !important;
}

.fixed-bottom-menu.nav-silent .nav-indicator {
  transition: none !important;
}

.fixed-bottom-menu.news-open .nav-button:not(#news-button) {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

.fixed-bottom-menu.news-open #news-button {
  opacity: 1;
}

.fixed-bottom-menu.news-open .nav-indicator {
  opacity: 0;
  pointer-events: none;
}

.overlay {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translate(-50%, 20%);
  width: 454px;
  max-width: calc(100% - 1rem);
  background-color: var(--overlay-bg-color);
  backdrop-filter: var(--overlay-blur);
  border-radius: 25px;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1001;
  /*border: 1px solid rgba(255, 255, 255, 0.12);*/
}
/* Ensure the News panel stays above the blur */
.overlay.news-panel {
  z-index: 1006;
}

/* Apply the same high-contrast glass treatment to the News overlay */
.overlay.news-panel {
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(16px) saturate(120%) contrast(125%);
  -webkit-backdrop-filter: blur(16px) saturate(120%) contrast(125%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden; /* keep highlights inside radius */
}

.overlay.news-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
      120% 60% at 10% -20%,
      rgba(255, 255, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      80% 50% at 90% 120%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    );
  mix-blend-mode: screen;
}

.overlay.news-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset; /* dark ring for white pages */
}

/* Ensure overlay text remains legible on the darker glass */
.overlay.news-panel .overlay-content {
  color: #ffffff;
}
.overlay.news-panel .overlay-content h3 {
  color: rgb(220, 220, 220);
}

.overlay.visible {
  transform: translate(-50%, 0%);
  opacity: 1;
  pointer-events: auto;
}

.overlay-content {
  padding-left: 0;
  padding-right: 0;
  color: rgb(0, 0, 0);
}

.overlay-content h3 {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.overlay-content p {
  font-size: 1rem;
  line-height: 1.15;
  margin-bottom: 1.6rem;
  color: rgb(255, 255, 255);
}

.overlay-content p:last-child {
  margin-bottom: 0;
}

.news-blur-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.news-blur-overlay.active,
.news-blur-overlay.hover-active {
  opacity: 1;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.news-blur-overlay.active {
  pointer-events: auto;
  z-index: 1005;
}

/* Hover-triggered background blur (non-blocking) */
.news-blur-overlay.hover-active {
  pointer-events: none; /* allow interaction with page while blurred */
}

:root {
  --bg-body: #000000;
  --text-base: rgb(255, 255, 255);
  --text-secondary: rgb(117, 117, 117);
  --divider: rgb(30, 30, 30);
  --overlay-bg: rgb(39, 39, 39);
  --overlay-bg-color: rgba(171, 171, 171, 0.05);
  --overlay-blur: blur(6px);
}

@media (min-width: 992px) {
  #services {
    border-top: 1px solid var(--divider);
  }
}

body {
  background-color: var(--bg-body);
  color: var(--text-base);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  min-height: 100vh;
  margin: 0;
  padding: 0rem 0.5rem 0.125rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: #ffffff;
  color: black;
}

/* Hide page scrollbars but keep scrolling */
html,
body {
  -ms-overflow-style: none; /* IE and old Edge */
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #ffffff;
}

p {
  color: rgb(117, 117, 117);
  font-size: 1rem;
  line-height: 1.15;
  margin-block: 0;
}

h1,
h4 {
  font-family: "Inter", sans-serif;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
  margin-block: 0;
}

h2 {
  font-family: "Inter", sans-serif;
  color: rgb(220, 220, 220);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
  margin-block: 0;
}

h3 {
  font-family: "Inter", sans-serif;
  color: var(--text-secondary);
  font-weight: 400;
}

body.nav-overlay-open {
  overflow: hidden;
}

.glass-nav {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(12px);
  padding-block: 0.125rem;
}

.glass-nav .container-fluid {
  padding: 0.125rem 0rem;
}

.glass-nav .navbar-brand,
.glass-nav .nav-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0rem 0.125rem;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link:focus,
.glass-nav .navbar-brand:hover,
.glass-nav .navbar-brand:focus,
.glass-nav .nav-link.active {
  color: #ffffff;
}

.glass-nav .navbar-nav,
.glass-nav .navbar-brand {
  margin: 0;
}

.nav-links-desktop {
  display: none;
}

.nav-links-desktop .nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--menu-top, 0);
  bottom: 0;
  background: rgba(0, 0, 0, 1);
  padding: 0 0.5rem 4rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease-in, visibility 0s linear 0.25s;
  z-index: 12000;
}

.mobile-menu.menu-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease-out, visibility 0s linear 0s;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: 0rem;
}

.mobile-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 0.125rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgb(220, 220, 220);
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--divider);
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: #ffffff;
}

.mobile-menu-footer {
  margin-top: auto;
  padding: 2rem 0.125rem 0;
}

.p-menu-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.35rem;
}

.p-menu-location {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 400;
  color: rgb(220, 220, 220);
  margin: 0;
}

.menu-toggle {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: #ffffff;
  outline: none;
}

.menu-toggle[aria-expanded="true"] {
  color: #ffffff;
}

.glass-nav .navbar-toggler {
  padding: 0;
  margin: 0 0 0 auto;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.glass-nav .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.hero-section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

/* Glow-only hover for the logo */
.hero-logo {
  width: 7rem;
  height: auto; /* keeps visual size consistent */
  aspect-ratio: 1 / 1; /* reserves a square slot to prevent layout shift */
  display: inline-block;
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.25s ease;
  position: relative;
  z-index: 1002;
}

.hero-logo-row {
  align-items: center;
}

.hero-logo-row .studio-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.meta-back-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  font-weight: 300;
  padding: 0rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.meta-back-link:hover,
.meta-back-link:focus-visible {
  color: #ffffff;
}

.hero-logo:hover,
.hero-logo:focus-visible {
  filter: drop-shadow(0 0 1.35rem rgba(255, 255, 255, 0.35));
  cursor: pointer;
}

body:not([data-nav="home"]) .hero-logo {
  width: 7rem !important; /* align non-gallery pages with index logo size */
}

.meta-strip {
  border-bottom: 1px solid var(--divider);
  padding-block: 0rem;
}

.clock-readout {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  font-weight: 300;
  padding: 0rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#clock-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.section-block {
  scroll-margin-top: 6rem;
}

.section-label {
  margin-bottom: 0;
}

.section-block:not(#services) {
  padding-block: 0.5rem;
}

#services {
  padding-block: 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.services-label {
  padding-top: 0;
}

.services-header-mobile {
  display: none;
}

.wide-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.studio-row {
  --bs-gutter-x: 0;
  row-gap: 1.5rem;
}

.studio-row-tight {
  --bs-gutter-x: 0;
  row-gap: 0;
}

.studio-col {
  padding-inline: 0;
}

.service-grid {
  row-gap: 1rem;
}

.service-item {
  padding-block: 2rem;
  border-bottom: 1px solid var(--divider);
}

.service-item:last-child {
  border-bottom: 0;
}

.service-item ul {
  margin: 0;
}

.service-item ul li {
  margin-bottom: 0.35rem;
}

.project-gallery .image-tile {
  position: relative;
  overflow: hidden;
  background: transparent; /* avoid black gaps */
  aspect-ratio: auto;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
}

.project-gallery .gallery-row {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Make two-up rows equal height and remove empty gaps */
.project-gallery .gallery-row > [class*="col-"] {
  display: flex; /* let the tile stretch */
}
.project-gallery .gallery-row > [class*="col-"] .image-tile {
  flex: 1 1 auto; /* fill column */
  width: 100%;
  height: 100%; /* match tallest sibling in the row */
}

.project-gallery .gallery-row:last-child {
  margin-bottom: 0;
}

.spacer-y-5rem {
  width: 100%;
  height: 5rem;
}

.project-gallery .image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-gallery .image-tile.image-tile-crop {
  width: 100%;
  height: clamp(220px, 42vw, 420px); /* responsive fixed height */
  overflow: hidden; /* hides overflow for cropping */
  position: relative; /* for absolutely-positioned img */
}

.project-gallery .image-tile.image-tile-crop img {
  position: absolute; /* remove image from normal flow */
  inset: 0; /* pin to all sides of the tile */
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill box and crop excess */
  object-position: center; /* center the crop */
  display: block;
}

.project-gallery .image-tile.image-tile--natural {
  width: 100%;
  aspect-ratio: auto;
  height: auto;
}

.project-gallery .image-tile.image-tile--natural img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  background: rgba(171, 171, 171, 0.05);
  color: rgb(255, 255, 255);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .contact-buttons {
    justify-content: flex-start;
    gap: 0.6rem;
  }
}

.contact-button:hover,
.contact-button:focus {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.16);
}

.section-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 0;
}

.index-table-wrapper {
  width: 100%;
  margin-top: 1.5rem;
}

.index-table {
  width: 100%;
  border-bottom: 1px solid var(--divider);
}

.index-row {
  display: grid;
  grid-template-columns: minmax(0, 130px) minmax(0, 1fr) minmax(0, 160px);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.index-row:not(.index-row-header) {
  border-top: 1px solid var(--divider);
}

.index-row p {
  margin: 0;
  line-height: 1;
  color: rgba(223, 223, 223, 0.78);
  display: flex;
  align-items: center;
  height: 100%;
  transition: color 0.1s ease;
}

.index-row:hover p {
  transition-delay: 0.1s;
}

.index-row-header {
  text-transform: uppercase;
}

.index-row-header p {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(223, 223, 223, 0.55);
}

.index-date {
  font-family: "Inter", sans-serif;
}

.index-title {
  overflow: visible;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
}

.index-type {
  justify-self: flex-end;
}

.index-types {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  min-width: 0;
}

.index-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(150, 150, 150);
  font-size: 0.75rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: color 0.1s ease, border-color 0.1s ease;
}

.index-row:not(.index-row-header):hover p {
  color: rgb(255, 255, 255);
}

.index-row:not(.index-row-header):hover .index-chip {
  border-color: rgb(255, 255, 255);
  color: rgb(255, 255, 255);
  transition-delay: 0.1s;
}

@media (max-width: 767.98px) {
  .index-row {
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr) minmax(0, 140px);
    column-gap: 0.05rem;
  }

  .index-date {
    padding-right: 0.3rem;
  }

  .index-title,
  .index-chip {
    mask-image: none;
  }

  .index-type,
  .index-chip {
    font-size: 0.75rem;
  }
}

.contact-location {
  margin-top: 0;
  color: var(--text-secondary);
}

footer {
  border-top: 1px solid var(--divider);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  /*padding-block: 0.5rem; */
}

.copyrightlogo {
  display: inline-block;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  margin-bottom: 0;
  padding-bottom: 0;
  line-height: 1.5;
}

.p-link-small {
  display: inline-block;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.p-link-small:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.p-link-small:hover,
.p-link-small:focus {
  color: #ffffff;
}

.p-link-static {
  pointer-events: none;
  cursor: default;
}

.p-link-static:hover,
.p-link-static:focus {
  color: var(--text-secondary);
}

.p-grey {
  color: var(--text-secondary);
}

.p-white {
  color: rgb(255, 255, 255);
}

.footer-note {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.hidden {
  display: none !important;
}

[data-reveal] {
  position: relative;
  overflow: hidden;
}

.reveal-word {
  display: inline-block;
  overflow: hidden;
}

.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
}

[data-reveal].reveal-in .reveal-word > span {
  transform: translateY(0%);
  opacity: 1;
}

body.page-enter #page-content {
  opacity: 0;
  transform: translateY(24px);
}

#page-content {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#page-content.blur-out {
  filter: blur(12px);
  opacity: 0;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

@media (max-width: 991.98px) {
  .glass-nav {
    padding-block: 0.1rem;
  }

  .glass-nav .navbar-nav {
    margin-top: 0rem;
  }

  footer .studio-row {
    flex-wrap: wrap;
    align-items: flex-end;
  }

  footer .studio-row > .studio-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  footer .studio-row > .studio-col:first-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  footer .studio-row > .studio-col:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
  }

  footer .p-link-small {
    display: block;
  }

  footer .footer-links-col.footer-links-col--right {
    align-items: flex-end;
    text-align: right;
    margin-top: 1.25rem;
  }

  .footer-list.footer-list--right {
    align-items: flex-end;
    text-align: right;
  }

  footer {
    padding-bottom: calc(3rem);
  }
}

@media (min-width: 768px) {
  .services-label {
    padding-top: 2rem;
  }

  #services {
    border-top: none;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links-desktop {
    display: flex;
    margin-left: auto;
  }

  .mobile-menu {
    display: none !important;
  }

  /* Tablet: keep meta-strip split and right-aligned clock */
  .meta-strip .studio-row-tight > .studio-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .meta-strip .studio-row-tight > .studio-col:last-child {
    display: flex;
    justify-content: flex-end;
  }
  .meta-strip .studio-row-tight > .studio-col:last-child .clock-readout {
    text-align: right;
  }

  /* Tablet: show Services header strip above divider; hide desktop rail label */
  #services {
    border-top: none;
  }
  #services .services-header-mobile {
    display: block;
    border-bottom: 1px solid var(--divider);
    padding: 0.125rem 0;
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  #services {
    border-top: 1px solid var(--divider);
  }
  #services .services-header-mobile {
    display: none;
  }
  .services-label {
    padding-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  body {
    padding: 0.125rem 0.5rem 0.125rem;
  }

  .glass-nav .navbar-brand,
  .glass-nav .nav-link,
  p,
  .clock-readout,
  h1,
  h3,
  h4,
  .p-link-small {
    font-size: 0.875rem;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.75rem;
  }

  .fixed-bottom-menu {
    width: min(454px, calc(100% - 1rem));
  }

  .fixed-bottom-menu .nav-button {
    font-size: 0.875rem;
  }

  .studio-row {
    row-gap: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .meta-strip .studio-row-tight > .studio-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .meta-strip .studio-row-tight > .studio-col:last-child {
    display: flex;
    justify-content: flex-end;
  }

  .meta-strip .studio-row-tight > .studio-col:last-child .clock-readout {
    text-align: right;
  }

  #services {
    padding-block: 0rem;
    border-top: none;
    border-bottom: 1px solid var(--divider);
  }

  #services .services-header-mobile {
    display: block;
    border-bottom: 1px solid var(--divider);
    padding: 0.125rem 0;
    margin-bottom: 0rem;
    border-top: none;
  }

  #services .services-header-mobile h4 {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-secondary);
  }

  #services .service-item {
    text-align: left;
    padding-block: 1.25rem;
  }

  #services .service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0rem;
  }

  #services .service-grid .service-title {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  #services .service-grid .service-copy,
  #services .service-grid .service-list {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #services .service-grid .service-copy {
    padding-right: 0.75rem;
  }

  #services .service-grid .service-list {
    padding-left: 0.75rem;
  }

  #services .service-grid .service-list ul {
    padding-left: 0;
    margin: 0;
  }

  #services .service-grid .service-list li {
    margin-bottom: 0.35rem;
  }

  #services .service-grid .service-copy,
  #services .service-grid .service-list,
  #services .service-grid .service-copy p,
  #services .service-grid .service-list li {
    font-size: 0.875rem;
  }

  #services .service-grid .service-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  footer {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
    display: block;
  }

  footer .studio-row {
    row-gap: 0.5rem;
  }

  footer .studio-row > .studio-col:first-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  footer .studio-row > .studio-col:last-child {
    text-align: right;
    align-self: flex-end;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }
}

/* Centered hover typewriter text */
#hover-typer {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1003; /* above blur(1000) and overlays(1001), below menus(10002) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: center;
  color: #fff;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  line-height: 1.15;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
#hover-typer.visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* ===== SPACER ===== */
.body-spacer {
  height: 100px;
}
.spacer-0125rem {
  height: 0.125rem;
}
.spacer-025rem {
  height: 0.25rem;
}
.spacer-05rem {
  height: 0.5rem;
}
.spacer-1rem {
  height: 1rem;
}
.spacer-2rem {
  height: 2rem;
}
.spacer-5rem {
  height: 5rem;
}
.spacer-10rem {
  height: 10rem;
}
.spacer-15rem {
  height: 15rem;
}
.spacer-20rem {
  height: 20rem;
}

/* === Accessibility & Performance Enhancements === */

/* A11y: hide visually, keep available for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* A11y: clear, visible keyboard focus styles */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Perf: let browser skip offscreen work on heavy sections */
.section-block {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px; /* reserve space to reduce layout shift */
}

#gallery {
  position: relative;
}

.gallery-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.gallery-overlays__blur,
.gallery-overlays__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gallery-overlays__blur {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: radial-gradient(
    circle at center,
    transparent 58%,
    rgba(0, 0, 0, 0.75) 82%,
    rgba(0, 0, 0, 0.95) 100%
  );
  -webkit-mask-image: radial-gradient(
    circle at center,
    transparent 58%,
    rgba(0, 0, 0, 0.75) 82%,
    rgba(0, 0, 0, 0.95) 100%
  );
  opacity: 0.85;
}

.gallery-overlays__shade {
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 38%,
    rgba(0, 0, 0, 0.6) 78%,
    rgba(0, 0, 0, 0.85) 100%
  );
  mix-blend-mode: multiply;
}
