:root {
    --ds-page: #fbfbfa;
    --ds-ink: #251f21;
    --ds-ink-2: #585254;
    --ds-hairline: #eae9ea;
    --ds-teal: #73a89a;
    --ds-font-text: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
body {
    background:
        radial-gradient(70% 34% at 82% 0%, rgba(115, 168, 154, 0.16), rgba(115, 168, 154, 0) 70%),
        radial-gradient(60% 30% at 8% 12%, rgba(37, 31, 33, 0.05), rgba(37, 31, 33, 0) 70%),
        radial-gradient(50% 26% at 50% 100%, rgba(115, 168, 154, 0.10), rgba(115, 168, 154, 0) 70%),
        var(--ds-page);
    background-attachment: fixed;
    color: var(--ds-ink);
    font-family: var(--ds-font-text);
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.pf-root {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 24px 48px;
}
@media (min-width: 768px) {
    .pf-root { padding: 28px 36px 72px; }
}

/* Glass vocabulary */
.pf-glass {
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(234, 233, 234, 0.9);
    box-shadow: 0 8px 30px rgba(37, 31, 33, 0.06);
}

/* Reveal on scroll: hidden state only when JS is active and motion is allowed.
   Without JS (or with reduced motion) content renders fully visible. */
@media (prefers-reduced-motion: no-preference) {
    html.pf-js .pf-reveal { opacity: 0; transform: translateY(18px); }
    html.pf-js .pf-reveal.pf-in {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    html.pf-js.pf-instant .pf-reveal.pf-in { transition: none; }
}

/* Nav: floating glass pill, sticky on the standalone page */
.pf-nav {
    position: sticky;
    top: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    margin-bottom: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(234, 233, 234, 0.9);
    box-shadow: 0 4px 18px rgba(37, 31, 33, 0.05);
}
.pf-mono { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--ds-ink); }
.pf-nav-links { display: flex; gap: 2px; }
.pf-nav-links a {
    text-decoration: none;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ds-ink-2);
    border-radius: 999px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, background 0.2s ease;
}
.pf-nav-links a:hover { color: var(--ds-ink); background: rgba(37, 31, 33, 0.05); }

/* Hero */
.pf-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 8px 0 8px;
}
.pf-pill {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 14px;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ds-teal);
    border: 1px solid rgba(115, 168, 154, 0.45);
    border-radius: 999px;
    background: rgba(115, 168, 154, 0.08);
}
.pf-name {
    font-weight: 600;
    letter-spacing: -0.035em;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.04;
    margin: 0 0 18px;
    color: var(--ds-ink);
}
.pf-lede { margin: 0 0 28px; font-size: 16px; line-height: 26px; color: var(--ds-ink-2); max-width: 520px; }
.pf-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.pf-btn-primary {
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 0;
    background: var(--ds-ink);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
}
.pf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 31, 33, 0.18); background: #3a3335; }
.pf-btn-secondary {
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    padding: 11px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--ds-hairline);
    background: rgba(255, 255, 255, 0.75);
    color: var(--ds-ink);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.pf-btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 31, 33, 0.10); border-color: #ddd9da; }
.pf-arrow { font-size: 13px; line-height: 1; }
.pf-status { margin: 0; font-size: 13px; line-height: 20px; color: var(--ds-ink-2); display: flex; align-items: center; gap: 8px; }
.pf-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ds-teal);
    display: inline-block;
    flex: none;
}
@media (prefers-reduced-motion: no-preference) {
    .pf-dot { animation: pf-pulse 2.4s ease-in-out infinite; }
    @keyframes pf-pulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(115, 168, 154, 0.5); }
        50% { box-shadow: 0 0 0 6px rgba(115, 168, 154, 0); }
    }
}

/* Photo with floating stat pill and pointer tilt */
.pf-hero-photo { justify-self: end; width: 100%; max-width: 320px; }
.pf-photo-tilt {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}
.pf-portrait {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
    border: 1px solid rgba(234, 233, 234, 0.9);
    box-shadow: 0 24px 60px rgba(37, 31, 33, 0.14);
}
.pf-float {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(234, 233, 234, 0.9);
    box-shadow: 0 10px 28px rgba(37, 31, 33, 0.12);
}
.pf-float-a { left: -18px; bottom: 28px; }
.pf-float-value { font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: -0.02em; color: var(--ds-ink); }
.pf-float-label { font-size: 11px; line-height: 15px; color: var(--ds-ink-2); max-width: 130px; }

/* Sections */
.pf-section { margin-top: 96px; }
.pf-section-label {
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-ink-2);
}
.pf-section-title {
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.15;
    margin: 0 0 32px;
    color: var(--ds-ink);
    max-width: 640px;
}
.pf-subhead {
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 20px;
    margin: 40px 0 16px;
    color: var(--ds-ink);
}

