/* ===== Palette =====
   Yellow → Green gradient on a light, airy canvas.
   --y1  #FFF066  bright yellow
   --y2  #FFE066  warm yellow
   --g1  #C9E265  yellow-green
   --g2  #A8D86F  light green
   --g3  #7BC76F  green
   --g4  #5BB55F  deep green
   bg    #FCFEF5  cream
   ink   #1F2A1A  deep green-black
*/

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: #FCFEF5;
  color: #1F2A1A;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
em { font-style: italic; color: #6B8A4E; }

/* ===== Background FX ===== */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(123,199,111,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,199,111,0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: -2;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
}
.glow {
  position: fixed; border-radius: 50%; filter: blur(140px);
  z-index: -1; opacity: 0.55; pointer-events: none;
}
.glow-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #FFF066 0%, #C9E265 50%, transparent 75%);
  top: -160px; left: -120px;
  animation: float1 14s ease-in-out infinite;
}
.glow-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #A8D86F 0%, #7BC76F 50%, transparent 75%);
  top: 55%; right: -200px;
  animation: float2 18s ease-in-out infinite;
}
.glow-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FFE066 0%, #A8D86F 55%, transparent 75%);
  bottom: -200px; left: 30%;
  opacity: 0.4;
  animation: float1 22s ease-in-out infinite;
}
@keyframes float1 { 50% { transform: translate(40px, 60px) scale(1.05); } }
@keyframes float2 { 50% { transform: translate(-50px, -40px) scale(1.08); } }

