:root {
    --bg: #0b0d11;
    --surface: #13161c;
    --surface2: #1a1e27;
    --border: #222733;
    --accent: #2a6ef5;
    --accent-soft: rgba(42,110,245,0.12);
    --text: #e8eaf0;
    --muted: #6b7280;
    --dim: #9ca3af;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 2.5rem;
    background: rgba(11,13,17,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-brand {
    font-family: var(--serif);
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
    min-height: 100dvh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 2.5rem 6rem;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 30%, rgba(42,110,245,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(42,110,245,0.05) 0%, transparent 60%);
}
.hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
            linear-gradient(rgba(42,110,245,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(42,110,245,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}
.hero-tag {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative; z-index: 1;
    opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 14ch;
    position: relative; z-index: 1;
    opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
}
.hero-sub {
    margin-top: 1.5rem;
    max-width: 46ch;
    color: var(--dim);
    font-size: 1rem;
    position: relative; z-index: 1;
    opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-meta {
    margin-top: 3rem;
    display: flex; gap: 3rem;
    position: relative; z-index: 1;
    opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.hero-meta-item label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}
.hero-meta-item span { font-size: 0.9rem; color: var(--dim); }

/* SECTIONS */
section { padding: 6rem 2.5rem; max-width: 1080px; margin: 0 auto; }

.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}
.section-divider {
    width: 40px; height: 1px;
    background: var(--accent);
    margin-bottom: 2rem;
}

/* OVERVIEW */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
    margin-top: 3rem;
    border: 1px solid var(--border);
}
.overview-card {
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: background 0.2s;
}
.overview-card:hover { background: var(--surface2); }
.overview-card .oc-num {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.overview-card h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    color: var(--text);
}
.overview-card p { font-size: 0.88rem; color: var(--dim); }

/* REFLECTION BLOCKS */
.reflection {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    padding: 6rem 2.5rem;
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}
.reflection-aside h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    position: sticky; top: 7rem;
}
.reflection-aside .person-tag {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    position: sticky; top: 10rem;
}
.reflection-body p {
    font-size: 0.97rem;
    color: var(--dim);
    margin-bottom: 1.4rem;
    line-height: 1.8;
}
.reflection-body p:first-child { color: var(--text); font-size: 1.05rem; }

.highlight-block {
    background: var(--accent-soft);
    border-left: 2px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}
.highlight-block p {
    font-size: 0.9rem !important;
    color: var(--dim) !important;
    margin-bottom: 0 !important;
}

/* FEEDBACK GRID */
.feedback-section { padding: 6rem 2.5rem; max-width: 1080px; margin: 0 auto; border-top: 1px solid var(--border); }
.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 3rem;
    background: var(--border);
}
.feedback-card {
    background: var(--bg);
    padding: 2.5rem;
}
.feedback-card .fc-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.fc-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}
.fc-dot.liked { background: #22c55e; }
.fc-dot.improve { background: #f59e0b; }
.feedback-card h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
}
.feedback-list { list-style: none; }
.feedback-list li {
    font-size: 0.88rem;
    color: var(--dim);
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    display: flex; gap: 0.75rem; align-items: flex-start;
}
.feedback-list li:last-child { border-bottom: none; }
.feedback-list li::before {
    content: '—';
    color: var(--muted);
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

/* TAKEAWAYS */
.takeaways { padding: 6rem 2.5rem; max-width: 1080px; margin: 0 auto; border-top: 1px solid var(--border); }
.takeaway-list {
    margin-top: 3rem;
    display: flex; flex-direction: column; gap: 0;
}
.takeaway-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}
.takeaway-item:last-child { border-bottom: none; }
.takeaway-num {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--accent);
    padding-top: 0.1rem;
}
.takeaway-text { font-size: 0.97rem; color: var(--dim); line-height: 1.7; }
.takeaway-text strong { color: var(--text); font-weight: 500; }

/* AI SECTION */
.ai-section { padding: 6rem 2.5rem; max-width: 1080px; margin: 0 auto; border-top: 1px solid var(--border); }
.ai-inner {
    margin-top: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.ai-inner::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(42,110,245,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.ai-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-bottom: 2rem; }
.chip {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 2px;
    width: 100%;
    text-align: center;
}
.chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ai-inner p { font-size: 0.95rem; color: var(--dim); line-height: 1.8; margin-bottom: 1.2rem; }
.ai-inner p:last-child { margin-bottom: 0; }
.ai-inner p strong { color: var(--text); font-weight: 500; }

/* AUTHOR */
.author-section {
    padding: 6rem 2.5rem;
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.author-block h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}
.author-block p { font-size: 0.92rem; color: var(--dim); line-height: 1.8; }
.author-details {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem 2.5rem;
}
.author-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.author-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--surface2);
    display: block;
}
.author-name {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    text-align: center;
}
.author-role {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
}
.author-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.author-meta-row { display: flex; justify-content: space-between; font-size: 0.82rem; }
.author-meta-row span:first-child { color: var(--muted); }
.author-meta-row span:last-child { color: var(--dim); }

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}
footer p { font-size: 0.78rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; font-size: 0.78rem; }
footer a:hover { color: var(--dim); }
footer img { height: 28px; opacity: 0.5; transition: opacity 0.2s; }
footer img:hover { opacity: 0.8; }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* MOBILE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        padding: 0.85rem 1.25rem;
    }
    .nav-links {
        display: flex;
        gap: 1.25rem;
    }
    .nav-links li:nth-child(n+4) { display: none; }
    .hero { padding: 120px 1.25rem 4rem; }
    section,
    .reflection,
    .feedback-section,
    .takeaways,
    .ai-section,
    .author-section { padding: 4rem 1.25rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .reflection { grid-template-columns: 1fr; gap: 2rem; }
    .feedback-grid { grid-template-columns: 1fr; }
    .author-section { grid-template-columns: 1fr; gap: 2rem; }
    footer { flex-direction: column; gap: 0.75rem; text-align: center; }
    .hero-meta { flex-direction: column; gap: 1.5rem; }
}