@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap
}

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-600.ttf') format('truetype');
  font-weight: 500 650;
  font-display: swap
}

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-800.ttf') format('truetype');
  font-weight: 700 1000;
  font-display: swap
}

:root {
  --paper: #fffcf7;
  --ink: #202126;
  --muted: #696a73;
  --blue: #b9ddf5;
  --blue-soft: #edf7fd;
  --blue-ink: #38617e;
  --line: #202126;
  --card: #fff;
  --nav: #fffcf7;
  --shadow: 4px 4px 0 #202126;
  --soft-line: #deddd8;
  color-scheme: light
}

[data-theme=dark] {
  --paper: #20252e;
  --ink: #f3f3ef;
  --muted: #bbc1cd;
  --blue: #b9ddf5;
  --blue-soft: #283642;
  --blue-ink: #b9ddf5;
  --line: #11161d;
  --card: #303845;
  --nav: #20252e;
  --shadow: 4px 4px 0 #10141a;
  --soft-line: #485364;
  color-scheme: dark
}

* {
  box-sizing: border-box
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

body.dialog-open {
  overflow: hidden
}

button,
input,
select {
  font: inherit
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent
}

button {
  color: inherit;
  cursor: pointer
}

a {
  color: inherit;
  text-decoration: none
}

button {
  border: 0
}

button:disabled {
  cursor: not-allowed;
  opacity: .4
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 5px
}

::selection {
  background: var(--blue);
  color: #202126
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2,
h3 {
  line-height: 1.2
}

img {
  display: block;
  width: 100%;
  object-fit: cover
}

svg {
  display: block
}

[hidden] {
  display: none !important
}

.wrap {
  width: min(1160px, calc(100% - 104px));
  margin-inline: auto
}

.section {
  padding-block: 85px
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper)
}

.skip-link:focus {
  top: 12px
}

/* Navigation */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav);
  border-bottom: 2px solid var(--line)
}

.nav-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0
}

.brand-name {
  display: grid;
  gap: 2px;
  padding: 5px 8px 4px;
  background: #b9ddf5;
  border: 2px solid #1b1b1f;
  box-shadow: 3px 3px 0 #1b1b1f;
  color: #1b1b1f;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-2deg)
}

.brand-name strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .7px
}

.brand-name small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .5px
}

.nav-links a {
  padding-block: 8px;
  position: relative
}

.nav-links a:after {
  position: absolute;
  content: '';
  height: 5px;
  background: var(--blue);
  left: 0;
  bottom: 3px;
  width: 100%;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s
}

.nav-links a:hover:after,
.nav-links a[aria-current]:after {
  transform: scaleX(1)
}

.nav-links a[aria-current] {
  font-weight: 700
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center
}

.icon-button {
  width: 37px;
  height: 37px;
  background: transparent;
  border-radius: 5px;
  display: grid;
  place-items: center
}

.icon-button:hover {
  background: var(--blue);
  color: #202126
}

.small-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blue);
  color: #202126;
  font-size: 12px;
  letter-spacing: .5px;
  font-weight: 650;
  padding: 9px 16px;
  border: 2px solid #202126;
  border-radius: 5px;
  box-shadow: 3px 3px 0 #202126;
  transition: transform .15s, box-shadow .15s
}

.small-cta .icon {
  width: 16px;
  height: 16px
}

.small-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #202126
}

.sun-icon {
  display: none
}

[data-theme=dark] .sun-icon {
  display: block
}

[data-theme=dark] .moon-icon {
  display: none
}

.menu-toggle {
  display: none
}

.mobile-menu {
  padding: 16px 26px 23px;
  border-top: 2px solid var(--line);
  background: var(--paper)
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px
}

/* Pastel-blue introduction, inspired by the supplied neubrutalism reference. */
.hero {
  background: var(--blue-soft);
  border-bottom: 2px solid var(--line);
  overflow: hidden
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 78px;
  min-height: 540px;
  padding-block: 65px 56px
}

.hero-greeting {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1.9px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px
}

.wave {
  font-size: 25px;
  display: inline-block;
  transform: rotate(15deg);
  transform-origin: 70% 80%;
  animation: wave 1.4s ease .3s
}

.hero h1 {
  font-size: 64px;
  letter-spacing: -2px;
  line-height: 1.13;
  font-weight: 800;
  max-width: 700px
}

.hero h1>span {
  color: var(--blue-ink);
  display: inline
}

