/* ============================================
   Kuol Akech Riak — Portfolio
   ============================================ */

:root {
  /* palette */
  --bg: #ffffff;
  --bg-alt: #fdf3ec;
  --bg-card: #ffffff;
  --bg-dark: #1a0f0a;
  --bg-dark-alt: #2b1810;

  --green: #1a1210;
  --green-soft: #d2571e;
  --orange: #d2571e;
  --orange-soft: #f2a65a;

  --text: #21140d;
  --text-muted: #7a6155;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #e8c9b3;

  --border: #f0ddd0;
  --border-soft: #f8ece2;

  /* accent gradient (banner bands) */
  --gradient-banner: linear-gradient(115deg, #f2a65a 0%, #d2571e 48%, #4a1d0f 100%);

  /* type */
  --font-serif: 'Poppins', system-ui, sans-serif;
  --font-mono: 'Poppins', system-ui, sans-serif;
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;

  /* layout */
  --wrap: 1180px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(10, 20, 22, 0.1);
  --shadow-lift: 0 16px 40px rgba(10, 20, 22, 0.18);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- page loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.page-loader-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 8px rgba(210, 87, 30, 0.18);
  animation: page-loader-pulse 1.1s ease-in-out infinite;
}
@keyframes page-loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  background: var(--bg);
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--green); margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--text-on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  width: 100%;
  background: var(--bg-dark);
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-on-dark);
  text-decoration: none;
  padding-left: 0.35rem;
}
.logo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}
.logo span { color: var(--orange-soft); font-weight: 500; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--text-on-dark-muted);
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.1);
}
.nav-link.is-active {
  color: var(--bg-dark);
  background: var(--orange);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: min(680px, 88vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg--parallax {
  background-image: url("../assets/screenshots/poetry-book-presentation.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: saturate(1.1) contrast(1.05) brightness(1.22);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 65% at center, rgba(4, 10, 12, 0.4) 0%, transparent 72%),
    linear-gradient(
      180deg,
      rgba(6, 12, 14, 0.12) 0%,
      rgba(6, 12, 14, 0.06) 45%,
      rgba(6, 12, 14, 0.32) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.social-icon:hover { transform: translateY(-2px); }
.social-icon svg { width: 19px; height: 19px; }
.social-icon--linkedin { background: #0a66c2; }
.social-icon--facebook { background: #1877f2; }
.social-icon--instagram { background: #c2196b; }
.social-icon--email { background: #d64530; }
.social-icon--github { background: #24292f; }

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--orange-soft);
  margin: 0 0 1.25rem;
}

.hero-quote {
  margin: 0 0 1.75rem;
  max-width: 50ch;
}
.hero-quote p {
  font-style: italic;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- about hero / quote ---------- */
.about-hero {
  position: relative;
  height: min(680px, 88vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-dark);
  background-size: 145% auto;
  background-position: 8% 65%;
  background-repeat: no-repeat;
  filter: saturate(1.05) brightness(0.95);
}
.about-hero-bg--parallax {
  background-attachment: fixed;
}
.about-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 14, 0.55) 0%, rgba(6, 12, 14, 0.35) 50%, rgba(6, 12, 14, 0.6) 100%);
}
.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2rem 2.5rem;
}
.about-hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
}
.about-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-dark-muted);
  margin: 0 0 0.6rem;
}
.about-hero-quote {
  margin: 0;
}
.about-hero-quote p {
  font-style: italic;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.5;
  margin: 0 0 0.85rem;
}
.about-hero-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--orange-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  color: var(--bg-dark);
  font-weight: 600;
}
.btn-primary:hover { background: var(--orange-soft); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--text-on-dark);
}

/* ---------- section headings (gradient banner) ---------- */
section > .wrap > h2,
.services > .wrap > h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  background: var(--gradient-banner);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lift);
}

.section-no {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  font-weight: 600;
}

.about, .work, .experience, .services { padding-block: clamp(3rem, 7vw, 5.5rem); }
.about { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- home-page teaser headings (plain, centered — no gradient banner) ---------- */
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.section-intro p {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
  font-size: 1.05rem;
  margin: 0;
}
main section[id] {
  scroll-margin-top: 88px;
}

/* ---------- placeholders ---------- */
.shot-placeholder {
  border: 1.5px dashed var(--orange);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-alt) 0 10px,
      var(--bg-card) 10px 20px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.1rem;
}

/* ---------- real photos ---------- */
.photo-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(41, 40, 31, 0.08);
  border: 1px solid var(--border-soft);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame--tall {
  display: flex;
  flex-direction: column;
}
.photo-frame--tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
}
.photo-frame--tall figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 0;
  background: var(--bg-card);
}

