/* ---------- Fonts (Adobe Fonts / Typekit — same kits as the live site) ---------- */
@import url("https://use.typekit.net/rym1jja.css");

/* ---------- Palette ---------- */
:root {
  --bg: #1D1E1F;         /* the one dark grey used everywhere */
  --bg-alt: #232427;     /* faint alternate for zebra-striped sections */
  --card: #26272B;       /* card surface, sits slightly above bg */
  --border: rgba(255,255,255,0.14);
  --ink: #F5F3EF;        /* primary text */
  --ink-muted: #C9C4D6;  /* secondary text, matches live site's lavender-grey copy */
  --logo-card: #E9E5DC;  /* small light backing for logos with transparent PNGs */
  --barsize: 15px;
  --barsize-lg: 150px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "acumin-pro-condensed", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h3, h5 {
  font-family: "antina", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
}
h2, h4, h6 {
  font-family: "ambroise-firmin-std", serif;
  font-weight: 300;
  font-style: normal;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Heading sizes bumped up across the board — antina/ambroise read small at normal body scale */
h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.04em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: 0.03em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.hidden-section { display: none !important; }

/* ---------- Rainbow brand accents (ported from current site) ---------- */
.rainbowText {
  color: transparent;
  background: -webkit-linear-gradient(left, rgba(243,143,187), rgba(228,164,85), rgba(255,246,139), rgba(130,182,106), rgba(121,116,169));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rainbow-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  background: #101010;
  background-size: 200%;
  background-position: 0%;
  color: #fff;
  font-weight: 600;
  animation: rainbow-border 7s linear infinite;
  transition: filter 0.3s ease;
}
.rainbow-btn:hover {
  animation: rainbow-border 2s linear infinite;
  filter: drop-shadow(0 0 3px #62efab) drop-shadow(0 0 6px #e1a4f4);
}
@keyframes rainbow-border {
  0%   { outline-color: #62efab; box-shadow: 0 0 0 2px #62efab; }
  16%  { outline-color: #F2EA7D; box-shadow: 0 0 0 2px #F2EA7D; }
  33%  { outline-color: #FF8797; box-shadow: 0 0 0 2px #FF8797; }
  50%  { outline-color: #e1a4f4; box-shadow: 0 0 0 2px #e1a4f4; }
  66%  { outline-color: #82fff4; box-shadow: 0 0 0 2px #82fff4; }
  83%  { outline-color: #F2EA7D; box-shadow: 0 0 0 2px #F2EA7D; }
  100% { outline-color: #62efab; box-shadow: 0 0 0 2px #62efab; }
}

/* ---------- Animated accent line (solid moving rainbow bar, full viewport width) ---------- */
.line {
  width: 100%;
  height: 3px;
  display: block;
  background: linear-gradient(to right, #62efab 5%, #F2EA7D 15%, #F2EA7D 25%, #FF8797 35%, #FF8797 45%, #e1a4f4 55%, #e1a4f4 65%, #82fff4 75%, #82fff4 85%, #62efab 95%);
  background-size: 200%;
  background-position: 0%;
  animation: bar 15s linear infinite;
}
@keyframes bar {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

/* ---------- Fixed background (the "sticky" layer content scrolls over) ---------- */
.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}
.fixed-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(29,30,31,0.85);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo { height: 48px; width: auto; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.site-nav a:hover { opacity: 0.6; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { max-height: 400px; }
  .site-nav a { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: block; }
}

/* ---------- Hero (transparent — the fixed-bg layer shows through) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  color: var(--ink);
}
.hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 800px; }
.hero-logo { max-width: min(520px, 80vw); margin: 0 auto; }
.hero-tagline {
  font-family: "ambroise-firmin-std", serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  margin-top: 1.25rem;
  color: var(--ink-muted);
}
.hero p.hero-intro { font-size: 1.15rem; margin-top: 1.5rem; color: var(--ink-muted); }

/* ---------- Sections ---------- */
section { padding: 6rem 0; position: relative; }
.surface-solid { background: var(--bg); }
.surface-transparent { background: transparent; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading p { color: var(--ink-muted); max-width: 650px; margin: 1rem auto 0; }

/* ---------- Carousels (Services, Site Showcase, Portfolio) ---------- */
.carousel-wrap { position: relative; }
.services-grid, .portfolio-grid, .showcase-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 2.75rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.services-grid.dragging, .portfolio-grid.dragging, .showcase-grid.dragging { cursor: grabbing; }
.services-grid::-webkit-scrollbar, .portfolio-grid::-webkit-scrollbar, .showcase-grid::-webkit-scrollbar { display: none; }
.service-card, .portfolio-card, .showcase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex: 0 0 clamp(260px, 80vw, 340px);
}
.service-card img, .portfolio-card img, .showcase-card img { -webkit-user-drag: none; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(29,30,31,0.85);
  border: 2px solid var(--border);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s ease, border-color 0.3s ease;
}
.carousel-btn:hover {
  border-color: transparent;
  animation: rainbow-border 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(98,239,171,0.4)) drop-shadow(0 0 10px rgba(225,164,244,0.4));
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
@media (max-width: 700px) {
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
}
.service-card p, .portfolio-card p, .showcase-card p { color: var(--ink-muted); }
.service-card:hover, .portfolio-card:hover, .showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.portfolio-card img, .showcase-card img {
  border-radius: 8px;
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
  width: 100%;
}
.showcase-card img {
  object-fit: cover;
}
.portfolio-card img {
  object-fit: contain;
  background: var(--logo-card);
  padding: 1rem;
}
.showcase-card a.visit { font-weight: 600; text-decoration: underline; }

/* ---------- Quick-jump pills (mirrors the live site's "Services Offered" links) ---------- */
.quick-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.pill-link {
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: filter 0.3s ease;
}
.pill-link:not(:hover) { border-color: var(--border); }
.pill-link:hover {
  animation: rainbow-border 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(98,239,171,0.4)) drop-shadow(0 0 10px rgba(225,164,244,0.4));
}

/* ---------- Expand/collapse panels (Services, Site Showcase, Portfolio) ---------- */
.expand-btn {
  display: block;
  margin: 2rem auto 0;
  background: transparent;
  border-radius: 50px;
  padding: 0.7rem 2.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.expandable-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* ---------- Generic hover-rainbow for other interactive buttons ---------- */
.expand-btn, .buy-btn {
  border: 2px solid var(--border);
  transition: filter 0.3s ease, border-color 0.3s ease;
}
.expand-btn:hover, .buy-btn:hover {
  border-color: transparent;
  animation: rainbow-border 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(98,239,171,0.4)) drop-shadow(0 0 10px rgba(225,164,244,0.4));
}

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-hero img { border-radius: 12px; width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; } }
.about-hero p { color: var(--ink-muted); }
.credentials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.credential-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  background-image: linear-gradient(var(--card), var(--card)), linear-gradient(90deg, rgba(98,239,171,0.5), rgba(242,234,125,0.5), rgba(255,135,151,0.5), rgba(225,164,244,0.5), rgba(130,255,244,0.5));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ---------- Pricing / Plans ---------- */
.plans-group { margin-bottom: 4rem; }
.plans-group h3 { text-align: center; margin-bottom: 2rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--card), var(--card)), linear-gradient(90deg, #62efab, #F2EA7D, #FF8797, #e1a4f4, #82fff4, #62efab);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 100%;
  background-position: 0 0, 0% 0;
}
.pricing-card.featured:hover {
  animation: featured-border-move 3s linear infinite;
}
@keyframes featured-border-move {
  0% { background-position: 0 0, 0% 0; }
  100% { background-position: 0 0, 300% 0; }
}
.pricing-card .badge {
  position: absolute; top: -12px; right: 1.5rem;
  background: #101010; color: #fff;
  font-size: 0.7rem; letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem; border-radius: 50px;
}
.pricing-card p { color: var(--ink-muted); }
.pricing-card .price { font-size: 2.25rem; font-family: "antina", sans-serif; margin: 0.75rem 0; }
.pricing-card .price span { font-size: 1rem; font-family: inherit; color: var(--ink-muted); }
.pricing-card .setup-fee { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 1rem; }
.pricing-card ul { margin: 1rem 0; flex: 1; }
.pricing-card li { font-size: 0.9rem; padding: 0.35rem 0; padding-left: 1.2rem; position: relative; color: var(--ink-muted); }
.pricing-card li:before { content: "\2713"; position: absolute; left: 0; color: var(--ink); }
.pricing-card .buy-btn {
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  background: #101010;
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--border);
}
.pricing-card .buy-btn:hover { opacity: 0.85; }
.stripe-placeholder { font-size: 0.75rem; color: #ffb56b; background: rgba(240,165,0,0.12); border: 1px dashed #f0a500; padding: 0.5rem; border-radius: 6px; margin-top: 0.5rem; }

/* ---------- Cult of Creativity (toggleable) ---------- */
.cult-section { background: var(--bg); color: var(--ink); }
.cult-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; align-items: center; }
.cult-grid img { border-radius: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  padding: 0.85rem; border: 1px solid var(--border); border-radius: 8px; font: inherit;
  background: var(--card); color: var(--ink);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-muted); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Wave divider (recreated from the live site's native SVG animation) ---------- */
.wave-divider { display: block; position: relative; width: 100%; line-height: 0; margin-bottom: -1px; }
/* A solid strip under the wave's flat edge, so no seam shows where it meets the section. */
.wave-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--bg);
}
.wave-divider svg { width: 100%; height: 60px; display: block; }
.wave-divider.flip { transform: scaleY(-1); margin-top: -1px; margin-bottom: 0; }

/* ---------- Social callout (breathing room before the footer wave) ---------- */
.social-callout { text-align: center; padding: 2rem 0 3rem; }
.social-callout p { color: var(--ink-muted); margin-top: 0.75rem; }
.social-icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: filter 0.3s ease, border-color 0.3s ease;
}
.social-icons a img { width: 30px; height: 30px; }
.social-icons a.linkedin-text { font-weight: 600; font-size: 0.85rem; width: auto; padding: 0 1.5rem; }
.social-icons a:hover {
  border-color: transparent;
  animation: rainbow-border 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(98,239,171,0.4)) drop-shadow(0 0 10px rgba(225,164,244,0.4));
}

/* ---------- Lightbox / carousel for portfolio images ---------- */
.portfolio-card img, .showcase-card img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,11,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
body.modal-open .site-header { z-index: 1; }
.lightbox-content { max-width: 85vw; max-height: 88vh; text-align: center; }
.lightbox-content img {
  max-width: 85vw;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: 8px;
  background: var(--logo-card);
  object-fit: contain;
}
.lightbox-content iframe {
  display: none;
  width: min(85vw, 1100px);
  height: 70vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.lightbox-content.is-embed img { display: none; }
.lightbox-content.is-embed iframe { display: block; }
.lightbox-content p { color: var(--ink-muted); margin-top: 1rem; font-family: "antina", sans-serif; font-size: 1.3rem; }
.lightbox-note { font-family: inherit !important; font-size: 0.85rem !important; opacity: 0.75; }
.lightbox-opennew { display: inline-block; margin-top: 0.5rem; text-decoration: underline; color: var(--ink-muted); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--ink); font-size: 2.5rem; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.06); border: 2px solid var(--border); color: var(--ink);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: filter 0.3s ease, border-color 0.3s ease;
}
.lightbox-nav:hover {
  border-color: transparent;
  animation: rainbow-border 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(98,239,171,0.4)) drop-shadow(0 0 10px rgba(225,164,244,0.4));
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 2rem; }
  .lightbox-content iframe { width: 100%; height: 60vh; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--ink); }
.footer-wrap {
  max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center;
}
@media (max-width: 800px) { .footer-wrap { grid-template-columns: 1fr; text-align: center; } }
.footer-logo { height: 42px; width: auto; margin-bottom: 0.5rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a:hover, .footer-social a:hover { opacity: 0.7; }
.footer-social { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; }
@media (max-width: 800px) { .footer-social { justify-content: center; } }
.footer-social img { height: 28px; width: 28px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; max-width: 1200px; margin-left: auto; margin-right: auto;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
@media (max-width: 500px) { .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; } }

/* ---------- Terms ---------- */
.legal-content h2 { margin: 2rem 0 0.75rem; text-transform: none; font-family: "antina", sans-serif; font-weight: 400; }
.legal-content p { margin-bottom: 1rem; max-width: 750px; color: var(--ink-muted); }

/* Acumin Condensed and Antina run small and compact, so the whole type scale is lifted 20%.
   Sizes in rem follow this automatically. The hero headline is set in px to stay out of it. */
html { font-size: 120%; }

/* ---------- EOS accent (real estate sections) ---------- */
:root {
  --eos-red: #ae162b;
  --eos-orange: #f97c08;
  --eos-amber: #f8aa02;
  --eos-gradient: linear-gradient(90deg, var(--eos-red), var(--eos-orange), var(--eos-amber));
}

.eos-line {
  width: 100%;
  height: 3px;
  background: var(--eos-gradient);
}

.eos-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  background:
    linear-gradient(#101010, #101010) padding-box,
    var(--eos-gradient) border-box;
  color: #fff;
  font-weight: 600;
  transition: filter 0.3s ease;
}
.eos-btn:hover {
  filter: drop-shadow(0 0 6px var(--eos-orange)) drop-shadow(0 0 16px var(--eos-red));
}
.eos-btn:focus-visible, .rainbow-btn:focus-visible, .listing-link:focus-visible {
  outline: 2px solid var(--eos-amber);
  outline-offset: 3px;
}

/* ---------- Real estate hero ---------- */
.cre-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.cre-hero-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
/* The name is sized from the headline so it always spans the same width as "CONCRETE".
   0.272 matches the two widths; the margin lines up where the two sets of letters start. */
.cre-hero-text { --cre-size: clamp(52px, 8vw, 112px); }
.cre-hero-name {
  font-family: "ambroise-firmin-std", serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: calc(var(--cre-size) * 0.272);
  line-height: 1;
  margin-left: calc(var(--cre-size) * 0.033);
  color: var(--ink);
}
.cre-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1em 0.3em;
  margin-top: 0.0625em;
  font-size: var(--cre-size);
  text-transform: uppercase;
  line-height: 1.05;
}
/* The "+" is drawn, not typed, so it reads as a crossroads rather than a character. */
.cre-plus {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.62em;
  height: 0.62em;
}
.cre-plus::before, .cre-plus::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, var(--eos-red), var(--eos-orange), var(--eos-amber));
  background-size: 0.62em 0.62em;
}
.cre-plus::before { left: 0; right: 0; top: calc(50% - 0.05em); height: 0.1em; background-position: 0 -0.26em; }
.cre-plus::after { top: 0; bottom: 0; left: calc(50% - 0.05em); width: 0.1em; background-position: -0.26em 0; }
.cre-subline {
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink);
}
.cre-title {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}
.cre-pipe { color: var(--eos-orange); padding: 0 0.25em; }
.cre-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.cre-hero-photo img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .cre-hero { min-height: 0; padding: 2.5rem 0 3rem; }
  .cre-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cre-hero-text { --cre-size: clamp(46px, 13vw, 80px); }
  .cre-hero-photo { order: -1; }
  .cre-hero-photo img { max-width: min(280px, 70vw); }
}
@media (max-width: 500px) {
  .cre-hero-buttons a { width: 100%; padding-left: 0.75rem; padding-right: 0.75rem; text-align: center; }
  .cre-pipe { display: none; }
  .cre-brokerage { display: block; }
}