/* Featured work */
.pf-feature-wide {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 16px;
    align-items: center;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.pf-feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.pf-feature {
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .pf-feature-wide:hover, .pf-feature:hover, .pf-more:hover, .pf-edu:hover, .pf-cap:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 44px rgba(37, 31, 33, 0.10);
    }
}
.pf-tag {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ds-teal);
}
.pf-feature-name { margin: 0 0 10px; font-weight: 600; font-size: 19px; line-height: 26px; letter-spacing: -0.02em; color: var(--ds-ink); }
.pf-num { color: var(--ds-teal); font-weight: 600; margin-right: 10px; }
.pf-detail { margin: 0 0 16px; font-size: 14px; line-height: 23px; color: var(--ds-ink-2); }
.pf-chips { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip {
    font-size: 11px;
    line-height: 16px;
    padding: 4px 10px;
    border: 1px solid rgba(234, 233, 234, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--ds-ink-2);
    white-space: nowrap;
}
.pf-role { margin: auto 0 0; padding-top: 12px; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--ds-teal); }
.pf-feature .pf-figure { margin-top: 18px; }
.pf-figure { margin: 0; }
.pf-diagram { width: 100%; height: auto; display: block; }
.pf-figure figcaption { font-size: 11px; line-height: 16px; color: var(--ds-ink-2); margin-top: 8px; text-align: center; }

/* More work */
.pf-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-more {
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.pf-more-name { margin: 0 0 8px; font-weight: 600; font-size: 16px; line-height: 23px; letter-spacing: -0.02em; color: var(--ds-ink); }
.pf-more-stack { margin: auto 0 8px; font-size: 11px; line-height: 16px; color: var(--ds-ink-2); }

/* Capabilities */
.pf-cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-cap { border-radius: 20px; padding: 20px; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease; }
.pf-cap .pf-chips { margin: 0; }
.pf-cap-label { margin: 0 0 10px; font-weight: 600; font-size: 14px; line-height: 21px; letter-spacing: -0.01em; color: var(--ds-ink); }

/* Timeline */
.pf-timeline { position: relative; margin-left: 6px; }
.pf-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--ds-hairline);
}
.pf-event {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 14px 0 14px 26px;
}
.pf-event-dot {
    position: absolute;
    left: 0;
    top: 22px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ds-page);
    border: 2px solid var(--ds-teal);
}
.pf-event-period { margin: 0; font-size: 12px; line-height: 20px; color: var(--ds-teal); font-weight: 600; }
.pf-event-name { margin: 0; font-weight: 600; font-size: 15px; line-height: 23px; letter-spacing: -0.01em; color: var(--ds-ink); }
.pf-event-org { margin: 2px 0 0; font-size: 13px; line-height: 20px; color: var(--ds-ink-2); }

/* Education */
.pf-edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-edu { border-radius: 16px; padding: 16px 18px; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease; }
.pf-edu-name { margin: 0; font-weight: 600; font-size: 13px; line-height: 20px; color: var(--ds-ink); }
.pf-edu-org { margin: 4px 0 0; font-size: 12px; line-height: 18px; color: var(--ds-ink-2); }

.pf-note { margin: 18px 0 0; font-size: 13px; line-height: 21px; color: var(--ds-ink-2); max-width: 640px; }

/* Contact */
.pf-cta-panel {
    border-radius: 28px;
    padding: 48px 28px;
    text-align: center;
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(115, 168, 154, 0.14), rgba(115, 168, 154, 0) 70%),
        rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(234, 233, 234, 0.9);
    box-shadow: 0 12px 36px rgba(37, 31, 33, 0.07);
}
.pf-cta-title {
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.2;
    margin: 0 auto 12px;
    max-width: 560px;
    color: var(--ds-ink);
}
.pf-cta-text { margin: 0 auto 24px; font-size: 14px; line-height: 22px; color: var(--ds-ink-2); max-width: 460px; }
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.pf-closing {
    margin-top: 72px;
    padding-top: 20px;
    border-top: 1px solid var(--ds-hairline);
    color: var(--ds-ink-2);
    font-size: 12px;
    line-height: 20px;
}

@media (max-width: 767px) {
    .pf-hero { grid-template-columns: 1fr; gap: 28px; }
    .pf-hero-photo { justify-self: center; max-width: 260px; order: -1; }
    .pf-float { padding: 8px 11px; border-radius: 14px; }
    .pf-float-value { font-size: 16px; line-height: 20px; }
    .pf-float-label { font-size: 10px; line-height: 13px; max-width: 110px; }
    .pf-float-a { left: -6px; bottom: 14px; }
    .pf-feature-wide { grid-template-columns: 1fr; padding: 20px; }
    .pf-feature-pair { grid-template-columns: 1fr; }
    .pf-more-grid { grid-template-columns: 1fr; }
    .pf-cap-grid { grid-template-columns: 1fr; }
    .pf-edu-grid { grid-template-columns: 1fr; }
    .pf-event { grid-template-columns: 1fr; gap: 2px; }
    .pf-section { margin-top: 72px; }
    .pf-nav { padding: 8px 14px; margin-bottom: 36px; }
    .pf-nav-links a { padding: 8px 8px; font-size: 12px; }
               }
