:root{
  --bg:#ffffff;
  --ink:#0b0b0f;
  --inkSoft:rgba(11,11,15,.78);
  --paper:#fffdf2;
  --yellow:#f7d400;
  --yellowDeep:#f2c200;
  --border:3px solid var(--ink);
  --shadow: 7px 7px 0 rgba(11,11,15,.18);
  --shadow2: 12px 12px 0 rgba(11,11,15,.12);
  --radius:18px;
  --max: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  position:relative;
  color:var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(247,212,0,.18), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(247,212,0,.12), transparent 26%),
    radial-gradient(circle at 30% 92%, rgba(11,11,15,.05), transparent 28%),
    var(--bg);
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.55;
  overflow-x:hidden;
}

/* Content above fixed background doodles */
main,
.footer{
  position:relative;
  z-index:1;
}

::selection{background:rgba(247,212,0,.55)}

/* Sticky header offset when jumping to anchors */
section{scroll-margin-top:84px}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin-inline:auto;
}

.srOnly{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.skip{
  position:absolute;
  left:-999px; top:10px;
  background:var(--yellow);
  color:var(--ink);
  border:var(--border);
  padding:10px 12px;
  border-radius:14px;
  z-index:1000;
}
.skip:focus{left:10px}

/* Top bar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:2px dashed rgba(11,11,15,.22);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}
.brand__mark {
  width: 36px;
  height: 36px;
  display: flex;              /* change from grid */
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 rgba(11,11,15,.18);
  overflow: hidden;           /* 🔥 important */
}

.brand__mark img {
  width: 130%;
  height: 130%;
  object-fit: cover;          /* 🔥 fills nicely */
  display: block;
}
.brand__text{
  font-family:"Montserrat", system-ui, sans-serif;
  font-weight:800;
  letter-spacing:.06em;
}
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{
  background:rgba(247,212,0,.25);
  outline:2px dashed rgba(11,11,15,.4);
  outline-offset:2px;
}
.nav__cta{
  border:var(--border);
  background:var(--yellow);
  box-shadow: 4px 4px 0 rgba(11,11,15,.18);
}
.nav__cta:hover{background:var(--yellowDeep)}

