/* DDA design system — "Cinematic Modern" (docs/superpowers/specs/2026-10-24-public-site-redesign-design.md).
   Loaded on every page after the original stylesheets. Every class starts with `ds-`, so nothing here can collide with the
   original site.css that pages not yet redesigned still use. Header / footer: dda-ds-chrome.css. Home layouts: dda-ds-home.css. */

/* ===== Tokens ============================================================================================================ */
:root {
  --ds-bg: #ffffff;
  --ds-surface: #f6f6f4;
  --ds-surface-2: #efede8;
  --ds-line: #e7e5e0;
  --ds-ink: #111111;
  --ds-ink-2: #4d4b47;
  --ds-ink-3: #8a8780;
  --ds-gold: var(--primary-color, #d4af37);
  --ds-gold-strong: #b8922c;
  --ds-gold-strong: color-mix(in srgb, var(--ds-gold) 78%, #3a2a00);
  --ds-gold-soft: #f0d27a;
  --ds-on-gold: var(--button-text-color, #111111);
  --ds-night: #0f0f10;
  --ds-night-2: #17171a;
  --ds-radius-s: 12px;
  --ds-radius: 20px;
  --ds-radius-l: 26px;
  --ds-shadow: 0 10px 30px rgba(17, 17, 17, .08);
  --ds-shadow-float: 0 30px 70px rgba(17, 17, 17, .18);
  --ds-ease: cubic-bezier(.22, 1, .36, 1);
  --ds-container: 1280px;
  --ds-gutter: clamp(20px, 4vw, 56px);
  --ds-section: clamp(64px, 8vw, 104px);
  --ds-font: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ds-serif: "Playfair Display", Georgia, serif;
  --ds-header-h: 76px;
}
html[data-site-theme="dark"] {
  --ds-bg: #0f0f10;
  --ds-surface: #17171a;
  --ds-surface-2: #1e1e22;
  --ds-line: #2a2a2f;
  --ds-ink: #f3f1ec;
  --ds-ink-2: #c4c1ba;
  --ds-ink-3: #8f8c86;
  --ds-gold-strong: var(--ds-gold);
  --ds-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --ds-shadow-float: 0 30px 70px rgba(0, 0, 0, .5);
}

/* ===== Layout ============================================================================================================ */
.ds-container {
  width: 100%;
  max-width: calc(var(--ds-container) + 2 * var(--ds-gutter));
  margin: 0 auto;
  padding: 0 var(--ds-gutter);
}
.ds-section {
  position: relative;
  padding: var(--ds-section) 0;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-family: var(--ds-font);
}
.ds-section--surface { background: var(--ds-surface); }
/* The original site.css forces the padding of every <section> with !important (56px between 769 and 1400 px wide, 48-60px
   on phones). Redesigned sections keep their own spacing: `:not(#ds)` gives these rules the higher specificity needed. */
section.ds-section:not(#ds) { padding-top: var(--ds-section) !important; padding-bottom: var(--ds-section) !important; }
section.ds-hero:not(#ds),
section.ds-pagehead:not(#ds),
section.ds-cta:not(#ds) { padding: var(--ds-pad) !important; }
.ds-section-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ===== Buttons & chips =================================================================================================== */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 14px/1 var(--ds-font);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ds-ease), box-shadow .35s var(--ds-ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.ds-btn:hover { transform: translateY(-2px); }
.ds-btn:active { transform: translateY(0) scale(.98); }
.ds-btn i { font-size: .92em; transition: transform .35s var(--ds-ease); }
.ds-btn:hover .fa-arrow-right { transform: translateX(4px); }
.ds-btn--gold {
  background: var(--button-color, var(--ds-gold));
  color: var(--ds-on-gold);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ds-gold) 32%, transparent);
}
.ds-btn--gold:hover {
  background: var(--button-hover-color, var(--ds-gold));
  color: var(--button-hover-text-color, var(--ds-on-gold));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--ds-gold) 45%, transparent);
}
.ds-btn--dark { background: var(--ds-ink); color: var(--ds-bg); }
.ds-btn--dark:hover { box-shadow: 0 14px 30px rgba(17, 17, 17, .22); }
.ds-btn--outline { background: transparent; border-color: var(--ds-line); color: var(--ds-ink); }
.ds-btn-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ds-surface-2); font: 700 11.5px/1 var(--ds-font); color: var(--ds-ink-2); }
.ds-btn--outline:hover { border-color: var(--ds-ink); }
.ds-btn--glass {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.ds-btn--sm { min-height: 42px; padding: 0 20px; font-size: 13px; }

.ds-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-chip {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font: 600 13px/1 var(--ds-font);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--ds-ease);
}
.ds-chip:hover { border-color: var(--ds-ink); }
.ds-chip.is-active { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-bg); }

