/*
 *  +------------------------------------------+
 *  |      G A U R V  M A N J A N I A         |
 *  +------------------------------------------+
 *
 * © 2026 Gaurv Manjania.
 * Third-party brand marks and map data remain the property of their owners.
 */

/* Theme tokens. */
:root {
  --bg: #121212;
  --surface: #181818;
  --surface-hover: #1d1d1d;
  --text: #f3f3f5;
  --muted: #9b9ba3;
  --faint: #6f6f77;
  --border: #29292d;
  --green: #ff8a1f;
  --green-soft: #ffb45f;
  --green-deep: #e36b00;
  --green-pale: #ffd6ad;
  --max: 672px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { color: #1a0d04; background: var(--green); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Atmospheric canvas layers. */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
body.rain-active #rain { opacity: .72; }

.ambient {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  opacity: .07;
  z-index: 0;
}
.ambient-one { top: -14rem; left: -12rem; background: var(--green-deep); }
.ambient-two { right: -14rem; top: 34rem; background: var(--green); }

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 0 0 56px;
}

/* Hero profile and entrance motion. */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px 0 72px;
}

.hero h1 {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(3.3rem, 10vw, 5.45rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 760;
}

.aurora-text {
  color: transparent;
  background-image: linear-gradient(90deg, #c95600 0%, #e66d08 28%, #f89834 62%, #ffbd66 100%);
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: aurora 20s ease-in-out infinite alternate;
}

@keyframes aurora {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroPieceEntrance {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero.visible { animation: heroEntrance 1.55s cubic-bezier(.22,.75,.3,1) both; }
.hero.visible > .page-nav { animation: heroPieceEntrance 1.15s cubic-bezier(.22,.75,.3,1) .18s both; }
.hero.visible > #profileName { animation: heroPieceEntrance 1.7s cubic-bezier(.22,.75,.3,1) .36s both; }
.hero.visible > #profileTitle { animation: heroPieceEntrance 1.55s cubic-bezier(.22,.75,.3,1) .7s both; }
.hero.visible > .intro { animation: heroPieceEntrance 1.55s cubic-bezier(.22,.75,.3,1) .98s both; }
.hero.visible > .social-row { animation: heroPieceEntrance 1.45s cubic-bezier(.22,.75,.3,1) 1.22s both; }

.hero h2 {
  margin: 20px 0 0;
  color: #a5a5ad;
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
  letter-spacing: -.025em;
  font-weight: 500;
}

.intro {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.11rem;
  line-height: 1.65;
  letter-spacing: -.012em;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.social-link {
  min-width: 140px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #a8a8af;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .65s ease, color .65s ease, background .65s ease, transform .65s ease;
}
.social-link:hover {
  color: #fff;
  background: #171717;
  border-color: #414147;
  transform: translateY(-2px);
}
.social-link-pending { cursor: default; }
.social-link-pending:hover { transform: none; }
.social-link svg { width: 21px; height: 21px; }

/* Navigation and rain toggle. */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 54px;
  color: #73737b;
  font-size: .86rem;
}
.page-nav a { color: #93939b; text-decoration: none; transition: color .5s ease; }
.page-nav a:hover { color: var(--green-soft); }
.page-nav span { color: #3f3f44; }
.rain-control { display: inline-flex; align-items: center; gap: 8px; }

.rain-toggle {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: #93939b;
  background: transparent;
  cursor: pointer;
  transition: color .5s ease, transform .5s ease;
}
.rain-toggle:hover,
.rain-toggle.is-active { color: var(--green-soft); transform: translateY(-1px); }
.rain-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.rain-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s ease; }
.rain-toggle.is-active svg { transform: translateY(1px); }

/* Shared section headings and the centered location eye. */
.section {
  padding: 112px 0 0;
}
.section-heading { margin-bottom: 44px; }
.section-heading h2 {
  margin: 0;
  font-family: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -.04em;
  line-height: 1.15;
}
.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}
.location-heading { margin-bottom: 30px; text-align: center; }
.location-heading h2 { display: flex; align-items: center; justify-content: center; }
.location-heading svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--green-soft);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: eyeBlink 4.8s ease-in-out infinite;
}
@keyframes eyeBlink {
  0%, 42%, 46%, 100% { transform: scaleY(1); }
  44% { transform: scaleY(.08); }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Certification timeline and progress indicators. */
.timeline-list { display: grid; }
.timeline-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-date {
  padding-top: 2px;
  color: #75757d;
  font-size: .8rem;
}
.item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.item-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.45; letter-spacing: -.015em; }
.certification-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.certification-title h3 { min-width: 0; }
.certification-logo { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.certification-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.verify-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #38383d;
  border-radius: 999px;
  color: #a9a9b0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .55s ease, border-color .55s ease, transform .55s ease;
}
.verify-link:hover { color: var(--green); border-color: var(--green-deep); transform: translateY(-1px); }
.badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #38383d;
  border-radius: 999px;
  color: #a9a9b0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.progress-track { height: 5px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #242428; }
.progress-fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  will-change: width;
}
.progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff7ec;
  box-shadow: 0 0 4px 2px var(--green), 0 0 10px 3px var(--green);
  transform: translateY(-50%);
  animation: progressSpark 1.2s ease-in-out infinite;
}
.progress-fill.complete::after { animation: progressSparkDone 2.4s ease-in-out infinite; }
@keyframes progressSpark {
  0%, 100% { opacity: .65; transform: translateY(-50%) scale(.75); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.35); }
}
@keyframes progressSparkDone {
  0%, 100% { opacity: .5; transform: translateY(-50%) scale(.85); }
  50% { opacity: .95; transform: translateY(-50%) scale(1.15); }
}

