/* Local iOS-inspired material and interaction study. Existing vCard MIT credit remains intact. */
:root {
  --ios-ink: #202125;
  --ios-secondary: #62666e;
  --ios-muted: #69727e;
  --ios-canvas: #f7f8fa;
  --ios-group: #f5f6f8;
  --ios-line: rgba(28, 35, 48, .075);
  --ios-shadow: 0 16px 48px rgba(30, 40, 60, .045), 0 2px 6px rgba(30, 40, 60, .025);
  --ios-card-shadow: 0 5px 18px rgba(30, 40, 60, .035), 0 1px 3px rgba(30, 40, 60, .025);
  --ios-ease: cubic-bezier(.2,.65,.25,1);
}
html { background: var(--ios-canvas); }
body.vcard-body { background: var(--ios-canvas); color: var(--ios-ink); -webkit-font-smoothing: antialiased; }
.vcard-layout { margin-top: 48px; margin-bottom: 56px; gap: 28px; align-items: flex-start; }
.sidebar, .page-article, .detail-article {
  background: #fff; border: 1px solid rgba(255,255,255,.95); border-radius: 26px;
  box-shadow: var(--ios-shadow), inset 0 1px 0 #fff;
}
.sidebar { padding: 24px; }
.sidebar .avatar-box { border-radius: 18px; background: #f8f8f9; box-shadow: 0 5px 14px rgba(30,40,60,.04); }
.sidebar .avatar-box img { border-radius: inherit; }
.info-content .name { font-weight: 600; }
.info-content .title { color: var(--ios-secondary); }
.site-name, .sidebar-note, .contact-title { color: var(--ios-secondary); }
.sidebar .separator { background: var(--ios-line); margin: 20px 0; }
.contacts-list { gap: 20px; }
.contact-item .icon-box { width: 30px; height: 34px; justify-content: flex-start; color: #838a94; }
.contact-item .icon-box svg { width: 18px; height: 18px; }
.contact-info { width: calc(100% - 42px); max-width: calc(100% - 42px); }
.contact-title { margin-bottom: 3px; font-size: 11px; }
.contact-info :is(.contact-link,address,span) { font-size: 12px; color: #444851; }
.contact-info .contact-link { width: max-content; max-width: 100%; min-height: 28px; display: flex; align-items: center; border-radius: 6px; }
.social-list { gap: 10px; }
.social-item .social-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 10px; background: var(--ios-group); border-radius: 10px; font-size: 12px; color: #4c515b; }
.sidebar-note { margin-top: 18px; padding-top: 18px; border-color: var(--ios-line); font-size: 12px; line-height: 1.9; }
.info_more-btn { min-height: 40px; padding: 8px 12px; border-radius: 12px; background: var(--ios-group); font-size: 11px; }
.sidebar-info_more { transition: opacity .2s var(--ios-ease), visibility .2s var(--ios-ease); }
.sidebar.active { max-height: 1000px; }

/* Navigation reads as a single floating control, without extra decorative layers. */
.navbar { background: rgba(245,246,248,.88); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 4px 16px rgba(30,40,60,.045); }
.navbar-list { gap: 3px; padding: 4px; }
.navbar-link { display: flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 13px; border-radius: 12px; color: #69727e; font-size: 12px; line-height: 1.5; }
.navbar-link.active { background: #fff; color: var(--ios-ink); box-shadow: 0 2px 8px rgba(30,40,60,.07), 0 0 0 1px rgba(30,40,60,.025); font-weight: 600; }
.page-article, .detail-article { padding: 36px; padding-bottom: 40px; }
.page-article.active { animation: none; }
.page-article .article-title { font-weight: 600; font-size: 30px; letter-spacing: -.6px; margin-bottom: 28px; }
.page-article.about .article-title { color: #69727e; font-size: 12px; font-weight: 500; letter-spacing: .6px; margin-bottom: 14px; }
.welcome-heading { font-size: clamp(30px,3vw,38px); line-height: 1.35; font-weight: 600; letter-spacing: -1px; margin-bottom: 20px; }
.about-text { font-size: 15px; line-height: 1.95; }
.about-text p { color: #555b65; }
.about-text p + p { margin-top: 14px; }
.gold-text { font-weight: 600; color: #373c45; }
.topic-row { margin: 24px 0 0; gap: 8px; }
.topic-row span, .skill-tags span, .video-meta span { padding: 5px 11px; border: 1px solid rgba(30,40,60,.035); border-radius: 8px; background: var(--ios-group); color: #676d77; font-size: 11px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.section-title { margin-top: 36px; margin-bottom: 20px; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.page-intro { color: var(--ios-secondary); font-size: 14px; line-height: 1.95; }

/* Grouped content gives the home page depth while the writing stays quiet. */
.service-list, .page-article .service-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; border: 0; }
.service-item { background: var(--ios-group); border: 1px solid rgba(30,40,60,.025); border-radius: 17px; box-shadow: inset 0 1px 0 #fff; }
.service-item::before { display: none; }
.service-item a { height: 100%; padding: 20px; grid-template-columns: minmax(0,1fr) 24px; gap: 12px; align-items: start; border-radius: inherit; }
.service-content-box { display: block; text-align: left; }
.service-item-title { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.service-item-text { font-size: 13px; line-height: 1.9; color: #69727e; }
.service-item a::after { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #69727e; font-size: 12px; box-shadow: 0 2px 6px rgba(30,40,60,.025); }
.evaluation-list { gap: 0; padding: 22px; background: #fafbfc; border-radius: 18px; border: 1px solid var(--ios-line); }
.evaluation-list li { border-top: 0; padding: 0 18px; }
.evaluation-list li:first-child { padding-left: 0; }
.evaluation-list li:last-child { padding-right: 0; }
.evaluation-list li + li { border-left: 1px solid var(--ios-line); }
.evaluation-list h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.evaluation-list p { font-size: 13px; line-height: 1.95; color: #69727e; }

.action-link, .button { min-height: 42px; padding: 9px 16px; border-radius: 11px; font-size: 12px; font-weight: 500; border-color: transparent; box-shadow: 0 3px 8px rgba(132,40,36,.12), inset 0 1px 0 rgba(255,255,255,.12); }
.action-link.secondary { color: #555b65; background: #fff; border: 1px solid var(--ios-line); box-shadow: 0 2px 4px rgba(30,40,60,.025); }
.subtle-link, .back-link, .note-link, .tool-card .link-row a { font-size: 12px; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 4px; }
.skip-link { border-radius: 10px; }

.account-overview { padding: 24px; border: 1px solid var(--ios-line); border-radius: 20px; background: #fafbfc; box-shadow: inset 0 1px 0 #fff; }
.account-project.case-row { padding: 22px; border: 1px solid var(--ios-line); border-radius: 20px; background: #fff; box-shadow: var(--ios-card-shadow); }
.account-project h3 { font-weight: 600; }
.case-cover, .case-cover-external { border-radius: 13px; }
.case-cover-external { overflow: hidden; border-color: rgba(30,40,60,.045); }
.case-cover-external img { transition: transform .38s var(--ios-ease); }
.account-project p { font-size: 13px; line-height: 1.9; color: #626b76; }
.account-project .case-role { font-size: 11px; color: #69727e; }
.work-record { border-top: 1px solid var(--ios-line); padding-top: 24px; }
.record-numbers strong { font-weight: 600; font-size: 30px; letter-spacing: -.8px; }
.record-numbers span { color: #69727e; }
.timeline-item::after { width: 7px; height: 7px; box-shadow: 0 0 0 5px #f7f0ef; }
.timeline-item-title { font-weight: 600; }
.timeline-text { font-size: 14px; color: #626b76; }
.skill-tags { gap: 8px; }

/* The work itself carries the color. Hover scales only the image, not its text. */
.personal-creations-grid { gap: 40px; }
.creation-column-title { font-weight: 600; font-size: 17px; border-color: var(--ios-line); padding-bottom: 14px; margin-bottom: 22px; }
.personal-tools-grid { gap: 22px; }
.personal-tools-grid .tool-card { padding: 14px; border: 1px solid var(--ios-line); border-radius: 21px; background: #fff; box-shadow: var(--ios-card-shadow); }
.vcard-body .tool-art.demo-art { height: clamp(288px,27vw,356px); padding: 22px 20px 44px; border-radius: 13px; background: #f5f6f7; }
.demo-art > img, .demo-motion-frame, .demo-art > video { box-shadow: 0 7px 20px rgba(30,40,60,.08); transition: transform .38s var(--ios-ease); transform-origin: center; }
.demo-art .art-caption { left: 20px; bottom: 14px; color: #69727e; font-size: 11px; }
.personal-tools-grid .tool-heading { margin: 18px 2px 9px; gap: 10px; }
.personal-tools-grid .tool-heading img { width: 32px; height: 32px; border-radius: 9px; }
.personal-tools-grid .tool-heading h3 { font-size: 15px; font-weight: 600; }
.personal-tools-grid .tool-card > p { margin: 0 2px; min-height: 5.4em; color: #69727e; font-size: 13px; line-height: 1.9; }
.personal-tools-grid .tool-card .link-row { margin: auto 2px 2px; padding-top: 18px; gap: 16px; }
.tool-card .link-row a { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px; }
.personal-tools-grid .demo-art .art-caption { right: 108px; }
.demo-live-badge { border: 1px solid rgba(255,255,255,.9); border-radius: 8px; backdrop-filter: blur(16px); font-size: 10px; }
.demo-live-toggle { border-radius: 9px; border: 1px solid rgba(30,40,60,.06); background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(30,40,60,.06); font-size: 10px; min-height: 34px; }
.personal-video-grid { gap: 22px; }
.video-poster { border-radius: 17px; box-shadow: var(--ios-card-shadow); isolation: isolate; overflow: hidden; }
.video-poster img { transition: transform .38s var(--ios-ease); }
.play-icon { box-shadow: 0 6px 20px rgba(0,0,0,.12); backdrop-filter: blur(10px); }
.video-card h3 { font-weight: 600; font-size: 16px; }
.film-description { color: #626b76; line-height: 1.9; font-size: 13px; }
.video-kind { margin-top: 16px; font-size: 11px; }
.video-duration { background: rgba(20,24,30,.65); border-radius: 7px; backdrop-filter: blur(10px); font-size: 11px; }
.editorial-grid { gap: 22px; }
.editorial-card { width: auto; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.editorial-cover { border-radius: 17px; border: 1px solid var(--ios-line); box-shadow: var(--ios-card-shadow); }
.editorial-preview { position: relative; display: block; padding: 0; cursor: zoom-in; }
.editorial-preview img { transition: transform .38s var(--ios-ease); }
.preview-affordance { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #6c727d; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 3px 12px rgba(30,40,60,.08); backdrop-filter: blur(12px); transition: color .2s ease, background-color .2s ease; }
.preview-affordance svg { width: 16px; height: 16px; }
.editorial-meta { color: #69727e; font-size: 11px; }
.editorial-card h4 { font-size: 15px; font-weight: 600; }

.contact-panel { padding: 28px; border-radius: 20px; background: #fafbfc; border: 1px solid var(--ios-line); box-shadow: inset 0 1px 0 #fff; }
.contact-panel .email-address { font-size: clamp(20px,3vw,30px); font-weight: 500; letter-spacing: -.5px; }
.contact-panel > p { font-size: 13px; color: #69727e; }
.contact-panel .contact-phone-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0; font-size: 13px; color: #69727e; }
.contact-phone-line a { min-height: 32px; display: inline-flex; align-items: center; color: #505762; font-variant-numeric: tabular-nums; }
.contact-socials { max-width: none; gap: 14px; }
.social-card { padding: 20px; min-height: 156px; border: 1px solid var(--ios-line); border-radius: 18px; box-shadow: var(--ios-card-shadow); }
.social-card-icon { margin-bottom: 18px; }
.social-card-title { font-weight: 500; font-size: 13px; }
.social-card-meta { color: #69727e; font-size: 11px; }
.social-card-icon.social-xhs-word { color: var(--u-accent); }
.contact-panel .copy-feedback { margin-top: 10px; margin-bottom: 0; color: var(--u-accent); min-height: 20px; font-size: 11px; }
.project-facts { padding: 20px; border: 1px solid var(--ios-line); border-radius: 17px; background: #fafbfc; }
.project-facts dt { font-size: 11px; color: #69727e; }
.project-facts dd { font-size: 13px; }
.project-story h2, .project-hero h1, .resume-content h2 { font-weight: 600; }
.project-story p, .project-story ol, .project-hero .lead, .video-details-copy, .resume-content p, .resume-content li { color: #626b76; line-height: 1.95; }
.vcard-body .project-hero .tool-visual.demo-art { border-radius: 18px; }
.case-art { border-radius: 18px; background: #fafbfc; border: 1px solid var(--ios-line); }
.project-story .usage-note { background: #f7f8fa; border-radius: 0 12px 12px 0; color: #69727e; }
.video-detail-player { border-radius: 18px; }
.vcard-footer { color: #69727e; font-size: 10px; }
.vcard-footer a { color: #69727e; }
dialog.modal { border: 1px solid rgba(255,255,255,.9); border-radius: 23px; box-shadow: 0 30px 100px rgba(20,28,40,.2); background: #fff; }
dialog.modal::backdrop { background: rgba(35,42,55,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-head { border-bottom: 1px solid var(--ios-line); padding: 12px 16px 12px 22px; }
.modal-head h2 { font-size: 14px; font-weight: 500; }
.modal-head button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ios-group); color: #69727e; font-size: 25px; }
.modal-description { color: #626b76; font-size: 13px; line-height: 1.9; }
.image-preview-modal { width: min(730px,calc(100% - 32px)); }
.image-preview-stage { padding: 20px; background: #f5f6f8; }
.image-preview-stage img { display: block; margin: auto; max-height: 73dvh; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 6px 24px rgba(30,40,60,.1); }
.image-preview-status { margin: 0; padding: 0 20px; font-size: 12px; color: #626b76; }
.image-preview-status:not(:empty) { padding: 16px 20px; }

@media (hover:hover) and (pointer:fine) {
  .tool-card, .account-project.case-row, .social-card, .service-item, .video-poster, .editorial-cover { transition: transform .26s var(--ios-ease), box-shadow .26s var(--ios-ease), border-color .2s ease; }
  .personal-tools-grid .tool-card:hover, .social-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,40,60,.075), 0 2px 5px rgba(30,40,60,.035); border-color: rgba(30,40,60,.11); }
  .tool-card:hover .tool-art.demo-art > img, .tool-card:hover .demo-motion-frame, a.tool-art.demo-art:hover > img, .case-cover-external:hover img, .video-poster:hover img, .editorial-preview:hover img { transform: scale(1.035); }
  .account-project.case-row:has(.case-cover-external:hover) { box-shadow: 0 10px 28px rgba(30,40,60,.065); }
  .service-item:hover { background: #f2f3f6; transform: translateY(-2px); border-color: rgba(30,40,60,.08); box-shadow: 0 6px 16px rgba(30,40,60,.04); }
  .video-poster:hover, .editorial-preview:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,40,60,.08); }
  .editorial-preview:hover .preview-affordance { background: #fff; color: var(--u-accent); }
  .contact-link:hover, .contact-phone-line a:hover { color: var(--u-accent); }
  .social-link:hover { background: #f0f1f4; }
}
.tool-card:focus-within, .social-card:focus-visible { border-color: rgba(163,48,45,.3); }
.action-link, .button, .social-link, .info_more-btn, .demo-live-toggle, .modal-head button { transition: transform .16s var(--ios-ease), background-color .16s ease, box-shadow .16s ease; }
.action-link:active, .button:active, .social-link:active, .info_more-btn:active, .demo-live-toggle:active, .modal-head button:active { transform: scale(.97); }
.social-card:active, .video-poster:active, .editorial-preview:active { transform: scale(.99); }

@media (min-width:1024px) {
  .navbar { top: 16px; right: 20px; bottom: auto; left: auto; width: auto; border-radius: 16px; padding: 0; }
  .navbar-list { padding: 4px; }
  .page-article, .detail-article { padding: 36px; }
  .page-article > header { min-height: 42px; padding-top: 3px; }
  .page-article.about > header { min-height: 34px; }
  .detail-article { padding-top: 86px; }
}
@media (min-width:1250px) {
  .vcard-layout { max-width: 1248px; width: calc(100% - 80px); }
  .sidebar { top: 32px; width: 260px; flex-basis: 260px; padding: 28px 22px; max-height: calc(100dvh - 64px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #e5e7eb transparent; }
  .sidebar-info { gap: 20px; }
  .sidebar .avatar-box img { width: 120px; height: 120px; }
  .sidebar .contact-item { gap: 8px; }
  .sidebar .contact-info { width: calc(100% - 38px); max-width: calc(100% - 38px); }
  .main-content { width: calc(100% - 288px); }
}
@media (max-width:1023px) {
  .navbar { bottom: 14px; left: 50%; transform: translateX(-50%); width: min(520px,calc(100% - 28px)); border-radius: 19px; padding: 2px; padding-bottom: max(2px,env(safe-area-inset-bottom,0px)); }
  .navbar-list { justify-content: space-between; width: 100%; min-width: 0; gap: 1px; }
  .navbar-item { flex: 1; }
  .navbar-link { min-height: 44px; padding: 10px 8px; border-radius: 13px; }
  .sidebar { margin-bottom: 24px; }
  .vcard-footer { margin-bottom: 110px; }
}
@media (max-width:767px) {
  .evaluation-list { display: block; padding: 20px; }
  .evaluation-list li { padding: 0; }
  .evaluation-list li + li { border-left: 0; border-top: 1px solid var(--ios-line); padding-top: 18px; margin-top: 18px; }
  .evaluation-list h4 { font-size: 14px; }
  .evaluation-list p { font-size: 13px; }
}
@media (max-width:579px) {
  .vcard-layout { margin: 16px 14px 36px; }
  .sidebar, .page-article, .detail-article { border-radius: 22px; }
  .sidebar { padding: 18px; max-height: 128px; margin-bottom: 18px; }
  .sidebar-info { gap: 16px; }
  .sidebar .avatar-box { border-radius: 13px; }
  .sidebar .avatar-box img { width: 78px; height: 78px; }
  .info-content .name { font-size: 17px; margin-bottom: 7px; }
  .info-content .title { font-size: 10px; }
  .site-name { font-size: 10px; margin-top: 7px; }
  .info_more-btn { font-size: 10px; padding: 7px 8px; min-height: 34px; border-radius: 10px; }
  .page-article, .detail-article { padding: 26px 22px 30px; }
  .page-article .article-title { font-size: 27px; margin-bottom: 22px; }
  .welcome-heading { font-size: 29px; letter-spacing: -.6px; }
  .about-text { font-size: 14px; line-height: 1.95; }
  .topic-row { gap: 6px; margin-top: 20px; }
  .topic-row span { padding: 4px 8px; font-size: 10px; }
  .section-title { font-size: 17px; margin: 30px 0 16px; }
  .service-list, .page-article .service-list { grid-template-columns: 1fr; gap: 10px; }
  .service-item a { padding: 18px; }
  .service-item-text { font-size: 13px; }
  .account-project.case-row { padding: 16px; grid-template-columns: 84px minmax(0,1fr); gap: 16px; border-radius: 17px; }
  .account-project h3 { font-size: 17px; }
  .account-project p { font-size: 12px; }
  .case-cover-external { border-radius: 9px; }
  .record-numbers strong { font-size: 25px; }
  .record-numbers span { font-size: 10px; }
  .personal-tools-grid, .personal-video-grid, .editorial-grid { grid-template-columns: 1fr; gap: 24px; }
  .personal-tools-grid .tool-card { padding: 12px; }
  .vcard-body .tool-art.demo-art { height: 354px; }
  .personal-tools-grid .tool-card > p { min-height: 0; font-size: 13px; }
  .personal-tools-grid .tool-heading h3 { font-size: 15px; }
  .personal-tools-grid .tool-card .link-row { padding-top: 12px; }
  .creation-column-title { font-size: 16px; }
  .contact-panel { padding: 22px; }
  .contact-panel .email-address { font-size: 21px; }
  .contact-socials { gap: 10px; }
  .social-card { min-height: 66px; padding: 14px; border-radius: 14px; }
  .social-card-icon { margin: 0; }
  .social-card-meta { font-size: 10px; }
  .modal-head { padding-left: 16px; }
  .image-preview-stage { padding: 12px; }
  .navbar-link { font-size: 11px; padding: 10px 5px; }
  .vcard-footer { font-size: 9px; padding: 0 6px; gap: 10px; }
}
@media (hover:none) {
  .tool-card, .social-card, .service-item, .video-poster, .editorial-preview { transform: none; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .tool-card, .social-card, .service-item, .video-poster, .editorial-preview,
  .tool-art.demo-art > img, .demo-motion-frame, .case-cover-external img, .video-poster img, .editorial-preview img { transform: none !important; }
}
@media print {
  html, body.vcard-body { background: #fff; }
  .sidebar, .navbar, .vcard-footer, .back-link, .image-preview-modal { display: none !important; }
  .page-article, .detail-article, .project-facts { padding: 0; box-shadow: none; border: 0; background: #fff; }
}