.hero h1 .name-dot {
  color: var(--ink)
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
  margin-top: 24px
}

.role-line {
  height: 2px;
  background: var(--ink);
  width: 70px;
  flex-shrink: 0
}

.hero-description {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 420px;
  margin-top: 21px
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .2px;
  border: 2px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--line)
}

.button:active {
  transform: translate(4px, 4px);
  box-shadow: none
}

.button .icon {
  width: 17px;
  height: 17px
}

.button-blue {
  background: var(--blue);
  color: #202126
}

.button-white,
.button-outline {
  background: var(--card)
}

.button-dark {
  background: var(--ink);
  color: var(--paper)
}

.hero-small {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  letter-spacing: .4px;
  color: var(--muted);
  margin-top: 28px
}

.small-star {
  font-size: 23px;
  color: var(--blue-ink);
  line-height: 1
}

.hero-visual {
  position: relative;
  width: 350px;
  justify-self: center;
  padding-block: 24px
}

.portrait-kicker {
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 600;
  transform: rotate(-6deg)
}

.portrait-frame {
  width: 326px;
  height: 326px;
  border: 2.5px solid #202126;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 8px 7px 0 #202126;
  background: #f2f0e8;
  position: relative
}

.portrait-frame>img {
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.7);
  transform-origin: center 25%
}

.portrait-art {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--blue);
  color: #202126
}

.portrait-art>span {
  font-size: 152px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -18px;
  margin-right: 17px
}

.portrait-art>small {
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 15px
}

.portrait-star {
  position: absolute;
  right: -12px;
  top: -3px;
  width: 106px;
  height: 106px;
  color: var(--blue);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(5deg)
}

.portrait-zigzag {
  position: absolute;
  left: -34px;
  bottom: 43px;
  width: 117px;
  height: 62px;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(7deg)
}

.portrait-label {
  position: absolute;
  bottom: -3px;
  right: -17px;
  transform: rotate(-6deg);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--line);
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: .5px;
  font-weight: 600;
  display: flex;
  gap: 9px
}

.portrait-label>span {
  color: var(--blue-ink)
}

.hero-orbit {
  position: absolute;
  left: -50px;
  top: 34px;
  font-size: 36px;
  line-height: 1;
  transform: rotate(18deg);
  font-weight: 400
}

.hero-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--muted);
  border-top: 1px solid var(--soft-line);
  padding-block: 15px
}

.hero-bottomline a {
  display: flex;
  gap: 12px;
  align-items: center
}

.hero-bottomline .icon {
  width: 12px;
  height: 12px
}

/* Consistent centered headings and hard-shadow cards. */
.section-heading {
  margin-bottom: 40px
}

.centered {
  text-align: center
}

.section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin-bottom: 13px
}

.section-heading h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .3px
}

.section-heading h2>span {
  color: var(--blue-ink)
}

.heading-underline {
  display: block;
  width: 78px;
  border-bottom: 5px dashed var(--blue);
  margin: 12px auto 0
}

.section-description {
  font-size: 12px;
  color: var(--muted);
  margin-top: 19px
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px
}

.service-card {
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 27px 26px 22px;
  background: var(--card);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column
}

.service-card:hover {
  transform: translate(-3px, -4px) rotate(-.5deg);
  box-shadow: 7px 8px 0 var(--line)
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #202126;
  border: 1.8px solid #202126;
  border-radius: 9px;
  box-shadow: 2px 2px 0 #202126;
  margin-bottom: 24px;
  transform: rotate(-5deg)
}

.service-icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.7
}

.purple {
  background: #cfc0ee
}

.pink {
  background: #edbadc
}

.green {
  background: #b6dfc9
}

.service-card h3 {
  font-size: 19px;
  letter-spacing: .2px;
  font-weight: 700;
  margin-bottom: 11px
}

.service-card>p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  flex: 1
}

.service-footer {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: .7px;
  font-weight: 600;
  border-top: 1px solid var(--soft-line);
  padding-top: 17px;
  gap: 12px
}

.service-footer .icon {
  width: 15px;
  height: 15px
}

/* Skill groups */
.skills-section {
  background: var(--blue-soft);
  border-block: 2px solid var(--line);
  padding-block: 68px
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  max-width: 970px;
  margin: auto
}

.skill-group {
  min-width: 0
}

.skill-group h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px
}

.skill-group h3>span {
  font-size: 9px;
  color: var(--muted)
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 25px;
  box-shadow: 2px 2px 0 var(--line);
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 600;
  transition: transform .2s, background .2s
}

