/* =========================================================
   Mijaks – prototype stylesheet
   Palette and type families carried over from the current
   site (Montserrat / Playfair Display, charcoal + neutrals),
   with tightened contrast and a wider spacing scale.
   ========================================================= */

:root {
  --ink:        #1c1d20;
  --ink-soft:   #2d2e33;
  --primary:    var(--ink);
  --secondary:  var(--ink-soft);
  --body:       #55565c;
  --muted:      #85868c;
  --line:       #e5e5e7;
  --bg:         #ffffff;
  --bg-alt:     #f7f7f7;

  /* Status badge labels — overridden from Customizer → Barve */
  --sold:       #6c6d74;
  --ready:      #2f9e5f;
  --planned:    #b7791f;

  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(28,29,32,.06), 0 12px 32px rgba(28,29,32,.08);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--ink); text-decoration: none; }

/* A link inside running text: same colour as the words around it, so the
   underline is the only thing that says "clickable". */
.text-link,
.text-link:hover {
  color: inherit;
}
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: rgba(28, 29, 32, .35);
  transition: text-decoration-color .2s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-size: .9rem;
}
.skip-link:focus { left: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); transform: translateY(-1px); }

.btn-sm { padding: 10px 22px; font-size: .72rem; }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: rgba(255,255,255,.86); border-color: transparent; color: var(--ink); }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.btn.is-static { cursor: default; opacity: .85; }
.btn.is-static:hover { transform: none; }

/* A secondary button a phone has no room for. */
@media (max-width: 639px) {
  .btn.hide-mobile { display: none; }
}

/* ---------- Badges ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.1rem; }

.badge {
  display: inline-block;
  padding: 5px 11px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--sold);
  border-radius: 2px;
  white-space: nowrap;
}
.badge-sold    { background: var(--sold); }
.badge-ready   { background: var(--ready); }
.badge-planned { background: var(--planned); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,29,32,.55), transparent);
  opacity: 1;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
/* .is-stuck is toggled by scroll on hero pages; .is-solid is set in the markup
   on inner pages, which have no hero for a transparent bar to sit over. */
.site-header.is-stuck,
.site-header.is-solid { background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header.is-stuck::after,
.site-header.is-solid::after { opacity: 0; }

/* Room for the fixed bar — only on pages with nothing for it to sit over.
   Over a hero the bar floats on the image instead, so no room is made. */
.site-header.is-solid:not(.over-hero) + main { padding-top: var(--header-h); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Room for a second mark beside the wordmark; with none set the row holds
   just the one logo and takes its width. */
.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.logo-img {
  display: block;
  width: 150px;
  height: auto;
}
/* The second mark is a round emblem, so it is sized by height, not width.
   The header bar is 64px tall, so this is about as large as it can go there. */
.logo-secondary {
  width: auto;
  height: 52px;
  flex: none;
}
/* Over the hero: light logo. On white bar (scroll / inner pages): solid logo. */
.logo-img--on-light { display: none; }
.site-header.is-stuck .logo-img--on-dark,
.site-header.is-solid .logo-img--on-dark { display: none; }
.site-header.is-stuck .logo-img--on-light,
.site-header.is-solid .logo-img--on-light { display: block; }

.nav-list { list-style: none; margin: 0; padding: 0; }

.nav-list > li > a {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sub-menu a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ---------- Desktop nav ---------- */

@media (min-width: 1180px) {
  /* Items stretch to the full header height so every label shares one centre
     line and the dropdown can hang off the header's bottom edge. */
  .nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); align-self: stretch; }
  .nav-list {
    display: flex;
    align-items: stretch;
    gap: clamp(16px, 1.7vw, 24px);
    align-self: stretch;
  }

  .nav-list > li { position: relative; display: flex; align-items: center; }

  .nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    position: relative;
    color: #fff;
    white-space: nowrap;
  }
  /* A step softer than body text at rest; hover and the current page go to full
     ink, which the underline picks up on its own through currentColor. */
  .site-header.is-stuck .nav-list > li > a,
  .site-header.is-solid .nav-list > li > a { color: var(--body); }
  .site-header.is-stuck .nav-list > li > a:hover,
  .site-header.is-solid .nav-list > li > a:hover,
  .site-header.is-stuck .nav-list > li > a.is-current,
  .site-header.is-solid .nav-list > li > a.is-current { color: var(--ink); }

  /* Underline tracks the text, not the full-height item box. */
  .nav-list > li > a::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: calc(50% + 11px);
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav-list > li > a:hover::before,
  .nav-list > li > a.is-current::before { transform: scaleX(1); }

  /* Chevron rides inside the anchor's flex row, so it can't wrap to its own line. */
  .has-sub > a::after {
    content: "";
    flex: none;
    width: 5px; height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s var(--ease);
  }
  .has-sub:hover > a::after,
  .has-sub:focus-within > a::after { transform: translateY(1px) rotate(-135deg); }

  .sub-toggle { display: none; }

  .sub-menu {
    position: absolute;
    top: 100%; left: -20px;
    min-width: 240px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--body);
    white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .sub-menu a:hover { background: var(--bg-alt); color: var(--ink); }

  /* Over the hero the CTA needs to read light; the mobile drawer keeps it solid. */
  .site-header:not(.is-stuck):not(.is-solid) .nav-cta {
    background: transparent;
    border-color: rgba(255,255,255,.6);
    color: #fff;
  }
  .site-header:not(.is-stuck):not(.is-solid) .nav-cta:hover {
    background: rgba(255,255,255,.14);
    border-color: #fff;
  }

  .burger { display: none; }
}

