@font-face {
  font-family: "Alethia Next";
  src: url("../fonts/alethianext-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alethia Next";
  src: url("../fonts/alethianext-lightitalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/proxima-nova-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cipsa-orange: #e35205;
  --cipsa-orange-deep: #c44504;
  --cipsa-black: #2d2926;
  --cipsa-ink: #3a3532;
  --cipsa-mute: #6b6560;
  --cipsa-paper: #f7f4f1;
  --cipsa-mist: rgba(247, 244, 241, 0.88);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Alethia Next", "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--cipsa-black);
  background: var(--cipsa-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 4rem);
  isolation: isolate;
}

/* ? Atmosphere ? */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #efeae4 0%, #f7f4f1 45%, #ebe4dc 100%);
}

.backdrop__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.42;
  transform: scale(1.06);
  animation: drift 28s var(--ease) infinite alternate;
  filter: saturate(0.92) contrast(1.05);
}

.backdrop__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 244, 241, 0.97) 0%, rgba(247, 244, 241, 0.86) 42%, rgba(247, 244, 241, 0.35) 72%, rgba(227, 82, 5, 0.12) 100%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(227, 82, 5, 0.08), transparent 60%);
}

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 41, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 41, 38, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  opacity: 0.55;
  animation: grid-shift 40s linear infinite;
}

.backdrop__mark {
  position: absolute;
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  background: url("../img/icon-orange.png") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.backdrop__mark--left {
  left: -6%;
  bottom: -8%;
  animation: float-mark 12s ease-in-out infinite;
}

.backdrop__mark--right {
  right: -4%;
  top: 8%;
  transform: scaleX(-1);
  animation: float-mark 14s ease-in-out infinite reverse;
}

/* ? Brand ? */
.brand {
  position: relative;
  z-index: 1;
  animation: rise 0.9s var(--ease) both;
}

.brand__logo {
  display: block;
  width: min(280px, 58vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(45, 41, 38, 0.08));
}

/* ? Hero ? */
.hero {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 36rem;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.hero__eyebrow {
  font-family: "Proxima Nova", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cipsa-orange);
  margin-bottom: 1.1rem;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero__title {
  font-family: "Alethia Next", sans-serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cipsa-black);
  margin-bottom: 1.35rem;
}

.hero__line {
  display: block;
  animation: rise 0.95s var(--ease) both;
}

.hero__line:nth-child(1) { animation-delay: 0.15s; }
.hero__line:nth-child(2) { animation-delay: 0.28s; }
.hero__line:nth-child(3) { animation-delay: 0.4s; }

.hero__line--accent {
  font-family: "Proxima Nova", sans-serif;
  font-weight: 700;
  color: var(--cipsa-orange);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.92em;
}

.hero__line--spaced {
  font-size: 0.72em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cipsa-ink);
  margin-top: 0.35rem;
}

.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--cipsa-mute);
  max-width: 28rem;
  margin-bottom: 1.75rem;
  animation: rise 0.95s var(--ease) 0.5s both;
}

/* ? Animated build icon ? */
.build {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  animation: rise 0.95s var(--ease) 0.55s both;
}

.build__icon {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.build__stroke {
  stroke: var(--cipsa-orange);
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.4s var(--ease) forwards;
}

.build__base { animation-delay: 0.2s; }
.build__pillar--1 { animation-delay: 0.45s; }
.build__pillar--2 { animation-delay: 0.6s; }
.build__pillar--3 { animation-delay: 0.75s; }
.build__wall-l,
.build__wall-r { animation-delay: 0.95s; }
.build__roof { animation-delay: 1.15s; }

/* ? Progress ? */
.progress {
  margin-bottom: 2rem;
  max-width: 20rem;
  animation: rise 0.95s var(--ease) 0.65s both;
}

.progress__track {
  height: 3px;
  background: rgba(45, 41, 38, 0.12);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cipsa-orange), #ff7a2e);
  animation: build-bar 4.5s var(--ease) 1.2s infinite;
  box-shadow: 0 0 16px rgba(227, 82, 5, 0.45);
}

.progress__label {
  font-family: "Proxima Nova", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cipsa-mute);
}

/* ? CTA ? */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  animation: rise 0.95s var(--ease) 0.75s both;
}

.cta__primary,
.cta__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.6rem;
  font-family: "Proxima Nova", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cta__primary {
  background: var(--cipsa-orange);
  color: #fff;
}

.cta__primary:hover {
  background: var(--cipsa-orange-deep);
  transform: translateY(-2px);
}

.cta__ghost {
  background: transparent;
  color: var(--cipsa-black);
  border: 1px solid rgba(45, 41, 38, 0.28);
}

.cta__ghost:hover {
  border-color: var(--cipsa-orange);
  color: var(--cipsa-orange);
  transform: translateY(-2px);
}

/* ? Footer ? */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  animation: rise 0.95s var(--ease) 0.85s both;
}

.foot__rule {
  flex: 1 1 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cipsa-orange), transparent 70%);
  margin-bottom: 0.35rem;
}

.foot__copy {
  font-size: 0.85rem;
  color: var(--cipsa-mute);
}

.foot__address {
  flex: 1 1 100%;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--cipsa-mute);
  max-width: 36rem;
}

.foot__social {
  font-family: "Proxima Nova", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cipsa-black);
  transition: color 0.3s ease;
}

.foot__social:hover {
  color: var(--cipsa-orange);
}

/* ? Motion ? */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes build-bar {
  0% {
    width: 8%;
    transform: translateX(0);
  }
  45% {
    width: 72%;
  }
  70% {
    width: 88%;
  }
  100% {
    width: 8%;
    transform: translateX(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes float-mark {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes grid-shift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 64px 64px;
  }
}

.backdrop__mark--right {
  animation-name: float-mark-flip;
}

@keyframes float-mark-flip {
  0%,
  100% {
    transform: scaleX(-1) translateY(0);
  }
  50% {
    transform: scaleX(-1) translateY(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .build__stroke {
    stroke-dashoffset: 0;
  }

  .progress__bar {
    width: 65%;
  }
}

@media (max-width: 720px) {
  .backdrop__photo {
    object-position: 82% center;
    opacity: 0.28;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__primary,
  .cta__ghost {
    width: 100%;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
