@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/hanken-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/hanken-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --accent: #93f1f7;
  --field-1: #9ae187;
  --field-2: #93f1f7;
  --field-3: #f3ea7a;
  --field-4: #fbb65c;
  --field-5: #b9c8ff;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-tool: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --step-display: clamp(3rem, 1rem + 8vw, 9rem);

  --m: clamp(20px, 3vw, 48px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.45 "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.top { padding: calc(var(--m) * 2) var(--m) 0; }
.top h1 { margin: 0; font-weight: 500; font-size: var(--step-display); letter-spacing: -0.05em; line-height: 0.9; }
.top p { margin: 20px 0 0; font-size: var(--step-lead); color: var(--muted); }

main { flex: 1; }
.tools { list-style: none; margin: clamp(56px, 9vw, 120px) 0 0; padding: 0 var(--m); display: flex; flex-direction: column; gap: 12px; }

.tool {
  display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3vw, 48px); background: var(--surface); text-decoration: none; overflow: hidden;
  transition: background-color 200ms ease;
}
.tool:hover { background: #161616; }
.text { display: flex; flex-direction: column; gap: 16px; }
.name { display: flex; align-items: center; gap: 0.35em; font-size: var(--step-tool); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.dot { width: 0.4em; height: 0.4em; border-radius: 50%; background: var(--c); flex: none; transition: transform 300ms var(--ease-out); }
.c1 { --c: var(--field-1); } .c2 { --c: var(--field-2); } .c3 { --c: var(--field-3); }
.c4 { --c: var(--field-4); } .c5 { --c: var(--field-5); }
.what { max-width: 38ch; }
.url { font-size: var(--step-small); color: var(--muted); transition: color 200ms ease; }
.tool img { width: 100%; background: #1d1f23; transition: transform 600ms var(--ease-expo); }
.tool:hover .dot { transform: scale(1.4); }
.tool:hover .url { color: var(--accent); }
.tool:hover img { transform: translateY(-6px) scale(1.015); }

.bottom {
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  padding: clamp(56px, 8vw, 120px) var(--m) var(--m); font-size: var(--step-small); color: var(--muted);
}
.bottom a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 200ms ease, text-decoration-color 200ms ease; }
.bottom a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Load: the name, the line, then each tool rise in once. Content is visible without it. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.top h1, .top p, .tools li { animation: rise 900ms var(--ease-expo) both; }
.top p { animation-delay: 90ms; }
.tools li { animation-delay: calc(180ms + var(--n, 0) * 80ms); }
.tools li:nth-child(2) { --n: 1; } .tools li:nth-child(3) { --n: 2; } .tools li:nth-child(4) { --n: 3; }

@media (max-width: 760px) {
  .tool { grid-template-columns: 1fr; }
  .tool img { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}

/* 404 */
.missing { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: var(--m); }
.missing h1 { margin: 0; font-weight: 500; font-size: var(--step-tool); letter-spacing: -0.04em; line-height: 1; }
.missing a { color: var(--accent); }