/* Tools and technology marks. */
.stack-list { display: grid; gap: 76px; }
.stack-group {
  min-width: 0;
}
.stack-group h3 { margin: 0 0 20px; font-size: 1rem; line-height: 1.35; }
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; }
.tool {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  color: var(--green-soft);
  background: transparent;
  cursor: default;
  isolation: isolate;
  transition: color .75s ease, transform .75s ease;
}
.tool::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,31,.24), rgba(255,138,31,0) 68%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.45);
  transition: opacity .7s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.tool-mark {
  width: 39px;
  height: 39px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(64%) sepia(87%) saturate(2890%) hue-rotate(359deg) brightness(102%) contrast(104%);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
}
.tool-wide .tool-mark { width: 62px; height: 46px; }
.tool-large .tool-mark { width: 45px; height: 45px; transform: scale(1.08); }
.tool:hover,
.tool:focus-visible {
  z-index: 10;
  color: var(--green);
  transform: translateY(-5px) scale(1.08);
}
.tool:hover::before,
.tool:focus-visible::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tool:hover .tool-mark,
.tool:focus-visible .tool-mark { transform: scale(1.12) rotate(4deg); }
.tool-large:hover .tool-mark,
.tool-large:focus-visible .tool-mark { transform: scale(1.22) rotate(4deg); }
.tool:focus-visible { outline: 2px solid var(--green); outline-offset: 7px; }


/* Work experience and education */
.resume-list { display: grid; }
.resume-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.resume-item:last-child { border-bottom: 1px solid var(--border); }
.resume-date {
  padding-top: 3px;
  color: #75757d;
  font-size: .78rem;
  line-height: 1.55;
}
.resume-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.resume-head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.resume-organization {
  margin: 4px 0 0;
  color: #c0c0c7;
  font-size: .91rem;
  font-weight: 600;
}
.education-mark {
  width: 58px;
  height: 58px;
  margin-top: 3px;
  justify-self: center;
  overflow: hidden;
}
.education-logo {
  display: block;
  width: 338px;
  max-width: none;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
.education-date {
  margin: 10px 0 0;
  color: #75757d;
  font-size: .78rem;
  line-height: 1.55;
}
.resume-location,
.resume-location-inline {
  color: #777780;
  font-size: .75rem;
}
.resume-location { flex: 0 0 auto; padding-top: 3px; text-align: right; }
.resume-location-inline { margin: 9px 0 0; }
.resume-summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.66;
}
.resume-highlights {
  margin: 15px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}
.resume-highlights li + li { margin-top: 7px; }
.resume-highlights li::marker { color: var(--green); }
.resume-tools { margin-top: 16px; }

/* Project cards and visit affordances. */
.project-list { display: grid; gap: 14px; }
.project-card {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  background: rgba(22,22,22,.76);
  transition: transform .7s ease, border-color .7s ease, background .7s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: #44444a; background: var(--surface-hover); }
.project-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.project-title-row h3 { margin: 0; font-size: 1.03rem; letter-spacing: -.015em; }
.project-visit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-soft);
  transition: color .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.project-visit-link { text-decoration: none; }
