/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --bg:        #6f96a0;
  --bg-panel:  #1d5f72;
  --bg-raised: #080a0e;
  --line:      #010102;
  --text:      #070606;
  --text-dim:  #0c0808;
  --text-mute: #f3f0f0;
  --accent:    #0cf520;
  --accent-2:  #ffb35c;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --radius: 3px;
  --content-w: 780px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Times New Roman', Times, serif;
  font-size: 10;
  line-height: 2.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 600;
  margin: 10;
  letter-spacing: -0.01em;
}

p { margin: 0.5em 0 0; color: var(--text-dim); max-width: 62ch; }

::selection { background: var(--accent); color: #0d1016; }

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

/* A fixed noise layer adds subtle texture without affecting interaction. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   Nav
--------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 6vw, 64px);
  background: rgb(54, 247, 6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.2);
  color: var(--text);
  text-decoration: none;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.nav__menu {
  position: relative;
  margin-left: auto;
  margin-right: 0;
}

.nav__menu summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 1rem;
}

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

.nav__menu summary::before {
  width: 26px;
  height: 18px;
  background: linear-gradient(to bottom, currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px, transparent 10px 15px, currentColor 15px 18px);
  content: "";
}

.nav__menu-items {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 101;
  display: grid;
  width: min(280px, calc(100vw - 32px));
  padding: 14px 0;
  border: 1px solid rgba(244, 235, 228, 0.2);
  background: #e9dfd7;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateX(24px) scale(0.96);
  transform-origin: top right;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.2, 1.4, 0.4, 1), visibility 220ms;
}

.nav__menu[open] .nav__menu-items {
  opacity: 1;
  transform: translateX(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav__menu-items a {
  padding: 17px 24px;
  color: #282223;
  font-size: 1.15rem;
  text-decoration: none;
}

.nav__menu-items a:hover,
.nav__menu-items a:focus-visible {
  background: rgba(40, 34, 35, 0.08);
  color: #986b68;
}

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

@media (max-width: 720px) {
  html { scroll-padding-top: 120px; }

  .nav {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  body { line-height: 1.65; }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 120px);
    padding: 44px 20px 48px;
  }

  .hero__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
  }

  .hero__name {
    font-size: clamp(1.75rem, 8vw, 4.4rem);
    overflow-wrap: anywhere;
  }

  .hero__kicker { font-size: 1rem; }

  .hero__tagline {
    font-size: 1rem;
    margin-top: 0;
    position: relative;
    top: -7px;
    transform: translateY(-7px);
  }

  .hero__actions {
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
  }

  .section { padding-top: 20px; padding-bottom: 20px; }

  .edu-card { padding: 20px; }
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 88vh;
  padding: 40px clamp(20px, 6vw, 64px) 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__text {
  width: 100%;
}

.hero__kicker {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero__name {
  font-size: clamp(5rem, 6vw, 4.4rem);
  line-height: 1.02;
}

.hero__tagline {
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  color: x#070606;
}
.btn--primary:hover { transform: translateY(-1px); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); }

/* terminal card */
.hero__terminal {
  margin-top: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  max-width: 620px;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--r { background: #ff5f56; }
.dot--y { background: #ffbd2e; }
.dot--g { background: #27c93f; }

.terminal__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-mute);
}

.terminal__body {
  margin: 0;
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text);
  min-height: 140px;
  white-space: pre-wrap;
}

.resume-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(18, 18, 18, 0.18);
}

.resume-card__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.resume-card__eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.resume-card__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-mute);
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 24px;
}

.resume-grid h4 {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--accent);
}

.resume-grid p,
.resume-grid li {
  color: var(--text-dim);
}

.resume-grid ul {
  margin: 0;
  padding-left: 18px;
}

.resume__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .resume-card__header,
  .resume-grid {
    grid-template-columns: 1fr;
    display: block;
  }

  .resume-card__header {
    display: block;
  }

  .resume-card__meta {
    margin-top: 10px;
  }
}

.tk-muted { color: var(--text-mute); }

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: unset; padding-top: 60px; }
}

/* ---------------------------------------------------------
   Sections (shared)
--------------------------------------------------------- */
.section {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 12px clamp(20px, 6vw, 64px) 10px;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.section__num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
}

.section__head h2 {
  font-size: 1.7rem;
}

