/* Awanex hero (Chrome Arcs). Colours: #000000, #FFFFFF, #D8DBDE, #DC143C. Font: Geist. */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
}
.hero-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0; /* the rings fade in with the words instead of popping on */
  transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1);
}
.hero-arcs.is-on { opacity: 1; }
/* A soft dark fade along the top: the nav (locked) always sits on dark glass, so the chrome
   "Book a call" never melts into a bright ring and its hover glow stays crimson, not pink. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 190px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, 0) 100%);
}
/* Keeps the words readable: a soft black shade on the text side only. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 72%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100vw - 48px);
  margin: 0 auto;
  /* Left edge lines up with the AWANEX logo (measured: ink within 1px).
     Top padding = the nav's height, so the words centre in the space BELOW the nav,
     then sit a little above true centre (optical centre). */
  padding: 80px 24px 4vh;
}
.hero h1 {
  margin: 0;
  max-width: none;
  margin-left: -0.03em; /* the W's side spacing: lines the headline up with the line and button */
  font-size: clamp(44px, 5.4vw, 96px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: balance;
  /* white, with only a faint hint of chrome at the very bottom (both lines read as one white) */
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #ECEEF0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: clamp(20px, 2.2vw, 40px) 0 0; /* about 0.4x the headline size: room to breathe, still one block */
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}

/* The words rise in once when the page opens. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero p { animation: hero-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.hero h1 { animation-delay: .15s; }
.hero p { animation-delay: .28s; }

/* No WebGL: a still chrome ring stack. */
.hero-nogl .hero-arcs { display: none; }
.hero-nogl {
  background:
    repeating-radial-gradient(circle at 330% 150%, #000 0, #9a9a9a .12%, #0b0b0b .9%, #1d1d1d 3.2%, #4e4e4e 5%, #141414 6.2%, #020202 7.2%, #000 8.8%);
}

/* Phone: words at the bottom, the light above them. */
@media (max-width: 820px) {
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .86) 40%, rgba(0, 0, 0, .45) 54%, rgba(0, 0, 0, 0) 68%); }
  /* two even lines on the phone too: size the words so "Websites built for" fills the width */
  .hero h1 { font-size: calc((100vw - 64px) / 8.5); }
  .hero-inner { width: calc(100vw - 24px); padding: 0 20px calc(56px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p { animation: none; }
  .hero-arcs { transition: none; }
}
