/* ============================================================
   Shubham Chandra — portfolio · Glassmorphism edition
   Palette: ink #060B14 · text #E9EEF7 · muted #93A5BE
            signal #4FD6FF · aurora #7C5CFF
   Glass: white-alpha surfaces + backdrop blur over fixed
          aurora orbs; 1px light borders; inner top highlight
   Type: Sora (display) · Instrument Sans (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --ink: #060B14;
  --text: #E9EEF7;
  --muted: #93A5BE;
  --signal: #4FD6FF;
  --aurora: #7C5CFF;

  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-hover: rgba(79, 214, 255, 0.45);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 8px 32px rgba(2, 6, 16, 0.45);
  --blur: blur(22px) saturate(150%);

  --display: "Sora", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --max: 1160px;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* fixed aurora field — the color the glass blurs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 560px at 82% 8%, rgba(124, 92, 255, 0.28), transparent 65%),
    radial-gradient(640px 640px at 8% 38%, rgba(79, 214, 255, 0.16), transparent 65%),
    radial-gradient(520px 520px at 70% 78%, rgba(55, 168, 245, 0.14), transparent 65%),
    radial-gradient(420px 420px at 28% 96%, rgba(124, 92, 255, 0.16), transparent 65%),
    var(--ink);
}

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

a { color: var(--signal); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(79, 214, 255, 0.25); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--mono);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- glass primitive ---------- */

.glass,
.nav,
.mobile-menu,
.principle,
.pillar,
.build-card,
.project,
.cred,
.stack-group,
.portrait-frame,
.split-aside img,
.btn-ghost,
.hero-social a {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .mobile-menu, .principle, .pillar, .build-card, .project,
  .cred, .stack-group, .portrait-frame, .btn-ghost, .hero-social a {
    background: rgba(16, 24, 40, 0.92);
  }
}

/* ---------- typography ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--signal);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--signal), var(--aurora));
  vertical-align: middle;
  margin-right: 0.7rem;
}

.lede { font-size: 1.18rem; color: var(--text); max-width: 58ch; margin-bottom: 1.2rem; }

.section-lede { color: var(--muted); max-width: 60ch; margin-bottom: 2.6rem; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--glass-border);
  box-shadow: 0 8px 32px rgba(2, 6, 16, 0.35);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.brand-mark {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--signal);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(135deg, rgba(79, 214, 255, 0.12), rgba(124, 92, 255, 0.12));
  box-shadow: var(--glass-highlight);
}
.brand-name { font-family: var(--display); font-size: 0.95rem; font-weight: 600; }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--signal);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79, 214, 255, 0.35); }

.nav-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  border-left: none;
  border-right: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.8rem 1.5rem 1.4rem;
}
.mobile-menu a { color: var(--text); padding: 0.7rem 0; font-weight: 500; border-bottom: 1px solid var(--glass-border); }
.mobile-menu a:last-child { border-bottom: none; color: var(--signal); }
.mobile-menu.open { display: flex; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#sky, #sky2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-name {
  font-size: clamp(3rem, 8.5vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
  background: linear-gradient(120deg, #ffffff 30%, #b9c8e6 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-thesis {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 24ch;
  margin-bottom: 1.1rem;
}
.hero-thesis em {
  font-style: normal;
  background: linear-gradient(90deg, var(--signal), var(--aurora));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { color: var(--muted); max-width: 46ch; margin-bottom: 2.2rem; }

.hero-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(120deg, rgba(79, 214, 255, 0.92), rgba(55, 168, 245, 0.92));
  color: #04121d;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 28px rgba(79, 214, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(79, 214, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost {
  color: var(--text);
  border-radius: 999px;
}
.btn-ghost:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }

.hero-social { display: flex; gap: 0.4rem; margin-left: 0.3rem; }
.hero-social a {
  color: var(--muted);
  padding: 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-social a:hover { color: var(--signal); border-color: var(--glass-border-hover); transform: translateY(-2px); }

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

.portrait-frame {
  position: relative;
  width: min(400px, 80%);
  border-radius: 50% 50% var(--radius) var(--radius) / 42% 42% var(--radius) var(--radius);
  padding: 0.7rem;
  overflow: hidden;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -46px 50px -34px rgba(6, 11, 20, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.portrait-frame img {
  border-radius: 46% 46% calc(var(--radius) - 4px) calc(var(--radius) - 4px) / 39% 39% calc(var(--radius) - 4px) calc(var(--radius) - 4px);
  filter: saturate(1.04) contrast(1.02);
}

.hero-foot {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 2.4rem;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  border-top: 1px solid var(--glass-border);
}
.hero-foot-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  white-space: nowrap;
}
.hero-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
}
.hero-logos li {
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(233, 238, 247, 0.55);
}

/* ---------- sections ---------- */