.skill-tag:hover {
  transform: translateY(-4px) rotate(-3deg);
  background: var(--blue);
  color: #202126
}

.skill-symbol {
  font-family: monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--blue-ink)
}

.section-footnote {
  text-align: center;
  font-size: 10px;
  letter-spacing: .6px;
  color: var(--muted);
  margin-top: 37px
}

.section-footnote>span {
  color: var(--blue-ink);
  margin-right: 6px
}

/* Experience */
.experience-list {
  max-width: 980px;
  margin: auto
}

.experience-row {
  border-top: 1.5px solid var(--soft-line)
}

.experience-row:last-child {
  border-bottom: 1.5px solid var(--soft-line)
}

.experience-row summary {
  list-style: none;
  display: grid;
  grid-template-columns: 34px 1fr 200px 34px;
  align-items: center;
  gap: 21px;
  padding-block: 26px;
  cursor: pointer
}

.experience-row summary::-webkit-details-marker {
  display: none
}

.experience-index {
  font-size: 10px;
  color: var(--muted);
  align-self: start;
  padding-top: 3px
}

.experience-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1px;
  line-height: 1.35
}

.experience-company {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: 5px
}

.experience-date {
  font-size: 11px;
  text-align: right;
  color: var(--muted)
}

.experience-plus {
  width: 31px;
  height: 31px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: background .2s
}

.experience-row[open] .experience-plus {
  background: var(--blue);
  color: #202126;
  font-size: 0
}

.experience-row[open] .experience-plus:after {
  content: '−';
  font-size: 22px
}

.experience-body {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
  color: var(--muted);
  padding: 0 88px 28px 55px;
  max-width: 900px
}

/* Selected work carousel */
.projects-section {
  background: var(--blue-soft);
  border-block: 2px solid var(--line)
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px
}

.project-count {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted)
}

.project-filters {
  display: flex;
  align-items: center;
  gap: 11px
}

.project-filters label {
  font-size: 10px;
  color: var(--muted)
}

.project-filters select {
  font-size: 11px;
  max-width: 200px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 8px 25px 8px 11px;
  border-radius: 4px;
  cursor: pointer
}

.project-card {
  display: grid;
  grid-template-columns: .9fr 1.15fr;
  gap: 70px;
  align-items: center;
  min-width: 0
}

.project-cover {
  display: block;
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 1.48;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--line);
  background: var(--card);
  padding: 0;
  transition: transform .2s, box-shadow .2s
}

.project-cover:hover {
  transform: translate(-2px, -3px);
  box-shadow: 7px 8px 0 var(--line)
}

.project-cover>img {
  height: 100%;
  object-fit: cover;
  transition: transform .5s
}

.project-cover:hover>img {
  transform: scale(1.035)
}

.project-number {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--ink)
}

.project-open {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 37px;
  height: 37px;
  background: var(--blue);
  color: #202126;
  border: 1.5px solid #202126;
  box-shadow: 2px 2px 0 #202126;
  border-radius: 4px;
  display: grid;
  place-items: center
}

.project-info {
  grid-column: 1;
  grid-row: 1;
  min-width: 0
}

.project-info-top {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px
}

.project-info h3 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.6px;
  overflow-wrap: anywhere
}

.project-info h3 button {
  font: inherit;
  letter-spacing: inherit;
  background: transparent;
  text-align: left;
  padding: 0
}

.project-type {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--blue-ink);
  font-weight: 600
}

.project-description {
  font-size: 13px;
  line-height: 1.85;
  margin-top: 18px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.tech-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px
}

.tech-tag {
  font-size: 9px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--soft-line);
  border-radius: 3px;
  padding: 4px 9px;
  color: var(--muted)
}

.project-detail-button {
  margin-top: 26px;
  font-size: 11px;
  padding: 10px 15px;
  gap: 23px
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 40px
}

.carousel-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--line);
  transition: background .2s, transform .2s
}

.carousel-arrow .icon {
  width: 15px;
  height: 15px
}

.carousel-arrow:hover {
  background: var(--blue);
  color: #202126;
  transform: translateY(-2px)
}

.project-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center
}

.project-dot {
  width: 24px;
  height: 24px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0
}

.project-dot:before {
  content: '';
  display: block;
  width: 22px;
  height: 7px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px
}

.project-dot[aria-pressed=true]:before {
  background: var(--blue);
  box-shadow: 1px 1px 0 var(--line)
}