/* ===== Layout ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 32px;
  scroll-margin-top: 86px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.section.in, .hero.in { opacity: 1; transform: none; }

.section-head { margin-bottom: 56px; }
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5BB55F;
  display: block;
  margin-bottom: 14px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; color: #1F2A1A; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; }
h3 { font-size: 22px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: #5BB55F; margin-top: 24px; }

.grad {
  background: linear-gradient(120deg, #F2C800 0%, #C9E265 35%, #7BC76F 70%, #5BB55F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-big {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #F2C800, #C9E265 40%, #7BC76F 75%, #5BB55F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(252,254,245,0.78);
  border-bottom: 1px solid rgba(123,199,111,0.18);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
.logo {
  font-weight: 700; letter-spacing: 0.2em; font-size: 15px;
  color: #1F2A1A;
}
.logo span { color: #5BB55F; }
.nav ul { display: flex; gap: 28px; align-items: center; }
.nav ul a {
  font-size: 14px; color: #4F5D3F; transition: color .2s;
}
.nav ul a:hover { color: #5BB55F; }
.nav ul .cta {
  padding: 9px 18px;
  background: linear-gradient(120deg, #FFE066, #7BC76F);
  color: #1F2A1A !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav ul .cta:hover { color: #1F2A1A !important; opacity: .92; }

/* ===== Hero ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}
.hero-portrait {
  width: 300px;
  aspect-ratio: 2 / 3;
  border-radius: 42% 58% 60% 40% / 48% 52% 50% 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 22px 56px -14px rgba(91,181,95,0.45),
              0 0 0 8px rgba(168,216,111,0.18);
  flex-shrink: 0;
  opacity: 0.95;
  transition: transform .5s ease, opacity .35s, box-shadow .35s, border-radius .8s ease;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-orientation: from-image;
  display: block;
}
.hero-portrait:hover {
  opacity: 1;
  transform: scale(1.02) rotate(-1deg);
  border-radius: 58% 42% 40% 60% / 52% 48% 50% 50%;
  box-shadow: 0 28px 64px -14px rgba(91,181,95,0.55),
              0 0 0 8px rgba(168,216,111,0.28);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(168,216,111,0.18);
  border: 1px solid rgba(123,199,111,0.4);
  color: #3F6B30;
  margin-bottom: 32px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5BB55F;
  box-shadow: 0 0 12px #7BC76F;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1F2A1A;
}

.hero-deeds {
  list-style: none;
  margin: 0 0 38px;
  padding: 4px 0 4px 22px;
  position: relative;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-deeds::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #FFE066, #A8D86F 50%, #5BB55F);
}
.hero-deeds li {
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.5;
  color: #3A4A33;
  font-weight: 400;
}
.hero-deeds li b {
  color: #1F4A1F;
  font-weight: 600;
  background: linear-gradient(120deg, transparent 0%, transparent 30%, rgba(255,224,102,0.5) 30%, rgba(168,216,111,0.4) 100%);
  background-size: 100% 45%;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 2px;
}

.hero-tagline {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
  color: #2D3A2D;
  max-width: 600px;
  line-height: 1.35;
}
.hero-tagline em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, #F2C800 0%, #7BC76F 55%, #5BB55F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline .dash {
  margin: 0 8px;
  color: #7BC76F;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(123,199,111,0.35);
  color: #1F4A1F;
  font-size: 14px;
  font-weight: 500;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.contact-pill:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, rgba(255,224,102,0.45), rgba(168,216,111,0.45));
  border-color: rgba(91,181,95,0.6);
  box-shadow: 0 10px 24px -10px rgba(91,181,95,0.45);
}
.contact-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.contact-pill span {
  white-space: nowrap;
}
.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(120deg, #FFE066, #A8D86F 60%, #5BB55F);
  color: #1F2A1A;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 12px 36px -10px rgba(123,199,111,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 46px -10px rgba(123,199,111,0.75); }
.btn-ghost {
  padding: 14px 28px;
  border: 1px solid rgba(123,199,111,0.45);
  border-radius: 999px;
  color: #1F2A1A;
  background: rgba(255,255,255,0.5);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: #5BB55F; background: rgba(168,216,111,0.15); }

/* ===== Thoughts ===== */
.thoughts-section {
  max-width: none;
  padding: 82px 32px;
  border-top: 1px solid rgba(123,199,111,0.18);
  border-bottom: 1px solid rgba(123,199,111,0.18);
  background:
    linear-gradient(180deg, rgba(255,240,102,0.05), rgba(123,199,111,0.07)),
    rgba(252,254,245,0.7);
}
.thoughts-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.thoughts-head {
  margin-bottom: 34px;
}
.thoughts-head h2 {
  font-size: clamp(40px, 5vw, 68px);
}
.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
  align-items: stretch;
}
.thought-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 188px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(123,199,111,0.28);
  border-radius: 16px;
  box-shadow: 0 10px 28px -18px rgba(91,181,95,0.32);
  transition: transform .22s, border-color .22s, box-shadow .22s, background .22s;
}
.thought-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91,181,95,0.55);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 16px 34px -18px rgba(91,181,95,0.42);
}
.thought-card-featured {
  min-height: 320px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,224,102,0.22), rgba(168,216,111,0.12) 52%, rgba(255,255,255,0.9)),
    rgba(255,255,255,0.9);
  border-color: rgba(91,181,95,0.36);
  box-shadow: 0 22px 54px -28px rgba(91,181,95,0.48);
}
.thought-card-substack {
  min-height: 320px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,224,102,0.22), rgba(168,216,111,0.12) 52%, rgba(255,255,255,0.9)),
    rgba(255,255,255,0.9);
  border-color: rgba(91,181,95,0.36);
  box-shadow: 0 22px 54px -28px rgba(91,181,95,0.48);
}
.thought-card h3 {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 18px 0 20px;
}
.thought-card-featured h3,
.thought-card-substack h3 {
  max-width: 720px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 24px 0 18px;
}
.thought-card-featured p,
.thought-card-substack p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4F5D3F;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}
.thought-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #1F4A1F;
  font-weight: 600;
  font-size: 13.5px;
}
.thought-link span {
  color: #5BB55F;
  transition: transform .15s;
}
.thought-card:hover .thought-link span { transform: translate(2px, -2px); }
.thought-source-pill {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255,224,102,0.28), rgba(168,216,111,0.28));
  border: 1px solid rgba(123,199,111,0.32);
  color: #1F4A1F;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  white-space: nowrap;
}

