/* =========================================================
   Oluwole Majiyagbe — Personal site
   Modern static site. No framework, no build step.
   Colorful, vibrant aesthetic with light/dark theming.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Vibrant multi-hue palette */
  --c-orange: #f97316;
  --c-coral: #fb5d6c;
  --c-pink: #ec4899;
  --c-violet: #7c5cff;
  --c-blue: #3b82f6;
  --c-teal: #14b8a6;
  --c-amber: #f59e0b;
  --c-green: #22c55e;

  /* Primary accent + signature gradient */
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --gradient: linear-gradient(105deg, var(--c-orange), var(--c-pink) 45%, var(--c-violet));
  --gradient-soft: linear-gradient(135deg, rgba(249, 115, 22, .16), rgba(124, 92, 255, .16));

  /* Light theme (default) */
  --bg: #fcfbf9;
  --bg-alt: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #f6f2ec;
  --text: #1a1820;
  --text-soft: #393542;
  --muted: #6c6678;
  --border: #e9e3da;
  --shadow: 0 1px 2px rgba(26, 24, 32, 0.04), 0 8px 24px rgba(26, 24, 32, 0.07);
  --shadow-lg: 0 16px 48px rgba(124, 92, 255, 0.16);
  --header-bg: rgba(252, 251, 249, 0.78);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1120px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] {
  --accent: #ff8a3d;
  --accent-strong: #ffa15c;
  --accent-soft: rgba(255, 138, 61, 0.16);
  --gradient: linear-gradient(105deg, #ff9248, #ff6b9d 45%, #9b7bff);
  --gradient-soft: linear-gradient(135deg, rgba(255, 138, 61, .16), rgba(155, 123, 255, .18));

  --bg: #0d0c12;
  --bg-alt: #131220;
  --surface: #18161f;
  --surface-2: #201d2b;
  --text: #f5f3f0;
  --text-soft: #d8d4dd;
  --muted: #9a93a6;
  --border: #2a2738;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 52px rgba(124, 92, 255, 0.32);
  --header-bg: rgba(13, 12, 18, 0.72);
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2.5px solid var(--c-violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), filter .2s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

.btn--primary {
  background: var(--gradient);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 32px rgba(124, 92, 255, 0.38);
  color: #fff;
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--c-violet);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand .brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--c-violet);
  border-color: var(--c-violet);
  transform: rotate(-12deg);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

/* ---------- Decorative gradient blobs ---------- */
.blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

html[data-theme="dark"] .blob {
  opacity: 0.4;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--c-orange);
  top: -120px;
  left: -80px;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: var(--c-violet);
  top: -60px;
  right: -100px;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--c-pink);
  bottom: -120px;
  left: 30%;
  opacity: 0.35;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 9vw, 6rem);
  overflow: hidden;
}

.hero>.container {
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-side {
  display: grid;
  gap: 1.5rem;
}

.hero-podcast .podcast-strip {
  padding: 0.85rem 0.95rem;
}

.hero-podcast .podcast-player {
  max-height: 148px;
}

.hero-podcast .podcast-strip-head {
  margin-bottom: 0.75rem;
}

.hero-podcast .pod-meta {
  font-size: 0.85rem;
}

.hero .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .role {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-bottom: 1.4rem;
}

.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 700;
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-meta>div:nth-child(1) strong {
  color: var(--c-orange);
}

.hero-meta>div:nth-child(2) strong {
  color: var(--c-pink);
}

.hero-meta>div:nth-child(3) strong {
  color: var(--c-violet);
}

.hero-portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 35%;
  transform: rotate(-3deg);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 36px;
  background: var(--gradient);
  filter: blur(2px);
  opacity: 0.9;
  z-index: 1;
  transform: rotate(-3deg);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -22px;
  bottom: 30px;
  border-radius: 20px;
  background: var(--c-teal);
  z-index: 0;
  opacity: .9;
  transform: rotate(12deg);
}

/* ---------- Podcast (in hero) ---------- */
.podcast-strip {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.podcast-strip-head {
  display: flex;
  align-items: center;
  gap: 0.9rem 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.podcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--gradient);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.podcast-strip-head h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.podcast-strip-head .pod-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.1rem;
}

