/* =================================================================
   MNATHANVZ — main stylesheet
   -----------------------------------------------------------------
   1. Design tokens (colors, fonts, spacing) — edit these first
   2. Base / reset
   3. Layout helpers
   4. Header + navigation
   5. Theme toggle
   6. Buttons + links
   7. Home: hero
   8. Home: about, tools, certifications
   9. Portfolio page
   10. Lightbox
   11. Contact page
   12. Footer
   13. Animations
   ================================================================= */


/* ---------- 1. Design tokens ---------- */
:root {
  /* Light theme */
  --bg: #eceef1;
  --surface: #f8f9fb;
  --ink: #1a1d22;
  --muted: #59616b;
  --line: #d2d6dc;
  --accent: #2b44e0;
  --accent-ink: #ffffff;
  --logo: #1a1d22;
  --shadow: 0 18px 40px -24px rgba(26, 29, 34, 0.35);

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 7.5vw, 6rem);

  /* Spacing + shape */
  --space-s: 0.75rem;
  --space-m: 1.5rem;
  --space-l: 3rem;
  --space-xl: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-s: 8px;
  --max-width: 1180px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #15181c;
  --surface: #1d2127;
  --ink: #e7eaee;
  --muted: #9aa3ad;
  --line: #2d333b;
  --accent: #8e9cff;
  --accent-ink: #15181c;
  --logo: #d4d4d4;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);

  color-scheme: dark;
}

/* Fallback if JavaScript is off: follow the system setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #15181c;
    --surface: #1d2127;
    --ink: #e7eaee;
    --muted: #9aa3ad;
    --line: #2d333b;
    --accent: #8e9cff;
    --accent-ink: #15181c;
    --logo: #d4d4d4;
    color-scheme: dark;
  }
}


/* ---------- 2. Base / reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  font-stretch: 125%;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


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

.section {
  padding-block: var(--space-xl);
}

.section-head {
  display: grid;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
  max-width: 60ch;
}

.section-head h2 {
  font-size: var(--step-3);
}

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


/* ---------- 4. Header + navigation ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.4s var(--ease);
}

/* Fills the phone notch area above the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand svg {
  width: 38px;
  height: auto;
  fill: var(--logo);
  transition: transform 0.5s var(--ease-out), fill 0.4s;
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.brand-name {
  font-weight: 700;
  font-stretch: 125%;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.nav ul {
  display: flex;
  gap: clamp(0.9rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  padding-block: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

/* Sliding underline */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }
}


/* ---------- 5. Theme toggle ---------- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.4s;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

/* Sun body. In dark mode it grows and a "bite" slides in to make a moon */
.theme-toggle .sun {
  fill: currentColor;
  transform-origin: center;
  transition: transform 0.6s var(--ease-out);
}

.theme-toggle .bite {
  transition: transform 0.6s var(--ease-out);
  transform: translate(10px, -10px);
}

.theme-toggle .rays {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: center;
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
}

[data-theme="dark"] .theme-toggle .sun {
  transform: scale(1.75);
}

[data-theme="dark"] .theme-toggle .bite {
  transform: translate(0, 0);
}

[data-theme="dark"] .theme-toggle .rays {
  transform: rotate(-90deg) scale(0.4);
  opacity: 0;
}

/* Circular reveal when switching themes (browsers with View Transitions) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}


/* ---------- 6. Buttons + links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.socials {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease-out);
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ---------- 7. Home: hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) var(--space-xl);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: var(--space-l);
}

.hero-text {
  display: grid;
  gap: var(--space-m);
}

.hero-greeting {
  font-size: var(--step-1);
  color: var(--muted);
}

.hero-name {
  font-size: var(--step-4);
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

.hero-role {
  font-size: var(--step-2);
  font-weight: 500;
  font-stretch: 110%;
  min-height: 1.4em;
}

.typed {
  color: var(--accent);
  font-weight: 700;
}

/* Blinking caret after the typed word */
.typed::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: -0.1em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}

.hero-summary {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.075rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
}

.hero-actions .socials {
  margin-left: 0.5rem;
}

.hero-mark {
  justify-self: center;
  width: min(100%, 420px);
}

.hero-mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-mark .mark-path {
  fill: var(--logo);
  stroke: var(--logo);
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.hero-mark .wordmark {
  fill: var(--logo);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.62em;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    order: -1;
    width: min(60%, 260px);
    justify-self: start;
  }
}


/* ---------- 8. Home: about, tools, certifications ---------- */
.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: var(--space-l);
  align-items: start;
}

.profile-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body {
  display: grid;
  gap: var(--space-m);
}