.ds-btn:focus-visible,
.ds-chip:focus-visible,
.ds-arrow:focus-visible,
.ds-carousel-track:focus-visible,
.ds-pcard-hit:focus-visible,
.ds-pcard-share:focus-visible {
  outline: 2px solid var(--ds-gold);
  outline-offset: 3px;
}

/* ===== Headings ========================================================================================================== */
.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 12px/1.2 var(--ds-font);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ds-gold-strong);
}
.ds-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; flex: none; }
.ds-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.ds-heading--center { flex-direction: column; align-items: center; text-align: center; }
.ds-heading-text { max-width: 780px; }
.ds-section .ds-title,
.ds-title {
  margin: 16px 0 0;
  font: 700 clamp(30px, 4.1vw, 48px)/1.08 var(--ds-font);
  letter-spacing: -.03em;
  color: var(--ds-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.ds-heading-text > .ds-title:first-child { margin-top: 0; }
.ds-heading--light .ds-title { color: #fff; }
.ds-heading--light .ds-eyebrow { color: var(--ds-gold-soft); }
.ds-lead { margin: 0 0 16px; font: 400 16px/1.8 var(--ds-font); color: var(--ds-ink-2); }

/* ===== Motion ============================================================================================================ */
.ds-reveal {
  transition: opacity .9s var(--ds-ease), transform .9s var(--ds-ease);
  transition-delay: var(--ds-delay, 0ms);
}
.ds-motion .ds-reveal:not([data-in]) { opacity: 0; transform: translateY(28px); }
@keyframes ds-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ds-marquee { to { transform: translateX(-50%); } }
@keyframes ds-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
@keyframes ds-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ===== Carousel ========================================================================================================== */
.ds-carousel { --ds-per: 3; --ds-gap: 24px; position: relative; }
.ds-carousel--2 { --ds-per: 2; }
.ds-carousel--4 { --ds-per: 4; }
.ds-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--ds-per) - 1) * var(--ds-gap)) / var(--ds-per));
  column-gap: var(--ds-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 12px 4px 36px;
  margin: -12px -4px -36px;
  outline: none;
}
.ds-carousel-track::-webkit-scrollbar { display: none; }
.ds-carousel-slide { min-width: 0; scroll-snap-align: start; }
.ds-carousel-slide > * { height: 100%; }
.ds-carousel-foot { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.ds-carousel-progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--ds-line); overflow: hidden; }
.ds-carousel-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 2px; background: var(--ds-ink); }
.ds-carousel-arrows { display: flex; gap: 10px; }
.ds-arrow {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--ds-line);
  border-radius: 50%;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-size: 15px;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .35s var(--ds-ease), opacity .25s ease;
}
.ds-arrow:hover:not(:disabled) { background: var(--ds-gold); border-color: var(--ds-gold); color: var(--ds-on-gold); transform: scale(1.06); }
.ds-arrow:disabled { opacity: .35; cursor: default; }
.ds-carousel.is-static .ds-carousel-foot { display: none; }
.ds-section--surface .ds-arrow { background: var(--ds-bg); }
@media (max-width: 1180px) { .ds-carousel--4 { --ds-per: 3; } }
@media (max-width: 1024px) { .ds-carousel { --ds-per: 2; } }
@media (max-width: 640px) {
  .ds-carousel { --ds-per: 1.12; --ds-gap: 14px; }
  .ds-carousel-foot { margin-top: 22px; }
  .ds-arrow { width: 44px; height: 44px; }
}
/* Phones and laptops: the arrows sit on the left, clear of the floating call / WhatsApp / Telegram buttons on the right edge
   (only wide screens leave room for them on the right). */
@media (max-width: 1700px) { .ds-carousel-arrows { order: -1; } }

