html,
body {
  width: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
}

main,
.cover,
.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
}

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

h1,
h2,
h3,
h4,
.cover-title-part,
.contents-list a,
.chapter-title-wrap h2,
.hire-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-optical-sizing: auto;
}

p { line-height: 1.55; }

/* COVER */
.cover {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: 20px var(--gutter) 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(53, 88, 255, 0.06), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(255, 107, 74, 0.09), transparent 26%),
    var(--paper);
}

.cover-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cover-nationality { margin-left: auto; }

.cover-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 660px;
}

.cover-wordmark-label {
  position: absolute;
  top: 16%;
  left: 50%;
  z-index: 6;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
}

.cover-title {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.cover-title-part {
  position: relative;
  z-index: 2;
  font-size: clamp(98px, 16vw, 245px);
  line-height: 0.82;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.cover-title-left {
  justify-self: end;
  color: var(--ink);
}

.cover-title-right {
  justify-self: start;
  color: var(--blue);
  -webkit-text-stroke: 2px var(--ink);
}

.cover-character-frame {
  position: relative;
  z-index: 4;
  width: clamp(170px, 22vw, 330px);
  aspect-ratio: 1.12 / 0.92;
  margin-inline: 10px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 28px 28px 10px 10px;
  background:
    linear-gradient(135deg, var(--yellow) 0 50%, var(--coral) 50% 100%);
  transform: rotate(-2deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.cover-character-frame img { object-fit: contain; }

.cover-decoration {
  position: absolute;
  z-index: 5;
  user-select: none;
}

.cover-decoration-eyes {
  left: 9%;
  bottom: 17%;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  font-size: 32px;
  transform: rotate(8deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.cover-decoration-star {
  right: 9%;
  bottom: 23%;
  color: var(--yellow);
  font-size: clamp(38px, 5vw, 66px);
  -webkit-text-stroke: 2px var(--ink);
}

.cover-decoration-card {
  left: 33%;
  top: 23%;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--lavender);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.7vw, 23px);
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.cover-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cover-edition { margin-inline: auto; }

.cover-scroll-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 24px;
}

/* PROFILE FULL SCREEN */
.profile-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 0.95fr 1.25fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 24px clamp(24px, 3vw, 48px);
  align-content: start;
  padding: 24px var(--gutter) 34px;
  border-top: 12px solid var(--blue);
  background:
    linear-gradient(
      90deg,
      rgba(53, 88, 255, 0.035) 0 1px,
      transparent 1px 100%
    ) 0 0 / 40px 40px,
    var(--paper);
}

.profile-page::before {
  display: none;
}

.profile-page-header {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  min-height: 0;
  padding: 0 0 16px;
  border-bottom: 2px solid var(--ink);
}

.profile-page-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-page-header h2 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.profile-page-header p {
  max-width: 420px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.profile-page-kicker {
  display: block;
  margin: 0;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.profile-column { min-width: 0; }

.profile-avatar-frame {
  aspect-ratio: 1.3 / 1;
  margin-bottom: 10px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 24px 24px 10px 10px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--coral) 0 18px,
      var(--paper) 18px 36px
    );
  box-shadow: 5px 5px 0 var(--ink);
}

.profile-avatar-frame img { object-fit: contain; }

.profile-summary {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
}

.profile-block + .profile-block { margin-top: 17px; }

.profile-block h2 {
  margin-bottom: 11px;
  font-size: clamp(27px, 2.75vw, 39px);
  line-height: 0.95;
}

.profile-block h3 {
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.profile-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-sticker {
  padding: 7px 12px;
  border: 3px solid var(--ink);
  border-radius: 9px;
  background: var(--lavender);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  transform: rotate(6deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.profile-contact-list {
  display: grid;
  gap: 5px;
  font-size: 11px;
}

.profile-contact-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 7px;
}

.profile-contact-row dt { font-weight: 800; }

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
}

.profile-socials a { border-bottom: 2px solid var(--blue); }

.software-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.software-item {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 48px;
  font-size: 8px;
  text-align: center;
}

.software-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.timeline-entry + .timeline-entry { margin-top: 11px; }

.timeline-entry {
  position: relative;
  padding-left: 21px;
}

.timeline-entry::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  background: var(--yellow);
}

.timeline-entry::after {
  position: absolute;
  top: 17px;
  bottom: -17px;
  left: 4px;
  width: 2px;
  content: "";
  background: var(--ink);
}

.timeline-entry:last-child::after { display: none; }

.timeline-year,
.education-entry time {
  display: block;
  margin-bottom: 2px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
}

.timeline-entry p,
.education-entry p {
  color: var(--muted);
  font-size: 11px;
}

.timeline-entry-current {
  padding: 11px 13px 11px 30px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.timeline-entry-current::before {
  top: 15px;
  left: 10px;
}

.timeline-entry-current::after { display: none; }

.education-entry {
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: rgba(53, 88, 255, 0.06);
}

.plain-list {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}

.plain-list li::before {
  margin-right: 8px;
  color: var(--coral);
  content: "•";
}

.profile-personality {
  position: relative;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: rgba(255, 216, 74, 0.32);
}

.profile-personality-character {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 42px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-list li {
  display: grid;
  min-width: 52px;
  justify-items: center;
  gap: 3px;
  padding: 7px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-size: 8px;
}

.interest-list li span:first-child { font-size: 18px; }

/* REMAINING PORTFOLIO */
.portfolio-contents {
  min-height: 100svh;
  padding: 42px var(--gutter);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.15), transparent 20%),
    var(--blue);
}

.contents-label {
  margin-bottom: 70px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.contents-list {
  display: grid;
  gap: 12px;
}

.contents-list a {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(22px, 3vw, 54px);
  align-items: center;
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1.06;
}

.contents-list a > span:first-child {
  display: block;
  min-width: 2.35ch;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1em;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: right;
}

.contents-list a > span:last-child {
  min-width: 0;
}

.contents-list a:hover { color: var(--yellow); }

.contents-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 76px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.contents-footer a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
}

.chapter-intro {
  padding: 100px var(--gutter) 62px;
  text-align: center;
  background: var(--paper);
}

.chapter-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.chapter-title-wrap h2 {
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.95;
}

.chapter-sticker { font-size: clamp(28px, 4vw, 52px); }

.chapter-intro > p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
}

.project-case,
.social-project,
.thumbnail-project,
.other-projects {
  padding: 56px var(--gutter);
  background: var(--paper);
}

.project-case + .project-case { border-top: 2px solid var(--ink); }

.project-case-header,
.social-project-header,
.thumbnail-project-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.project-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.project-case-title {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: end;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}

.project-case-title h3,
.social-project-header h3,
.thumbnail-project-header h3 {
  margin-top: 4px;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 0.96;
}

.project-category {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  font-size: 11px;
}

.project-meta dt { color: var(--muted); font-weight: 800; }
.project-meta dd { margin-top: 2px; font-weight: 700; }

.project-summary,
.project-process,
.project-reflection {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  padding-block: 24px;
}

.project-summary h4,
.project-process h4,
.project-reflection h4 { font-size: 24px; }

.project-summary p,
.project-reflection p { color: var(--muted); }

.project-image-grid,
.video-process-grid,
.ai-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-block: 20px;
}

.project-media {
  min-height: 260px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #e8e5de;
}

.project-media-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 540px;
}

