*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #131313;
  --muted: #666;
  --border: #e8e8e8;
  --card-bg: #f5f5f5;
  --accent: #00ac97;
  --container: min(1070px, 83vw);
  --hero-stack-gap: 32px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a:hover {
  opacity: 0.75;
}

.page {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(54px);
  -webkit-backdrop-filter: blur(54px);
  padding: 24px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 15px;
  font-weight: 500;
}

.header-email {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 809px) {
  .header-email {
    display: none;
  }
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.avatar {
  width: 114px;
  height: 114px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-top .avatar {
  flex-shrink: 0;
}

.hero-top .hero-cv-link {
  flex-shrink: 0;
  margin-left: auto;
}

.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-profile .btn-outline {
  margin-top: 4px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--hero-stack-gap);
}

.about-text {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 809px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-top .hero-cv-link {
    margin-left: 0;
  }
}

.focus-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: var(--card-bg);
  border-radius: 12px;
  min-width: 0;
}

.focus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.focus-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.focus-icon--blue {
  background: #0099ff;
}

.focus-icon--green {
  background: #00d26a;
}

.focus-icon--yellow {
  background: #ffcc00;
}

.focus-icon--red {
  background: #ff3b30;
}

.focus-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 809px) {
  .focus-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tools-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.tools-icon--bg {
  background: #000;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 0 16px;
  border: 1px solid var(--text);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
}

.header .btn-outline {
  background-color: var(--bg);
  background-image: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--text) 38%,
    #b8b8b8 46%,
    #ffffff 50%,
    #b8b8b8 54%,
    var(--text) 62%,
    var(--text) 100%
  );
  background-size: 220% 100%;
  background-position: 120% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: btn-text-shimmer 2.6s ease-in-out infinite;
}

.header .btn-outline:hover {
  opacity: 1;
}

