:root {
  --text-primary: #171717;
  --text-secondary: #8F8F8F;
  --text-tertiary: #adadad;
  --placeholder: #f0f0f0;
  --page-width: 1280px;
  --sidebar-width: 294px;
  --column-gap: 62px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f9f9f9; color: var(--text-primary); font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: normal; -webkit-font-smoothing: antialiased; }
p, h1, h2 { margin: 0; }
button { font: inherit; }
.layout { width: min(var(--page-width), calc(100% - 48px)); margin: 0 auto; padding: 64px 0; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: var(--column-gap); align-items: start; }
.profile { position: fixed; top: 64px; width: var(--sidebar-width); max-height: calc(100dvh - 96px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 32px; }
.intro, .bio, .identity, .side-section, .award, .side-project-copy { display: flex; flex-direction: column; }
.intro { gap: 0; }
.avatar { display: block; width: 96px; height: auto; flex-shrink: 0; }
.company-link { color: inherit; text-decoration-line: underline; text-decoration-color: var(--text-tertiary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bio { gap: 12px; }
.identity { gap: 8px; }
.profile-role { line-height: normal; }
h1 { font-size: 14px; line-height: normal; font-weight: 500; letter-spacing: normal; }
.secondary { color: var(--text-secondary); }
.tertiary { color: var(--text-tertiary); }
.small { font-size: var(--compact-font-size); line-height: normal; }
.side-section { gap: 16px; }
.pet-projects { gap: 0; }
.pet-projects > h2 { margin-bottom: 8px; }
.side-section h2 { font-size: 14px; line-height: normal; font-weight: 500; }
.side-project { display: flex; align-items: center; gap: 8px; }
.app-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--placeholder); flex-shrink: 0; }
.side-project-copy { gap: 6px; width: max-content; white-space: nowrap; }
.side-project-copy > p:first-child { line-height: normal; white-space: nowrap; }
.awards-list { display: flex; flex-direction: column; align-items: start; gap: 0; }
.award { gap: 4px; }
.award > p:first-child { line-height: normal; }
/* Reserve room for the glass edges inside the fixed profile's scroll area. */
.profile { width: calc(var(--sidebar-width) + 32px); padding-inline: 16px; margin-left: -16px; }
.side-project, .award { position: relative; isolation: isolate; align-self: start; width: max-content; max-width: calc(100% + 32px); padding: 8px 16px; margin-left: -16px; }
.side-project { max-width: none; }
.food-project { max-width: calc(100% + 32px); }
.food-project .side-project-copy { width: auto; min-width: 0; white-space: normal; }
@media (min-width: 701px) {
  .side-project { min-width: 230px; }
}
.side-project::before, .award::before, nav button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border: 1px solid #f4f4f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  box-shadow: inset 0 2px 4px #fff, inset 0 -4px 4px rgb(255 255 255 / 50%), inset 0 -4px 16px #fff, inset 0 4px 10px rgb(111 111 117 / 7%), 0 4px 14px -10px rgb(53 53 79 / 40%), 0 11px 28px -10px rgb(53 53 79 / 10%);
  opacity: 0;
  transform: scale(.985);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
}
.side-project::before, .award::before { inset-block: -8px; }
@media (hover: hover) and (pointer: fine) {
  .side-project:hover::before, .award:hover::before, nav button:hover::before { opacity: 1; transform: scale(1); }
}
nav button:focus-visible::before { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .side-project::before, .award::before, nav button::before { transition: none; transform: none; }
}
.content { grid-column: 2; min-width: 0; }
.navigation { display: flex; justify-content: space-between; align-items: start; margin-bottom: 64px; }
nav { display: flex; align-items: center; gap: 0; padding: 2px; border-radius: 12px; background: #fff; }
nav button { border: 0; border-radius: 10px; background: none; padding: 4px 10px; font-size: 16px; line-height: normal; font-weight: 400; color: var(--text-secondary); cursor: pointer; transition: background-color 150ms ease; }
nav button.active { background: color-mix(in srgb, var(--text-tertiary) 8%, transparent); }
nav button { position: relative; isolation: isolate; }
nav button::before { border-radius: 10px; }
nav button:hover { color: var(--text-primary); }
button:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 5px; border-radius: 2px; }
.works { display: flex; flex-direction: column; gap: 64px; }
.project { display: flex; flex-direction: column; gap: 12px; min-height: 520px; }
.project-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.project-info { display: flex; gap: 8px; align-items: start; }
.project-info .secondary { line-height: normal; }
.company { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.company-icon { object-fit: cover; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--placeholder); }
.project-cover { width: 100%; height: auto; aspect-ratio: var(--media-ratio, 1920 / 1248); border-radius: 16px; background: var(--placeholder); }
.project-cover { overflow: hidden; position: relative; }
.project-cover video, .project-cover > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-cover video { object-fit: contain; object-position: center; pointer-events: none; }
.project-description { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.project-description h2 { font-size: 35px; line-height: normal; letter-spacing: -.02em; font-weight: 500; white-space: pre-line; }
.metrics, .project-role { font-size: 16px; line-height: normal; }
.project-role { margin-top: -4px; }
.about { display: flex; flex-direction: column; gap: 16px; min-height: 320px; }
.about h2 { font-size: 35px; line-height: normal; font-weight: 500; letter-spacing: -.02em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-magnet { position: relative; display: inline-block; align-self: start; flex-shrink: 0; }
.contact-magnet .contact-button { will-change: transform; }
.contact-button {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  align-self: start; flex-shrink: 0; min-height: 52px; padding: 16px 24px; border: 0; border-radius: 999px;
  color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 35%); background: #171717; font-size: 16px; line-height: normal; font-weight: 500; letter-spacing: -.015em; cursor: pointer;
  overflow: hidden; transition: background-color 180ms ease;
}
.contact-button:hover { background: #000; }
.contact-button svg, .contact-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-button svg { stroke-width: 2.4; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 35%)); }
.contact-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; color: var(--text-primary); background: transparent; }
.contact-dialog::backdrop { background: rgb(249 249 249 / 48%); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); animation: contact-backdrop-in 220ms ease both; }
.contact-stage { position: absolute; width: min(540px, calc(100vw - 32px)); height: 280px; }
.contact-origin { position: absolute; left: 0; top: 116px; animation: contact-origin-in 460ms cubic-bezier(.16, 1, .3, 1) both; }
.contact-close { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #777; border: 1px solid rgb(255 255 255 / 85%); border-radius: 50%; background: rgb(255 255 255 / 70%); cursor: pointer; }
.contact-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 8px 20px 8px 10px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 18%); box-shadow: inset 0 1px 3px #fff, 0 5px 20px rgb(65 95 115 / 10%); font-size: 15px; line-height: normal; color: #29475a; text-decoration: none; transform-origin: -70px center; animation: contact-chip-in 540ms cubic-bezier(.16, 1, .3, 1) both; transition: background 160ms ease, box-shadow 160ms ease; }
.contact-chip[href]:hover { background: rgb(255 255 255 / 28%); box-shadow: inset 0 1px 3px #fff, 0 7px 24px rgb(65 95 115 / 18%); }
.contact-chip:focus-visible { outline: 2px solid #3985b0; outline-offset: 4px; }
.contact-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e9f5fc; color: #3688b4; }
.contact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-telegram { top: 24px; left: 249px; animation-delay: 30ms; }
.contact-email { top: 96px; left: 281px; animation-delay: 80ms; }
.contact-linkedin { top: 168px; left: 249px; animation-delay: 130ms; }
@keyframes contact-chip-in { from { opacity: 0; transform: translate(-90px, 30px) scale(.4) rotate(-12deg); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes contact-origin-in { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes contact-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.contact-dialog.is-closing .contact-stage { opacity: 0; transform: scale(.96); transition: opacity 180ms ease, transform 180ms ease; }
.contact-dialog.is-closing::backdrop { animation: contact-backdrop-in 180ms ease reverse both; }
@media (max-width: 599px) {
  .contact-stage { width: min(350px, calc(100vw - 32px)); height: 322px; }
  .contact-origin { top: 252px; }
  .contact-telegram, .contact-linkedin { left: min(130px, calc(100vw - 214px)); }
  .contact-email { left: min(170px, calc(100vw - 180px)); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-chip, .contact-origin, .contact-dialog::backdrop { animation: none; }
  .contact-dialog.is-closing .contact-stage { transition: none; }
}
@media (max-width: 940px) and (min-width: 701px) {
  :root { --sidebar-width: 230px; --column-gap: 52px; }
  .company { font-size: var(--compact-font-size); gap: 6px; }
  .project-header { flex-wrap: wrap; }
  .project-description h2 { font-size: 30px; line-height: normal; }
  .project-cover { height: auto; aspect-ratio: var(--media-ratio, 1920 / 1248); }
}
@media (max-width: 700px) {
  .layout { width: calc(100% - 40px); padding: 32px 0; grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .profile { position: static; width: auto; max-height: none; overflow: visible; padding-inline: 0; margin-left: 0; }
  .content { grid-column: 1; }
  .navigation { margin-bottom: 56px; }
  .project-header { flex-wrap: wrap; gap: 12px; }
  .company { font-size: var(--compact-font-size); }
  .project-cover { height: auto; aspect-ratio: var(--media-ratio, 1920 / 1248); border-radius: 12px; }
  .project-description h2 { font-size: 28px; line-height: normal; }
  .about h2 { font-size: 28px; line-height: normal; }
  .metrics, .project-role { font-size: 14px; line-height: normal; }
  .project { min-height: 0; }
}

.app-icon { object-fit: contain; }
.video-sound { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.video-sound svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgb(0 0 0 / 65%)); }
.video-sound:hover { background: rgb(0 0 0 / 12%); }
.video-sound:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.project-header a { color: inherit; text-decoration: none; }
.project-header a:hover { text-decoration: underline; text-decoration-color: var(--text-tertiary); text-underline-offset: 3px; }
.project-header a:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; border-radius: 4px; }
.company > a { display: flex; }

/* About: compact editorial entries, without card backgrounds or borders. */
.about { gap: 40px; }
.about-intro { font-size: 16px; line-height: normal; }
.about-group { display: flex; flex-direction: column; gap: 28px; }
.about .about-section-title { font-size: 20px; line-height: normal; font-weight: 500; letter-spacing: -.02em; margin-bottom: -4px; }
.about-entry { display: flex; flex-direction: column; gap: 10px; }
.about-entry-header { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; }
.about-entry-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.about-company-icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; background: var(--placeholder); object-fit: cover; }
.about-entry h3 { font-size: 14px; line-height: normal; font-weight: 500; }
.about-dates { font-size: 14px; line-height: normal; font-weight: 400; white-space: nowrap; }
.about-entry-body { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: normal; }
.about-entry-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.about-role { color: var(--text-secondary); }
.about-link { color: inherit; text-decoration: underline; text-decoration-color: var(--text-tertiary); text-underline-offset: 3px; }
.about-link:hover { text-decoration-color: var(--text-primary); }
.about-video-preview { width: 224px; max-width: 100%; aspect-ratio: 16 / 9; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #e8edf5, #f0f0f0); color: var(--text-primary); cursor: pointer; text-align: center; }
.about-preview-play { font-size: 22px; }
.about-preview-caption { font-size: var(--compact-font-size); line-height: normal; }
.about-video-preview.is-pending { background: var(--placeholder); color: var(--text-secondary); cursor: default; }
.about-video-preview.is-pending .about-preview-play { display: none; }
.about-video-dialog { position: fixed; inset: 0; margin: auto; width: min(50vw, 960px); max-width: calc(100vw - 40px); padding: 0; overflow: visible; border: 0; background: transparent; color: #fff; }
.about-video-dialog::backdrop { background: rgb(0 0 0 / 65%); backdrop-filter: blur(8px); }
.about-video-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #171717; }
.about-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.about-video-close { position: absolute; top: -48px; right: 0; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / 15%); font-size: 28px; line-height: normal; cursor: pointer; }
.about-video-fallback { margin-top: 12px; font-size: 13px; text-align: center; }
@media (max-width: 700px) {
  .about { gap: 32px; }
  .about-entry-header { flex-wrap: wrap; }
  .about-dates { margin-left: 42px; }
  .about-video-dialog { width: calc(100vw - 40px); }
}

/* Independent About accordions; entries inside remain expanded. */
.about-intro { display: flex; flex-direction: column; gap: 16px; }
.about details.about-group { display: block; }
.about-group-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.about-group-summary::-webkit-details-marker { display: none; }
.about-group-summary::marker { content: ''; }
.about-group-summary .about-section-title { margin: 0; }
.about-group-arrow { flex-shrink: 0; font-size: 22px; line-height: normal; font-weight: 400; color: var(--text-secondary); }
.about-group[open] > .about-group-summary .about-group-arrow { font-size: 0; }
.about-group[open] > .about-group-summary .about-group-arrow::after { content: '−'; font-size: 22px; }
.about-group-summary:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 6px; border-radius: 2px; }
.about-group-items { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }

.about-video-preview { width: 112px; border-radius: 16px; padding: 8px; gap: 4px; overflow: hidden; }
.about-preview-caption { font-size: 10px; line-height: normal; }
.about-preview-play { font-size: 16px; position: relative; z-index: 1; }
.about-preview-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.about-video-preview.has-poster .about-preview-play { color: #fff; filter: drop-shadow(0 1px 3px rgb(0 0 0 / 80%)); }
.about-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #171717; }
.about-entry-identity > a { display: flex; flex: 0 0 32px; }
.about-entry h3 a { text-decoration: none; }
.about-entry h3 a:hover { text-decoration: underline; }

.about-company-icon { object-fit: contain; }
.about-company-icon.is-avatar { object-fit: cover; }

/* Targeted local preview: preserve source media ratios and existing About typography. */
#about { max-width: 560px; }
.project-disclosure { width: 100%; padding: 0; background: transparent; }
.project-disclosure-summary { display: flex; align-items: center; justify-content: flex-start; width: fit-content; max-width: 100%; gap: 8px; padding: 6px 8px; margin-left: -8px; border-radius: 8px; background: transparent; transition: background-color 150ms ease; cursor: pointer; list-style: none; font-size: 16px; line-height: normal; font-weight: 500; }
.project-disclosure-summary::-webkit-details-marker { display: none; }
.project-disclosure-summary::marker { content: ''; }
.project-disclosure-symbol { width: 20px; height: 20px; flex-shrink: 0; transition: transform 180ms ease; }
.project-disclosure[open] .project-disclosure-symbol { transform: rotate(180deg); }
.project-disclosure-summary:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; border-radius: 8px; }
.project-disclosure-content { display: flex; flex-direction: column; gap: 20px; padding: 0; margin-top: 16px; }
.project-disclosure-section { display: flex; flex-direction: column; gap: 8px; }
.project-disclosure-section h3 { margin: 0; font-size: 14px; line-height: normal; font-weight: 500; }
.project-disclosure-section p, .project-disclosure-section ul { margin: 0; font-size: 16px; line-height: normal; color: var(--text-secondary); }
.project-disclosure-section ul { padding-left: 20px; }
.project-interview-note { display: flex; align-items: center; gap: 8px; color: var(--text-primary); font-size: 14px; line-height: normal; }
.project-interview-note svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 700px) {
  .project-disclosure-summary { font-size: 14px; line-height: normal; }
  .project-disclosure-content { gap: 16px; }
  .project-disclosure-section p, .project-disclosure-section ul { font-size: 14px; line-height: normal; }
}

.project-disclosure-section li + li { margin-top: 10px; }
.project-disclosure-section strong { font-size: 14px; line-height: normal; font-weight: 500; color: var(--text-primary); }
@media (prefers-reduced-motion: reduce) { .project-disclosure-symbol { transition: none; } }

.project-disclosure-summary:hover { background-color: #eaeaea; }

/* Paper 10A: card surface and independent process drawer. */
:root { --text-secondary: #8F8F8F; --page-width: 1180px; --sidebar-width: 299px; }
.intro { gap: 20px; }
.avatar { height: 120px; object-fit: contain; }
.identity { gap: 4px; }
.profile-role { font-size: var(--compact-font-size); line-height: normal; color: var(--text-secondary); }
.side-section h2 { color: var(--text-secondary); }
.pet-projects > h2 { margin-bottom: 16px; }
.side-project { gap: 12px; padding-block: 6px; }
.app-icon { width: 36px; height: 36px; }
.side-project-copy { gap: 4px; }
.side-project-copy p, .award p { font-size: var(--compact-font-size); line-height: normal; }
.side-project-copy > p:first-child, .award > p:first-child { font-weight: 500; line-height: normal; }
.award { padding-block: 6px; }
.awards-list { gap: 8px; }
.contact-button { font-size: 14px; line-height: normal; min-height: 54px; }
.profile > p[data-copy="since"] { color: var(--text-tertiary); line-height: normal; }
.navigation { margin-bottom: 32px; }
nav { gap: 4px; padding: 6px; border-radius: 38px; background: #fefefe; box-shadow: 0 0 52px #0000000f; }
nav button { padding: 6px 16px; border-radius: 30px; font-size: 14px; line-height: normal; font-weight: 500; color: var(--text-primary); }
nav button.active { background: #f0f0f0; }
nav button::before { display: none; }
nav button:hover { background: #f0f0f0; }
.works { gap: 32px; }
.project { gap: 0; min-height: 0; }
.project-card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 32px; background: #fefefe; box-shadow: 0 0 52px #0000000f; }
.project-header { align-items: center; }
.project-info { gap: 12px; align-items: center; min-width: 0; }
.project-info > div { display: flex; flex-direction: column; gap: 4px; }
.project-info p { font-size: var(--compact-font-size); line-height: normal; }
.project-info p:first-child { font-weight: 500; }
.company { font-size: var(--compact-font-size); font-weight: 500; line-height: normal; }
.project-cover { border-radius: 32px; }
.project-description { margin-top: 8px; gap: 12px; }
.project-description h2 { font-size: 26px; line-height: normal; }
.project-result { font-size: var(--compact-font-size); line-height: normal; font-weight: 500; letter-spacing: -.02em; }
.project-interview-note { font-size: var(--compact-font-size); }
.project-disclosure { position: relative; margin-top: -32px; padding-top: 32px; background: #efefef; border-radius: 0 0 32px 32px; }
.project-disclosure-summary { width: 100%; max-width: none; margin: 0; padding: 14px 20px; gap: 10px; border: 0; border-radius: 0 0 32px 32px; font-size: var(--compact-font-size); line-height: normal; font-weight: 500; color: var(--text-secondary); text-align: left; }
.project-disclosure-summary:hover { background: #e7e7e7; }
.project-disclosure-symbol { width: 12px; height: 12px; }
.project-disclosure.is-open .project-disclosure-symbol { transform: rotate(180deg); }
.project-disclosure-content { margin: 0; padding: 20px 20px 6px; gap: 16px; }
.project-disclosure-section h3, .project-disclosure-section strong { font-size: var(--compact-font-size); line-height: normal; font-weight: 500; }
.project-disclosure-section p, .project-disclosure-section ul { font-size: var(--compact-font-size); line-height: normal; }
.project-disclosure-section li + li { margin-top: 8px; }
.project-disclosure-section strong { color: var(--text-primary); font-weight: 400; line-height: normal; }
@media (min-width: 701px) and (max-width: 940px) { :root { --sidebar-width: 230px; --column-gap: 52px; } }
@media (max-width: 700px) {
  .navigation { margin-bottom: 32px; gap: 8px; }
  nav { gap: 2px; padding: 4px; }
  nav button { padding: 6px 10px; font-size: var(--compact-font-size); }
  .project-card { padding: 16px; border-radius: 24px; }
  .project-cover { border-radius: 20px; }
  .project-description h2 { font-size: 24px; }
  .project-header { align-items: center; gap: 10px; }
  .project-disclosure { border-radius: 0 0 24px 24px; }
  .project-disclosure-content { padding-inline: 16px; }
  .project-disclosure-summary { padding-inline: 16px; border-radius: 0 0 24px 24px; }
}

/* Paper spacing refinements: preserve measured sizes inside the fixed sidebar. */
.profile > * { flex-shrink: 0; }
.pet-projects { gap: 16px; }
.pet-projects > h2 { margin-bottom: 0; }
.pet-project-list { display: flex; flex-direction: column; gap: 8px; }
.side-project-copy { min-height: 36px; justify-content: center; }
.profile .contact-button { width: 233px; height: 54px; padding: 0 20px; background: #000; }
.project-description { margin-top: 4px; }
.project-result { line-height: normal; }
.project-disclosure { padding-top: 48px; }
.project-disclosure-summary { padding: 0 20px 20px; }
.project-disclosure-content { padding: 0 20px 20px; }
.project-disclosure-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px 20px; }
.project-disclosure-row .project-disclosure-summary { padding: 0; width: auto; border-radius: 4px; flex-shrink: 0; }
.project-interview-note { display: flex; align-items: center; gap: 10px; font-size: var(--compact-font-size); line-height: normal; color: #7650c8; }
.project-interview-note svg { width: 16px; height: 16px; flex: 0 0 16px; animation: interview-icon-color 8s ease-in-out infinite alternate; }
.project-interview-note span { background: linear-gradient(110deg, #8250cc, #278ac5, #8053d1); background-size: 240% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: interview-gradient 8s ease-in-out infinite alternate; }
@keyframes interview-gradient { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes interview-icon-color { from { color: #8250cc; } to { color: #278ac5; } }
@media (max-width: 700px) {
  .project-disclosure-summary, .project-disclosure-content { padding-inline: 16px; }
  .project-disclosure-row { padding-inline: 16px; flex-wrap: wrap; gap: 12px; }
  .project-disclosure-row .project-disclosure-summary { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .project-interview-note span, .project-interview-note svg { animation: none; } }

.project-result { display: flex; align-items: center; gap: 12px; }
.project-result-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.project-result > span { min-width: 0; }

/* Contact styling from Paper; existing magnet and dialog interactions retained. */
.contact-button { font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: normal; letter-spacing: normal; text-shadow: none; width: 233px; height: 54px; padding: 0 20px; gap: 8px; background: #000; }
.contact-action-icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.contact-chip { padding: 8px 18px; gap: 12px; height: 60px; color: var(--text-primary); }
.contact-icon { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 0; background: transparent; color: var(--text-primary); }
.contact-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-copy > span:first-child { font-size: 14px; line-height: normal; font-weight: 500; }
.contact-subtitle { font-size: 11px; line-height: normal; color: var(--text-secondary); overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .contact-chip { max-width: calc(100vw - 48px); }
  .contact-telegram, .contact-linkedin { left: min(70px, calc(100vw - 292px)); }
  .contact-email { left: min(100px, calc(100vw - 272px)); }
}

/* Shared product-cell geometry in sidebar and project headers. */
.side-project, .project-info { display: flex; align-items: center; gap: 12px; min-height: 48px; min-width: 0; width: fit-content; max-width: 100%; padding: 6px 0; margin: 0; }
.side-project .app-icon, .project-info .app-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; }
.side-project-copy, .project-info > div { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 36px; min-width: 0; }
.side-project-copy p, .project-info p, .project-info .secondary { font-size: var(--compact-font-size); line-height: normal; }
.side-project-copy > p:first-child, .project-info > div > p:first-child { font-weight: 500; }
.side-project-copy .small { font-size: var(--compact-font-size); line-height: normal; }
.side-project::before { inset: -8px -16px; }
.side-section h2 { font-size: var(--compact-font-size); letter-spacing: -.01em; }
.intro { gap: 0; }

.side-project-copy > p.small { font-size: var(--compact-font-size); line-height: normal; font-weight: 400; }

/* Cell-main: full-width rows; only sidebar instances have 6px block padding. */
.side-project { width: 100%; align-self: stretch; min-height: 48px; padding: 6px 0; }
.pet-project-list { width: 100%; }
.project-info { flex: 1; width: 100%; min-height: 36px; padding: 0; }
.side-project-copy, .project-info > div { height: 36px; }
.cell-status { font-size: var(--compact-font-size); line-height: normal; font-weight: 500; color: var(--text-tertiary); white-space: nowrap; }
.pet-projects, .side-section { gap: 12px; }
.award > p:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
@media (max-width: 700px) { .food-project .side-project-copy { height: auto; } }

/* About entries use Cell-main geometry and a consistent 12px text scale. */
#about, #about .about-intro, #about .about-entry-body { font-size: var(--compact-font-size); line-height: normal; }
#about .about-section-title, #about .about-entry h3 { font-size: var(--compact-font-size); line-height: normal; font-weight: 500; }
#about .about-entry h3 { margin: 0; }
.about-entry-identity { gap: 12px; width: 100%; min-height: 36px; }
.about-entry-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 36px; }
.about-entry-identity > a { flex: 0 0 36px; }
.about-company-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; object-fit: cover; }
#about .about-dates { margin: 0; font-size: var(--compact-font-size); line-height: normal; }
#about .about-group-arrow { font-size: var(--compact-font-size); line-height: normal; }
#about .about-group[open] > .about-group-summary .about-group-arrow { font-size: 0; }
#about .about-group[open] > .about-group-summary .about-group-arrow::after { font-size: var(--compact-font-size); }
#about .about-preview-caption { font-size: var(--compact-font-size); line-height: normal; }
.app-icon, .project-cover > img, .about-preview-image, .about-company-icon { object-fit: cover; }

#about .about-group-summary .about-section-title { font-size: var(--compact-font-size); color: var(--text-secondary); }

.about-entry-header { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
.about-entry-identity { flex: 1; min-width: 0; }
.about-entry-copy { min-width: 0; }
#about .about-entry-copy .about-role { font-size: var(--compact-font-size); line-height: normal; }
#about .about-entry-header > .about-dates { flex-shrink: 0; margin: 0; align-self: center; }
.about-company-icon, .app-icon { background-color: #fff; }

.cell-status, [data-copy="lumoSoon"] { font-weight: 400; }

.project-resource-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.project-resource-link { color: var(--text-primary); font-size: var(--compact-font-size); line-height: normal; text-decoration: underline; text-decoration-color: var(--text-tertiary); text-underline-offset: 3px; overflow-wrap: anywhere; }
.project-resource-link:hover { text-decoration-color: var(--text-primary); }
.project-resource-link:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; border-radius: 2px; }
