/* ==========================================================================
   M.A.P — "Under construction" holding page for magnafinds.com
   Same visual language as the full site (public/assets/css/main.css).
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/cinzel-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --abyss: #050c17;
  --void: #0a1628;
  --gold: #c5a059;
  --gold-hi: #e0c48b;
  --ink: #ede8dd;
  --ink-2: rgba(237, 232, 221, 0.78);
  --muted: #95a1b3;
  --line: rgba(197, 160, 89, 0.16);
  --line-2: rgba(197, 160, 89, 0.34);
  --stamp: #d46a61;
  --f-display: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --f-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
h1,
address {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Page frame ----------------------------------------------------------------- */
.soon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.5rem, 7vh, 5rem) 1rem 0;
  background:
    radial-gradient(48rem 34rem at 50% 42%, rgba(30, 62, 104, 0.5), transparent 70%),
    radial-gradient(34rem 24rem at 0% 0%, rgba(197, 160, 89, 0.08), transparent 70%),
    var(--void);
}

/* Faint graticule. */
.soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(197, 160, 89, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 160, 89, 0.05) 1px, transparent 1px);
  background-size: 6rem 6rem;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}

/* The index map of the case-study regions, ghosted behind the content. */
.soon__map {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 46%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 58% at 50% 46%, #000 35%, transparent 78%);
}

.soon__map img {
  width: min(78rem, 150vw);
  height: auto;
  opacity: 0.3;
}

/* A slow survey sweep across the map. */
.soon__sweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.soon__sweep::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.04) 80%, rgba(224, 196, 139, 0.15) 99.4%, transparent);
  transform: translateX(-100%);
  animation: sweep 11s linear infinite;
}

@keyframes sweep {
  to {
    transform: translateX(470%);
  }
}

/* Content ---------------------------------------------------------------------- */
.soon__inner {
  align-self: center;
  justify-self: center;
  width: min(100%, 44rem);
  padding-block: 1rem 3rem;
  text-align: center;
}

.soon__logo {
  display: grid;
  place-items: center;
  width: 5.75rem;
  height: 5.75rem;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.16), rgba(5, 12, 23, 0.6) 70%);
  box-shadow:
    0 0 0 7px rgba(197, 160, 89, 0.05),
    0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-family: var(--f-emoji);
  font-size: 2.75rem;
  line-height: 1;
}

.soon__abbr {
  margin-top: 1.6rem;
  color: var(--gold);
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  letter-spacing: 0.4em;
  /* Optical centring: tracking adds space after the last letter. */
  padding-left: 0.4em;
}

.soon__title {
  margin-top: 1.1rem;
  color: var(--gold);
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 7.6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .soon__title {
    background: linear-gradient(176deg, #ead3a1 0%, var(--gold) 46%, #a58546 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@media (forced-colors: active) {
  .soon__title {
    background: none;
    color: CanvasText;
  }
}

.soon__title span {
  display: block;
}

.soon__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.6rem 0 1.25rem;
  color: var(--gold);
}

.soon__ornament::before,
.soon__ornament::after {
  content: "";
  width: 4rem;
  height: 1px;
}

.soon__ornament::before {
  background: linear-gradient(270deg, var(--gold), rgba(197, 160, 89, 0));
}

.soon__ornament::after {
  background: linear-gradient(90deg, var(--gold), rgba(197, 160, 89, 0));
}

.soon__ornament svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: currentColor;
}

.soon__eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Dossier-style classification stamp. */
.soon__stamp {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(212, 106, 97, 0.85);
  color: var(--stamp);
  font-family: var(--f-mono);
  font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
  box-shadow: inset 0 0 0 3px rgba(212, 106, 97, 0.08);
}

.soon__lead {
  max-width: 30em;
  margin: 1.6rem auto 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
}

.soon__contact {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.soon__name {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.soon__role {
  color: var(--muted);
  font-size: 0.875rem;
}

.soon__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0 1.2rem;
  border: 1px solid var(--line-2);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}

.soon__phone:hover {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.08);
}

.soon__footer {
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .soon__sweep {
    display: none;
  }
}
