/* ==========================================================================
   oneproperty — Coming Soon Stylesheet
   Warm Architectural Minimalism aligned to the brand's terracotta/amber mark
   ========================================================================== */

:root {
  --bg-alabaster: #FAF7F2;
  --bg-ivory: #FFFFFF;
  --bg-sand: #F3EDE4;

  --ink-primary: #1A1715;
  --ink-secondary: #5E564F;
  --ink-muted: #8A8178;

  --brand-crimson: #A62617;
  --brand-sienna: #C85A17;
  --brand-amber: #D4801E;
  --brand-gradient: linear-gradient(125deg, #A62617 0%, #C85A17 52%, #D4801E 100%);

  --border-hairline: rgba(26, 23, 21, 0.09);
  --border-strong: rgba(26, 23, 21, 0.16);
  --shadow-card: 0 24px 60px -24px rgba(26, 23, 21, 0.12), 0 4px 16px -4px rgba(26, 23, 21, 0.04);
  --shadow-soft: 0 12px 30px -14px rgba(166, 38, 23, 0.28);

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--bg-alabaster);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ambient Architectural Background ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 23, 21, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 23, 21, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.bg-glow--primary {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(212, 128, 30, 0.24) 0%, rgba(166, 38, 23, 0.06) 60%, transparent 75%);
  animation: driftGlow 18s ease-in-out infinite alternate;
}

.bg-glow--secondary {
  width: 440px;
  height: 440px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(200, 90, 23, 0.16) 0%, transparent 70%);
  animation: driftGlow 22s ease-in-out infinite alternate-reverse;
}

@keyframes driftGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-28px, 24px, 0) scale(1.08);
  }
}

/* ---------- Page Container ---------- */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100svh;
  padding: 28px clamp(20px, 4vw, 48px) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(32px, 5vh, 52px);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out-expo);
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  width: clamp(165px, 19vw, 224px);
  height: auto;
}

/* ---------- Hero Grid ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
  gap: clamp(30px, 4.5vw, 56px);
}

.hero-visual {
  display: flex;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.65rem, 5.2vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.title-accent {
  font-style: italic;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  color: var(--ink-secondary);
}

/* ---------- Waitlist Box ---------- */
.waitlist-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  max-width: 540px;
}

.interest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.interest-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-right: 2px;
}

.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  appearance: none;
  border: 1px solid var(--border-hairline);
  background: var(--bg-alabaster);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.pill:hover {
  border-color: rgba(200, 90, 23, 0.4);
  color: var(--ink-primary);
}

.pill.is-active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.input-group:focus-within {
  background: var(--bg-ivory);
  border-color: rgba(200, 90, 23, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 90, 23, 0.1);
}

.input-group input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink-primary);
  outline: none;
  padding: 8px 0;
}

.input-group input::placeholder {
  color: var(--ink-muted);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease, filter 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px -14px rgba(166, 38, 23, 0.42);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease-out-expo);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-feedback {
  margin: 8px 4px 0;
  min-height: 18px;
  font-size: 0.8rem;
  color: var(--brand-crimson);
  font-weight: 500;
}

.form-feedback:empty {
  display: none;
}

/* Success State */
.waitlist-success {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 8px 4px 4px;
  animation: popIn 0.45s var(--ease-out-expo) both;
}

.waitlist-success[hidden] {
  display: none;
}

.success-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(200, 90, 23, 0.12);
  color: var(--brand-crimson);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.success-icon svg {
  width: 20px;
  height: 20px;
}

.success-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 190px;
}

.success-copy strong {
  font-size: 0.94rem;
  color: var(--ink-primary);
}

.success-copy span {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.reset-link {
  border: none;
  background: transparent;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reset-link:hover {
  color: var(--brand-crimson);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Animated Architectural Card ---------- */
.arch-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.arch-card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--spot-x, 70%) var(--spot-y, 25%),
    rgba(212, 128, 30, 0.13),
    transparent 65%
  );
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.blueprint-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #FCF9F4 0%, #F5EDE2 100%);
  border: 1px solid rgba(26, 23, 21, 0.06);
  border-radius: 20px;
  padding: 12px 10px 10px;
  overflow: hidden;
}

.blueprint-svg {
  display: block;
  width: 100%;
  height: auto;
  flex: 1;
  min-height: 0;
}

/* SVG Stroke-Draw & Continuous House Loop */
.bp-line {
  stroke-dasharray: 102;
  stroke-dashoffset: 102;
}

.is-loaded .bp-line--structure {
  animation: loopStructure 9s cubic-bezier(0.37, 0, 0.63, 1) 0.2s infinite;
}

.is-loaded .bp-line--roof {
  animation: loopRoof 9s cubic-bezier(0.37, 0, 0.63, 1) 0.2s infinite;
}

.is-loaded .bp-line--detail {
  animation: loopDetail 9s cubic-bezier(0.37, 0, 0.63, 1) 0.2s infinite;
}

.bp-fill,
.bp-glass {
  opacity: 0;
}

.is-loaded .bp-fill {
  animation: loopFill 9s ease-in-out 0.2s infinite;
}

.is-loaded .bp-glass {
  animation: loopGlass 9s ease-in-out 0.2s infinite;
}