.project-art {
  width: 100%;
  height: 100%;
  background: #d8edfa;
  color: #202126;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 45px;
  position: relative;
  isolation: isolate;
  overflow: hidden
}

.project-art:before {
  content: '';
  width: 230px;
  height: 230px;
  position: absolute;
  border: 35px solid #b9ddf5;
  border-radius: 50%;
  right: -80px;
  bottom: -130px;
  z-index: -1
}

.project-art-label {
  font-size: 9px;
  letter-spacing: 2px
}

.project-art-name {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  overflow-wrap: anywhere;
  max-width: 100%
}

.project-art-code {
  font-family: monospace;
  font-size: 30px;
  opacity: .4
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  padding-block: 100px
}

.about-art {
  position: relative
}

.code-window {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--line);
  transform: rotate(-3deg)
}

.window-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 2px solid var(--line);
  background: var(--blue);
  color: #202126;
  border-radius: 4px 4px 0 0
}

.window-top i {
  width: 8px;
  height: 8px;
  border: 1px solid #202126;
  border-radius: 50%;
  background: #fffcf7
}

.window-top>span {
  font-family: monospace;
  font-size: 10px;
  margin-left: auto
}

.code-content {
  padding: 25px 24px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.9;
  white-space: nowrap
}

.code-comment {
  color: var(--muted)
}

.code-purple {
  color: #99619e
}

.code-blue {
  color: var(--blue-ink)
}

.about-sticker {
  position: absolute;
  right: -24px;
  bottom: -20px;
  transform: rotate(8deg);
  border: 2px solid #202126;
  border-radius: 4px;
  background: #cfc0ee;
  color: #202126;
  box-shadow: 3px 3px 0 #202126;
  padding: 11px 14px;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: .5px
}

.about-copy h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 10px
}

.about-copy h2>span {
  color: var(--blue-ink)
}

.about-fullname {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 21px
}

.body-copy {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted)
}

.about-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px
}

.text-link {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px
}

.text-link .icon {
  width: 15px;
  height: 15px
}

.text-link:hover {
  color: var(--blue-ink)
}

.profile-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px
}

.profile-status button {
  font-size: inherit;
  text-decoration: underline;
  margin-left: 6px;
  padding: 0;
  background: none
}

/* Contact */
.contact-section {
  padding-bottom: 85px
}

.contact-panel {
  border: 2px solid var(--line);
  background: var(--blue-soft);
  box-shadow: 6px 6px 0 var(--line);
  border-radius: 5px;
  padding: 56px 45px 42px;
  position: relative;
  text-align: center
}

.contact-panel h2 {
  font-size: 34px;
  letter-spacing: .4px;
  line-height: 1.35
}

.contact-panel h2>span {
  color: var(--blue-ink)
}

.contact-description {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px
}

.contact-star {
  position: absolute;
  left: 45px;
  top: 40px;
  width: 69px;
  height: 69px;
  color: var(--blue);
  transform: rotate(12deg)
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 26px
}

.contact-actions .button {
  font-size: 11px;
  padding: 11px 15px;
  overflow-wrap: anywhere;
  max-width: 100%
}

.contact-placeholder {
  font-size: 12px;
  color: var(--muted)
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 23px
}

.social-links a {
  display: flex;
  gap: 7px;
  align-items: center
}

.social-links .icon {
  width: 12px;
  height: 12px
}

.social-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

.footer {
  background: #202126;
  color: #fffcf7;
  border-top: 2px solid #202126
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 23px
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0
}

.footer-brand .brand-logo {
  width: 36px;
  height: 36px
}

.footer p {
  font-size: 9px;
  letter-spacing: .3px;
  color: #c5c7cc
}

.back-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px
}

.back-top .icon {
  width: 15px;
  height: 15px
}

/* Loading, dialog and feedback */
.data-state {
  grid-column: 1/-1;
  padding: 43px 24px;
  border: 1.5px dashed var(--muted);
  border-radius: 5px;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: var(--card);
  font-size: 12px;
  color: var(--muted)
}

.data-state strong {
  font-size: 16px;
  color: var(--ink)
}

.state-symbol {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--blue-ink)
}

.retry-button {
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--blue);
  color: #202126;
  font-size: 11px;
  box-shadow: 2px 2px 0 var(--line)
}

