:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --soft: #efefed;
  --line: #dededb;
  --line-strong: #c8c8c4;
  --text: #171717;
  --muted: #6f716f;
  --silver: #b9bdc1;
  --dark: #202122;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(17, 17, 17, .07);
  --container: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 5%, rgba(200, 203, 207, .28), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.intro-lock, body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 128px) 0; }
.section--soft { background: rgba(235, 235, 232, .78); border-block: 1px solid var(--line); }

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #f7f7f6;
  transition: opacity .52s var(--ease), visibility .52s var(--ease);
}
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__inner { text-align: center; }
.intro__welcome, .intro__brand { margin: 0; }
.intro__welcome {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: .22em;
  animation: introWelcome .72s var(--ease) both;
}
.intro__brand {
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0;
  filter: blur(8px);
  animation: introBrand .52s .48s var(--ease) forwards;
}
@keyframes introWelcome { from { opacity: 0; transform: scale(.94); filter: blur(10px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes introBrand { to { opacity: 1; filter: blur(0); transform: translateY(-2px); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 247, 246, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(204, 204, 200, .72);
  box-shadow: 0 8px 30px rgba(20,20,20,.035);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { position: relative; font-size: .9rem; font-weight: 600; color: #555755; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 1px; background: #171717; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #191919; margin: 5px auto; transition: .25s ease; }
.nav-toggle.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.hero { min-height: min(760px, 82vh); display: grid; align-items: center; padding-top: clamp(56px, 8vw, 90px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.availability { display: inline-flex; align-items: center; gap: 9px; width: fit-content; margin-bottom: 26px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58); color: #555; font-size: .78rem; font-weight: 600; }
.availability span { width: 7px; height: 7px; border-radius: 50%; background: #4d8b62; box-shadow: 0 0 0 4px rgba(77,139,98,.12); }
.eyebrow { margin: 0 0 12px; color: #7d7f7d; font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(3.3rem, 7.3vw, 6.8rem); line-height: .94; letter-spacing: -.065em; font-weight: 800; }
.hero__role { margin: 20px 0 0; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; letter-spacing: -.025em; }
.hero__desc { max-width: 610px; margin: 18px 0 0; color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.08rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-size: .88rem; font-weight: 700; cursor: pointer; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #060606; }
.btn--light { background: rgba(255,255,255,.7); border-color: var(--line); color: #252525; }
.btn--light:hover { border-color: #aaa; background: #fff; }

.hero__visual { perspective: 1200px; }
.visual-card { position: relative; overflow: hidden; max-width: 450px; margin-left: auto; aspect-ratio: .9; padding: 22px; border: 1px solid #d1d2cf; border-radius: 32px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(224,226,227,.76)); box-shadow: var(--shadow); transform: rotate(2deg); }
.visual-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; bottom: -50px; border-radius: 50%; background: rgba(171,175,179,.22); filter: blur(2px); }
.visual-card__top { display: flex; gap: 7px; }
.visual-card__top span { width: 7px; height: 7px; border-radius: 50%; background: #c0c2c3; }
.visual-card__body { min-height: 62%; display: flex; align-items: center; gap: 20px; }
.visual-mark { display: grid; place-items: center; width: 86px; aspect-ratio: 1; border-radius: 24px; background: #171717; color: #fff; font-weight: 800; font-size: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.visual-card__body p { margin: 0; color: var(--muted); font-size: .86rem; }
.visual-card__body strong { display: block; margin-top: 4px; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.04em; }
.visual-card__lines { display: grid; gap: 10px; }
.visual-card__lines i { display: block; height: 9px; border-radius: 99px; background: rgba(99,102,105,.12); }
.visual-card__lines i:nth-child(1) { width: 86%; }
.visual-card__lines i:nth-child(2) { width: 66%; }
.visual-card__lines i:nth-child(3) { width: 78%; }

.slanted-wrap { padding: 22px 0 10px; overflow: hidden; }
.slanted-marquee { width: calc(100% + 40px); margin-left: -20px; background: #292a2b; color: white; transform: rotate(-1.2deg); box-shadow: 0 10px 32px rgba(0,0,0,.09); }
.slanted-track { display: flex; width: max-content; will-change: transform; animation: slantedScroll 28s linear infinite; }
.slanted-track span { flex: 0 0 auto; padding: 13px 26px; white-space: nowrap; font-size: clamp(.78rem, 1.3vw, .95rem); font-weight: 700; letter-spacing: .08em; }
@keyframes slantedScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .contact-card h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.055em; }
.section-heading > p:last-child { max-width: 610px; margin: 16px 0 0; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px, 8vw, 120px); align-items: start; }
.about-grid .section-heading { position: sticky; top: 112px; margin-bottom: 0; }
.about-copy > p { margin: 0; max-width: 720px; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.8; letter-spacing: -.02em; }
.facts { margin: 48px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: #7a7c7a; font-size: .82rem; font-weight: 700; }
.facts dd { margin: 0; font-weight: 600; }

.skill-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 12px; }
.skill-item { min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); transition: transform .28s var(--ease), border-color .28s ease, background .28s ease, box-shadow .28s ease; }
.skill-item img { width: 36px; height: 36px; object-fit: contain; transition: transform .28s var(--ease); }
.skill-item span { font-size: .82rem; font-weight: 700; text-align: center; }
.skill-item:hover { transform: translateY(-4px); border-color: #b9bab7; background: #fafafa; box-shadow: 0 12px 26px rgba(0,0,0,.045); }
.skill-item:hover img { transform: translateY(-2px) scale(1.05); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.project-card { outline: none; cursor: pointer; }
.project-media { overflow: hidden; aspect-ratio: 1.45; border: 1px solid var(--line); border-radius: 18px; background: #eceeed; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .project-media img, .project-card:focus-visible .project-media img { transform: scale(1.025); }
.project-card:focus-visible .project-media { box-shadow: 0 0 0 3px rgba(30,30,30,.14); }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 8px; color: #7c7e7c; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.project-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.project-card > p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.award-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.award-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); cursor: pointer; outline: none; transition: transform .28s var(--ease), border-color .28s ease, box-shadow .28s ease; }
.award-card img { aspect-ratio: 1.46; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.award-card div { padding: 16px; }
.award-card h3 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }
.award-card p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.award-card:hover, .award-card:focus-visible { transform: translateY(-4px); border-color: #b8b9b7; box-shadow: 0 14px 32px rgba(20,20,20,.055); }

.brands { overflow: hidden; }
.brand-marquee { width: 100%; overflow: hidden; padding: 7px 0; }
.brand-track { display: flex; width: max-content; will-change: transform; animation: brandsLeft 34s linear infinite; }
.brand-marquee--right .brand-track { animation-name: brandsRight; }
.brand-set { display: flex; flex: 0 0 auto; gap: 12px; padding-right: 12px; }
.brand-chip { width: 220px; min-height: 92px; flex: 0 0 220px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); filter: grayscale(1); opacity: .74; transition: filter .25s ease, opacity .25s ease, transform .25s ease, background .25s ease, border-color .25s ease; }
.brand-chip img { width: auto; max-width: 92px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand-chip span { font-size: 13px; line-height: 1.25; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand-chip:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); background: #fff; border-color: #c9cdd1; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
@keyframes brandsLeft { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes brandsRight { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }

.contact { padding-top: 40px; }
.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: end; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(225,227,229,.72)); box-shadow: var(--shadow); }
.contact-card p:not(.eyebrow) { max-width: 620px; margin: 16px 0 0; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #cfd0ce; border-radius: 12px; background: rgba(255,255,255,.75); font-size: .85rem; font-weight: 700; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.contact-link svg { width: 17px; height: 17px; fill: currentColor; }
.contact-link:hover { transform: translateY(-2px); background: #fff; border-color: #aaa; }
.footer { padding: 36px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .24s ease, visibility .24s ease; }
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,15,15,.54); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal__panel { position: relative; z-index: 1; width: min(960px, 100%); max-height: min(88vh, 900px); overflow: auto; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: #f7f7f6; box-shadow: 0 32px 90px rgba(0,0,0,.24); transform: scale(.96) translateY(8px); opacity: 0; transition: transform .3s var(--ease), opacity .3s ease; }
.modal.is-open .modal__panel { transform: scale(1) translateY(0); opacity: 1; }
.modal__panel--project { display: grid; grid-template-columns: 1.06fr .94fr; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: rgba(255,255,255,.9); font-size: 1.45rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.modal__media { min-height: 520px; background: #e6e8e9; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__content { padding: clamp(26px, 4vw, 46px); }
.modal__meta { display: flex; justify-content: space-between; gap: 18px; color: #7a7c7a; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.modal__content h2 { margin: 16px 0 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; letter-spacing: -.05em; }
.modal__content > p { color: var(--muted); }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tech-list span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .74rem; font-weight: 700; }
.modal__actions { display: flex; gap: 9px; margin-top: 28px; }
#projectModalLink.is-disabled { opacity: .48; cursor: not-allowed; }
#projectModalLink.is-disabled:hover { transform: none; }
.modal__panel--award { width: min(900px, 100%); }
.award-modal__image { padding: 18px 18px 0; }
.award-modal__image img { width: 100%; max-height: 54vh; object-fit: contain; border: 1px solid var(--line); border-radius: 16px; background: white; }
.achievement { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #303130 !important; font-weight: 600; }
.award-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 1200; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 10px 14px; border-radius: 10px; background: #171717; color: #fff; font-size: .82rem; font-weight: 600; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1060px) {
  .skill-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .hero__grid { grid-template-columns: 1fr .72fr; gap: 50px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: calc(100% + 8px); left: 15px; right: 15px; display: grid; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(250,250,249,.96); backdrop-filter: blur(18px); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease); }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu a { padding: 12px 10px; border-radius: 10px; }
  .nav-menu a:hover { background: #f0f0ef; }
  .nav-menu a::after { display: none; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid .section-heading { position: static; }
  .skill-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .project-grid, .award-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-card { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { justify-content: flex-start; }
  .modal__panel--project { grid-template-columns: 1fr; }
  .modal__media { min-height: 0; aspect-ratio: 1.5; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 48px; padding-bottom: 74px; }
  .hero h1 { font-size: clamp(3.15rem, 18vw, 5rem); }
  .hero__actions .btn { flex: 1 1 145px; }
  .slanted-track { animation-duration: 24s; }
  .facts div { grid-template-columns: 95px 1fr; }
  .skill-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  .skill-item { min-height: 104px; padding: 14px 8px; }
  .skill-item img { width: 32px; height: 32px; }
  .project-grid, .award-grid { grid-template-columns: 1fr; }
  .project-media { aspect-ratio: 1.55; }
  .brand-chip { width: 190px; flex-basis: 190px; padding: 12px 14px; gap: 10px; }
  .brand-chip img { max-width: 74px; height: 42px; }
  .brand-chip span { font-size: 12px; }
  .footer__inner { flex-direction: column; gap: 6px; }
  .modal { padding: 10px; }
  .modal__panel { max-height: 92vh; border-radius: 18px; }
  .modal__content { padding: 24px 18px; }
  .modal__actions { flex-direction: column; }
  .award-nav { flex-direction: column; }
}

@media (max-width: 360px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .nav { min-height: 68px; }
  .brand span { font-size: .95rem; }
  .hero__desc { font-size: .94rem; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

body {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}