/* About and contact pages — shared colors and typography live in style.css. */
.about-hero { border-bottom: 1px solid var(--line); padding-top: 56px; }
.about-hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: 72px; }
.about-intro h1 { margin: 22px 0 24px; font-size: clamp(38px, 4.5vw, 62px); letter-spacing: -.055em; line-height: 1.08; font-weight: 700; }
.about-intro h1 span, .contact-intro h1 span { color: var(--coral); }
.about-intro p { max-width: 565px; line-height: 1.8; }
.about-lead { font-size: 18px; margin-bottom: 14px; color: var(--text); }
.about-intro > .muted { font-size: 14px; }
.about-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.about-actions .text-link { margin-left: 4px; font-size: 13px; }
.about-portrait { position: relative; margin: 0; aspect-ratio: 4 / 4.65; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.about-portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: grayscale(1); display: block; }
.about-portrait::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(12 14 18 / 70%)); pointer-events: none; }
.about-portrait-caption { position: absolute; z-index: 1; bottom: 16px; left: 16px; right: 16px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgb(26 28 32 / 94%); border: 1px solid rgb(255 255 255 / 12%); border-radius: 7px; backdrop-filter: blur(12px); }
.about-small-label { color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; display: block; margin-bottom: 5px; }
.about-portrait-caption strong { font-size: 12px; font-weight: 600; }
.about-portrait-caption > span { text-align: right; color: var(--mint); font: 10px/1.7 var(--mono); white-space: nowrap; }
.about-portrait-caption small { color: var(--muted); font-size: 9px; }
.about-focus { background: #0e1014; padding: 26px 0; border-bottom: 1px solid var(--line); }
.about-focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-focus-grid > div { padding: 22px; border: 1px solid #282a2e; background: var(--surface); border-radius: 6px; }
.about-focus-grid strong { display: block; font: 600 21px var(--mono); letter-spacing: -.05em; color: var(--coral); margin-bottom: 12px; }
.about-focus-grid > div:nth-child(2) strong { color: var(--mint); }
.about-focus-grid > div:nth-child(3) strong { color: #b9c8de; }
.about-focus-grid > div:nth-child(4) strong { color: var(--text); }
.about-focus-grid span { font: 9px var(--mono); letter-spacing: .06em; }
.about-focus-grid p { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.about-bordered { border-bottom: 1px solid var(--line); }
.about-stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-stack-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.about-card-symbol { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--coral); background: rgb(224 122 95 / 10%); border: 1px solid rgb(224 122 95 / 18%); font: 500 15px var(--mono); flex-shrink: 0; }
.about-symbol-mint { color: var(--mint); background: rgb(78 222 163 / 7%); border-color: rgb(78 222 163 / 18%); }
.about-symbol-blue { color: #b9c8de; background: rgb(185 200 222 / 7%); border-color: rgb(185 200 222 / 18%); }
.about-stack-card h3 { font-size: 17px; margin: 19px 0 10px; letter-spacing: -.02em; }
.about-stack-card > p { font-size: 12px; color: var(--muted); line-height: 1.7; min-height: 42px; }
.about-stack-card dl { margin: 21px 0 0; }
.about-stack-card dl > div { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.about-stack-card dt { color: var(--muted); font: 10px var(--mono); margin-bottom: 7px; }
.about-stack-card dd { font-size: 12px; line-height: 1.7; margin: 0; }
.about-stack-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; color: var(--muted); font: 11px/1.7 var(--mono); }
.about-stack-note > span { color: var(--mint); font-size: 16px; }
.about-stack-note p { margin: 0; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 205px 1fr; gap: 48px; padding: 35px 0; border-bottom: 1px solid var(--line); }
.timeline-date { padding-top: 5px; }
.timeline-date > span { display: block; font: 11px var(--mono); color: var(--coral); }
.timeline-date small { display: block; color: var(--muted); font-size: 11px; margin-top: 9px; }
.timeline-content { position: relative; padding-left: 26px; border-left: 1px solid var(--line); }
.timeline-content::before { content: ""; position: absolute; width: 7px; height: 7px; border: 3px solid var(--bg); background: var(--coral); border-radius: 50%; left: -7px; top: 3px; box-sizing: content-box; }
.timeline-item:last-child .timeline-content::before { background: var(--mint); }
.timeline-kind { font: 9px var(--mono); color: var(--coral); letter-spacing: .12em; }
.timeline-kind-education { color: var(--mint); }
.timeline-content h3 { font-size: 21px; letter-spacing: -.03em; margin: 7px 0; }
.timeline-content .timeline-company { color: var(--text); font-size: 13px; margin-bottom: 17px; }
.timeline-content > p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 710px; margin: 8px 0; }
.timeline-content .tags { margin-top: 18px; }
.about-language { display: flex; gap: 15px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; margin-top: 24px; padding: 18px 22px; }
.about-language strong { font-size: 13px; }
.about-language p { color: var(--muted); font-size: 12px; margin: 5px 0 0; line-height: 1.7; }
.about-language p span:not(.about-language-divider) { color: var(--text); font-family: var(--mono); }
.about-language-divider { margin: 0 12px; color: #62646b; }
.about-project-section { background: #0e1014; border-block: 1px solid var(--line); }
.about-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-project-card { display: block; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; transition: border-color .2s, transform .2s; }
.about-project-card:hover { transform: translateY(-3px); border-color: #705147; }
.about-project-card > div:first-child { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 18px; }
.about-project-number { font: 11px var(--mono); color: var(--coral); }
.about-project-card h3 { font-size: 20px; letter-spacing: -.03em; margin: 23px 0 12px; }
.about-project-card > p { min-height: 65px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.about-project-card .tags { margin-top: 20px; }
.about-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.about-principles article { border-top: 1px solid var(--line); padding-top: 23px; }
.about-principle-number { font: 12px var(--mono); color: var(--mint); }
.about-principles h3 { margin: 14px 0 12px; font-size: 17px; letter-spacing: -.025em; }
.about-principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.about-cv-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; }
.about-cv-banner h2 { font-size: 25px; letter-spacing: -.04em; margin: 12px 0; }
.about-cv-banner p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; max-width: 390px; }
.about-cv-banner .about-actions { margin: 0; flex-shrink: 0; }
.contact-section { padding-top: 57px; }
.contact-intro { position: relative; margin-bottom: 42px; }
.contact-intro h1 { font-size: clamp(38px, 4.3vw, 58px); line-height: 1.1; letter-spacing: -.055em; margin: 18px 0; font-weight: 700; }
.contact-intro > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.contact-location { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font: 10px var(--mono); margin-top: 18px; }
.contact-location .icon { color: var(--mint); width: 15px; height: 15px; }
.contact-location > span { color: #5b5e65; margin: 0 3px; }
.contact-grid { display: grid; grid-template-columns: .83fr 1.32fr; gap: 26px; align-items: start; }
.contact-sidebar { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-card, .contact-form-card { padding: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; min-width: 0; }
.contact-label { display: block; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.contact-email-row { display: flex; gap: 6px; align-items: center; justify-content: space-between; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px 8px 12px; margin-top: 18px; }
.contact-email-row > a { font: 11px var(--mono); overflow-wrap: anywhere; color: var(--text); }
.contact-email-row > a:hover { color: var(--coral); }
.contact-copy { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #282a2e; cursor: pointer; flex-shrink: 0; }
.contact-copy:hover { color: var(--text); border-color: var(--muted); }
.contact-copy .icon { width: 14px; height: 14px; }
.contact-email-card > p { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 13px 0 0; }
.contact-copy-status { display: block; color: var(--mint); font-size: 11px; line-height: 1.6; margin-top: 5px; }
.contact-copy-status:empty { display: none; }
.contact-profiles { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.contact-profiles > a { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); transition: border-color .2s; }
.contact-profiles > a:hover { border-color: #705147; }
.contact-profile-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 5px; background: #282a2e; font: 500 12px var(--mono); color: var(--text); }
.contact-profiles strong { font-size: 12px; font-weight: 600; display: block; margin-bottom: 5px; }
.contact-profiles small { font-size: 10px; color: var(--muted); line-height: 1.6; display: block; }
.contact-profile-arrow { margin-left: auto; color: var(--muted); font-size: 17px; }
.contact-details > div + div { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 19px; }
.contact-details > div > a:not(.button) { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-top: 11px; }
.contact-details > div > a:not(.button):hover { color: var(--coral); }
.contact-details p { font-size: 13px; margin: 10px 0 5px; }
.contact-details small { font-size: 11px; color: var(--muted); }
.contact-cv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-cv-row strong { font-size: 12px; display: block; margin-bottom: 6px; }
.contact-cv-row .button { padding: 8px 12px; font-size: 11px; }
.contact-form-card { padding: 32px; }
.contact-form-heading { display: flex; gap: 15px; padding-bottom: 25px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.contact-form-symbol { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #634a42; border-radius: 7px; color: var(--coral); font-size: 25px; flex-shrink: 0; }
.contact-form-heading h2 { font-size: 22px; letter-spacing: -.035em; margin: 0 0 9px; }
.contact-form-heading p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.contact-field label, .contact-topics legend { font: 9px var(--mono); letter-spacing: .05em; color: var(--text); }
.contact-field label > span, .contact-topics legend > span { color: var(--coral); }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--text); font: 12px/1.7 var(--font); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; min-height: 44px; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #92939e; }
.contact-field textarea { resize: vertical; min-height: 174px; }
.contact-field input:focus, .contact-field textarea:focus { outline: 0; border-color: var(--coral); box-shadow: 0 0 0 2px rgb(255 180 161 / 12%); }
.contact-topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-topics legend { padding: 0; margin-bottom: 11px; }
.contact-topic-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.contact-topic-options label { position: relative; display: block; cursor: pointer; }
.contact-topic-options input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.contact-topic-options label > span { min-height: 43px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); transition: border-color .2s, background .2s; }
.contact-topic-options .icon { width: 12px; height: 12px; opacity: 0; flex-shrink: 0; }
.contact-topic-options input:checked + span { color: var(--coral); border-color: #b97c6b; background: rgb(224 122 95 / 10%); }
.contact-topic-options input:checked + span .icon { opacity: 1; }
.contact-topic-options input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 4px; }
.contact-form-note { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.contact-form-note .icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--mint); margin-top: 2px; }
.contact-form-note p { font-size: 11px; line-height: 1.8; margin: 0; }
.contact-submit { align-self: flex-start; font-size: 12px; padding: 13px 19px; }
.contact-form-status { color: var(--mint); font-size: 12px; line-height: 1.7; margin: 0; padding: 14px; border: 1px solid rgb(78 222 163 / 25%); background: rgb(78 222 163 / 5%); border-radius: 5px; }
.contact-form-status:empty { display: none; }
.contact-fallback { color: var(--muted); font-size: 10px; line-height: 1.8; padding-top: 18px; border-top: 1px solid var(--line); margin: 0; }
.contact-fallback a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-bottom-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 21px 24px; margin-top: 30px; font: 10px var(--mono); color: var(--muted); }
.contact-bottom-note > div { display: flex; align-items: center; gap: 11px; }
.contact-bottom-note > div > span { color: var(--coral); font-size: 14px; }
.contact-bottom-note p { margin: 0; line-height: 1.7; }
.contact-bottom-note a { color: var(--text); white-space: nowrap; }
.contact-bottom-note a:hover { color: var(--coral); }
@media (max-width: 1050px) {
  .about-hero-grid { gap: 38px; grid-template-columns: 1.2fr .8fr; }
  .about-intro h1 { font-size: 48px; }
  .about-actions { gap: 9px; }
  .about-actions .text-link { width: 100%; margin-top: 8px; }
  .about-focus-grid > div { padding: 18px; }
  .about-focus-grid strong { font-size: 18px; }
  .about-stack-card { padding: 22px; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 20px; }
  .contact-card { padding: 20px; }
  .contact-form-card { padding: 26px; }
  .contact-topic-options { grid-template-columns: 1fr; gap: 7px; }
  .contact-topic-options label > span { min-height: 40px; padding-inline: 12px; }
  .contact-field-row { grid-template-columns: 1fr; gap: 22px; }
  .about-cv-banner { align-items: flex-start; }
  .about-cv-banner .about-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 760px) {
  .about-hero, .contact-section { padding-top: 36px; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-intro h1 { font-size: clamp(36px, 7vw, 54px); }
  .about-intro p { max-width: 100%; }
  .about-intro .about-actions .text-link { width: auto; margin-top: 0; }
  .about-portrait { max-width: 430px; width: 100%; aspect-ratio: 4/4.2; }
  .about-focus-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-stack-grid { grid-template-columns: 1fr; gap: 14px; }
  .about-stack-card > p { min-height: 0; }
  .about-stack-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 5px; }
  .about-stack-card h3 { display: inline-block; margin: 0 0 0 12px; vertical-align: middle; }
  .about-stack-card > p { margin-top: 18px; }
  .timeline-item { grid-template-columns: 150px 1fr; gap: 20px; }
  .timeline-content { padding-left: 20px; }
  .timeline-content h3 { font-size: 19px; }
  .about-project-grid { grid-template-columns: 1fr; gap: 14px; }
  .about-project-card > p { min-height: 0; }
  .about-project-card h3 { margin-top: 14px; }
  .about-principles { grid-template-columns: 1fr; gap: 28px; }
  .about-cv-banner { flex-direction: column; padding: 28px; gap: 25px; }
  .about-cv-banner .about-actions { flex-direction: row; flex-wrap: wrap; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-email-card { grid-column: 1 / -1; }
  .contact-email-row { max-width: 100%; }
  .contact-email-row > a { font-size: 13px; }
  .contact-field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-topic-options { grid-template-columns: repeat(3, 1fr); }
  .contact-profiles > a { padding: 12px 9px; gap: 8px; }
  .contact-profile-icon { width: 28px; height: 28px; }
  .contact-intro h1 { font-size: clamp(36px, 7vw, 52px); }
  .contact-bottom-note { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 480px) {
  .about-hero { padding-bottom: 40px; }
  .about-intro h1 { font-size: 37px; }
  .about-lead { font-size: 16px; }
  .about-actions .button { padding-inline: 14px; font-size: 12px; }
  .about-intro .about-actions .text-link { width: 100%; margin-top: 8px; margin-left: 0; }
  .about-portrait-caption { left: 12px; right: 12px; bottom: 12px; padding: 13px; }
  .about-portrait-caption strong { font-size: 11px; }
  .about-focus-grid > div { padding: 17px 13px; }
  .about-focus-grid strong { font-size: 17px; }
  .about-focus-grid span { font-size: 8px; letter-spacing: 0; }
  .about-focus-grid p { font-size: 10px; }
  .about-stack-card dl { grid-template-columns: 1fr; gap: 0; }
  .about-stack-card dl > div { display: flex; justify-content: space-between; gap: 15px; padding-top: 13px; margin-top: 13px; }
  .about-stack-card dt { max-width: 35%; line-height: 1.7; margin: 0; }
  .about-stack-card dd { text-align: right; max-width: 65%; font-size: 11px; }
  .timeline-item { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .timeline-date { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
  .timeline-date > span { font-size: 10px; }
  .timeline-date small { margin-top: 0; font-size: 10px; }
  .timeline-content { margin-left: 6px; }
  .about-language { padding: 17px; gap: 12px; }
  .about-language p { font-size: 10px; }
  .about-language-divider { margin-inline: 6px; }
  .about-cv-banner { padding: 24px; }
  .about-cv-banner h2 { font-size: 25px; }
  .about-cv-banner .about-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .contact-intro { margin-bottom: 30px; }
  .contact-intro h1 { font-size: 38px; }
  .contact-intro > p { font-size: 14px; }
  .contact-desktop-break { display: none; }
  .contact-sidebar { grid-template-columns: 1fr; gap: 14px; }
  .contact-email-card { grid-column: auto; }
  .contact-profiles > a { padding: 14px 12px; gap: 13px; }
  .contact-form-card { padding: 22px; }
  .contact-form-heading { gap: 12px; }
  .contact-form-heading h2 { font-size: 21px; }
  .contact-form-heading p { font-size: 11px; }
  .contact-field-row { grid-template-columns: 1fr; gap: 24px; }
  .contact-field input, .contact-field textarea { font-size: 16px; }
  .contact-topic-options { grid-template-columns: 1fr; }
  .contact-topic-options label > span { font-size: 12px; }
  .contact-form-symbol { width: 35px; height: 35px; font-size: 23px; }
  .contact-submit { width: 100%; justify-content: center; font-size: 12px; }
  .contact-bottom-note { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-project-card, .contact-profiles > a, .contact-field input, .contact-field textarea, .contact-topic-options label > span { transition: none; }
  .about-project-card:hover { transform: none; }
}

/* Supporting labels stay readable on compact screens. */
.about-small-label, .about-focus-grid span, .about-portrait-caption small,
.timeline-kind, .contact-label, .contact-field label, .contact-topics legend { font-size: 10px; }
