/* Archway Doors — coming soon */

:root {
  --bg-deep: #0a0d12;
  --bg-mid: #12171f;
  --bg-elevated: rgba(18, 23, 32, 0.72);
  --ink: #f2efe8;
  --ink-muted: rgba(242, 239, 232, 0.58);
  --accent: #d4b56a;
  --accent-bright: #e8cf8a;
  --accent-dim: #9a7d45;
  --accent-soft: rgba(212, 181, 106, 0.18);
  --accent-glow: rgba(212, 181, 106, 0.35);
  --border: rgba(242, 239, 232, 0.1);
  --border-strong: rgba(212, 181, 106, 0.28);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-deep);
  background-image: radial-gradient(
      ellipse 100% 70% at 50% -15%,
      rgba(212, 181, 106, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(74, 90, 120, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(212, 181, 106, 0.05), transparent),
    linear-gradient(168deg, var(--bg-mid) 0%, var(--bg-deep) 42%, #06080c 100%);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Soft color orbs */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: blob-drift 22s ease-in-out infinite;
}

.ambient-blob--1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation-delay: 0s;
}

.ambient-blob--2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  bottom: 5%;
  left: -15%;
  background: radial-gradient(circle, rgba(100, 120, 160, 0.25), transparent 70%);
  animation-delay: -7s;
  opacity: 0.4;
}

.ambient-blob--3 {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  top: 42%;
  left: 35%;
  background: radial-gradient(circle, rgba(212, 181, 106, 0.12), transparent 65%);
  animation-delay: -14s;
  opacity: 0.65;
}

@keyframes blob-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, 3%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 1%) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob {
    animation: none;
  }
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 85% 75% at 50% 45%,
    transparent 0%,
    rgba(6, 8, 12, 0.5) 100%
  );
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.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;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: max(1.25rem, env(safe-area-inset-top, 0px)) clamp(1.25rem, 4vw, 3rem)
    1.75rem;
  border-bottom: 1px solid transparent;
  background: linear-gradient(
    to bottom,
    rgba(6, 8, 12, 0.35) 0%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  transition: opacity var(--transition), transform var(--transition);
}

.logo:hover {
  opacity: 0.92;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.logo-mark {
  width: 2.65rem;
  height: 2.65rem;
  border: 2px solid var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(
      165deg,
      rgba(212, 181, 106, 0.35) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, var(--accent-soft) 0%, transparent 72%);
  box-shadow: inset 0 -10px 14px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(212, 181, 106, 0.12);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px 6px auto;
  height: 40%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  pointer-events: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    rgba(242, 239, 232, 0.88) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "visual"
    "inner";
  align-items: start;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 3rem)
    max(1.5rem, env(safe-area-inset-bottom, 0px));
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: "inner visual";
    align-items: center;
    gap: 2rem;
    padding-top: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: max(4rem, env(safe-area-inset-bottom, 0px));
  }
}

.hero-inner {
  grid-area: inner;
  max-width: 34rem;
  width: 100%;
  min-width: 0;
  justify-self: center;
}

@media (min-width: 900px) {
  .hero-inner {
    justify-self: start;
  }
}

