/* =========================================================
   Design tokens (from the Figma file, unified)
   ========================================================= */
:root {
  --ink: #191a23;
  --green: #b9ff66;
  --yellow: #ffcc00;
  --mint: #66ffd1;
  --purple: #b95beb;
  --orange: #fa8e00;
  --grey: #f3f3f3;
  --paper: #fdfcfb;
  --placeholder: #898989;

  --line: 3px;                      /* every structural line */
  --shadow-sm: 6px 6px 0 var(--ink);   /* buttons */
  --shadow-lg: 10px 10px 0 var(--ink); /* CTA + framed blocks */
  --r-sm: 10px;                     /* tags, buttons */
  --r-md: 14px;                     /* CTA, inputs */
  --r-lg: 45px;                     /* big standalone panels */

  --f-body: 'Poppins', sans-serif;
  --f-ui: 'Space Grotesk', sans-serif;
  --f-display: 'Momo Trust Display', 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  overflow-x: hidden;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }

/* One content column: 100px margins on a 1440 canvas */
.wrap { width: 1240px; margin: 0 auto; }

/* =========================================================
   Typography — bold = titles/labels, regular = lead, light = body
   ========================================================= */
.title { font: 700 56px/1.15 var(--f-body); }
.eyebrow { font: 300 20px/1.5 var(--f-body); }
.lead { font: 400 24px/1.5 var(--f-body); }
.body { font: 300 18px/1.7 var(--f-body); }
.card-title { font: 700 30px/1.25 var(--f-body); }

/* =========================================================
   Shared components
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px;
  background: var(--yellow); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  font: 700 18px/1 var(--f-ui); white-space: nowrap;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn--cta {
  height: 68px; padding: 0 35px; background: var(--green);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font: 700 30px/1 var(--f-body);
}
.btn--cta:hover { transform: translate(5px, 5px); box-shadow: 5px 5px 0 var(--ink); }
.btn--cta:active { transform: translate(10px, 10px); box-shadow: 0 0 0 var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: var(--line) solid var(--ink); border-radius: var(--r-sm);
  font: 700 16px/1 var(--f-ui); white-space: nowrap;
}
.tag--green { background: var(--green); }
.tag--mint { background: var(--mint); }
.tag--yellow { background: var(--yellow); }

/* Full-bleed section strips: lines run edge to edge */
.strip {
  display: flex; align-items: center; height: 154px; background: #fff;
  border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
}
.strip--open { border-bottom: 0; }          /* the cards below supply this line */
.strip--center .wrap { text-align: center; }
.strip__text { display: flex; flex-direction: column; gap: 2px; }

/* Framed block: one border, one shadow, flush internal dividers */
.frame {
  background: var(--paper);
  border: var(--line) solid var(--ink); box-shadow: var(--shadow-lg);
}
.block { padding: 80px 0 100px; }
.block--stack .wrap { display: flex; flex-direction: column; gap: 60px; }

/* Empty image slot (project screenshots go here) */
.slot {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(25, 26, 35, .06) 14px 16px),
    var(--grey);
}

/* Card text column shared by projects + work experience */
.cardbody {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 20px; padding: 40px 48px;
}
.cardbody .body { max-width: 520px; }

/* =========================================================
   Navbar
   ========================================================= */