/* ---------------------------------------------------------
   Experience timeline
--------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: none;
}

.timeline__item {
  position: relative;
  padding: 0;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  display: none;
}

.timeline__date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-mute);
}

.timeline__body h3 {
  font-size: 1.15rem;
  margin-top: 6px;
  font-weight: 600;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------
   Education
--------------------------------------------------------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .edu-grid { grid-template-columns: 1fr; } }

.edu-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: var(--bg-panel);
}
.edu-card__school { color: var(--accent-2); margin-top: 6px; font-size: 0.95rem; }
.edu-card__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 4px;
}

/* ---------------------------------------------------------
   Skills
--------------------------------------------------------- */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 640px) { .skills { grid-template-columns: 1fr; } }

.skills__group h4 {
  font-size: 0.85rem;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
}

/* ---------------------------------------------------------
   Projects
--------------------------------------------------------- */
.projects {
  display: flex;
  flex-direction: column;
}

.project {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.project:last-child { border-bottom: none; }

.project__index {
  font-family: var(--mono);
  color: var(--text-mute);
  font-size: 0.85rem;
  padding-top: 3px;
}

.project h3 { font-size: 1.15rem; }

.project__links {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.project__links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--accent);
}
.project__links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   Contact
--------------------------------------------------------- */
.section--contact { text-align: left; }

.contact__lead {
  font-size: 1.15rem;
  color: var(--text);
}

.contact__socials {
  margin-top: 24px;
}

.contact__socials-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
  font-weight: 800;
}

.contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 28px auto 0;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #f7f1ee;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__field--full {
  grid-column: 1 / -1;
}

.contact__field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: #5b5b5b;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.contact__field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact__form .btn {
  justify-self: start;
  margin-top: 8px;
}

.contact__links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.contact__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 10, 14, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.contact__links a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: rgba(8, 10, 14, 0.55);
}
.contact__links svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
}

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


/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 1px 2px 60px;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* Editorial portfolio redesign */
:root {
  --bg: #1d1a1b;
  --bg-panel: #282324;
  --bg-raised: #171516;
  --line: rgba(244, 235, 228, 0.2);
  --text: #f5eee8;
  --text-dim: #c4b9b2;
  --text-mute: #a79b95;
  --accent: #d99eaa;
  --accent-2: #b17c66;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'DM Sans', sans-serif;
  --display: 'DM Sans', sans-serif;
  --radius: 0;
  --content-w: 1160px;
}

html { scroll-padding-top: 24px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
}

p { color: var(--text-dim); }