.project-visit-pending { opacity: .48; cursor: default; }
.project-visit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project-card:hover .project-visit { color: var(--green); transform: translate(2px, -2px); }
.project-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.62; font-size: .93rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { color: #8b8b93; font-size: .73rem; }
.tag::before { content: "#"; color: var(--green-deep); }
.resume-tools .tag::before { content: "•"; margin-right: 4px; }
.project-card .tag::before { content: "•"; margin-right: 4px; }

/* Visitor-location map, attribution, and resolved network fields. */
.connection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 360px;
  gap: 30px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.location-map {
  position: relative;
  width: 100%;
  height: 420px;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 70px rgba(0,0,0,.2);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.map-credit {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 1001;
  color: #000;
  width: max-content;
  max-width: calc(100% - 20px);
  font-size: .5rem;
  line-height: 1.3;
  text-align: center;
  opacity: .42;
  text-shadow: none;
  transform: translateX(-50%);
}
.map-credit a { color: #000; text-decoration: none; }
.map-credit a:hover { text-decoration: underline; }
.location-map::before {
  position: absolute;
  inset: 0;
  z-index: 401;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,138,31,.2), rgba(255,255,255,.02) 42%, transparent 72%);
  mix-blend-mode: screen;
  backdrop-filter: blur(1px) saturate(85%);
  -webkit-backdrop-filter: blur(1px) saturate(85%);
}
.leaflet-container { background: #151515; font-family: inherit; }
.location-marker { border: 0; background: transparent; }
.location-marker-pulse {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #ffe2c4;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(255,138,31,.22), 0 0 26px rgba(255,138,31,.9);
  animation: locationPulse 2.1s ease-out infinite;
}
@keyframes locationPulse {
  0%, 100% { transform: scale(.84); opacity: .84; }
  50% { transform: scale(1.08); opacity: 1; }
}
.connection-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 0;
}
.connection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: center; }
.connection-field { display: grid; justify-items: center; gap: 5px; min-width: 0; }
.connection-field span {
  color: #777780;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.connection-field strong {
  overflow-wrap: anywhere;
  color: #b9b9c0;
  font-family: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.45;
}
/* Footer, privacy dialog, and accessibility affordances. */
footer {
  margin-top: 104px;
  padding: 34px 0 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #707078;
  font-size: .82rem;
}
.footer-links { display: inline-flex; align-items: center; gap: 18px; }
footer a,
.privacy-link { color: #8c8c94; text-decoration: none; }
footer a:hover,
.privacy-link:hover { color: var(--green-soft); }
body.privacy-open { overflow: hidden; }
.privacy-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.privacy-modal[hidden] { display: none; }
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 20px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.privacy-dialog {
  width: min(100%, 560px);
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 24px 26px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #b9b9c0;
  background: rgba(20,20,20,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  animation: privacyIn .55s cubic-bezier(.22,.75,.3,1) both;
}
@keyframes privacyIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.privacy-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.privacy-kicker {
  margin: 0 0 8px;
  color: var(--green-soft);
  font-family: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.privacy-dialog h2 {
  margin: 0;
  color: #e5e5e8;
  font-family: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.privacy-dialog > p,
.privacy-copy p {
  color: #9d9da5;
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.65;
}
.privacy-dialog > p { margin: 18px 0 0; }
.privacy-copy { display: grid; gap: 14px; margin-top: 18px; }
.privacy-copy p { margin: 0; }
.privacy-copy p strong { color: #c8c8ce; font-weight: 500; }
.privacy-copy a { color: var(--green-soft); }
.privacy-copy .privacy-date { margin-top: 2px; color: #686870; font-size: .65rem; }
.privacy-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #9b9ba3;
  background: transparent;
  font: 1.2rem/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: color .35s ease, border-color .35s ease;
}
.privacy-close:hover { color: var(--green-soft); border-color: var(--green-deep); }
.privacy-close:focus-visible,
.privacy-link:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
/* Scroll-based section reveals. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.5s cubic-bezier(.22,.75,.3,1), transform 1.5s cubic-bezier(.22,.75,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.project-card.reveal { transition: opacity 1.5s cubic-bezier(.22,.75,.3,1), transform 1.5s cubic-bezier(.22,.75,.3,1), border-color .7s ease, background .7s ease; }

/* Narrow-screen layout adjustments. */
@media (max-width: 620px) {
  .site-shell { width: min(calc(100% - 36px), var(--max)); }
  .hero { min-height: 100vh; min-height: 100svh; padding: 108px 0 66px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.45rem); }
  .hero h2 { margin-top: 16px; }
  .intro { font-size: 1rem; }
  .social-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .social-link { min-width: 0; padding-inline: 12px; }
  .page-nav {
    margin: 0 0 42px;
    padding: 4px 10px 4px 0;
    line-height: 1.7;
    gap: 2px;
    font-size: .70rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .page-nav::-webkit-scrollbar { display: none; }
  .page-nav > a,
  .page-nav > span { flex: 0 0 auto; }
  .page-nav .rain-control { position: static; gap: 2px; padding-right: 0; }
  .page-nav .rain-toggle { flex: 0 0 18px; }
  .section { padding-top: 92px; }
  .timeline-item, .resume-item { grid-template-columns: 1fr; gap: 9px; }
  .location-map { height: 280px; }
  .connection-details { padding: 22px 0 0; }
  .connection-grid { grid-template-columns: 1fr; gap: 22px; }
  .education-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .education-item .education-mark { justify-self: start; }
  .education-item .resume-content { min-width: 0; }
  .resume-head { flex-direction: column; gap: 8px; }
  .resume-location { text-align: left; }
  .item-head { grid-template-columns: 1fr; gap: 10px; }
  .certification-actions { justify-content: flex-start; }
  footer { flex-direction: column; }
  .footer-links { justify-content: space-between; }
  .privacy-modal { padding: 12px; }
  .privacy-dialog { max-height: 84vh; padding: 21px 19px 19px; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #particles, #rain, .ambient { display: none; }
  .reveal { opacity: 1; transform: none; }
}
