:root {
  --bg: #131318eb;
  --bg-elev: #131620;
  --glass: rgba(23, 26, 32, 0.82);
  --text: #e9edf1;
  --muted: #b6b2a8;
  --brand: #f59e0b;
  --brand-2: #ff7a1a;
  --ring: rgba(245, 158, 11, 0.25);
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  --space: clamp(1.25rem, 2.5vw, 2rem);
  --bg-soft: #16181d;
  --card-bg: #84743a06;
  --card-stroke: rgba(255, 255, 255, 0.06);
  --nav-bg: #131318;
  --logo-h-mobile: clamp(74px, 10vw, 96px);
  --logo-h-desktop: clamp(60px, 16vw, 112px);
  --about-slate: color-mix(in oklab, var(--bg-elev) 70%, #212122);
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade,
  .collapse,
  .carousel-item {
    transition: none !important;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-family:
    DM Sans,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    SF Pro Text,
    Segoe UI,
    sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title {
  font-family:
    Manrope,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    SF Pro Display,
    Segoe UI,
    sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}
p {
  margin-bottom: 1rem;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}
a:hover {
  color: var(--brand);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translate(-50%);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus,
.skip-link:active {
  opacity: 1;
  pointer-events: auto;
}
section {
  scroll-margin-top: 5.5rem;
}
.section-eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-title {
  line-height: 1.15;
}
.section-divider {
  border: 0;
  height: 2px;
  margin: 0;
  background: #eacf3826;
  opacity: 0.75;
  transition:
    opacity 0.16s ease-out,
    transform 0.16s ease-out;
}
.section-divider.is-active {
  opacity: 1;
  transform: none;
}
.text-secondary {
  color: var(--muted) !important;
}
.navbar {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: var(--nav-bg) !important;
  border-bottom-color: #ffffff0f !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar.navbar-scrolled {
  background: #171a20d1 !important;
}
.navbar-nav .nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #fff;
}
.navbar-nav .nav-split-start {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--brand);
}
.navbar-dark .navbar-toggler {
  border-color: #ffffff2e;
}
.navbar-dark .navbar-toggler-icon {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.75));
}
.navbar .dropdown-menu {
  background: var(--bg-elev);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem 0;
}
.navbar .dropdown-item {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: #f59e0b1f;
  color: #fff;
}
.navbar .dropdown-item:active {
  background: var(--brand);
  color: #0b0c10;
}
@media (max-width: 991.98px) {
  .navbar-nav .dropdown.ms-lg-2 {
    margin-top: 0.65rem;
  }
  .navbar .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .navbar .dropdown-menu {
    margin-top: 0.35rem;
  }
  .navbar-nav .nav-split-start {
    margin-left: 0;
    padding-left: 0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-left: 0;
    border-top: 1px solid var(--brand);
  }
}
.brand-mark-wrap {
  width: clamp(52px, 6vw, 72px);
  height: clamp(52px, 6vw, 72px);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.brand-mark-wrap picture,
.brand-mark-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 10px 25px #000000d9;
  transition: transform 0.18s ease-out;
  display: block;
}
.navbar .navbar-brand .brand-mark-wrap {
  width: var(--logo-h-mobile);
  height: var(--logo-h-mobile);
  line-height: 0;
}
@media (min-width: 992px) {
  .navbar .navbar-brand .brand-mark-wrap img {
    height: var(--logo-h-desktop);
  }
  .navbar .navbar-brand .brand-mark-wrap {
    width: var(--logo-h-desktop);
    height: var(--logo-h-desktop);
  }
}
@media (hover: hover) and (pointer: fine) {
  .navbar-brand:hover img {
    transform: scale(1.04);
  }
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text);
  overflow: hidden;
  padding-top: 5rem;
  background-color: #05070b;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: grayscale(40%) saturate(94%) brightness(112%) contrast(88%);
  display: block;
}
.hero-overlay {
  background:
    linear-gradient(90deg, #05060899, #05060873 40%, #05060826, #05060840),
    linear-gradient(180deg, #05060800 70%, #050608a6);
  z-index: 1;
}
.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 1rem;
  pointer-events: auto;
}
.hero-control-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition:
    background-color 0.3s ease-out,
    border-color 0.3s ease-out,
    transform 0.2s ease-out;
}
.hero-control-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: var(--brand);
  transform: scale(1.1);
}
.hero-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}
.hero-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    background-color 0.3s ease-out,
    transform 0.3s ease-out;
}
.hero-indicator.active {
  background: var(--brand);
  transform: scale(1.3);
}
.hero-indicator:hover {
  background: rgba(245, 158, 11, 0.7);
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero-inner {
  max-width: 100%;
}
.hero-title {
  white-space: nowrap;
  font-size: clamp(1.9rem, 6vw + 0.25rem, 3.5rem);
  line-height: 1.1;
}
.hero-tagline {
  max-width: 30rem;
  margin-inline: auto;
  color: #e7ecf5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.stack-cta .btn {
  min-width: 0;
}
@media (max-width: 767.98px) {
  .hero-slide img,
  .hero-slide picture img {
    object-position: center;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
  }
  .hero-tagline {
    font-size: 0.95rem;
  }
  .hero-controls {
    bottom: 4rem;
  }
}
@media (max-width: 575.98px) {
  .hero-title {
    white-space: normal;
  }
}
.about-section p {
  color: var(--text);
}
.about-footnote {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0a0c12f5;
}
.about-footnote-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-footnote-text {
  font-size: 0.9rem;
  color: var(--text);
}
.about-card {
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow);
  border-left: 2px solid rgba(245, 158, 11, 0.22);
}
.cap-list {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.25rem;
}
.about-section {
  position: relative;
  isolation: isolate;
}
.about-section .about-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  background: var(--about-slate);
  z-index: 0;
  display: none;
}
@media (min-width: 992px) {
  .about-section .about-panel {
    display: block;
  }
}
.about-section .container,
.about-section .row {
  position: relative;
  z-index: 1;
}
.about-card .row > div {
  width: 100%;
}
@media (max-width: 575.98px) {
  .about-footnote {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: #0a0c12eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 18px #00000059;
  }
  .about-footnote-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .about-footnote-text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--text);
    text-wrap: pretty;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .about-footnote .bi-geo-alt-fill {
    font-size: 1rem;
  }
}
.card {
  background-color: var(--card-bg);
  border-color: var(--card-stroke);
  border-radius: var(--radius);
  color: var(--text);
}
.card-body {
  padding: 1.5rem;
}
.focus-wrap {
  background: var(--bg-soft);
  border-radius: 2rem;
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow);
}
.focus-card {
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, #0a0c12fa, #0a0c12e6);
  display: flex;
  flex-direction: column;
}
.focus-card .media {
  position: relative;
  aspect-ratio: var(--focus-media-ratio, 16 / 9);
  overflow: hidden;
}
.focus-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition:
    transform 0.2s ease-out,
    filter 0.2s ease-out;
}
.focus-card .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0000, #000000b3);
  opacity: 0.7;
}
.focus-card .card-body {
  flex: 1;
}
@media (min-width: 992px) {
  .spec-homes-card .media {
    --focus-media-ratio: 4 / 3;
  }
  .spec-homes-card .media img {
    object-position: center top;
  }
}
.portfolio-location-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}
.portfolio-location-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #00000059;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.portfolio-location-inline i {
  font-size: 0.9rem;
}
@media (max-width: 575.98px) {
  .portfolio-location-wrap {
    justify-content: center;
  }
}
@media (hover: hover) and (pointer: fine) {
  .focus-card:hover .media img {
    transform: scale(1.06);
    filter: brightness(1.04);
  }
  .focus-card:hover {
    border-color: #ffffff2e;
    box-shadow: 0 18px 40px #000000e6;
  }
}
.diff-media-card {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: var(--bg-soft);
}
.diff-media-inner {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}
.diff-media-inner img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  border-radius: 0;
}
.bg-elev {
  background-color: var(--bg-elev);
}
#tCarousel .carousel-inner {
  border-radius: 1.75rem;
  border: 1px solid var(--card-stroke);
  background: var(--bg-elev);
}
#tCarousel .carousel-item {
  min-height: 420px;
}
#tCarousel .carousel-item figure {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#tCarousel .blockquote {
  font-size: 1rem;
  line-height: 1.6;
}
#tCarousel .blockquote-footer {
  color: var(--muted);
}
.contact-card {
  background: var(--glass);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}
