/* Homepage sections. */

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 104px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  z-index: -1;
  width: 720px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--net);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--net) 20%, transparent);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  animation: rise 0.7s ease both;
}

.lead {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  animation: rise 0.7s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  animation: rise 0.7s ease 0.2s both;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  animation: rise 0.7s ease 0.3s both;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}

.socials a:hover { color: var(--text); background: var(--surface-2); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--border); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.section-head { align-self: start; position: sticky; top: 96px; }
@media (max-width: 860px) { .section-head { position: static; } }

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; }

.prose p { margin: 0 0 16px; color: var(--muted); font-size: 1.15rem; }
.prose p:first-child { color: var(--text); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  position: relative;
  padding: 0 0 40px 32px;
  border-left: 1px solid var(--border);
}

.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.timeline li:first-child::before { background: var(--accent); }

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 6px;
}

.company { color: var(--accent); font-weight: 600; }
.date { color: var(--muted); font: 500 0.85rem/1.6 var(--mono); }
.timeline h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--muted); }

/* Skills */
.skills { display: grid; gap: 28px; }
.skill-group h3 { margin-bottom: 12px; font-size: 0.95rem; color: var(--muted); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.chips li {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Tool card */
.tool-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 16px 40px var(--glow);
}

.tool-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tool-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
}

.tool-icon svg { width: 28px; height: 28px; }

.tool-body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.35rem; }
.tool-body p { margin: 10px 0 18px; color: var(--muted); }

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.tool-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.tool-features li { display: flex; gap: 8px; }
.tool-features li::before { content: "✓"; color: var(--net); font-weight: 700; }

.tool-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.tool-card:hover .tool-link .icon { transform: translateX(3px); }
.tool-link .icon { transition: transform 0.2s; }

@media (max-width: 600px) {
  .tool-card { flex-direction: column; padding: 22px; }
  .tool-features { grid-template-columns: minmax(0, 1fr); }
}

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 64px 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 100% 0%, var(--glow), transparent),
    var(--surface);
  text-align: center;
}

.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.contact-card p { margin: 14px auto 0; max-width: 46ch; color: var(--muted); font-size: 1.1rem; }
.contact-card .hero-actions { justify-content: center; animation: none; }

@media (max-width: 600px) {
  .contact-card { padding: 40px 20px; }
}