.hero-inner > * {
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-inner > *:nth-child(1) {
  animation-delay: 0.08s;
}
.hero-inner > *:nth-child(2) {
  animation-delay: 0.16s;
}
.hero-inner > *:nth-child(3) {
  animation-delay: 0.24s;
}
.hero-inner > *:nth-child(4) {
  animation-delay: 0.32s;
}
.hero-inner > *:nth-child(5) {
  animation-delay: 0.38s;
}
.hero-inner > *:nth-child(6) {
  animation-delay: 0.44s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner > * {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-line {
  flex: 0 0 2.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--accent),
    rgba(212, 181, 106, 0.15)
  );
  box-shadow: 0 0 12px var(--accent-soft);
}

.eyebrow-text {
  line-height: 1.35;
}

@media (min-width: 480px) {
  .eyebrow-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .eyebrow {
    flex-wrap: wrap;
  }
  .eyebrow-line {
    flex-basis: 100%;
    max-width: 3rem;
  }
}

.headline {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 100%;
}

@media (min-width: 600px) {
  .headline {
    font-size: clamp(3.25rem, 11vw, 6.25rem);
  }
}

.headline-kicker {
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  font-style: normal;
  letter-spacing: inherit;
  text-transform: none;
  padding-left: 0;
  background: linear-gradient(
    180deg,
    #fffefb 0%,
    rgba(242, 239, 232, 0.88) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.headline-display {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(0.5rem, 2vw, 0.85rem);
  margin-top: 0;
}

.headline-bar {
  flex: 0 0 5px;
  width: 5px;
  align-self: stretch;
  min-height: 0.55em;
  margin-top: 0.08em;
  margin-bottom: 0.04em;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-bright) 0%,
    var(--accent) 35%,
    var(--accent-dim) 100%
  );
  box-shadow: 0 0 24px rgba(212, 181, 106, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Wrapper holds shadow so we don’t stack filter + clipped text (fixes ghost “soon”) */
.headline-soon-wrap {
  display: inline-block;
  filter: drop-shadow(0 6px 28px rgba(212, 181, 106, 0.18))
    drop-shadow(0 14px 36px rgba(0, 0, 0, 0.35));
}

.headline-soon {
  display: block;
  font-family: inherit;
  font-size: 1em;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: inherit;
  background: linear-gradient(
    118deg,
    #fff9e8 0%,
    var(--accent-bright) 18%,
    var(--accent) 42%,
    var(--accent-dim) 72%,
    var(--accent-bright) 100%
  );
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  /* Both needed: avoids WebKit painting fill + gradient as two layers */
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: soon-shimmer 10s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .headline-soon {
    animation: none;
    background-position: 50% 50%;
  }
}

@keyframes soon-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 420px) {
  .headline-display {
    flex-direction: column;
    gap: 0.5rem;
  }
  .headline-bar {
    width: 2.75rem;
    height: 4px;
    min-height: 0;
    align-self: flex-start;
    margin: 0;
    background: linear-gradient(
      90deg,
      var(--accent-bright) 0%,
      var(--accent) 50%,
      transparent 100%
    );
  }
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 3.5vw, 1.0625rem);
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 29rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.notify-shell {
  position: relative;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(212, 181, 106, 0.42) 0%,
    rgba(255, 255, 255, 0.1) 35%,
    rgba(212, 181, 106, 0.12) 70%,
    rgba(18, 23, 32, 0.95) 100%
  );
  box-shadow: var(--shadow-soft), 0 0 40px rgba(212, 181, 106, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.notify {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 480px) {
  .notify {
    flex-direction: row;
    align-items: stretch;
  }
}

.notify-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(8, 10, 14, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.notify-input::placeholder {
  color: rgba(242, 239, 232, 0.32);
}

.notify-input:hover {
  border-color: rgba(212, 181, 106, 0.25);
  background: rgba(8, 10, 14, 0.65);
}

.notify-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.notify-btn {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  padding: 0.95rem 1.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1510;
  background: linear-gradient(
    165deg,
    var(--accent-bright) 0%,
    var(--accent) 40%,
    var(--accent-dim) 100%
  );
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
    filter var(--transition);
  box-shadow: 0 4px 16px rgba(212, 181, 106, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.notify-btn-text {
  position: relative;
  z-index: 1;
}

.notify-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 55%
  );
  transform: translateX(-100%);
  animation: btn-shine 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .notify-btn-shine {
    animation: none;
    opacity: 0;
  }
}

@keyframes btn-shine {
  0%,
  100% {
    transform: translateX(-100%);
  }
  40%,
  60% {
    transform: translateX(100%);
  }
}

.notify-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 28px rgba(212, 181, 106, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.notify-btn:active {
  transform: scale(0.98);
}

.notify-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.form-message {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.form-message.is-error {
  color: #f0b8a8;
}

.features {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.features li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), color var(--transition),
    box-shadow var(--transition);
}

.features li:hover {
  border-color: var(--border-strong);
  color: rgba(242, 239, 232, 0.78);
  box-shadow: 0 0 20px rgba(212, 181, 106, 0.08);
}

/* Arch scene — vault + gate share one assembly (aligned, single silhouette) */
.arch-visual {
  grid-area: visual;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: clamp(220px, 52vw, 300px);
  padding-top: 0.25rem;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.arch-assembly {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(88%, 280px);
  flex-shrink: 0;
}

/*
 * Segmental arch (shallow curve): wide horizontal radius, short vertical —
 * reads as masonry arch, not a dome or sphere.
 */
.arch-vault {
  position: relative;
  flex-shrink: 0;
  height: clamp(40px, 10vw, 58px);
  margin-bottom: -3px;
  z-index: 2;
  border: 2px solid var(--border-strong);
  border-bottom: none;
  /* Segmental arch: wide horizontal radius, modest vertical rise */
  border-top-left-radius: 50% clamp(10px, 3.2vw, 22px);
  border-top-right-radius: 50% clamp(10px, 3.2vw, 22px);
  background: linear-gradient(
      180deg,
      rgba(232, 207, 138, 0.1) 0%,
      rgba(232, 207, 138, 0.03) 28%,
      transparent 52%
    ),
    linear-gradient(
      168deg,
      rgba(48, 56, 72, 0.55) 0%,
      rgba(22, 27, 36, 0.96) 45%,
      rgba(10, 12, 16, 1) 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -14px 28px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(212, 181, 106, 0.06);
  pointer-events: none;
}

/* Inner arch ring — same shallow curve */
.arch-vault::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 22%;
  bottom: -2px;
  border: 1px solid rgba(212, 181, 106, 0.28);
  border-bottom: none;
  border-top-left-radius: 50% clamp(8px, 2.6vw, 18px);
  border-top-right-radius: 50% clamp(8px, 2.6vw, 18px);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Brass threshold line where arch meets gate */
.arch-vault::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -2px;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 181, 106, 0.25) 15%,
    var(--accent-bright) 50%,
    rgba(212, 181, 106, 0.25) 85%,
    transparent 100%
  );
  opacity: 0.95;
  pointer-events: none;
  filter: blur(0.3px);
}

.arch-vault-keystone {
  position: absolute;
  left: 50%;
  top: clamp(4px, 1.5vw, 8px);
  transform: translateX(-50%);
  width: clamp(11px, 3vw, 15px);
  height: clamp(9px, 2.5vw, 12px);
  background: linear-gradient(
    165deg,
    #f2e6c8 0%,
    var(--accent) 40%,
    var(--accent-dim) 100%
  );
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 3;
  pointer-events: none;
}

@media (min-width: 900px) {
  .arch-visual {
    min-height: 460px;
    justify-content: center;
    padding-top: 0;
  }

  .arch-assembly {
    width: min(100%, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arch-visual {
    animation: none;
  }
}

/* Elliptical backlight — follows the doorway, not a floating sphere */
.arch-glow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  width: 122%;
  max-width: 360px;
  height: clamp(200px, 58vw, 340px);
  max-height: 92%;
  border-radius: 48% 48% 42% 42% / 38% 38% 52% 52%;
  background: radial-gradient(
    ellipse 72% 48% at 50% 28%,
    rgba(212, 181, 106, 0.13) 0%,
    rgba(212, 181, 106, 0.05) 42%,
    transparent 68%
  );
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  animation: arch-pulse 6s ease-in-out infinite;
}

@keyframes arch-pulse {
  0%,
  100% {
    opacity: 0.82;
    transform: translateX(-50%) scale(1, 1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.02, 1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arch-glow {
    animation: none;
  }
}

.arch-pedestal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  max-width: 240px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55) 0%,
    transparent 70%
  );
  filter: blur(6px);
  opacity: 0.9;
}

.arch-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: stretch;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--border-strong);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(
    180deg,
    rgba(18, 23, 32, 0.65) 0%,
    rgba(212, 181, 106, 0.06) 12%,
    rgba(18, 23, 32, 0.45) 28%,
    transparent 55%
  );
  display: flex;
  /* visible so doors can swing open and close smoothly without clipping */
  overflow: visible;
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -20px 40px rgba(0, 0, 0, 0.35);
  animation: arch-glow 8s ease-in-out infinite;
  perspective: 720px;
  perspective-origin: 50% 42%;
  cursor: pointer;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) {
  .arch-frame:hover {
    z-index: 3;
  }
}

.arch-frame.is-open {
  z-index: 3;
}

.arch-inset {
  position: absolute;
  inset: 5px;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(212, 181, 106, 0.12);
  pointer-events: none;
  z-index: 2;
}

.arch-lintel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 181, 106, 0.35) 18%,
    rgba(255, 250, 235, 0.55) 50%,
    rgba(212, 181, 106, 0.35) 82%,
    transparent
  );
  opacity: 0.75;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .arch-frame {
    animation: none;
  }
}

