@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@700;800&display=swap");

  :root {
    --white:    #ffffff;
    --bg:       #f8f9fa;
    --bg2:      #f2f4f6;
    --border:   #e4e7ec;
    --border2:  #d0d5dd;
    --text:     #0f1117;
    --muted:    #6b7280;
    --soft:     #9ca3af;
    --accent:   #e8510a;
    --accent-l: #fff0eb;
    --blue:     #1a56db;
    --blue-l:   #eff6ff;
    --display:  'Syne', sans-serif;
    --body:     'Inter', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--white);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  /* scroll offset so fixed nav doesn't cover section headings */
  #projects, #about, #leadership, #experience, #contact {
    scroll-margin-top: 68px;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo { text-decoration: none; }

  .nav-logo-name {
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    letter-spacing: -0.01em;
  }

  .nav-logo-sub {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 400;
    display: block;
    margin-top: -1px;
  }

  .nav-links { display: flex; gap: 2rem; list-style: none; }

  .nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
  }

  .nav-links a:hover { color: var(--text); }

  /* ── HERO ── */
  #hero {
    padding: 130px 5% 80px;
    max-width: 1100px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    background: var(--blue-l);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s 0.1s both;
  }

  .hero-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
  }

  h1.hero-name {
    font-family: var(--display);
    font-size: clamp(2.45rem, 8.3vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.92;
    color: var(--text);
    animation: fadeUp 0.6s 0.2s both;
  }

  h1.hero-name .accent { color: var(--accent); }

  .hero-desc {
    margin-top: 2rem;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.75;
    font-weight: 400;
    animation: fadeUp 0.6s 0.35s both;
  }

  .hero-cta {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.45s both;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--text);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--text);
    transition: background 0.15s, transform 0.15s;
    cursor: pointer;
  }

  .btn-primary:hover { background: #2a2f3a; transform: translateY(-1px); }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    background: transparent;
    color: var(--text);
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--border2);
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    cursor: pointer;
  }

  .btn-outline:hover { border-color: var(--text); background: var(--bg); transform: translateY(-1px); }

  /* ── SECTION SHARED ── */
  .section-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5%;
    border-bottom: 1px solid var(--border);
  }

  .section-header {
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateY(16px);
    transition: opacity 0.5s, transform 0.5s;
  }

  .section-header.visible { opacity: 1; transform: none; }

  .section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
  }

  /* ── PROJECTS ── */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
  }

  .project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    opacity: 1;
    transform: translateY(24px);
  }

  .project-card.visible { opacity: 1; transform: none; }

  .project-card:hover {
    border-color: var(--border2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
  }

  .project-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.2rem;
  }

  .project-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-l);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
  }

  .project-num {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--border2);
    line-height: 1;
  }

  .project-title {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.3rem;
  }

  .project-role {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.9rem;
  }

  .project-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.72;
    margin-bottom: 1.2rem;
  }

  .metrics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }

  .metric {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
  }

  .stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .chip {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--bg2);
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
  }

  /* ── ABOUT ── */
  #about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .about-text {
    opacity: 1;
    transform: translateY(16px);
    transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
  }

  .about-text.visible { opacity: 1; transform: none; }

  .about-text p {
    font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
  }

  .about-text p:last-child { margin-bottom: 0; }

  .em { color: var(--text); font-weight: 600; }

  .about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
    transform: translateY(16px);
    transition: opacity 0.5s 0.2s, transform 0.5s 0.2s;
  }

  .about-cards.visible { opacity: 1; transform: none; }

  .mini-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem;
  }

  .mini-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.8rem;
  }

  .mini-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }

  .mini-list li {
    font-size: 0.86rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.5;
  }

  .mini-list li::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 0.48em;
  }

  /* ── LEADERSHIP ── */
  #leadership-bg {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
  }

  .lead-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s, box-shadow 0.2s, border-color 0.2s;
  }

  .lead-card.visible { opacity: 1; transform: none; }
  .lead-card:hover { border-color: var(--border2); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

  .lead-card-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-l);
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .lead-card-title {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.2rem;
  }

  .lead-card-org {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
    line-height: 1.45;
  }

  .lead-card-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

  .lead-card-list li {
    font-size: 0.86rem;
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
  }

  .lead-card-list li::before { content: '–'; position: absolute; left: 0; color: var(--soft); }

  /* ── EXPERIENCE ── */
  .timeline { position: relative; }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 0;
    width: 1px;
    background: var(--border);
  }

  .tl-item {
    padding-left: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
    opacity: 1;
    transform: translateY(16px);
    transition: opacity 0.4s, transform 0.4s;
  }

  .tl-item:last-child { padding-bottom: 0; }
  .tl-item.visible { opacity: 1; transform: none; }

  .tl-item::before {
    content: '';
    position: absolute;
    left: -3px; top: 7px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--white);
    outline: 1px solid var(--border);
  }

  .tl-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
  }

  .tl-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
  }

  .tl-org { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.7rem; }

  .tl-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }

  .tl-list li {
    font-size: 0.86rem;
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
  }

  .tl-list li::before { content: '–'; position: absolute; left: 0; color: var(--soft); }

  /* ── CONTACT ── */
  #contact-inner { text-align: center; }

  .contact-email {
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
    margin: 1.5rem 0 2.5rem;
    transition: color 0.15s;
    border-bottom: 2px solid transparent;
  }

  .contact-email:hover { color: var(--accent); border-bottom-color: var(--accent); }

  .contact-sub {
    font-size: 0.95rem;
    color: var(--muted);
  }

  .contact-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.8rem;
    font-size: 0.75rem;
    color: var(--soft);
  }

  /* ── FADE UTILITY ── */
  .fade-in {
    opacity: 1;
    transform: translateY(14px);
    transition: opacity 0.5s, transform 0.5s;
  }

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

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

  @media (max-width: 768px) {
    #about-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links { display: none; }
  }

  /* Readable, resilient portfolio layout */
  :root { --muted: #535d6c; --soft: #657080; --accent: #b83d08; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
  .skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px 20px; background: var(--text); color: white; transform: translateY(-160%); }
  .skip-link:focus { transform: none; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  #hero { background-image: linear-gradient(90deg, transparent 99%, var(--border) 99%), linear-gradient(transparent 99%, var(--border) 99%); background-size: 48px 48px; }
  .hero-tag { max-width: 100%; border: 1px solid #dbe7fc; border-radius: 6px; font-size: .875rem; }
  .hero-desc { color: var(--text); max-width: 610px; font-size: 1.125rem; }
  .btn-primary, .btn-outline { min-height: 48px; font-size: .875rem; }
  .section-header, .about-text, .about-cards, .project-card, .lead-card, .tl-item, .fade-in { transform: none; }
  .project-card { display: flex; flex-direction: column; border-top: 3px solid var(--accent); padding: 1.5rem; }
  .project-card .stack { margin-top: auto; }
  .project-desc, .lead-card-list li, .tl-list li, .mini-list li { font-size: 1rem; }
  .project-role, .metric, .chip, .project-tag, .lead-card-date, .lead-card-org, .tl-date, .tl-org, .mini-card-title { font-size: .875rem; }
  .project-num { color: var(--muted); }
  .contact-email { max-width: 100%; overflow-wrap: anywhere; }
  @media (max-width: 768px) {
    nav { position: sticky; height: auto; flex-direction: column; align-items: stretch; padding: 10px 5% 0; }
    .nav-links { display: flex; overflow-x: auto; gap: 1.25rem; }
    .nav-links li { flex: 0 0 auto; }
    .nav-logo-sub { font-size: .75rem; }
    #hero { padding: 48px 5% 56px; }
    .hero-tag { margin-bottom: 1.5rem; }
    .section-wrap { padding: 56px 5%; }
    .section-header { margin-bottom: 2rem; }
    #projects, #about, #leadership, #experience, #contact, #main, #hero { scroll-margin-top: 120px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

/* Editorial timelines */
.resume-band { background:#d2d2d0; color:#232526; padding:76px 5%; }
.resume-columns { max-width:1280px; margin:auto; display:grid; grid-template-columns:1fr 1fr; gap:7%; }
.resume-column h2,.project-heading { font-family:Georgia,'Times New Roman',serif; font-weight:400; font-style:italic; font-size:clamp(2.6rem,5vw,4rem); }
.resume-column h2 { text-align:center; margin-bottom:56px; }
.resume-line { border-left:1px solid #737574; margin-left:8px; }
.resume-entry { position:relative; padding:0 0 48px 28px; }
.resume-entry:before { content:""; position:absolute; width:14px; height:14px; border-radius:50%; background:#111; left:-7.5px; top:52px; }
.resume-date { font-size:1.05rem; margin-bottom:14px; }
.resume-entry h3 { font-size:1.15rem; font-weight:600; line-height:1.5; }
.resume-role { font-style:italic; margin:12px 0 18px; font-size:1.1rem; }
.resume-entry ul { padding-left:22px; }
.resume-entry li { margin-bottom:12px; line-height:1.8; }
.resume-entry h4 { margin:24px 0 12px; font-weight:500; font-size:1.1rem; }
.project-section { max-width:1180px; margin:auto; padding:88px 5%; }
.project-heading { margin-bottom:16px; }
.timeline-intro { max-width:620px; margin-bottom:52px; color:var(--muted); }
.project-timeline { list-style:none; position:relative; }
.project-timeline:before { content:""; position:absolute; top:0; bottom:0; left:170px; width:1px; background:#a5a8aa; }
.project-event { display:grid; grid-template-columns:170px 1fr; padding-bottom:58px; }
.project-date { padding:20px 28px 0 0; font-size:.95rem; }
.project-link { position:relative; display:block; margin-left:34px; padding:30px; border:1px solid var(--border); border-radius:4px; color:inherit; text-decoration:none; background:#fafaf8; }
.project-link:before { content:""; position:absolute; left:-41px; top:26px; width:13px; height:13px; border-radius:50%; background:#111; }
.project-link:hover { border-color:var(--accent); background:#fff7f2; }
.project-link h3 { font-size:clamp(1.35rem,3vw,2rem); line-height:1.25; margin:12px 0; }
.project-link p { margin:12px 0; }
.project-cover { width:100%; max-height:300px; object-fit:contain; background:white; margin:14px 0; }
.project-category { color:var(--accent); font-size:.875rem; }
.case-action { display:inline-block; margin-top:18px; font-weight:600; text-decoration:underline; text-underline-offset:5px; }
.case-page { max-width:1060px; margin:auto; padding:110px 5% 60px; }
.case-page h1 { font-family:Georgia,serif; font-size:clamp(2.5rem,6vw,4.8rem); line-height:1.1; font-weight:400; margin:22px 0; }
.case-page h2 { font:italic 2.3rem Georgia,serif; margin:0 0 26px; }
.case-page h3 { margin-bottom:12px; font-size:1.25rem; }
.case-page section { margin:56px 0; scroll-margin-top:120px; }
.case-summary { font-size:1.2rem; max-width:780px; }
.case-meta,.case-nav { display:flex; flex-wrap:wrap; gap:12px 24px; margin:24px 0; }
.case-nav a,.back-link { color:inherit; text-underline-offset:5px; }
.case-meta span { padding:8px 12px; background:#f0f0ec; }
.process-step { display:grid; grid-template-columns:48px 1fr; gap:16px; padding:26px 0; border-top:1px solid var(--border); }
.step-number { color:var(--accent); font-family:Georgia,serif; font-size:1.6rem; }
.process-step p { line-height:1.85; }
.case-gallery { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.case-gallery img { width:100%; height:320px; object-fit:contain; background:#f4f4f0; }
.case-gallery figcaption { margin-top:10px; color:var(--muted); font-size:.95rem; }
.case-hero-media { margin:36px 0 18px; }
.case-hero-media img { display:block; width:100%; max-height:620px; object-fit:cover; border-radius:10px; background:#faf6ee; }
.case-hero-media figcaption,.video-gallery figcaption { margin-top:10px; color:var(--muted); font-size:.95rem; line-height:1.6; }
.video-gallery { display:grid; gap:32px; }
.video-gallery figure { margin:0; }
.video-gallery video { display:block; max-height:min(720px,82vh); object-fit:contain; border-radius:10px; background:#111; scroll-margin-block:9vh; }
.video-fallback { display:inline-block; margin-top:8px; color:inherit; font-size:.9rem; text-underline-offset:4px; }
.media-pending { padding:28px; border:1px dashed #b5b8bb; color:var(--muted); background:#f8f8f5; }
.case-page video,.case-page iframe { width:100%; aspect-ratio:16/9; border:0; }
.project-pagination { display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; border-top:1px solid var(--border); padding-top:28px; }
@media(max-width:760px) {
 .resume-columns { grid-template-columns:1fr; gap:24px; }
 .resume-column h2 { text-align:left; margin-bottom:36px; }
 .resume-band { padding:56px 6%; }
 .project-timeline:before { left:7px; }
 .project-event { grid-template-columns:1fr; padding-left:34px; padding-bottom:36px; }
 .project-date { padding:0 0 12px; }
 .project-link { margin-left:0; padding:22px; }
 .project-link:before { left:-34px; }
 .case-page { padding-top:44px; }
 .case-gallery { grid-template-columns:1fr; }
 .case-gallery img { height:auto; max-height:420px; }
}




/* Restrained card corners. */
.journey-row,.journey-event:nth-child(3n) .journey-row,.journey-event:nth-child(4n+1) .journey-row,.mini-card,.project-card,.lead-card,.btn-primary,.btn-outline{border-radius:2px}
.journey-thumb{border-radius:2px}

/* Soft cream surfaces. */
.journey-row,.journey-event:nth-child(3n) .journey-row,.journey-event:nth-child(4n+1) .journey-row{border-radius:12px;background:#faf6ee;border-color:#e5ded1}
.journey-event:nth-child(4n+1) .journey-row{background:#f5efe3}
.journey-row:hover{background:#f3ecdf;border-color:#c9bca5}
.journey-thumb{border-radius:8px;background:#fffdf8}
.mini-card,.project-card,.lead-card{border-radius:12px;background:#faf6ee;border-color:#e5ded1}
.case-meta span{border-radius:6px;background:#f5efe4}
.media-pending,.case-gallery img{border-radius:10px;background:#faf6ee}
.btn-primary,.btn-outline{border-radius:8px}
