:root {
  --navy: #06101d;
  --navy-soft: #0d2137;
  --gold: #cda247;
  --gold-light: #e7ca83;
  --cream: #f4f0e7;
  --line: rgba(217, 179, 94, .42);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--navy); }
body { color: var(--cream); font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.4rem, 3.4vw, 3.7rem) clamp(1.35rem, 5.7vw, 7rem) clamp(1.5rem, 3vw, 3rem);
}

.hero__image, .hero__shade { position: absolute; inset: 0; z-index: -3; }
.hero__image {
  background: url("assets/villa-hero.png") center center / cover no-repeat;
  transform: scale(1.025);
  animation: reveal 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,10,18,.96) 0%, rgba(3,12,22,.88) 33%, rgba(3,12,22,.31) 68%, rgba(3,8,15,.44) 100%),
    linear-gradient(0deg, rgba(3,9,16,.93) 0%, transparent 36%, rgba(3,9,16,.18) 100%);
}
.architectural-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7; }
.architectural-lines::before { content: ""; position: absolute; left: 3.5vw; top: 0; height: 62%; border-left: 1px solid var(--line); }
.architectural-lines span:first-child { position: absolute; width: 22vw; height: 22vw; left: -7vw; bottom: 5vh; border: 1px solid rgba(205,162,71,.15); transform: rotate(45deg); }
.architectural-lines span:last-child { position: absolute; width: 34vw; right: -12vw; top: -5vw; border-top: 1px solid rgba(205,162,71,.18); transform: rotate(-35deg); }

.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.brand { display: block; width: clamp(185px, 22vw, 315px); }
.brand img {
  width: 100%;
  display: block;
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
}
.status { margin: .4rem 0 0; text-transform: uppercase; letter-spacing: .18em; font-size: .62rem; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: .7rem; }
.status span { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px rgba(205,162,71,.1); animation: pulse 2.2s infinite; }

.content { align-self: center; max-width: 920px; padding: 5vh 0 3vh; }
.eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: .48em; font-size: clamp(.62rem, .75vw, .8rem); margin: 0 0 1.55rem; display: flex; align-items: center; gap: 1rem; }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
h1 { font-weight: 300; font-size: clamp(2.6rem, 5.7vw, 6.4rem); line-height: .98; letter-spacing: -.045em; margin: 0; max-width: 1000px; text-shadow: 0 5px 35px rgba(0,0,0,.32); }
h1 strong { color: var(--gold-light); font-weight: 500; }
.intro { font-size: clamp(.88rem, 1.15vw, 1.15rem); font-weight: 300; letter-spacing: .09em; margin: 1.8rem 0 0; color: rgba(255,255,255,.78); }
.signature { font-family: "Segoe Script", "Brush Script MT", Georgia, serif; font-style: italic; color: var(--gold-light); font-size: clamp(1.15rem, 2vw, 2.15rem); margin-top: 2.2rem; transform: rotate(-2deg); transform-origin: left; width: max-content; }

.footer { border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.3rem; display: grid; gap: 1.25rem; }
.services { display: flex; align-items: center; gap: clamp(.65rem, 1.5vw, 1.55rem); color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .16em; font-size: clamp(.56rem, .65vw, .7rem); white-space: nowrap; }
.services i { width: 3px; height: 3px; background: var(--gold); transform: rotate(45deg); flex: 0 0 auto; }
.contact { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1.25rem; color: rgba(255,255,255,.6); font-size: clamp(.63rem, .75vw, .78rem); letter-spacing: .045em; }
.contact a { transition: color .25s ease; }
.contact a:hover, .contact a:focus-visible { color: var(--gold-light); outline: none; }

@keyframes reveal { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.025); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(205,162,71,0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 900px) {
  .hero { padding: 2rem 2.2rem; }
  .hero__shade { background: linear-gradient(90deg, rgba(3,10,18,.94), rgba(3,12,22,.55)), linear-gradient(0deg, rgba(3,9,16,.96), transparent 42%); }
  .content { padding-top: 7vh; }
  .contact { grid-template-columns: 1fr 1fr; justify-content: initial; }
}

@media (max-width: 600px) {
  .hero { min-height: 100svh; padding: 1.25rem 1.2rem 1.3rem; }
  .hero__image { background-position: 64% center; }
  .hero__shade { background: linear-gradient(90deg, rgba(3,10,18,.9), rgba(3,10,18,.38)), linear-gradient(0deg, rgba(3,9,16,.98) 0%, rgba(3,9,16,.7) 42%, rgba(3,9,16,.28) 100%); }
  .topbar { align-items: center; }
  .brand { width: 178px; }
  .status { max-width: 95px; line-height: 1.5; letter-spacing: .11em; font-size: .5rem; }
  .content { align-self: end; padding: 8vh 0 4vh; }
  .eyebrow { margin-bottom: 1rem; letter-spacing: .32em; }
  .eyebrow::before { width: 26px; }
  h1 { font-size: clamp(2.25rem, 11.5vw, 3.5rem); line-height: 1.01; }
  .intro { margin-top: 1.15rem; line-height: 1.55; max-width: 280px; }
  .signature { margin-top: 1.25rem; }
  .footer { padding-top: 1rem; gap: 1rem; }
  .services { white-space: normal; flex-wrap: wrap; line-height: 1.4; row-gap: .5rem; }
  .contact { grid-template-columns: 1fr 1fr; gap: .72rem .8rem; font-size: .58rem; }
  .contact a:nth-child(even) { text-align: right; }
}

@media (max-height: 690px) {
  .signature { display: none; }
  .content { padding: 4vh 0 2.5vh; }
  .services { font-size: .5rem; }
}
