/* Zephyr Creative Technologies
   Palette: Solar Shock
   FF6624  FF9B29  F2E7E1  355CF5  2329A8 */

:root {
  --orange: #FF6624;
  --amber:  #FF9B29;
  --bone:   #F2E7E1;
  --blue:   #355CF5;
  --navy:   #2329A8;
  --ink:    #111111;
  --paper:  #FFFFFF;
  --pad:    clamp(1.25rem, 5vw, 4.5rem);

  /* A weighted sweep: accelerates off the edge, decelerates into the far
     side, motion spread across the whole duration. Retreat is quicker and
     sharper so the button feels responsive rather than sludgy. */
  --ease-in:  cubic-bezier(0.62, 0.02, 0.16, 1);
  --ease-out: cubic-bezier(0.55, 0, 0.30, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(4rem, 14vw, 10rem) var(--pad);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 13vw, 9rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 24ch;
  margin: clamp(2rem, 6vw, 3.5rem) 0 0;
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- colour band ---------- */

.band {
  display: flex;
  width: 100%;
}

/* five equal columns, each held square */
.swatch {
  flex: 1 1 0;
  aspect-ratio: 1;
}

.s1 { background: var(--orange); }
.s2 { background: var(--amber);  }
.s3 { background: var(--bone);   }
.s4 { background: var(--blue);   }
.s5 { background: var(--navy);   }

/* ---------- the big buttons ---------- */

.block {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.block--last { border-bottom: 0; }

.block[href] { cursor: pointer; }

.face {
  display: block;
  padding: clamp(3.5rem, 10vw, 7rem) var(--pad);
}

/* the black layer: an exact copy of the face, clipped to nothing until hover */
.face--fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s var(--ease-out);
}

@media (hover: hover) {
  .block:hover .face--fill {
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.62s var(--ease-in);
  }
}

.block:focus-visible {
  outline: none;
}

.block:focus-visible .face--fill {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.62s var(--ease-in);
}

.line {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.t {
  display: block;
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

/* The arrow only exists on .face--fill, so it is revealed by the wipe rather
   than sitting on the white face at rest. It inherits that face's white
   currentColor; it also nudges forward on hover. */
.arrow {
  flex: 0 0 auto;
  width: clamp(3.5rem, 11vw, 7rem);
  height: auto;
  overflow: visible;
  transition: transform 0.4s var(--ease-out);
}

@media (hover: hover) {
  .block:hover .arrow { transform: translateX(clamp(0.5rem, 1.5vw, 1rem)); }
}

.block:focus-visible .arrow { transform: translateX(clamp(0.5rem, 1.5vw, 1rem)); }

/* same arrow, flipped, so "back" travels the other way */
.arrow--back { transform: scaleX(-1); }

@media (hover: hover) {
  .block:hover .arrow--back { transform: scaleX(-1) translateX(clamp(0.5rem, 1.5vw, 1rem)); }
}

.block:focus-visible .arrow--back { transform: scaleX(-1) translateX(clamp(0.5rem, 1.5vw, 1rem)); }

.mail {
  display: inline-block;
  margin-top: clamp(1.75rem, 5vw, 3rem);
  font-size: clamp(1.25rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 0.12em solid var(--orange);
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .face--fill,
  .block:hover .face--fill,
  .block:focus-visible .face--fill,
  .arrow { transition-duration: 0.01ms; }
}

/* ---------- footer ---------- */

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: var(--pad);
  border-top: 2px solid var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* The band stays five-across at every width so the swatches stay square —
   stacking them would stretch each one into a full-width bar. */
