:root {
  --ivory: #F4F1EA;
  --limestone: #DDD6CB;
  --sand: #E9E1D7;
  --stone: #B9AFA2;
  --taupe: #8C8275;
  --graphite: #191917;
  --terracotta: #71392D;
  --amber: #A35E35;
  --olive: #495143;
  --off-black: #0C0C0B;
  --paper: #FAF8F3;
  --line: rgba(25,25,23,.18);
  --line-light: rgba(244,241,234,.26);
  --shell: min(1600px, calc(100vw - 96px));
  --header-h: 74px;
  --font-sans: "Instrument Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body { margin: 0; overflow-x: clip; background: var(--ivory); color: var(--graphite); font-family: var(--font-sans); font-size: 16px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
picture { position: relative; display: block; overflow: hidden; background: var(--limestone); }
button,input,select,textarea { font: inherit; color: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--terracotta); color: var(--ivory); }
:focus-visible { outline: 1px solid var(--terracotta); outline-offset: 5px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; background: var(--off-black); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* Page transition: decorative only; content never relies on JS. */
.page-wipe { position: fixed; inset: 0; z-index: 9998; pointer-events: none; background: var(--terracotta); transform: scaleY(0); transform-origin: bottom; transition: transform .34s var(--ease); }
body[data-page="property"] .page-wipe { background: var(--olive); }
body[data-page="interior"] .page-wipe { background: var(--taupe); }
body[data-page="contact"] .page-wipe { background: var(--graphite); }
body.is-leaving .page-wipe { transform: scaleY(1); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,234,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background .28s ease, box-shadow .28s ease; }
.site-header.is-scrolled { background: rgba(250,248,243,.97); box-shadow: 0 10px 32px rgba(25,25,23,.04); }
.header-primary { height: var(--header-h); display: grid; grid-template-columns: minmax(145px,190px) minmax(0,1fr) minmax(44px,190px); align-items: center; gap: 24px; }
.wordmark,.footer-brand { display:inline-flex; align-items:center; }
.wordmark { justify-self:start; min-width:0; }
.wordmark img { width: 142px; max-width:100%; height:auto; display:block; object-fit:contain; }
.footer-brand img { width: 136px; max-width:100%; height:auto; display:block; object-fit:contain; opacity:.98; }
.desktop-nav { display:flex; align-items:center; justify-self:center; gap:clamp(18px,2.1vw,40px); min-width:0; }
.desktop-nav a,.language-switch,.mobile-nav a { font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.desktop-nav a { position: relative; padding-block: 8px; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 1px; height: 1px; background: var(--terracotta); transition: right .25s var(--ease); }
body[data-page="property"] .desktop-nav a::after { background: var(--olive); }
.desktop-nav a:hover::after,.desktop-nav a.is-active::after { right: 0; }
.language-switch { justify-self: end; font-family: var(--font-mono); }
.mobile-nav { display: none; }

.eyebrow,.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--taupe); }
.section-number { color: var(--terracotta); font-family: var(--font-mono); font-size: 11px; }
body[data-page="property"] .section-number { color: var(--olive); }

