:root {
    --ink: #111820;
    --ink-soft: #202a34;
    --paper: #f3f6f2;
    --paper-strong: #e9efea;
    --muted: #5e6973;
    --line: #d8e0da;
    --cyan: #1fc4d1;
    --green: #27ca72;
    --green-dark: #076338;
    --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Avenir Next", "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 6vw;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    background: rgba(17, 24, 32, .94);
    color: var(--white);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}
.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #061116;
    font-weight: 950;
}
.account-nav { display: flex; align-items: center; gap: 18px; font-size: .82rem; }
.account-nav a:not(.directory-link) { color: #c3cdd4; }
.directory-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 15px;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font-weight: 850;
}

.profile-page { min-height: calc(100vh - 130px); padding: 30px 6vw 64px; }
.profile-shell { max-width: 1260px; margin: 0 auto; }
.back-link { display: inline-block; margin: 0 0 18px; color: var(--green-dark); font-size: .8rem; font-weight: 850; }
.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(17, 24, 32, .07);
}
.profile-avatar {
    display: grid;
    width: 92px;
    height: 92px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(39, 202, 114, .38);
    border-radius: 24px;
    background: linear-gradient(135deg, #c8f6dc, #e7fbef);
    color: var(--green-dark);
    font-size: 2rem;
    font-weight: 950;
}
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile-kicker { color: var(--green-dark); font-size: .68rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.profile-intro h1 { margin: 5px 0 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .98; letter-spacing: -.055em; }
.profile-role { margin: 9px 0 0; color: var(--ink-soft); font-weight: 850; }
.profile-summary { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.profile-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--paper-strong);
    color: var(--ink-soft);
    font-size: .64rem;
    font-weight: 850;
}
.profile-meta svg { width: 12px; height: 12px; flex: 0 0 auto; }
.profile-actions { display: grid; min-width: 190px; gap: 9px; }
.primary-action, .secondary-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 900;
    transition: transform 180ms ease, background 180ms ease;
}
.primary-action { background: var(--green-dark); color: var(--white); }
.secondary-action { border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}
.profile-panel { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.profile-panel + .profile-panel { margin-top: 18px; }
.profile-panel h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.profile-panel > p { margin: 10px 0 0; color: var(--muted); white-space: pre-line; }
.profile-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.profile-list li { position: relative; padding-left: 18px; color: var(--muted); font-size: .8rem; }
.profile-list li::before { position: absolute; top: .52em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--green); content: ""; }
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 6vw;
    border-top: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
    font-size: .78rem;
}
.site-footer .brand { color: var(--ink); }
.site-footer > a:last-child { color: var(--green-dark); font-weight: 850; }

@media (max-width: 980px) {
    .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
    .profile-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .site-header { padding: 0 18px; }
    .account-nav { gap: 12px; }
    .account-nav a:not(.directory-link) { display: none; }
    .directory-link { min-height: 38px; padding: 0 11px; font-size: .72rem; }
    .profile-page { padding: 22px 18px 44px; }
    .profile-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
    .profile-avatar { width: 72px; height: 72px; border-radius: 20px; font-size: 1.7rem; }
    .profile-actions, .profile-layout { grid-template-columns: 1fr; }
    .profile-actions { grid-column: auto; }
    .profile-panel { padding: 22px; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
