/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f0eeea;
  --white: #ffffff;
  --ink: #111111;
  --ink-mid: #666560;
  --ink-light: #aaa8a2;
  --accent: #f7e94b;
  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0px var(--ink);
  --pad: clamp(20px, 5vw, 64px);
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ─── Cursor ─────────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
}

body.cursor-hover .cursor-dot {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border: 2px solid var(--ink);
}

/* ─── Scroll Line ────────────────────────────────────────── */
.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--ink);
  z-index: 1000;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  padding: clamp(20px, 4vw, 36px) var(--pad);
  border-bottom: var(--border);
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(36px, 6vw, 72px);
}

.nav-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding-bottom: clamp(36px, 6vw, 64px);
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-mid);
}

/* ─── Grid ───────────────────────────────────────────────── */
main {
  padding: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;

  /* reveal */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.15s ease;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  box-shadow: 6px 6px 0px var(--ink);
  transform: translate(-2px, -2px);
}

.card.is-visible:hover {
  transform: translate(-2px, -2px);
}

/* ─── Card top ───────────────────────────────────────────── */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--bg);
  border: var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}

.card-logo svg { display: block; }

.card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: var(--bg);
  border: var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ─── Card body ──────────────────────────────────────────── */
.card-body {
  flex: 1;
}

.card-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.card-desc {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ─── Card CTA ───────────────────────────────────────────── */
.card-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent);
  border: var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 2px 2px 0px var(--ink);
  align-self: flex-start;
  transition: box-shadow 0.12s, transform 0.12s;
}

.card-cta:hover {
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(28px, 5vw, 52px) var(--pad);
  border-top: var(--border);
}

.footer-name {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 13px;
  color: var(--ink-mid);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-meta {
  font-size: 11px;
  color: var(--ink-light);
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { cursor: auto; }
  .cursor-dot { display: none; }

  .grid { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .card { opacity: 1; transform: none; transition: box-shadow 0.15s; }
  .card.is-visible:hover { transform: translate(-2px, -2px); }
}
