@font-face {
  font-family: "Portfolio Pretendard";
  src: url("pretendard.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101216;
  --text: #f2f3ee;
  --muted: #a4a9b1;
  --line: #30343b;
  --accent: #b7cbe8;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-height: 100px;
  --page-gutter: 64px;
  font-family: "Portfolio Pretendard", "Pretendard", sans-serif;
  scroll-padding-top: calc(var(--header-height) + 24px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--background); color: var(--text); word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, h5, p, dl, dd, figure { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: #b7cbe8; color: #101216; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.page-width { width: min(1200px, calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 12px; z-index: 20; background: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { display: flex; align-items: center; gap: 42px; width: 100%; height: var(--header-height); padding-inline: max(var(--page-gutter), calc((100% - 1200px) / 2)); position: sticky; top: 0; z-index: 10; background: #101216ed; border-bottom: 1px solid #ffffff0a; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wordmark { margin-right: auto; font-size: 24px; font-weight: 680; letter-spacing: -.05em; }
.wordmark-dot { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.site-header nav a { position: relative; padding-block: 8px; }
.site-header nav a::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); left: calc(50% - 2px); bottom: -3px; opacity: 0; transition: opacity .2s; }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { opacity: 1; }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); border: 0; background: transparent; cursor: pointer; padding: 8px 0; font-size: 12px; }
.motion-toggle:hover { color: var(--text); }
.motion-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; border: 1px solid #5a606b; font-size: 9px; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-inner { position: relative; min-height: 680px; display: flex; flex-direction: column; justify-content: space-between; padding-top: 64px; }
.hero-copy { position: relative; z-index: 1; width: fit-content; max-width: 70%; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-role { margin-bottom: 23px; font-size: 16px; font-weight: 470; color: #c5c9cf; }
.hero h1 { font-size: clamp(76px, 9.8vw, 148px); line-height: .96; font-weight: 550; letter-spacing: -.065em; }
.hero h1 > span { display: block; }
.hero-period { color: var(--accent); }
.hero-description { margin-top: 32px; color: #b4b9c1; font-size: 17px; line-height: 1.9; letter-spacing: -.015em; }
.hero-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; font-size: 14px; }
.round-arrow { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #555c68; border-radius: 50%; font-size: 22px; transition: background .25s, color .25s, transform .25s; }
.hero-link:hover .round-arrow { background: var(--text); color: var(--background); transform: rotate(45deg); }
.hero-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 64px; padding-block: 26px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hero-bottom p { color: var(--muted); }
.hero-bottom p span { padding-inline: 14px; color: #59616e; }
.hero-bottom a span { display: inline-block; margin-left: 12px; font-size: 19px; }
.hero-particles { position: absolute; inset: -18% -4% 0 37%; z-index: -1; mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 92%, transparent); }
.hero-particles::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--background), transparent 27%, transparent 85%, var(--background)); pointer-events: none; }
.hero-particles canvas { display: block; width: 100%; height: 100%; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 51px; }
.section-heading h2, .experience h2 { font-size: clamp(40px, 5.1vw, 70px); line-height: 1.06; font-weight: 540; letter-spacing: -.055em; }
.section-heading h2 > span, .experience h2 > span { color: var(--accent); }
.section-heading > p { padding-bottom: 6px; font-size: 15px; color: var(--muted); }
.section-kicker { color: var(--muted); font-size: 14px; font-weight: 450; margin-bottom: 18px; }