.shot-frame {
  aspect-ratio: 16 / 10;
  margin: 0 0 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-body p {
  font-size: 1.02rem;
  max-width: 60ch;
  text-align: justify;
  text-justify: inter-word;
}

.about-facts {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.fact {
  border-left: 2px solid var(--orange);
  padding-left: 0.9rem;
}
.fact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin: 0 0 0.3rem;
}
.fact-value {
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

/* ---------- about: education & contact subsections ---------- */
.about-education, .about-contact {
  padding-block: clamp(2rem, 4vw, 3rem);
}
.about-subsection-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.education-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.education-logo {
  width: 72px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--orange);
}
.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.education-head h3 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.education-location {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0;
}
.education-program {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}
.education-degree {
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.education-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.education-meta svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.education-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange);
  background: rgba(210, 87, 30, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(3.5rem, 9vw, 7rem);
  align-items: start;
}

.contact-profile { text-align: left; }
.contact-photo {
  width: 180px;
  height: 180px;
  margin: 0 0 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 6px rgba(210, 87, 30, 0.12);
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.contact-tagline {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 1.1rem;
}
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem;
}
.contact-socials .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.contact-socials .social-icon svg { width: 17px; height: 17px; }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}
.contact-value {
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.contact-value a { color: var(--text); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ---------- approach ---------- */
.approach { background: var(--bg-alt); padding-block: clamp(3rem, 7vw, 5.5rem); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.approach-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
}
.approach-no {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.approach-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.approach-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
}

/* ---------- welcome (home teaser) ---------- */
.welcome {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.welcome-badge {
  display: inline-flex;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--orange);
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.welcome-heading {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.welcome-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(7.2rem, 18vw, 21.2rem);
  line-height: 1;
  color: var(--orange);
  margin: 0 0 0.5rem;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--orange);
  margin: 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  text-align: left;
}
.welcome-text h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 1rem;
}
.welcome-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1.75rem;
  text-align: justify;
  text-justify: inter-word;
}

.credential-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.credential-chip svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}
.credential-chip:hover {
  border-color: var(--orange);
  background: rgba(210, 87, 30, 0.06);
}
.welcome-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
}
.welcome-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* ---------- skills ---------- */
.skills { padding-block: clamp(3rem, 7vw, 5.5rem); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-soft);
}