.section { padding: 6.5rem 0; }
.section-alt { position: relative; }
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  pointer-events: none;
}
.section-alt .section-inner { position: relative; }

.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.section-cta { margin-top: 2.8rem; }

/* profile split */

.split { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 4rem; align-items: start; }

.split-main p { color: var(--muted); margin-bottom: 1.2rem; max-width: 62ch; }
.split-main .lede { color: var(--text); }

.fact-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.8rem;
}
.fact-num {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--signal), var(--aurora));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact-label { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }

.split-aside img {
  border-radius: var(--radius);
  padding: 0.6rem;
}
.split-aside figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.9rem;
  line-height: 1.5;
}

/* principles */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.principle {
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.principle:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); background: var(--glass-strong); }
.principle h3 { font-size: 1.22rem; margin-bottom: 0.7rem; line-height: 1.3; }
.principle h3 em { font-style: italic; color: var(--signal); }
.principle p { color: var(--muted); font-size: 0.98rem; }

/* pillars */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.pillar {
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.pillar:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateY(-3px); background: var(--glass-strong); }
.pillar-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #A18BFF;
}
.pillar h3 { font-size: 1.18rem; line-height: 1.3; }
.pillar p { color: var(--muted); font-size: 0.97rem; flex-grow: 1; }

/* chips */

.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip-row li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--glass-highlight);
}
.chip-row-lg li { font-size: 0.8rem; padding: 0.45rem 0.95rem; color: var(--text); }

/* now building */

.build-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.build-card {
  border-radius: var(--radius);
  padding: 2.1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
}
.build-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.22), transparent);
  pointer-events: none;
}
.build-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(79, 214, 255, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 214, 255, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(79, 214, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 214, 255, 0); }
}
.build-card h3 { font-size: 1.35rem; }
.build-card p { color: var(--muted); font-size: 0.98rem; }
.build-note {
  border-left: 2px solid var(--signal);
  padding-left: 0.9rem;
  font-style: italic;
  color: var(--text) !important;
}

/* projects */

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.project {
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.project:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  background: var(--glass-strong);
}
.project-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.project h3 { font-size: 1.15rem; }
.project-lang {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A18BFF;
  white-space: nowrap;
}
.project p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.project-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--signal);
}
.project-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* toolkit */

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.stack-group {
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
}
.stack-group h3 {
  font-size: 0.95rem;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
}

/* credentials — scroll-snap carousel */

.carousel { position: relative; margin-top: 2.6rem; }

.cred-grid {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 0.2rem 1.2rem;
  scrollbar-width: none;
}
.cred-grid::-webkit-scrollbar { display: none; }

.cred-grid .cred {
  flex: 0 0 clamp(240px, 30%, 350px);
  scroll-snap-align: start;
}

.carousel-nav {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.4rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover { border-color: var(--glass-border-hover); color: var(--signal); transform: translateY(-2px); }
.carousel-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.cred {
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.cred:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); background: var(--glass-strong); }
.cred-issuer {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #A18BFF;
  margin-bottom: 0.6rem;
}
.cred h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: 0.45rem; }
.cred p { color: var(--muted); font-size: 0.9rem; }
.cred-edu { border-color: rgba(79, 214, 255, 0.32); }

/* contact */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 50% 115%, rgba(124, 92, 255, 0.22), transparent 65%),
    rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--glass-border);
  pointer-events: none;
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow::before { display: none; }
.contact h2 { max-width: 24ch; }
.contact .lede { color: var(--muted); max-width: 52ch; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* footer */

.footer {
  padding: 3rem 1.5rem 3.4rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}
.footer-quote {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.footer-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .mobile-menu, .principle, .pillar, .build-card, .project,
  .cred, .stack-group, .portrait-frame, .btn-ghost, .hero-social a {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(16, 24, 40, 0.94);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 0.75fr; gap: 2rem; }
  .project-grid, .pillar-grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-grid .cred { flex-basis: clamp(240px, 44%, 350px); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .brand-name { font-size: 0.9rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
    gap: 2.4rem;
    text-align: left;
  }
  .hero-visual { order: -1; justify-content: flex-start; }
  .portrait-frame { width: min(280px, 70%); padding: 1rem 1rem 0; }
  .hero-foot { flex-direction: column; gap: 0.8rem; }
  .hero-logos { gap: 0.4rem 1.6rem; }

  .section { padding: 4.5rem 0; }
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
  .split-aside { max-width: 420px; }
  .fact-row { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .principle-grid, .build-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .project-grid, .pillar-grid, .stack-grid { grid-template-columns: 1fr; }
  .cred-grid .cred { flex-basis: 86%; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-social { margin: 0.4rem 0 0; }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn { width: 100%; }
}
