/*
Theme Name: ZEUS Cyprus
Theme URI: https://example.com/zeus-cyprus
Author: ZEUS
Description: Quiet luxury real estate theme for Cyprus property advisory, portfolio pages and discreet buyer enquiries.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeus-cyprus
*/

:root {
  --bg: #faf5eb;
  --paper: #fffaf1;
  --paper-soft: #f6edde;
  --ink: #111111;
  --muted: #706c64;
  --line: rgba(17, 17, 17, 0.14);
  --accent: #9a6f43;
  --olive: #3f4a36;
  --green-deep: #0c5a43;
  --green-ink: #073c31;
  --green-soft: rgba(12, 90, 67, 0.16);
  --clay: #b47759;
  --sky: #d9e1df;
  --container: min(1440px, calc(100vw - 96px));
  --space-page-top: clamp(112px, 10vw, 150px);
  --space-section: clamp(76px, 9vw, 112px);
  --space-section-tight: clamp(52px, 7vw, 88px);
  --gap-grid: clamp(18px, 2.4vw, 32px);
  --radius-media: 12px;
  --radius-control: 999px;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-luxury: cubic-bezier(0.25, 0.1, 0.13, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: default;
}

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

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

button,
input {
  font: inherit;
}

textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 24px 48px;
  background: rgba(250, 245, 235, 0);
  transition:
    background 520ms ease,
    border-color 520ms ease,
    padding 560ms var(--ease-out),
    transform 560ms var(--ease-out);
}

.site-header.is-scrolled {
  padding-block: 16px;
  background: rgba(250, 245, 235, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a.is-current,
.text-link:hover,
.footer a:hover {
  color: var(--ink);
}

.primary-nav a.is-current::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 6px;
  background: var(--accent);
  content: "";
}

.header-cta {
  justify-self: end;
  padding: 15px 24px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.16);
  transition:
    transform 520ms var(--ease-out),
    box-shadow 520ms ease,
    background 520ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.18);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(48px, 7vw, 116px);
  align-items: center;
  width: var(--container);
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--space-page-top) 0 var(--space-section-tight);
}

.hero > *,
.detail-hero > *,
.detail-layout > * {
  min-width: 0;
}

.hero h1,
.section-heading h2,
.philosophy h2,
.newsletter h2 {
  margin: 0;
  font-size: clamp(56px, 6.8vw, 106px);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition:
    transform 520ms var(--ease-out),
    background 520ms ease,
    color 520ms ease,
    box-shadow 520ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.12);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.16);
}

.button-dark:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.18);
}

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 520ms var(--ease-out);
}

.text-link:hover::after {
  transform: scaleX(1);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius-media);
}

.hero-media a,
.video-block a,
.property-card figure a,
.image-slice {
  display: block;
}

.hero-media img {
  aspect-ratio: 16 / 10;
  height: min(58vh, 620px);
  object-fit: cover;
}

.client-strip,
.section,
.footer {
  width: var(--container);
  margin: 0 auto;
}

.client-strip {
  padding: clamp(36px, 5vw, 58px) 0 var(--space-section);
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.client-logos span {
  min-height: 96px;
  padding: 32px 20px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
}

.client-logos img {
  display: none;
}

.client-logos span:last-child {
  border-right: 0;
}

.section {
  padding: var(--space-section) 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap-grid);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.section-heading h2,
.philosophy h2,
.newsletter h2 {
  max-width: 980px;
  font-size: clamp(44px, 6vw, 84px);
}

.section-intro {
  max-width: 780px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.48;
}

.service-grid,
.team-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}

.service-card,
.team-grid article,
.post-grid article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.service-card h3,
.team-grid h3,
.post-grid h3 {
  margin: 16px 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
}

.service-card p:not(.eyebrow),
.post-grid p:not(.eyebrow),
.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.image-slice,
.portrait {
  background-image: url("assets/generated/editorial-interior.jpg");
  background-size: 210%;
  filter: saturate(0.92);
}

.image-cap {
  background-image: url("assets/generated/cap-st-georges-resort.jpg");
  background-position: 50% 48%;
}

.image-soho {
  background-image: url("assets/generated/soho-resort.jpg");
  background-position: 50% 54%;
}

.image-city {
  background-image: url("assets/generated/city-colours.jpg");
  background-position: 50% 50%;
}

.image-slice {
  aspect-ratio: 4 / 3;
  margin-bottom: 26px;
}

