:root {
  --blue: #0106bc;
  --red: #ff0000;
  --white: #fff;
  --lens: #ff0000;          /* difference against brand red: shadows flip to red, highlights stay blue */
  --lens-d: clamp(150px, 21vmin, 240px);
  --logo-w: clamp(190px, 26vw, 400px);
  --ink: #02033f;           /* the picture's deepest shadow */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-cut: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(18px, 3vw, 40px);
}

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

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;            /* single screen, no scrolling */
  overscroll-behavior: none;
  background: var(--blue);
  color: var(--white);
  font-family: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  isolation: isolate;
  background: var(--blue);     /* blend modes need a backdrop inside the isolated group */
}

/* ---------- picture + lens ---------- */
.reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.lens {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--lens-d);
  height: var(--lens-d);
  margin: calc(var(--lens-d) / -2) 0 0 calc(var(--lens-d) / -2);
  border-radius: 50%;
  background: var(--lens);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate3d(-50vw, -50vh, 0) scale(0);
  will-change: transform;
}

/* ---------- centre ---------- */
.core {                       /* logo + copy are centred as one group, sitting a touch above the middle */
  position: absolute;
  left: 50%;
  top: 46%;
  width: 94vw;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.logo.is-away { visibility: hidden; }
.logo { display: block; width: var(--logo-w); height: auto; overflow: visible; }
.logo__bar {
  fill: var(--red);
  transform-box: fill-box;
  transform: scaleX(0);
  animation: cut .8s var(--ease-cut) forwards;
}
.logo__bar--1 { transform-origin: left center;  animation-delay: .15s; }
.logo__bar--2 { transform-origin: right center; animation-delay: .27s; }
.logo__bar--3 { transform-origin: left center;  animation-delay: .39s; }

.copy {
  margin-top: clamp(20px, 3.4vh, 38px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 600;
  letter-spacing: .3em;
  overflow: hidden;
}

.headline {
  margin: 0;
  font-size: clamp(15px, min(5.2vw, 7vh), 54px);   /* sized so the whole line fits one row */
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.thin { font-weight: 300; color: rgba(255, 255, 255, .82); }

.eyebrow > span, .line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
}
.line > span { transition-delay: .08s; }

/* neon ring: a light that keeps circling the button */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.neon {
  position: relative;
  display: inline-flex;
  margin-top: clamp(20px, 3.8vh, 38px);
  padding: 2px;
  border-radius: 999px;
  isolation: isolate;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s .32s var(--ease-out), transform .9s .32s var(--ease-out);
}
.neon::before, .neon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--spin),
    transparent 0 52%, var(--red) 70%, #ff7a7a 84%, var(--white) 92%, var(--red) 97%, transparent 100%);
  animation: spin 2.6s linear infinite;
}
.neon::after { inset: -5px; filter: blur(14px); opacity: .95; }     /* the glow */
.neon:hover::before, .neon:hover::after { animation-duration: 1.1s; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1.02em 1.9em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--blue);     /* same blue as the page: only the neon outlines it */
  color: var(--white);
  font: inherit;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s, transform .2s;
}
.cta::before {               /* red slash wipe, borrowed from the logo's diagonal */
  content: "";
  position: absolute;
  inset: -2px -18%;
  z-index: -1;
  background: var(--red);
  transform: translateX(-102%) skewX(-18deg);
  transition: transform .55s var(--ease-cut);
}
.cta:hover::before, .cta:focus-visible::before { transform: translateX(0) skewX(-18deg); }
.cta:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.cta:active { transform: scale(.97); }

/* awake = the visitor has moved */
.awake .eyebrow > span, .awake .line > span { transform: none; }
.awake .neon { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- hint ---------- */
.hint {
  position: absolute;
  left: 50%;
  bottom: max(var(--pad), env(safe-area-inset-bottom));
  margin: 0;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation: fade 1s 1.5s var(--ease-out) forwards, breathe 2.6s 2.5s ease-in-out infinite;
  transition: opacity .5s, visibility .5s;
}
.awake .hint { animation: none; opacity: 0; visibility: hidden; }

/* ---------- brief popup ---------- */
.brief {
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--ink);
  color: var(--white);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 40, .6);
}
.brief::backdrop {
  background: rgba(1, 4, 120, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: fade .4s ease-out;
}
.brief__form, .brief__done {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 5vw, 44px);
}
.brief__done { align-items: flex-start; }
.brief__done[hidden], .brief__form[hidden] { display: none; }
.brief__mark { width: 84px; fill: var(--red); }
.brief__eyebrow { margin: 0 0 -10px; font-size: 11px; font-weight: 600; letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.brief__title { margin: 0; font-size: clamp(30px, 5vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; outline: none; }
.brief__lede { margin: -10px 0 4px; max-width: 42ch; font-size: 15px; font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.brief__close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px -58px 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font: 300 26px/1 inherit;
  cursor: pointer;
  z-index: 2;
  transition: background .25s, transform .4s var(--ease-out);
}
.brief__close:hover { background: var(--red); transform: rotate(90deg); }
.brief__close:focus-visible, .brief .cta:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .chips legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.field > span i { font-style: normal; letter-spacing: .08em; opacity: .7; text-transform: none; }
.field input, .field textarea {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 17px;           /* 16px+ stops iOS zooming on focus */
  outline: none;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--white); box-shadow: 0 1px 0 var(--white); }
.field .bad { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips label > span {
  display: block;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.chips label:hover > span { border-color: var(--white); }
.chips input:checked + span { background: var(--white); border-color: var(--white); color: var(--blue); }
.chips input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief__error { margin: 0; font-size: 14px; line-height: 1.45; color: #ff9d9d; }
.brief__error a { color: var(--white); }
.brief .cta { align-self: flex-start; margin-top: 4px; background: var(--white); color: var(--blue); }
.brief .cta:hover, .brief .cta:focus-visible { color: var(--white); }
.brief .cta[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

@keyframes spin   { to { --spin: 360deg; } }
@keyframes cut    { to { transform: scaleX(1); } }
@keyframes fade   { to { opacity: 1; } }
@keyframes breathe { 50% { opacity: .35; } }

@media (hover: none) {
  .hint, .lens { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logo__bar, .hint { animation: none; transform: none; opacity: 1; }
  .brief::backdrop { animation: none; }
  .eyebrow > span, .line > span, .neon, .cta::before { transition-duration: .01s; transition-delay: 0s; }
  .neon::before, .neon::after { animation: none; }
}