/* ---------- Listing cards ---------- */
.cre-listings { padding-top: 4rem; padding-bottom: 4rem; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #17181A;
  border-bottom: 3px solid transparent;
  border-image: var(--eos-gradient) 1;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
.listing-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 2px solid transparent;
  background:
    linear-gradient(#101010, #101010) padding-box,
    var(--eos-gradient) border-box;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.listing-meta {
  color: var(--eos-amber);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.listing-meta span { padding: 0 0.3em; }
.listing-body h3 { margin-top: 0.4rem; font-size: 2.1rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.listing-area { color: var(--ink-muted); margin-top: 0.25rem; }
.listing-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.listing-facts dt { color: var(--ink-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.listing-facts dd { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.listing-desc { margin-top: 1rem; }
.listing-link { align-self: flex-start; margin-top: 1rem; color: var(--eos-amber); font-weight: 600; }
.listing-link:hover { color: var(--ink); }
.listing-compliance {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* ---------- EOS / compliance footer strip ---------- */
.eos-compliance {
  background: #101010;
  border-top: 3px solid transparent;
  border-image: var(--eos-gradient) 1;
  padding: 1.5rem 0;
}
.eos-compliance-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.eos-logo { width: 190px; height: auto; flex: none; }
.eos-compliance-text { color: var(--ink-muted); font-size: 0.95rem; }
.eho { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }

/* ---------- Anchors clear the sticky header ---------- */
section[id] { scroll-margin-top: 5rem; }

/* ---------- Real estate services ---------- */
.cre-services { overflow: hidden; }
.cre-services::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -180px;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  background: url("/images/eos-sun.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.cre-card { position: relative; overflow: hidden; flex-basis: clamp(280px, 80vw, 420px); }
.cre-card h3 { font-size: clamp(2.1rem, 3.6vw, 2.6rem); }
.cre-services .carousel-btn:hover {
  animation: none;
  border-color: var(--eos-orange);
  filter: drop-shadow(0 0 6px var(--eos-orange));
}
.cre-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eos-gradient);
}
.cre-card p { margin-top: 0.75rem; }

/* ---------- Property, Reimagined ---------- */
.cre-property { max-width: 820px; text-align: center; }
.cre-property p { margin-top: 1rem; }
.eos-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.eos-pills li, .credential-pill.eos {
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--eos-gradient) border-box;
}
.cre-ig-link { margin-top: 2rem; text-align: center; }
.cre-ig-link a { color: var(--eos-amber); font-weight: 600; }
.cre-ig-link a:hover { color: var(--ink); }
/* ---------- About ---------- */
.about-hero { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.about-hero img { height: auto; max-width: 340px; margin: 0 auto; aspect-ratio: 1; object-fit: contain; border-radius: 0; }
.about-hero p { margin-top: 1rem; }
@media (max-width: 800px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero img { max-width: min(280px, 70vw); }
}

/* ---------- Design teaser + design page ---------- */
.design-teaser { max-width: 760px; text-align: center; }
.design-teaser p { margin: 1rem 0 2rem; color: var(--ink-muted); }
.design-hero { min-height: 70vh; }
.design-hero .hero-content { width: 100%; min-width: 0; }
.design-title { margin-top: 1.5rem; font-size: clamp(2rem, 6vw, 4rem); }

/* ---------- Contact form ---------- */
.contact-intro { margin: 1.5rem 0; color: var(--ink-muted); }
.form-label { font-weight: 600; margin-bottom: -0.5rem; }
.contact-form select {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--card);
  color: var(--ink);
  color-scheme: dark;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible {
  outline: 2px solid var(--eos-amber);
  outline-offset: 1px;
}
.form-status { padding: 0.75rem 1rem; border: 1px solid var(--eos-orange); border-radius: 8px; }
.contact-form .eos-btn { align-self: flex-start; }

/* ---------- Listing card with no photo ---------- */
.listing-photo-empty img { width: 38%; height: auto; object-fit: contain; }

/* ---------- Instagram carousel: one endless, slowly moving strip ---------- */
.ig-strip {
  margin-top: 3rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ig-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: ig-scroll var(--ig-duration, 60s) linear infinite;
}
.ig-strip:hover .ig-track, .ig-strip:focus-within .ig-track { animation-play-state: paused; }
.ig-post { flex: none; display: block; width: clamp(200px, 22vw, 300px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; }
/* The track holds the posts twice, so sliding exactly half its width loops with no jump. */
@keyframes ig-scroll {
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

/* ---------- Screen-reader-only text ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Clickable listing cards ---------- */
.listing-card { position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); border-color: rgba(249, 124, 8, 0.5); }
.listing-card:focus-within { outline: 2px solid var(--eos-amber); outline-offset: 3px; }
.listing-open {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.listing-open:focus-visible { outline: none; }
/* Stretches the title button over the whole card, so a click anywhere opens it. */
.listing-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.listing-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Branded placeholder when a listing has no photo ---------- */
.listing-photo-empty {
  flex-direction: column;
  gap: 0.75rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(249, 124, 8, 0.12), transparent 65%),
    #17181A;
}
.listing-photo-empty img { width: 58%; max-width: 260px; height: auto; object-fit: contain; }
.listing-photo-note { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Under the listings ---------- */
.listings-all { margin-top: 2.5rem; text-align: center; }

/* ---------- Listing details popup ---------- */
.listing-modal {
  width: min(760px, calc(100% - 2rem));
  max-width: none;
  max-height: min(92vh, 1100px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.listing-modal::backdrop { background: rgba(10, 10, 11, 0.85); }
.listing-modal-inner { position: relative; }
.listing-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(#101010, #101010) padding-box,
    var(--eos-gradient) border-box;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.listing-modal-close:focus-visible, .listing-modal-actions > :focus-visible {
  outline: 2px solid var(--eos-amber);
  outline-offset: 3px;
}
.listing-modal-photo { aspect-ratio: 16 / 9; }
.listing-modal-body { padding: 1.75rem 2rem 2rem; }
.listing-modal-body h2 {
  font-family: "antina", sans-serif;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.listing-modal-facts { margin-top: 1.25rem; }
.listing-modal-desc { margin-top: 1.25rem; }
.listing-modal-body .listing-compliance { padding-top: 1.5rem; }
/* The buttons stay pinned to the bottom of the popup while the details scroll. */
.listing-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem -2rem -2rem;
  padding: 1rem 2rem 1.25rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.listing-modal-actions .eos-btn { font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.listing-modal-actions [hidden] { display: none; }

@media (max-width: 600px) {
  .listing-modal {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .listing-modal-photo { aspect-ratio: 4 / 3; }
  .listing-modal-body { padding: 1.5rem 1.25rem 2rem; }
  .listing-modal-actions { margin: 1.5rem -1.25rem -2rem; padding: 0.85rem 1.25rem 1.25rem; gap: 0.75rem; }
  .listing-modal-actions { gap: 0.5rem; }
  .listing-modal-actions .eos-btn { width: 100%; padding-top: 0.6rem; padding-bottom: 0.6rem; }
}

/* The hidden attribute always wins over display rules above. */
[hidden] { display: none !important; }
