:root {
  --color-bg: #f2f0e9;
  --color-surface: #faf8f3;
  --color-slab-alt: #e8e4da;
  --color-heading: #2f3e56;
  --color-text: #5a4634;
  --color-text-muted: #7a6d62;
  --color-border: color-mix(in srgb, var(--color-heading) 12%, transparent);
  --color-header-bg: color-mix(in srgb, var(--color-bg) 92%, transparent);
  --accent: #d6a5a4;
  --accent-hover: #be9291;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  --footer-text: color-mix(in srgb, var(--color-surface) 82%, transparent);
  --footer-text-muted: color-mix(in srgb, var(--color-surface) 62%, transparent);
  --footer-divider: color-mix(in srgb, var(--color-surface) 10%, transparent);
  --folder-face-highlight: color-mix(in srgb, var(--color-surface) 45%, transparent);
  --folder-face-highlight-soft: color-mix(in srgb, var(--color-surface) 35%, transparent);
  --folder-border: color-mix(in srgb, var(--color-heading) 15%, transparent);
  --folder-dash: color-mix(in srgb, var(--color-text) 22%, transparent);
  --folder-shadow: color-mix(in srgb, var(--color-heading) 9%, transparent);
  --folder-shadow-strong: color-mix(in srgb, var(--color-heading) 13%, transparent);
  --folder-face-1: color-mix(in srgb, var(--color-bg) 88%, var(--color-heading) 12%);
  --folder-tab-1: color-mix(in srgb, var(--color-slab-alt) 82%, var(--color-heading) 18%);
  --folder-face-2: color-mix(in srgb, var(--color-surface) 72%, var(--accent) 28%);
  --folder-tab-2: color-mix(in srgb, var(--color-surface) 52%, var(--accent) 48%);
  --folder-face-3: color-mix(in srgb, var(--color-slab-alt) 88%, var(--color-text) 12%);
  --folder-tab-3: color-mix(in srgb, var(--color-slab-alt) 68%, var(--color-text) 32%);
  --folder-face-4: color-mix(in srgb, var(--color-surface) 62%, var(--color-heading) 38%);
  --folder-tab-4: color-mix(in srgb, var(--color-heading) 24%, var(--color-slab-alt) 76%);
  --folder-face-5: color-mix(in srgb, var(--color-slab-alt) 56%, var(--accent) 44%);
  --folder-tab-5: color-mix(in srgb, var(--accent-hover) 36%, var(--color-slab-alt) 64%);
  --folder-section-glow: color-mix(in srgb, var(--color-text) 7%, transparent);
  --shadow-sm: 0 1px 0 color-mix(in srgb, var(--color-heading) 6%, transparent);
  --shadow-md: 0 12px 40px color-mix(in srgb, var(--color-heading) 7%, transparent);
  --font-sans: "Montserrat", sans-serif;
  --font-signature: "Brittany Signature", "Cedarville Cursive", "Montserrat", sans-serif;
  --section-spacing: clamp(3rem, 8vw, 5rem);
  --section-contact-padding: clamp(0.55rem, 1.5vw, 0.8rem);
  --section-heading-gap: clamp(1rem, 2.25vw, 1.5rem);
  --hero-padding-block: clamp(4rem, 14vw, 7.5rem);
  --site-header-px: 60px;
  --max-content: 68rem;
  --radius: 3px;
  --text-body: 1.078125rem;
  --text-ui: 0.9375rem;
  --content-narrow: 42rem;
  --content-read: 44rem;
  --card-padding: clamp(1.65rem, 3vw, 2rem);
  --grid-gap-cards: 1.25rem;
  --ease-out-elegant: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-folder: cubic-bezier(0.34, 1.2, 0.64, 1);
  --transition-link: color 0.2s ease, border-color 0.2s ease, text-decoration-color 0.2s ease;
  --transition-button: color 0.2s ease, border-color 0.2s ease;
  --transition-card: box-shadow 0.28s var(--ease-out-elegant), border-color 0.28s ease;
  --shadow-card-hover: 0 12px 36px color-mix(in srgb, var(--color-heading) 10%, transparent);
}