.experience { padding-block: 115px 118px; }
.experience-header { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.employment { border-left: 1px solid #505864; padding-left: 27px; }
.employment-label { font-size: 12px; color: var(--muted); }
.employment-period { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 9px; font-size: 22px; font-weight: 480; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.employment-period > span { color: #66717f; }
.employment-role { margin-top: 9px; color: var(--muted); font-size: 14px; }

.stack { --accent: #5c6d87; --muted: #63676e; --text: #1e252e; color-scheme: light; background: #e9ebe7; color: var(--text); padding-block: 94px 80px; }
.stack .section-heading { margin-bottom: 52px; }
.stack-group { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: center; gap: 50px; padding-block: 32px; border-top: 1px solid #c8cdc9; }
.stack-group-copy h3 { font-size: clamp(28px, 3vw, 41px); font-weight: 480; letter-spacing: -.045em; }
.stack-group-copy p { max-width: 360px; margin-top: 13px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.tech-items { display: flex; flex-wrap: wrap; align-items: start; gap: 15px; margin: 0; padding: 0; list-style: none; }
.tech-item { min-width: 93px; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; border-radius: 12px; padding: 14px 13px 11px; transform-origin: 50% 80%; outline-offset: 3px; }
.tech-icon { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #d3d8d2; border-radius: 16px; background: #f8f9f5; box-shadow: 0 3px 5px #1c273006; }
.tech-icon img { width: 38px; height: 38px; object-fit: contain; }
.tech-name { font-size: 13px; font-weight: 550; color: #343b43; white-space: nowrap; }
.tech-item:hover .tech-icon, .tech-item:focus-visible .tech-icon { border-color: #a2b3be; background: #fff; box-shadow: 0 9px 18px #2f435015; }
.tech-name sup { font-size: .65em; margin-left: 1px; }
.tech-role { display: block; margin-top: 3px; font-size: 10px; font-weight: 450; color: #63676e; text-align: center; }
.tech-icon-jpa { font-size: 19px; font-weight: 750; color: #506280; letter-spacing: -.06em; }
.stack-group[aria-labelledby="stack-infra"] .tech-items { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.stack-group[aria-labelledby="stack-infra"] .tech-item { min-width: 0; padding-inline: 3px; }

.site-footer { display: grid; padding-block: 29px 40px; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 25px; }
.trademark-notice { max-width: 960px; font-size: 12px; line-height: 1.9; color: #a4a9b1; }
.trademark-notice a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.site-footer a > span { margin-left: 10px; }
.projects-cta { padding-block: 100px 105px; }
.projects-cta-link { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.projects-cta h2 { font-size: clamp(38px, 5vw, 70px); font-weight: 530; line-height: 1.25; letter-spacing: -.045em; }
.projects-cta h2 span { color: #8b9bb1; }
.cta-arrow { display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid #65758b; border-radius: 50%; font-size: 45px; transition: color .3s, background .3s, transform .3s; }
.projects-cta-link:hover .cta-arrow { background: var(--accent); color: #101216; transform: rotate(45deg); }
.projects-cta > p:last-child { margin-top: 30px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.contact { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 65px; padding-block: 66px 85px; border-top: 1px solid var(--line); }
.contact-copy h2 { font-size: clamp(42px, 5vw, 68px); font-weight: 530; letter-spacing: -.05em; line-height: 1.1; }
.contact-copy h2 > span { color: var(--accent); }
.contact-copy > p:last-child { margin-top: 23px; font-size: 16px; color: var(--muted); line-height: 1.8; }
.contact-github { display: block; padding-block: 22px; border-top: 1px solid #66748a; border-bottom: 1px solid #66748a; }
.contact-platform { color: #a5bbd4; font-size: 13px; }
.contact-account { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; font-size: clamp(30px, 3.5vw, 46px); font-weight: 500; letter-spacing: -.035em; }
.contact-account > span { font-size: 33px; color: var(--accent); transition: transform .2s; }
.contact-github:hover .contact-account > span { transform: translate(3px, -3px); }
.contact-caption { display: block; margin-top: 13px; color: var(--muted); font-size: 13px; }

@media (min-width: 1600px) {
  .hero-inner { min-height: 780px; padding-top: 95px; }
}
@media (max-width: 1050px) {
  :root { --page-gutter: 40px; }
  .hero-copy { max-width: 76%; }
  .hero-inner { min-height: 650px; }
  .stack-group { grid-template-columns: .6fr 1.4fr; gap: 25px; }
  .stack-group[aria-labelledby="stack-infra"] .tech-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tech-items { gap: 7px; }
  .tech-item { min-width: 81px; padding-inline: 8px; }
}
@media (max-width: 800px) {
  :root { --page-gutter: 24px; --header-height: 85px; }
  .site-header { gap: 24px; }
  .site-header nav { gap: 19px; }
  .motion-label { display: none; }
  .hero-inner { padding-top: 75px; min-height: 640px; }
  .hero-particles { left: 28%; opacity: .75; }
  .hero-copy { max-width: 95%; }
  .hero h1 { font-size: 100px; }
  .experience { padding-block: 80px; }
  .experience-header { display: grid; gap: 27px; }
  .stack-group { grid-template-columns: 1fr; gap: 20px; }
  .stack-group-copy p { max-width: 100%; }
  .contact { gap: 35px; }
}
@media (max-width: 540px) {
  :root { --page-gutter: 18px; --header-height: 77px; }
  .site-header { gap: 17px; }
  .wordmark { font-size: 20px; }
  .site-header nav { font-size: 12px; gap: 15px; }
  .hero-inner { min-height: 640px; padding-top: 83px; }
  .hero-role { font-size: 14px; }
  .hero h1 { font-size: clamp(62px, 14.6vw, 85px); }
  .hero-description { font-size: 15px; max-width: 320px; line-height: 1.85; }
  .hero-particles { inset: -10% -10% 0 8%; opacity: .5; mask-image: linear-gradient(0deg, black 20%, transparent 65%, black); }
  .hero-bottom { align-items: start; font-size: 11px; gap: 10px; margin-top: 45px; }
  .hero-bottom p { max-width: 225px; line-height: 1.8; }
  .hero-bottom p span { padding-inline: 5px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading > p { margin-top: 17px; padding: 0; font-size: 14px; }
  .section-heading h2, .experience h2 { font-size: 43px; }
  .experience { padding-block: 65px; }
  .employment-period { font-size: 20px; }
  .stack { padding-block: 62px 46px; }
  .tech-items { gap: 9px 1px; }
  .tech-item { flex-basis: calc(25% - 1px); min-width: 0; }
  .tech-icon { width: 56px; height: 56px; border-radius: 14px; }
  .tech-name { font-size: 11px; }
  .site-header { gap: 12px; }
  .site-header nav { gap: 11px; }
  .site-header nav a[href$="#contact"] { display: none; }
  .contact { grid-template-columns: 1fr; gap: 32px; padding-block: 50px 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) *, html:not(.motion-full) *::before, html:not(.motion-full) *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
.motion-reduced *, .motion-reduced *::before, .motion-reduced *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
