:root {
  --ink: #070a10;
  --ink-mid: #111722;
  --ink-soft: #1a2230;
  --stone: #d4dae3;
  --stone-bright: #eef1f5;
  --orange: #f15a00;
  --orange-bright: #ff6d1a;
  --orange-deep: #c44500;
  --muted: rgba(238, 241, 245, 0.68);
  --line: rgba(241, 90, 0, 0.35);
  --glass: rgba(7, 10, 16, 0.62);
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--stone-bright);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

/* —— Dominant visual plane —— */
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-visual__photo {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(
      118deg,
      rgba(7, 10, 16, 0.58) 0%,
      rgba(7, 10, 16, 0.2) 48%,
      rgba(7, 10, 16, 0.64) 100%
    ),
    url("../asset/hero-architecture.jpg") center 35% / cover no-repeat;
  transform: scale(1.05);
  animation: kenburns 30s var(--ease-out) infinite alternate;
  will-change: transform;
  filter: saturate(0.95) contrast(1.04);
}

.hero-visual__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 65% 50% at 12% 78%,
      rgba(17, 23, 34, 0.78),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(7, 10, 16, 0.34) 0%,
      rgba(7, 10, 16, 0.55) 52%,
      rgba(7, 10, 16, 0.8) 100%
    );
}

.hero-visual__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(7, 10, 16, 0.48) 100%
  );
}

.hero-visual__grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(241, 90, 0, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 90, 0, 0.45) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  animation: gridDrift 42s linear infinite;
}

.hero-visual__road {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 18%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(241, 90, 0, 0.55) 0 18px,
    transparent 18px 34px
  );
  opacity: 0.35;
  transform: rotate(-4deg);
  filter: blur(0.2px);
  animation: roadPulse 6s ease-in-out infinite;
}

@keyframes kenburns {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.2%, -0.8%);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 68px 68px;
  }
}

@keyframes roadPulse {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.4;
  }
}

/* —— Header / Brand —— */
.site-header {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 3.8vw, 2.5rem) clamp(1.25rem, 5vw, 4rem) 0;
  animation: rise 0.95s var(--ease-out) both;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12%;
  left: -4%;
  width: min(560px, 78vw);
  height: 170px;
  background: radial-gradient(
    ellipse at 18% 35%,
    rgba(7, 10, 16, 0.78) 0%,
    rgba(7, 10, 16, 0.35) 48%,
    transparent 75%
  );
  pointer-events: none;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand__logo {
  width: min(380px, 82vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

/* —— Hero content —— */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem)
    clamp(1.5rem, 4vw, 2.5rem);
}

.hero__content {
  max-width: 38rem;
  animation: rise 1.05s var(--ease-out) 0.1s both;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--stone-bright);
  text-wrap: balance;
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

/* —— Notify form (CTA) —— */
.notify {
  width: 100%;
  max-width: 28rem;
}

.notify__row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.notify__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3rem;
  margin: 0;
  border: 1px solid rgba(241, 90, 0, 0.32);
  border-radius: 0;
  background: rgba(7, 10, 16, 0.55);
  color: var(--stone-bright);
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.notify__input::placeholder {
  color: rgba(238, 241, 245, 0.42);
}

.notify__input:hover {
  border-color: rgba(241, 90, 0, 0.5);
}

.notify__button {
  flex: 0 0 auto;
  height: 3rem;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0b0e14;
  background: #f47a33;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
  box-shadow: 0 4px 14px rgba(241, 90, 0, 0.16);
}

.notify__button:hover {
  background: #ff8a45;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(241, 90, 0, 0.22);
}

.notify__button:active {
  transform: translateY(0);
}

.notify__button:focus-visible,
.notify__input:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 2px;
}

.notify__message {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--orange-bright);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

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

.notify__message.is-error {
  color: #ff9b9b;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(241, 90, 0, 0.18);
  animation: rise 1.15s var(--ease-out) 0.18s both;
}

.site-footer__copy,
.site-footer__link {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(238, 241, 245, 0.48);
}

.site-footer__link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.site-footer__link:hover {
  color: var(--orange-bright);
  border-bottom-color: rgba(241, 90, 0, 0.5);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-visual__photo,
  .hero-visual__grid,
  .hero-visual__road,
  .site-header,
  .hero__content,
  .site-footer {
    animation: none;
  }

  .hero-visual__photo {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    width: 100%;
  }

  .brand__logo {
    width: min(300px, 88vw);
  }

  .notify {
    max-width: none;
  }

  .notify__input,
  .notify__button {
    height: 2.875rem;
  }

  .notify__button {
    padding: 0 1rem;
    letter-spacing: 0.08em;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-visual__road {
    bottom: 24%;
    opacity: 0.25;
  }
}

/* Very narrow phones: stack cleanly without a shared outer box */
@media (max-width: 360px) {
  .notify__row {
    flex-direction: column;
    gap: 0.55rem;
  }

  .notify__input,
  .notify__button {
    width: 100%;
  }
}