.project-media-wide { grid-column: span 2; }

.project-process-list,
.ai-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.project-process-list li,
.ai-process-step {
  min-height: 170px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
}

.project-process-list li:nth-child(even),
.ai-process-step:nth-child(even) {
  background: rgba(255, 216, 74, 0.55);
}

.project-process-list span,
.ai-step-number {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
}

.project-process-list p,
.ai-process-step p {
  color: var(--muted);
  font-size: 11px;
}

.chapter-divider {
  height: 14px;
  background: var(--blue);
}

.social-post-grid,
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.social-post-card,
.thumbnail-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #e8e5de;
}

.social-post-card { aspect-ratio: 1 / 1; }
.thumbnail-card { aspect-ratio: 16 / 9; }

.video-feature,
.motion-showcase-grid video {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
}

.video-feature video { width: 100%; }

.motion-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.other-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.other-project-card figure {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #e8e5de;
}

.other-project-card h3 { font-size: 25px; }
.other-project-card p { color: var(--muted); font-size: 11px; }

.hire-section {
  padding: 110px var(--gutter);
  background: var(--coral);
  text-align: center;
}

.hire-section h2 {
  font-size: clamp(58px, 9vw, 128px);
  line-height: 0.84;
}

.hire-section > p {
  max-width: 700px;
  margin: 24px auto 0;
  font-weight: 700;
}

.hire-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hire-button {
  display: inline-flex;
  min-width: 145px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
}

.hire-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 34px;
  font-style: normal;
  font-weight: 700;
}

.site-footer {
  padding: 30px var(--gutter);
  color: #fff;
  background: var(--ink);
}

.site-footer-main {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer-main nav {
  display: flex;
  gap: 16px;
  font-size: 11px;
}

.site-footer-note {
  margin-top: 18px;
  color: #aaa;
  font-size: 10px;
}
