/* Isaac Provencal — portfolio */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --background: #f4f1eb;
  --surface: #fffcf8;
  --text-primary: #1a1916;
  --text-secondary: #5c574f;
  --border: #e3dbd1;
  --border-strong: #cfc6ba;
  --accent: #1b4f47;
  --accent-hover: #143e38;
  --accent-contrast: #f7f5f0;
  --accent-soft: #e7f0ee;
  --header: #f4f1eb;
  --shadow: 0 14px 34px rgba(26, 25, 22, 0.07);
  --code: #f7f4ee;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #10110f;
  --surface: #1a1b18;
  --text-primary: #f3f1ea;
  --text-secondary: #c8c2b8;
  --border: #2d2e2a;
  --border-strong: #4a4c46;
  --accent: #8fcec0;
  --accent-hover: #b7e4d8;
  --accent-contrast: #10211e;
  --accent-soft: #1c2b28;
  --header: #10110f;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  --code: #141513;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #10110f;
    --surface: #1a1b18;
    --text-primary: #f3f1ea;
    --text-secondary: #c8c2b8;
    --border: #2d2e2a;
    --border-strong: #4a4c46;
    --accent: #8fcec0;
    --accent-hover: #b7e4d8;
    --accent-contrast: #10211e;
    --accent-soft: #1c2b28;
    --header: #10110f;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    --code: #141513;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

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

h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

a { color: inherit; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus { outline: none; }

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

#main:focus { outline: none; }

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container { width: min(1120px, calc(100% - 2rem)); }
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--border);
}

.section-heading { max-width: 40rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.section-heading h2,
.contact h2,
.presentation-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}

.section-intro,
.hero-support,
.presentation-lead,
.contact-lead {
  color: var(--text-secondary);
}

.section-intro { margin: 0.85rem 0 0; max-width: 38rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

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

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

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

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--text-primary);
}

.btn--quiet {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-inline: 0.2rem;
}

.btn--quiet:hover { color: var(--accent); }

.btn svg { flex: 0 0 auto; }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  border-bottom: 1px solid transparent;
}

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

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.4rem;
}

.wordmark {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover { color: var(--accent); }

.site-nav { display: none; }

.nav-links {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.2rem 0.55rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.nav-social {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
}

.nav-social a {
  padding: 0.75rem 0;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-social a:hover { color: var(--accent); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--text-primary);
  background: var(--surface);
}

.icon-sun,
.nav-toggle .icon-close { display: none; }

html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .icon-moon { display: none; }
  html:not([data-theme="light"]) .icon-sun { display: block; }
}

.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1199px) {
  .header-tools .icon-link { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.25rem 1.25rem 1rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
    min-height: calc(100dvh - 4.4rem);
  }

  .nav-links { flex-direction: column; gap: 0; }

  .nav-links a {
    display: flex;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }

  body.nav-open { overflow: hidden; }
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .nav-social { display: none; }
}

/* Hero */

.hero { padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-primary);
}

.role {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
}

.lede {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  color: var(--text-primary);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.hero-support {
  margin: 1rem 0 0;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero-panel {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 0.7rem;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-code {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 12px;
  background: var(--code);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.panel-tags li,
.tag-list li,
.skill-card li {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--text-primary);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    gap: 3rem;
  }
}

/* About */

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-copy p {
  margin: 0;
  max-width: 40rem;
  color: var(--text-secondary);
}

.about-copy p + p { margin-top: 0.9rem; }

.stat-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-list li {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.stat-list strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
}

.stat-list span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.principle-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  padding: 1rem 1.05rem 1.1rem;
  border-top: 1px solid var(--border);
}

.principle-list h3,
.skill-card h3,
.project h3,
.timeline h3,
.presentation-strip h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.principle-list p,
.project p,
.timeline p,
.skill-card p,
.presentation-strip p {
  margin: 0.4rem 0 0;
  color: var(--text-secondary);
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.7fr);
    gap: 2rem;
    align-items: start;
  }

  .principle-list { grid-template-columns: 1fr 1fr; }
  .stat-list { grid-template-columns: 1fr; }
}

/* Projects */

.project-grid {
  display: grid;
  gap: 1rem;
}

.project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.project-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 9.5rem;
  padding: 1.25rem;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(165deg, var(--accent-soft), transparent 62%),
    var(--background);
  overflow: hidden;
}