.image-slice-a {
  background-position: 18% 44%;
}

.image-slice-b {
  background-position: 62% 40%;
}

.image-slice-c {
  background-position: 86% 54%;
}

.philosophy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.quote-credit {
  margin-top: 28px;
  color: var(--accent);
  font-weight: 700;
}

.video-block {
  position: relative;
  overflow: hidden;
}

.video-block img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.68);
  color: var(--paper);
  cursor: pointer;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filters button,
.frequency label {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  padding: 11px 15px;
  cursor: pointer;
}

.filters button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filters button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.project-list {
  border-top: 1px solid var(--line);
}

.estate-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.estate-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--paper);
  border: 1px solid var(--line);
  transition:
    transform 900ms var(--ease-out),
    filter 700ms ease,
    box-shadow 900ms ease;
}

.estate-card:hover {
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.1);
}

.estate-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.estate-card img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  transition:
    transform 1400ms var(--ease-out),
    filter 900ms ease,
    opacity 900ms ease;
}

.estate-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.03) contrast(1.025);
  opacity: 0.96;
}

.estate-card-body {
  display: grid;
  align-content: start;
  padding: 28px;
}

.estate-card h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.estate-card p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.62;
}

.estate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.estate-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}

.estate-note {
  max-width: 680px;
  margin: 34px 0 0 auto;
  color: var(--muted);
  line-height: 1.62;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.25fr) 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.project-row strong {
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 650;
  line-height: 1;
  transition:
    color 560ms ease,
    transform 820ms var(--ease-out);
}

.project-row span,
.project-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-transform: uppercase;
}

.project-row:hover strong {
  color: var(--accent);
}

.project-row {
  transition:
    opacity 520ms ease,
    transform 820ms var(--ease-out),
    background 620ms ease,
    padding 820ms var(--ease-out);
}

.project-row:hover {
  background: rgba(251, 246, 236, 0.82);
  transform: translateX(10px);
  padding-inline: 12px;
}

.project-row:hover strong {
  transform: translateX(6px);
}

.is-filtered-out {
  display: none !important;
}

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stories article {
  min-height: 260px;
}

.stories p {
  margin: 0 0 28px;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.12;
}

.stories span,
.team-grid p {
  color: var(--muted);
}

.portrait {
  aspect-ratio: 3 / 4;
  background-size: 260%;
}

.portrait-a {
  background-position: 18% 32%;
}

.portrait-b {
  background-position: 52% 30%;
}

.portrait-c {
  background-position: 84% 34%;
}

.newsletter {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: start;
  background: var(--olive);
  color: var(--paper);
  margin-top: 60px;
  padding-inline: 56px;
}

.newsletter .eyebrow,
.newsletter input::placeholder {
  color: rgba(255, 253, 248, 0.62);
}

.newsletter form {
  display: grid;
  gap: 16px;
}

.frequency {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.frequency label {
  color: rgba(255, 253, 248, 0.78);
  border-color: rgba(255, 253, 248, 0.24);
}

.newsletter input {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.4);
  background: transparent;
  color: var(--paper);
  outline: 0;
}

.newsletter textarea {
  width: 100%;
  min-height: 112px;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.4);
  background: transparent;
  color: var(--paper);
  outline: 0;
  resize: vertical;
}

.newsletter input:focus,
.newsletter textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.modal input:focus,
.modal textarea:focus {
  border-color: var(--accent);
}

.newsletter .button-dark {
  width: fit-content;
  margin-top: 14px;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--olive);
}

.journal {
  padding-top: 150px;
}

.post-grid article {
  min-height: 0;
}

.footer {
  padding: 92px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 48px;
  font-size: clamp(86px, 18vw, 260px);
  line-height: 0.78;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: flex-end;
  margin-top: clamp(18px, 3vw, 34px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-grid > p:first-child {
  grid-column: 1;
  grid-row: 1;
}

.footer-grid > p:last-of-type {
  grid-column: 2;
  grid-row: 1;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 13px;
}

.page-hero {
  width: var(--container);
  margin: 0 auto;
  padding: var(--space-page-top) 0 clamp(42px, 6vw, 76px);
}

.page-hero h1 {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(52px, 8vw, 124px);
  font-weight: 750;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.services-hero {
  position: relative;
  isolation: isolate;
  min-height: min(88svh, 860px);
  display: grid;
  align-content: center;
}

.services-hero::before {
  position: absolute;
  inset: 3% -8% 0 -8%;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(12, 90, 67, 0.18), rgba(250, 245, 235, 0) 42%),
    linear-gradient(28deg, rgba(217, 225, 223, 0.62), rgba(250, 245, 235, 0) 58%);
  filter: blur(10px);
  content: "";
}

.services-hero h1 {
  max-width: 1040px;
}

.service-mobile-strip,
.service-card-media {
  display: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(44px, 7vw, 118px);
  align-items: center;
  width: var(--container);
  min-height: min(86svh, 860px);
  margin: 0 auto;
  padding: var(--space-page-top) 0 var(--space-section-tight);
}

.detail-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(56px, 6.7vw, 112px);
  font-weight: 750;
  line-height: 0.91;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
}

.detail-hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
}

