/* -------------------------------------
   Editorial portfolio — design tokens
------------------------------------- */
:root {
    --bg: #f3f4f6;
    --bg-elevated: #ffffff;
    --ink: #0b1f3a;
    --ink-soft: #243447;
    --muted: #5c6b7a;
    --line: #d8dde3;
    --accent: #0b1f3a;
    --accent-soft: #1a3352;
    --wash: rgba(11, 31, 58, 0.04);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "DM Sans", system-ui, sans-serif;

    --space: clamp(1.25rem, 4vw, 2.5rem);
    --max: 72rem;
    --measure: 40rem;

    --ease: 0.25s ease;
    --reveal: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --bg: #0c1118;
    --bg-elevated: #141b24;
    --ink: #e8eef4;
    --ink-soft: #c5d0db;
    --muted: #8b9aab;
    --line: #2a3544;
    --accent: #c9d6e4;
    --accent-soft: #a8b8c9;
    --wash: rgba(201, 214, 228, 0.06);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    transition: background var(--ease), color var(--ease);
}

.page-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(11, 31, 58, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(11, 31, 58, 0.05), transparent 50%),
        linear-gradient(180deg, #eef0f3 0%, var(--bg) 28%, var(--bg) 100%);
}

[data-theme="dark"] .page-atmosphere {
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(120, 150, 180, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 40% at 100% 30%, rgba(80, 110, 140, 0.06), transparent 45%),
        linear-gradient(180deg, #0a0f15 0%, var(--bg) 30%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease), opacity var(--ease);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -------------------------------------
   Header
------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease), padding var(--ease);
}

.header.scrolled {
    border-bottom-color: var(--line);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.theme-toggle,
.menu-icon {
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
}

.menu-icon {
    display: none;
}

/* -------------------------------------
   Buttons
------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-primary {
    background: var(--ink);
    color: var(--bg);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

/* -------------------------------------
   Sections
------------------------------------- */
.section {
    padding: clamp(4.5rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem);
    max-width: var(--max);
    margin: 0 auto;
}

.section-header {
    margin-bottom: clamp(2rem, 5vw, 3rem);
    max-width: 36rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.65rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
}

/* -------------------------------------
   Hero — one composition
------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.hero-inner {
    max-width: 42rem;
}

.hero-location {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 1rem;
}

.hero-role {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.hero-lede {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 36rem;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.hero-links a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* -------------------------------------
   About
------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-copy p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    max-width: var(--measure);
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-aside {
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--line);
}

.meta-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meta-list dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.meta-list dd {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* -------------------------------------
   Experience
------------------------------------- */
.experience-item {
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.experience-role {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.experience-company {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.experience-meta {
    font-size: 0.9rem;
    color: var(--muted);
    white-space: nowrap;
}

.experience-points {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    max-width: 48rem;
}

.experience-points li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
}

.experience-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--ink);
    border-radius: 50%;
    opacity: 0.45;
}

.experience-points strong {
    color: var(--ink-soft);
    font-weight: 600;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.experience-tags span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}

/* -------------------------------------
   Work / Projects — list, not cards
------------------------------------- */
.work-group {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.work-group:last-child {
    margin-bottom: 0;
}

.work-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.work-list {
    display: flex;
    flex-direction: column;
}

.work-item {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1rem 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    transition: background var(--ease);
}

.work-group .work-item:first-child {
    border-top: none;
    padding-top: 1.25rem;
}

.work-item:last-child {
    border-bottom: 1px solid var(--line);
}

.work-index {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    padding-top: 0.2rem;
}

.work-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.work-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.work-links {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.work-links a {
    font-size: 1.25rem;
    color: var(--muted);
}

.work-links a:hover {
    color: var(--ink);
}

.work-body > p {
    color: var(--muted);
    max-width: 40rem;
    margin-bottom: 0.85rem;
}

.work-stack {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}

/* -------------------------------------
   Capabilities
------------------------------------- */
.skills-table {
    border-top: 1px solid var(--line);
}

.skill-row {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) 1fr;
    gap: 1rem 2rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.skill-row h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.skill-row p {
    color: var(--ink-soft);
    font-size: 1.02rem;
}

/* -------------------------------------
   Contact
------------------------------------- */
.contact {
    padding-bottom: clamp(5rem, 12vw, 8rem);
}

.contact-panel {
    max-width: 36rem;
}

.contact-lede {
    color: var(--muted);
    margin: 1.25rem 0 2rem;
    line-height: 1.75;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.contact-location {
    font-size: 0.9rem;
    color: var(--muted);
}

/* -------------------------------------
   Footer
------------------------------------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 1.75rem clamp(1.25rem, 5vw, 4rem);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--muted);
}

/* -------------------------------------
   Reveal motion
------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--reveal), transform var(--reveal);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------
   Responsive
------------------------------------- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-aside {
        padding-top: 1.5rem;
    }

    .skill-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: inline-flex;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 clamp(1.25rem, 5vw, 4rem);
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }

    .navbar.active {
        max-height: 320px;
        opacity: 1;
        padding-top: 0.5rem;
        padding-bottom: 1.25rem;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--line);
    }

    .theme-toggle {
        margin-top: 0.75rem;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .work-index {
        font-size: 0.85rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .experience-meta {
        white-space: normal;
    }

    .contact-actions .btn {
        width: 100%;
    }
}