.cover-mark {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.cover-caption {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-body { padding: 1.15rem 1.15rem 1.25rem; }

.project-sub {
  margin-top: 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.project-note { font-size: 0.95rem; }

.project h4 {
  margin: 1rem 0 0.4rem;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-list,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1rem;
  margin-top: 0;
}

.feature-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.1em;
}

.project-actions { margin-top: 1.1rem; }

@media (min-width: 760px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .project-grid { grid-template-columns: 1fr 1fr; }

  .project--feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  }

  .project--feature .project-cover {
    aspect-ratio: 1 / 1;
    min-height: 0;
    align-self: start;
  }
}

/* Skills */

.skill-grid {
  display: grid;
  gap: 0.75rem;
}

.skill-card {
  padding: 1.1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .skill-card--wide { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .skill-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skill-card--wide { grid-column: 1 / -1; }
}

/* Timeline */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 1.15rem 0 1.2rem;
  border-top: 1px solid var(--border);
}

.timeline li:last-child { border-bottom: 1px solid var(--border); }

.timeline .timeline-meta {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.timeline-org {
  margin-top: 0.15rem;
  color: var(--text-primary);
  font-weight: 600;
}

@media (min-width: 800px) {
  .timeline li {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: baseline;
  }

  .timeline .timeline-meta {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin: 0.3rem 0 0;
  }

  .timeline h3,
  .timeline-org,
  .timeline li > p:not(.timeline-meta),
  .timeline .text-link { grid-column: 2; }
}

/* Presentation */

.presentation .container { width: min(1180px, calc(100% - 2.5rem)); }

.presentation-hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.presentation-badge,
.presentation-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.presentation-badge {
  margin: 0 0 1rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.presentation-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
}

.presentation-facts {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.presentation-facts li {
  display: flex;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.presentation-fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.presentation-fact-copy { display: flex; flex-direction: column; min-width: 0; }

.presentation-fact-value {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.presentation-fact-label {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.presentation-actions { margin-top: 1.25rem; }

.presentation-caption {
  margin: 0.9rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.presentation-caption svg { color: var(--accent); flex: 0 0 auto; }

.presentation-frame {
  position: relative;
  width: min(100%, 28rem);
  margin-inline: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.presentation-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 576 / 1024;
  object-fit: contain;
  border-radius: 16px;
  background: #161815;
}

html[data-theme="light"] .presentation-video { color-scheme: light; }
html[data-theme="dark"] .presentation-video { color-scheme: dark; }

.presentation-play {
  position: absolute;
  inset: 0.5rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(16, 17, 15, 0.28);
  color: var(--accent-contrast);
}

.presentation-play svg {
  width: 4.25rem;
  height: 4.25rem;
  padding: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.presentation-frame.is-started .presentation-play { display: none; }

.presentation-video-title,
.presentation-video-note {
  margin: 0.75rem 0 0;
  text-align: center;
}

.presentation-video-title {
  color: var(--text-primary);
  font-weight: 600;
}

.presentation-video-note {
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.presentation-strip {
  display: grid;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.presentation-strip li { padding: 1.15rem 1.2rem 1.25rem; }
.presentation-strip li + li { border-top: 1px solid var(--border); }

.presentation-strip h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .presentation-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .presentation-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .presentation-facts { grid-template-columns: 1fr; }

  .presentation-frame {
    width: min(100%, 37.5rem);
    margin-inline: 0 0 auto;
  }

  .presentation-video-title,
  .presentation-video-note {
    text-align: left;
    padding-left: 0.3rem;
  }

  .presentation-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .presentation-strip li + li { border-top: 0; border-left: 1px solid var(--border); }
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.contact-lead {
  margin: 0.7rem 0 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.contact-label {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-value {
  display: inline-block;
  margin: 0.3rem 0 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list li:not(:first-child) .contact-value { margin-bottom: 0; }

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

/* Footer */

.site-footer {
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-grid {
  display: grid;
  gap: 1rem 1.5rem;
}

.footer-name {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer-role,
.footer-copy {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-social a {
  color: var(--text-primary);
  font-size: 0.92rem;
  text-decoration: none;
}

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

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-copy { grid-column: 1 / -1; }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero .rise {
    animation: rise 0.6s ease both;
  }

  .hero .rise:nth-child(2) { animation-delay: 0.04s; }
  .hero .rise:nth-child(3) { animation-delay: 0.08s; }
  .hero .rise:nth-child(4) { animation-delay: 0.12s; }
  .hero .rise:nth-child(5) { animation-delay: 0.16s; }
  .hero .rise:nth-child(6) { animation-delay: 0.2s; }

  .project,
  .skill-card,
  .presentation-facts li,
  .presentation-frame,
  .btn,
  .icon-btn {
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
  }

  .project:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
  }

  .project:hover .cover-mark { transform: scale(1.04); }

  .cover-mark { transition: transform 0.35s ease; }

  .skill-card:hover,
  .presentation-facts li:hover { border-color: var(--border-strong); }

  .presentation-frame:hover { transform: translateY(-3px); }
}

.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(10px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}