.nav { background: #fff; border-bottom: var(--line) solid var(--ink); }
.nav__row { height: 97px; display: flex; justify-content: space-between; align-items: stretch; }
.nav__links { display: flex; align-items: center; gap: 40px; font: 500 20px/1 var(--f-ui); }
.nav__links a { transition: opacity .15s; }
.nav__links a:hover { opacity: .55; }
.nav__links a.is-active { font-weight: 700; }
.nav__login {
  width: 211px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font: 500 20px/1 var(--f-ui);
  transition: background .15s, color .15s;
}
.nav__login:hover { background: var(--green); color: var(--ink); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 56px 0 64px; }
.hero__row { display: flex; align-items: center; justify-content: space-between; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 35px; }
.hero__title { font: 400 70px/1.3 var(--f-display); }
.hero__line { display: block; }
.hero__hl {
  display: inline-block; padding: 0 10px; margin-left: 4px;
  background: var(--green); border-radius: 8px;
  font-size: 75px; transform: rotate(2.2deg);
}
.hero__desc { width: 613px; font: 400 25px/1.5 var(--f-body); }
.hero__art { width: 424px; height: 497px; flex: none; }

/* =========================================================
   Services
   ========================================================= */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); min-height: 286px; background: var(--paper);
  position: relative; width: calc(100% - 48px); max-width: 1240px; margin: 0 auto;
  border-left: var(--line) solid var(--ink); border-right: var(--line) solid var(--ink);
}
.trio::before, .trio::after {
  content: ''; position: absolute; left: 50%; width: calc(100vw + 64px); height: var(--line);
  background: var(--ink); transform: translateX(-50%);
}
.trio::before { top: 0; }
.trio::after { bottom: 0; }
.trio__cell + .trio__cell { border-left: var(--line) solid var(--ink); }
.trio__cell { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; }
.service-icon {
  width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 25px;
  border: 2px solid var(--ink); border-radius: 50%; box-shadow: 5px 5px 0 var(--ink);
  font-size: 34px; line-height: 1;
}
.service-icon--purple { background: #d3a6f5; }
.service-icon--yellow { background: #efff8b; }
.service-icon--green { background: #a4f5a0; }
.service-title { margin-bottom: 12px; font: 500 26px/1.25 var(--f-ui); }
.service-desc { max-width: 460px; color: #55545c; font: 300 16px/1.65 var(--f-body); }
@media (max-width: 900px) {
  .trio {
    grid-template-columns: 1fr; gap: 18px; min-height: 0;
    border: 0;
  }
  .trio::before, .trio::after { display: none; }
  .trio__cell, .trio__cell + .trio__cell {
    padding: 28px 24px; border: var(--line) solid var(--ink);
  }
}

/* =========================================================
   About
   ========================================================= */
.about { padding: 110px 0 120px; }
.about__layout { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 72px; align-items: center; }
.about__art { min-width: 0; }
.eye-box { display: grid; place-items: center; min-height: 360px; padding: 30px; background: #f3f3f3; border: var(--line) solid var(--ink); box-shadow: var(--shadow-lg); }
.eye-art { display: block; width: 100%; max-width: 360px; overflow: visible; }
.eye-pupil { transition: transform .07s ease-out; }
.eye-brow { transform-box: fill-box; transform-origin: center; transition: transform .2s ease-in-out; }
.eye-lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); transition: transform .12s ease-out; }
.eye-box.is-blinking .eye-lid { transform: scaleY(1); transition: transform .09s ease-in; }
.eye-box.is-curious .eye-brow--left { transform: translateY(-8px) rotate(-8deg); }
.eye-box.is-curious .eye-brow--right { transform: translateY(-8px) rotate(8deg); }
.eye-box.is-surprised .eye-brow--left { transform: translateY(-13px) rotate(-5deg) scale(1.08); }
.eye-box.is-surprised .eye-brow--right { transform: translateY(-13px) rotate(5deg) scale(1.08); }
.about__content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.about__content > .eyebrow { font-size: 16px; font-weight: 500; }
.about__content > .title { font-size: 52px; line-height: 1.1; }
.about__highlight { position: relative; z-index: 0; }
.about__highlight::after { content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 3px; height: 19px; background: var(--green); transform: rotate(-2deg); }
.about__lead { max-width: 690px; font: 500 21px/1.55 var(--f-body); }
.about__body { max-width: 690px; color: #55545c; font: 300 16px/1.75 var(--f-body); }
.about__timeline { display: flex; flex-direction: column; gap: 16px; width: 100%; margin: 12px 0 8px; }
.about-milestone { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 18px; }
.about-milestone__year { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 8px; background: #d9b4fa; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 15px/1 var(--f-ui); }
.about-milestone p { color: #45444b; font: 300 15px/1.65 var(--f-body); }
.about__blog { gap: 12px; margin-top: 4px; background: var(--green); }
.about__blog i { font-size: 17px; }
.blog-home { display: flex; align-items: center; font: 500 18px/1 var(--f-ui); }
.blog-page { padding-top: 90px; padding-bottom: 120px; }
.blog-page > .title { margin: 10px 0 18px; }
.blog-intro { max-width: 700px; color: #55545c; font: 300 19px/1.7 var(--f-body); }
.blog-list { display: grid; gap: 24px; margin-top: 54px; }
.blog-post { padding: 30px 34px; background: #fff; border: var(--line) solid var(--ink); box-shadow: var(--shadow-lg); }
.blog-post h2 { margin: 20px 0 12px; font: 700 25px/1.3 var(--f-ui); }
.blog-post p { max-width: 850px; color: #55545c; font: 300 16px/1.75 var(--f-body); }
@media (max-width: 1000px) {
  .about__layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about__art { width: min(100%, 520px); margin: 0 auto; }
  .eye-box { min-height: 340px; }
}
@media (max-width: 600px) {
  .about { padding: 72px 0; }
  .about__content > .title { font-size: 42px; }
  .about__lead { font-size: 18px; }
  .eye-box { min-height: 260px; padding: 24px; }
  .about-milestone { grid-template-columns: 66px minmax(0, 1fr); gap: 14px; }
  .blog-page { padding-top: 64px; padding-bottom: 80px; }
  .blog-post { padding: 24px 20px; }
  .blog-post h2 { font-size: 21px; }
}

/* =========================================================
   Featured projects (3 rows: slot | text, text | slot, slot | text)
   ========================================================= */
.prow { display: grid; grid-template-columns: 1fr 1fr; min-height: 373px; }
.prow + .prow { border-top: var(--line) solid var(--ink); }
.prow > :first-child { border-right: var(--line) solid var(--ink); }

/* Work experience: image slot flush left, text right */
.wcard { display: grid; grid-template-columns: 600px 1fr; min-height: 373px; }
.wcard > .slot { border-right: var(--line) solid var(--ink); }

/* =========================================================
   Skills
   ========================================================= */
.skills { padding: 52px 0 100px; }
.skills__card {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); justify-items: center;
  gap: 22px 18px; padding: 0;
}
.skill {
  display: block; width: 100%; max-width: 122px; aspect-ratio: 1; height: auto;
  object-fit: contain; padding: 8px; background: #fff; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.skill:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
@media (max-width: 1000px) {
  .skills__card { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 600px) {
  .skills { padding: 36px 0 72px; }
  .skills__card { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
  .skill { padding: 6px; }
}

/* =========================================================
   Contact
   ========================================================= */
.rule { border: 0; border-top: var(--line) solid var(--ink); }
.contact { padding: 80px 0 100px; }
.contact__box {
  position: relative; overflow: hidden; height: 773px;
  background: var(--grey); border-radius: var(--r-lg); padding: 60px 100px 80px;
}
/* the artwork has a baked-in 3px box edge on its top + right: push it out so the box clips it cleanly */
.contact__art { position: absolute; right: -8px; top: -5px; width: 470px; height: 762px; pointer-events: none; }
.form { position: relative; z-index: 1; width: 556px; display: flex; flex-direction: column; gap: 40px; }
.form__radios { display: flex; gap: 35px; }
.radio { position: relative; display: block; height: 28px; cursor: pointer; font: 400 18px/1 var(--f-ui); }
.radio input { position: absolute; opacity: 0; inset: 0; }
.radio__dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; background: #fff; }
.radio input:checked + .radio__dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--green); border: 1px solid var(--ink); }
.radio input:focus-visible + .radio__dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.radio__label { display: block; margin-left: 42px; line-height: 28px; white-space: nowrap; }
.form__fields { display: flex; flex-direction: column; gap: 25px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font: 400 16px/28px var(--f-ui); }
.field input, .field textarea {
  width: 556px; background: #fff; border: 1px solid var(--ink); border-radius: var(--r-md);
  padding: 18px 30px; font: 400 18px/1.3 var(--f-ui); color: var(--ink); outline: none;
}
.field input { height: 59px; }
.field textarea { height: 190px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px var(--green); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d33; box-shadow: 0 0 0 3px rgba(221, 51, 51, .25); }
.form__submit {
  width: 556px; height: 68px; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-md); cursor: pointer;
  font: 400 20px/1 var(--f-ui); transition: background .15s, color .15s;
}
.form__submit:hover { background: var(--green); color: var(--ink); }
