* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 Archivo, sans-serif; font-synthesis: none; }
h1,h2,h3,p { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.mobile-shell { width: calc(100% - 60px); max-width: 600px; margin-inline: auto; }
.contact-bar { position: sticky; top: 0; z-index: 10; background: var(--gray-surface); }
.contact-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; }
.home-link { display: flex; align-items: center; min-height: 44px; font-size: 16px; line-height: 1.2; text-decoration: underline; text-underline-offset: 3px; }
.pressed-button { display: flex; align-items: center; justify-content: center; border-radius: 999px; box-shadow: 3px 4px #000; transition: transform 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out, box-shadow 120ms ease-out; }
.contact-button { flex-shrink: 0; background: white; font-size: 16px; font-weight: 700; min-height: 32px; padding: 4px 18px; position: relative; }
.contact-button::before { content: ''; position: absolute; inset: -6px 0; }
@media (hover:hover) { .pressed-button:hover { transform: translateX(3px) translateY(3px); box-shadow: 0 1px #000; background: #88ff00; color: #000; } }
.pressed-button:active { transform: translateX(5px) translateY(5px); box-shadow: none; background: #88ff00; color: #000; }
.intro { margin-top: 22px; }
.name-art { display: block; width: 100%; height: auto; }
.presentation { display: grid; grid-template-columns: minmax(0, 154px) minmax(0, 1fr); align-items: center; gap: 31px; margin-top: 34px; }
.portrait { display: block; width: 100%; max-width: 154px; height: auto; aspect-ratio: 154/150; border-radius: 6px; object-fit: cover; object-position: 50% 44%; object-view-box: inset(0 3.33% 0 3.33%); }
.profession { min-width: 0; max-width: 140px; font-size: 18px; line-height: 24px; font-weight: 400; font-stretch: 105%; }
.profile-contacts { margin-top: 32px; font-style: normal; font-size: 16px; line-height: 22px; letter-spacing: 1px; }
.contact-row { border-top: .75px solid; padding-block: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 75px; }
.contact-row:last-child { border-bottom: .75px solid; }
.contact-row a:not(.whatsapp) { display: grid; min-width: 0; min-height: 44px; align-content: center; }
.email-address span { overflow-wrap: anywhere; }
.whatsapp { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; color: #767876; }
.whatsapp svg { width: 24px; height: 24px; }
.biography { margin-top: 36px; font-size: 16px; line-height: 24px; font-weight: 300; }
.biography p + p { margin-top: 24px; }
.expertise { margin-top: 40px; }
.section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.section-heading h2 { font: 400 24px/1.2 'CS Matches', sans-serif; }
.section-heading > span { flex: 1; min-width: 16px; border-top: .75px solid; }
.skills { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.skills li { display: grid; place-items: center; min-height: 50px; padding: 10px 12px; border: .75px solid; border-radius: 10px; font-size: 18.65px; line-height: 1.4; text-align: center; }
.planning { background: var(--planning-green); }.writing { background: var(--writing-green); }.direction { background: var(--cyan); }.design { background: var(--design-blue); }.production { background: var(--video-lilac); }.motion { background: var(--magenta); }
.ai { margin-top: 8px; padding: 31px 15px 35px; border: .75px solid; border-radius: 10px; background: var(--yellow); text-align: center; }
.ai h3 { font-size: 18.65px; line-height: 26px; font-weight: 700; margin-bottom: 8px; }
.ai p { font-size: 14px; line-height: 20px; }
.applied-work { margin-top: 40px; }
.work-links { display: grid; gap: 12px; }
.work-links a { background: var(--blue); color: white; font-size: 18px; line-height: 1.3; font-weight: 700; min-height: 49px; padding: 12px 14px; text-align: center; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 52px; padding-bottom: 74px; font: 400 15px/1.3 'CS Matches', sans-serif; letter-spacing: 3px; }
.signature > span:not(.signature-line) { white-space: nowrap; }
.signature-line { flex: 1; min-width: 12px; border-top: .75px solid; }
@media (max-width: 374px) { .mobile-shell { width: calc(100% - 40px); }.presentation { gap: 20px; }.signature { gap: 10px; letter-spacing: 2px; } }
@media (max-width: 389px) { .presentation { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .pressed-button { transition: none; } }

/* Mobile browsers do not reserve a desktop scrollbar gutter. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Keep the complete address readable on narrow phones only. */
@media (max-width: 359px) {
  .profile-contacts .email-address { width: 100%; }
  .email-address span:last-child {
    font-size: 14.75px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