/* ---------- Mobile nav ---------- */

@media (max-width: 1179px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    padding: calc(var(--header-h) + 20px) 28px 40px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .32s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateX(0); }

  .nav-list > li { border-bottom: 1px solid var(--line); position: relative; }
  .nav-list > li > a { display: block; padding: 15px 0; color: var(--body); }
  .nav-list > li > a.is-current { color: var(--ink); }

  .sub-toggle {
    position: absolute;
    top: 4px; right: -8px;
    width: 44px; height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .sub-toggle::before,
  .sub-toggle::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 11px; height: 1.5px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform .25s var(--ease);
  }
  .sub-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0); }

  .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .sub-menu.is-open { max-height: 320px; }
  .sub-menu a {
    display: block;
    padding: 11px 0 11px 16px;
    color: var(--body);
    font-weight: 500;
  }

  .nav-cta { margin-top: 26px; width: 100%; }

  .burger {
    width: 44px; height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 60;
  }
  .burger span {
    width: 24px; height: 2px;
    background: #fff;
    transition: transform .28s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
  }
  .site-header.is-stuck .burger span,
  .site-header.is-solid .burger span,
  .burger[aria-expanded="true"] span { background: var(--ink); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(28,29,32,.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; }
}

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

.hero {
  position: relative;
  /* Nearly the whole screen — the sliver that stays visible below is what
     tells a visitor there is more page. svh, not vh, so mobile browser chrome
     appearing does not crop the slide; the vh line is the fallback. */
  height: clamp(560px, 92vh, 1000px);
  height: clamp(560px, 96svh, 1000px);
  overflow: hidden;
  background: var(--ink);
}

.hero-track { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.slide.is-active .slide-img { transform: scale(1); }

.slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28,29,32,.82) 0%, rgba(28,29,32,.35) 45%, rgba(28,29,32,.15) 100%);
}

.slide-body {
  position: relative;
  padding-bottom: clamp(64px, 9vh, 120px);
  color: #fff;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: .9rem;
}

.slide-title {
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem);
  color: #fff;
  max-width: 17ch;
  margin-bottom: .6rem;
}

/* Same lead as the project-page hero; sits under the title, above the CTA. */
.slide-body .project-lead { margin-bottom: 1.8rem; }

/* slider controls */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: none;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(28,29,32,.2);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.hero-arrow:hover { background: rgba(28,29,32,.55); border-color: #fff; }
.hero-arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}
.hero-arrow.prev { left: 24px; }
.hero-arrow.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.hero-arrow.next { right: 24px; }
.hero-arrow.next::before { transform: translate(-65%, -50%) rotate(45deg); }

@media (min-width: 900px) { .hero-arrow { display: block; } }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dots button {
  width: 32px; height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .25s var(--ease);
}
.hero-dots button[aria-selected="true"] { background: #fff; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .lead {
  font-size: 1.075rem;
  color: var(--body);
  margin: 0;
}

