/* A text-led profile layout. The previous design remains in main.css. */
body.profile-design {
  --bg: #fff; --surface: #f8f9fa; --surface2: #fff;
  --text: #202124; --text-muted: #5f6368; --text-light: #6b7075;
  --accent: #1967d2; --accent-bg: #e8f0fe; --border: #dadce0;
  --font-display: 'Inter', sans-serif;
  background: #fff; color: #202124; animation: none; overflow-x: clip;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.profile-design a:focus-visible, .profile-design button:focus-visible,
.profile-design summary:focus-visible { outline: 2px solid #1967d2; outline-offset: 5px; }
.profile-skip { position: fixed; left: 20px; top: -80px; z-index: 10001; background: #fff; border: 1px solid #1967d2; padding: 12px; }
.profile-skip:focus { top: 10px; }
.profile-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 48px; border-bottom: 1px solid #f1f3f4; background: #fff; }
.profile-brand { font-size: 20px; font-weight: 500; letter-spacing: -0.7px; white-space: nowrap; }
.profile-navigation { display: flex; align-items: center; gap: 34px; }
.profile-navigation a { font-size: 14px; line-height: 1.5; padding: 26px 0; }
.profile-navigation a:hover { color: #1967d2; }
.profile-menu-toggle { display: none; }
.profile-main { max-width: 1440px; margin: 0 auto; padding: 0 72px; }
.profile-intro { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 48px; padding: 72px 0 88px; scroll-margin-top: 30px; }
.profile-portrait { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #f1f3f4; }
.profile-location { font-size: 12px; line-height: 1.7; color: #6b7075; margin-top: 20px; max-width: 150px; }
.profile-identity-links { display: flex; flex-direction: column; align-items: start; gap: 10px; margin-top: 18px; }
.profile-identity-links a { color: #1967d2; font-size: 13px; }
.profile-eyebrow { color: #6b7075; font-size: 12px; letter-spacing: 0.03em; margin-bottom: 16px; }
.profile-name { font-size: clamp(40px, 5vw, 68px); line-height: 1.12; letter-spacing: -2.8px; font-weight: 400; margin: 0 0 18px; }
.profile-design .profile-role { font-size: 16px; letter-spacing: 0; line-height: 1.5; font-weight: 500; color: #5f6368; margin-bottom: 26px; }
.profile-design .profile-bio p { font-size: 17px; line-height: 1.65; color: #202124; text-align: left; margin: 0 0 15px; max-width: 1040px; }
.profile-education-note { color: #5f6368; font-size: 14px; line-height: 1.7; margin-top: 20px; }
.profile-education-note a { color: #1967d2; text-decoration: underline; text-underline-offset: 3px; }
.profile-areas { display: grid; grid-template-columns: 296px minmax(0,1fr); gap: 48px; align-items: start; margin: 0 0 82px; }
.profile-areas h2 { font-size: 36px; letter-spacing: -1.2px; line-height: 1.2; font-weight: 400; }
.profile-area-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.profile-area-links a { border: 1px solid #dadce0; border-radius: 12px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.5; }
.profile-area-links a:hover { background: #f8faff; border-color: #aecbfa; }
.profile-area-links span { color: #5f6368; font-size: 21px; }
.profile-body { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 104px; }
.profile-sidebar { position: sticky; top: 40px; align-self: start; margin-top: 4px; }
.profile-sidebar-label { color: #6b7075; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.profile-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.profile-sidebar a { padding: 12px 16px; border-left: 2px solid #e8eaed; font-size: 14px; color: #5f6368; line-height: 1.5; }
.profile-sidebar a:hover, .profile-sidebar a[aria-current="location"] { color: #1967d2; border-color: #1967d2; background: #f8faff; }
.profile-section { scroll-margin-top: 32px; margin-bottom: 80px; }
.profile-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid #bdc1c6; padding-bottom: 17px; margin-bottom: 28px; }
.profile-section-heading h2 { font-weight: 400; font-size: 29px; line-height: 1.25; letter-spacing: -0.8px; }
.profile-section-heading > span { font-size: 11px; color: #6b7075; }
.profile-section-intro { font-size: 15px; line-height: 1.8; color: #5f6368; margin-bottom: 28px; max-width: 760px; }
.profile-design .profile-work-list { display: block; }
.profile-work-item { border-bottom: 1px solid #e8eaed; padding: 4px 0 28px; margin-bottom: 30px; position: relative; }
.profile-item-type { color: #6b7075; font-size: 12px; margin-bottom: 10px; }
.profile-design .profile-work-item .project-card__title { font-weight: 500; font-size: 21px; line-height: 1.4; color: #1967d2; letter-spacing: -0.35px; margin-bottom: 10px; }
.profile-design .project-card__tagline { font-size: 14px; color: #5f6368; line-height: 1.65; }
.profile-details { margin: 20px 0; }
.profile-details summary { display: flex; justify-content: space-between; align-items: center; width: fit-content; min-width: 176px; gap: 24px; color: #1967d2; font-size: 13px; cursor: pointer; list-style: none; padding: 4px 0; }
.profile-details summary::-webkit-details-marker { display: none; }
.profile-details[open] summary span { transform: rotate(45deg); }
.profile-design .project-card__desc { font-size: 15px; color: #3c4043; line-height: 1.8; padding-top: 4px; max-width: 760px; }
.profile-design .work-detail-title { color: #202124; font-size: 15px; font-weight: 600; margin-top: 22px; }
.profile-design .tag { color: #5f6368; font-weight: 400; font-size: 11px; border: none; border-radius: 0; background: #f1f3f4; padding: 5px 9px; }
.profile-design .project-card__privacy { font-size: 11px; color: #80868b; margin: 14px 0 0; }
.profile-design .project-card__links { color: #1967d2; font-size: 13px; margin-top: 12px; }
.profile-design .profile-skill-group { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 24px; border-bottom: 1px solid #f1f3f4; padding: 0 0 20px; margin-bottom: 22px; }
.profile-design .skill-group__title { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; line-height: 1.6; color: #5f6368; margin: 0; }
.profile-design .skill-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.profile-design .skill-card { padding: 0; border: none; background: transparent; border-radius: 0; }
.profile-design .skill-card__name { font-size: 13px; font-weight: 400; color: #202124; line-height: 1.6; }
.profile-entry { position: relative; padding: 0 0 26px; margin: 0 0 28px; border-bottom: 1px solid #f1f3f4; }
.profile-design .timeline__period { display: block; font-size: 12px; color: #80868b; margin-bottom: 10px; }
.profile-design .timeline__role, .profile-design .education-degree { font-weight: 500; font-size: 19px; margin: 0 0 7px; letter-spacing: -0.3px; }
.profile-design .timeline__company { font-weight: 400; font-size: 14px; letter-spacing: 0; color: #1967d2; text-transform: none; margin-bottom: 14px; }
.profile-design .timeline__desc { font-size: 14px; line-height: 1.8; color: #5f6368; }
.profile-design .education-institution { font-size: 15px; color: #5f6368; line-height: 1.7; }
.profile-design .profile-interest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 32px; }
.profile-design .beyond-card { background: transparent; border: none; border-top: 1px solid #e8eaed; border-radius: 0; padding: 22px 0; }
.profile-design .beyond-card:hover { transform: none; }
.profile-design .beyond-card__icon { display: block; font-size: 21px; margin-bottom: 12px; }
.profile-design .beyond-card__title { font-weight: 500; font-size: 16px; margin-bottom: 8px; }
.profile-design .beyond-card__desc { font-size: 14px; color: #5f6368; line-height: 1.75; }
.photo-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.gallery-tile { position: relative; overflow: hidden; display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: 3px; background: #e8eaed; cursor: zoom-in; text-align: left; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile-caption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 8px; background: linear-gradient(transparent,rgba(0,0,0,0.76)); color: #fff; padding: 30px 13px 12px; font-size: 12px; line-height: 1.4; }
.gallery-tile-caption > span { font-size: 16px; }
.photo-lightbox { width: min(1100px,94vw); max-width: 94vw; max-height: 94dvh; margin: auto; padding: 0; border: 1px solid #3c4043; border-radius: 8px; background: #111; color: #fff; overflow: auto; }
.photo-lightbox::backdrop { background: rgba(0,0,0,0.85); }
.photo-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; font-size: 13px; }
.photo-lightbox button { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #5f6368; border-radius: 4px; background: #202124; color: #fff; font: inherit; cursor: pointer; }
.photo-lightbox-stage { display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; align-items: center; gap: 12px; padding: 0 12px; }
.photo-lightbox-stage img { display: block; width: 100%; height: min(70dvh,760px); object-fit: contain; touch-action: pan-y; user-select: none; }
.photo-lightbox-stage button { font-size: 32px; }
.photo-lightbox-caption { padding: 18px 20px; font-size: 14px; line-height: 1.5; }
.profile-contact-lead { font-size: 15px; line-height: 1.8; color: #5f6368; margin-bottom: 26px; }
.profile-design .contact__email { display: inline; color: #1967d2; font-size: inherit; font-weight: 400; letter-spacing: 0; }
.profile-contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.profile-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.profile-contact-form label { display: flex; flex-direction: column; gap: 9px; color: #5f6368; font-size: 13px; }
.profile-contact-form input, .profile-contact-form textarea { width: 100%; padding: 12px; background: #fff; border: 1px solid #dadce0; border-radius: 4px; color: #202124; font: inherit; font-size: 15px; line-height: 1.5; }
.profile-contact-form textarea { resize: vertical; }
.profile-contact-form input:focus, .profile-contact-form textarea:focus { outline: 2px solid #1967d2; outline-offset: 1px; }
.profile-send { display: flex; justify-content: space-between; gap: 30px; align-self: start; border-radius: 4px; padding: 13px 20px; border: 1px solid #1967d2; background: #1967d2; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.profile-send:hover { background: #174ea6; }
.profile-footer { background: #f8f9fa; padding: 32px 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; color: #5f6368; }
.profile-footer div { display: flex; gap: 28px; }
.profile-notices { border-bottom: 1px solid #dadce0; padding: 18px 48px; font-size: 14px; color: #174ea6; background: #f8faff; }
.profile-design .ie-edit-mode, .profile-design .ie-add-btn { --accent: #1967d2; }
.profile-design .ie-admin-bar { position: sticky; top: 0; background: #fff; backdrop-filter: none; border-color: #dadce0; }
.profile-design .ie-admin-bar__btn { color: #3c4043; border-color: #dadce0; background: #fff; }
.profile-design .ie-admin-bar__btn--primary { color: #1967d2; background: #e8f0fe; }
.profile-design .ie-admin-bar__inner { flex-wrap: wrap; }
.profile-design .ie-modal { background: #fff; border-color: #dadce0; color: #202124; }
.profile-design .ie-modal__header, .profile-design .ie-modal__footer { background: #f8f9fa; border-color: #dadce0; }
.profile-design .ie-modal__title, .profile-design .ie-modal__close, .profile-design .ie-field__label { color: #3c4043; }
.profile-design .ie-field__input, .profile-design .ie-field__textarea { color: #202124; background: #fff; border-color: #dadce0; }
.profile-design .ie-modal .btn--ghost { color: #5f6368; border-color: #dadce0; }
.profile-design .ie-modal .btn--primary { color: #fff; background: #1967d2; }
.profile-design.ie-edit-mode .skill-card { padding: 32px 8px 8px; background: #f8f9fa; }
@media (max-width: 1100px) {
  .profile-main { padding: 0 40px; }
  .profile-header { padding-left: 32px; padding-right: 32px; }
  .profile-navigation { gap: 22px; }
  .profile-intro { grid-template-columns: 140px minmax(0,1fr); gap: 36px; }
  .profile-areas { grid-template-columns: 220px minmax(0,1fr); gap: 36px; }
  .profile-body { grid-template-columns: 180px minmax(0,1fr); gap: 60px; }
  .profile-area-links { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .profile-header { padding: 20px 24px; min-height: 70px; flex-wrap: wrap; gap: 16px; }
  .profile-brand { font-size: 18px; }
  .profile-menu-toggle { display: flex; align-items: center; gap: 12px; padding: 7px; color: #3c4043; background: transparent; border: none; font: inherit; font-size: 13px; cursor: pointer; }
  .profile-navigation { display: none; width: 100%; flex-wrap: wrap; gap: 0 24px; }
  .profile-navigation.is-open { display: flex; }
  .profile-navigation a { padding: 10px 0; }
  .profile-main { padding: 0 24px; }
  .profile-intro { padding: 40px 0 48px; grid-template-columns: 1fr; gap: 30px; }
  .profile-identity { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .profile-portrait { width: 88px; height: 88px; }
  .profile-location { display: none; }
  .profile-identity-links { flex-direction: row; gap: 20px; margin: 0; }
  .profile-name { font-size: 42px; letter-spacing: -1.8px; }
  .profile-design .profile-bio p { font-size: 15px; line-height: 1.75; }
  .profile-areas { grid-template-columns: 1fr; gap: 22px; margin-bottom: 52px; }
  .profile-areas h2 { font-size: 29px; }
  .profile-desktop-break { display: none; }
  .profile-body { display: block; }
  .profile-sidebar { position: static; border-bottom: 1px solid #dadce0; padding-bottom: 24px; margin-bottom: 38px; }
  .profile-sidebar-label { margin-bottom: 10px; }
  .profile-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
  .profile-sidebar a { border: none; padding: 6px 0; font-size: 12px; }
  .profile-section { margin-bottom: 54px; }
  .profile-section-heading h2 { font-size: 26px; }
  .profile-section-heading > span { display: none; }
  .profile-design .profile-skill-group { grid-template-columns: 1fr; gap: 12px; }
  .profile-design .profile-interest-grid { gap: 10px 24px; }
  .photo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .gallery-tile-caption { font-size: 11px; padding: 28px 9px 9px; }
  .photo-lightbox-stage { position: relative; display: block; padding: 0; }
  .photo-lightbox-stage img { height: 66dvh; }
  .photo-lightbox-stage button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(32,33,36,0.85); }
  .photo-lightbox-prev { left: 8px; }
  .photo-lightbox-next { right: 8px; }
  .profile-form-row { grid-template-columns: 1fr; }
  .profile-footer { padding: 26px 24px; align-items: start; flex-direction: column; }
  .profile-footer div { gap: 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery-tile img { transition: none; } }