html.force-signature-fallback {
  --font-signature: "Cedarville Cursive", "Montserrat", sans-serif;
}

.hero-name,
.thank-you-text,
.envelope-signoff-name {
  font-style: italic;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  background-color: var(--color-bg);
  overflow-x: clip;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.78;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: var(--color-bg);
}

main {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  z-index: 0;
  padding-top: var(--site-header-px);
  transition: padding-top 0.28s var(--ease-out-elegant);
}

body.header-bar-concealed main {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  main {
    transition: none;
  }

  .info-card,
  .employment-card {
    transition: none;
  }

  .info-card:hover,
  .employment-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-border);
  }
}

h1,
h2,
h3 {
  color: var(--color-heading);
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 110;
  padding: 0.75rem 1rem;
  background: var(--color-heading);
  color: var(--color-surface);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

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

a {
  color: var(--color-heading);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container.narrow {
  max-width: var(--content-narrow);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.28s var(--ease-out-elegant);
}

body.header-bar-concealed .site-header {
  transform: translateY(-100%);
  pointer-events: none;
}

.header-inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 0.65rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 961px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-nav .nav-list--compact {
    justify-content: flex-end;
    max-width: none;
    gap: 0.5rem 1.25rem;
  }

  .site-nav .nav-list--compact li + li::before {
    content: "\00a0|\00a0";
    color: var(--color-heading);
    font-weight: 400;
    font-size: 0.875rem;
    opacity: 0.35;
    margin-right: 1.1rem;
    pointer-events: none;
    user-select: none;
  }
}

.logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-body);
  letter-spacing: 0.06em;
  color: var(--color-heading);
  text-decoration: none;
  transition: var(--transition-link);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 1px;
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  justify-content: flex-end;
  max-width: none;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-link);
  border-radius: 2px;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  color: var(--color-heading);
}

@media (max-width: 640px) {
  .hero {
    padding-block: clamp(4rem, 12vw, 6rem);
  }

  .hero-content {
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .site-header {
    z-index: 100;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 70vh;
    overflow-y: auto;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 0.5rem;
    gap: 0.5rem;
  }

  .site-nav a {
    font-size: var(--text-ui);
  }

  .envelope-hint,
  .folder-stack-hint {
    font-size: var(--text-ui);
  }
}

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

:where(
  #home,
  #personal,
  #academic-credentials,
  #academic-work-experience,
  #professional-summary,
  #skills,
  #resume-cover-letter,
  h2[id]
) {
  scroll-margin-top: var(--site-header-px);
}

#home {
  scroll-margin-top: calc(var(--site-header-px) + 1px);
}

#professional-summary.section {
  padding-bottom: clamp(0.85rem, 2.25vw, 1.35rem);
}

.personal-mega-lead .subheading {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.personal-slab {
  padding-block: var(--section-spacing);
  background: var(--color-surface);
}

.personal-slab--alt {
  background: var(--color-slab-alt);
}

.subheading {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.35rem;
  color: var(--color-text-muted);
}

.skills-resume-follow {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.sample-meta {
  margin: -0.25rem 0 0.5rem;
  font-size: var(--text-ui);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.employment-stack {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap-cards);
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.employment-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-card);
}

.employment-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--color-border));
}

.employment-card-header h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.employment-meta {
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-text-muted);
}

.employment-list {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
}

.employment-list li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.employment-list li:last-child {
  margin-bottom: 0;
}

.section-alt {
  background: var(--color-slab-alt);
}

.section-header {
  margin-bottom: var(--section-heading-gap);
}

.section-header--tight {
  margin-bottom: clamp(0.65rem, 1.5vw, 1rem);
}

.section-header h2 {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.88rem + 0.45vw, 1.125rem);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.11em;
  margin: 0;
  color: var(--color-heading);
  line-height: 1.35;
}

