/* ============================================================
   Zangl / Andy Pierrepoint — Portfolio
   Dark tech theme · cyan / electric blue accents
   ============================================================ */

:root {
  --bg: #060b14;
  --bg-elevated: #0b1220;
  --bg-card: #0f172a;
  --bg-card-hover: #132037;
  --border: rgba(34, 211, 238, 0.12);
  --border-strong: rgba(34, 211, 238, 0.28);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --nav-h: 72px;
  --max: 1100px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: #67e8f9;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #061018;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Background décor ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
}

.bg-glow--tl {
  top: -160px;
  left: -100px;
  background: #0e7490;
}

.bg-glow--br {
  bottom: 10%;
  right: -140px;
  background: #1d4ed8;
  opacity: 0.2;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 2.75rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f8fafc;
}

.section-lead {
  margin-top: 0.85rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 11, 20, 0.78);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: #fff;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #061018;
  box-shadow: 0 0 20px var(--accent-glow);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem !important;
  border-radius: 999px !important;
  background: var(--gradient) !important;
  color: #061018 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-cta:hover {
  opacity: 0.92;
  color: #061018 !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #061018;
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-primary:hover {
  color: #061018;
  opacity: 0.95;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */
#hero {
  padding: 4.5rem 0 5.5rem;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #f8fafc;
}

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

.hero-tagline {
  margin-top: 1.15rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.35rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-wrap {
  position: relative;
  width: min(100%, 320px);
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: var(--gradient);
  opacity: 0.55;
  filter: blur(18px);
  z-index: 0;
}

.avatar-frame {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(6, 11, 20, 0.88);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.float-card {
  position: absolute;
  z-index: 3;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.float-card strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.float-card--top {
  top: 8%;
  right: -8%;
}

.float-card--stack {
  padding: 0.85rem 1.1rem;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(8, 30, 48, 0.95);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.18), var(--shadow);
}

.float-card--stack strong {
  color: #a5f3fc;
  font-size: 0.98rem;
}

.float-card--bottom {
  bottom: 12%;
  left: -10%;
}

/* Abstract tech SVG décor */
.hero-orbits {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.about-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.about-card p + p {
  margin-top: 1rem;
}

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

.about-highlights {
  display: grid;
  gap: 1rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.stat strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.stat span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Experience timeline ---------- */
.timeline {
  position: relative;
  list-style: none;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 2.25rem;
}

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

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-item.current .timeline-dot {
  background: var(--accent);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  transition: border-color 0.25s var(--ease);
}

.timeline-card:hover {
  border-color: var(--border-strong);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.timeline-org {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-strong);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.timeline-body {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-body ul {
  margin-top: 0.65rem;
  padding-left: 1.15rem;
}

.timeline-body li + li {
  margin-top: 0.35rem;
}

.consulting-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.chip {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
}

.note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.skill-group--primary {
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 55%),
    var(--bg-card);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.08);
}

.skill-group h3 {
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group--primary h3 {
  font-size: 1.05rem;
}

.skill-subtitle {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.skill-group h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient);
  box-shadow: 0 0 10px var(--accent-glow);
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: #a5f3fc;
}

/* ---------- Work highlights ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.work-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.work-visual {
  height: 140px;
  position: relative;
  background: linear-gradient(145deg, #0b1220, #0f1c32);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.work-visual svg {
  width: 100%;
  height: 100%;
}

.work-body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-body h3 {
  font-size: 1.05rem;
  color: #f8fafc;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.work-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.work-tags span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ---------- Contact ---------- */
#contact {
  padding-bottom: 4rem;
}

.contact-panel {
  background:
    radial-gradient(ellipse 80% 80% at 10% 0%, rgba(34, 211, 238, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(59, 130, 246, 0.12), transparent 45%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.contact-panel > div > p {
  color: var(--text-muted);
  max-width: 32rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(6, 11, 20, 0.55);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #f8fafc;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.contact-link .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.contact-link .value {
  font-weight: 600;
  font-size: 0.95rem;
}



/* ---------- Recommendations ---------- */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 0.55rem;
  right: 1.1rem;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

.quote-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.quote-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.quote-card footer {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quote-author {
  font-style: normal;
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.95rem;
}

.quote-role {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ---------- Education ---------- */
.education-card {
  max-width: 720px;
}

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

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

.footer-brand {
  color: var(--text-muted);
}

.footer-brand strong {
  color: #e2e8f0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-dim);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .avatar-wrap {
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .float-card--top {
    right: -4%;
  }

  .float-card--bottom {
    left: -4%;
  }

  .skills-grid,
  .work-grid,
  .recommendations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 11, 20, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .skills-grid,
  .work-grid,
  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .float-card {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 2.5rem;
  }
}

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

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