/* ==========================================================================
   AURORA ESTATES — design tokens
   ========================================================================== */
:root{
  --ink:            #15150F;
  --ink-soft:       #3A392F;
  --paper:          #FAFAF8;
  --paper-raise:    #F2F0E9;
  --hairline:       rgba(21,21,15,0.10);
  --hairline-strong:rgba(21,21,15,0.18);
  --brass:          #9C8355;
  --brass-soft:     rgba(156,131,85,0.35);
  --muted:          #8C8A7E;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body:    "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --radius-x: 700px;
  --radius-y: 178px;
  --radius-z: 460px;
  --perspective: 1300px;

  --panel-w: 42px;
  --panel-h: 112px;

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

@media (max-width: 980px){
  :root{
    --radius-x: 300px;
    --radius-y: 96px;
    --radius-z: 230px;
    --perspective: 900px;
    --panel-w: 26px;
    --panel-h: 70px;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; background: none; border: none; cursor: none; color: inherit; }
img{ display: block; max-width: 100%; }
@media (max-width: 980px){
  body{ cursor: auto; }
  .cursor-dot, .cursor-ring{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */
.cursor-dot, .cursor-ring{
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor-dot{
  width: 6px; height: 6px;
  background: var(--ink);
  transition: opacity .2s var(--ease-out);
}
.cursor-ring{
  width: 34px; height: 34px;
  border: 1px solid var(--hairline-strong);
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              border-color .25s var(--ease-out), background .25s var(--ease-out), opacity .2s;
}
.cursor-ring.is-hover{
  width: 68px; height: 68px;
  background: rgba(21,21,15,0.04);
  border-color: var(--ink);
}
.cursor-ring.is-drag{ width: 46px; height: 46px; background: var(--brass-soft); border-color: var(--brass); }

/* ==========================================================================
   Page shell
   ========================================================================== */
.page{
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(24px, 5vw, 64px) 0;
  opacity: 0;
  transform: translateY(-10px);
}
.nav.is-in{ animation: fadeUp .9s var(--ease-out) forwards; }

.nav-mark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links{
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin: 0; padding: 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links a{ position: relative; padding-bottom: 3px; }
.nav-links a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after{ right: 0; }
.nav-cta{ color: var(--ink); }

@media (max-width: 700px){
  .nav-links li:not(:last-child){ display: none; }
}

/* ==========================================================================
   Hero headline
   ========================================================================== */
.hero{
  text-align: center;
  padding: clamp(48px, 9vw, 88px) 24px 0;
}
.hero-eyebrow{
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0;
  transform: translateY(8px);
}
.hero-eyebrow.is-in{ animation: fadeUp .8s var(--ease-out) .15s forwards; }

.hero-headline{
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 440;
  font-style: normal;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(18px);
}
.hero-headline.is-in{ animation: fadeUp 1.1s var(--ease-out) .3s forwards; }

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

/* ==========================================================================
   Ring stage
   ========================================================================== */
.ring-stage{
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 90px) 20px clamp(60px, 8vw, 110px);
  min-height: 480px;
}

.ring-viewport{
  position: relative;
  width: min(1500px, 96vw);
  height: clamp(280px, 34vw, 420px);
  perspective: var(--perspective);
  perspective-origin: 50% 40%;
}

.ring{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
}
.ring.is-in{ animation: ringFade 1s var(--ease-out) .5s forwards; }
@keyframes ringFade{ to{ opacity: 1; } }

.panel{
  position: absolute;
  top: 50%; left: 50%;
  width: var(--panel-w);
  height: var(--panel-h);
  margin-left: calc(var(--panel-w) / -2);
  margin-top: calc(var(--panel-h) / -2);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 2px 10px rgba(21,21,15,0.06);
  background: var(--paper-raise);
  will-change: transform, filter, opacity;
  transform-style: preserve-3d;
  opacity: 0;
}
.panel.is-in{ transition: opacity .6s var(--ease-out); }
.panel img{
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.panel.is-selected{
  border-color: var(--brass);
  box-shadow: 0 6px 22px rgba(156,131,85,0.30);
}
.panel .panel-tag{
  position: absolute;
  top: 4px; left: 4px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0;
  transition: opacity .3s;
}
.panel.is-selected .panel-tag{ opacity: 1; }

/* ==========================================================================
   Center preview
   ========================================================================== */
.center-preview{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: min(420px, 70vw);
  text-align: center;
  pointer-events: none;
  z-index: 5;
}
.preview-face{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  opacity: 0;
  transition: opacity .5s var(--ease-in-out), transform .5s var(--ease-in-out);
  pointer-events: none;
}
.preview-face.is-active{ opacity: 1; }

.preview-default h2{
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
}
.preview-default p{
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.preview-hover-image{
  width: 148px; height: 190px;
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(21,21,15,0.16);
  transform: scale(.97);
}
.preview-hover-image img{ width: 100%; height: 100%; object-fit: cover; }

.preview-selected{ pointer-events: none; }
.preview-selected-image{
  width: 220px; height: 150px;
  margin: 0 auto 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(21,21,15,0.18);
}
.preview-selected-image img{ width: 100%; height: 100%; object-fit: cover; }
.preview-selected-cat{
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.preview-selected-title{
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
}
.preview-selected-city{
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.view-property{
  pointer-events: auto;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: opacity .25s, border-color .25s;
}
.view-property:hover{ opacity: .55; }
.view-property span{ display: inline-block; transition: transform .3s var(--ease-out); }
.view-property:hover span{ transform: translateX(4px); }

/* ==========================================================================
   Category rail
   ========================================================================== */
.category-rail{ position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cat-label{
  position: absolute;
  pointer-events: auto;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
}
.cat-label.is-in{ transition: opacity .6s var(--ease-out), color .25s, transform .6s var(--ease-out); }
.cat-label span{
  margin-left: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cat-label::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px; background: var(--brass);
  transition: right .3s var(--ease-out);
}
.cat-label:hover{ color: var(--ink); }
.cat-label:hover::after{ right: 0; }

.cat-label[data-pos="top-left"]     { top: 6%;  left: 4%; }
.cat-label[data-pos="top-right"]    { top: 6%;  right: 4%; }
.cat-label[data-pos="mid-left"]     { top: 46%; left: -1%; }
.cat-label[data-pos="mid-right"]    { top: 46%; right: -1%; }
.cat-label[data-pos="bottom-left"]  { bottom: 4%; left: 10%; }
.cat-label[data-pos="bottom-right"] { bottom: 4%; right: 10%; }
.cat-label[data-pos="top-center-l"] { top: -2%; left: 30%; }
.cat-label[data-pos="top-center-r"] { top: -2%; right: 30%; }

@media (max-width: 980px){
  .cat-label[data-pos="mid-left"],
  .cat-label[data-pos="mid-right"],
  .cat-label[data-pos="top-center-l"],
  .cat-label[data-pos="top-center-r"]{ display: none; }
  .cat-label[data-pos="top-left"]{ top: 2%; left: 2%; }
  .cat-label[data-pos="top-right"]{ top: 2%; right: 2%; }
  .cat-label[data-pos="bottom-left"]{ bottom: -2%; left: 4%; }
  .cat-label[data-pos="bottom-right"]{ bottom: -2%; right: 4%; }
}

/* ==========================================================================
   Hint
   ========================================================================== */
.stage-hint{
  position: absolute;
  bottom: clamp(4px, 2vw, 18px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
}
.stage-hint.is-in{ animation: fadeUp 1s var(--ease-out) 1.1s forwards; }
