:root {
  --bg: #f3f6f9;
  --card-bg: #ffffff;
  --border: #d8e0e8;
  --text: #11151c;
  --muted: #5a6573;
  --accent: #1d6b72;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Layout */

header,
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px;
}

header,
section {
  scroll-margin-top: 10px;
}

section {
  padding: 80px 0;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

section > p {
  color: var(--muted);
  font-size: 1.2rem;
  margin: 12px 0 32px;
}

/* Navigation */

nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  width: fit-content;
  margin: 16px auto 0;
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--card-bg);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
}

nav a:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.hero-text {
  padding: 40px;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero .role {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 20px 0;
}

.hero .pitch {
  font-size: 1.2rem;
}

.hero .location {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 20px;
}

.hero-visual {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radar */

.radar {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(29, 107, 114, 0.35);
  background: repeating-radial-gradient(
    circle,
    transparent 0 29px,
    rgba(29, 107, 114, 0.15) 29px 30px
  );
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: rgba(29, 107, 114, 0.15);
}

.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after  { top: 50%; left: 0; right: 0; height: 1px; }

.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.links line {
  stroke: var(--accent);
  stroke-width: 0.4;
  stroke-dasharray: 1.5 1.5;
  opacity: 0.5;
}

.sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(transparent 0deg 290deg, rgba(29, 107, 114, 0.4) 360deg);
  animation: sweep 4s linear infinite;
}

.blip {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  animation: ping 4s ease-out infinite;
}

/* Delay = angle from top / 360 × 4s, so each blip lights up as the sweep passes */
.b1 { left: 68%; top: 30%; animation-delay: 0.47s; }
.b2 { left: 78%; top: 60%; animation-delay: 1.22s; }
.b3 { left: 40%; top: 72%; animation-delay: 2.27s; }
.b4 { left: 25%; top: 45%; animation-delay: 3.13s; }
.b5 { left: 45%; top: 22%; animation-delay: 3.89s; }

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@keyframes ping {
  0%   { opacity: 1; transform: scale(1.8); box-shadow: 0 0 12px var(--accent); }
  15%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0.25; transform: scale(1); box-shadow: none; }
}

/* Card grids */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-wide {
  grid-column: 1 / -1;
}

/* 6 columns: top row 2 × 3, bottom row 3 × 2 */
.cards-creds {
  grid-template-columns: repeat(6, 1fr);
}

.cards-creds .card {
  grid-column: span 2;
}

.cards-creds .card:nth-child(-n + 2) {
  grid-column: span 3;
}

/* Cards */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
}

.card p + p {
  margin-top: 12px;
}

.card p + .tags,
.card .tags + p {
  margin-top: 12px;
}

.card .meta {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 107, 114, 0.2);
  background: rgba(29, 107, 114, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card-link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 107, 114, 0.12);
}

.card-link:hover .meta:last-child {
  text-decoration: underline;
}

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

/* Responsive */

@media (max-width: 760px) {
  .hero,
  .cards-2,
  .cards-creds {
    grid-template-columns: 1fr;
  }

  .cards-creds .card,
  .cards-creds .card:nth-child(-n + 2) {
    grid-column: auto;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sweep,
  .blip,
  .card-link {
    animation: none;
    transition: none;
  }

  .blip {
    opacity: 1;
  }

  .card-link:hover {
    transform: none;
  }
}