/* HOME — ivory + graphite + limestone + terracotta + olive, used as planes rather than accents only. */
.home-hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; align-items: center; padding: 78px 0 96px; }
.home-hero::after { content: ""; position: absolute; z-index: -1; right: -48px; top: 12%; width: clamp(22px, 2.5vw, 44px); height: 68%; background: var(--terracotta); }
.home-copy { grid-column: 1 / span 4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.home-title { font-size: clamp(46px,4.35vw,68px); line-height: .94; font-weight: 450; letter-spacing: -.045em; margin: 28px 0 30px; }
.home-title::first-line { color: var(--graphite); }
.home-lede { max-width: 360px; font-size: 16px; margin: 0 0 50px; color: #403d38; }
.home-image-wrap { grid-column: 6 / -1; align-self: stretch; min-height: 640px; position: relative; background: var(--stone); }
.home-image-wrap::before { content: ""; position: absolute; z-index: 2; left: -24px; bottom: 42px; width: 54px; height: 138px; background: var(--olive); mix-blend-mode: normal; }
.home-image { height: 100%; }
.image-index { position: absolute; right: 0; bottom: -28px; font-family: var(--font-mono); font-size: 10px; color: var(--taupe); }
.service-index { border-top: 1px solid var(--line); margin-top: auto; }
.service-index a { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); transition: padding-left .25s var(--ease), color .25s ease, background .25s ease; }
.service-index a:hover { padding-left: 7px; color: var(--terracotta); background: rgba(221,214,203,.32); }
.service-index .num { font-family: var(--font-mono); font-size: 10px; color: var(--terracotta); }
.service-index a:nth-child(2) .num { color: var(--olive); }
.service-index a:nth-child(3) .num { color: var(--amber); }
.service-index .label { font-size: 13px; }
.service-index .arrow { font-size: 17px; }
.home-studio { position: relative; display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; padding: 148px 0 180px; background: var(--limestone); box-shadow: 0 0 0 100vmax var(--limestone); clip-path: inset(0 -100vmax); }
.home-studio::after { content: ""; position: absolute; right: 4.5%; bottom: 0; width: 21%; height: 16px; background: var(--terracotta); }
.material-image { grid-column: 2 / span 4; aspect-ratio: 4 / 5; box-shadow: -30px 30px 0 var(--sand); }
.studio-copy { grid-column: 8 / span 4; align-self: center; }
.studio-copy h2 { font-size: 16px; letter-spacing: .24em; margin: 0 0 32px; font-weight: 600; }
.studio-copy h2::after { content: ""; display: inline-block; width: 32px; height: 8px; margin-left: 16px; background: var(--terracotta); }
.studio-copy p { font-size: clamp(22px,2vw,31px); line-height: 1.18; letter-spacing: -.025em; margin: 0; }

/* Shared editorial pages */
.page-intro { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; padding: 96px 0 110px; }
.page-intro-copy { grid-column: 1 / span 4; padding-top: 22px; }
.page-title { font-size: clamp(42px,4vw,64px); line-height: .96; letter-spacing: -.045em; font-weight: 450; margin: 20px 0 32px; }
.page-description { max-width: 430px; font-size: 18px; color: #3e3b36; margin: 0 0 42px; }
.scope { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 390px; }
.scope span { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.editorial-cta { display: inline-flex; gap: 15px; align-items: center; margin-top: 42px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.editorial-cta::after { content: "→"; transition: transform .2s ease; }
.editorial-cta:hover::after { transform: translateX(6px); }
.intro-photo { grid-column: 6 / -1; aspect-ratio: 16 / 11; }

/* INTERIOR: quiet stone intro, then a deep graphite gallery for real contrast. */
body[data-page="interior"] .page-intro { background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); }
body[data-page="interior"] .page-intro::before { content: ""; position: absolute; left: 41.5%; top: 0; width: 1px; height: 100%; background: rgba(113,57,45,.3); }
body[data-page="interior"] .intro-photo { box-shadow: 24px 24px 0 var(--stone); }
.interior-gallery { position: relative; display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; padding: 110px 0 180px; align-items: end; background: var(--graphite); box-shadow: 0 0 0 100vmax var(--graphite); clip-path: inset(0 -100vmax); }
.interior-gallery::before { content: "MATERIAL / LIGHT / DETAIL"; position: absolute; top: 44px; left: 0; color: var(--stone); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.interior-stair { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.interior-detail { grid-column: 9 / span 3; aspect-ratio: 3 / 4; box-shadow: 18px 18px 0 var(--terracotta); }

/* PROPERTY: three markets, three distinct editorial fields. */
.property-intro { padding-bottom: 78px; }
body[data-page="property"] .property-intro::after { content: "MADRID / PANAMA / MIAMI"; position: absolute; right: 0; bottom: 18px; color: var(--olive); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.city-editorial { padding: 28px 0 160px; display: grid; gap: 42px; }
.city-block { position: relative; display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; align-items: start; padding: 78px 64px; overflow: hidden; }
.city-block .city-label { font-family: var(--font-mono); font-size: 11px; }
.city-block h2 { margin: 4px 0 0; font-size: 22px; font-weight: 500; }
.city-madrid { background: var(--limestone); color: var(--graphite); }
.city-madrid .city-label { color: var(--terracotta); }
.city-madrid::after { content: ""; position: absolute; width: 110px; height: 18px; right: 0; top: 0; background: var(--terracotta); }
.city-madrid .city-meta { grid-column: 1 / span 2; }
.city-madrid picture { grid-column: 4 / span 7; aspect-ratio: 16 / 10; }
.city-panama { background: var(--olive); color: var(--ivory); }
.city-panama .city-label { color: #D9C8B3; }
.city-panama::after { content: ""; position: absolute; width: 18px; height: 130px; left: 0; bottom: 0; background: var(--amber); }
.city-panama .city-meta { grid-column: 9 / span 3; order: 2; padding-top: 70px; }
.city-panama picture { grid-column: 2 / span 5; aspect-ratio: 4 / 5; }
.city-miami { background: var(--paper); border: 1px solid rgba(140,130,117,.3); }
.city-miami .city-label { color: var(--amber); }
.city-miami::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: var(--stone); }
.city-miami .city-meta { grid-column: 1 / span 3; align-self: end; }
.city-miami picture { grid-column: 4 / span 8; aspect-ratio: 16 / 9; }

/* TURNKEY: sand field, amber detail, terracotta close. */
body[data-page="turnkey"] .page-intro { background: var(--paper); }
body[data-page="turnkey"] .page-intro::after { content: ""; position: absolute; z-index: -1; right: -48px; top: 64px; width: 31%; height: 74%; background: var(--stone); }
body[data-page="turnkey"] .intro-photo { box-shadow: 24px 24px 0 var(--sand); }
.turnkey-gallery { position: relative; display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; padding: 110px 0 150px; align-items: start; background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); }
.turnkey-kitchen { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.turnkey-bedroom { grid-column: 8 / span 4; aspect-ratio: 4 / 5; margin-top: 100px; box-shadow: 18px 18px 0 var(--stone); }
.turnkey-detail { grid-column: 3 / span 4; aspect-ratio: 4 / 5; margin-top: 60px; box-shadow: -18px 18px 0 var(--amber); }
.turnkey-closing { position: relative; background: var(--terracotta); color: var(--ivory); padding: 120px 0; }
.turnkey-closing::after { content: ""; position: absolute; top: 0; right: 8%; width: 18%; height: 14px; background: var(--amber); }
.turnkey-closing .shell { display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; }
.turnkey-closing h2 { grid-column: 2 / span 6; font-size: clamp(42px,5vw,72px); font-weight: 450; line-height: .95; letter-spacing: -.04em; margin: 0; }
.turnkey-closing a { grid-column: 9 / span 3; align-self: end; border-top: 1px solid rgba(255,255,255,.45); padding-top: 14px; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }

/* CONTACT: graphite + terracotta + stone instead of a single red panel. */
.contact-page { display: grid; grid-template-columns: minmax(320px, 34%) 1fr; min-height: calc(100svh - var(--header-h)); background: var(--limestone); }
.contact-panel { position: relative; overflow: hidden; background: var(--graphite); color: var(--ivory); padding: 76px clamp(32px,4vw,74px); display: flex; flex-direction: column; }
.contact-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 100%; background: var(--terracotta); }
.contact-panel::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38%; height: 18px; background: var(--amber); }
.contact-panel h1 { font-size: clamp(44px,5vw,68px); margin: 22px 0 70px; line-height: .95; font-weight: 450; }
.contact-locations { display: grid; gap: 26px; }
.contact-locations strong { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; margin-bottom: 4px; color: #D6C5B4; }
.contact-instagram { margin-top: auto; padding-top: 50px; font-size: 13px; }
.contact-form-wrap { background: var(--paper); padding: 76px clamp(40px,7vw,120px) 100px; }
.contact-form-wrap h2 { font-size: 15px; letter-spacing: .16em; font-weight: 600; margin: 0 0 38px; }
.service-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 52px; }
.service-option { position: relative; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-option label { display: flex; align-items: flex-end; min-height: 110px; border: 1px solid var(--line); padding: 16px; cursor: pointer; font-size: 13px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.service-option label:hover { transform: translateY(-2px); border-color: var(--taupe); }
.service-option:nth-child(1) input:checked + label { background: var(--terracotta); color: var(--ivory); border-color: var(--terracotta); }
.service-option:nth-child(2) input:checked + label { background: var(--olive); color: var(--ivory); border-color: var(--olive); }
.service-option:nth-child(3) input:checked + label { background: var(--graphite); color: var(--ivory); border-color: var(--graphite); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 34px; row-gap: 30px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 10px; color: var(--taupe); text-transform: uppercase; letter-spacing: .08em; }
.field input,.field select,.field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; padding: 8px 0 12px; outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: var(--terracotta); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; }
.submit-row { display: flex; justify-content: space-between; align-items: center; margin-top: 46px; gap: 20px; }
.submit-button { border: 0; background: var(--terracotta); color: var(--ivory); padding: 13px 18px 12px; cursor: pointer; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.submit-button:hover { background: var(--graphite); transform: translateY(-2px); }
.form-note { font-size: 11px; max-width: 390px; color: #6d675f; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 24px; font-size: 13px; }
.form-status.is-success { color: var(--olive); }
.form-status.is-error { color: var(--terracotta); }

.legal-page { max-width: 780px; padding: 100px 0 160px; }
.legal-page h1 { font-size: 48px; font-weight: 450; letter-spacing: -.04em; }
.legal-page p { color: #4c4842; }

/* Footer is intentionally dark to close the light editorial pages with a different plane. */
.site-footer { background: var(--graphite); color: var(--ivory); border-top: 12px solid var(--terracotta); padding: 34px 0 40px; }
body[data-page="property"] .site-footer { border-top-color: var(--olive); }
.footer-grid { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr; gap: 24px; align-items: center; }
.footer-grid a,.footer-cities { font-size: 11px; }
.footer-cities { color: var(--stone); }
.footer-grid a:not(.footer-brand) { justify-self: end; }

/* Motion is progressively enhanced only after JS attaches. */
[data-reveal], [data-reveal-image] { will-change: transform, opacity; }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
.motion-ready [data-reveal-image] { opacity: 0; transform: translateY(14px) scale(.99); }
.motion-ready [data-reveal].is-visible,
.motion-ready [data-reveal-image].is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.motion-ready [data-reveal-image] img { transform: scale(1.035); transition: transform 1.25s var(--ease); }
.motion-ready [data-reveal-image].is-visible img { transform: scale(1); }

@media (max-width: 1120px) {
  :root { --shell: min(100% - 56px, 1400px); }
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 10px; }
  .home-copy { grid-column: 1 / span 5; }
  .home-image-wrap { grid-column: 7 / -1; }
  .page-intro-copy { grid-column: 1 / span 5; }
  .intro-photo { grid-column: 7 / -1; }
  .city-block { padding: 64px 42px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 32px); --header-h: 58px; }
  .header-primary { height: 58px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .wordmark img { width: 112px; }
  .mobile-nav { display: flex; gap: 23px; overflow-x: auto; scrollbar-width: none; padding-block: 11px 12px; border-top: 1px solid var(--line); }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: 0 0 auto; font-size: 9px; padding-bottom: 4px; border-bottom: 1px solid transparent; }
  .mobile-nav a.is-active { border-bottom-color: var(--terracotta); }
  body[data-page="property"] .mobile-nav a.is-active { border-bottom-color: var(--olive); }
  .home-hero { min-height: auto; display: flex; flex-direction: column; padding: 56px 0 78px; align-items: stretch; }
  .home-hero::after { right: -16px; top: 35%; width: 9px; height: 34%; }
  .home-copy { display: contents; }
  .home-copy .eyebrow { order: 1; }
  .home-title { order: 2; font-size: clamp(44px,14vw,64px); margin: 22px 0 36px; }
  .home-image-wrap { order: 3; min-height: 0; aspect-ratio: 4 / 5; margin: 0 18px 34px; }
  .home-image-wrap::before { left: -18px; bottom: 22px; width: 20px; height: 94px; }
  .home-image { height: 100%; }
  .image-index { bottom: -21px; }
  .home-lede { order: 4; margin: 0 0 38px; max-width: 90%; font-size: 17px; }
  .service-index { order: 5; margin-top: 0; }
  .service-index a { min-height: 62px; }
  .home-studio { display: flex; flex-direction: column; padding: 96px 0 110px; gap: 52px; }
  .home-studio::after { width: 34%; height: 10px; }
  .material-image { width: 72%; aspect-ratio: 4 / 5; margin-left: auto; box-shadow: -16px 16px 0 var(--sand); }
  .studio-copy { width: 88%; }
  .studio-copy p { font-size: 26px; }
  .page-intro { display: flex; flex-direction: column; padding: 64px 0 84px; gap: 52px; }
  body[data-page="interior"] .page-intro::before { display: none; }
  .page-intro-copy { padding-top: 0; }
  .page-title { font-size: clamp(42px,12vw,58px); }
  .page-description { font-size: 17px; }
  .intro-photo { width: 88%; margin-left: auto; aspect-ratio: 4 / 5; }
  body[data-page="interior"] .intro-photo,
  body[data-page="turnkey"] .intro-photo { box-shadow: 12px 12px 0 var(--stone); }
  .interior-gallery { display: flex; flex-direction: column; padding: 84px 0 110px; gap: 52px; }
  .interior-gallery::before { top: 34px; }
  .interior-stair { width: 100%; aspect-ratio: 4 / 5; }
  .interior-detail { width: 56%; margin-left: auto; aspect-ratio: 3 / 4; box-shadow: 10px 10px 0 var(--terracotta); }
  .property-intro { padding-bottom: 72px; }
  body[data-page="property"] .property-intro::after { left: 0; right: auto; }
  .city-editorial { gap: 24px; padding: 0 0 90px; }
  .city-block { display: flex; flex-direction: column; gap: 20px; padding: 44px 20px; }
  .city-block .city-meta,.city-block picture { width: 100%; padding: 0; order: unset; }
  .city-block picture { aspect-ratio: 4 / 5; }
  .city-panama picture { width: 78%; }
  .city-panama .city-meta { width: 78%; margin-left: auto; }
  .city-miami picture { aspect-ratio: 4 / 5; }
  body[data-page="turnkey"] .page-intro::after { right: -16px; width: 24%; top: 48%; height: 34%; }
  .turnkey-gallery { display: flex; flex-direction: column; padding: 82px 0 110px; gap: 48px; }
  .turnkey-kitchen,.turnkey-bedroom,.turnkey-detail { width: 100%; margin: 0; aspect-ratio: 4 / 5; }
  .turnkey-bedroom { width: 78%; margin-left: auto; box-shadow: 12px 12px 0 var(--stone); }
  .turnkey-detail { width: 62%; box-shadow: -12px 12px 0 var(--amber); }
  .turnkey-closing { padding: 82px 0; }
  .turnkey-closing::after { width: 32%; height: 10px; }
  .turnkey-closing .shell { display: flex; flex-direction: column; gap: 56px; }
  .turnkey-closing h2 { font-size: 50px; }
  .contact-page { display: block; min-height: auto; }
  .contact-panel { min-height: 480px; padding: 62px 24px 42px; }
  .contact-panel h1 { margin-bottom: 54px; }
  .contact-form-wrap { padding: 68px 16px 90px; }
  .service-options { grid-template-columns: 1fr; }
  .service-option label { min-height: 68px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .submit-row { align-items: flex-start; flex-direction: column-reverse; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .footer-grid a:not(.footer-brand) { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .page-wipe { display: none; }
  [data-reveal], [data-reveal-image] { opacity: 1 !important; transform: none !important; }
  [data-reveal-image] img { transform: none !important; }
}

/* ALVIKA compact editorial refinement — safe override layer */
:root {
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 70px;
  --shell: min(1600px, calc(100vw - 72px));
}
.header-primary { grid-template-columns: minmax(190px,230px) minmax(0,1fr) minmax(44px,90px); }
.wordmark img { width: 176px; }
.footer-brand img { width: 154px; }
.desktop-nav { gap: clamp(18px,2vw,34px); }
.desktop-nav a,.language-switch { font-size: 10px; letter-spacing: .06em; }

.home-hero::after,
.home-image-wrap::before,
.home-studio::after,
body[data-page="interior"] .page-intro::before,
.city-madrid::after,
.city-panama::after,
.city-miami::before,
body[data-page="turnkey"] .page-intro::after,
.turnkey-closing::after { display: none !important; }
.material-image,
body[data-page="interior"] .intro-photo,
.interior-detail,
body[data-page="turnkey"] .intro-photo,
.turnkey-bedroom,
.turnkey-detail { box-shadow: none !important; }

.home-hero { min-height: auto; padding: 38px 0 44px; align-items: start; }
.home-copy { justify-content: flex-start; padding-top: 10px; }
.home-title { font-size: clamp(50px,4.7vw,74px); font-weight: 500; margin: 18px 0 20px; }
.home-lede { margin-bottom: 28px; }
.home-image-wrap { min-height: 520px; }
.service-index a { min-height: 52px; }
.home-studio { padding: 52px 0 62px; }
.studio-copy h2 { margin-bottom: 20px; }
.studio-copy h2::after { display: none; }
.studio-copy p { font-size: clamp(22px,1.8vw,28px); }

.page-intro { padding: 42px 0 46px; }
.page-intro-copy { padding-top: 4px; }
.page-title { font-weight: 500; margin: 14px 0 20px; }
.page-description { font-size: 16px; margin-bottom: 22px; }
.scope span { padding: 8px 0; }
.editorial-cta { margin-top: 22px; }
.intro-photo { aspect-ratio: 16 / 10; }
.interior-gallery { gap: 18px; padding: 36px 0 46px; }
.interior-gallery::before { top: 12px; }
.interior-stair { aspect-ratio: 16 / 9; }

.property-intro { padding-bottom: 32px; }
.city-editorial { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 6px 0 44px; }
.city-block { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; }
.city-block .city-meta { width: 100% !important; padding: 0 !important; margin: 0 !important; order: 0 !important; align-self: auto !important; }
.city-block picture { width: 100% !important; grid-column: auto !important; order: 1 !important; aspect-ratio: 4 / 3 !important; }
.city-block h2 { font-size: 20px; }

.turnkey-gallery { gap: 18px; padding: 34px 0 42px; }
.turnkey-kitchen { grid-column: 1 / span 7; aspect-ratio: 16 / 9; }
.turnkey-bedroom { grid-column: 8 / span 3; margin-top: 0; aspect-ratio: 3 / 4; }
.turnkey-detail { grid-column: 11 / span 2; margin-top: 0; aspect-ratio: 3 / 4; }
.turnkey-closing { padding: 44px 0; }
.turnkey-closing h2 { font-size: clamp(38px,4vw,58px); }

.contact-page { min-height: auto; }
.contact-panel { padding: 44px clamp(28px,3vw,48px); }
.contact-panel h1 { margin: 14px 0 32px; }
.contact-locations { gap: 12px; }
.contact-link { display: block; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.contact-link span { display: block; font-size: 14px; }
.contact-link:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.contact-instagram { padding-top: 26px; }
.contact-form-wrap { padding: 44px clamp(34px,5vw,74px) 52px; }
.contact-form-wrap h2 { margin-bottom: 22px; }
.service-options { margin-bottom: 28px; }
.service-option label { min-height: 82px; }
.form-grid { row-gap: 20px; }
.submit-row { margin-top: 28px; }
.legal-page { padding: 52px 0 68px; }
.site-footer { border-top-width: 6px; padding: 22px 0 26px; }

@media (max-width: 1120px) and (min-width: 761px) {
  :root { --shell: min(100% - 48px, 1400px); }
  .header-primary { grid-template-columns: 180px minmax(0,1fr) 44px; }
  .wordmark img { width: 160px; }
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 9px; }
  .home-copy { grid-column: 1 / span 5; }
  .home-image-wrap { grid-column: 7 / -1; min-height: 480px; }
  .page-intro-copy { grid-column: 1 / span 5; }
  .intro-photo { grid-column: 7 / -1; }
  .city-editorial { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .city-block { padding: 14px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 24px); --header-h: 92px; }
  .header-primary { height: 52px; grid-template-columns: 1fr auto; }
  .wordmark img { width: 138px; }
  .language-switch { font-size: 9px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; overflow: visible; padding: 8px 0 10px; border-top: 1px solid var(--line); }
  .mobile-nav a { min-width: 0; white-space: normal; text-align: center; font-size: 8px; line-height: 1.2; padding: 0 4px 5px; }
  .home-hero { padding: 24px 0 30px; gap: 18px; }
  .home-title { font-size: clamp(42px,12vw,58px); margin: 14px 0 18px; }
  .home-image-wrap { min-height: 0; margin: 0; aspect-ratio: 4 / 5; }
  .home-lede { margin-bottom: 24px; max-width: 100%; font-size: 15px; }
  .service-index a { min-height: 52px; }
  .home-studio { padding: 44px 0 52px; gap: 30px; }
  .material-image { width: 66%; margin-left: auto; }
  .studio-copy { width: 94%; }
  .studio-copy p { font-size: 23px; }
  .page-intro { padding: 32px 0 40px; gap: 26px; }
  .page-title { font-size: clamp(40px,11vw,54px); }
  .page-description { font-size: 15px; }
  .intro-photo { width: 100%; margin-left: 0; aspect-ratio: 4 / 5; }
  .interior-gallery { padding: 42px 0 52px; gap: 26px; }
  .interior-gallery::before { top: 16px; }
  .interior-detail { width: 56%; margin-left: auto; }
  .property-intro { padding-bottom: 38px; }
  .city-editorial { grid-template-columns: 1fr; gap: 14px; padding: 0 0 38px; }
  .city-block { padding: 16px; gap: 12px; }
  .city-block picture { aspect-ratio: 4 / 5 !important; }
  .turnkey-gallery { display: flex; flex-direction: column; padding: 38px 0 48px; gap: 22px; }
  .turnkey-kitchen,.turnkey-bedroom { width: 100%; }
  .turnkey-detail { width: 58%; margin-left: auto; }
  .turnkey-closing { padding: 42px 0; }
  .turnkey-closing .shell { gap: 32px; }
  .contact-panel { min-height: auto; padding: 36px 18px 30px; }
  .contact-panel h1 { margin-bottom: 30px; }
  .contact-form-wrap { padding: 38px 14px 46px; }
  .service-options { grid-template-columns: 1fr; }
  .service-option label { min-height: 62px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .submit-row { flex-direction: column-reverse; align-items: flex-start; }
  .site-footer { padding: 20px 0 24px; }
}


/* --- ALVIKA hotfix 2026-08-27: client feedback round 2 --- */
:root {
  --ivory: #F4F1EA;
  --paper: #F4F1EA;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shell: min(1600px, calc(100vw - 72px));
  --header-h: 70px;
}

html, body,
.site-header,
.contact-form-wrap { background: var(--ivory); }

.wordmark img { width: 176px; }
.footer-brand img { width: 150px; }

/* Keep the home in the cream / clean style from ZIP 2 and remove the extra second block */
.home-studio { display: none !important; }
.home-hero,
.page-intro,
.turnkey-gallery,
.turnkey-closing,
.interior-gallery,
.legal-page { margin-top: 0; }

.home-hero {
  min-height: auto !important;
  align-items: start !important;
  padding: 34px 0 28px !important;
  gap: 22px !important;
}
.home-copy {
  align-self: start !important;
  justify-content: flex-start !important;
  padding-top: 8px !important;
}
.home-title {
  font-size: clamp(50px, 4.7vw, 76px) !important;
  line-height: .92 !important;
  font-weight: 500 !important;
  margin: 16px 0 18px !important;
}
.home-lede {
  margin: 0 0 18px !important;
  max-width: 390px !important;
  font-size: 15px !important;
}
.service-index {
  margin-top: 14px !important;
}
.service-index a {
  min-height: 48px !important;
}
.home-image-wrap {
  grid-column: 6 / -1 !important;
  min-height: 555px !important;
  margin-right: calc((100vw - var(--shell)) / -2) !important;
}
.home-image-wrap::before,
.home-hero::after { display: none !important; }
.image-index { display: none !important; }

/* Reduce the blank right side on property page and place the deliverables horizontally */
.property-intro {
  display: block !important;
  padding: 34px 0 18px !important;
}
.property-intro .page-intro-copy {
  max-width: 1180px !important;
  grid-column: auto !important;
  padding-top: 0 !important;
}
.property-intro .page-title {
  margin-bottom: 16px !important;
}
.property-intro .page-description {
  max-width: 760px !important;
  margin-bottom: 18px !important;
}
.property-intro .scope-inline {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px !important;
  max-width: 100% !important;
  border-top: 0 !important;
  margin-top: 10px !important;
}
.property-intro .scope-inline span {
  border-top: 1px solid var(--line) !important;
  border-bottom: 0 !important;
  padding: 10px 0 8px !important;
  font-size: 12px !important;
}
.property-intro .editorial-cta {
  margin-top: 18px !important;
}
body[data-page="property"] .property-intro::after {
  bottom: 0 !important;
}
.city-editorial {
  padding: 0 0 36px !important;
  gap: 18px !important;
}

/* Clean turnkey gallery: remove the repeated third image and white gap */
.turnkey-gallery {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .88fr) !important;
  gap: 18px !important;
  padding: 24px 0 34px !important;
  align-items: start !important;
}
.turnkey-kitchen,
.turnkey-bedroom {
  grid-column: auto !important;
  margin: 0 !important;
  width: 100% !important;
}
.turnkey-kitchen { aspect-ratio: 16 / 9 !important; }
.turnkey-bedroom { aspect-ratio: 4 / 5 !important; }
.turnkey-detail { display: none !important; }
.turnkey-closing {
  padding: 38px 0 !important;
}
.turnkey-closing h2 {
  font-size: clamp(38px, 4vw, 56px) !important;
}

/* Contact keeps the same structure, only with the cream palette from ZIP 2 */
.contact-page { background: var(--ivory) !important; }
.contact-form-wrap { background: var(--ivory) !important; }
.contact-panel { background: var(--graphite) !important; }

@media (max-width: 1120px) and (min-width: 761px) {
  :root { --shell: min(100% - 48px, 1400px); }
  .home-image-wrap { min-height: 500px !important; }
  .property-intro .scope-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100vw - 24px);
    --header-h: 92px;
  }
  .home-hero {
    padding: 20px 0 20px !important;
    gap: 14px !important;
  }
  .home-copy { display: contents !important; }
  .home-copy .eyebrow { order: 1; }
  .home-title {
    order: 2;
    font-size: clamp(42px, 12vw, 58px) !important;
    margin: 10px 0 12px !important;
  }
  .home-lede {
    order: 3;
    margin: 0 0 12px !important;
    font-size: 14px !important;
    max-width: 100% !important;
  }
  .service-index {
    order: 4;
    margin-top: 0 !important;
  }
  .home-image-wrap {
    order: 5;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    margin: 4px 0 0 !important;
  }
  .service-index a { min-height: 44px !important; }

  .property-intro {
    padding: 26px 0 14px !important;
  }
  .property-intro .scope-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .property-intro .scope-inline span {
    padding: 8px 0 !important;
    font-size: 11px !important;
  }
  .city-editorial {
    padding-bottom: 26px !important;
  }

  .turnkey-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 18px 0 26px !important;
  }
  .turnkey-kitchen,
  .turnkey-bedroom {
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
  }
  .turnkey-closing {
    padding: 30px 0 !important;
  }

  .contact-panel,
  .contact-form-wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* =========================================================
   ALVIKA DARK VISUAL SKIN — colors + typography only
   Reference: ZIP 2 dark version supplied by client.
   IMPORTANT: no layout / spacing / structure rules here.
   ========================================================= */
:root {
  --ivory: #050505;
  --limestone: #0C0C0C;
  --sand: #0C0C0C;
  --stone: #111111;
  --taupe: #969690;
  --graphite: #F2F1EC;
  --terracotta: #F2F1EC;
  --amber: #969690;
  --olive: #969690;
  --off-black: #050505;
  --paper: #050505;
  --line: #242424;
  --line-light: #242424;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html,
body {
  background: #050505 !important;
  color: #F2F1EC !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  text-rendering: geometricPrecision;
}

::selection {
  background: #F2F1EC;
  color: #050505;
}

picture {
  background: #111111;
}

.site-header {
  background: rgba(5,5,5,.94) !important;
  border-color: #242424 !important;
  color: #F2F1EC !important;
}
.site-header.is-scrolled {
  background: rgba(5,5,5,.98) !important;
  border-color: #242424 !important;
}
.wordmark img,
.footer-brand img {
  filter: brightness(0) invert(1);
  opacity: .95;
}
.desktop-nav a,
.language-switch,
.mobile-nav a {
  color: #C9C9C5 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.desktop-nav a:hover,
.desktop-nav a.is-active,
.language-switch:hover,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #FFFFFF !important;
}
.desktop-nav a::after,
body[data-page="property"] .desktop-nav a::after {
  background: #FFFFFF !important;
}
.mobile-nav {
  border-color: #242424 !important;
}
.mobile-nav a.is-active,
body[data-page="property"] .mobile-nav a.is-active {
  border-bottom-color: #FFFFFF !important;
}

.eyebrow,
.mono,
.section-number,
.image-index,
.city-label,
.field label {
  color: #969690 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
body[data-page="property"] .section-number {
  color: #969690 !important;
}

.home-hero,
.page-intro,
.property-intro,
.legal-page {
  background-color: #050505 !important;
  color: #F2F1EC !important;
}
.home-title,
.page-title,
.studio-copy h2,
.studio-copy p,
.city-block h2,
.turnkey-closing h2,
.contact-panel h1,
.legal-page h1 {
  color: #F2F1EC !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.home-lede,
.page-description,
.legal-page p {
  color: #C1C1BC !important;
}
.service-index,
.service-index a,
.scope,
.scope span,
.editorial-cta {
  border-color: #242424 !important;
}
.service-index a {
  color: #F2F1EC !important;
}
.service-index a:hover {
  background: #0C0C0C !important;
  color: #FFFFFF !important;
}
.service-index .num,
.service-index a:nth-child(2) .num,
.service-index a:nth-child(3) .num {
  color: #777777 !important;
}
.service-index .arrow {
  color: #A0A09A !important;
}

.home-studio,
body[data-page="interior"] .page-intro,
body[data-page="turnkey"] .page-intro,
.turnkey-gallery {
  background: #050505 !important;
  color: #F2F1EC !important;
}
body[data-page="interior"] .page-intro::before,
body[data-page="turnkey"] .page-intro::after,
.home-hero::after,
.home-image-wrap::before,
.home-studio::after {
  background-color: #242424 !important;
}

.interior-gallery {
  background: #050505 !important;
  color: #F2F1EC !important;
}
.interior-gallery::before {
  color: #969690 !important;
}

.city-block,
.city-madrid,
.city-panama,
.city-miami {
  background: #0C0C0C !important;
  color: #F2F1EC !important;
  border-color: #242424 !important;
}
.city-madrid .city-label,
.city-panama .city-label,
.city-miami .city-label {
  color: #777777 !important;
}
.city-madrid::after,
.city-panama::after,
.city-miami::before {
  background: #242424 !important;
}

.turnkey-closing {
  background: #050505 !important;
  color: #F2F1EC !important;
  border-color: #242424 !important;
}
.turnkey-closing::after {
  background: #242424 !important;
}
.turnkey-closing a {
  color: #F2F1EC !important;
  border-color: #666666 !important;
}

.contact-page {
  background: #050505 !important;
  color: #F2F1EC !important;
}
.contact-panel {
  background: #050505 !important;
  color: #F2F1EC !important;
}
.contact-panel::before,
.contact-panel::after {
  background: #242424 !important;
}
.contact-locations strong {
  color: #969690 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.contact-link {
  color: #E6E6E1 !important;
  border-color: #242424 !important;
}
.contact-link:hover {
  background: #0C0C0C !important;
  border-color: #666666 !important;
}
.contact-instagram {
  color: #C9C9C5 !important;
  border-color: #242424 !important;
}

/* ZIP 2 uses a light paper plane for the form itself. */
.contact-form-wrap {
  background: #ECEBE6 !important;
  color: #11110F !important;
}
.contact-form-wrap h2 {
  color: #11110F !important;
}
.service-option label {
  background: transparent !important;
  color: #11110F !important;
  border-color: #C9C8C1 !important;
}
.service-option label:hover {
  border-color: #777772 !important;
}
.service-option:nth-child(1) input:checked + label,
.service-option:nth-child(2) input:checked + label,
.service-option:nth-child(3) input:checked + label {
  background: #11110F !important;
  color: #EEEEEA !important;
  border-color: #11110F !important;
}
.field label {
  color: #6F6E68 !important;
}
.field input,
.field select,
.field textarea {
  color: #11110F !important;
  border-color: #AAA9A2 !important;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #11110F !important;
}
.submit-button {
  background: #11110F !important;
  color: #F2F1EC !important;
}
.submit-button:hover {
  background: #11110F !important;
  color: #F2F1EC !important;
}
.form-note {
  color: #666666 !important;
}
.form-note a {
  color: #11110F !important;
}
.form-status.is-success { color: #254C2A !important; }
.form-status.is-error { color: #7C261F !important; }

.site-footer {
  background: #050505 !important;
  color: #F2F1EC !important;
  border-color: #242424 !important;
}
body[data-page="property"] .site-footer {
  border-color: #242424 !important;
}
.footer-cities,
.footer-whatsapp span {
  color: #969690 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.footer-grid,
.footer-whatsapp,
.footer-whatsapp a {
  border-color: #242424 !important;
}
.footer-grid a,
.footer-whatsapp a,
.footer-whatsapp strong {
  color: #F2F1EC !important;
}

.page-wipe,
body[data-page="property"] .page-wipe,
body[data-page="interior"] .page-wipe,
body[data-page="contact"] .page-wipe {
  background: #F2F1EC !important;
}


/* =========================================================
   ALVIKA incremental fix 3 — typography parity + cleanups
   Requested: keep structure, fix font parity, remove flagged blocks,
   compact home whitespace, and use Instagram icon.
   ========================================================= */
html,
body,
button,
input,
select,
textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.site-header,
.home-hero,
.page-intro,
.property-intro,
.city-editorial,
.turnkey-closing,
.contact-page,
.site-footer,
.legal-page {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.desktop-nav a,
.language-switch,
.mobile-nav a,
.eyebrow,
.mono,
.section-number,
.image-index,
.city-label,
.field label,
.footer-cities,
.service-index .label,
.scope span,
.editorial-cta,
.contact-link,
.contact-instagram,
.footer-grid a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
}

.home-title,
.page-title,
.studio-copy h2,
.studio-copy p,
.city-block h2,
.turnkey-closing h2,
.contact-panel h1,
.legal-page h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Home: reduce the empty lower-left area and keep a cleaner proportion. */
.home-hero {
  min-height: auto !important;
  align-items: start !important;
  padding-top: 58px !important;
  padding-bottom: 70px !important;
}
.home-copy {
  justify-content: flex-start !important;
}
.home-lede {
  margin-bottom: 34px !important;
}
.service-index {
  margin-top: 26px !important;
}
.home-image-wrap {
  min-height: 540px !important;
  aspect-ratio: 4 / 5;
}

/* Remove the interior gallery callout if the section ever appears again. */
.interior-gallery::before,
body[data-page="property"] .property-intro::after {
  content: none !important;
}

/* Remove leftover scope lists when not needed. */
.scope-inline {
  display: none !important;
}

/* If a turnkey gallery remains cached somewhere, collapse it visually. */
.turnkey-gallery {
  display: none !important;
}

/* Footer/contact Instagram icon. */
.footer-instagram,
.contact-instagram {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}
.footer-instagram svg,
.contact-instagram svg {
  width: 18px;
  height: 18px;
  display: block;
}
.contact-instagram {
  padding-top: 42px !important;
}
.footer-grid {
  grid-template-columns: 2fr 2fr auto 1fr !important;
}
.footer-grid a:not(.footer-brand) {
  justify-self: end;
}

/* Keep city/editorial blocks visually tighter and more symmetric. */
.city-editorial {
  padding-top: 18px !important;
}
.city-block {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

/* On smaller desktops, keep the intro/photo balance cleaner. */
@media (max-width: 1120px) {
  .home-image-wrap {
    min-height: 500px !important;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding-top: 48px !important;
    padding-bottom: 56px !important;
  }
  .home-image-wrap {
    min-height: 0 !important;
  }
  .footer-instagram,
  .contact-instagram {
    width: 17px;
    height: 17px;
  }
  .footer-instagram svg,
  .contact-instagram svg {
    width: 17px;
    height: 17px;
  }
}


/* =========================================================
   ALVIKA FINAL REPAIR — 2026-08-27
   Fixes only the reported regressions from the previous pass.
   ========================================================= */

/* HOME: photo starts at MADRID line and ends exactly with the last service row. */
@media (min-width: 761px) {
  body[data-page="home"] .home-hero {
    min-height: 0 !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    align-items: stretch !important;
  }
  body[data-page="home"] .home-copy {
    align-self: start !important;
    justify-content: flex-start !important;
    padding-top: 0 !important;
  }
  body[data-page="home"] .home-lede {
    margin-bottom: 22px !important;
  }
  body[data-page="home"] .service-index {
    margin-top: 18px !important;
  }
  body[data-page="home"] .home-image-wrap {
    position: relative !important;
    align-self: stretch !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }
  body[data-page="home"] .home-image-wrap > .home-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  body[data-page="home"] .home-image-wrap > .home-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body[data-page="home"] .image-index {
    display: none !important;
  }
}

/* INTERIOR + TURNKEY: keep footer at the bottom of the viewport, with no dead area after it. */
body[data-page="interior"],
body[data-page="turnkey"] {
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
}
body[data-page="interior"] > .site-header,
body[data-page="turnkey"] > .site-header,
body[data-page="interior"] > .site-footer,
body[data-page="turnkey"] > .site-footer {
  flex: 0 0 auto !important;
}
body[data-page="interior"] > main,
body[data-page="turnkey"] > main {
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}
body[data-page="interior"] .page-intro,
body[data-page="turnkey"] .page-intro {
  flex: 1 0 auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 32px !important;
  padding-bottom: 32px !important;
  align-items: center !important;
}
body[data-page="interior"] .site-footer,
body[data-page="turnkey"] .site-footer {
  margin-top: 0 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* TURNKEY: the removed closing block must never reappear from cached CSS/markup. */
body[data-page="turnkey"] .turnkey-closing,
body[data-page="turnkey"] .turnkey-gallery {
  display: none !important;
}

/* CONTACT: full two-column layout and complete form are visible again. */
body[data-page="contact"] .contact-page {
  display: grid !important;
  grid-template-columns: minmax(320px, 34%) minmax(0, 1fr) !important;
  width: 100% !important;
  min-height: calc(100svh - var(--header-h)) !important;
  background: #050505 !important;
}
body[data-page="contact"] .contact-panel {
  display: flex !important;
  flex-direction: column !important;
}
body[data-page="contact"] .contact-form-wrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0 !important;
  background: #ECEBE6 !important;
  color: #11110F !important;
}

/* Instagram: icon only, never the @alvikastudio word. */
.footer-instagram,
.contact-instagram {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  color: #F2F1EC !important;
  line-height: 0 !important;
  font-size: 0 !important;
}
.footer-instagram svg,
.contact-instagram svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}

@media (max-width: 760px) {
  body[data-page="home"] .home-hero {
    min-height: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 28px !important;
  }
  body[data-page="home"] .home-image-wrap {
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
  }
  body[data-page="home"] .home-image-wrap > .home-image {
    position: relative !important;
    inset: auto !important;
    height: 100% !important;
  }
  body[data-page="contact"] .contact-page {
    display: block !important;
    min-height: 0 !important;
  }
}

/* =========================================================
   ALVIKA interior page width/background repair — 2026-08-27
   Fixes the visible gray side bands without changing other pages.
   ========================================================= */
body[data-page="interior"] {
  background: #050505 !important;
}

body[data-page="interior"] .page-intro.shell {
  width: min(1700px, calc(100vw - 48px)) !important;
  background: #050505 !important;
  box-shadow: 0 0 0 100vmax #050505 !important;
  clip-path: inset(0 -100vmax) !important;
}

body[data-page="interior"] .page-intro::before {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-page="interior"] .page-intro.shell {
    width: calc(100vw - 24px) !important;
  }
}

/* =========================================================
   ALVIKA property cards compact desktop fit — 2026-08-27
   Only affects Propiedad + Reforma on tablet/desktop.
   ========================================================= */
@media (min-width: 761px) {
  body[data-page="property"] .property-intro {
    padding-top: 24px !important;
    padding-bottom: 12px !important;
  }

  body[data-page="property"] .property-intro .page-title {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }

  body[data-page="property"] .property-intro .page-description {
    margin-bottom: 10px !important;
  }

  body[data-page="property"] .property-intro .editorial-cta {
    margin-top: 10px !important;
  }

  body[data-page="property"] .city-editorial {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding-top: 6px !important;
    padding-bottom: 22px !important;
    align-items: start !important;
  }

  body[data-page="property"] .city-block {
    padding: 18px !important;
    gap: 10px !important;
    min-height: 0 !important;
  }

  body[data-page="property"] .city-block .city-meta {
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page="property"] .city-block h2 {
    margin: 2px 0 0 !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  body[data-page="property"] .city-block .city-label {
    font-size: 9px !important;
  }

  body[data-page="property"] .city-block picture {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 300px !important;
  }
}

/* =========================================================
   ALVIKA home footer position — 2026-08-27
   Keep the home compact without scroll while placing the footer
   naturally at the bottom of the viewport. No content/layout rewrite.
   ========================================================= */
@media (min-width: 761px) {
  body[data-page="home"] {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body[data-page="home"] > .site-header,
  body[data-page="home"] > .site-footer {
    flex: 0 0 auto !important;
  }

  body[data-page="home"] > main {
    flex: 1 0 auto !important;
    display: block !important;
  }

  /* Preserve the current hero/image proportions; only the empty space
     between the hero and footer absorbs the remaining viewport height. */
  body[data-page="home"] .home-hero {
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }

  body[data-page="home"] .site-footer {
    margin-top: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border-top-width: 4px !important;
  }
}
