:root {
    --bg: #fdf2f8;
    --text: #1a0a12;
    --muted: #7a4060;
    --stroke: #fce7f3;
    --accent: #be185d;
    --accent-soft: rgba(190, 24, 93, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(190, 24, 93, 0.09) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(190, 24, 93, 0.06) 0%, transparent 55%);
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 72px 24px 96px;
}

/* ── Hero ─────────────────────────────────── */

.hero {
    display: grid;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-name-row h1 {
    margin: 0;
}

.hero-photo {
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 240px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: block;
}

@media (max-width: 640px) {
    .hero-name-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-img {
        width: 160px;
        height: 200px;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

h1 {
    margin: 0;
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    font-weight: 700;
}

.tagline {
    margin: 0;
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 36ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ── Buttons ──────────────────────────────── */

.btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
    transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn.primary:hover {
    background: #9d1550;
    border-color: #9d1550;
}

.btn.ghost {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: transparent;
}

/* ── Panels ───────────────────────────────── */

.panel {
    border-top: 1px solid var(--stroke);
    padding: 32px 0;
    margin-top: 8px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.dash {
    flex: 1;
    height: 1px;
    background: var(--stroke);
}

.lead {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 64ch;
}

/* ── Cards ────────────────────────────────── */

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    padding: 18px 16px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}

.card-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.card-cta:hover {
    text-decoration: underline;
}

/* ── Area cards (big title grid) ─────────── */

.area-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.area-card {
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.area-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.area-card-link {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.area-card-title {
    margin: 0 0 6px 0;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.area-card-sub {
    margin: 0 0 14px 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

.area-card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.area-card-cta {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

@media (max-width: 720px) {
    .area-cards {
        grid-template-columns: 1fr;
    }
}

/* ── Work rows (editorial) ────────────────── */

.work-rows {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--stroke);
    align-items: start;
    transition: background 160ms ease;
    border-radius: 10px;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
}

.work-row:last-child {
    border-bottom: 1px solid var(--stroke);
}

.work-row:hover {
    background: var(--accent-soft);
}

.work-row-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.6;
    padding-top: 3px;
}

.work-row-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.work-row-content p {
    margin: 0 0 12px 0;
    color: var(--muted);
    line-height: 1.55;
    max-width: 52ch;
    font-size: 0.97rem;
}

.work-row-meta {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px 0;
}

.work-row-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

/* Stretch link to cover entire row (only when inside .work-row) */
.work-row .work-row-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .work-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ── Contact ──────────────────────────────── */

.contact p {
    margin: 0 0 14px 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Animations ───────────────────────────── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero > * {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.15s; }
.hero > *:nth-child(3) { animation-delay: 0.25s; }

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: var(--fade-delay, 0ms);
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero > * {
        opacity: 1;
        animation: none;
    }
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Detail pages ─────────────────────────── */

.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 160ms ease;
}

.back-nav:hover { color: var(--accent); }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.tag {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: #fff;
}

.work-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: grid;
    gap: 12px;
}

.work-item {
    padding: 16px 18px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #fff;
    transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.work-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.work-item-meta {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.work-item h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.work-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

/* ── Inline credits list ─────────────────── */

.inline-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.credit-line {
    padding: 8px 0;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    gap: 0 10px;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 0.93rem;
    line-height: 1.55;
}

.credit-line:last-child {
    border-bottom: none;
}

.credit-line strong {
    font-weight: 600;
    flex-shrink: 0;
}

.credit-line strong::after {
    content: ' ·';
    font-weight: 400;
    color: var(--muted);
}

.credit-line span {
    color: var(--muted);
}

.subsection-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 24px 0 0 0;
}

.show-dropdown {
    width: 100%;
}

.show-dropdown summary {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: baseline;
    cursor: pointer;
}

.show-dropdown summary::-webkit-details-marker {
    display: none;
}

.show-dropdown summary::after {
    content: '▸';
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.2s;
}

.show-dropdown[open] summary::after {
    transform: rotate(90deg);
}

.show-list-indent {
    list-style: none;
    padding: 6px 0 0 20px;
    margin: 0;
}

.show-list-indent li {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 2px 0;
}

.show-list-indent li span {
    color: var(--fg);
    font-weight: 500;
}

/* ── Education / score cards ─────────────── */

.score-num {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
    margin: 10px 0 6px 0;
}

.score-breakdown {
    font-size: 0.83rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 720px) {
    .page {
        padding: 56px 18px 72px;
    }

    .hero {
        gap: 14px;
    }

    .tagline,
    .lead {
        font-size: 1rem;
    }
}