.podcast-strip-head .pod-meta a {
  font-weight: 500;
}

.podcast-player {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.podcast-player::-webkit-scrollbar {
  width: 8px;
}

.podcast-player::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  height: 100%;
  overflow: hidden;
}

/* colored top accent bar revealed on hover */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: var(--card-accent, var(--gradient));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card:hover::after {
  transform: scaleX(1);
}

/* Per-card color rotation */
.grid--3>.card:nth-child(6n+1) {
  --card-accent: var(--c-orange);
  --card-tint: rgba(249, 115, 22, .13);
  --card-color: var(--c-orange);
}

.grid--3>.card:nth-child(6n+2) {
  --card-accent: var(--c-violet);
  --card-tint: rgba(124, 92, 255, .13);
  --card-color: var(--c-violet);
}

.grid--3>.card:nth-child(6n+3) {
  --card-accent: var(--c-teal);
  --card-tint: rgba(20, 184, 166, .13);
  --card-color: var(--c-teal);
}

.grid--3>.card:nth-child(6n+4) {
  --card-accent: var(--c-pink);
  --card-tint: rgba(236, 72, 153, .13);
  --card-color: var(--c-pink);
}

.grid--3>.card:nth-child(6n+5) {
  --card-accent: var(--c-blue);
  --card-tint: rgba(59, 130, 246, .13);
  --card-color: var(--c-blue);
}

.grid--3>.card:nth-child(6n+6) {
  --card-accent: var(--c-amber);
  --card-tint: rgba(245, 158, 11, .15);
  --card-color: var(--c-amber);
}

.grid--3>.card:hover {
  border-color: var(--card-color, var(--accent));
}

/* Services */
.service .icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--card-tint, var(--accent-soft));
  color: var(--card-color, var(--accent));
  margin-bottom: 1rem;
}

.service .icon svg {
  width: 24px;
  height: 24px;
}

.service h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Work */
.work-card {
  display: flex;
  flex-direction: column;
}

.work-card .work-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.work-card h3 {
  font-size: 1.2rem;
}

.work-card h3 a {
  color: var(--text);
}

.work-card:hover h3 a {
  color: var(--card-color, var(--accent));
}

.work-card .work-link {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.work-card:hover .work-link {
  color: var(--card-color, var(--accent));
  transform: translate(2px, -2px);
}

.work-card .work-link svg {
  width: 20px;
  height: 20px;
}

.work-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

a.tag {
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.tag:hover {
  color: var(--card-color, var(--accent));
  border-color: var(--card-color, var(--accent));
}

/* Skills groups — each group gets its own hue */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-group {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--group-color, var(--accent));
}

.skill-group:nth-child(1) {
  --group-color: var(--c-orange);
}

.skill-group:nth-child(2) {
  --group-color: var(--c-violet);
}

.skill-group:nth-child(3) {
  --group-color: var(--c-teal);
}

.skill-group:nth-child(4) {
  --group-color: var(--c-pink);
}

.skill-group h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--group-color, var(--muted));
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.skill-group .tags .tag {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
}

.skill-group .tags .tag:hover {
  border-color: var(--group-color);
  color: var(--group-color);
}

/* Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.timeline-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--gradient);
  opacity: .5;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-item .date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-item .title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

.timeline-item .place {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-item p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* About — statement heading + bio card + 2x2 trait cards */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-intro {
  position: sticky;
  top: 92px;
}

.about-headline {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.about-rule {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
  margin-top: 1.5rem;
}

.about-content {
  display: grid;
  gap: 1.25rem;
}

.about-bio p {
  color: var(--text);
  font-size: 1.1rem;
}

.about-bio p.muted {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 1rem;
}

.about-bio strong {
  color: var(--text);
  font-weight: 700;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.about-card {
  padding: 1.4rem 1.5rem;
}

.about-card:hover {
  border-color: var(--card-color, var(--accent));
}

.about-card .ac-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--card-color, var(--accent));
  margin-bottom: 0.7rem;
}