/* ===== Toolkit (carousels) ===== */
.toolkit-section {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(123,199,111,0.18);
  border-bottom: 1px solid rgba(123,199,111,0.18);
  background: linear-gradient(180deg, rgba(255,240,102,0.04), rgba(123,199,111,0.06));
}
.toolkit-head {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 32px;
}
.toolkit-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.marquee {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee + .marquee { margin-top: 4px; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: scroll-left 38s linear infinite;
}
.marquee-right .marquee-track {
  animation: scroll-right 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(123,199,111,0.3);
  color: #2D3A2D;
  white-space: nowrap;
  box-shadow: 0 4px 14px -8px rgba(91,181,95,0.3);
}
.marquee-right .marquee-track span {
  background: linear-gradient(120deg, rgba(255,224,102,0.35), rgba(168,216,111,0.35));
  border-color: rgba(168,216,111,0.45);
  color: #1F4A1F;
}
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ===== Logo box (companies & schools) ===== */
.logo-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(123,199,111,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(123,199,111,0.35);
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.logo-box:hover {
  transform: translateY(-2px);
  border-color: rgba(91,181,95,0.55);
  box-shadow: 0 12px 26px -8px rgba(91,181,95,0.5);
}
a.at { transition: opacity .2s; }
a.at:hover { opacity: 0.75; }
.logo-box img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
/* Monogram fallback — shown when image fails or is absent */
.logo-box::after {
  content: attr(data-mono);
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  background: linear-gradient(135deg, #FFE066, #A8D86F);
  color: #1F2A1A;
}
.logo-box.logo-fail img { display: none; }
.logo-box.logo-fail::after { display: flex; }

/* ===== Work (carousel) ===== */
.exp-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 20px;
  align-items: stretch;
}
.exp-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 7%;
  scroll-padding-inline: 7%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.exp-track::-webkit-scrollbar { display: none; }
.exp-slide {
  flex: 0 0 86%;
  min-width: 0;
  scroll-snap-align: start;
  padding: 44px 52px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(123,199,111,0.28);
  border-radius: 28px;
  box-shadow: 0 14px 40px -16px rgba(91,181,95,0.32);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.exp-slide-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  margin-bottom: 22px;
}
.exp-slide-top .exp-date { color: #5BB55F; font-weight: 500; }
.exp-slide-top .exp-loc { color: #6B7A55; }
.exp-slide-top .dot-sep { color: #A8D86F; }

.exp-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.exp-slide h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 4px; line-height: 1.2; }
.exp-slide .at {
  background: linear-gradient(120deg, #5BB55F, #7BC76F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 600;
}
.exp-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #6B8A4E;
  margin: 0;
}
.exp-slide ul {
  flex: 1;
  margin-bottom: 18px;
}
.exp-slide ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: #2D3A2D;
  font-size: 15.5px;
  line-height: 1.55;
}
.exp-slide ul li::before {
  content: '▸';
  position: absolute; left: 0;
  color: #7BC76F;
}
.exp-slide b { color: #1F4A1F; font-weight: 600; }

.exp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(123,199,111,0.35);
}
.exp-tools span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255,224,102,0.3), rgba(168,216,111,0.3));
  border: 1px solid rgba(123,199,111,0.4);
  color: #2D5A2D;
  white-space: nowrap;
}