/* Hero */
.hero{
  position:relative;
  padding:64px 0 44px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:start;
}
.kicker{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.pill{
  padding:6px 10px;
  border:2px solid rgba(11,11,15,.75);
  border-radius:999px;
  font-weight:800;
  background:var(--paper);
}
.hero__title{
  font-family:"Montserrat", system-ui, sans-serif;
  font-weight:800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height:1.08;
  margin:0 0 14px;
}
.hero__titleSub{
  display:block;
  font-size: .62em;
  margin-top:10px;
  color:rgba(11,11,15,.78);
}
.highlight{
  position:relative;
  display:inline-block;
  padding:0 10px 4px;
}
.highlight::before{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:4px;
  height:.58em;
  background:rgba(247,212,0,.7);
  z-index:-1;
  transform: rotate(-2deg);
  border-radius:12px;
}
.hero__blurb{max-width:56ch; margin:0 0 18px; color:var(--inkSoft); font-size:1.05rem}

.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 20px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  color:var(--ink);
  font-weight:900;
  padding:12px 14px;
  border-radius:16px;
  border:var(--border);
  box-shadow: var(--shadow);
  transform: rotate(-.3deg);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{
  transform: rotate(.4deg) translateY(-1px);
  box-shadow: var(--shadow2);
}
.btn--primary{background:var(--yellow)}
.btn--primary:hover{background:var(--yellowDeep)}
.btn--ghost{background:var(--paper)}

.statRow{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:0;
}
.stat{
  background:var(--paper);
  border:2px dashed rgba(11,11,15,.35);
  border-radius:16px;
  padding:10px 12px;
}
.stat__k{
  font-weight:900;
  letter-spacing:.02em;
  margin:0;
}
.stat__v{
  margin:2px 0 0;
  color:var(--inkSoft);
  font-weight:800;
}

.heroCard{
  position:relative;
}
.heroCard__paper{
  background: linear-gradient(180deg, #fff, var(--paper));
  border:var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow2);
  transform: rotate(1deg);
}
.heroCard__avatar {
  width: 78px;
  height: 78px;
  border: var(--border);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center; 
  background: var(--yellow);
  box-shadow: 4px 4px 0 rgba(11,11,15,.18);
}

.heroCard__avatar img {
  width: 180%;   
  height: 180%;  
  object-fit: cover;
  display: block;
}
.heroCard__meta{margin-top:12px}
.heroCard__name{
  margin:0;
  font-family:"Montserrat", system-ui, sans-serif;
  letter-spacing:.04em;
}
.heroCard__role{margin:4px 0 0; color:var(--inkSoft); font-weight:800}
.heroCard__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.chip{
  background:#fff;
  border:2px solid rgba(11,11,15,.75);
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  transform: rotate(-.5deg);
}
.heroCard__links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.heroCard__links a{
  font-weight:900;
  color:inherit;
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(247,212,0,.18);
  border:2px dashed rgba(11,11,15,.35);
}
.heroCard__links a:hover{
  background: rgba(247,212,0,.32);
}
.heroCard__note{margin:12px 0 0; color:rgba(11,11,15,.6); font-weight:800}

/* Sections */
.section{
  position:relative;
  padding:56px 0;
}
.section--alt{
  background:
    radial-gradient(circle at 8% 8%, rgba(247,212,0,.12), transparent 40%),
    radial-gradient(circle at 88% 22%, rgba(11,11,15,.04), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(247,212,0,.08));
  border-top:2px dashed rgba(11,11,15,.22);
  border-bottom:2px dashed rgba(11,11,15,.22);
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.section__title{
  margin:0;
  font-family:"Montserrat", system-ui, sans-serif;
  letter-spacing:.04em;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}
.section__sub{margin:0; color:var(--inkSoft); font-weight:800; max-width:60ch}

.aboutGrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  background: var(--paper);
  border:var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card h3{
  margin:0 0 10px;
  font-family:"Montserrat", system-ui, sans-serif;
  letter-spacing:.02em;
}
.card p{margin:0 0 10px; color:var(--inkSoft); font-weight:700}
.card p:last-child{margin-bottom:0}
.muted{color:rgba(11,11,15,.62) !important}
.list{margin:0; padding-left:18px; color:var(--inkSoft); font-weight:800}
.list li{margin:6px 0}
.tagCloud{display:flex; flex-wrap:wrap; gap:10px}
.tag{
  border:2px dashed rgba(11,11,15,.35);
  border-radius:999px;
  padding:8px 12px;
  background:#fff;
  font-weight:900;
  transform: rotate(.3deg);
}

.aboutGrid .card:nth-child(1){grid-column: span 6}
.aboutGrid .card:nth-child(2){grid-column: span 3}
.aboutGrid .card:nth-child(3){grid-column: span 3}

.card--tiltL{transform: rotate(-.7deg)}
.card--tiltR{transform: rotate(.7deg)}

/* Projects */
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 10px 0 16px;
  flex-wrap:wrap;
}
.search input{
  width:min(380px, 78vw);
  padding:12px 12px;
  border-radius:16px;
  border:var(--border);
  background:#fff;
  box-shadow: 5px 5px 0 rgba(11,11,15,.14);
  font-weight:900;
  outline:none;
}
.search input:focus{
  outline:3px dashed rgba(11,11,15,.5);
  outline-offset:3px;
}
.miniBtn{
  border:var(--border);
  border-radius:16px;
  background: var(--paper);
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  box-shadow: 5px 5px 0 rgba(11,11,15,.14);
}
.miniBtn:hover{background: rgba(247,212,0,.22)}

.projectsGrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.projectCard{
  grid-column: span 4;
  background:#fff;
  border:var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.projectCard::before{
  content:"";
  position:absolute;
  inset:-30px -40px auto auto;
  width:140px;height:140px;
  background: rgba(247,212,0,.25);
  border:2px dashed rgba(11,11,15,.25);
  border-radius: 38px;
  transform: rotate(14deg);
}
.projectCard__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.projectCard h3{
  margin:0;
  font-family:"Montserrat", system-ui, sans-serif;
  letter-spacing:.02em;
}
.badge{
  border:2px solid rgba(11,11,15,.75);
  background: var(--yellow);
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  white-space:nowrap;
  box-shadow: 3px 3px 0 rgba(11,11,15,.12);
}
.projectCard p{margin:10px 0 14px; color:var(--inkSoft); font-weight:800}
.projectLinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.projectLinks a{
  text-decoration:none;
  color:inherit;
  font-weight:900;
  padding:8px 10px;
  border-radius:14px;
  border:2px dashed rgba(11,11,15,.35);
  background: rgba(247,212,0,.12);
}
.projectLinks a:hover{background: rgba(247,212,0,.24)}
.stack{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.stack span{
  font-weight:900;
  font-size:.88rem;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(11,11,15,.04);
  border:2px dashed rgba(11,11,15,.20);
}

/* Contact */
.contactGrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.contactGrid .card:nth-child(1){grid-column: span 6}
.contactGrid .card:nth-child(2){grid-column: span 6}
.linkList{display:flex; flex-direction:column; gap:10px}
.linkList a{
  text-decoration:none;
  color:inherit;
  font-weight:900;
  padding:10px 12px;
  border-radius:16px;
  border:2px dashed rgba(11,11,15,.35);
  background:#fff;
}
.linkList a:hover{background: rgba(247,212,0,.18)}

/* Footer */
.footer{
  padding:26px 0 40px;
}
.footer__inner{
  border-top:2px dashed rgba(11,11,15,.22);
  padding-top:18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer p{margin:0; font-weight:900}

/* Background doodle images (1.png … 5.png next to index.html; see index.html <img src>) */
.bgDoodles{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.bgDoodle{
  position:absolute;
  height:auto;
  max-width:min(400px, 42vw);
  width:auto;
  opacity:.4;
  user-select:none;
  -webkit-user-drag:none;
  object-fit:contain;
  --tx:0px;
  --ty:0px;
  --rot:0deg;
  --floatDur:52s;
  --floatAmp:18px;
  transform:translate(var(--tx), var(--ty)) rotate(var(--rot));
  transform-origin:center center;
  transition:transform 14s cubic-bezier(.22,.61,.36,1);
  animation:bgDoodleDrift var(--floatDur) ease-in-out infinite;
  filter:drop-shadow(0 2px 0 rgba(11,11,15,.06));
}
.bgDoodle--extra{
  opacity:.32;
}
.bgDoodle--1{
  left:4%;
  top:10%;
  width:min(260px, 26vw);
  --rot:-6deg;
  animation-delay:-4s;
}
.bgDoodle--2{
  right:6%;
  top:14%;
  width:min(240px, 24vw);
  --rot:8deg;
  animation-delay:-18s;
}
.bgDoodle--3{
  left:50%;
  top:42%;
  width:min(300px, 32vw);
  --rot:3deg;
  transform:translate(calc(-50% + var(--tx)), var(--ty)) rotate(var(--rot));
  animation-name:bgDoodleDriftCenter;
  animation-delay:-28s;
}
.bgDoodle--4{
  left:8%;
  bottom:12%;
  width:min(220px, 22vw);
  --rot:-10deg;
  animation-delay:-9s;
}
.bgDoodle--5{
  right:4%;
  bottom:16%;
  width:min(260px, 26vw);
  --rot:7deg;
  animation-delay:-35s;
}
.bgDoodle--6{
  left:18%;
  top:6%;
  width:min(240px, 24vw);
  --rot:5deg;
  animation-delay:-11s;
}
.bgDoodle--7{
  right:22%;
  top:52%;
  width:min(220px, 22vw);
  --rot:-8deg;
  animation-delay:-22s;
}
.bgDoodle--8{
  left:0%;
  top:30%;
  width:min(280px, 28vw);
  --rot:-4deg;
  animation-delay:-7s;
}
.bgDoodle--9{
  right:0%;
  top:24%;
  width:min(200px, 20vw);
  --rot:11deg;
  animation-delay:-40s;
}
.bgDoodle--10{
  left:32%;
  bottom:4%;
  width:min(250px, 25vw);
  --rot:-7deg;
  animation-delay:-16s;
}
@keyframes bgDoodleDrift{
  0%,100%{ transform:translate(var(--tx), var(--ty)) rotate(var(--rot)) translate(0,0); }
  22%{ transform:translate(var(--tx), var(--ty)) rotate(var(--rot)) translate(calc(var(--floatAmp) * .85), calc(var(--floatAmp) * -.65)); }
  48%{ transform:translate(var(--tx), var(--ty)) rotate(var(--rot)) translate(calc(var(--floatAmp) * -.55), calc(var(--floatAmp) * .8)); }
  72%{ transform:translate(var(--tx), var(--ty)) rotate(var(--rot)) translate(calc(var(--floatAmp) * -.75), calc(var(--floatAmp) * -.45)); }
}
@keyframes bgDoodleDriftCenter{
  0%,100%{ transform:translate(calc(-50% + var(--tx)), var(--ty)) rotate(var(--rot)) translate(0,0); }
  22%{ transform:translate(calc(-50% + var(--tx)), var(--ty)) rotate(var(--rot)) translate(calc(var(--floatAmp) * .85), calc(var(--floatAmp) * -.65)); }
  48%{ transform:translate(calc(-50% + var(--tx)), var(--ty)) rotate(var(--rot)) translate(calc(var(--floatAmp) * -.55), calc(var(--floatAmp) * .8)); }
  72%{ transform:translate(calc(-50% + var(--tx)), var(--ty)) rotate(var(--rot)) translate(calc(var(--floatAmp) * -.75), calc(var(--floatAmp) * -.45)); }
}

@media (max-width: 940px){
  .hero__grid{grid-template-columns:1fr; gap:18px}
  .heroCard__paper{transform: rotate(.4deg)}
  .statRow{grid-template-columns:1fr; gap:10px}
  .aboutGrid .card:nth-child(1){grid-column: span 12}
  .aboutGrid .card:nth-child(2){grid-column: span 6}
  .aboutGrid .card:nth-child(3){grid-column: span 6}
  .projectCard{grid-column: span 6}
}

@media (max-width: 620px){
  .nav{gap:6px}
  .nav a{padding:8px 8px}
  .projectCard{grid-column: span 12}
  .contactGrid .card:nth-child(1){grid-column: span 12}
  .contactGrid .card:nth-child(2){grid-column: span 12}
  .bgDoodle{opacity:.3; max-width:min(280px, 48vw)}
  .bgDoodle--extra{opacity:.24}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .bgDoodle{
    animation:none !important;
    transition:none !important;
  }
}
