/* DRIFT animation, farewell page (driftanimation.be)
   Colours taken from the old WordPress site:
   blue #4FA3FF (logo, accents), ink #303030, light grey #E8E8E8 / #F7F7F7.
   Note: white text on the Drift blue is too low in contrast (2.6:1) to read well,
   so text on blue is dark (#1E1E1E, 6.4:1). */

:root {
  --blue: #4FA3FF;
  --ink: #303030;
  --ink-dark: #1E1E1E;
  --grey: #E8E8E8;
  --paper: #F7F7F7;
  --muted: #606060;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) 1.25rem 2rem;
}

/* ---------- Intro ---------- */
.intro { text-align: center; }
.logo { margin: 0 auto 1.5rem; width: clamp(9rem, 32vw, 12.5rem); }
.kicker {
  margin: 0 0 .25rem;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .2em;
}
.title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink-dark);
}
.intro p:not(.kicker) { margin: 0 auto 1rem; max-width: 36rem; }

/* ---------- Section labels ---------- */
.label {
  margin: 0 0 1rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Showreel (click to play) ---------- */
.reel { margin: clamp(2.5rem, 7vw, 4rem) 0; }
.reel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--blue);
}
.reel__play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--blue);
  cursor: pointer;
}
.reel__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(3.5rem, 12vw, 5.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.reel__icon::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: .8em 0 .8em 1.35em;
  border-color: transparent transparent transparent var(--ink-dark);
  font-size: clamp(.8rem, 2.4vw, 1.1rem);
}
.reel__play:hover .reel__icon,
.reel__play:focus-visible .reel__icon { transform: translate(-50%, -50%) scale(1.06); }
.reel__play:focus-visible { outline: 3px solid var(--ink-dark); outline-offset: -6px; }
.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact p { margin: 0 auto 1rem; max-width: 34rem; }
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem !important;
}
.button {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink-dark);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.button--ghost { background: transparent; }
.button:hover { background: #7BBBFF; border-color: #7BBBFF; }
.button:focus-visible { outline: 3px solid var(--ink-dark); outline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 2rem 1.25rem 2.5rem;
  background: var(--grey);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.footer p { margin: 0; }
.footer a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer a:hover { color: var(--ink-dark); }
.footer a:focus-visible { outline: 2px solid var(--ink-dark); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .reel__icon, .button { transition: none; }
}