/* ---------- Project grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.card { display: flex; flex-direction: column; }

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }

.card-media .badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1;
  margin-bottom: 0; /* .badges default margin is for the hero, not the card */
}

.card-body { padding-top: 20px; }

.card-title { margin-bottom: .25rem; font-size: 1.3rem; }
.card-title a { transition: opacity .2s var(--ease); }
.card:hover .card-title a { opacity: .72; }

.card-meta {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .9rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}
.card-link::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.card:hover .card-link::after { width: 30px; }
.card-link.is-muted { color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: clamp(52px, 6vw, 84px) 0;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; }

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 860px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
}

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

.site-footer {
  background: var(--bg-alt);
  padding: clamp(48px, 6vw, 76px) 0 0;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.footer-logo { width: 140px; }
.footer-logo-secondary { width: auto; height: 72px; }

.footer-text { color: var(--body); margin: 0; }

/* Business register identifiers — required on a commercial site, but they are
   reference data, so they sit a step quieter than the address above them. */
.footer-ids {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}

.footer-head {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-list a { color: var(--body); transition: color .2s var(--ease); }
.footer-list a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* Copyright and the build credit stay together on the left, so the legal links
   keep the far right rather than the credit landing in the middle of the row. */
.footer-bottom-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}
.footer-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.footer-credit a:hover { color: var(--ink); }

.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }

/* =========================================================
   Inner pages
   ========================================================= */

.section-alt { background: var(--bg-alt); }

.eyebrow-dark { color: var(--muted); }

.section-head-wide { max-width: 780px; }

/* An emblem in a split column beside the text: never cropped, and capped so it
   does not swell to the full half-width on a wide screen. */
/* Two classes, so this beats .split-media img further down the file. */
.split-media.split-media-mark img {
  width: clamp(170px, 20vw, 260px);
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 0;
}

/* A text-only section — the head is all there is, so no gap below it. */
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center:last-child { margin-bottom: 0; }
.section-head-center .cta-actions { justify-content: center; margin-top: 1.6rem; }

/* ---------- Breadcrumb ---------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: .55;
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.breadcrumb-dark ol { color: var(--muted); }
.breadcrumb-dark a:hover { color: var(--ink); }

/* ---------- Project hero ---------- */

.project-hero {
  position: relative;
  min-height: clamp(440px, 66vh, 660px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

@media (min-width: 900px) {
  .project-hero {
    min-height: clamp(560px, 82vh, 880px);
  }
}

.project-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,29,32,.88) 0%, rgba(28,29,32,.4) 50%, rgba(28,29,32,.2) 100%);
}

.project-hero-body {
  position: relative;
  /* Clears the fixed bar floating above: on narrow screens the caption grows
     tall enough to fill the frame, and a flat 56px left the breadcrumb under it. */
  padding-block: calc(var(--header-h) + 24px) clamp(48px, 7vh, 86px);
  color: #fff;
}
.project-hero-body h1 { color: #fff; margin-bottom: .6rem; }

.project-lead {
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  color: rgba(255,255,255,.86);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.project-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Project slider ---------- */

/* Sits on .project-hero and borrows the homepage slider's .slide, .slide-img,
   .hero-track, .hero-arrow and .hero-dots rules — same component, taller frame,
   with the title held still over the rotating images. */

.project-slider .project-hero-body {
  /* Clear the dots, which the still hero has no need to allow for. */
  padding-bottom: clamp(68px, 8vh, 104px);
}

.project-slider .hero-dots { bottom: 22px; }

/* ---------- Page head (text-only pages) ---------- */

.page-head {
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .5rem; }

.page-lead {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.28rem);
  color: var(--body);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Legal pages (privacy policy, cookies) ---------- */

/* Long-form running text, narrower than the grid so the measure stays readable. */

.legal-inner { max-width: 760px; }

.legal-updated {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.legal h2 {
  font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem);
  margin: 2.8rem 0 .9rem;
  /* Anchors from the table of contents land under the fixed header otherwise. */
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal-toc + h2 { margin-top: 0; }

.legal h3 {
  font-size: 1.05rem;
  margin: 1.9rem 0 .5rem;
}

.legal ul, .legal ol { margin: 0 0 1rem; padding-left: 1.15rem; }
.legal li { margin-bottom: .45rem; }
.legal li:last-child { margin-bottom: 0; }

.legal a { text-decoration: underline; text-underline-offset: .2em; }
.legal a:hover { color: var(--body); }

.legal-toc {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: clamp(40px, 5vw, 56px);
}
.legal-toc-head {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .7rem;
}
.legal-toc ol { margin: 0; }
.legal-toc li { margin-bottom: .25rem; font-size: .92rem; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

.legal-card {
  font-style: normal;
  padding: 18px 24px;
  margin: 0 0 1.4rem;
  border-left: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-alt);
  line-height: 1.9;
}
.legal-card strong { color: var(--ink); }

.legal-table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .88rem;
}
.legal-table th, .legal-table td {
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal-table thead th {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--ink);
}
.legal-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- Facts strip ---------- */

.facts { border-bottom: 1px solid var(--line); background: #fff; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.fact { padding: 26px 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 26px; }

.fact dl { margin: 0; }
.fact dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.fact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.35;
}

@media (max-width: 639px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 20px 0; }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .fact:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }

  /* Per page: on a phone the strip pushes the first section below the fold. */
  .facts-hide-mobile { display: none; }
}