.skill-no {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--border);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 1px 3px rgba(10, 20, 22, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.skill-icon svg { width: 24px; height: 24px; }

.skill-icon--db      { background: #4F46E5; }
.skill-icon--a11y     { background: #0D9488; }
.skill-icon--design   { background: #7C3AED; }
.skill-icon--brand    { background: #DB2777; }
.skill-icon--pitch    { background: #16A34A; }
.skill-icon--present  { background: #EA580C; }
.skill-icon--essays   { background: #D97706; }
.skill-icon--rec      { background: #DC2626; }
.skill-icon--grant    { background: #0891B2; }
.skill-icon--comms    { background: #8B5CF6; }
.skill-icon--mentor   { background: #059669; }

.skill-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(10, 20, 22, 0.15);
}
.skill-logo svg { width: 100%; height: 100%; }

.skill-icon--rotate {
  background: #fff;
  border: 1px solid var(--border-soft);
}
.skill-icon--rotate .rotate-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 11px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.skill-icon--rotate .rotate-logo.is-active { opacity: 1; }

.skill-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  margin: 0;
}

/* ---------- skill icons: swipe on/off loop ---------- */
@keyframes skill-icon-swipe {
  0%, 40%  { opacity: 1; transform: translateX(0); }
  50%      { opacity: 0; transform: translateX(-14px); }
  60%, 100% { opacity: 1; transform: translateX(0); }
}
.skill-icon:not(.skill-icon--rotate),
.skill-logo {
  animation: skill-icon-swipe 4s ease-in-out infinite;
}
.skills-grid .skill-card:nth-child(3n+1) .skill-icon:not(.skill-icon--rotate),
.skills-grid .skill-card:nth-child(3n+1) .skill-logo {
  animation-duration: 3s;
  animation-delay: 0s;
}
.skills-grid .skill-card:nth-child(3n+2) .skill-icon:not(.skill-icon--rotate),
.skills-grid .skill-card:nth-child(3n+2) .skill-logo {
  animation-duration: 4s;
  animation-delay: 1.3s;
}
.skills-grid .skill-card:nth-child(3n) .skill-icon:not(.skill-icon--rotate),
.skills-grid .skill-card:nth-child(3n) .skill-logo {
  animation-duration: 5s;
  animation-delay: 2.6s;
}

/* ---------- how i work ---------- */
.method {
  background: var(--bg);
  color: var(--text);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.method-card h3 {
  color: var(--green);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.method-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
}

/* ---------- work / filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.is-active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(210, 87, 30, 0.08);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.work-card {
  background: var(--bg-card);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(41, 40, 31, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(41, 40, 31, 0.1);
}
.work-card.is-hidden { display: none; }

.work-card--text { justify-content: flex-start; }

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin: 0 0 0.4rem;
}
.work-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.work-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  text-align: justify;
  text-justify: inter-word;
}
.work-card .btn { margin-top: auto; align-self: flex-start; }

.work-empty {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}

/* ---------- digital resume / CV ---------- */
.resume-card {
  grid-column: 1 / -1;
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
}

.resume-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.resume-header h3 {
  font-size: 1.6rem;
  color: var(--orange);
  margin: 0 0 0.3rem;
}
.resume-card .resume-role-tagline {
  color: var(--green);
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 0.5rem;
}
.resume-card .resume-contact {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.resume-contact a {
  color: var(--text);
  text-decoration: none;
}
.resume-contact a:hover { text-decoration: underline; }
.resume-header .btn { flex-shrink: 0; margin-top: 0.25rem; }

.resume-section { margin-bottom: 2rem; }
.resume-section:last-child { margin-bottom: 0; }
.resume-section h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-soft);
}
.resume-card .resume-section > p {
  color: var(--text);
  margin: 0;
}

.resume-entry { margin-bottom: 1.25rem; }
.resume-entry:last-child { margin-bottom: 0; }
.resume-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
}
.resume-card .resume-entry-title {
  font-weight: 600;
  color: var(--green);
  margin: 0;
}
.resume-card .resume-entry-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}
.resume-card .resume-entry-role {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0.15rem 0 0.5rem;
}
.resume-card .resume-entry > p:not(.resume-entry-role) {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

.resume-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.resume-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.2rem;
  color: var(--text);
  font-size: 0.95rem;
}
.resume-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--orange);
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.resume-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: rgba(210, 87, 30, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
}

.resume-skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.resume-card .resume-skill-group-title {
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.resume-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.resume-language {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.resume-card .resume-language-name {
  font-weight: 600;
  color: var(--green);
}
.resume-language-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

/* ---------- experience profile card ---------- */
.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.profile-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  min-height: 320px;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(0deg, rgba(8, 16, 18, 0.88) 0%, transparent 100%);
}
.profile-photo-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin: 0 0 0.3rem;
}
.profile-photo-name {
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.profile-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.6rem;
}
.profile-body h3 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.profile-body > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 56ch;
}

.profile-sublabel {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.profile-skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.profile-skills li {
  background: rgba(210, 87, 30, 0.08);
  border: 1px solid rgba(210, 87, 30, 0.3);
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.profile-open-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.profile-open-list li {
  color: var(--text);
  font-size: 0.98rem;
}

/* ---------- experience timeline ---------- */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.timeline-entry {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.timeline-logo {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-alt);
  flex-shrink: 0;
}
.timeline-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-content { flex: 1 1 auto; min-width: 0; }

.timeline-content h3 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}

.timeline-role {
  color: var(--orange);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.timeline-content h4 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.timeline-content > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.timeline-achievements {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-achievements li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.timeline-achievements li:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-achievements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--orange);
}

/* ---------- programs ---------- */
.programs {
  background: var(--bg);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  color: var(--text);
}

.program-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.program-chip {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.2rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.program-chip:hover {
  background: var(--orange);
  color: var(--bg-dark);
  border-color: var(--orange);
}

.programs-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.program-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 88px;
}

.program-photo {
  flex: 0 0 300px;
  width: 300px;
  margin: 0.5rem 0 0;
  transform: rotate(-2deg);
}
.program-photo .shot-placeholder {
  aspect-ratio: 3 / 2;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.program-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--border-soft);
}
.program-photo figcaption {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 0.25rem 0;
}

.program-content { flex: 1 1 320px; min-width: 280px; }

.program-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.program-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}
.program-link {
  color: var(--text-muted);
  display: inline-flex;
  flex-shrink: 0;
}
.program-link svg { width: 16px; height: 16px; }
.program-link:hover { color: var(--orange); }

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.program-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.program-meta svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }

.program-content p {
  color: var(--text);
  margin: 0 0 1rem;
  text-align: justify;
  text-justify: inter-word;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.program-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  background: rgba(210, 87, 30, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
}

.program-quote {
  border-left: 3px solid var(--orange);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 0;
  font-style: italic;
  color: var(--text);
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.service-no {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}
.service-card ul {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-card li {
  list-style: none;
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.service-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--orange);
}
.service-proof {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.9rem;
}

/* ---------- footer ---------- */
.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;
}

.site-footer {
  background: var(--bg-dark);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-tagline {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 34ch;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 320px;
}
.footer-form input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-on-dark);
  background: var(--bg-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.footer-form input::placeholder { color: var(--text-on-dark-muted); }
.footer-form input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.footer-form-btn {
  justify-content: center;
  margin-top: 0.2rem;
}
.footer-form-note {
  color: var(--orange-soft);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.3rem 0 0;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 1.1rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding-block: 0.4rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text-on-dark); }

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-social-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-dark-alt);
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social-icon svg { width: 15px; height: 15px; }
.footer-social-link:hover .footer-social-icon {
  background: var(--orange);
  color: var(--bg-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}
.footer-bottom a {
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--text-on-dark); }

/* ---------- page transition: incoming page scrolls up into place ---------- */
/* Only the hero's text/foreground layer animates in — the background
   photo itself never shifts, so switching pages doesn't jostle it. */
.hero-content,
.about-hero-content {
  animation: panel-scroll-up 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes panel-scroll-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content, .about-hero-content { animation: none; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  transform: translateX(-40px);
}
.reveal--left.is-visible {
  transform: translateX(0);
}

/* wipe + appear: used on skill cards — a clipped panel sweeps open
   left-to-right while the card fades in, staggered per card. */
.skill-card.reveal {
  opacity: 0;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.45s ease, clip-path 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-card.reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}
.skills-grid .skill-card:nth-child(1)  { transition-delay: 0ms; }
.skills-grid .skill-card:nth-child(2)  { transition-delay: 40ms; }
.skills-grid .skill-card:nth-child(3)  { transition-delay: 80ms; }
.skills-grid .skill-card:nth-child(4)  { transition-delay: 120ms; }
.skills-grid .skill-card:nth-child(5)  { transition-delay: 160ms; }
.skills-grid .skill-card:nth-child(6)  { transition-delay: 200ms; }
.skills-grid .skill-card:nth-child(7)  { transition-delay: 240ms; }
.skills-grid .skill-card:nth-child(8)  { transition-delay: 280ms; }
.skills-grid .skill-card:nth-child(9)  { transition-delay: 320ms; }
.skills-grid .skill-card:nth-child(10) { transition-delay: 360ms; }
.skills-grid .skill-card:nth-child(11) { transition-delay: 400ms; }
.skills-grid .skill-card:nth-child(12) { transition-delay: 440ms; }
.skills-grid .skill-card:nth-child(13) { transition-delay: 480ms; }
.skills-grid .skill-card:nth-child(14) { transition-delay: 520ms; }
.skills-grid .skill-card:nth-child(15) { transition-delay: 560ms; }
.skills-grid .skill-card:nth-child(16) { transition-delay: 600ms; }
.skills-grid .skill-card:nth-child(17) { transition-delay: 640ms; }
.skills-grid .skill-card:nth-child(18) { transition-delay: 680ms; }
.skills-grid .skill-card:nth-child(19) { transition-delay: 720ms; }
.skills-grid .skill-card:nth-child(20) { transition-delay: 760ms; }
@media (prefers-reduced-motion: reduce) {
  .skill-card.reveal { clip-path: none; transition: opacity 0.3s ease; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .profile-card { grid-template-columns: 1fr; }
  .profile-photo { min-height: 260px; }

  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-photo { max-width: 360px; margin: 0 auto; }

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

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-facts { order: 3; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* background-attachment: fixed is unreliable on mobile browsers (especially
     iOS Safari) and can make the whole background fail to paint — fall back
     to normal scrolling backgrounds below this breakpoint. */
  .hero-bg--parallax,
  .about-hero-bg--parallax {
    background-attachment: scroll;
  }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.4rem 1rem;
    gap: 0.25rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .nav-link {
    color: var(--text);
    text-align: left;
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
  }
  .nav-link:hover { background: var(--bg-alt); color: var(--text); }
  .nav-link.is-active { color: var(--bg-dark); }

  .hero { height: min(560px, 92vh); }
  .hero-content { padding: 1.5rem 1.25rem; }
  .hero-social { flex-wrap: wrap; justify-content: center; }

  .timeline-entry { flex-direction: column; padding: 1.5rem; }
  .timeline-logo { margin: 0 auto; }
  .timeline-content { text-align: center; }
  .timeline-meta, .timeline-role { justify-content: center; }

  .work-grid { grid-template-columns: 1fr; }
  .program-photo { flex-basis: 100%; width: 100%; max-width: 320px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
