:root {
  --black: #080b0f;
  --ink: #11161b;
  --white: #f5f7f4;
  --red: #ff312e;
  --cyan: #21d6c5;
  --yellow: #f6c64f;
  --steel: #79878f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 49, 46, 0.28), transparent 28rem),
    radial-gradient(circle at 80% 30%, rgba(33, 214, 197, 0.16), transparent 26rem),
    var(--black);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0.08;
  background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.25) 50%);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(8, 11, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}
.brand img {
  width: 168px;
  filter: brightness(0) invert(1);
}
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
}
nav a:hover { background: var(--red); border-color: var(--red); }

.hero {
  min-height: calc(100vh - 68px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.74fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 70px);
}
.pulse-ring {
  position: absolute;
  width: 54vw;
  aspect-ratio: 1;
  right: -16vw;
  top: 8vh;
  border: 1px solid rgba(33, 214, 197, 0.34);
  border-radius: 50%;
  animation: pulse 3.8s ease-in-out infinite;
}
.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 49, 46, 0.34);
  border-radius: 50%;
}
.pulse-ring::after { inset: 27%; border-color: rgba(246, 198, 79, 0.32); }
.hero-copy { position: relative; z-index: 1; }
.status {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 10px;
  color: var(--cyan);
  border: 1px solid rgba(33, 214, 197, 0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(3.5rem, 9vw, 9.8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 7rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy > p:not(.status) {
  max-width: 720px;
  color: rgba(245, 247, 244, 0.72);
  font-size: 1.16rem;
  line-height: 1.7;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 950;
  text-decoration: none;
}
.hot {
  color: white;
  background: var(--red);
  box-shadow: 0 0 36px rgba(255, 49, 46, 0.36);
}
.line { border: 1px solid rgba(255,255,255,0.32); }
.device-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  transform: rotate(2deg);
}
.device-stack article {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}
.device-stack article:nth-child(2) { transform: translateX(-42px); }
.device-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.05);
}
.device-stack span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: rgba(8, 11, 15, 0.78);
  border-radius: 6px;
  font-weight: 950;
}
.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: var(--red);
}
.ticker div {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 14px 0;
  animation: slide 18s linear infinite;
}
.ticker span {
  font-weight: 950;
  text-transform: uppercase;
}
.section,
.gallery-band,
.mail,
.contact {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 128px) 0;
}
.headline { margin-bottom: 28px; }
.fix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fix-grid article {
  min-height: 270px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
}
.fix-grid b { color: var(--yellow); font-size: 2rem; }
.fix-grid p { color: rgba(245,247,244,0.68); }
.gallery-band {
  width: 100%;
  max-width: none;
  padding-left: clamp(18px, 5vw, 70px);
  padding-right: clamp(18px, 5vw, 70px);
  background: #f3f3ee;
  color: var(--black);
}
.gallery-band .status { color: var(--red); border-color: rgba(255,49,46,0.28); }
.mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr;
  grid-auto-rows: 240px;
  gap: 12px;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.mosaic img:first-child { grid-row: span 2; }
.mosaic img:nth-child(4) { grid-column: span 2; }
.mail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  font-size: 1.2rem;
  font-weight: 950;
}
li::before {
  content: counter(step);
  width: 42px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  color: var(--black);
  background: var(--cyan);
  border-radius: 50%;
}
.contact {
  margin-bottom: 72px;
  padding: clamp(30px, 5vw, 60px);
  border-radius: 10px;
  background:
    linear-gradient(110deg, rgba(255,49,46,0.9), rgba(255,49,46,0.12)),
    url("https://repairme.org.uk/wp-content/uploads/2022/07/DSC_1194-scaled.jpg") center/cover;
}
.contact h2 { font-size: clamp(3rem, 9vw, 9rem); }
.contact a,
.contact span {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 950;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.64; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero,
  .fix-grid,
  .mail,
  .mosaic { grid-template-columns: 1fr; }
  .device-stack { transform: none; }
  .device-stack article:nth-child(2) { transform: none; }
  .mosaic img:first-child,
  .mosaic img:nth-child(4) { grid-column: auto; grid-row: auto; }
}