/* exp carousel chrome (mirrors proj) */
.exp-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(123,199,111,0.4);
  background: rgba(255,255,255,0.8);
  color: #2D5A2D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  align-self: center;
  transition: transform .15s, background .2s, border-color .2s, opacity .2s, box-shadow .2s;
  box-shadow: 0 6px 18px -10px rgba(91,181,95,0.4);
}
.exp-nav svg { width: 22px; height: 22px; }
.exp-nav:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #FFE066, #A8D86F);
  border-color: rgba(91,181,95,0.6);
  box-shadow: 0 12px 28px -10px rgba(91,181,95,0.55);
}
.exp-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.exp-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.exp-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #6B8A4E;
  letter-spacing: 0.04em;
}
.exp-counter .exp-current { color: #2D5A2D; font-weight: 600; }
.exp-dots { display: flex; gap: 12px; }
.exp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(123,199,111,0.3);
  transition: width .25s, background .2s;
}
.exp-dot.active {
  width: 32px;
  border-radius: 5px;
  background: linear-gradient(120deg, #FFE066, #5BB55F);
}
.exp-dot:hover:not(.active) { background: rgba(91,181,95,0.55); }

.exp-carousel.seen .exp-nav.next {
  animation: nudge-next 1.6s ease-out 0.4s 1 both;
}

/* ===== Projects (carousel) ===== */
.proj-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 20px;
  align-items: stretch;
}
.proj-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 7%;
  scroll-padding-inline: 7%;
  /* fade peek edges so off-screen slides feel like they continue beyond */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.proj-track::-webkit-scrollbar { display: none; }
.proj-slide {
  flex: 0 0 86%;
  min-width: 0;
  scroll-snap-align: start;
  padding: 56px 64px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(123,199,111,0.28);
  border-radius: 28px;
  box-shadow: 0 14px 40px -16px rgba(91,181,95,0.32);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .35s, box-shadow .35s, opacity .35s;
}
/* Slides not currently in view fade slightly */
.proj-slide:not(:hover) { /* hover override below */ }