.detail-hero-media img {
  aspect-ratio: 16 / 10;
  height: min(58vh, 620px);
  object-fit: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(38px, 6vw, 88px);
  align-items: start;
}

.detail-layout h2 {
  margin: 0 0 26px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.96;
}

.detail-layout p:not(.eyebrow),
.detail-panel li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.detail-panel {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.fact-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr;
  gap: var(--gap-grid);
  align-items: stretch;
  padding-top: var(--space-section-tight);
  padding-bottom: var(--space-section);
}

.detail-gallery img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-media);
}

.article-media {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--ink);
}

.article-media img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
}

.service-detail-grid,
.property-grid,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}

.service-detail-grid article,
.property-grid article,
.article-list article,
.contact-layout > div,
.contact-form {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.service-detail-grid span {
  color: var(--accent);
  font-weight: 700;
}

.service-detail-grid h2,
.property-grid h2,
.article-list h2,
.contact-layout h2,
.modal-panel h2 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.96;
}

.service-detail-grid p,
.property-grid p:not(.eyebrow),
.article-list p:not(.eyebrow),
.contact-layout p,
.modal-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
  padding-top: 0;
}

.service-intro h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 86px);
  line-height: 0.94;
  text-wrap: balance;
}

.service-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

.service-intro p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.62;
}

.service-modern-grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  padding-top: 0;
}

.service-modern-grid article {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid rgba(12, 90, 67, 0.14);
  border-top: 1px solid rgba(12, 90, 67, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.78), rgba(246, 237, 222, 0.5)),
    var(--paper);
}

.service-modern-grid article::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(12, 90, 67, 0.46), rgba(12, 90, 67, 0));
  content: "";
}

.service-modern-grid span {
  color: var(--green-deep);
}

.service-modern-grid h2 {
  margin-top: clamp(24px, 4vw, 46px);
  font-size: clamp(28px, 3vw, 44px);
}

.service-modern-grid .button {
  width: fit-content;
  margin-top: auto;
}

.process-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-process {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  padding-top: var(--space-section-tight);
  padding-bottom: var(--space-section-tight);
}

.service-process h2,
.service-cta h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: 0.94;
  text-wrap: balance;
}

.service-process .process-steps {
  border-radius: 8px;
  overflow: hidden;
}

.service-process .process-steps span {
  color: var(--green-ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.78), rgba(246, 237, 222, 0.8)),
    var(--paper-soft);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
}

.service-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px);
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(20, 129, 96, 0.95), rgba(7, 60, 49, 0.98)),
    var(--green-ink);
  color: var(--paper);
}

.service-cta::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.12), rgba(255, 250, 241, 0));
  content: "";
  pointer-events: none;
}

.service-cta .eyebrow,
.service-cta p {
  color: rgba(255, 250, 241, 0.76);
}

.service-cta p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 34px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.62;
}

.service-cta .button-dark {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.service-cta .button-dark:hover {
  background: transparent;
  color: var(--paper);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}

.process-steps span {
  min-height: 126px;
  display: grid;
  place-items: center;
  background: var(--paper-soft);
  font-size: clamp(24px, 3vw, 42px);
}

.property-grid {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.property-card figure {
  margin: 0 0 26px;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-media);
}

.property-card img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  transition:
    transform 1400ms var(--ease-out),
    filter 900ms ease,
    opacity 900ms ease;
}

.property-card:hover img {
  transform: scale(1.065) rotate(0.18deg);
  filter: saturate(1.03) contrast(1.025);
  opacity: 0.96;
}

.property-grid article,
.service-detail-grid article,
.post-grid article,
.team-grid article {
  transition:
    transform 900ms var(--ease-out),
    filter 700ms ease,
    box-shadow 900ms ease;
}

