/* ========================================================================
   FL Collection — Design System
   ======================================================================== */

/* ---------- Self-hosted Fonts ---------- */

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/GeistMono-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 52px;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  letter-spacing: 0.04em;
  scroll-snap-type: y proximity;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

fieldset {
  border: none;
}

dialog {
  padding: 0;
  border: none;
  background: none;
}

:focus-visible {
  outline: 1px solid var(--c-accent);
  outline-offset: 2px;
}

.accordion-header:focus-visible,
.carousel-prev:focus-visible,
.carousel-next:focus-visible,
.modal-close:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- Custom Properties ---------- */

:root {
  /* Colors */
  --c-bg:      #111111;
  --c-text:    #FFFFFF;
  --c-paper:   #F4F1EC;
  --c-accent:  #A7C8E8;
  --c-rule:    #1C1C1C;
  --c-rule-lt: #E0DDD7;
  --c-bg-deep: #0A0A09;

  /* Typography – families */
  --ff-primary:   'DM Sans', sans-serif;
  --ff-secondary: 'Geist Mono', monospace;

  /* Typography – sizes */
  --fs-hero:         clamp(36px, 3.2vw, 46px);
  --fs-section:      clamp(40px, 4vw, 56px);
  --fs-service:      clamp(28px, 3vw, 36px);
  --fs-nav:          9.5px;
  --fs-body:         14px;
  --fs-label:        clamp(8px, 0.7vw, 10px);
  --fs-price:        clamp(16px, 1.4vw, 20px);
  --fs-eyebrow:      10px;
  --fs-menu-link:    clamp(32px, 4vw, 48px);

  /* Spacing */
  --sp-page-x:       64px;
  --sp-section-y:    120px;
  --sp-grid-gap:     2px;
  --sp-max-w:        1280px;

  /* Nav */
  --nav-h: 68px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
  :root {
    --sp-page-x:    24px;
    --sp-section-y: 80px;
    --fs-hero:      28px;
    --fs-body:      16px;
    --fs-nav:       12px;
  }
}

/* ---------- Utility: Layout ---------- */

.container {
  width: 100%;
  max-width: var(--sp-max-w);
  margin-inline: auto;
  padding-inline: var(--sp-page-x);
}

.section-pad {
  padding-block: var(--sp-section-y);
}

/* ---------- Type Classes ---------- */

.hero-headline {
  font-family: var(--ff-primary);
  font-weight: 200;
  font-size: var(--fs-hero);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-title {
  font-family: var(--ff-primary);
  font-weight: 200;
  font-size: var(--fs-section);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.body-copy {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
  line-height: 1.85;
}

.label {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.listing-price {
  font-family: var(--ff-secondary);
  font-weight: 400;
  font-size: var(--fs-price);
  color: var(--c-accent);
}

.eyebrow {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #666;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  border: 1px solid var(--c-text);
  background: transparent;
  color: var(--c-text);
  padding: 16px 40px;
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 250ms, color 250ms;
}

.btn-primary:hover {
  background: var(--c-text);
  color: var(--c-bg);
}

.btn-contact {
  display: inline-block;
  border: 1px solid var(--c-text);
  background: transparent;
  color: var(--c-text);
  padding: 16px 40px;
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 250ms, color 250ms, border-color 250ms;
}

.btn-contact:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

.hero-cta-label {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-label);
  color: #888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-top: auto;
}

.btn-cta {
  font-family: var(--ff-secondary);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-text);
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  padding: 18px 40px;
  cursor: pointer;
  transition: all 250ms var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  min-width: 300px;
}

.cta-arrow {
  font-size: 18px;
  margin-left: auto;
}

.cta-arrow-svg {
  margin-left: auto;
  flex-shrink: 0;
}

.btn-cta:hover {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--sp-page-x);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-mark {
  width: 40px;
  height: 40px;
}

.nav-wordmark {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-variant: small-caps;
}

.menu-toggle {
  font-family: var(--ff-secondary);
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--c-text);
  padding: 8px 16px;
}