.about-card .ac-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--card-tint, var(--accent-soft));
  color: var(--card-color, var(--accent));
}

.about-card .ac-icon svg {
  width: 15px;
  height: 15px;
}

.about-card p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.about-status {
  display: flex;
  align-items: center;
}

.about-status .status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-status .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

.about-status strong {
  display: block;
  font-size: 1.05rem;
}

.about-status .ac-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.25rem, 6vw, 4.25rem);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .blob {
  filter: blur(80px);
  opacity: .35;
}

.contact-card>* {
  position: relative;
  z-index: 1;
}

.contact-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color .2s var(--ease);
}

.socials a:nth-child(1):hover {
  color: #fff;
  background: var(--c-blue);
  border-color: var(--c-blue);
}

.socials a:nth-child(2):hover {
  color: #fff;
  background: var(--c-violet);
  border-color: var(--c-violet);
}

.socials a:nth-child(3):hover {
  color: #fff;
  background: var(--c-orange);
  border-color: var(--c-orange);
}

.socials a:nth-child(4):hover {
  color: #fff;
  background: var(--c-teal);
  border-color: var(--c-teal);
}

.socials a:hover {
  transform: translateY(-3px);
}

.socials svg {
  width: 20px;
  height: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  color: var(--text-soft);
}

.footer-inner a:hover {
  color: var(--accent);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    gap: 1.25rem;
  }

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

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

  .about-intro {
    position: static;
  }

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

@media (max-width: 720px) {

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 22px;
    height: 22px;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    gap: 0.25rem;
  }

  .nav.is-open .nav-links a {
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 560px) {

  .grid--3,
  .grid--2,
  .skill-groups,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }
}

/* =========================================================
   Résumé page (resume.html) — screen + print
   ========================================================= */
.resume-wrap {
  max-width: 800px;
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.resume-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.resume-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
  border-top: 5px solid transparent;
  border-image: var(--gradient) 1;
}

.resume-doc header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.resume-doc h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.resume-doc .role {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-top: 0.25rem;
}

.resume-doc .contact-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.resume-section {
  margin-top: 1.75rem;
}

.resume-section>h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.resume-section p {
  color: var(--text-soft);
}

.resume-entry {
  margin-bottom: 1.1rem;
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.resume-entry .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.resume-entry .pos {
  font-weight: 600;
}

.resume-entry .when {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.resume-entry .org {
  color: var(--muted);
  font-size: 0.92rem;
}

.resume-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #fff;
    --text: #000;
    --text-soft: #1a1a1a;
    --muted: #444;
    --border: #ccc;
    --accent: #c2410c;
    --shadow: none;
    --shadow-lg: none;
  }

  .site-header,
  .site-footer,
  .resume-toolbar,
  .theme-toggle,
  .blobs {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .resume-wrap {
    padding: 0;
    max-width: none;
  }

  .resume-doc {
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    border-image: none;
  }

  a {
    color: #000;
  }

  .resume-section {
    break-inside: avoid;
  }

  .resume-entry {
    break-inside: avoid;
  }
}

/* =========================================================
   Motion — ambient + entrance animations
   (auto-disabled by the prefers-reduced-motion block above)
   ========================================================= */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-12px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(22px, -18px) scale(1.07); }
}
@keyframes shimmer {
  to { background-position: 100% center; }
}

/* Staggered hero entrance */
.hero-copy > * { animation: heroRise 0.7s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.30s; }
.hero-side { animation: heroRise 0.7s var(--ease) 0.18s both; }

/* Ambient motion */
.hero-portrait img { animation: floaty 6s ease-in-out infinite; }
.hero-podcast { animation: bob 4.5s ease-in-out infinite; }
.hero h1 .accent {
  background-size: 200% auto;
  background-position: 0% center;
  animation: shimmer 7s ease-in-out infinite alternate;
}
.status .dot,
.about-status .dot { animation: pulseDot 2.6s ease-out infinite; }
.blob { animation: drift 16s ease-in-out infinite; }
.blob-2 { animation-duration: 20s; animation-delay: -5s; }
.blob-3 { animation-duration: 18s; animation-delay: -9s; }