.loader {
  width: 23px;
  height: 23px;
  border: 2px solid var(--soft-line);
  border-top-color: var(--blue-ink);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

.project-dialog {
  width: min(760px, calc(100% - 34px));
  max-height: 88dvh;
  overscroll-behavior: contain;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 #101419
}

.project-dialog::backdrop {
  background: #151a25b8;
  backdrop-filter: blur(4px)
}

.dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: 1.5px solid var(--line);
  background: var(--card);
  box-shadow: 2px 2px 0 var(--line);
  z-index: 5;
  width: 38px;
  height: 38px
}

#dialog-visual {
  width: 100%;
  aspect-ratio: 1.9;
  max-height: 380px;
  overflow: hidden;
  border-bottom: 2px solid var(--line)
}

#dialog-visual>img {
  height: 100%;
  object-fit: contain;
  background: var(--card)
}

.dialog-copy {
  padding: 31px 34px 35px
}

.dialog-copy h2 {
  font-size: 33px;
  line-height: 1.2;
  overflow-wrap: anywhere
}

.dialog-copy .section-label {
  margin-bottom: 12px
}

#dialog-description {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 22px
}

.dialog-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: var(--blue);
  color: #202126;
  font-size: 12px;
  padding: 13px 20px;
  border: 2px solid #202126;
  border-radius: 5px;
  box-shadow: 4px 4px 0 #202126;
  z-index: 60;
  max-width: calc(100% - 36px);
  text-align: center;
  transition: opacity .2s, transform .2s
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0)
}

.noscript {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: #202126;
  text-align: center;
  font-size: 12px;
  z-index: 40
}

.reveal {
  opacity: 1
}

.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s, transform .55s
}

.reveal.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0)
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes wave {

  20%,
  60% {
    transform: rotate(30deg)
  }

  40%,
  80% {
    transform: rotate(-4deg)
  }
}

@media(min-width:1450px) {
  .hero-stage {
    min-height: 570px;
    gap: 105px
  }

  .hero h1 {
    font-size: 69px
  }

  .hero-visual {
    width: 375px
  }

  .portrait-frame {
    width: 350px;
    height: 350px
  }

  .portrait-star {
    right: -9px;
    top: -5px;
    width: 117px;
    height: 117px
  }
}

@media(max-width:1100px) {
  .wrap {
    width: calc(100% - 72px)
  }

  .nav-links {
    gap: 20px;
    font-size: 11px
  }

  .nav-actions {
    gap: 10px
  }

  .hero-stage {
    gap: 40px;
    min-height: 505px;
    padding-block: 56px
  }

  .hero h1 {
    font-size: 54px
  }

  .hero-visual {
    width: 295px
  }

  .portrait-frame {
    width: 280px;
    height: 280px
  }

  .portrait-star {
    width: 93px;
    height: 93px;
    right: -8px;
    top: 1px
  }

  .portrait-zigzag {
    width: 101px;
    left: -25px;
    bottom: 33px
  }

  .portrait-kicker {
    font-size: 7px;
    left: 20px;
    top: -2px
  }

  .portrait-label {
    right: -9px;
    font-size: 10px;
    padding: 8px 10px
  }

  .hero-greeting {
    font-size: 17px
  }

  .hero-description {
    font-size: 12px
  }

  .hero-role {
    font-size: 10px;
    gap: 12px;
    letter-spacing: .6px
  }

  .role-line {
    width: 45px
  }

  .hero-buttons {
    gap: 12px
  }

  .button {
    font-size: 11px;
    padding: 11px 15px;
    gap: 15px
  }

  .service-card {
    padding: 23px 20px 20px
  }

  .service-card h3 {
    font-size: 17px
  }

  .service-card>p {
    font-size: 11px
  }

  .service-footer {
    font-size: 7px
  }

  .skills-grid {
    gap: 27px
  }

  .project-card {
    gap: 44px
  }

  .project-info h3 {
    font-size: 30px
  }

  .project-description {
    font-size: 12px
  }

  .about {
    gap: 60px
  }

  .code-content {
    font-size: 10px;
    padding: 24px 19px
  }

  .about-copy h2 {
    font-size: 30px
  }

  .contact-star {
    left: 30px;
    width: 60px;
    height: 60px
  }
}