.menu-toggle:hover {
  color: var(--c-accent);
}

.nav-label {
  font-family: var(--ff-primary);
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  flex-shrink: 0;
}

/* ---------- Menu Dropdown ---------- */

.menu-dropdown {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  min-height: 60vh;
  background: var(--c-bg);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 400ms ease-out, opacity 400ms ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-dropdown.menu-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-links {
  display: flex;
  flex-direction: column;
  padding: 64px var(--sp-page-x);
  width: 100%;
  max-width: var(--sp-max-w);
  margin-inline: auto;
}

.menu-link {
  font-family: var(--ff-primary);
  font-weight: 200;
  font-size: var(--fs-menu-link);
  text-transform: uppercase;
  line-height: 1.15;
  display: block;
  transition: color 200ms;
}

.menu-link:hover {
  color: var(--c-accent);
}

.menu-link-contact {
  color: #ffffff;
  border-left: 2px solid #a7c8e8;
  padding-left: 16px;
  margin-top: 8px;
}

.menu-bottom {
  padding: 24px var(--sp-page-x);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-contact {
  display: flex;
  gap: 32px;
  font-family: var(--ff-secondary);
  font-size: clamp(10px, 0.7vw, 12px);
  letter-spacing: 0.15em;
  color: #555;
  justify-content: flex-end;
}

.menu-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.menu-social-icon {
  color: #888888;
  transition: color 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-social-icon:hover {
  color: #ffffff;
}

.menu-social-icon svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--c-bg);
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: end;
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  z-index: 2;
}

.hero-left {
  position: relative;
  z-index: 2;
  padding: 0 var(--sp-page-x) 64px;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-end;
}

.hero-cta {
  margin-top: 8px;
  align-self: flex-start;
}

/* Hero slideshow */
.hero-slideshow {
  position: relative;
  height: 100%;
  padding: calc(var(--nav-h) + 16px) var(--sp-page-x) var(--sp-page-x) var(--sp-page-x);
}

.hero-slide {
  position: absolute;
  top: calc(var(--nav-h) + 16px);
  right: var(--sp-page-x);
  bottom: var(--sp-page-x);
  left: var(--sp-page-x);
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-placeholder {
  font-family: var(--ff-secondary);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-slide-label {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.hero-slide-name {
  font-family: var(--ff-secondary);
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.04em;
}

.hero-slide-address {
  font-family: var(--ff-secondary);
  font-size: 13px;
  color: #888;
  letter-spacing: 0.04em;
}

/* Hero entrance animation (hero.js adds hero-visible class) */
[data-hero-entrance] {
  opacity: 0;
  transform: translateY(20px);
}

[data-hero-entrance].hero-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .hero-slideshow {
    order: -1;
    height: 50vh;
  }

  .hero-left {
    padding: 40px var(--sp-page-x) 48px;
    align-self: start;
  }
}

/* ---------- About Strip ---------- */

.about-strip {
  background: var(--c-bg);
  color: var(--c-text);
  padding: var(--sp-section-y) 0 var(--sp-section-y) var(--sp-page-x);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-strip-wordmark {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--c-text);
}

.about-strip-card {
  background: var(--c-paper);
  color: var(--c-bg);
  padding: 48px 64px 48px 48px;
}

.about-strip-text {
  font-family: var(--ff-primary);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: var(--c-bg);
}

.about-strip .accent {
  color: var(--c-accent);
}

@media (max-width: 767px) {
  .about-strip {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-strip-logo {
    flex-direction: row;
    gap: 12px;
  }
  .about-strip-logo svg {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Services ---------- */

.services {
  background: var(--c-bg);
  padding: var(--sp-section-y) var(--sp-page-x);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: start;
}

.services-header {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.services-header .section-title {
  margin-bottom: 16px;
}

.accordion {
  border-top: 1px solid var(--c-rule);
}

.accordion-item {
  border-bottom: 1px solid var(--c-rule);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 0;
  cursor: pointer;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--ff-secondary);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  text-transform: capitalize;
  line-height: 1.2;
  text-align: left;
  transition: color 200ms;
}

.accordion-header:hover {
  color: #a7c8e8;
}

.accordion-active .accordion-header {
  color: #a7c8e8;
}

.accordion-indicator {
  font-size: 22px;
  transition: transform 200ms ease;
  flex-shrink: 0;
  display: inline-block;
}

.accordion-chevron {
  transition: transform 200ms;
  flex-shrink: 0;
}

.accordion-active .accordion-chevron {
  transform: rotate(45deg);
}

.accordion-content {
  overflow: hidden;
}

.accordion-body {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.85;
  color: #ffffff;
  letter-spacing: 0.04em;
  max-width: 480px;
  padding-bottom: 20px;
}

.link-arrow {
  font-family: var(--ff-secondary);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  display: inline-block;
  padding-bottom: 24px;
  transition: color 200ms;
}

.link-arrow:hover {
  color: var(--c-text);
}

@media (max-width: 767px) {
  .services {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-header {
    position: static;
  }
}

/* ---------- Work Grid ---------- */

.work-section {
  background: var(--c-bg);
  padding: var(--sp-section-y) var(--sp-page-x);
}

.work-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid #FFFFFF;
}

.work-header .section-title {
  padding-bottom: 0;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.01em;
  text-align: center;
}

.see-all-link {
  margin-top: 16px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--ff-secondary);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 200ms;
}

.see-all-link:hover {
  color: #ffffff;
  opacity: 0.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work-card {
  cursor: pointer;
}

.work-card-image-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.work-card-image {
  width: 100%;
  height: 100%;
  transition: transform 400ms var(--ease-out-expo);
}

.work-card:hover .work-card-image {
  transform: scale(1.04);
}

.work-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}

.work-card-name {
  font-family: var(--ff-primary);
  font-weight: 300;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.work-card-type {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #a7c8e8;
}

.work-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--c-text);
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 3;
  backdrop-filter: blur(4px);
}

@media (max-width: 1023px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Active Listings ---------- */

.listings-section {
  background: var(--c-bg);
  overflow: hidden;
  padding: var(--sp-section-y) var(--sp-page-x);
}

.listings-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid #FFFFFF;
}

.listings-header .section-title {
  padding-bottom: 0;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--sp-grid-gap);
  transition: transform 400ms ease-out;
}

.carousel-card {
  flex-shrink: 0;
  cursor: pointer;
}

.carousel-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  transition: transform 500ms var(--ease-out-expo);
}

.carousel-card:hover .carousel-card-image {
  transform: scale(1.06);
}

.carousel-card-info {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-left: 0;
  padding-right: 0;
}

.listing-address {
  font-family: var(--ff-primary);
  font-weight: 300;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 4px;
}

.listing-price {
  font-family: var(--ff-secondary);
  font-weight: 400;
  font-size: 16px;
  color: #a7c8e8;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.listing-specs {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 250ms;
  color: var(--c-text);
  font-size: 18px;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 2;
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-prev:hover,
.carousel-next:hover {
  border-color: var(--c-text);
}

/* carousel card widths set by JS */

/* ---------- Francisco ---------- */

.francisco-section {
  background: var(--c-bg);
  color: var(--c-text);
  padding: var(--sp-section-y) var(--sp-page-x);
}

.francisco-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.6fr;
  gap: 48px;
  align-items: stretch;
}

.francisco-left {
  display: flex;
  flex-direction: column;
}

.francisco-name {
  margin-bottom: 16px;
}

.francisco-role {
  display: block;
  margin-bottom: 24px;
}

.francisco-expertise {
  margin-top: auto;
}

.francisco-expertise > .label {
  margin-bottom: 16px;
  display: block;
}

.francisco-center {
  display: flex;
  align-items: flex-start;
}

.francisco-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(100%);
}

.francisco-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-end;
}