/* ===== Scroll scrub (ScrollScrub: the section pins while the page scroll slides its carousel) ============================ */
.ds-scrub.is-scrub > .ds-scrub-pin {
  position: sticky;
  top: min(var(--ds-header-h), calc(100vh - var(--ds-pin-h, 100vh)));
  top: min(var(--ds-header-h), calc(100dvh - var(--ds-pin-h, 100dvh)));
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--ds-header-h));
  min-height: calc(100dvh - var(--ds-header-h));
}
/* The pinned section fills at least the screen under the header (nothing of the page behind shows around it). */
.ds-scrub.is-scrub > .ds-scrub-pin > section { display: flex; flex: 1 0 auto; flex-direction: column; justify-content: center; }
.ds-scrub.is-scrub > .ds-scrub-pin > section > .ds-container { flex: none; }
.ds-scrub-spacer { height: 0; }
.ds-scrub.is-scrub > .ds-scrub-spacer { height: var(--ds-scrub-length, 0px); }
.ds-carousel-track.is-scrubbing { scroll-snap-type: none; }
/* Short laptop screens: slightly lower cards, so the heading and the cards fit on the screen together while pinned. */
@media (min-width: 900px) {
  .ds-scrub.is-scrub .ds-carousel--4 .ds-pcard { height: clamp(320px, min(30vw, 100vh - 330px), 440px); }
}