::selection { background: var(--accent); color: #211b1c; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #201c1d;
  color: #f5eee8;
  opacity: 1;
  visibility: visible;
  transition: opacity 350ms ease, visibility 350ms ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__mark {
  color: var(--accent);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-loader__spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(245, 238, 232, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: site-loader-spin 800ms linear infinite;
}

.site-loader__label {
  color: var(--text-mute);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes site-loader-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader { transition: none; }
  .site-loader__spinner { animation: none; }
}

.nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 24px clamp(20px, 6vw, 84px);
  border: 0;
  background: transparent;
  color: #fff;
  backdrop-filter: none;
}

.nav__mark {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.1rem;
}

.nav__mark svg {
  display: block;
  width: 38px;
  height: 26px;
  fill: currentColor;
}

.nav__mark img {
  display: block;
  width: 84px;
  height: 56px;
  object-fit: contain;
}

.nav__menu summary {
  color: #f5eee8;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav__menu[open] summary { color: var(--accent); }

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 100svh;
  max-width: none;
  padding: 150px clamp(20px, 6vw, 84px) 72px;
  overflow: hidden;
  background-color: #282323;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  filter: blur(var(--hero-background-blur, 0px));
  background-image: linear-gradient(rgba(16, 14, 14, 0.34), rgba(16, 14, 14, 0.34)), linear-gradient(90deg, rgba(16, 14, 14, 0.76), rgba(16, 14, 14, 0.17) 78%), linear-gradient(0deg, rgba(16, 14, 14, 0.78), transparent 78%), url('./hero-bg.jpg');
  background-position: center, center, center, center 48%;
  background-size: cover;
  animation: hero-background-appear 1.4s ease-out both;
}

@keyframes hero-background-appear {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__text {
  position: relative;
  z-index: 1;
  max-width: min(46vw, 680px);
}

.hero__kicker {
  margin: 0 0 22px;
  color: #f0c5cc;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  animation: hero-text-enter 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 150ms both;
}

.hero__name {
  max-width: 1000px;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-family: "Lucida Handwriting", "Brush Script MT", cursive;
  font-weight: 500;
  line-height: 0.82;
  overflow-wrap: anywhere;
  animation: hero-text-enter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 300ms both;
}

@keyframes hero-text-enter {
  from {
    opacity: 0;
    transform: translateX(-48px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero__tagline {
  max-width: 600px;
  margin-top: 32px;
  color: #f2e8e3;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-style: normal;
  line-height: 1.5;
  animation: hero-description-enter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 450ms both;
}

@keyframes hero-description-enter {
  from {
    opacity: 0;
    translate: -48px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero__actions { gap: 12px; margin-top: 30px; }

.btn {
  padding: 15px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn--primary { background: var(--accent); color: #241d1f; }
.btn--primary:hover { background: #e8b9c1; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--ghost:hover { border-color: var(--accent); }

.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 100px clamp(20px, 6vw, 84px);
  background: #201c1d;
}

#experience { padding-bottom: 100px; }

.section--dark {
  background: #e9dfd7;
  color: #241e1f;
}

.section--dark .section__head h2 { color: #241e1f; }
.section--dark .skills__group p { color: #33282a; }
.section--dark .skills { border-color: rgba(40, 34, 35, 0.28); }
.section--dark .skills__group { border-color: rgba(40, 34, 35, 0.28); }
.section--dark .skills__group + .skills__group { border-color: rgba(40, 34, 35, 0.28); }

.section--research {
  background: #e9dfd7;
  color: #282223;
}

.section--research .section__head h2,
.section--research .timeline__body h3 { color: #282223; }

.section--research .timeline__body p { color: #625652; }

.section--research .timeline__date {
  color: #201c1d;
  font-size: 1.15rem;
}

.section--research .timeline,
.section--research .timeline__item { border-color: rgba(40, 34, 35, 0.2); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto 42px;
}

.section__num {
  flex: 0 0 150px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section__head h2 {
  color: var(--text);
  font-size: 4rem;
  line-height: 1;
}

.timeline {
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 38px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__date {
  display: block;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.3;
}

.timeline__body h3 { margin-top: 0; font-size: 1.55rem; line-height: 1.3; }
.tk-muted { color: var(--text-mute); }
.timeline__body p { max-width: 72ch; margin-top: 14px; text-align: justify; }

.section--paper {
  background: #201c1d;
  color: var(--text);
}

.section--paper .section__num { color: var(--accent); }
.section--paper .section__head h2 { color: var(--text); }
.section--paper p { color: var(--text-dim); }

.edu-grid {
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.edu-card {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.edu-card h3 { font-size: 1.45rem; }
.edu-card__school { color: var(--accent); }
.edu-card__meta { color: var(--text-mute); }

.skills {
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.skills__group {
  min-height: 150px;
  padding: 24px 28px 24px 0;
  border-bottom: 1px solid var(--line);
}

.skills__group + .skills__group { padding-left: 28px; border-left: 1px solid var(--line); }
.skills__group p { margin: 0; color: var(--text); font-size: 1.1rem; }

.skills__additional {
  max-width: 1160px;
  margin: 38px auto 0;
}

.skills__additional h3 {
  margin-bottom: 14px;
  color: #241e1f;
  font-size: 1.35rem;
  font-weight: 700;
}

.skills__additional ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0 0 0 1.25rem;
  list-style: disc;
}

.skills__additional li {
  padding: 14px 18px 14px 0;
  color: #33282a;
  font-weight: 400;
}

.section--contact {
  text-align: left;
  background: #201c1d;
  color: var(--text);
}

.section--contact .section__num { color: var(--accent); }
.section--contact .section__head h2 { color: var(--text); }
.contact__lead { max-width: 1160px; margin: 0 auto; color: var(--text-dim); font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; }
.section--contact .contact__socials-label,
.section--contact .contact__links svg { color: #e9dfd7; fill: #e9dfd7; }

.contact__links {
  max-width: 1160px;
  margin: 30px auto 0;
  gap: 12px;
}

.contact__links a {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.contact__links a:hover { border-color: #e9dfd7; background: rgba(233, 223, 215, 0.14); }
.contact__links svg { width: 26px; height: 26px; fill: #241e1f; }

.footer { padding: 22px 20px 30px; color: #33282a; background: #e9dfd7; font-size: 1.1rem; }
.footer p { margin: 0; color: inherit; }

.resume-body {
  min-height: 100vh;
  padding: 56px 24px 80px;
  background: #201c1d;
  color: #282223;
}

.resume-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px;
  border: 0;
  border-radius: 0;
  background: #e9dfd7;
  box-shadow: none;
}

.resume-page h1 { font-size: 3.5rem; }
.resume-page__header { align-items: end; padding-bottom: 24px; border-color: rgba(40, 34, 35, 0.24); }
.resume-page__meta { color: #766862; }
.resume-layout { gap: 24px 40px; }
.resume-section h3 { color: #986b68; }
.resume-section p, .resume-section ul { color: #514744; }
.resume-actions { gap: 12px; }
.resume-actions .btn--ghost { border-color: #6a5652; color: #282223; }

@media (max-width: 860px) {
  .hero { min-height: 88svh; padding-top: 140px; }
  .hero__name { font-size: 6rem; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 18px; }
  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    padding: 14px clamp(16px, 5vw, 20px);
  }
  .nav__mark img { width: 64px; height: 42px; }
  .nav__menu {
    flex: 0 0 auto;
    margin: 0;
  }
  .nav__menu summary {
    min-height: 44px;
    gap: 11px;
    font-size: 0.86rem;
  }
  .nav__menu summary::before {
    width: 28px;
    height: 20px;
    background: linear-gradient(to bottom, currentColor 0 3px, transparent 3px 8px, currentColor 8px 11px, transparent 11px 17px, currentColor 17px 20px);
  }
  .nav__menu-items {
    top: calc(100% + 8px);
    width: min(300px, calc(100vw - 32px));
    padding: 10px 0;
  }
  .nav__menu-items a {
    padding: 16px 20px;
    font-size: 1.05rem;
  }
  .hero {
    min-height: 100svh;
    align-items: stretch;
    padding: 124px clamp(20px, 6vw, 28px) 32px;
  }
  .hero::before {
    background-position: center, center, center, 58% center;
  }
  .hero__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }
  .hero__kicker {
    max-width: 55%;
    margin-bottom: 14px;
  }
  .hero__name {
    max-width: 100%;
    font-size: clamp(3.2rem, 13vw, 5.5rem);
    line-height: 0.82;
    overflow-wrap: anywhere;
  }
  .hero__kicker { font-size: 0.78rem; }
  .hero__tagline {
    max-width: 55%;
    margin-top: auto;
    margin-bottom: auto;
    transform: translateY(96px);
    font-size: 0.95rem;
  }
  .hero__actions { flex-wrap: wrap; margin-top: 18px; transform: translateY(0); }
  .hero__actions .btn { padding: 12px 14px; }
  .section { padding: 56px 20px; }
  .section__head { display: block; margin-bottom: 24px; }
  .section__num { display: block; margin-bottom: 12px; }
  .section__head h2 { font-size: clamp(2.4rem, 10vw, 3rem); }
  .timeline { border-top: 0; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .timeline__date { font-size: 0.9rem; }
  .timeline__body h3 { font-size: 1.3rem; }
  .timeline__body p { margin-top: 10px; }
  .edu-grid { grid-template-columns: 1fr; gap: 8px; }
  .edu-card { padding: 20px 0; }
  .skills { grid-template-columns: 1fr; }
  .skills__group { min-height: 0; padding: 20px 0; }
  .skills__group + .skills__group { padding-left: 0; border-left: 0; }
  .skills__additional { margin-top: 28px; }
  .skills__additional ul { grid-template-columns: 1fr; }
  .contact__lead { font-size: 1.65rem; }
  .contact__form { gap: 14px; margin-top: 22px; padding: 18px; }
  .contact__socials { margin-top: 20px; }
  .contact__links { margin-top: 18px; }
  .contact__links a { width: 48px; height: 48px; }
  .contact__links svg { width: 23px; height: 23px; }
  .footer { padding: 20px 16px 26px; font-size: 1rem; }
  .resume-body { padding: 20px 12px 40px; }
  .resume-page { padding: 28px 22px; }
  .resume-page h1 { font-size: 2.6rem; }
  .resume-page__header, .resume-layout { display: block; }
  .resume-page__meta { margin-top: 12px; }
  .resume-section { margin-bottom: 24px; }
}

@media (max-width: 390px) {
  .nav { padding-right: 16px; padding-left: 16px; }
  .nav__menu summary { font-size: 0.8rem; }
  .hero { padding-right: 16px; padding-left: 16px; }
  .hero::before { background-position: center, center, center, 62% center; }
  .hero__kicker,
  .hero__tagline { max-width: 58%; }
  .hero__name { max-width: 100%; font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .section { padding-right: 16px; padding-left: 16px; }
  .contact__form { padding: 16px; }
}

*, *::before, *::after {
  font-family: "Times New Roman", Times, serif !important;
}

.hero__name {
  font-family: "Lucida Handwriting", "Brush Script MT", cursive !important;
}
