/* =============================================================
   Dennis D. Macaspac — Portfolio (New Design Concept)
   Plain CSS. No framework. Design tokens below.
   ============================================================= */

/* Self-hosted fonts (latin subset only) — avoids the
   fonts.googleapis.com / fonts.gstatic.com render-blocking chain. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-mono-700.woff2') format('woff2');
}

:root {
  /* Color */
  --bg:        #FAF9F6;   /* warm off-white page */
  --bg-alt:    #F2EFE9;   /* alternating section band */
  --ink:       #1F1D1A;   /* warm near-black text */
  --ink-soft:  #57534E;   /* body / secondary text */
  --ink-faint: #6E685E;   /* meta / labels (darkened for WCAG AA contrast) */
  --line:      #E6E1D8;   /* hairline borders */
  --accent:    #B4532F;   /* clay accent (used sparingly) */
  --accent-soft:#F4E6DE;  /* tinted accent background */
  --dark:      #1B1916;   /* dark sections / footer */

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 64px;

  /* Radius */
  --r-sm: 11px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dad4ca; border-radius: 8px; border: 3px solid var(--bg); }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* Eyebrow + section heading -------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.eyebrow.accent { color: var(--accent); }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  margin: 0;
}
.section-title.xl {
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1;
  letter-spacing: -2.2px;
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(250, 249, 246, .78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  padding: 0 28px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--bg);
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.5px;
  display: flex; align-items: center; justify-content: center;
}
.brand__name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.2px; }

.nav__links {
  margin-left: auto; display: flex; align-items: center; gap: 3px;
  overflow-x: auto; scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.btn {
  font-family: var(--sans); font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none;
  padding: 14px 26px; border-radius: 999px; transition: background .25s, transform .25s, border-color .25s, color .25s;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: var(--bg); color: var(--dark); }
.btn--light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.nav .btn { font-size: 14px; padding: 9px 17px; flex: none; }

.nav__burger { display: none; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 150px 28px 96px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero__text { flex: 1 1 460px; min-width: 300px; }
.hero__name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 6.6vw, 82px); line-height: 1.02; letter-spacing: -2.4px;
  margin: 0 0 26px; text-wrap: balance;
}
.hero__tagline {
  font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; color: var(--ink-soft);
  max-width: 540px; margin: 0 0 18px; font-weight: 500;
}
.hero__tagline strong { color: var(--ink); font-weight: 700; }
.hero__loc { display: flex; align-items: center; gap: 9px; color: var(--ink-faint); font-size: 15px; margin-bottom: 38px; }
.hero__loc .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; }

.hero__media { flex: 0 1 360px; min-width: 240px; position: relative; }
.hero__media .blob { position: absolute; inset: -18px -18px auto auto; width: 140px; height: 140px; border-radius: 50%; background: var(--accent-soft); z-index: 0; }
.hero__photo {
  position: relative; z-index: 1; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(31,29,26,.38); background: var(--bg-alt);
}
.hero__photo img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }

/* =============================================================
   ABOUT
   ============================================================= */
.about { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 54px; }
.about__label { flex: 0 0 240px; min-width: 200px; }
.about__label h2 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.08; letter-spacing: -1.2px; margin: 0; }
.about__body {
  flex: 1 1 460px; min-width: 300px; margin: 0; font-weight: 500;
  font-size: clamp(19px, 2.3vw, 25px); line-height: 1.6; letter-spacing: -.3px; color: var(--ink); text-wrap: pretty;
}
.about__body em { color: var(--accent); font-style: normal; }

/* =============================================================
   SECTION SCAFFOLD
   ============================================================= */