.hero {
  padding-block: var(--hero-padding-block);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  min-height: calc(100vh - var(--site-header-px, 60px));
  min-height: calc(100dvh - var(--site-header-px, 60px));
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, min(24rem, 34vw));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  width: 100%;
  min-width: 0;
}

.hero-content {
  container-type: inline-size;
  text-align: left;
  max-width: 40rem;
  margin-inline: 0;
  margin-left: clamp(0rem, 3vw, 2rem);
}

.hero-portrait {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 22rem;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 819 / 1024;
  box-shadow: var(--shadow-md);
}

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

  .hero-content {
    margin-left: 0;
    max-width: none;
    text-align: center;
  }

  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-portrait {
    justify-self: center;
    max-width: min(17.5rem, 78vw);
  }
}

.hero-name {
  font-family: var(--font-signature);
  font-size: clamp(3.25rem, 10vw, 5rem);
  font-weight: 400;
  margin: 0 0 clamp(0.85rem, 0.55rem + 1.75vw, 1.25rem);
  letter-spacing: 0.01em;
  line-height: 1.22;
  color: var(--color-heading);
}

html.signature-brittany-missing .hero-name,
html.force-signature-fallback .hero-name {
  white-space: nowrap;
  font-size: clamp(1.45rem, 10vw, 5rem);
}

@supports (font-size: 1cqw) {
  html.signature-brittany-missing .hero-name,
  html.force-signature-fallback .hero-name {
    font-size: clamp(1.45rem, 0.85rem + 8.25cqw, 5rem);
  }
}

.hero-title {
  font-size: clamp(var(--text-body), 2vw, 1.15rem);
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.hero-intro {
  margin: 0 0 2.5rem;
  color: var(--color-text);
  text-align: left;
  max-width: 32rem;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.85rem;
  align-items: center;
  margin-bottom: var(--section-heading-gap);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
  font-size: var(--text-ui);
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  border-radius: 0;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid var(--accent);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-button);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-muted);
  border-bottom-color: var(--accent);
}

.btn-outline:hover {
  background: transparent;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.hero-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .hero-social {
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: var(--transition-link);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0 2.5rem;
  margin: 0;
}

.data-item {
  background: transparent;
  padding: 0.75rem 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
}

.data-item dt {
  font-size: var(--text-ui);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 0.35rem;
}

.data-item dd {
  margin: 0;
  font-weight: 500;
  color: var(--color-text);
  word-break: break-word;
  line-height: 1.65;
  font-size: var(--text-body);
}

.prose {
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.thank-you-closing {
  width: 100%;
  max-width: 100%;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(0.5rem, 1.75vw, 1rem);
}

.thank-you-frame {
  position: relative;
  width: min(440px, 100%);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 686 / 534;
}

.thank-you-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.97;
}

.thank-you-text {
  position: absolute;
  left: 46%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: min(92%, 18rem);
  margin: 0;
  padding-right: 1%;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-signature);
  font-size: clamp(1.2rem, 4.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-heading);
  letter-spacing: 0.01em;
  pointer-events: none;
}

.thank-you-line2 {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .thank-you-text {
    font-size: clamp(1rem, 4.2vw, 1.5rem);
  }
}

.envelope-hitbox {
  max-width: min(33rem, 100%);
  margin-inline: auto;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}

.envelope-hitbox:focus:not(:focus-visible) {
  outline: none;
}

.envelope-hitbox:focus-visible .envelope-layers {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.envelope-layers {
  position: relative;
  width: 100%;
  aspect-ratio: 920 / 1024;
  border-radius: 4px;
  overflow: visible;
  background: transparent;
}

.envelope-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
  transform: translateZ(0);
}