@media(max-width:850px) {
  .nav-inner {
    height: 78px
  }

  .nav-links {
    display: none
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px
  }

  .menu-toggle>span {
    height: 2px;
    width: 18px;
    background: var(--ink);
    transition: transform .2s
  }

  .menu-toggle[aria-expanded=true]>span:first-child {
    transform: translateY(4px) rotate(45deg)
  }

  .menu-toggle[aria-expanded=true]>span:last-child {
    transform: translateY(-4px) rotate(-45deg)
  }

  .hero-stage {
    gap: 30px;
    grid-template-columns: 1.15fr 1fr;
    min-height: 490px
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -1.6px
  }

  .hero-visual {
    width: 250px
  }

  .portrait-frame {
    width: 235px;
    height: 235px;
    box-shadow: 6px 6px 0 #202126
  }

  .portrait-star {
    width: 80px;
    height: 80px;
    right: 0;
    top: 2px
  }

  .portrait-zigzag {
    width: 91px;
    bottom: 30px;
    left: -20px
  }

  .portrait-label {
    font-size: 8px;
    right: 0;
    padding: 7px 9px;
    bottom: 0
  }

  .portrait-kicker {
    font-size: 6px;
    letter-spacing: 1.3px;
    top: 1px;
    left: 15px
  }

  .hero-orbit {
    font-size: 28px;
    left: -23px;
    top: 34px
  }

  .hero-greeting {
    font-size: 15px;
    margin-bottom: 17px
  }

  .hero-description {
    font-size: 11px;
    margin-top: 17px
  }

  .hero-role {
    font-size: 9px;
    letter-spacing: .3px;
    gap: 10px;
    margin-top: 20px
  }

  .role-line {
    width: 30px
  }

  .hero-small {
    font-size: 8px;
    gap: 7px
  }

  .hero-buttons {
    gap: 10px;
    margin-top: 24px
  }

  .hero-buttons .button {
    font-size: 10px;
    padding: 10px 12px;
    gap: 8px
  }

  .hero-buttons .icon {
    width: 14px;
    height: 14px
  }

  .section {
    padding-block: 65px
  }

  .service-grid {
    gap: 18px
  }

  .service-card {
    padding: 20px 15px 17px
  }

  .service-card h3 {
    font-size: 16px;
    line-height: 1.3
  }

  .service-card>p {
    font-size: 11px
  }

  .service-icon {
    width: 39px;
    height: 39px;
    margin-bottom: 22px
  }

  .service-icon .icon {
    width: 24px;
    height: 24px
  }

  .service-footer {
    letter-spacing: .1px;
    font-size: 6px;
    gap: 5px
  }

  .service-footer .icon {
    width: 12px;
    height: 12px
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px
  }

  .experience-row summary {
    grid-template-columns: 28px 1fr 135px 31px;
    gap: 14px
  }

  .experience-title {
    font-size: 18px
  }

  .experience-date {
    font-size: 9px
  }

  .experience-body {
    padding-left: 42px
  }

  .project-card {
    gap: 30px;
    grid-template-columns: .9fr 1fr
  }

  .project-description {
    -webkit-line-clamp: 3;
    font-size: 11px
  }

  .project-info h3 {
    font-size: 28px
  }

  .project-type {
    font-size: 8px;
    letter-spacing: 1px
  }

  .project-cover {
    aspect-ratio: 1.16
  }

  .project-art-name {
    font-size: 30px
  }

  .about {
    gap: 45px
  }

  .code-content {
    font-size: 8px;
    padding: 22px 14px;
    line-height: 2
  }

  .about-copy h2 {
    font-size: 27px
  }

  .body-copy {
    font-size: 12px
  }

  .about-sticker {
    font-size: 8px;
    padding: 9px 12px;
    right: -15px
  }

  .about-fullname {
    font-size: 8px
  }

  .about-copy .section-label {
    font-size: 8px;
    letter-spacing: 1px
  }

  .text-link {
    font-size: 10px
  }

  .contact-panel {
    padding: 45px 30px 36px
  }

  .contact-panel h2 {
    font-size: 29px
  }

  .contact-star {
    width: 48px;
    height: 48px;
    left: 22px;
    top: 25px
  }

  .footer p {
    font-size: 8px
  }
}