.section { padding-top: 100px; padding-bottom: 100px; }
.section--band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 46px; }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 50px; }
.section__head--split p { max-width: 340px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* =============================================================
   EDUCATION
   ============================================================= */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.edu-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(31,29,26,.35); border-color: #d8d1c5; }
.edu-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.logo-tile { width: 58px; height: 58px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.logo-tile img { max-width: 42px; max-height: 42px; object-fit: contain; border-radius: 6px; }
.edu-card__years { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--ink-faint); }
.edu-card h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.4px; margin: 0 0 7px; }
.edu-card .degree { margin: 0 0 14px; font-weight: 600; font-size: 15px; color: var(--accent); }
.edu-card .note { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* =============================================================
   SKILLS  (dark section)
   ============================================================= */
.skills { background: var(--dark); color: #EDE9E1; }
.skills .container { padding-top: 100px; padding-bottom: 100px; }
.skills .eyebrow { color: #c98a6b; }
.skills .section-title { color: #FAF9F6; }
.skills__head { margin-bottom: 50px; }
.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "pm fe"
    "pm be"
    "general general";
  gap: 14px;
}
.skill-group--pm { grid-area: pm; }
.skill-group--fe { grid-area: fe; }
.skill-group--be { grid-area: be; }
.skill-group--general { grid-area: general; }
@media (max-width: 900px) {
  .skills__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "pm" "fe" "be" "general";
  }
}
.skill-group { border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 28px; background: rgba(255,255,255,.025); }
.skill-group__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.skill-group__num { font-family: var(--mono); font-size: 12px; color: #c98a6b; }
.skill-group h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.3px; margin: 0; color: #FAF9F6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13.5px; font-weight: 500; color: #D8D2C8;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.chip:hover { background: var(--accent); color: #fff; }

/* =============================================================
   PRODUCTS
   ============================================================= */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(286px, 1fr)); gap: 22px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: transform .32s cubic-bezier(.22,1,.36,1), box-shadow .32s, border-color .32s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -30px rgba(31,29,26,.4); border-color: #d8d1c5; }
.product-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.logo-tile--lg { width: 62px; height: 62px; border-radius: var(--r-md); }
.logo-tile--lg img { max-width: 46px; max-height: 46px; border-radius: 7px; }
.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; text-align: right;
}
.product-card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.5px; margin: 0 0 10px; }
.product-card p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.link-out {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none;
  transition: color .2s;
}
.link-out:hover { color: var(--accent); }

/* =============================================================
   FREELANCE PROJECTS
   ============================================================= */
.proj-group { margin-bottom: 46px; }
.proj-group:last-child { margin-bottom: 0; }
.proj-group__label { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.proj-group__label span:first-child { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
.proj-group__label .rule { flex: 1; height: 1px; background: var(--line); }
.proj-card {
  text-align: left; cursor: pointer; font-family: inherit; padding: 0; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .32s cubic-bezier(.22,1,.36,1), box-shadow .32s, border-color .32s;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -30px rgba(31,29,26,.4); border-color: #d8d1c5; }
.proj-card__thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.proj-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.proj-card:hover .proj-card__thumb img { transform: scale(1.04); }
.proj-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.proj-card h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.4px; margin: 0 0 9px; }
.proj-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.proj-card .more { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.proj-card__meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin: 0 0 8px; }

/* =============================================================
   BLOG
   ============================================================= */
.section__head .lede { margin: 14px 0 0; max-width: 640px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }

.post-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.post-head .eyebrow { display: flex; justify-content: center; }
.post-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -1px; margin: 10px 0 16px; }
.post-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.post-meta .tag { text-align: center; }

.post-hero { max-width: 900px; margin: 0 auto 48px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.post-hero img { width: 100%; display: block; aspect-ratio: 16/7; object-fit: cover; }

.prose { max-width: 700px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 25px; letter-spacing: -.5px; margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--accent); font-style: normal; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }

.post-foot { max-width: 700px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* =============================================================
   EXPERIENCE (timeline)
   ============================================================= */
.exp-subhead { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline + .exp-subhead { margin-top: 64px; }
.exp-item { position: relative; padding: 20px 0; border-bottom: 1px solid var(--line); }
.exp-item::before { content: ""; position: absolute; left: -32px; top: 27px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); }
.exp-item--part::before { border-color: var(--ink-faint); }
.exp-item a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 18px; transition: color .2s; }
.exp-item--part a { align-items: flex-start; }
.exp-item a:hover { color: var(--accent); }
.exp-item h4 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.4px; margin: 0 0 3px; color: var(--ink); }
.exp-item .company { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.exp-item__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.exp-item__meta h4 { margin: 0; }
.exp-item .dates { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); margin-left: auto; }
.exp-item .note { margin: 9px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; }