.bp-sun {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.is-loaded .bp-sun {
  animation: loopSun 9s ease-in-out 0.2s infinite;
}

@keyframes loopGround {
  0% {
    stroke-dashoffset: 102;
    opacity: 1;
  }
  12% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  88% {
    stroke-dashoffset: -102;
    opacity: 0;
  }
  89%,
  100% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
}

@keyframes loopStructure {
  0% {
    stroke-dashoffset: 102;
    opacity: 1;
  }
  17% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  77% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  89% {
    stroke-dashoffset: -102;
    opacity: 0;
  }
  90%,
  100% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
}

@keyframes loopRoof {
  0%,
  7% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
  8% {
    stroke-dashoffset: 102;
    opacity: 1;
  }
  26% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  79% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  91% {
    stroke-dashoffset: -102;
    opacity: 0;
  }
  92%,
  100% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
}

@keyframes loopDetail {
  0%,
  13% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
  14% {
    stroke-dashoffset: 102;
    opacity: 1;
  }
  30% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  75% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  86% {
    stroke-dashoffset: -102;
    opacity: 0;
  }
  87%,
  100% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
}

@keyframes loopMullion {
  0%,
  19% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
  20% {
    stroke-dashoffset: 102;
    opacity: 1;
  }
  35% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  73% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  84% {
    stroke-dashoffset: -102;
    opacity: 0;
  }
  85%,
  100% {
    stroke-dashoffset: 102;
    opacity: 0;
  }
}

@keyframes loopFill {
  0%,
  22% {
    opacity: 0;
  }
  35%,
  72% {
    opacity: 1;
  }
  82%,
  100% {
    opacity: 0;
  }
}

@keyframes loopGlass {
  0%,
  26% {
    opacity: 0;
  }
  38%,
  71% {
    opacity: 1;
  }
  81%,
  100% {
    opacity: 0;
  }
}

@keyframes loopSun {
  0%,
  22% {
    opacity: 0;
    transform: translate(0, 4px) scale(0.9);
  }
  35%,
  72% {
    opacity: 1;
    transform: translate(-5px, -2px) scale(1.06);
  }
  82%,
  100% {
    opacity: 0;
    transform: translate(0, 4px) scale(0.9);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-crimson);
}

/* ---------- Staggered Entrance Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.is-loaded .reveal {
  animation: revealUp 0.75s var(--ease-out-expo) var(--delay, 0ms) forwards;
}

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

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-title {
    order: 1;
    margin-bottom: 0;
  }

  .hero-visual {
    order: 2;
  }

  .hero-subtitle {
    order: 3;
    margin-bottom: 0;
    max-width: none;
  }

  .waitlist-box {
    order: 4;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    background-color: #F2EAE0;
  }

  .bg-grid {
    opacity: 0.45;
  }

  .page-shell {
    padding: 0;
    gap: 0;
    justify-content: flex-start;
  }

  .site-header {
    order: 1;
    justify-content: center;
    padding: 22px 20px 10px;
  }

  .brand-logo {
    width: 152px;
  }

  .hero {
    display: contents;
  }

  .hero-title {
    order: 2;
    padding: 0 22px;
    text-align: center;
    font-size: clamp(2.1rem, 8.6vw, 2.55rem);
    line-height: 1.04;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    order: 3;
    padding: 0 24px;
    margin: 2px 0 0;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .hero-visual {
    order: 4;
    margin: auto 0;
    padding: 14px 16px;
    justify-content: center;
  }

  .arch-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  .arch-card-spotlight {
    display: none;
  }

  .blueprint-stage {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    align-items: center;
  }

  .blueprint-svg {
    width: auto;
    max-width: 100%;
    height: 192px;
    max-height: 192px;
    flex: none;
    margin: 0 auto;
  }

  /* Compact frosted translucent white bottom sheet */
  .waitlist-box {
    order: 5;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -12px 32px -18px rgba(26, 23, 21, 0.14);
    padding: 14px 18px 12px;
    max-width: 100%;
    animation-delay: 200ms !important;
  }

  .interest-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 10px;
  }

  .interest-label {
    font-size: 0.68rem;
    margin: 0;
  }

  .interest-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .pill {
    text-align: center;
    padding: 5px 4px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.72);
  }

  .input-group {
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    padding: 4px 4px 4px 12px;
    border-radius: 12px;
    gap: 6px;
  }

  .input-group:focus-within {
    background: rgba(255, 255, 255, 0.96);
  }

  .input-group input {
    padding: 6px 0;
    font-size: 1rem;
  }

  .submit-btn {
    width: auto;
    border-radius: 9px;
    padding: 9px 13px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .btn-arrow {
    width: 14px;
    height: 14px;
  }

  .site-footer {
    order: 6;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 18px 14px;
    border-top: 1px solid rgba(26, 23, 21, 0.08);
    justify-content: space-between;
    font-size: 0.72rem;
    gap: 8px;
    animation-delay: 200ms !important;
  }
}

/* ---------- Reduced Motion Support ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .bp-fill,
  .bp-glass,
  .bp-sun {
    opacity: 1 !important;
    transform: none !important;
  }

  .bp-line {
    stroke-dashoffset: 0 !important;
  }
}
