/* 3264.uk — Thirty Two Sixty Four */

:root {
  --ink: #161d20;          /* logo background */
  --ink-2: #1c2529;
  --ink-3: #243035;
  --line: #2c393f;
  --paper: #ffffff;
  --text: #e8eef0;
  --muted: #94a3a9;
  --red: #de4254;
  --blue: #5294e2;
  --blue-text: #7fb0ec;    /* blue tuned for small text on --ink */

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 14px;
  --tile: 48px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  /* Faint tile grid, echoing the logo */
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: var(--tile) var(--tile);
  background-position: center top;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1; position: relative; z-index: 1; }

a { color: var(--blue-text); text-underline-offset: 0.2em; }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mono { font-family: var(--mono); }

/* ---------- Background glows ---------- */

.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow {
  position: absolute;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}
.glow-red  { background: var(--red);  top: -12%; right: -14%; animation: drift-a 22s ease-in-out infinite alternate; }
.glow-blue { background: var(--blue); bottom: -18%; left: -16%; animation: drift-b 26s ease-in-out infinite alternate; }

@keyframes drift-a { to { transform: translate(-8vw, 10vh) scale(1.1); } }
@keyframes drift-b { to { transform: translate(10vw, -8vh) scale(0.95); } }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: 4rem clamp(1rem, 5vw, 3rem) 5rem;
  text-align: center;
}

.logo-wrap { width: min(100%, 880px); }

.logo { display: block; width: 100%; height: auto; overflow: visible; }

.tile rect { fill: var(--paper); }
.tile path { fill: var(--ink); }
.tile-r rect { fill: var(--red); }
.tile-b rect { fill: var(--blue); }

.tile {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), filter 0.25s;
  animation: tile-in 0.7s cubic-bezier(.2,.9,.25,1.15) both;
  animation-delay: calc(var(--i, 0) * 45ms + 150ms);
}
.tile:hover { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.45)); }
.tile.is-flipping { animation: tile-flip 0.7s cubic-bezier(.45,0,.2,1); }

@keyframes tile-in {
  from { opacity: 0; transform: translateY(14px) rotateX(85deg) scale(0.6); }
  to   { opacity: 1; transform: none; }
}
@keyframes tile-flip {
  0%   { transform: none; }
  50%  { transform: scaleX(0); }
  100% { transform: none; }
}

/* Stagger order: left-to-right, top row then bottom row. */
.logo > g:nth-of-type(1)  .tile { --i: 0; }
.logo > g:nth-of-type(2)  .tile { --i: 1; }
.logo > g:nth-of-type(3)  .tile { --i: 2; }
.logo > g:nth-of-type(4)  .tile { --i: 3; }
.logo > g:nth-of-type(5)  .tile { --i: 4; }
.logo > g:nth-of-type(6)  .tile { --i: 5; }
.logo > g:nth-of-type(7)  .tile { --i: 6; }
.logo > g:nth-of-type(8)  .tile { --i: 7; }
.logo > g:nth-of-type(9)  .tile { --i: 8; }
.logo > g:nth-of-type(10) .tile { --i: 3; }
.logo > g:nth-of-type(11) .tile { --i: 4; }
.logo > g:nth-of-type(12) .tile { --i: 5; }
.logo > g:nth-of-type(13) .tile { --i: 6; }
.logo > g:nth-of-type(14) .tile { --i: 7; }
.logo > g:nth-of-type(15) .tile { --i: 8; }
.logo > g:nth-of-type(16) .tile { --i: 9; }
.logo > g:nth-of-type(17) .tile { --i: 10; }
.logo > g:nth-of-type(18) .tile { --i: 11; }

.kicker {
  margin: clamp(1rem, 3vw, 2rem) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(22 29 32 / 0.6);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  animation: fade-up 0.6s ease both 1s;
}
.dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 0 rgb(62 207 142 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(62 207 142 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 207 142 / 0); } }


.scroll-cue {
  margin-top: clamp(1.5rem, 5vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  animation: fade-up 0.6s ease both 1.15s;
}
.scroll-cue span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
.scroll-cue:hover { color: var(--paper); }
@keyframes bob { 50% { transform: translateY(4px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Abuse card ---------- */

.abuse { padding: 0 clamp(1rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem); scroll-margin-top: 2rem; }

.card {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgb(36 48 53 / 0.85), rgb(28 37 41 / 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.8);
  position: relative;
  overflow: hidden;
}
/* Logo-coloured accent along the top edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--paper) 0 33.3%, var(--red) 33.3% 50%, var(--blue) 50% 77.7%, var(--paper) 77.7%);
}

.badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgb(222 66 84 / 0.15);
  color: #ff8a97;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.card-head p { margin: 0; color: var(--muted); max-width: 40rem; }

.contact { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 2.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; flex: none; }

.btn-primary { background: var(--paper); color: var(--ink); font-family: var(--mono); border: 0; }
.btn-primary:hover { background: var(--blue); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--paper); }
.btn-ghost.is-copied { border-color: #3ecf8e; color: #3ecf8e; }

.card h3 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
}
.checklist li {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(22 29 32 / 0.55);
  line-height: 1.45;
  color: var(--muted);
}
.checklist strong { display: block; color: var(--paper); margin-bottom: 0.15rem; }
.tick {
  flex: none;
  width: 1.35rem; height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 4px;
  background: var(--blue);
  position: relative;
}
.checklist li:nth-child(2) .tick { background: var(--red); }
.checklist li:nth-child(3) .tick { background: var(--paper); }
.tick::after {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.22rem;
  width: 0.35rem; height: 0.65rem;
  border: solid var(--ink);
  border-width: 0 0.18rem 0.18rem 0;
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 5vw, 3rem) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--paper); }

@media (max-width: 30rem) {
  .footer { flex-direction: column; text-align: center; align-items: center; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
