/* ccGreg — ccgreg.com */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0E1116;
  --card: #121720;
  --line: #252C36;
  --text: #F4F5F7;
  --muted: #A9B1BC;
  --slate: #9AA3AF;
  --dim: #8A93A0;
  --accent: #2DE2A6;
  --accent-hover: #7CF0C8;
  --sans: "Space Grotesk", Arial, Helvetica, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.cc { color: var(--accent); font-weight: 500; }

/* Header */
.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.header-email { font-family: var(--mono); font-size: 14px; color: var(--slate); text-decoration: none; padding: 12px 0; }
.header-email:hover { color: var(--text); }

/* Hero */
main { flex: 1; display: flex; flex-direction: column; }
.hero { padding-top: 96px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  margin: 0;
  font-size: clamp(64px, 12vw, 152px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.tagline {
  margin: 0;
  padding-left: 4px;
  font-family: var(--mono);
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* Services */
.services { display: flex; flex-direction: column; gap: 24px; padding-bottom: 72px; }
.label { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
}
.card svg { width: 28px; height: 28px; stroke: var(--accent); }
.card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* What I've done — looping marquees (pure CSS, no scripts) */
.done { padding-bottom: 88px; }
.done .label { margin-bottom: 28px; }
.marquees {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee {
  display: flex;
  overflow: hidden;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text);
}
.marquee.alt { font-weight: 500; color: var(--slate); }
.track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee var(--d, 90s) linear var(--o, 0s) infinite;
}
.marquee.rev .track { animation-direction: reverse; }
.marquees:hover .track { animation-play-state: paused; }
.track li { display: flex; align-items: center; white-space: nowrap; }
/* small teal block between names — echoes the cursor */
.track li::after {
  content: "";
  width: 0.2em;
  height: 0.2em;
  margin: 0 0.85em;
  background: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}
/* per-row speed (--d) and starting offset (--o), so no two rows move in sync */
.m1 { --d: 81s; --o: -7s; }
.m2 { --d: 100s; --o: -31s; }
.m3 { --d: 97s; --o: -52s; }
.m4 { --d: 102s; --o: -18s; }
.m5 { --d: 67s; --o: -40s; }
.m6 { --d: 121s; --o: -63s; }
@keyframes marquee { to { transform: translateX(-100%); } }
.more { margin: 22px 0 0; font-family: var(--mono); font-size: 14px; color: var(--slate); }

/* Reduced motion: no scrolling — show every name once, wrapped */
@media (prefers-reduced-motion: reduce) {
  .marquees { -webkit-mask-image: none; mask-image: none; max-width: 1120px; margin: 0 auto; padding: 0 24px; gap: 14px; }
  .marquee { font-size: 20px; line-height: 1.6; }
  .track { animation: none; flex-wrap: wrap; flex-shrink: 1; min-width: 0; }
  .track[aria-hidden="true"] { display: none; }
}

/* Why I do it */
.why { display: flex; flex-direction: column; gap: 24px; padding-bottom: 88px; }
.mission {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* Closing */
.closing {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.closing p { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: var(--ink); }

/* Footer */
.site-footer { padding-bottom: 32px; font-family: var(--mono); font-size: 13px; color: var(--dim); }

/* 404 */
.notfound { padding: 96px 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.notfound h1 { margin: 0; font-size: clamp(40px, 7vw, 80px); letter-spacing: -0.04em; line-height: 1; }
