/* Born Again Homes Corporation — splash page (light fresco edition) */

:root {
  --paper: #ffffff;          /* pure white, same as the logo's background */
  --navy: #1e3a66;           /* deep navy from the logo */
  --navy-soft: #4a5f85;
  --gold: #c9a24a;           /* wheat gold from the logo */
  --gold-soft: rgba(201, 162, 74, 0.45);
  --ink-dim: rgba(30, 58, 102, 0.55);

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;

  /* Landscape fresco: blank-circle centre + logo size (as % of the art box) */
  --art-ratio: 1672 / 941;
  --void-x: 49.9%;
  --void-y: 50.5%;
  --logo-h: 56%;             /* logo square height, % of art box height */
  --art-max-h: 62svh;
  --art-fade: 0.42;          /* fresco strength over white (lower = lighter) */
  --slogan-size: clamp(15px, 1.7vw, 26px);     /* corner slogans */
  --headline-size: clamp(19px, 2.05vw, 32px);  /* bottom slogan: twice the increase */
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.splash {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.5vh, 20px) 0 clamp(16px, 3vh, 36px);
  gap: clamp(6px, 1.2vh, 18px);
}

/* ---------- Fresco + emblem ---------- */

.stage {
  position: relative;
  width: min(100vw, calc(var(--art-max-h) * var(--art-ratio)));
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.art {
  position: relative;
  aspect-ratio: var(--art-ratio);
  width: 100%;
  animation: art-in 1.8s ease-out both;
}

.art__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: var(--art-fade);
  /* fade the fresco's outer edges into the white page */
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 55%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 55%, rgba(0,0,0,0) 100%);
}

.emblem {
  position: absolute;
  left: var(--void-x);
  top: var(--void-y);
  height: var(--logo-h);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  animation: emblem-in 1.6s cubic-bezier(.2,.7,.2,1) 0.3s both;
}

/* faint luminous wash behind the badge, in the fresco's own tones */
.emblem__halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.9) 0%,
    rgba(255,251,240,0.7) 40%,
    rgba(214,228,245,0.25) 62%,
    rgba(255,255,255,0) 76%);
  pointer-events: none;
}

.emblem__logo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* multiply drops the logo's white square entirely, so only the badge
     and lettering sit on the fresco — no edge, no sticker effect */
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 72%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(circle closest-side, #000 72%, rgba(0,0,0,0) 100%);
}

/* ---------- Creed ---------- */

.creed {
  width: min(92vw, 980px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vh, 14px);
  animation: creed-in 1.4s ease-out 0.7s both;
}

.creed__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--headline-size);
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
}

.creed__rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(60%, 420px);
  color: var(--gold);
  margin: 2px 0;
}
.creed__rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,74,0) 0%, var(--gold) 50%, rgba(201,162,74,0) 100%);
}
.creed__rule i {
  font-style: normal;
  font-size: 13px;
  line-height: 1;
  color: var(--gold);
}

/* the two mottos, set into the upper corners of the fresco above the logo */
.mottos {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: creed-in 1.4s ease-out 0.6s both;
}
.motto {
  position: absolute;
  top: 6%;
  width: 32%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqw;
  text-align: center;
}
.motto--left  { left: 3%; }
.motto--right { right: 3%; }
.motto__mark {
  color: var(--gold);
  font-size: clamp(8px, 0.9cqw, 12px);
  line-height: 1;
}
.motto__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--slogan-size);
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
  text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 2px rgba(255,255,255,0.9);
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(4px, 1vh, 10px);
  animation: creed-in 1.4s ease-out 0.9s both;
}
.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color .2s ease;
}
.contact__item:hover,
.contact__item:focus-visible { color: #0f2a55; outline: none; }
.contact__item:focus-visible { box-shadow: 0 0 0 2px var(--gold-soft); }
.contact__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact__value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 24px);
  letter-spacing: 0.03em;
}
.contact__sep { color: var(--gold); font-size: 11px; }

/* ---------- Footer ---------- */

.colophon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.colophon__sep { color: var(--gold-soft); }

/* ---------- Motion ---------- */

@keyframes art-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes emblem-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes creed-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .art, .emblem, .creed { animation: none; }
}

/* ---------- Mobile: portrait fresco ---------- */

@media (max-width: 700px) {
  :root {
    --art-ratio: 941 / 1672;
    --void-x: 49.5%;
    --void-y: 38%;
    --logo-h: 38%;
    --art-max-h: 56svh;
  }
  .art__img {
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 55%, rgba(0,0,0,0) 100%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 55%, rgba(0,0,0,0) 100%);
  }
  .splash { gap: 12px; padding: 6px 0 24px; }
  .creed { width: 90vw; gap: 10px; }
  :root { --slogan-size: 17px; --headline-size: 21px; }
  .creed__headline { letter-spacing: 0.06em; }
  /* phones: the corners are too narrow, so the mottos sit above the fresco */
  .mottos {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 88vw;
    margin: 8px 0 10px;
  }
  .motto { position: static; width: 100%; gap: 4px; }
  .motto__mark { font-size: 10px; }
  .motto__text { letter-spacing: 0.06em; }
  .creed__rule { width: 70%; }
  .contact { gap: 8px 14px; }
  .contact__sep { display: none; }
  .colophon { font-size: 11px; letter-spacing: 0.14em; text-align: center; flex-wrap: wrap; justify-content: center; }
}