.envelope-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.envelope-layer--closed {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.envelope-layer--open {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) {
  .envelope-hitbox:hover .envelope-layer--closed,
  .envelope-hitbox:focus-within .envelope-layer--closed {
    opacity: 0;
    pointer-events: none;
  }

  .envelope-hitbox:hover .envelope-layer--open,
  .envelope-hitbox:focus-within .envelope-layer--open {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-layer {
    transition: none;
  }

  .envelope-streamers-img {
    transition: none;
  }
}

.envelope-img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
}

.envelope-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.envelope-streamers-img {
  position: absolute;
  top: 50%;
  width: clamp(5.625rem, 32%, 18rem);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scaleY(0.92);
  transform-origin: center center;
  transition:
    opacity 0.38s ease,
    transform 0.45s cubic-bezier(0.33, 1.4, 0.52, 1);
}

.envelope-streamers-img--left {
  left: clamp(-18%, -7.5rem, -0.75rem);
}

.envelope-streamers-img--right {
  right: clamp(-18%, -7.5rem, -0.75rem);
}

.envelope-hitbox:hover .envelope-streamers-img,
.envelope-hitbox:focus-within .envelope-streamers-img {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.envelope-paper-ui {
  position: absolute;
  left: 50%;
  right: auto;
  top: 10%;
  bottom: 46%;
  width: 56%;
  max-width: 22rem;
  transform: translate3d(-50%, 0, 0);
  transform-origin: center top;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 9% 5% 5%;
  gap: 0.7rem;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

@media (hover: hover) {
  .envelope-hitbox:hover .envelope-paper-ui,
  .envelope-hitbox:focus-within .envelope-paper-ui {
    pointer-events: auto;
  }
}

.envelope-paper-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 13.5rem;
  margin-inline: auto;
}

.envelope-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.envelope-signoff {
  margin: auto 0 0;
  align-self: flex-start;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--color-text);
  max-width: 95%;
}

.envelope-signoff-name {
  display: inline-block;
  margin-top: 0.2rem;
  font-family: var(--font-signature);
  font-size: clamp(1rem, 3.5vw, 1.28rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.envelope-hint {
  margin: 1.25rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.envelope-hint--touch {
  display: none;
}

@media (hover: none) {
  .envelope-hint--hover {
    display: none;
  }

  .envelope-hint--touch {
    display: inline;
  }

  .envelope-hitbox.is-open .envelope-layer--closed {
    opacity: 0;
    pointer-events: none;
  }

  .envelope-hitbox.is-open .envelope-layer--open {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }

  .envelope-hitbox.is-open .envelope-streamers-img {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }

  .envelope-hitbox.is-open .envelope-paper-ui {
    pointer-events: auto;
  }
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--grid-gap-cards);
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-card);
}

.info-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--color-border));
}

.info-card h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.card-meta {
  font-size: var(--text-ui);
  color: var(--color-text-muted);
  margin: 0 0 0.65rem;
}

.info-card p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.68;
}

.info-card p + p {
  margin-top: 0.45rem;
}

.skills-block .skills-group + .skills-group {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.skills-block .subheading {
  margin-bottom: 1rem;
}

.skills-block-list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--color-text);
  font-size: var(--text-body);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.skills-block-list li {
  margin-bottom: 0.5rem;
}

.skills-block-list li:last-child {
  margin-bottom: 0;
}

#academic-work-experience {
  background-color: var(--color-surface);
  background-image: radial-gradient(ellipse 120% 80% at 50% 0%, var(--folder-section-glow), transparent 55%);
}

#academic-work-experience .container {
  max-width: 100%;
}

.folder-stack-wrap {
  position: relative;
  max-width: min(var(--content-read), 100%);
  margin-inline: auto;
}

.folder-stack-column {
  position: relative;
  width: 100%;
  max-width: min(28rem, 100%);
  margin-inline: auto;
}

