:root {
    --bg: #0D0D0D;
    --ink: #FFFFFF;
    --ink-soft: #A3A3A3;
    --accent: #FFC700;
    --accent-2: #FF3B5C;
    --accent-soft: rgba(255,199,0,0.08);
    --line: #262626;
    --max-width: 1050px;
}

* {box-sizing: border-box; }

/* When the page jumps to an anchor like the nav links (about, experience, etc.), smooth animates the scroll, gliding down the page rather than jumping abruptly.*/
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body{
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

a:hover, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px; /* 2 values: first is top/bottom, second is left/right (margin: 0 auto; = 0 on top and bottom, auto on left and right) */
}

header.site-nav {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

header.site-nav .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-name {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 19px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

nav a {
    color: var(--ink-soft);
    border-bottom: none;
}

nav a:hover {
    color: var(--accent-2);
}

section {
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

section:last-of-type {
    border-bottom: none;
}

.hero {
    padding-top: 88px;
    padding-bottom: 88px;
}

.hero .wrap {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-photo {
    flex-shrink: 0;
    width: 300px;
    height: 360px;
    object-fit: cover;
    border: none;
    border-radius: 16px;
}

.hero h1 {
    font-size: clamp(34px, 5.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero h1 .word {
    display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
    .hero h1 .word {
        opacity: 0;
        transform: translateY(0.5em);
        animation: word-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
        animation-delay: calc(var(--i) * 140ms + 100ms);
    }
}

@keyframes word-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .role {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 18px;
    max-width: 50ch;
}

.hero .links {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    font-size: 18px;
}

h2.section-title {
    font-size: clamp(34px, 5.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

p {
    margin: 0 0 16px 0;
}

p:last-child {
    margin-bottom: 0;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}

.timeline li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 16px 0;
    position: relative;
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.timeline li.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 21px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--ink-soft);
    z-index: 1;
}

.timeline li.current::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,199,0,0.15);
}

.timeline-entries {
    list-style: none;
    margin: 0;
    padding: 0;
}

.year-section > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    user-select: none;
}

.year-section > summary::-webkit-details-marker {
    display: none;
}

.year-section > summary::after {
    content: '+';
    color: var(--accent);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
}

.year-section[open] > summary::after {
    content: '−';
}

.timeline .when {
    color: var(--ink-soft);
    font-size: 14px;
    padding-top: 3px;
}

.timeline .what strong {
    font-weight: 600;
}

.timeline .what .where {
    color: var(--ink-soft);
    display: block;
    font-size: 15px;
    margin-top: 2px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
    max-width: 840px;
}

.project-grid-a4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 560px;
}

.project-thumb-a4 {
    width: 100%;
    aspect-ratio: 210 / 297;
    border: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-size: 13px;
    transition: border-color 0.2s ease;
    overflow: hidden;
    border-radius: 12px;
}

.project-thumb-a4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card[open] .project-thumb-a4 {
    border: 1px solid var(--accent);
}

.project-card {
    cursor: pointer;
}

.project-card > summary {
    list-style: none;
    cursor: pointer;
    display: block;
}

.project-card > summary::-webkit-details-marker {
    display: none;
}

.project-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-size: 13px;
    transition: border-color 0.2s ease;
    overflow: hidden;
    border-radius: 12px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card[open] .project-thumb {
    border: 1px solid var(--accent);
}

.project-card > summary .project-title {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.project-desc {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    padding-bottom: 4px;
}

.speaking-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.speaking-content {
    flex: 1;
    min-width: 0;
}

.speaking-photos {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.speaking-img {
    display: block;
    width: 100%;
    object-fit: cover;
    border: none;
    border-radius: 16px;
}

.speaking-note {
    font-style: italic;
    color: var(--ink-soft);
}

.reading-list {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.reading-list h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.books {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    max-width: 560px;
    gap: 24px;
}

.book-cover {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.book-title {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.book-author {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: var(--ink-soft);
}

.contact-title {
    font-size: clamp(34px, 5.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.contact-intro {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 18px;
    max-width: 50ch;
}

.form-button {
    display: inline-block;
    margin: 28px 0 0;
    padding: 13px 28px;
    background: var(--accent);
    color:#0D0D0D;
    font-size: 15px;
    font-weight: 700;
    border-bottom: none;
    border-radius: 12px;
}

.form-button:hover, .form-button:focus-visible {
    background: var(--accent-2);
    color: #FFFFFF;
    border-bottom: none;
}

.wave-ticker { overflow: hidden; margin: -8px 0 8px; }
.wave-ticker svg { width: 100%; height: auto; display: block; }
.contact-ticker { margin-top: 56px; }
.wave-ticker text {
    font: 500 40px "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.02em;
    fill: currentColor;
    white-space: pre;
}

.opp-section {
    border-top: 1px solid var(--line);
}

.opp-section:first-of-type {
    border-top: none;
}

.opp-section > summary {
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    user-select: none;
}

.opp-section > summary::-webkit-details-marker {
    display: none;
}

.opp-section > summary::after {
    content: '+';
    color: var(--accent);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.opp-section[open] > summary::after {
    content: '−';
}

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

.opp-list li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
}

.opp-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.opp-intro {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 16px;
}

.opp-group {
    margin: 24px 0 2px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

.opp-group-note {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 15px;
}

.contact-layout {
    display: flex;
    align-items: center;
    gap: 64px;
}

.contact-main {
    flex: 1;
}

.contact-cards {
    flex: 0 0 380px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
    outline: none;
}

.contact-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.contact-icon {
    flex: 0 0 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.contact-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.contact-platform {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact-handle {
    font-size: 16px;
    overflow-wrap: anywhere;
}

.contact-arrow {
    color: var(--ink-soft);
    font-size: 18px;
    transition: color 0.2s ease;
}

.contact-card:hover .contact-arrow,
.contact-card:focus-visible .contact-arrow {
    color: var(--accent);
}

.company-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.company-logos img {
    flex: 0 1 90px;
    min-width: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.experience-intro {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 16px;
}

.experience-intro-text {
    flex: 1;
}

.experience-intro-text p {
    margin: 0;
}

.experience-intro-text p + p {
    margin-top: 16px;
}

.experience-video {
    flex: 0 0 320px;
    margin: 0;
    text-align: center;
}

.experience-video video {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.experience-video figcaption {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 15px;
}

footer {
    padding: 40px 0 60px;
    color: var(--ink-soft);
    font-size: 14px;
}

@media (max-width: 560px) {
    nav ul {
        gap: 8px 16px;
    }
    .timeline li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .contact-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }
    .contact-cards {
        flex: none;
    }
    .experience-intro {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .experience-video {
        flex: none;
    }
    section {padding: 52px 0; }
    .hero { padding-top: 56px; padding-bottom: 56px; }
    .hero .wrap {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 28px;
    }
    .hero-photo {
        width: 140px;
        height: 170px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-grid-a4 {
        grid-template-columns: 1fr;
    }
    .speaking-layout {
        flex-direction: column;
    }
    .speaking-photos {
        width: 100%;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a.site-name {
    color: var(--ink);
    border-bottom: none;
}

nav a[aria-current="page"] {
    color: var(--ink);
}

/* Resources index */
.resource-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.resource-list li {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.resource-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.resource-list a {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.resource-list p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
}

/* Footer links */
footer a { color: var(--ink-soft); text-decoration: underline; }
footer a:hover { color: var(--accent-2); }

/* Numbered steps in Opportunities */
.opp-steps {
    margin: 0;
    padding: 0 0 16px 22px;
    font-size: 16px;
}

.opp-steps li {
    padding: 4px 0;
}

.opp-steps li::marker {
    color: var(--accent);
    font-weight: 700;
}