/* =============================================================
   CERTIFICATIONS
   ============================================================= */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -28px rgba(31,29,26,.35); border-color: #d8d1c5; }
.logo-tile--cert { width: 54px; height: 54px; border-radius: var(--r-sm); }
.logo-tile--cert img { max-width: 40px; max-height: 40px; border-radius: 5px; }
.cert-card h3 { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.3px; margin: 0 0 4px; line-height: 1.2; }
.cert-card .issuer { font-size: 13.5px; color: var(--ink-soft); }
.cert-card .year { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--dark); color: #EDE9E1; }
.footer .container { padding-top: 64px; padding-bottom: 40px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand .brand__mark { background: #FAF9F6; color: var(--dark); }
.footer__name { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.3px; color: #FAF9F6; }
.footer__loc { font-size: 14px; color: #8a847a; margin-top: 2px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 28px; font-size: 13px; color: #8a847a; font-family: var(--mono); }

/* =============================================================
   MODAL
   ============================================================= */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-start; justify-content: center; padding: 5vh 20px; overflow-y: auto;
  background: rgba(27,25,22,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; animation: overlayIn .25s ease; }
.modal__panel {
  width: 100%; max-width: 760px; background: var(--bg); border-radius: var(--r-xl);
  border: 1px solid var(--line); box-shadow: 0 50px 110px -40px rgba(0,0,0,.6); overflow: hidden;
  margin-bottom: 5vh; animation: modalIn .42s cubic-bezier(.22,1,.36,1);
}
.modal__media { position: relative; aspect-ratio: 16/9; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__navbtn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(27,25,22,.6); color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.modal__navbtn.prev { left: 14px; } .modal__navbtn.next { right: 14px; }
.modal__counter { position: absolute; bottom: 14px; right: 16px; font-family: var(--mono); font-size: 11px; color: #fff; background: rgba(27,25,22,.6); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; z-index: 2;
  border: 1px solid var(--line); background: rgba(250,249,246,.9); color: var(--ink); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--accent); color: #fff; }
.modal__body { padding: 34px 38px 40px; }
.modal__group { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.modal__body h2 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -1px; margin: 0 0 24px; line-height: 1.1; }
.modal__body h3 { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.2px; margin: 26px 0 10px; color: var(--ink); }
.modal__body p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.modal__body ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.modal__body li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.modal__body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.modal__tech { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.modal__tech .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.modal__tech .chips .chip { color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); }
.modal__tech .chips .chip:hover { background: var(--bg-alt); color: var(--ink); }

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner > .btn { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    width: 42px; height: 42px; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav__burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__mobile {
    display: none; position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 16px 28px 24px; flex-direction: column; gap: 4px; z-index: 59;
  }
  .nav.menu-open .nav__mobile { display: flex; }
  .nav__mobile a { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 500; padding: 12px 8px; border-radius: 10px; }
  .nav__mobile a.is-active { color: var(--accent); }
  .nav__mobile .btn { margin-top: 10px; justify-content: center; color: var(--bg); }

  .hero { padding-top: 120px; padding-bottom: 64px; gap: 36px; }
  .section, .skills .container, .about .container { padding-top: 72px; padding-bottom: 72px; }
  .modal__body { padding: 26px 22px 30px; }
}

/* Hide the mobile menu container on desktop */
@media (min-width: 761px) { .nav__mobile { display: none !important; } }