.tilt-card {
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
}

.tilt-card:hover {
  filter: saturate(1.02);
}

.property-grid article:hover,
.service-detail-grid article:hover,
.post-grid article:hover,
.team-grid article:hover {
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.1);
}

.image-slice,
.portrait,
.video-block,
.hero-media,
.estate-card figure,
.project-preview {
  overflow: hidden;
  border-radius: var(--radius-media);
}

.image-slice,
.portrait {
  transition:
    transform 1200ms var(--ease-out),
    filter 900ms ease;
}

.tilt-card:hover .image-slice,
.tilt-card:hover .portrait {
  transform: scale(1.018);
  filter: saturate(1.02) contrast(1.02);
}

.stories[data-slider] {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  overflow: hidden;
}

.stories[data-slider] .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 28px;
}

.stories[data-slider] article {
  display: none;
  grid-column: 1;
  max-width: 980px;
  animation: storySlide 940ms var(--ease-out);
}

.stories[data-slider] article.is-current {
  display: block;
}

.slider-controls {
  grid-column: 2;
  display: flex;
  gap: 10px;
}

.slider-controls button,
.modal-close {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 14px;
  text-transform: uppercase;
}

.slider-controls button:hover,
.modal-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.article-list {
  display: grid;
  gap: clamp(42px, 7vw, 82px);
}

.article-list article {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.article-list h2 {
  margin-top: 0;
}

.article-list .article-media {
  margin-bottom: 0;
}

.contact-layout {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.contact-form,
.modal form {
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.modal input,
.modal textarea {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.contact-form textarea,
.modal textarea {
  min-height: 128px;
  resize: vertical;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(680px, 100%);
  border-radius: var(--radius-media);
  background: var(--paper);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: 0 40px 120px rgba(17, 17, 17, 0.28);
  transform: translateY(16px) scale(0.985);
  transition: transform 760ms var(--ease-out);
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  float: right;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 48px));
  padding: 16px 18px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.22);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 360ms ease,
    transform 720ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms ease,
    transform 1400ms var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.parallax-media img {
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.025);
  transition: transform 500ms var(--ease-luxury);
}

.project-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: min(360px, 34vw);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--preview-x, -100vw), var(--preview-y, -100vh), 0) rotate(-3deg) scale(0.92);
  transition:
    opacity 360ms ease,
    transform 760ms var(--ease-out);
  box-shadow: 0 34px 110px rgba(17, 17, 17, 0.28);
}