@media(max-width:600px) {
  html {
    scroll-padding-top: 82px
  }

  .wrap {
    width: calc(100% - 44px)
  }

  .nav-inner {
    height: 74px;
    gap: 12px
  }

  .brand-logo {
    width: 36px;
    height: 36px
  }

  .brand {
    gap: 6px
  }

  .brand-name {
    padding: 4px 6px 3px;
    box-shadow: 2px 2px 0 #1b1b1f
  }

  .brand-name strong {
    font-size: 11px
  }

  .brand-name small {
    font-size: 7px
  }

  .nav-actions {
    gap: 7px
  }

  .icon-button {
    width: 30px;
    height: 32px
  }

  .theme-toggle .icon {
    width: 16px;
    height: 16px
  }

  .small-cta {
    font-size: 9px;
    padding: 7px 10px;
    gap: 7px;
    box-shadow: 2px 2px 0 #202126
  }

  .small-cta .icon {
    width: 12px;
    height: 12px
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    gap: 47px;
    padding-block: 42px 37px;
    align-items: stretch;
    min-height: auto
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.13;
    letter-spacing: -1.4px;
    max-width: 340px
  }

  .hero-greeting {
    font-size: 15px;
    letter-spacing: 1.3px;
    margin-bottom: 18px
  }

  .wave {
    font-size: 23px
  }

  .hero-role {
    font-size: 9px;
    margin-top: 20px;
    letter-spacing: .4px;
    gap: 11px
  }

  .role-line {
    width: 34px
  }

  .hero-description {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 18px;
    max-width: 340px
  }

  .hero-buttons {
    gap: 13px;
    margin-top: 25px
  }

  .hero-buttons .button {
    font-size: 10px;
    padding: 11px 14px;
    gap: 12px
  }

  .hero-small {
    font-size: 8px;
    margin-top: 25px;
    letter-spacing: .25px
  }

  .hero-visual {
    align-self: center;
    width: 266px;
    padding-block: 21px 25px;
    margin-bottom: 6px
  }

  .portrait-frame {
    width: 250px;
    height: 250px;
    box-shadow: 6px 6px 0 #202126
  }

  .portrait-star {
    right: -4px;
    top: -1px;
    width: 83px;
    height: 83px
  }

  .portrait-kicker {
    top: -6px;
    left: 15px;
    font-size: 6px;
    letter-spacing: 1.5px
  }

  .portrait-zigzag {
    left: -24px;
    width: 96px;
    bottom: 28px
  }

  .portrait-label {
    right: -4px;
    bottom: 1px;
    font-size: 9px;
    padding: 7px 10px
  }

  .hero-orbit {
    left: -20px;
    top: 31px;
    font-size: 29px
  }

  .portrait-art>span {
    font-size: 135px
  }

  .hero-bottomline {
    font-size: 6px;
    letter-spacing: .7px;
    padding-block: 13px;
    gap: 14px
  }

  .hero-bottomline a {
    gap: 7px;
    white-space: nowrap
  }

  .hero-bottomline .icon {
    width: 10px;
    height: 10px
  }

  .section {
    padding-block: 58px
  }

  .section-heading {
    margin-bottom: 32px
  }

  .section-label {
    font-size: 8px;
    letter-spacing: 1.3px;
    margin-bottom: 10px
  }

  .section-heading h2 {
    font-size: 29px;
    letter-spacing: 0
  }

  .heading-underline {
    width: 67px;
    border-bottom-width: 4px;
    margin-top: 10px
  }

  .section-description {
    font-size: 11px;
    margin-top: 18px
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .service-card {
    padding: 24px
  }

  .service-icon {
    width: 41px;
    height: 41px;
    margin-bottom: 22px
  }

  .service-card h3 {
    font-size: 21px;
    margin-bottom: 10px
  }

  .service-card>p {
    font-size: 12px;
    max-width: 290px
  }

  .service-footer {
    font-size: 8px;
    letter-spacing: .4px;
    margin-top: 22px;
    padding-top: 16px
  }

  .service-footer .icon {
    width: 15px;
    height: 15px
  }

  .skills-grid {
    gap: 25px 16px
  }

  .skill-group h3 {
    font-size: 9px;
    letter-spacing: .6px;
    margin-bottom: 11px;
    gap: 6px
  }

  .skill-group h3>span {
    font-size: 8px
  }

  .skill-tags {
    gap: 8px
  }

  .skill-tag {
    font-size: 9px;
    padding: 6px 9px;
    gap: 6px
  }

  .skill-symbol {
    font-size: 10px
  }

  .section-footnote {
    font-size: 9px;
    margin-top: 32px
  }

  .experience-row summary {
    grid-template-columns: 22px 1fr 28px;
    gap: 10px;
    padding-block: 23px
  }

  .experience-title {
    font-size: 18px
  }

  .experience-company {
    font-size: 11px
  }

  .experience-date {
    grid-row: 2;
    grid-column: 2;
    text-align: left;
    font-size: 9px
  }

  .experience-index {
    font-size: 8px;
    padding-top: 5px
  }

  .experience-plus {
    grid-column: 3;
    grid-row: 1/3;
    width: 28px;
    height: 28px
  }

  .experience-body {
    padding: 0 0 23px 32px;
    font-size: 12px
  }

  .project-toolbar {
    gap: 12px;
    margin-bottom: 28px
  }

  .project-count {
    font-size: 8px;
    letter-spacing: .8px
  }

  .project-filters label {
    font-size: 9px
  }

  .project-filters {
    gap: 7px
  }

  .project-filters select {
    font-size: 10px;
    max-width: 150px;
    padding: 7px 16px 7px 8px
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 29px
  }

  .project-cover {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1.35;
    box-shadow: 4px 4px 0 var(--line)
  }

  .project-info {
    grid-column: 1;
    grid-row: 2
  }

  .project-info h3 {
    font-size: 29px
  }

  .project-info-top {
    gap: 12px
  }

  .project-type {
    font-size: 8px;
    letter-spacing: 1.3px
  }

  .project-description {
    font-size: 12px;
    -webkit-line-clamp: 4;
    margin-top: 14px
  }

  .tech-tags {
    margin-top: 15px
  }

  .tech-tag {
    font-size: 8px;
    padding: 4px 8px
  }

  .project-detail-button {
    margin-top: 21px;
    font-size: 10px;
    padding: 10px 13px
  }

  .carousel-controls {
    margin-top: 32px;
    gap: 20px
  }

  .project-art {
    padding: 32px
  }

  .project-art-name {
    font-size: 32px
  }

  .project-art-label {
    font-size: 8px
  }

  .project-open {
    width: 34px;
    height: 34px;
    right: 13px;
    bottom: 13px
  }

  .project-open .icon {
    width: 18px;
    height: 18px
  }

  .about {
    grid-template-columns: 1fr;
    gap: 57px;
    padding-block: 70px
  }

  .about-art {
    margin-inline: 8px
  }

  .code-content {
    font-size: 10px;
    padding: 24px 19px;
    line-height: 2
  }

  .about-sticker {
    font-size: 9px;
    right: -13px;
    bottom: -20px;
    padding: 10px 14px
  }

  .about-copy h2 {
    font-size: 31px;
    margin-bottom: 11px
  }

  .about-fullname {
    font-size: 9px;
    margin-bottom: 19px
  }

  .body-copy {
    font-size: 12px;
    line-height: 1.9
  }

  .text-link {
    font-size: 10px
  }

  .about-copy .section-label {
    font-size: 8px
  }

  .contact-section {
    padding-bottom: 60px
  }

  .contact-panel {
    padding: 45px 20px 29px;
    box-shadow: 4px 4px 0 var(--line)
  }

  .contact-panel h2 {
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: 0
  }

  .contact-panel h2 br {
    display: none
  }

  .contact-panel .section-label {
    font-size: 6px;
    letter-spacing: .8px;
    margin-bottom: 16px
  }

  .contact-description {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 17px
  }

  .contact-star {
    width: 43px;
    height: 43px;
    top: -22px;
    left: 14px;
    transform: rotate(-8deg)
  }

  .contact-actions {
    gap: 12px;
    margin-top: 22px
  }

  .contact-actions .button {
    font-size: 10px;
    padding: 10px 12px;
    gap: 11px
  }

  .social-links {
    font-size: 10px;
    margin-top: 24px
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding-block: 24px
  }

  .footer p {
    grid-row: 2;
    grid-column: 1/-1;
    font-size: 8px
  }

  .back-top {
    grid-column: 2;
    grid-row: 1;
    font-size: 9px
  }

  .dialog-copy {
    padding: 27px 22px
  }

  .dialog-copy h2 {
    font-size: 27px
  }

  #dialog-visual {
    aspect-ratio: 1.35
  }

  #dialog-description {
    font-size: 12px
  }

  .dialog-close {
    width: 34px;
    height: 34px;
    right: 13px;
    top: 13px
  }

  .dialog-links .button {
    font-size: 10px;
    padding: 10px 12px
  }

  .toast {
    font-size: 11px;
    padding: 12px 16px
  }

  .data-state {
    font-size: 11px;
    padding: 36px 20px
  }

  .data-state strong {
    font-size: 15px
  }
}

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

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important
  }

  .reveal.reveal-ready {
    opacity: 1;
    transform: none
  }

  .loader {
    border-color: var(--blue-ink)
  }
}