.folder-stack-ornament {
  display: block;
  width: clamp(3.5rem, 11vw, 5.5rem);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

@media (min-width: 769px) {
  .folder-stack-ornament {
    position: absolute;
    top: clamp(2.35rem, 5.5vw, 3.5rem);
    right: calc(100% + clamp(0.65rem, 2.5vw, 1.35rem));
    left: auto;
  }
}

.folder-stack-hint {
  margin: 0 auto 2rem;
  max-width: min(28rem, 100%);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.folder-stack-hint--touch {
  display: none;
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .folder-stack-hint--hover {
    display: none;
  }

  .folder-stack-hint--touch {
    display: inline;
  }
}

.folder-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: min(28rem, 100%);
  margin-inline: auto;
  padding: 3.75rem 0 3.25rem;
  list-style: none;
  isolation: isolate;
}

@media (max-width: 768px) {
  .folder-stack-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .folder-stack-ornament {
    position: static;
    order: -1;
    align-self: center;
    margin-top: 0;
    margin-bottom: 0.75rem;
    width: clamp(3rem, 22vw, 4.5rem);
  }

  .folder-stack-hint {
    max-width: 100%;
  }
}

.folder-item {
  --folder-face: var(--folder-face-1);
  --folder-tab-bg: var(--folder-tab-1);
  --folder-edge: var(--folder-border);
  position: relative;
  margin-top: -1.65rem;
  z-index: 1;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.28s var(--ease-folder), box-shadow 0.28s var(--ease-out-elegant);
}

.folder-item:first-child {
  margin-top: 0;
}

.folder-item:nth-child(1) {
  z-index: 1;
}

.folder-item:nth-child(2) {
  z-index: 2;
}

.folder-item:nth-child(3) {
  z-index: 3;
}

.folder-item:nth-child(4) {
  z-index: 4;
}

.folder-item:nth-child(5) {
  z-index: 5;
}

.folder-item--tone-1 {
  --folder-face: var(--folder-face-1);
  --folder-tab-bg: var(--folder-tab-1);
}

.folder-item--tone-2 {
  --folder-face: var(--folder-face-2);
  --folder-tab-bg: var(--folder-tab-2);
}

.folder-item--tone-3 {
  --folder-face: var(--folder-face-3);
  --folder-tab-bg: var(--folder-tab-3);
}

.folder-item--tone-4 {
  --folder-face: var(--folder-face-4);
  --folder-tab-bg: var(--folder-tab-4);
}

.folder-item--tone-5 {
  --folder-face: var(--folder-face-5);
  --folder-tab-bg: var(--folder-tab-5);
}

.folder-summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.55rem 1.5rem 1.3rem;
  min-height: 7.75rem;
  overflow: visible;
  background: var(--folder-face);
  border: 1px solid var(--folder-edge);
  box-shadow: inset 0 1px 0 var(--folder-face-highlight);
}

.folder-item:not([open]) .folder-summary {
  border-radius: 8px;
  border-bottom: 1px solid var(--folder-edge);
  box-shadow:
    inset 0 1px 0 var(--folder-face-highlight),
    0 4px 18px -3px var(--folder-shadow),
    0 1px 4px -1px color-mix(in srgb, var(--color-heading) 5%, transparent);
}

.folder-item[open] .folder-summary {
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  box-shadow: inset 0 1px 0 var(--folder-face-highlight);
}

.folder-item[open] .folder-body {
  box-shadow:
    inset 0 1px 0 var(--folder-face-highlight-soft),
    0 8px 26px -4px var(--folder-shadow-strong),
    0 2px 8px -2px var(--folder-shadow);
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .folder-item {
    transition: transform 0.28s var(--ease-folder), box-shadow 0.28s var(--ease-out-elegant);
  }

  .folder-stack:has(.folder-item:hover) .folder-item:hover {
    z-index: 50;
  }

  .folder-stack:has(.folder-item:hover) .folder-item:hover ~ .folder-item {
    z-index: 41;
  }

  .folder-item:hover:not([open]) {
    transform: translateY(-1rem);
  }

  .folder-item:hover:not([open]) .folder-summary {
    box-shadow:
      inset 0 1px 0 var(--folder-face-highlight),
      0 10px 28px -4px var(--folder-shadow-strong),
      0 3px 10px -2px var(--folder-shadow);
  }

  .folder-item[open] {
    transform: translateY(-0.55rem);
  }

  .folder-item[open]:hover {
    transform: translateY(-0.85rem);
  }
}