.project-preview.is-visible {
  opacity: 1;
  transform: translate3d(var(--preview-x, -100vw), var(--preview-y, -100vh), 0) rotate(-0.5deg) scale(1);
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-media,
.video-block,
.property-card figure {
  animation: mediaSettle 1500ms var(--ease-out) both;
}

@keyframes mediaSettle {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

@keyframes storySlide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .tilt-card,
  .parallax-media img,
  .property-card img,
  .estate-card img,
  .project-row,
  [data-reveal] {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
  }

  .project-preview {
    display: none !important;
  }

  .property-grid article:hover,
  .service-detail-grid article:hover,
  .post-grid article:hover,
  .team-grid article:hover,
  .estate-card:hover {
    box-shadow: none;
  }

  .property-card:hover img,
  .estate-card:hover img {
    opacity: 1;
    filter: none;
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(calc(100vw - 40px), 760px);
    --space-page-top: clamp(104px, 18vw, 132px);
    --space-section: clamp(58px, 12vw, 88px);
    --space-section-tight: clamp(42px, 9vw, 64px);
    --gap-grid: clamp(16px, 4vw, 26px);
  }

  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding: 20px 24px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .menu-toggle {
    grid-column: 3;
    justify-self: end;
  }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: grid;
    align-content: center;
    gap: 22px;
    padding: 96px 24px 40px;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 680ms var(--ease-out);
  }

  .mobile-menu.is-open {
    transform: translateY(0);
  }

  .mobile-menu a {
    font-size: clamp(38px, 12vw, 72px);
    font-weight: 720;
    line-height: 0.95;
  }

  .mobile-menu a.is-current {
    color: var(--accent);
  }

  .hero,
  .detail-hero,
  .philosophy,
  .newsletter,
  .footer-grid,
  .service-intro,
  .service-detail-grid,
  .property-grid,
  .detail-layout,
  .detail-gallery,
  .contact-layout,
  .article-list article {
    grid-template-columns: 1fr;
  }

  .project-preview {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .detail-hero {
    min-height: auto;
  }

  .services-hero {
    min-height: auto;
    padding-bottom: var(--space-section-tight);
  }

  .services-hero::before {
    inset: 0 -14% 12% -14%;
    filter: blur(8px);
  }

  .service-mobile-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: clamp(28px, 7vw, 42px);
  }

  .service-mobile-strip img {
    aspect-ratio: 1 / 1.12;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .service-intro .eyebrow,
  .service-intro h2 {
    grid-column: auto;
  }

  .service-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-modern-grid article {
    min-height: 380px;
  }

  .service-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    margin-bottom: 22px;
    object-fit: cover;
    border-radius: 8px;
  }

  .detail-hero-media img,
  .detail-gallery img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .client-logos,
  .service-grid,
  .estate-card-grid,
  .stories,
  .team-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .client-logos span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(82px, 24vw, 118px);
    gap: 18px;
    align-items: center;
    min-height: clamp(108px, 25vw, 140px);
    padding: clamp(22px, 6vw, 34px) 0 clamp(22px, 6vw, 34px) clamp(22px, 6vw, 48px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(24px, 7.4vw, 38px);
    font-weight: 750;
    line-height: 0.98;
  }

  .client-logos img {
    display: block;
    width: clamp(82px, 24vw, 118px);
    aspect-ratio: 1 / 0.78;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .newsletter {
    gap: 36px;
    margin-top: 28px;
    padding-inline: 28px;
  }

  .footer-grid > p:first-child,
  .footer-grid > p:last-of-type,
  .footer nav {
    grid-column: auto;
    grid-row: auto;
  }

  .footer nav {
    justify-content: flex-start;
  }

  .footer {
    width: 100%;
    margin-top: var(--space-section-tight);
    padding: clamp(34px, 9vw, 54px) 20px calc(34px + env(safe-area-inset-bottom));
    border-top: 0;
    background: var(--ink);
    color: var(--paper);
  }

  .footer-brand {
    margin-bottom: 28px;
    font-size: clamp(48px, 14vw, 76px);
    line-height: 0.88;
  }

  .footer-grid {
    gap: 18px;
    padding-bottom: 20px;
  }

  .footer-grid p {
    margin: 0;
    color: rgba(255, 250, 241, 0.72);
    font-size: 15px;
    line-height: 1.5;
  }

  .footer nav {
    gap: 8px 16px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 250, 241, 0.16);
    color: var(--paper);
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .copyright {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 250, 241, 0.16);
    color: rgba(255, 250, 241, 0.62);
    font-size: 12px;
  }

  .filters {
    justify-content: center;
    width: 100%;
  }

  .filters button {
    flex: 1 1 auto;
    min-width: min(132px, 42vw);
  }

  .property-grid {
    width: 100%;
    justify-items: stretch;
  }

  .property-card {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .property-card figure {
    margin-bottom: 20px;
  }

  .article-list article {
    grid-template-columns: 1fr;
  }

  .article-list .article-media {
    margin-bottom: 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-cta {
    padding-inline: clamp(24px, 6vw, 40px);
  }

  .stories[data-slider] {
    grid-template-columns: 1fr;
  }

  .slider-controls {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100vw - 28px);
    --radius-media: 10px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 74px);
  }

  .page-hero h1,
  .detail-hero h1 {
    font-size: clamp(46px, 15vw, 72px);
    line-height: 0.95;
  }

  .section-heading h2,
  .philosophy h2,
  .newsletter h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 0.98;
  }

  .detail-layout h2,
  .service-detail-grid h2,
  .property-grid h2,
  .article-list h2,
  .contact-layout h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-row {
    gap: 10px;
    padding: 24px 0;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 26px;
  }

  .button {
    width: 100%;
  }

  .service-modern-grid {
    grid-template-columns: 1fr;
  }

  .service-modern-grid article {
    min-height: 0;
    padding: 18px;
  }

  .service-modern-grid h2 {
    margin-top: 18px;
  }

  .text-link {
    min-height: 38px;
    align-items: center;
  }

  .detail-gallery {
    gap: 14px;
  }

  .detail-gallery img,
  .article-media img,
  .property-card img {
    aspect-ratio: 4 / 3;
  }

  .client-strip {
    padding-bottom: var(--space-section);
  }

  .stories article {
    min-height: auto;
  }
}
