
  :root{
    --bg: #171717;
    --bg-raised: #1f1f1f;
    --bg-raised-2: #232323;
    --emerald: #00845a;
    --emerald-tint: #14b585;
    --white: #f4f4f2;
    --grey: #8a8a86;
    --grey-dim: #5c5c58;
    --border: #2b2b2b;
    --max: 1100px;
  }
  *{ margin:0; padding:0; box-sizing:border-box; }
  html{ scroll-behavior: smooth; }
  body{
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  a{ color: inherit; text-decoration: none; }
  .wrap{ max-width: var(--max); margin: 0 auto; padding: 0 32px; }
  h1,h2,h3{ font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
  .eyebrow{
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-tint);
  }

  /* NAV */
  nav{
    position: fixed; top:0; left:0; right:0; z-index: 100;
    background: rgba(23,23,23,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  nav .wrap{
    display:flex; align-items:center; justify-content:space-between;
    height: 68px;
  }
  .logo{ font-family:'Space Grotesk'; font-weight:600; font-size:17px; }
  .logo span{ color: var(--emerald-tint); }
  .nav-links{ display:flex; gap: 36px; align-items:center; }
  .nav-links a{
    font-size: 14px; color: var(--grey);
    transition: color .2s ease;
  }
  .nav-links a:hover{ color: var(--white); }
  .nav-cta{
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    transition: border-color .2s ease, background .2s ease;
  }
  .nav-cta:hover{ border-color: var(--emerald); background: rgba(0,132,90,0.08); }

  /* MOBILE NAV */
  .nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap: 5px;
    width: 32px; height: 32px;
    background:none; border:none;
    cursor:pointer;
    padding: 0;
  }
  .nav-toggle span{
    display:block;
    width: 100%; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile-panel{
    display:none;
    flex-direction:column;
    gap: 4px;
    max-height: 0;
    overflow:hidden;
    padding: 0 32px;
    background: rgba(23,23,23,0.98);
    border-bottom: 1px solid var(--border);
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav-mobile-panel.open{
    max-height: 300px;
    padding: 16px 32px 24px;
  }
  .nav-mobile-panel a{
    padding: 12px 0;
    font-size: 15px;
    color: var(--grey);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile-panel a:last-child{ border-bottom:none; }
  .nav-mobile-panel a.nav-cta{
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 18px;
    margin-top: 10px;
    text-align:center;
    color: var(--white);
  }

  /* HERO */
  .hero{
    min-height: 100vh;
    display:flex; flex-direction:column; justify-content:center;
    padding-top: 68px;
    position: relative;
    overflow:hidden;
  }
  .hero-glow{
    position:absolute; top:-20%; right:-10%; width:600px; height:600px;
    background: radial-gradient(circle, rgba(0,132,90,0.12) 0%, rgba(0,132,90,0) 70%);
    pointer-events:none;
  }
  .hero .wrap{
    display:grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items:center;
    gap: 40px;
    position: relative;
  }
  .hero-text{ min-width:0; }
  .hero .eyebrow{ opacity:0; animation: fadeUp .7s ease forwards; animation-delay:.1s; }
  .hero h1{
    font-size: clamp(38px, 5.6vw, 72px);
    font-weight: 600;
    line-height: 1.06;
    margin: 18px 0 24px;
    opacity:0; animation: fadeUp .7s ease forwards; animation-delay:.25s;
  }
  .hero h1 .accent{ color: var(--emerald-tint); }
  .hero p.lede{
    font-size: 18px; color: var(--grey);
    max-width: 480px;
    margin-bottom: 36px;
    opacity:0; animation: fadeUp .7s ease forwards; animation-delay:.4s;
  }
  .hero-actions{
    display:flex; gap:16px;
    opacity:0; animation: fadeUp .7s ease forwards; animation-delay:.55s;
  }

  /* PHOTO TREATMENT — duotone + edge fade so any photo locks into the palette */
  .photo-frame{
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-raised);
  }
  .photo-frame img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(22%) contrast(1.12) brightness(0.88) saturate(0.9);
  }
  .photo-frame::after{
    content:'';
    position:absolute; inset:0;
    background: linear-gradient(175deg, rgba(0,132,90,0.22) 0%, rgba(23,23,23,0.05) 35%, rgba(23,23,23,0.65) 100%);
    mix-blend-mode: multiply;
  }
  .photo-frame::before{
    content:'';
    position:absolute; inset:0;
    box-shadow: inset 0 -40px 60px -20px rgba(23,23,23,0.9), inset 40px 0 60px -30px rgba(23,23,23,0.5);
    z-index:2;
  }
  .hero-photo{
    aspect-ratio: 4/5;
    opacity:0; animation: fadeUp .8s ease forwards; animation-delay:.2s;
    -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 99%);
    mask-image: linear-gradient(to bottom, black 78%, transparent 99%);
  }
  .about-photo{
    aspect-ratio: 1/1;
    max-width: 260px;
  }
  .btn-primary{
    background: var(--emerald);
    color: var(--white);
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14px; font-weight:500;
    transition: background .2s ease, transform .2s ease;
    display:inline-block;
  }
  .btn-primary:hover{ background: var(--emerald-tint); transform: translateY(-1px); }
  .btn-ghost{
    border: 1px solid var(--border);
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--grey);
    transition: border-color .2s ease, color .2s ease;
  }
  .btn-ghost:hover{ border-color: var(--emerald); color: var(--white); }

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

  /* LOGO STRIP */
  .logos{
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
  }
  .logos .wrap{
    display:flex; align-items:center; gap:48px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .logos .label{ font-size:13px; color: var(--grey-dim); font-family:'JetBrains Mono'; white-space:nowrap;}
  .logo-row{ display:flex; gap:40px; flex-wrap:wrap; }
  .logo-row span{
    font-family:'Space Grotesk'; font-weight:500; font-size:15px;
    color: var(--grey); letter-spacing: 0.01em;
    transition: color .2s ease;
  }
  .logo-row span:hover{ color: var(--white); }

  /* SECTION HEADER */
  .section{ padding: 120px 0; }
  .section-head{ margin-bottom: 56px; max-width: 640px; }
  .section-head h2{ font-size: 36px; font-weight:600; margin-top:10px; }
  .section-head p{ color: var(--grey); margin-top: 14px; font-size: 15px; }

  /* WORK CARDS */
  .work-grid{ display:flex; flex-direction:column; gap: 2px; }
  .work-card{
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    display:grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items:center;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
    margin-bottom: 14px;
    cursor:pointer;
  }
  .work-card:hover{
    border-color: var(--emerald);
    background: var(--bg-raised-2);
    transform: translateX(4px);
  }
  .work-card .wc-top{ display:flex; align-items:baseline; gap:14px; margin-bottom:10px; flex-wrap:wrap;}
  .work-card h3{ font-size: 20px; font-weight:600; }
  .wc-company{ font-family:'JetBrains Mono'; font-size:12px; color: var(--emerald-tint); }
  .work-card p{ color: var(--grey); font-size: 14.5px; max-width: 560px; }
  .wc-result{
    text-align:right;
    font-family:'Space Grotesk';
    font-weight:600;
    font-size: 26px;
    color: var(--white);
    white-space:nowrap;
  }
  .wc-result span{
    display:block;
    font-family:'JetBrains Mono';
    font-weight:400;
    font-size:11px;
    color: var(--grey-dim);
    margin-top:4px;
    text-transform:uppercase;
    letter-spacing:.06em;
  }

  /* SIGNATURE INTERACTIVE MOMENT — pipeline toggle */
  .pipeline-block{
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-top: 20px;
  }
  .pipeline-toggle{
    display:flex; gap:10px; margin-bottom: 32px;
  }
  .pt-btn{
    font-family:'JetBrains Mono'; font-size:12px;
    padding: 8px 16px; border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--grey);
    cursor:pointer;
    transition: all .2s ease;
    background:transparent;
  }
  .pt-btn.active{
    border-color: var(--emerald);
    color: var(--white);
    background: rgba(0,132,90,0.12);
  }
  .pipeline-stages{
    display:flex; align-items:center; gap: 0;
    overflow-x:auto;
    padding-bottom: 8px;
  }
  .stage{
    flex: 1; min-width: 160px;
    padding: 22px 18px;
    border-radius: 10px;
    background: var(--bg-raised-2);
    border: 1px solid var(--border);
    text-align:left;
    position:relative;
    transition: border-color .3s ease, background .3s ease;
  }
  .stage.on{ border-color: var(--emerald); background: rgba(0,132,90,0.08); }
  .stage .stage-label{ font-family:'JetBrains Mono'; font-size:11px; color: var(--grey-dim); text-transform:uppercase; letter-spacing:.06em;}
  .stage .stage-name{ font-family:'Space Grotesk'; font-weight:600; font-size:16px; margin-top:6px;}
  .stage .stage-meta{ font-size:12.5px; color: var(--grey); margin-top:6px; }
  .stage-arrow{ color: var(--grey-dim); font-size: 20px; padding: 0 10px; flex-shrink:0;}

  /* WRITING */
  .log-table{ border-top: 1px solid var(--border); }
  .log-row{
    display:grid;
    grid-template-columns: 110px 1fr 90px 140px;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    align-items:center;
    transition: opacity .2s ease;
  }
  .log-row:hover{ opacity: 0.7; cursor:pointer; }
  .log-date{ font-family:'JetBrains Mono'; font-size:12.5px; color: var(--grey-dim); }
  .log-title{ font-family:'Space Grotesk'; font-weight:500; font-size:16px; }
  .log-time{ font-family:'JetBrains Mono'; font-size:12px; color: var(--grey); text-align:right; }
  .log-tag{
    font-family:'JetBrains Mono'; font-size:11px; color: var(--emerald-tint);
    text-align:right; text-transform:uppercase; letter-spacing:.05em;
  }

  /* ABOUT / INTERESTS */
  .about-grid{
    display:grid; grid-template-columns: 220px 1fr; gap: 44px;
    align-items:start;
  }
  .about-side{ display:flex; flex-direction:column; gap: 20px; }
  .about-bio p{ color: var(--grey); font-size: 15.5px; margin-bottom: 18px; max-width: 640px; }
  .interests-grid{ display:grid; grid-template-columns: 1fr; gap: 12px; }
  .interest-chip{
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    transition: border-color .2s ease;
  }
  .interest-chip:hover{ border-color: var(--emerald); }
  .interest-chip .eyebrow{ margin-bottom: 6px; }
  .interest-chip .ic-name{ font-family:'Space Grotesk'; font-weight:500; font-size:15px; }

  /* CONTACT / FOOTER */
  .contact{
    background: var(--bg-raised);
    border-radius: 20px;
    padding: 64px 48px;
    text-align:center;
    margin-bottom: 60px;
  }
  .contact h2{ font-size: 34px; margin-bottom:14px; }
  .contact p{ color: var(--grey); margin-bottom: 30px; }
  .contact-links{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

  footer{
    border-top: 1px solid var(--border);
    padding: 32px 0 60px;
  }
  footer .wrap{
    display:flex; justify-content:space-between; align-items:center;
    font-size: 13px; color: var(--grey-dim);
    flex-wrap:wrap; gap:12px;
  }
  footer .foot-links{ display:flex; gap:22px; }
  footer a:hover{ color: var(--white); }

  @media (max-width: 760px){
    .nav-links{ display:none; }
    .nav-toggle{ display:flex; }
    .nav-mobile-panel{ display:flex; }
    .section{ padding: 72px 0; }
    .contact{ padding: 44px 28px; }
    .contact h2{ font-size: 26px; }
    .hero .wrap{ grid-template-columns: 1fr; }
    .hero-photo{ order:-1; max-width: 260px; margin: 0 auto 20px; aspect-ratio: 4/5; }
    .about-grid{ grid-template-columns: 1fr; }
    .about-side{ display: contents; }
    .about-photo{ max-width: 160px; order: 1; }
    .about-bio{ order: 2; }
    .interests-grid{ order: 3; grid-template-columns: 1fr 1fr; width: 100%; }
    .work-card{ grid-template-columns: 1fr; }
    .wc-result{ text-align:left; }
    .log-row{ grid-template-columns: 80px 1fr; }
    .log-time, .log-tag{ display:none; }
    .pipeline-block{ padding: 24px 20px; }
    .work-card{ padding: 24px 20px; }
  }

/* POST PAGE */
.back-link{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono'; font-size:13px; color: var(--grey);
  margin-bottom: 40px;
  transition: color .2s ease, gap .2s ease;
}
.back-link:hover{ color: var(--emerald-tint); gap:12px; }
.post-header{ max-width: 720px; margin-bottom: 48px; }
.post-header .log-date{ margin-bottom: 14px; display:block; }
.post-header h1{
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight:600; line-height:1.12; margin-bottom: 18px;
}
.post-meta{ display:flex; gap:16px; align-items:center; color: var(--grey); font-size:13px; }
.post-meta .log-tag{ text-align:left; }
.post-body{ max-width: 680px; color: var(--grey); font-size: 16px; line-height:1.75; }
.post-body p{ margin-bottom: 22px; }
.post-body h2{ color: var(--white); font-size: 24px; margin: 40px 0 16px; }

/* COMMENTS */
.comments{ max-width: 680px; margin-top: 72px; border-top: 1px solid var(--border); padding-top: 40px; }
.comments h2{ font-size: 20px; margin-bottom: 6px; }
.comments .comment-note{ font-size: 13px; color: var(--grey-dim); margin-bottom: 28px; }
.comment-form{ display:flex; flex-direction:column; gap:12px; margin-bottom: 36px; }
.comment-form input, .comment-form textarea{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family:'Inter'; font-size:14px;
  resize: vertical;
}
.comment-form input:focus, .comment-form textarea:focus{
  outline:none; border-color: var(--emerald);
}
.comment-form button{
  align-self:flex-start;
  background: var(--emerald);
  color: var(--white);
  border:none;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px; font-weight:500;
  cursor:pointer;
  transition: background .2s ease;
}
.comment-form button:hover{ background: var(--emerald-tint); }
.comment-list{ display:flex; flex-direction:column; gap: 18px; }
.comment-item{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.comment-item .c-head{ display:flex; justify-content:space-between; margin-bottom:8px; }
.comment-item .c-name{ font-family:'Space Grotesk'; font-weight:500; font-size:14px; }
.comment-item .c-date{ font-family:'JetBrains Mono'; font-size:11px; color: var(--grey-dim); }
.comment-item .c-body{ font-size:14px; color: var(--grey); }
.comment-empty{ font-size: 14px; color: var(--grey-dim); font-style:italic; }


/* LOGO MARK */
.logo{ display:flex; align-items:center; gap:8px; cursor:pointer; transition: opacity .2s ease; }
.logo:hover{ opacity: 0.75; }
.logo-mark{ width: 30px; height: 30px; min-width: 30px; display:block; object-fit: contain; }

/* CODE BLOCK IN POST BODY */
.post-body pre{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-body code{
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--white);
  line-height: 1.6;
}
.post-body ul{ margin: 0 0 22px 20px; }
.post-body li{ margin-bottom: 8px; }

/* POST COVER IMAGE */
.post-cover{
  aspect-ratio: 16/9;
  max-width: 680px;
  margin-bottom: 40px;
}

/* Giscus renders in a cross-origin iframe; explicitly cap its width to match the text column */
.comments .giscus, .comments .giscus-frame{
  width: 100% !important;
  max-width: 680px;
}