.about-body h2 {
  font-size: var(--step-3);
}

.about-body > p {
  color: var(--muted);
  max-width: 62ch;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.details div {
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.details dt {
  font-size: var(--step--1);
  color: var(--muted);
}

.details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.details dd a {
  text-decoration: none;
}

.details dd a:hover {
  color: var(--accent);
}

.status-available {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-available::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a35a;
  box-shadow: 0 0 0 0 rgba(34, 163, 90, 0.6);
  animation: pulse 2s infinite;
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 300px;
  }
}

@media (max-width: 460px) {
  .details {
    grid-template-columns: 1fr;
  }
}

/* Tools */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tools li {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.tools li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Certifications */
.certs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.certs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: padding 0.35s var(--ease-out), color 0.2s;
}

.certs a span {
  flex-shrink: 0;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
}

.certs a:hover {
  padding-left: 1rem;
  color: var(--accent);
}


/* ---------- 9. Portfolio page ---------- */
.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) var(--space-l);
}

.page-head h1 {
  font-size: var(--step-4);
}

.page-head p {
  margin-top: var(--space-m);
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.075rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-l);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.filter-btn .count {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.25s;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.filter-btn[aria-pressed="true"] .count {
  color: var(--bg);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-m);
  margin: 0;
  padding: 0 0 var(--space-xl);
  list-style: none;
}

.work-item {
  animation: item-in 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.work-card {
  display: grid;
  gap: 0.8rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.work-thumb img,
.work-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.work-card:hover .work-thumb img,
.work-card:hover .work-thumb video {
  transform: scale(1.05);
}

.work-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 17, 20, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.work-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.work-title,
.work-tools {
  display: block;
}

.work-title {
  font-weight: 700;
  line-height: 1.3;
}

.work-tools {
  margin-top: 0.15rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.empty-state {
  padding: var(--space-l) 0;
  color: var(--muted);
}


/* ---------- 10. Lightbox ---------- */
.lightbox {
  width: min(100% - 2rem, 980px);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
  background: rgba(10, 12, 15, 0.75);
  backdrop-filter: blur(4px);
}

.lightbox[open] {
  animation: lightbox-in 0.45s var(--ease-out);
}

.lightbox[open]::backdrop {
  animation: fade-in 0.3s ease;
}

.lightbox-media {
  display: grid;
  place-items: center;
  background: #0d0f12;
}

.lightbox-media img,
.lightbox-media video {
  max-height: 72vh;
  width: auto;
}

.lightbox-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 1.1rem 1.4rem;
}

.lightbox-info h2 {
  font-size: 1.15rem;
  font-stretch: 110%;
}

.lightbox-info p {
  font-size: var(--step--1);
  color: var(--muted);
}

.lightbox-actions {
  display: flex;
  gap: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 17, 20, 0.7);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}


/* ---------- 11. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-l);
  padding-bottom: var(--space-xl);
}

.contact-list {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list > li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list h2 {
  font-size: 1rem;
  font-stretch: 110%;
  font-weight: 700;
}

.contact-list p,
.contact-list a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: var(--space-m);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.form-status {
  min-height: 1.5em;
  font-size: var(--step--1);
  color: var(--muted);
}

.form-status.is-error {
  color: #d23b3b;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ---------- 12. Footer ---------- */
.site-footer {
  padding-block: var(--space-l);
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.footer-brand {
  display: grid;
  gap: 0.2rem;
}

.footer-brand strong {
  font-stretch: 125%;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
}

.footer-brand span,
.copyright {
  font-size: var(--step--1);
  color: var(--muted);
}


/* ---------- 13. Animations ---------- */

/* Hero: logo draws itself, then fills in */
.mark-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill-opacity: 0;
  animation:
    draw 1.6s var(--ease) 0.2s forwards,
    fill-in 0.7s ease 1.5s forwards;
}

.wordmark {
  opacity: 0;
  animation: wordmark-in 1s var(--ease-out) 1.7s forwards;
}

/* Hero text: staggered rise on load */
.load-in {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 150ms);
}

/* Sections: revealed once when they scroll into view (see main.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fill-in {
  to { fill-opacity: 1; }
}

@keyframes wordmark-in {
  from { opacity: 0; letter-spacing: 1.1em; }
  to { opacity: 1; letter-spacing: 0.62em; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes item-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes lightbox-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(34, 163, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 163, 90, 0); }
}

/* Respect people who turn animations off in their OS settings */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Keep back-to-back sections from doubling their spacing */
.section + .section:not(.about) {
  padding-top: 0;
}