/* Stacked layout when a slide has media: big video on top, compact text below */
.proj-with-media {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 36px 40px;
  justify-content: flex-start;
}
.proj-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFE066, #7BC76F);
  box-shadow: 0 22px 46px -16px rgba(91,181,95,0.55);
  flex-shrink: 0;
}
.proj-media iframe,
.proj-media video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0d0d0d;
  touch-action: pan-y;
}
.proj-text { display: flex; flex-direction: column; gap: 14px; }
.proj-with-media .proj-ico {
  display: inline-block;
  font-size: 32px;
  margin: 0;
  line-height: 1;
}
.proj-with-media h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.proj-with-media p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}
.proj-with-media .stack { margin-top: 4px; }
.proj-slide .proj-ico {
  font-size: 56px;
  margin-bottom: 28px;
}
.proj-slide h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}
.proj-slide p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: #3A4A33;
  margin: 0 0 28px;
  max-width: 640px;
}
.proj-slide p b { color: #1F4A1F; font-weight: 600; }

.proj-cta-row {
  margin-bottom: 22px;
}
.proj-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #FFE066, #A8D86F 60%, #5BB55F);
  color: #1F2A1A;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid rgba(91,181,95,0.45);
  box-shadow: 0 10px 28px -10px rgba(91,181,95,0.55);
  transition: transform .15s, box-shadow .2s, background .25s;
}
.proj-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(91,181,95,0.7);
}
.proj-cta svg { width: 18px; height: 18px; color: #1F2A1A; flex-shrink: 0; }
.proj-cta-arrow { font-size: 16px; transition: transform .15s; }
.proj-cta:hover .proj-cta-arrow { transform: translate(2px, -2px); }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255,224,102,0.4), rgba(168,216,111,0.4));
  color: #2D5A2D;
  border: 1px solid rgba(123,199,111,0.35);
}
.proj-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(123,199,111,0.4);
  background: rgba(255,255,255,0.8);
  color: #2D5A2D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .15s, background .2s, border-color .2s, opacity .2s, box-shadow .2s;
  box-shadow: 0 6px 18px -10px rgba(91,181,95,0.4);
}
.proj-nav svg { width: 22px; height: 22px; }
.proj-nav:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #FFE066, #A8D86F);
  border-color: rgba(91,181,95,0.6);
  box-shadow: 0 12px 28px -10px rgba(91,181,95,0.55);
}
.proj-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.proj-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.proj-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #6B8A4E;
  letter-spacing: 0.04em;
}
.proj-counter .proj-current {
  color: #2D5A2D;
  font-weight: 600;
}
.proj-counter .proj-sep { opacity: 0.5; margin: 0 4px; }
.proj-counter .proj-hint {
  display: inline-block;
  animation: hint-bob 1.6s ease-in-out infinite;
}
.proj-carousel.at-end + .proj-meta .proj-hint { opacity: 0.3; animation: none; }
@keyframes hint-bob {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.proj-dots {
  display: flex;
  gap: 12px;
}

/* Subtle nudge on first appear: pulse the next-arrow once */
.proj-carousel.seen .proj-nav.next {
  animation: nudge-next 1.6s ease-out 0.4s 1 both;
}
@keyframes nudge-next {
  0%   { transform: translateX(0); }
  35%  { transform: translateX(8px); box-shadow: 0 16px 32px -10px rgba(91,181,95,0.7); }
  70%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}
.proj-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(123,199,111,0.3);
  transition: width .25s, background .2s;
}
.proj-dot.active {
  width: 32px;
  border-radius: 5px;
  background: linear-gradient(120deg, #FFE066, #5BB55F);
}
.proj-dot:hover:not(.active) { background: rgba(91,181,95,0.55); }

/* ===== Education / Skills ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.edu-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(123,199,111,0.2);
}
.edu-row:first-child { border-top: 1px solid rgba(123,199,111,0.4); }
.edu-logo { width: 48px; height: 48px; border-radius: 12px; }
.edu-logo::after { font-size: 20px; }
.edu-info { flex: 1; }
.edu-school { font-weight: 600; color: #1F4A1F; margin-bottom: 4px; }
.edu-deg { font-size: 15px; color: #4F5D3F; }
.badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, #FFE066, #7BC76F);
  color: #1F2A1A;
  font-weight: 600;
  margin-left: 8px;
}
.edu-row.certs { border-top-style: dashed; }

.skill-block h4:first-of-type { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(123,199,111,0.3);
  color: #2D3A2D;
}

/* ===== Books (carousel) ===== */
.book-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 16px;
  align-items: center;
}
.book-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.book-track::-webkit-scrollbar { display: none; }
.book {
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.book-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(123,199,111,0.4);
  background: rgba(255,255,255,0.85);
  color: #2D5A2D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .15s, background .2s, border-color .2s, opacity .2s, box-shadow .2s;
  box-shadow: 0 6px 18px -10px rgba(91,181,95,0.4);
}
.book-nav svg { width: 20px; height: 20px; }
.book-nav:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #FFE066, #A8D86F);
  border-color: rgba(91,181,95,0.6);
  box-shadow: 0 12px 28px -10px rgba(91,181,95,0.55);
}
.book-nav:disabled { opacity: 0.25; cursor: not-allowed; }
.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c1, #FFE066), var(--c2, #7BC76F));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: rgba(31,42,26,0.55);
  box-shadow: 0 16px 36px -12px rgba(123,199,111,0.45);
  transition: transform .25s, box-shadow .25s;
  margin-bottom: 14px;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book:hover .book-cover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 22px 44px -12px rgba(123,199,111,0.6);
}
.book h4 {
  font-size: 14px;
  color: #1F2A1A;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0;
}
.book p { font-size: 13px; color: #6B7A55; margin: 4px 0 0; }
.book-empty .book-cover { opacity: 0.5; box-shadow: none; }
.suggest {
  margin-top: 36px;
  font-size: 14px;
  color: #6B7A55;
  font-family: 'JetBrains Mono', monospace;
}
.suggest em { color: #3F6B30; font-style: normal; }

/* ===== Hobbies ===== */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hobby {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(123,199,111,0.22);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  box-shadow: 0 4px 20px -10px rgba(91,181,95,0.18);
}
.hobby:hover {
  transform: translateY(-4px);
  border-color: rgba(91,181,95,0.5);
  box-shadow: 0 16px 38px -14px rgba(91,181,95,0.35);
}
.hobby-photo {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFE066, #A8D86F);
  position: relative;
  overflow: hidden;
}
.hobby-photo img,
.hobby-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.hobby:hover .hobby-photo img,
.hobby:hover .hobby-photo video { transform: scale(1.04); }
.hobby-emoji { font-size: 84px; filter: drop-shadow(0 4px 12px rgba(31,42,26,0.18)); }
.hobby h3 {
  padding: 18px 20px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hobby-emoji-tag { font-size: 18px; }
.hobby h3 .ext { color: #5BB55F; font-size: 16px; opacity: 0.8; transition: transform .2s; }
.hobby p { padding: 0 20px 20px; color: #4F5D3F; font-size: 14px; margin: 0; line-height: 1.55; }
.hobby p b { color: #1F4A1F; font-weight: 600; }

/* Strava (clickable) card */
.hobby-link { display: block; cursor: pointer; }
.hobby-link:hover h3 .ext { transform: translate(2px, -2px); }
.hobby-strava {
  background: linear-gradient(135deg, #FFD93D 0%, #A8D86F 50%, #5BB55F 100%);
  position: relative;
}
.hobby-strava .hobby-emoji { z-index: 2; }
.strava-mark {
  position: absolute;
  width: 36px;
  height: 36px;
  bottom: 12px;
  right: 12px;
  padding: 8px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.35);
  box-sizing: content-box;
  z-index: 2;
  transition: transform .2s, box-shadow .2s;
}
.hobby-link:hover .strava-mark {
  transform: scale(1.08);
  box-shadow: 0 10px 22px -6px rgba(0,0,0,0.45);
}

/* ===== Canvas ===== */
.canvas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.canvas-card {
  padding: 32px;
  background: rgba(255,255,255,0.4);
  border: 1.5px dashed rgba(123,199,111,0.4);
  border-radius: 18px;
}
.canvas-card h3 { color: #1F4A1F; margin-bottom: 10px; }
.canvas-card p { color: #6B7A55; margin: 0; font-size: 15px; }

/* ===== Closing section ===== */
.contact { text-align: center; padding-bottom: 140px; }
.contact p {
  max-width: 620px; margin: 24px auto 12px;
  font-size: 18px; color: #4F5D3F;
}
.contact-bottom {
  justify-content: center;
  margin-top: 32px !important;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid rgba(123,199,111,0.2);
  font-size: 13px;
  color: #8AA070;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav ul { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .nav ul a { font-size: 13px; }
  .thoughts-section { padding: 64px 20px; }
  .thoughts-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .thought-card { min-height: 0; }
  .thought-card-featured,
  .thought-card-substack {
    min-height: 0;
    padding: 30px;
  }
  .canvas-grid, .split { grid-template-columns: 1fr; gap: 24px; }
  .proj-carousel,
  .exp-carousel { grid-template-columns: 1fr; }
  .proj-nav,
  .exp-nav { display: none; }
  .proj-slide,
  .exp-slide { padding: 32px 28px; min-height: 360px; flex-basis: 88%; }
  .proj-track,
  .exp-track { padding: 8px 6%; scroll-padding-inline: 6%; }
  .proj-with-media { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .exp-header { flex-wrap: wrap; gap: 12px; }
  .book-carousel { grid-template-columns: 1fr; }
  .book-nav { display: none; }
  .book { flex-basis: 140px; }
  .hobby-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { width: 220px; height: auto; order: -1; }
}
@media (max-width: 540px) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 20px; }
  .nav ul { justify-content: flex-start; }
  .book { flex-basis: 130px; }
  .section, .hero { padding-left: 20px; padding-right: 20px; }
  .section { scroll-margin-top: 154px; }
  .thoughts-section { padding-left: 20px; padding-right: 20px; }
  .thought-card,
  .thought-card-featured,
  .thought-card-substack { padding: 22px; }
  .thought-card-featured h3,
  .thought-card-substack h3 { font-size: clamp(26px, 8vw, 34px); }
  .exp-header { flex-wrap: wrap; }
}
