/* Grobal */
:root {
  /* App Color */
  --color-primary: var(--color-black);
  --color-primary-variant: var(--color-gray);
  --color-accent: var(--color-blue);
  --color-accent-variant: var(--color-orange);
  --color-text: var(--color-white);

  /* Background */
  --home-bg-gradient: linear-gradient(
    180deg,
    rgba(8, 26, 60, 1) 0%,
    rgba(5, 10, 19, 1) 100%
  );
  --home-bg-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='715' height='715' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%231B1E26' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%2301373B'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");

  /* Colors */
  --color-white: #ffffff;
  --color-black: #050a13;
  --color-blue: #03e8f9;
  --color-orange: #fd6413;
  --color-gray: #1b1e26;

  /* Size */
  --size-max-width: 1200px;

  /* Divider */
  --divider-single-wave: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none" > <path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" ></path> </svg>');
  --divider-multi-wave: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none" > <path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" ></path> <path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" ></path> <path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" ></path> </svg>');
  --divider-arrow: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none" > <path d="M649.97 0L550.03 0 599.91 54.12 649.97 0z" ></path> </svg>');
}


/* Shared foundations; retain the original navy/cyan theme and section layout. */
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; color: var(--color-primary); font-family: "Noto Sans KR", system-ui, sans-serif; line-height: 1.7; overflow-wrap: break-word; }
h1,h2,h3,h4,p,ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 3px solid #008a99; outline-offset: 5px; }
#home :focus-visible,#skills :focus-visible,#work :focus-visible,#contact :focus-visible,.header :focus-visible { outline-color: var(--color-accent); }
[hidden] { display: none !important; }
.section { padding: 4rem; text-align: center; }
.max-container { width: 100%; max-width: var(--size-max-width); margin-inline: auto; }
.title { font-size: 2.2rem; line-height: 1.35; margin: 1rem 0; }
.description { font-size: 1.15rem; margin: .5rem 0; line-height: 1.8; }
section[id],li[id] { scroll-margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 100; background: white; color: #050a13; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

/* Header */
.header { position: fixed; top: 0; width: 100%; min-height: 72px; padding: 1rem; display: flex; justify-content: flex-end; align-items: center; color: white; background: var(--color-primary); z-index: 10; }
.header--dark { box-shadow: 0 8px 24px #0002; }
.header__menu { display: flex; gap: 4px; }
.header__menu__item { display: block; padding: 6px 15px; border: 1px solid transparent; border-radius: 4px; }
.header__menu__item:hover,.header__menu__item.active { border-color: var(--color-accent); }
.header__toggle { display: none; color: white; padding: .4rem .8rem; border: 1px solid #51606c; border-radius: 4px; }

/* Home */
#home { position: relative; background-color: var(--color-primary); background-image: var(--home-bg-svg); color: white; padding: 7rem 1.5rem 6rem; text-align: center; }
#home::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; transform: rotate(180deg); background: white; mask: var(--divider-single-wave); -webkit-mask: var(--divider-single-wave); pointer-events: none; }
.home__avatar { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 3px solid var(--color-accent); margin-bottom: 1rem; }
.home__title { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.3; }
.home__title__strong { color: var(--color-accent); }
.home__description { font-size: 1.15rem; }
.home__contact { display: inline-block; width: 8.75rem; max-width: calc(100% - .8rem); background: var(--color-accent); color: var(--color-primary); margin: 2rem .4rem 0; padding: .6rem 1.1rem; font-weight: 700; border: 1px solid var(--color-accent); border-radius: 4px; }
.home__contact--outline { background: transparent; color: var(--color-accent); }
.home__contact:hover { background: white; color: var(--color-primary); border-color: white; }

/* About */
.majors { display: flex; gap: 1rem; margin: 2.5rem 0; }
.major { flex: 1; min-width: 0; padding: 2rem 1rem; background: var(--color-primary-variant); color: white; border-radius: 1rem; box-shadow: 0 3px 10px #0002; }
.major__icon { display: block; color: var(--color-accent); font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: 1rem; }
.major__title { font-size: 1.35rem; margin-bottom: .75rem; }
.major p { color: #d3d9e2; font-size: .95rem; }
.jobs { text-align: start; }
.job { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; border-top: 1px solid #e4e8ed; }
.job img { flex: 0 0 40px; width: 40px; height: auto; object-fit: contain; border-radius: 4px; }
.job__name { font-size: .95rem; }
.job__period,.job__description { color: #505d6a; font-size: .85rem; }
.job__description { margin-top: .25rem; }

/* Skills: usage evidence, never a proficiency score. */
#skills { position: relative; background: var(--color-primary-variant); color: white; padding-bottom: 6rem; }
#skills::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; transform: rotate(180deg); background: var(--color-primary); mask: var(--divider-multi-wave); -webkit-mask: var(--divider-multi-wave); pointer-events: none; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0; text-align: left; gap: 1.5rem; }
.skill-card { display: flex; flex-direction: column; min-width: 0; padding: 1.5rem 1.75rem; border-radius: 8px; background: var(--color-primary); word-break: keep-all; }
.skills__title { color: var(--color-accent); font-size: 1.2rem; margin-bottom: .75rem; }
.skill-card__tools { color: #f0f3f8; font-size: .95rem; }
.skill-card__usage { color: #c9d1dd; font-size: .9rem; padding-top: 1rem; margin-top: auto; }

/* Work */
#work { background: var(--color-primary); color: white; }
.categories { display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; margin: 2rem 0; }
.category { display: inline-flex; align-items: center; justify-content: center; width: 10.625rem; max-width: 100%; min-height: 2.75rem; gap: .5rem; color: white; border: 1px solid #4d6872; padding: .5rem .75rem; border-radius: 4px; }
.category:hover { border-color: var(--color-accent); }
.category--selected { color: var(--color-primary); background: var(--color-accent); border-color: var(--color-accent); }
.category__count { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.375rem; height: 1.375rem; font-size: .875rem; font-weight: 700; line-height: 1; border-radius: 50%; color: white; background: #293646; }
.projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; text-align: left; margin-top: 2rem; align-items: start; }
.project { min-width: 0; background: var(--color-primary-variant); border: 1px solid #303744; border-radius: 8px; overflow: hidden; }
.project__img { display: block; width: 100%; height: 210px; object-fit: contain; background: #f3f5f6; padding: .75rem; }
.project__img--mobile { background: #e7ebee; padding: .75rem; }
.project__gallery { position: relative; height: 210px; background: #f3f5f6; color: #263543; }
.project__gallery--mobile { background: #e7ebee; }
.project__gallery-viewport { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.project__gallery-slide { display: block; flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; cursor: zoom-in; }
.project__gallery .project__img { height: 100%; padding: .25rem; }
.project__gallery--enhanced .project__gallery-viewport { overflow: hidden; }
#work .project__gallery :focus-visible { outline: 2px solid #087583; outline-offset: -3px; }
.project__metadata { position: static; padding: 1.5rem; word-break: keep-all; }
.project__period { font-size: .78rem; color: #adb9c9; }
.project__title { font-size: 1.5rem; margin: .25rem 0 .75rem; }
.project__intro { font-size: .95rem; color: #e0e5ed; min-height: 5.1em; }
.project__stack { color: var(--color-accent); font-size: .8rem; margin: .85rem 0 1.5rem; }
/* Card hierarchy: project title > section heading > body. */
.project__role-summary h4 { color: #abc9f0; font-size: 1.125rem; font-weight: 700; line-height: 1.5; margin-bottom: .625rem; }
.project__role-summary li { margin: 0; color: #c9d1dd; font-size: .95rem; line-height: 1.75; }
.project__role-summary ul { list-style: disc; padding-left: 1.2em; }
.project__role-summary li + li { margin-top: .375rem; }
.project__detail { margin-top: 1.25rem; border-block: 1px solid #3b4451; }
.project__detail summary { padding: .8rem 0; cursor: pointer; font-size: 1.125rem; font-weight: 700; color: white; }
.project__detail summary:hover { color: var(--color-accent); }
.project__cases { padding-bottom: 1rem; }
.project__case { padding-top: .5rem; }
.project__case + .project__case { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #3b4451; }
.project__case h4 { color: white; font-size: .95rem; }
.case-flow { margin: .9rem 0 0; padding-left: .9rem; border-left: 2px solid #484848; }
.case-flow > div + div { margin-top: 1rem; }
.case-flow dt { color: #d8b77c; font-size: .78rem; font-weight: 700; margin-bottom: .3rem; }
.case-flow dd { margin: 0; color: #d2d9e3; font-size: .88rem; }
.case-flow__actions { margin-top: .85rem; padding-left: 1.25rem; list-style: disc; }
.case-flow__actions > li + li { margin-top: .75rem; }
.case-flow__actions strong { color: #f3f6fb; }
.case-flow .case-flow__outcome dd { color: #f3f6fb; font-weight: 700; }
.case-flow .case-flow__outcome .case-flow__measurement { margin-top: .75rem; color: #adb9c9; font-size: .85rem; font-weight: 400; line-height: 1.7; }
.project__evidence { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; padding: 0; list-style: none; }
.project__evidence a { display: inline-block; padding: .2rem 0; color: var(--color-accent); font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.project__evidence a:hover { color: white; }
.project__detail .project__note { margin-top: 1.25rem; font-size: .8rem; color: #adb9c9; }
.project__link { display: block; padding-top: 1rem; font-size: .9rem; color: var(--color-accent); }
.project__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* One primary action on every card; repository links stay in the details. */
.project__detail-trigger { display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: .35rem; margin-top: 1.25rem; padding: .8rem 0; border-block: 1px solid #3b4451; color: var(--color-accent); font-size: 1.125rem; font-weight: 700; text-align: left; }
.project__detail-trigger:hover { color: white; }
.case-dialog { position: fixed; inset: 0; width: min(960px, calc(100% - 3rem)); height: fit-content; max-width: none; max-height: min(740px, calc(100dvh - 3rem)); margin: auto; padding: 0; border: 1px solid #465363; border-radius: 12px; background: var(--color-primary-variant); color: white; box-shadow: 0 24px 80px #0008; overflow: hidden; word-break: keep-all; }
.case-dialog[open] { display: flex; flex-direction: column; }
.case-dialog::backdrop { background: #050a13c9; }
.case-dialog :focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.case-dialog__header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 2rem 1.25rem; }
.case-dialog__heading { min-width: 0; }
.case-dialog__meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .25rem .65rem; }
/* Align only the bottom border with the name's alphabetic edge. */
.case-dialog__project { display: block; color: var(--color-accent); font-size: 1.5rem; font-weight: 700; line-height: 1; text-box-trim: trim-end; text-box-edge: cap alphabetic; }
.case-dialog .case-dialog__repository { display: inline-flex; align-items: center; height: 20px; transform: translateY(2px); padding: 0 .4rem; border: 1px solid #546274; border-radius: 4px; background: transparent; color: #c8d2df; font-size: .75rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.case-dialog .case-dialog__repository:hover { border-color: var(--color-accent); color: white; text-decoration: none; }
.case-dialog__close { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; color: #d2d9e3; background: transparent; }
.case-dialog__close:hover { background: #ffffff0a; color: white; }
.case-dialog__tabs { display: grid; flex: 0 0 auto; grid-template-columns: repeat(var(--case-count, 4), minmax(0, 9rem)); justify-content: center; gap: .5rem; padding: 0 2rem 1.25rem; border-bottom: 1px solid #3b4451; }
.case-dialog__tab { min-width: 0; min-height: 44px; padding: .6rem .75rem; border: 1px solid #546274; border-radius: 6px; color: #d2d9e3; font-size: .95rem; }
.case-dialog__tab:hover { border-color: var(--color-accent); }
.case-dialog__tab[aria-selected="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); font-weight: 700; }
.case-dialog__content { flex: 1 1 auto; min-height: 0; padding: 1.75rem 2rem 2rem; overflow-y: auto; overscroll-behavior: contain; }
.case-dialog .project__cases { max-width: 840px; margin: 0 auto; padding: 0; }
.case-dialog .project__case { max-width: 840px; margin: 0 auto; padding: 0; border: 0; }
/* Shared reading hierarchy: aligned title, gold labels, and softly separated stages. */
.case-dialog .project__case h4 { padding-left: 1rem; border-left: 2px solid transparent; color: white; font-size: 1.5rem; font-weight: 700; line-height: 1.45; }
.case-dialog .case-flow { margin-top: 1.5rem; padding-left: 0; border-left: 0; }
.case-dialog .case-flow > div { position: relative; padding: 1rem; border-left: 2px solid #484848; border-radius: 0 6px 6px 0; background: #ffffff06; }
.case-dialog .case-flow > div + div { margin-top: 2.25rem; }
.case-dialog .case-flow > div + div::before { content: ""; position: absolute; top: -1.125rem; left: 1rem; right: 0; border-top: 1px solid #ffffff12; }
.case-dialog .case-flow > .case-flow__outcome { border-left-color: #74808e; }
.case-dialog .case-flow dt { color: #d8b77c; font-size: 1.25rem; font-weight: 800; line-height: 1.5; margin-bottom: .5rem; }
.case-dialog .case-flow dd { font-size: 1rem; line-height: 1.8; }
.case-dialog .project__evidence { margin-top: 1.25rem; padding-left: 1rem; border-left: 2px solid transparent; }
.case-dialog .project__evidence a { min-height: 44px; padding: .6rem 0; font-size: 1.125rem; font-weight: 600; }
.case-dialog .project__note { margin-top: 1.25rem; padding-left: 1rem; border-left: 2px solid transparent; color: #adb9c9; font-size: .85rem; line-height: 1.7; }
.case-dialog-open { overflow: hidden; }
.case-dialog-open body { position: fixed; top: var(--case-dialog-scroll-top); width: 100%; padding-right: var(--case-dialog-scrollbar); }
@media (max-width: 600px) {
  .case-dialog { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; }
  .case-dialog__header { padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem; }
  .case-dialog__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 1rem 1rem; }
  .case-dialog__tab { font-size: .9rem; }
  .case-dialog__content { padding: 1.25rem 1rem max(1.5rem, env(safe-area-inset-bottom)); }
  .case-dialog .project__case h4 { font-size: 1.375rem; }
  .case-dialog .case-flow dt { font-size: 1.25rem; }
}

/* Education, qualifications and awards */
#education { background: white; }
.education-list { text-align: left; margin-top: 2.5rem; border-top: 1px solid #d9e0e6; }
.education-item { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0,3fr); gap: 2rem; padding: 2rem 0; border-bottom: 1px solid #d9e0e6; }
.education-item h3 { font-size: 1.2rem; }
.education-item p { font-size: .95rem; color: #455363; }
.education-item__period p { font-size: .85rem; }
.education-item__org { margin: .3rem 0 .7rem; }
.education-item .education-item__note { font-size: .85rem; margin-top: .75rem; }
.status-badge { display: inline-block; color: #116451; background: #e6f4ee; font-size: .8rem; font-weight: 700; padding: .15rem .65rem; border-radius: 4px; margin-bottom: .65rem; }
.status-badge--ongoing { color: #195586; background: #e7f1fb; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; text-align: left; }
.credentials > section { padding: 1.5rem; background: #f5f7f9; border-radius: 8px; }
.credentials h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.credential + .credential { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #d9e0e6; }
.credential__date { font-size: .83rem; color: #566371; }
.credential h4 { font-size: 1rem; margin: .2rem 0; }
.credential p { font-size: .9rem; color: #455363; }

/* Contact */
#contact { position: relative; background: var(--color-primary); color: white; padding-top: 6rem; }
#contact::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 60px; background: white; mask: var(--divider-arrow); -webkit-mask: var(--divider-arrow); pointer-events: none; }
.contact__email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: .5rem; margin-top: .75rem; }
.contact__email { grid-column: 2; color: var(--color-accent); }
.contact__email:hover { text-decoration: underline; }
.copy-email { grid-column: 3; justify-self: start; display: grid; place-items: center start; width: 2.75rem; height: 2.75rem; padding: 0 0 0 .25rem; border: 0; border-radius: 4px; color: #a9b4c2; }
.copy-email:hover,.copy-email:focus-visible { color: var(--color-accent); }
.copy-status { min-height: 1.7em; color: #c9d1dd; font-size: .85rem; margin-top: .5rem; }
.contact__links { display: flex; justify-content: center; gap: 1.5rem; padding: 1rem; }
.contact__link { font-size: 1rem; }
.contact__link:hover { color: var(--color-accent); }
.contact__copyright { color: #a9b4c2; font-size: .85rem; }
.arrow-up { display: grid; place-items: center; position: fixed; right: 1.5rem; bottom: 1.5rem; width: 3rem; height: 3rem; background: var(--color-primary); color: white; border: 1px solid var(--color-accent); box-shadow: 3px 3px 0 var(--color-accent); border-radius: 50%; font-size: 1.8rem; z-index: 5; }

/* Keep readable text columns before the tablet layout becomes cramped. */
@media (max-width: 1199px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 769px) {
  .section { padding-inline: 2rem; }
  .project__img { height: 170px; }
  .project__gallery { height: 170px; }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 4.5rem; }
  .section { padding: 3.5rem 1.5rem; }
  .title { font-size: 1.8rem; }
  .description,.home__description { font-size: 1rem; }
  .desktop-break { display: none; }
  .header { min-height: 64px; padding: .6rem 1rem; flex-direction: column; align-items: flex-end; }
  .header__nav { width: 100%; }
  .header__toggle:not([hidden]) { display: block; }
  .header__menu { flex-direction: column; flex-wrap: nowrap; text-align: center; gap: .25rem; }
  .header--enhanced .header__menu { display: none; }
  .header--enhanced .header__menu.open { display: flex; padding-block: .75rem; }
  .header__menu__item { padding: .4rem .65rem; }
  #home { padding-top: 6rem; }
  .home__avatar { width: 180px; height: 180px; }
  .home__title { font-size: 2.3rem; }
  .majors { flex-direction: column; }
  .major { width: 100%; padding: 1.5rem; }
  .major__icon { font-size: 2rem; margin-bottom: .4rem; }
  .job { align-items: flex-start; }
  .skills { grid-template-columns: 1fr; }
  .skill-card { padding: 1.25rem; }
  .projects { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .project__img { height: 240px; }
  .project__gallery { height: 240px; }
  .project__intro { min-height: 0; }
  .categories { gap: .5rem; }
  .category { max-width: calc((100% - .5rem) / 2); font-size: .9rem; padding: .5rem .4rem; gap: .4rem; }
  .education-item { grid-template-columns: 1fr; gap: .8rem; padding: 1.5rem 0; }
  .credentials { grid-template-columns: 1fr; gap: 1rem; }
  .arrow-up { right: 1rem; bottom: 1rem; width: 2.6rem; height: 2.6rem; }
}
@media (max-width: 400px) {
  .contact__email { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