@keyframes arch-glow {
  0%,
  100% {
    box-shadow: var(--shadow-lift),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -20px 40px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(212, 181, 106, 0);
  }
  50% {
    box-shadow: var(--shadow-lift),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -20px 40px rgba(0, 0, 0, 0.35),
      0 0 72px -12px rgba(212, 181, 106, 0.22);
  }
}

.arch-panel {
  flex: 1;
  background: linear-gradient(
      118deg,
      rgba(35, 42, 54, 0.55) 0%,
      rgba(18, 23, 32, 0.95) 45%,
      rgba(12, 15, 20, 0.98) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 3px
    );
  border-right: 1px solid var(--border);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.75s cubic-bezier(0.33, 1, 0.32, 1);
}

.arch-panel--right {
  border-right: none;
  border-left: 1px solid var(--border);
  transform-origin: right center;
}

.arch-panel--left {
  transform-origin: left center;
}

@media (hover: hover) {
  .arch-frame:hover .arch-panel--left {
    transform: rotateY(-58deg);
  }

  .arch-frame:hover .arch-panel--right {
    transform: rotateY(58deg);
  }

  .arch-frame:hover .arch-handle {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.arch-frame.is-open .arch-panel--left {
  transform: rotateY(-58deg);
}

.arch-frame.is-open .arch-panel--right {
  transform: rotateY(58deg);
}

.arch-frame.is-open .arch-handle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Narrower swing on small screens so leaves stay on-screen */
@media (max-width: 899px) {
  @media (hover: hover) {
    .arch-frame:hover .arch-panel--left {
      transform: rotateY(-46deg);
    }

    .arch-frame:hover .arch-panel--right {
      transform: rotateY(46deg);
    }
  }

  .arch-frame.is-open .arch-panel--left {
    transform: rotateY(-46deg);
  }

  .arch-frame.is-open .arch-panel--right {
    transform: rotateY(46deg);
  }
}

.arch-panel-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 55%;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 60%
  );
  border-radius: 0 0 40% 0;
  pointer-events: none;
}