.francisco-bio {
  /* inherits .body-copy */
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expertise-list li {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
}

@media (max-width: 1023px) {
  .francisco-grid {
    grid-template-columns: 1fr 1fr;
  }
  .francisco-left {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .francisco-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Foundation ---------- */

.foundation-section {
  background: var(--c-bg);
  padding: calc(var(--sp-section-y) * 1.3) var(--sp-page-x);
}

.foundation-section > .section-title {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ffffff;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.foundation-column {
  padding: 0 40px;
}

.foundation-column:not(:last-child) {
  border-right: 1px solid #1C1C1A;
}

.foundation-column:first-child {
  padding-left: 0;
}

.foundation-column:last-child {
  padding-right: 0;
}

.foundation-heading {
  font-family: var(--ff-primary);
  font-weight: 200;
  font-size: clamp(20px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
  margin-top: 0;
}

.foundation-label {
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
}

.foundation-column .body-copy {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.7;
}

.foundation-column .values-list li {
  color: #ffffff;
  font-size: 14px;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
}

.value-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--c-accent);
  margin-top: 6px;
}

@media (max-width: 1023px) {
  .foundation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foundation-column:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 767px) {
  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .foundation-column {
    padding: 0;
    border-right: none !important;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .foundation-column:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

/* ---------- CTA / Contact ---------- */

.cta-section {
  background: var(--c-paper);
  color: var(--c-bg);
  padding: var(--sp-section-y) var(--sp-page-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  scroll-snap-align: start;
}

.cta-section .section-title {
  color: var(--c-bg);
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  color: #888;
  font-size: 18px;
}

.cta-contact a {
  font-size: 18px;
}

.cta-contact a:hover {
  color: var(--c-bg);
}

.cta-section .btn-cta {
  color: var(--c-bg);
  border-color: var(--c-bg);
  min-width: 320px;
  justify-content: space-between;
  margin-top: 64px;
  align-self: flex-end;
}

.cta-section .btn-cta:hover {
  background: var(--c-bg);
  color: var(--c-paper);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-bg);
  padding: 64px var(--sp-page-x) 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-wordmark {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--c-text);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-contact-info .footer-link {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 14px;
  color: #666;
  letter-spacing: 0.04em;
  transition: color 200ms;
}

.footer-contact-info .footer-link:hover {
  color: var(--c-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #1C1C1C;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #666;
  text-transform: uppercase;
  transition: color 200ms;
}

.footer-nav-link:hover {
  color: var(--c-text);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 200ms;
}

.footer-social-icon:hover {
  border-color: var(--c-text);
  color: var(--c-text);
}

@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
  .footer-contact-info {
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 16px;
  }
}

/* ---------- Modals ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}

.modal-overlay.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--c-bg);
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--c-text);
  background: none;
  border: none;
}

/* Project modal before/after gallery */
.project-modal .modal {
  border: 1px solid #FFFFFF;
}

.project-modal-inner {
  padding: 48px;
  overflow: hidden;
  max-width: 1200px;
  width: 85vw;
  margin: 0 auto;
  height: auto;
  max-height: 100vh;
}

.project-modal-layout {
  display: flex;
  max-height: calc(100vh - 96px);
}

.project-modal-left {
  width: 32%;
  flex-shrink: 0;
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.project-modal-role {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-modal-name {
  font-family: var(--ff-primary);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 16px;
}

.project-modal-desc {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.project-modal-right {
  width: 68%;
  flex-shrink: 0;
  overflow-y: auto;
}

.ba-header {
  font-family: var(--ff-primary);
  font-weight: 200;
  font-size: 30px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
  margin-bottom: 12px;
}

.ba-divider {
  border: none;
  height: 1px;
  background: #ffffff;
  margin-bottom: 16px;
}

.ba-main-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0e0e0d;
  overflow: hidden;
}

.ba-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-thumbnails {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.ba-thumbnail {
  width: calc(25% - 5px);
  aspect-ratio: 16/9;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 200ms ease;
}

.ba-thumbnail:hover,
.ba-thumbnail.active {
  opacity: 1;
}

.ba-section-divider {
  border: none;
  height: 1px;
  background: #ffffff;
  opacity: 0.15;
  margin: 32px 0;
}

/* Listing modal shared styles */
.modal-listing-name {
  font-family: var(--ff-primary);
  font-weight: 200;
  font-size: clamp(24px, 3vw, 36px);
  text-transform: uppercase;
  color: #ffffff;
}

.modal-listing-type {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.modal-listing-description {
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
}

.modal-main-image {
  flex: 1;
  background: #0e0e0d;
  min-height: 300px;
  overflow: hidden;
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 150ms ease;
}

.modal-thumbnails {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-thumbnail {
  width: calc(25% - 5px);
  aspect-ratio: 16/9;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 200ms ease;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
  opacity: 1;
}

.modal-details {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

/* Listing modal */
.listing-modal .modal {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100%;
  border: 1px solid #FFFFFF;
  max-width: 1200px;
  width: 85vw;
  margin: 0 auto;
}

.modal-listing-price {
  font-family: var(--ff-secondary);
  font-weight: 400;
  font-size: var(--fs-price);
  color: #ffffff;
}

.modal-listing-specs {
  display: flex;
  gap: 24px;
  font-family: var(--ff-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
}

/* Contact modal */
.contact-modal-panel {
  max-width: 560px;
  height: auto;
  max-height: 90vh;
  margin: auto;
  padding: 48px;
}

.modal-heading {
  font-family: var(--ff-primary);
  font-weight: 200;
  font-size: clamp(24px, 3vw, 36px);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-contact-details {
  font-family: var(--ff-secondary);
  font-size: var(--fs-body);
  color: #888;
  margin-bottom: 32px;
}

/* Forms inside modals */
.contact-form,
.listing-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea,
.listing-contact-form input,
.listing-contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  color: var(--c-text);
  font-family: var(--ff-secondary);
  font-weight: 300;
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
  padding: 12px 0;
  transition: border-color 250ms;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.listing-contact-form input::placeholder,
.listing-contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus,
.listing-contact-form input:focus,
.listing-contact-form textarea:focus {
  border-bottom-color: var(--c-accent);
}

.contact-form textarea,
.listing-contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 767px) {
  .modal {
    border-radius: 0;
  }

  .listing-modal .modal {
    grid-template-columns: 1fr;
  }

  .project-modal-inner {
    padding: 24px;
  }

  .project-modal-layout {
    flex-direction: column;
  }

  .project-modal-left {
    width: 100%;
    padding-right: 0;
    margin-bottom: 24px;
  }

  .project-modal-right {
    width: 100%;
  }

  .contact-modal-panel {
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100vh;
    padding: 24px;
  }
}

/* ---------- Page Transition ---------- */

body {
  transition: opacity 150ms ease;
}

body.page-transitioning {
  opacity: 0;
}

/* ---------- Section Spacing (dark-on-dark) ---------- */

/* ---------- Accent Rule ---------- */

.accent-rule {
  border: none;
  height: 1px;
  background: var(--c-accent);
}

/* ---------- Accent Text ---------- */

.accent {
  color: var(--c-accent);
}

/* ---------- Mobile Touch Targets ---------- */

@media (max-width: 767px) {
  a,
  button,
  [role="button"],
  input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---------- Minimum Font Size Guard ---------- */

@media (max-width: 767px) {
  .label,
  .eyebrow {
    font-size: max(var(--fs-label, 10px), 12px);
  }

  .eyebrow {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