.folder-stack:has(.folder-item[open]) .folder-item[open] {
  z-index: 52;
}

@media (hover: hover) and (pointer: fine) {
  .folder-stack:has(.folder-item[open]) .folder-item[open] ~ .folder-item:not([open]):not(:hover) {
    z-index: 43;
  }
}

@media (hover: none), (pointer: coarse) {
  .folder-stack:has(.folder-item[open]) .folder-item[open] ~ .folder-item:not([open]) {
    z-index: 43;
  }
}

@media (prefers-reduced-motion: reduce) {
  .folder-item {
    transition: none;
  }

  .folder-item:hover,
  .folder-item[open],
  .folder-item[open]:hover {
    transform: none;
  }
}

.folder-summary::-webkit-details-marker,
.folder-summary::marker {
  display: none;
}

.folder-summary:focus {
  outline: none;
}

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

.folder-tab {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 0.8rem);
  padding: 0.45rem 0.7rem;
  min-width: 0;
  min-height: 0;
  background: var(--folder-tab-bg);
  border: 1px solid var(--folder-edge);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
  color: var(--color-text);
  box-shadow: 0 -1px 6px color-mix(in srgb, var(--color-heading) 7%, transparent);
  transform: translate3d(0, -100%, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 3;
}

.folder-item--tab-left .folder-tab {
  left: 0.4rem;
  right: auto;
  justify-content: flex-start;
  text-align: left;
}

.folder-item--tab-right .folder-tab {
  right: 0.4rem;
  left: auto;
  justify-content: flex-end;
  text-align: right;
}

.folder-tab--multiline {
  display: block;
  width: max-content;
  max-width: calc(100% - 0.8rem);
}

.folder-item--tab-right .folder-tab--multiline {
  text-align: right;
}

.folder-item--tab-left .folder-tab--multiline {
  text-align: left;
}

.folder-tab-line {
  display: block;
  line-height: 1.35;
}

.folder-body {
  padding: 2rem 1.5rem 2.5rem;
  background: var(--folder-face);
  border: 1px solid var(--folder-edge);
  border-top: 1px dashed var(--folder-dash);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 1px 0 var(--folder-face-highlight-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 16rem;
}

.folder-body .sample-summary,
.folder-body .sample-skills {
  font-size: var(--text-body);
  line-height: 1.75;
}

.folder-body .sample-meta {
  margin: 0;
}

.sample-summary,
.sample-skills {
  margin: 0;
  font-size: var(--text-body);
}

.sample-skills {
  color: var(--color-text-muted);
}

.artifact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
}

.btn-artifact {
  font-size: var(--text-ui);
  padding: 0.35rem 0;
  padding-right: 0.5rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  cursor: not-allowed;
  user-select: none;
}

a.btn-artifact {
  text-decoration: none;
  cursor: pointer;
  color: var(--color-heading);
  transition: var(--transition-button);
}

a.btn-artifact:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.btn-artifact.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.site-footer {
  background: var(--color-heading);
  color: var(--footer-text);
  padding: clamp(2.35rem, 5vw, 3rem) 0;
  margin-top: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.footer-inner {
  text-align: center;
}

.footer-name {
  margin: 0.25rem 0;
  font-size: var(--text-ui);
  color: var(--color-surface);
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: var(--text-ui);
  color: var(--footer-text-muted);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--footer-divider);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  justify-content: center;
}

.footer-contact a {
  font-size: var(--text-ui);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-link);
}

.footer-contact a:hover {
  text-decoration: none;
  border-bottom-color: var(--accent-hover);
  color: var(--color-surface);
}

.site-footer a {
  color: var(--accent);
  transition: var(--transition-link);
}