/* ===== Property card ===================================================================================================== */
.ds-pcard {
  position: relative;
  display: block;
  height: clamp(420px, 34vw, 480px);
  border-radius: var(--ds-radius-l);
  overflow: hidden;
  background: #1b1b1d;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--ds-shadow);
  transition: transform .6s var(--ds-ease), box-shadow .6s var(--ds-ease);
}
.ds-pcard:hover { transform: translateY(-6px); box-shadow: var(--ds-shadow-float); }
.ds-pcard-media { position: absolute; inset: 0; z-index: -2; }
.ds-pcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ds-ease); }
.ds-pcard:hover .ds-pcard-media img { transform: scale(1.07); }
.ds-pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .88) 100%);
  pointer-events: none;
}
.ds-pcard-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ds-pcard-top {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.ds-pcard-badge {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ds-gold);
  color: var(--ds-on-gold);
  font: 700 12px/1 var(--ds-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-pcard-share {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .25s ease, transform .3s var(--ds-ease);
}
.ds-pcard-share:hover { background: rgba(255, 255, 255, .32); transform: scale(1.08); }
.ds-pcard-body { position: absolute; left: 22px; right: 22px; bottom: 22px; pointer-events: none; }
.ds-pcard-type {
  display: inline-block;
  margin-bottom: 10px;
  font: 600 11px/1 var(--ds-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ds-gold-soft);
}
.ds-section .ds-pcard-title,
.ds-pcard-title {
  margin: 0;
  font: 700 21px/1.25 var(--ds-font);
  letter-spacing: -.01em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-pcard-location {
  margin: 8px 0 0;
  font: 400 13px/1.45 var(--ds-font);
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-pcard-location i { margin-right: 4px; color: var(--ds-gold-soft); }
.ds-pcard-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.ds-pcard-meta { font: 500 13px/1.3 var(--ds-font); color: rgba(255, 255, 255, .86); white-space: nowrap; }
.ds-pcard-price { margin-left: auto; font: 700 19px/1.2 var(--ds-font); white-space: nowrap; }
/* Four cards per row: a little shorter, slightly smaller text. */
.ds-carousel--4 .ds-pcard { height: clamp(380px, 30vw, 440px); }
.ds-carousel--4 .ds-pcard-body { left: 20px; right: 20px; bottom: 20px; }
.ds-carousel--4 .ds-pcard-title { font-size: 18px; }
.ds-carousel--4 .ds-pcard-price { font-size: 17px; }

/* ===== Marquee =========================================================================================================== */
.ds-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ds-marquee-track { display: flex; width: max-content; animation: ds-marquee var(--ds-marquee-duration, 40s) linear infinite; }
.ds-marquee:hover .ds-marquee-track { animation-play-state: paused; }
.ds-marquee-group { display: flex; align-items: center; flex: none; }
.ds-marquee-item { display: inline-flex; align-items: center; flex: none; }

/* ===== Video card (YouTube) ============================================================================================== */
.ds-video { display: flex; flex-direction: column; height: 100%; color: var(--ds-ink); text-decoration: none; }
.ds-video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ds-radius); overflow: hidden; background: #111; }
.ds-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ds-ease); }
.ds-video:hover .ds-video-thumb img { transform: scale(1.06); }
.ds-video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35)); }
.ds-video-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #e62117;
  font-size: 18px;
  transition: transform .45s var(--ds-ease);
}
.ds-video-play i { margin-left: 3px; }
.ds-video:hover .ds-video-play { transform: scale(1.12); animation: ds-pulse 1.4s ease-out infinite; }
.ds-video .youtube-thumb-fallback { width: 100%; height: 100%; }
.ds-section .ds-video h3,
.ds-video h3 {
  margin: 18px 0 8px;
  font: 700 17px/1.35 var(--ds-font);
  color: var(--ds-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-video p {
  margin: 0;
  font: 400 13.5px/1.6 var(--ds-font);
  color: var(--ds-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-video time { display: block; margin-top: auto; padding-top: 14px; font: 500 12px var(--ds-font); color: var(--ds-ink-3); }
.ds-youtube-title .fa-youtube { margin: 0 4px; color: #ff0000; font-size: .9em; vertical-align: -2px; }

/* ===== Newsletter / contact CTA (home + every page that shows it) ======================================================== */
.ds-cta { position: relative; --ds-pad: clamp(72px, 9vw, 128px) 0; padding: var(--ds-pad); color: #fff; font-family: var(--ds-font); overflow: hidden; isolation: isolate; }
.ds-cta-bg { position: absolute; inset: -10% 0; z-index: -2; background-position: center; background-size: cover; }
.ds-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 10, 12, .88) 0%, rgba(10, 10, 12, .55) 100%); }
.ds-cta-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.ds-cta-form { padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: #fff; color: #111; box-shadow: var(--ds-shadow-float); }
.ds-cta-form .ds-title { color: #111; margin-top: 14px; }
.ds-cta-form .ds-lead { color: #4d4b47; margin-top: 14px; }
.ds-cta .cta-form { display: grid; gap: 14px; margin-top: 8px; }
.ds-cta .form-group-custom { margin: 0; }
.ds-cta .form-group-custom label { display: block; margin-bottom: 7px; font: 600 12px/1 var(--ds-font); letter-spacing: .06em; text-transform: uppercase; color: #8a8780; }
.ds-cta .form-group-custom input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #e7e5e0;
  border-radius: 14px;
  background: #f6f6f4;
  color: #111;
  font: 500 15px var(--ds-font);
  outline: none;
  transition: border-color .25s ease, background-color .25s ease;
}
.ds-cta .form-group-custom input:focus { border-color: var(--ds-gold); background: #fff; }
.ds-cta .intl-phone-input { border-radius: 14px; border-color: #e7e5e0; background: #f6f6f4; min-height: 52px; }
.ds-cta .intl-phone-input input { background: transparent; border: 0; height: 50px; }
.ds-cta .cta-submit-btn {
  height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--button-color, var(--ds-gold));
  color: var(--ds-on-gold);
  font: 700 15px var(--ds-font);
  cursor: pointer;
  transition: transform .35s var(--ds-ease), box-shadow .35s var(--ds-ease);
}
.ds-cta .cta-submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--ds-gold) 45%, transparent); }
.ds-cta .cta-disclaimer { margin: 2px 0 0; font: 400 12px/1.6 var(--ds-font); color: #8a8780; }
.ds-cta .cta-disclaimer a { color: var(--ds-gold-strong); text-decoration: underline; }
.ds-cta-contact {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.ds-cta-contact h3 { margin: 0 0 26px; font: 700 22px/1.2 var(--ds-font); color: #fff; }
.ds-cta-contact ul { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ds-cta-contact li { display: flex; gap: 16px; align-items: flex-start; }
.ds-cta-contact li > i {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: var(--ds-gold-soft);
}
.ds-cta-contact a,
.ds-cta-contact strong { display: block; font: 700 15px/1.45 var(--ds-font); color: #fff; text-decoration: none; }
.ds-cta-contact a:hover { color: var(--ds-gold-soft); }
.ds-cta-contact small { display: block; margin-top: 3px; font: 500 12.5px var(--ds-font); color: rgba(255, 255, 255, .55); }
.ds-cta-social { display: flex; gap: 10px; margin-top: auto; padding-top: 30px; }
.ds-cta-social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .35s var(--ds-ease);
}
.ds-cta-social a:hover { background: var(--ds-gold); border-color: var(--ds-gold); color: var(--ds-on-gold); transform: translateY(-3px); }
@media (max-width: 900px) { .ds-cta-grid { grid-template-columns: minmax(0, 1fr); } }
/* Long unbroken strings (e-mail, address) wrap instead of widening the cards on narrow phones or with large system text. */
.ds-cta-contact li > div { min-width: 0; }
.ds-cta-contact a,
.ds-cta-contact strong,
.ds-cta-form .ds-title { overflow-wrap: anywhere; }
.ds-cta .cta-form > *,
.ds-cta .intl-phone-input { min-width: 0; }

/* ===== Rendering budget ================================================================================================== */
/* Lower blocks (team, reviews, video, blog, newsletter, footer): the browser skips their layout and painting until they come
   near the screen, which keeps the first load and scrolling light on phones. `auto` remembers the real height once rendered.
   (The newsletter block clips its own overflow, so the containment changes nothing visible.) */
.ds-defer,
.ds-cta,
.ds-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* Phones: no frosted-glass blur on small elements repeated in lists and sliders (each one is re-blurred on every frame while
   the page scrolls); a slightly stronger tint keeps them readable. */
@media (hover: none), (max-width: 768px) {
  .ds-pcard-share,
  .ds-member-langs span { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ds-pcard-share { background: rgba(17, 17, 17, .32); }
  .ds-member-langs span { background: rgba(17, 17, 17, .38); }
}

/* ===== Picker (PickerSelect: popover on larger screens, bottom sheet on phones) =========================================== */
.ds-picker-trigger { cursor: pointer; }
.ds-picker-pop {
  position: fixed;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-family: var(--ds-font);
  box-shadow: var(--ds-shadow-float);
  transform-origin: top center;
  animation: ds-picker-pop .22s var(--ds-ease);
}
@keyframes ds-picker-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.ds-picker-layer { position: fixed; inset: 0; z-index: 4000; font-family: var(--ds-font); }
.ds-picker-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, .55); animation: ds-picker-fade .25s ease; }
@keyframes ds-picker-fade { from { opacity: 0; } }
.ds-picker-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: min(78svh, 640px);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--ds-bg);
  color: var(--ds-ink);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
  animation: ds-picker-sheet .34s var(--ds-ease);
}
@keyframes ds-picker-sheet { from { transform: translateY(100%); } }
.ds-picker-grip { align-self: center; width: 40px; height: 4px; margin: 2px 0 6px; border-radius: 4px; background: var(--ds-line); }
.ds-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 12px 10px 22px; }
.ds-picker-head strong { font: 700 17px/1.3 var(--ds-font); letter-spacing: -.01em; }
.ds-picker-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ds-surface);
  color: var(--ds-ink);
  font-size: 17px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.ds-picker-close:hover,
.ds-picker-close:focus-visible { background: var(--ds-surface-2); }
.ds-picker-search { position: relative; flex: none; padding: 10px 12px 6px; }
.ds-picker-sheet .ds-picker-search { padding: 0 16px 8px; }
.ds-picker-search i { position: absolute; top: 50%; left: 30px; margin-top: -1px; transform: translateY(-50%); font-size: 13px; color: var(--ds-ink-3); pointer-events: none; }
.ds-picker-sheet .ds-picker-search i { left: 34px; margin-top: -4px; }
.ds-picker-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  background: var(--ds-surface);
  color: var(--ds-ink);
  font: 500 15px/1 var(--ds-font);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ds-picker-search input:focus { border-color: var(--ds-gold); background: var(--ds-bg); }
.ds-picker-list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.ds-picker-sheet .ds-picker-list { padding: 4px 10px; }
.ds-picker-group { padding: 12px 12px 6px; font: 700 11px/1.2 var(--ds-font); letter-spacing: .14em; text-transform: uppercase; color: var(--ds-gold-strong); }
.ds-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  font: 500 14.5px/1.35 var(--ds-font);
  color: var(--ds-ink);
  cursor: pointer;
  transition: background-color .15s ease;
}
.ds-picker-sheet .ds-picker-option { min-height: 50px; font-size: 15.5px; }
.ds-picker-option.is-active { background: var(--ds-surface); }
.ds-picker-option.is-selected { font-weight: 700; }
.ds-picker-option i { flex: none; font-size: 13px; color: var(--ds-gold-strong); }
.ds-picker-empty { padding: 18px 12px; font: 500 14px var(--ds-font); color: var(--ds-ink-3); }
@media (hover: hover) { .ds-picker-option:hover { background: var(--ds-surface); } }

/* ===== Loading skeleton & empty state inside redesigned sections ========================================================= */
.ds-skeleton-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ds-skeleton {
  height: 440px;
  border-radius: var(--ds-radius-l);
  background: linear-gradient(90deg, var(--ds-surface) 25%, var(--ds-surface-2) 37%, var(--ds-surface) 63%);
  background-size: 400% 100%;
  animation: ds-shimmer 1.4s ease infinite;
}
@media (max-width: 900px) { .ds-skeleton-row { grid-template-columns: 1fr; } .ds-skeleton:nth-child(n + 2) { display: none; } }
.ds-section .page-empty-state { border-radius: var(--ds-radius); background: var(--ds-surface); color: var(--ds-ink-2); }

/* ===== Reduced motion ==================================================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ds-reveal { transition: none !important; }
  .ds-motion .ds-reveal:not([data-in]) { opacity: 1; transform: none; }
  [class*="ds-"],
  [class*="ds-"]::before,
  [class*="ds-"]::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