/* ---------- Split text / media ---------- */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-text > :last-child { margin-bottom: 0; }
.split-text h2 { margin-bottom: .8rem; }

/* A container following a split carries the gap the section head used to give. */
.container-gap { margin-top: clamp(40px, 5vw, 64px); }

.split-media { margin: 0; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse .split-text { order: 2; }
  .split-reverse .split-media { order: 1; }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 3 / 2;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

/* Small print under a section heading (galleries, 3D tour): renders and
   furnishing are only indicative. */
.section-note {
  margin: .5rem 0 0;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery-item { grid-column: span 2; }
  .gallery-item.is-wide { grid-column: span 6; aspect-ratio: 21 / 9; }
}

/* A list that runs under a split instead of inside its text column — keeps the
   text from towering over the image beside it. */
.feature-lead {
  margin: clamp(30px, 4vw, 48px) 0 .9rem;
  color: var(--body);
}

/* ---------- In-page section nav ---------- */

.section-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  /* Reads as a layer sitting above the page rather than a line drawn on it. */
  box-shadow: 0 6px 20px rgba(28, 29, 32, .07);
}

.section-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-nav-inner::-webkit-scrollbar { display: none; }

.section-nav-link {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 18px 16px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.section-nav-link:hover { color: var(--ink); }
.section-nav-link:first-child { padding-left: 0; }

/* Underline the section you are actually in; it is drawn on a pseudo-element
   so the label itself never shifts. */
.section-nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .2s var(--ease);
}
.section-nav-link.is-current { color: var(--ink); font-weight: 600; }
.section-nav-link:first-child::after { left: 0; }
.section-nav-link.is-current::after { transform: scaleX(1); }

/* Anchored scrolling has to clear the fixed header and this bar. */
[id="o-projektu"],
[id="lokacija"],
[id="izberi-stanovanje"],
[id="sprehod"],
[id="galerija"],
[id="notranjost"],
[id="povprasevanje"],
[id="obrazec"],
[id="stanovanja"],
[id="arhitektura"] {
  scroll-margin-top: calc(var(--header-h) + 60px);
}