@keyframes btn-text-shimmer {
  0% {
    background-position: 120% center;
  }

  100% {
    background-position: -120% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header .btn-outline {
    animation: none;
    background-image: none;
    color: var(--text);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 24px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.status-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

/* Projects */
.projects {
  padding: 64px 0 80px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-visual {
  position: relative;
  aspect-ratio: 1.76 / 1;
  background: var(--card-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-visual img {
  width: 55%;
  max-height: 60%;
  object-fit: contain;
}

.project-visual--cover img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
}

.project-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--text);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-filled {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Divider */
.divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Simple Joys */
.joys {
  padding: 80px 0 48px;
}

.joys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.joys-text h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.joys-text p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.joys-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.joy-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(50% - 8px);
  min-width: 180px;
  height: 36px;
  padding: 0 16px;
  background: #f6f6f8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.joy-link .arrow {
  font-size: 10px;
}

.joys-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* Footer */
.footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.footer-name {
  flex: 1;
}

.footer-inner > a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.socials {
  display: flex;
  gap: 32px;
  align-items: center;
}

.socials img {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 809px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .joys-grid {
    grid-template-columns: 1fr;
  }

  .joy-link {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .socials {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 810px) and (max-width: 1289px) {
  .joys-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Subpages — Resume */
#about {
  scroll-margin-top: 100px;
}

.resume-hero {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  gap: var(--hero-stack-gap);
}

.experience-section {
  padding: 64px 0 80px;
}

.section-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.experience-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.experience-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.experience-logos {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 48px;
}

.experience-logos .experience-logo {
  width: 48px;
  height: 22px;
  border-radius: 6px;
}

.experience-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--muted);
}

.profile-meta strong {
  color: var(--text);
  font-weight: 600;
}

.profile-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.earlier-experience {
  padding-bottom: 64px;
}

.earlier-experience p {
  font-size: 15px;
  line-height: 1.65;
}

.skills-section {
  padding-bottom: 80px;
}

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

.experience-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.experience-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

.experience-body p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.experience-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.experience-tag {
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.education-section {
  padding-bottom: 80px;
}

/* Subpages — Case Study */
.case-study {
  padding-top: 48px;
  padding-bottom: 120px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.case-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.case-intro {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.case-intro strong {
  font-weight: 600;
}

.case-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 32px;
}

.case-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 64px;
}

.case-nav .arrow-down {
  font-size: 16px;
}

.case-nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-nav .sep {
  color: var(--border);
}

.case-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.case-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.case-section h2:not(:first-child) {
  margin-top: 56px;
}

.case-section p:has(+ h2) {
  margin-bottom: 20px;
}

.case-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.case-section p,
.case-section li {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.case-section ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 16px;
}

.case-section ol.case-ordered {
  padding-left: 1.25em;
  margin-bottom: 16px;
}

.case-section ol.case-ordered li {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: none;
}

.pipeline-flow {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  padding: 24px;
  background: var(--card-bg);
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
  white-space: pre;
  color: var(--text);
}

.case-section li::before {
  content: "• ";
}

.case-image {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
}

.case-video {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
  background: #000;
  object-fit: cover;
}

.case-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.case-image-grid img {
  width: 100%;
  border-radius: 12px;
}

.case-image-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.case-image-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 48px 0;
  align-items: start;
}

.case-split--reverse .case-split-media {
  order: 2;
}

.case-split--reverse .case-split-body {
  order: 1;
}

.case-split-body .case-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.case-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 8px;
  text-align: center;
}

.case-stat-num {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.case-stat-label {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .case-split,
  .case-split--reverse .case-split-media,
  .case-split--reverse .case-split-body {
    grid-template-columns: 1fr;
    order: unset;
  }

  .case-image-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .case-image-grid--3,
  .case-image-grid--4 {
    grid-template-columns: 1fr;
  }
}

.case-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.case-card {
  padding: 24px;
  background: var(--card-bg);
  border-radius: 12px;
}

.case-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-card p + p {
  margin-top: 12px;
}

.case-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.case-image--half {
  width: 50%;
}

.case-demo {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.case-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.case-demo-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.case-demo-link {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.case-demo-link:hover {
  opacity: 1;
}

.case-demo-frame {
  width: 100%;
  height: min(520px, 72vh);
  border: none;
  display: block;
  background: #000;
}

.case-demo-frame--tall {
  height: min(600px, 80vh);
}

.case-demo-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Vibe Coding — body layout */
.case-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.vibe-overview-note {
  color: var(--muted);
  margin-bottom: 8px;
}

.vibe-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.vibe-index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.vibe-index-card:hover {
  border-color: var(--text);
  background: var(--card-bg);
}

.vibe-index-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.vibe-index-card strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vibe-index-card span:last-child {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.vibe-project {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.vibe-project-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.vibe-lead {
  font-size: 16px !important;
  line-height: 1.55 !important;
  margin-bottom: 28px !important;
}

.vibe-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin: 0;
}

.vibe-meta dt {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.vibe-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.vibe-project .case-demo {
  margin-top: 8px;
}

.vibe-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin: 36px 0 28px;
}

.vibe-process-step {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.vibe-process-num {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.vibe-process-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.vibe-process-step p {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--muted);
  margin-bottom: 0 !important;
}

.vibe-process-closing {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 860px) {
  .vibe-index,
  .vibe-process,
  .vibe-meta {
    grid-template-columns: 1fr;
  }
}


.float-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
}

.float-nav a,
.float-nav .btn-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.float-nav .btn-float:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Hobby page */
.hobby-hero {
  padding-top: 48px;
  padding-bottom: 80px;
}

.hobby-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hobby-subtitle {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  margin-bottom: 24px;
}

.hobby-text {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.hobby-tabs {
  display: flex;
  gap: 24px;
  margin: 48px 0 32px;
  font-size: 15px;
  font-weight: 600;
}

.hobby-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hobby-gallery img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hobby-gallery img.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* CV page */
.cv-page {
  padding-top: 48px;
  padding-bottom: 120px;
}

.cv-header {
  margin-bottom: 56px;
}

.cv-header-main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.cv-header-content {
  flex: 1;
  min-width: 0;
}

.cv-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.cv-name {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.cv-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.cv-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cv-contact-sep {
  color: var(--muted);
}

.cv-contact .status {
  padding: 0;
  height: auto;
}

.cv-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.cv-actions .btn-outline {
  cursor: pointer;
  font-family: inherit;
  background: var(--bg);
}

.float-nav .btn-float:disabled {
  opacity: 0.6;
  cursor: wait;
}

.is-generating-pdf .header,
.is-generating-pdf .float-nav {
  visibility: hidden;
}

@media print {
  .header,
  .float-nav,
  .cv-actions {
    display: none !important;
  }

  .cv-page {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .page {
    min-height: auto;
  }

  .cv-section {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .experience-item {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
}

.cv-section {
  margin-bottom: 56px;
}

.cv-section-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cv-summary,
.cv-body {
  font-size: 15px;
  line-height: 1.65;
}

.cv-summary {
  margin-bottom: 24px;
}

.cv-page .tools-row {
  margin-top: 0;
}

.cv-page .experience-list {
  gap: 40px;
}

.cv-works-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-works-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.cv-works-list a:hover {
  opacity: 1;
  border-color: var(--text);
}

.cv-works-list strong {
  font-size: 15px;
  font-weight: 600;
}

.cv-works-list span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 809px) {
  .cv-header-main {
    flex-direction: column;
  }
}

@media (max-width: 809px) {
  .case-cards {
    grid-template-columns: 1fr;
  }

  .case-image-grid,
  .hobby-gallery {
    grid-template-columns: 1fr;
  }

  .hobby-gallery img.wide {
    grid-column: span 1;
  }
}