.form-control,
.form-select {
  background-color: #0b0e14f5;
  border-radius: 0.9rem;
  border-color: #ffffff1a;
  color: #fff;
  caret-color: #fff;
}
.form-control::placeholder {
  color: #fff9;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.15rem #f59e0b47;
  background-color: #0b0e14;
}
.contact-card .form-control,
.contact-card .form-select,
.contact-card textarea {
  color: #fff !important;
  background-color: #0b0e14f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  caret-color: #fff;
}
.contact-card .form-control::placeholder,
.contact-card textarea::placeholder {
  color: #ffffffb8 !important;
}
.contact-card .form-control:focus,
.contact-card .form-select:focus,
.contact-card textarea:focus {
  color: #fff !important;
  background-color: #0b0e14;
  border-color: var(--brand);
  box-shadow: 0 0 0 0.15rem #f59e0b47;
}
.contact-card input:-webkit-autofill,
.contact-card textarea:-webkit-autofill,
.contact-card select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #0b0e14 inset;
  transition: background-color 9999s ease-in-out 0s;
}
.contact-card input:autofill,
.contact-card textarea:autofill,
.contact-card select:autofill {
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 0 1000px #0b0e14 inset;
}
.contact-card input,
.contact-card textarea,
.contact-card select {
  -webkit-text-fill-color: #fff;
}
.contact-card .form-select option {
  color: #111;
  background: #fff;
}
.contact-card .form-label {
  color: #ffffffe0;
}
.was-validated .form-control:invalid,
.form-control.is-invalid,
.was-validated .form-select:invalid,
.form-select.is-invalid {
  border-color: #f97373;
}
.was-validated .form-control:valid,
.form-control.is-valid,
.was-validated .form-select:valid,
.form-select.is-valid {
  border-color: #22c55eb3;
}
footer {
  background: var(--nav-bg);
}
footer .link-secondary {
  color: var(--muted) !important;
  text-decoration: none;
}
footer .link-secondary:hover {
  color: #fff !important;
}
.btn {
  border-radius: 999px;
}
.btn-warning {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #121212;
}
.btn-warning:hover {
  background-color: var(--brand-2);
  border-color: var(--brand-2);
  color: #050505;
}
.btn-outline-light {
  border-color: #ffffff47;
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background-color: #fff;
  border-color: #fff;
  color: #0b0c10;
}
@media (min-width: 768px) {
  .hero-inner,
  .hero-tagline {
    margin-inline: 0;
  }
}
@media (min-width: 992px) {
  body {
    font-size: 1.0625rem;
    line-height: 1.65;
  }
  .section-title,
  h2,
  h3 {
    line-height: 1.2;
  }
  .section-title {
    font-size: clamp(1.6rem, 1.2vw + 1rem, 2.1rem);
  }
  h3 {
    font-size: clamp(1.25rem, 0.7vw + 1rem, 1.5rem);
  }
  .hero-title {
    white-space: normal;
    font-size: clamp(2.4rem, 3vw, 3.75rem);
  }
  .hero-tagline {
    font-size: 1.125rem;
    max-width: 38rem;
  }
  .navbar-nav .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }
  .card-body,
  .contact-card,
  .about-section p {
    font-size: 1.0625rem;
  }
  ul,
  ol {
    margin-bottom: 1.1rem;
  }
  p {
    margin-bottom: 1.05rem;
  }
  .btn {
    font-size: 1rem;
  }
}
@media (min-width: 1400px) {
  body {
    font-size: 1.125rem;
  }
  .hero-title {
    font-size: clamp(2.8rem, 2.6vw, 4.25rem);
  }
  .section-title {
    font-size: clamp(1.8rem, 1.1vw + 1rem, 2.3rem);
  }
}
@media (max-width: 767.98px) {
  html,
  body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
  }
  .container,
  .container-fluid {
    overflow-x: hidden;
  }
  .focus-card .media img,
  .diff-media-inner img {
    transform: none;
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    gap: 2rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
  text-decoration: none;
  cursor: pointer;
  aspect-ratio: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease-out,
    box-shadow 0.3s ease-out,
    border-color 0.3s ease-out;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-out;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(245, 158, 11, 0.4);
  }

  .gallery-item:hover picture,
  .gallery-item:hover img {
    transform: scale(1.08);
  }

  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }
}

/* Mobile touch-friendly gallery */
@media (max-width: 767.98px) {
  .gallery-item {
    border-radius: 1.25rem;
  }

  .gallery-overlay {
    opacity: 0.7;
  }
}

/* Gallery modal styling */
#galleryModal .modal-content {
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

#galleryModal .btn-close {
  z-index: 10;
}

/* Gallery Pagination */
.gallery-pagination .pagination {
  gap: 0.5rem;
}

.gallery-pagination .page-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--text);
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition:
    background-color 0.2s ease-out,
    border-color 0.2s ease-out,
    color 0.2s ease-out;
}

.gallery-pagination .page-link:hover {
  background-color: #f59e0b1f;
  border-color: var(--brand);
  color: var(--brand);
}

.gallery-pagination .page-item.active .page-link {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #0b0c10;
}

.gallery-pagination .page-item.disabled .page-link {
  color: #6b6360;
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  opacity: 0.5;
}

.gallery-item.hidden {
  display: none;
}