.arch-panel-shine--right {
  left: auto;
  right: 0;
  background: linear-gradient(
    235deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 55%
  );
  border-radius: 0 0 0 40%;
}

@media (prefers-reduced-motion: reduce) {
  .arch-panel--left,
  .arch-panel--right {
    transition: none;
  }

  .arch-frame:hover .arch-panel--left,
  .arch-frame:hover .arch-panel--right,
  .arch-frame.is-open .arch-panel--left,
  .arch-frame.is-open .arch-panel--right {
    transform: rotateY(0deg);
  }

  .arch-frame:hover .arch-handle,
  .arch-frame.is-open .arch-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.arch-handle {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: 9px;
  height: 38px;
  background: linear-gradient(
    90deg,
    #6e5a38,
    var(--accent-dim),
    var(--accent),
    var(--accent-bright),
    var(--accent),
    var(--accent-dim),
    #6e5a38
  );
  border-radius: 5px;
  box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(255, 255, 255, 0.25);
}

.arch-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f5e6c8, #8f7548);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem)
    max(1.75rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: linear-gradient(
    to top,
    rgba(6, 8, 12, 0.5) 0%,
    transparent 100%
  );
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.footer-credit {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.38);
  max-width: 100%;
  padding: 0 0.5rem;
  word-break: break-word;
}

.footer-credit a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer-credit a:hover {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(212, 181, 106, 0.2);
}

.footer-credit a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
