:root {
  color-scheme: dark;
  --ink: #050505;
  --charcoal: #101114;
  --ivory: #f6efe3;
  --champagne: #d9bd7a;
  --blue: #55b7ff;
  --wine: #7b1837;
  --mist: #a7a9ad;
  --panel: rgba(8, 9, 12, 0.72);
  --line: rgba(246, 239, 227, 0.12);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: Inter, "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader span {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 1px solid rgba(217, 189, 122, 0.32);
  border-top-color: var(--champagne);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.loader p {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.background,
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -3;
  background:
    radial-gradient(circle at 18% 16%, rgba(123, 24, 55, 0.32), transparent 34%),
    radial-gradient(circle at 50% 20%, rgba(217, 189, 122, 0.16), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(85, 183, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #050505 0%, #0d0d10 50%, #050505 100%);
}

.spotlight {
  z-index: 4;
  opacity: 0.8;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(246, 239, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 227, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
}

.ring {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(217, 189, 122, 0.11);
  border-radius: 999px;
  transform: translateX(-50%);
}

.ring-one {
  top: 48px;
  width: 720px;
  height: 720px;
}

.ring-two {
  top: 112px;
  width: 520px;
  height: 520px;
  border-color: rgba(85, 183, 255, 0.11);
}

.sweep {
  position: absolute;
  top: 144px;
  left: 50%;
  width: 1px;
  height: 420px;
  transform-origin: bottom;
  background: linear-gradient(180deg, transparent, rgba(217, 189, 122, 0.32), transparent);
  animation: sweep 10s linear infinite;
}

.hero,
.section {
  position: relative;
  z-index: 8;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding: 48px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 16px;
  border: 1px solid rgba(217, 189, 122, 0.25);
  border-radius: 999px;
  background: rgba(217, 189, 122, 0.1);
  color: var(--champagne);
  font-size: 0.88rem;
  font-weight: 700;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.kicker,
.micro,
.lead,
.section p,
.door-grid p,
.service-grid p,
.profile-body p,
.detail-list,
footer {
  color: var(--mist);
}

.kicker {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  color: var(--ivory);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4rem, 10vw, 7.4rem);
  font-weight: 650;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
}

.actions,
.secondary-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions {
  margin-top: 32px;
}

.btn,
.secondary-actions a,
.secondary-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(246, 239, 227, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-weight: 750;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover,
.secondary-actions a:hover,
.secondary-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 189, 122, 0.55);
  box-shadow: 0 0 56px rgba(217, 189, 122, 0.16);
}

.btn-primary {
  border-color: rgba(217, 189, 122, 0.7);
  background: var(--champagne);
  color: #070707;
}

.micro {
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.secondary-actions {
  margin-top: 28px;
}

.secondary-actions a,
.secondary-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border-color: rgba(246, 239, 227, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--mist);
}

.profile-card,
.proof,
.service-grid article,
.door-grid article,
.contact-form {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    var(--panel);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(22px);
}

.profile-card {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 22px;
  border-radius: 30px;
  transform-style: preserve-3d;
  transition: transform 0.22s ease;
}

.portrait {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 227, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.05), rgba(5, 5, 5, 0.74)),
    url("assets/justin-placeholder.jpg") center / cover;
}

.monogram {
  padding: 12px 16px;
  border: 1px solid rgba(246, 239, 227, 0.15);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.portrait-pill {
  padding: 9px 12px;
  border: 1px solid rgba(217, 189, 122, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.profile-body {
  padding-top: 22px;
}

.profile-label {
  margin: 0 0 10px;
  color: var(--champagne);
  font-size: 0.92rem;
}

.profile-body h2 {
  font-size: 2.55rem;
}

.profile-body > p {
  margin: 8px 0 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.mini-grid div {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 189, 122, 0.22);
  border-radius: 16px;
  background: rgba(217, 189, 122, 0.08);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-grid div:first-child {
  border-color: rgba(123, 24, 55, 0.45);
  background: rgba(123, 24, 55, 0.22);
}

.mini-grid div:nth-child(2) {
  border-color: rgba(85, 183, 255, 0.25);
  background: rgba(85, 183, 255, 0.1);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(246, 239, 227, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.detail-list p {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.detail-list strong {
  color: var(--blue);
}

.detail-list a {
  color: var(--ivory);
}

.card-actions,
.qr-row {
  margin-top: 20px;
}

.qr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(246, 239, 227, 0.1);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.25);
}

.qr-row strong,
.qr-row span {
  display: block;
}

.qr-row span {
  max-width: 185px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--mist);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-row img {
  padding: 8px;
  border: 1px solid rgba(246, 239, 227, 0.1);
  border-radius: 16px;
  background: #fff;
}

.availability {
  margin: 18px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.proof {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(100% - 40px, 980px);
  margin: 24px auto 0;
  padding: 8px;
  border-radius: 28px;
}

.proof span {
  padding: 10px 16px;
  border: 1px solid rgba(246, 239, 227, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--mist);
  font-size: 0.9rem;
}

.section {
  padding: 76px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--champagne);
  font-size: 0.86rem;
  font-weight: 800;
}

.section h2 {
  font-size: clamp(2.4rem, 4vw, 3.45rem);
}

.section > div > p,
.section-head > p,
.contact > div > p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.06rem;
  line-height: 1.7;
}

.service-grid,
.door-grid {
  display: grid;
  gap: 16px;
}

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

.service-grid article,
.door-grid article {
  border-radius: 26px;
  padding: 22px;
}

.service-grid span,
.door-grid h3 {
  display: block;
  color: var(--ivory);
  font-size: 1.25rem;
  font-weight: 800;
}

.service-grid p,
.door-grid p {
  margin: 12px 0 0;
  line-height: 1.65;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.door-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.door-grid article {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.door-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 189, 122, 0.35);
}

.door-grid a {
  margin-top: auto;
  padding-top: 24px;
  color: var(--champagne);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(246, 239, 227, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ivory);
  font: inherit;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-actions p {
  margin: 0;
  color: var(--mist);
  font-size: 0.9rem;
}

.form-actions p.success {
  color: var(--champagne);
}

.form-actions p.error {
  color: #ffadad;
}

footer {
  position: relative;
  z-index: 8;
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 28px 0 112px;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 8px;
  color: var(--champagne);
}

.dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 400px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(246, 239, 227, 0.12);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 70px rgba(217, 189, 122, 0.18);
  backdrop-filter: blur(18px);
}

.dock a,
.dock button {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 800;
}

.dock a:hover,
.dock button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--champagne);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    margin: 0 auto;
    text-align: center;
  }

  .actions,
  .secondary-actions {
    justify-content: center;
  }

  .section-head {
    display: block;
  }

  .door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero,
  .section {
    width: min(100% - 28px, 1240px);
  }

  .hero {
    gap: 34px;
    padding: 34px 0 72px;
  }

  .actions,
  .secondary-actions {
    flex-direction: column;
  }

  .btn,
  .secondary-actions a,
  .secondary-actions button {
    width: 100%;
  }

  .profile-card {
    padding: 16px;
  }

  .portrait {
    padding: 16px;
  }

  .service-grid,
  .door-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 18px;
  }

  .form-actions {
    display: grid;
  }

  .dock {
    display: flex;
  }
}

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