/* ---------- 3D tour ---------- */

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tour-tab {
  font: inherit;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tour-tab:hover { border-color: var(--ink); color: var(--ink); }
.tour-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.tour-label {
  margin: 0 0 12px;
  font-size: .85rem;
  color: var(--body);
}

/* The frame keeps its size before and after the embed drops in, so starting
   the tour never shifts the page under the visitor.
   No min-height next to aspect-ratio: the browser carries a minimum height
   across the ratio into a minimum width, and the frame grows wider than the
   screen (380px high at 4:3 is 507px wide). Phones get a fixed height instead. */
.tour-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.tour-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(28,29,32,.25), rgba(28,29,32,.6));
}
.tour-note { margin: 0; font-size: .82rem; color: rgba(255,255,255,.85); }
.tour-note a { color: #fff; text-decoration: underline; }

.tour-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tour-frame.is-playing .tour-poster,
.tour-frame.is-playing .tour-overlay { display: none; }

@media (max-width: 767px) {
  .tour-frame { aspect-ratio: auto; height: 420px; }
}

/* ---------- Units ---------- */

.floor + .floor { margin-top: clamp(40px, 5vw, 64px); }

.floor-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
}
.floor-title span {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.unit {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.unit:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.unit-plan {
  display: block;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  padding: 12px;
}
.unit-plan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.unit-plan-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.unit-body {
  display: block;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.unit-code {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
}

.unit-type {
  display: block;
  font-size: .84rem;
  color: var(--body);
  margin-bottom: .7rem;
}

.unit-specs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .78rem;
  color: var(--muted);
}

.floor-note {
  margin-top: 28px;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.person {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person-name { font-size: 1.2rem; margin-bottom: .2rem; }
.person-role {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.person-contact { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.person-contact li { margin-bottom: .35rem; }
.person-contact a { color: var(--body); }
.person-contact a:hover { color: var(--ink); text-decoration: underline; }

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

.contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card { font-style: normal; }
.contact-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.contact-card p { color: var(--body); margin-bottom: 1.4rem; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span {
  flex: 0 0 88px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .2rem;
}
.contact-list a { color: var(--ink); }
.contact-list a:hover { text-decoration: underline; }

.contact-map {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  overflow: hidden;
  align-self: stretch;
}
.contact-map iframe {
  position: absolute;
  inset: 0 0 -56px 0;
  width: 100%;
  height: calc(100% + 56px);
  border: 0;
}
.map-link {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: .45rem .75rem;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.map-link:hover {
  background: #fff;
  text-decoration: underline;
}

/* ---------- Contact form ---------- */

.form-wrap { max-width: 820px; }

.form-flat {
  margin: 0 0 18px;
  padding: 10px 16px;
  font-size: .9rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--ink);
}

.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field.is-full { grid-column: 1 / -1; }
}

.form-field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-optional {
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--ink); }

.form-field.has-error input,
.form-field.has-error textarea { border-color: #b3261e; }
.form-error { display: block; margin-top: .35rem; font-size: .8rem; color: #b3261e; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 24px;
}
.form-privacy { flex: 1 1 320px; margin: 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.form-privacy a { color: var(--body); text-decoration: underline; }

.form-notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.form-notice p { margin: 0; }
.form-notice a { text-decoration: underline; }
.form-notice.is-success { border-color: var(--ready); background: rgba(47, 158, 95, .07); text-align: center; }
.form-notice.is-error { border-color: #b3261e; background: rgba(179, 38, 30, .05); }

/* ---------- Floating call button ---------- */

/* Below the mobile-menu backdrop (40) and the lightbox (90), above content.
   The white ring keeps a dark button visible over the dark hero. */
.call-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  min-width: 64px;
  padding: 0 24px 0 20px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), var(--shadow);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.call-fab:hover { background: var(--ink-soft); color: #fff; transform: translateY(-2px); }
.call-fab-icon { flex: 0 0 auto; width: 25px; height: 25px; }
.call-fab-label { white-space: nowrap; }

@media (max-width: 639px) {
  .call-fab { justify-content: center; padding: 0; }
  .call-fab-label { display: none; }
}

/* ---------- Press / V medijih ---------- */

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}
.section-head-row h2 { margin-bottom: 0; }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.press-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.press-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.press-pub {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .3rem;
}

.press-date {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: .9rem;
}

.press-headline {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--body);
  margin: 0 0 1.3rem;

  /* Clamp long clipping summaries so cards keep a consistent height */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.press-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.press-link::after {
  content: "";
  width: 16px; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.press-card:hover .press-link::after { width: 28px; }
.press-link.is-muted { color: var(--muted); pointer-events: none; }
.press-link.is-muted::after { display: none; }

/* ---------- Feature lists (amenities, spec bullets) ---------- */

.feature-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: .94rem;
  color: var(--body);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-50%);
  transform-origin: center;
}

/* In a row, the caret used by the vertical list turns into a line of arrows
   pointing at nothing. Hairlines instead — the same device as the facts strip
   at the top of the page — and they survive wrapping, which left-hand rules
   would not. */
.feature-list-cols {
  margin-top: clamp(30px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}
.feature-list-cols li {
  padding: 15px 0 17px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .95rem;
}
.feature-list-cols li::before { content: none; }

/* Emphasis inside a bullet: bold at list size reads heavy. */
.feature-list strong { font-weight: 600; }

/* Whole sentences rather than two-word amenities: two columns, one on a phone. */
.feature-list-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* ---------- Building levels (klet / pritličje / nadstropja) ---------- */

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.level {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.level-media {
  display: block;
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.level-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.level-media:hover img { transform: scale(1.03); }

.level-body { padding: 22px 24px 26px; }

.level-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.level-body h3 { font-size: 1.3rem; margin-bottom: 1rem; }

.level-specs { margin: 0; }
.level-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: .87rem;
}
.level-specs dt { color: var(--muted); }
.level-specs dd { margin: 0; color: var(--ink); text-align: right; font-weight: 500; }

/* ---------- Plugin slot placeholder ---------- */

.plugin-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 320px;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.plugin-slot-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0;
}
.plugin-slot-note {
  margin: 0;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--muted);
}
.plugin-slot code {
  font-family: Consolas, monaco, monospace;
  font-size: .82em;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ---------- Press strip (homepage social proof) ---------- */

/* Publication names are set as type rather than logos: the marks are
   third-party trademarks we have no assets or clearance for. */
/* Sits between the dark CTA band and the grey footer, so it stays white —
   on --bg-alt it would merge into the footer with no visible boundary. */
.press-strip {
  padding: clamp(44px, 5vw, 68px) 0;
  background: #fff;
  text-align: center;
}

.press-strip-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.press-strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 46px);
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}
.press-strip-list li {
  font-family: var(--serif);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem);
  color: var(--ink);
  opacity: .62;
  white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.press-strip-list li:hover { opacity: 1; }

.press-strip .card-link { justify-content: center; }

/* ---------- Carousel ---------- */

.carousel { position: relative; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.carousel-track > * { scroll-snap-align: start; }
.carousel-track::-webkit-scrollbar { height: 4px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

@media (min-width: 700px)  { .carousel-track { grid-auto-columns: calc(50% - 9px); } }
@media (min-width: 1024px) { .carousel-track { grid-auto-columns: calc(33.333% - 12px); } }
@media (min-width: 1280px) { .carousel-track { grid-auto-columns: calc(25% - 14px); } }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: none;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color .25s var(--ease), opacity .25s var(--ease);
}
.carousel-arrow:hover { border-color: var(--ink); }
.carousel-arrow[disabled] { opacity: .35; cursor: default; }
.carousel-arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.carousel-arrow.next { right: 10px; }
.carousel-arrow.next::before { transform: translate(-65%, -50%) rotate(45deg); }

@media (min-width: 1024px) { .carousel-arrow { display: block; } }

/* ---------- Image slider ([mijaks_drsnik]) ---------- */

/* One image per view on a scroll-snapped track, in one of two looks:
     --cover    photos fill a 4:3 frame, like a single image beside section text
     --contain  floor plans are seen whole on a fixed-height white card
   A fixed height or an aspect-ratio on its own, never aspect-ratio together
   with min-height, which overflows narrow screens (see .tour-frame). */
.image-slider-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.image-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.image-slider-track::-webkit-scrollbar { display: none; }

.image-slide {
  flex: 0 0 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
}
/* Beats .split-media img, which is styled for a single photo. */
.image-slide img { border-radius: 0; }

.image-slider--cover .image-slide { aspect-ratio: 4 / 3; }
.image-slider--cover .image-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.image-slider--contain .image-slider-frame {
  background: #fff;
  border: 1px solid var(--line);
}
.image-slider--contain .image-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(360px, 48vw, 620px);
  padding: clamp(14px, 2.4vw, 28px);
}
.image-slider--contain .image-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

/* The carousel arrows hide on small screens; a slider needs them always. */
.image-slider .carousel-arrow { display: block; }

.image-slider-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--body);
}
.image-slider-meta p { margin: 0; }
.image-slider-count { color: var(--muted); white-space: nowrap; }

/* ---------- Floor-plan plugin, adjusted from the theme ---------- */

/* The 3D walkthrough sits next to the flat's own plan, so it reads as a small
   link with its icon rather than a second full-width button. The plugin styles
   its buttons with doubled class selectors, so this has to carry one class
   more to win, whichever stylesheet loads last. */
.capris-floorplan.capris-floorplan button.capris-floorplan__btn--tour.capris-floorplan__btn--secondary {
  width: auto;
  justify-self: start;
  min-height: 0;
  padding: 2px 0;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(28, 29, 32, .35);
  text-underline-offset: .2em;
}
.capris-floorplan.capris-floorplan button.capris-floorplan__btn--tour.capris-floorplan__btn--secondary:hover,
.capris-floorplan.capris-floorplan button.capris-floorplan__btn--tour.capris-floorplan__btn--secondary:focus {
  background: transparent;
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* With the waiting-list button in the row, the flat's own plan steps back to an
   outline and fills in only on hover, so one button leads. */
.capris-floorplan.capris-floorplan .mijaks-has-signup a.capris-floorplan__btn--primary:not(.mijaks-plan-signup),
.capris-floorplan.capris-floorplan .mijaks-has-signup button.capris-floorplan__btn--primary:not(.mijaks-plan-signup) {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.capris-floorplan.capris-floorplan .mijaks-has-signup a.capris-floorplan__btn--primary:not(.mijaks-plan-signup):hover,
.capris-floorplan.capris-floorplan .mijaks-has-signup a.capris-floorplan__btn--primary:not(.mijaks-plan-signup):focus,
.capris-floorplan.capris-floorplan .mijaks-has-signup button.capris-floorplan__btn--primary:not(.mijaks-plan-signup):hover,
.capris-floorplan.capris-floorplan .mijaks-has-signup button.capris-floorplan__btn--primary:not(.mijaks-plan-signup):focus {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Modal / lightbox ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 60px);
  background: rgba(20,21,23,.92);
}
.modal[hidden] { display: none; }

.modal-inner {
  max-width: 1000px;
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
}
.modal-inner img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
}

.modal-meta { color: rgba(255,255,255,.86); text-align: center; }
.modal-meta h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: .3rem;
}
.modal-meta p { margin: 0; font-size: .9rem; }
/* The image's description from the media library, under its caption. */
.modal-meta .modal-description {
  max-width: 62ch;
  margin: .5rem auto 0;
  font-size: .85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
  white-space: pre-line;
}
.modal-meta dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 1rem 0 0;
  font-size: .86rem;
}
.modal-meta dt {
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.modal-meta dd { margin: .2rem 0 0; color: #fff; }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 1.5px;
  background: #fff;
}
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-close:hover { background: rgba(255,255,255,.12); }

/* Gallery stepping: same geometry as the close button, so the three controls
   read as one set. Hidden when the modal shows something that is not part of
   a gallery (a floor plan, a unit). */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.modal-nav[hidden] { display: none; }
.modal-nav:hover { background: rgba(255,255,255,.12); }
.modal-nav::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 11px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
}
.modal-prev { left: 18px; }
.modal-next { right: 18px; }
.modal-prev::before { transform: translate(-35%, -50%) rotate(45deg); }
.modal-next::before { transform: translate(-65%, -50%) rotate(-135deg); }

.modal-count {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  font-variant-numeric: tabular-nums;
}
.modal-count[hidden] { display: none; }

@media (max-width: 700px) {
  .modal-nav { width: 40px; height: 40px; }
  .modal-prev { left: 8px; }
  .modal-next { right: 8px; }
}

/* ---------- Page transitions ---------- */

/* Cross-fade between pages, handled by the browser — no JS, no click
   interception, so the back button, prefetching and middle-click all keep
   working. Browsers without support navigate instantly, exactly as before. */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .28s;
  animation-timing-function: var(--ease);
}

/* The bar is identical on every page, so let it sit still while the content
   underneath changes, rather than cross-fading with it. */
.site-header { view-transition-name: site-header; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .slide-img { transform: none; }

  /* View-transition pseudo-elements are not matched by the * rule above. */
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
