:root {
  --ink: #1f1b2d;
  --paper: #fff8ef;
  --surface: #fffdf9;
  --muted: #6f687d;

  /* brighter pastel palette */
  --lavender: #c7b6ff;
  --lavender-soft: #f0eaff;
  --pink: #ffb6cf;
  --pink-soft: #fff0f5;
  --yellow: #ffe58a;
  --yellow-soft: #fff8d9;
  --aqua: #9ce7dc;
  --aqua-soft: #eafbf7;
  --blue: #9fd5ff;
  --blue-soft: #edf7ff;
  --coral: #ffb39f;
  --coral-soft: #fff0eb;
  --green: #b9ea9d;
  --green-soft: #f2fbe9;
  --orange: #ffc88f;
  --cream: #fff1c8;

  --border: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, svg { display: block; }
.container { width: min(calc(100% - clamp(30px, 6vw, 56px)), var(--container)); margin-inline: auto; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 239, .95);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .12em;
}
.brand-logo { width: 42px; height: 38px; object-fit: contain; }
.brand-name { line-height: 1; }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}
.nav-link {
  position: relative;
  padding: 10px 2px;
  font-size: 12.5px;
  font-weight: 800;
  transition: transform .2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 4px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover, .nav-link:focus-visible { transform: translateY(-2px); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: var(--border);
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-cta:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--yellow); background: #302943; }
.menu-toggle { display: none; width: 44px; height: 44px; border: var(--border); background: #fff; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); margin: 4px 0; }

/* SHARED SECTION SYSTEM */
.section {
  position: relative;
  padding: 104px 0;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.section-about { background: linear-gradient(180deg, #fff8ef 0%, #fff3e7 100%); }
.section-skills { background: var(--lavender-soft); }
.section-projects { background: var(--blue-soft); }
.section-experience { background: var(--green-soft); }
.section-certificates { background: var(--yellow-soft); }
.section-contact { background: var(--pink-soft); }

.section-heading-row {
  display: grid;
  grid-template-columns: auto minmax(260px, 470px);
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 44px;
}
.section-heading-row-simple { grid-template-columns: 1fr; }
.section-title-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}
.section-title {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 10px 15px 11px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.045em;
}
.title-underline {
  width: 92px;
  height: 5px;
  margin-top: 12px;
  border: 1px solid var(--ink);
}
.title-underline-pink { background: var(--pink); }
.title-underline-yellow { background: var(--yellow); }
.title-underline-cyan { background: var(--aqua); }
.section-lead { max-width: 470px; font-size: 14.5px; line-height: 1.7; color: #494256; }
.eyebrow { font-size: 10px !important; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }

/* ABOUT */
.about-layout { display: block; }
.about-copy { width: 100%; }
.about-text-block {
  max-width: 980px;
  margin: 0 0 44px 34px;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--pink);
  text-align: justify;
}
.about-text-block p {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.82;
  text-align: left;
}
.about-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card, .project-card, .certificate-card, .timeline-card, .skill-card { border: var(--border); }
.feature-card {
  min-height: 210px;
  padding: 20px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--ink); }
.feature-topline { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.feature-icon { width: 46px; height: 30px; border: var(--border); background: #fff; display: grid; place-items: center; }
.feature-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-number { color: rgba(31,27,45,.18); font-size: 28px; line-height: 1; font-weight: 900; }
.feature-card h2 { font-size: 16px; margin-bottom: 9px; }
.feature-card p { font-size: 11.5px; line-height: 1.58; }
.card-blue { background: var(--blue); }
.card-yellow { background: var(--yellow); }
.card-pink { background: var(--pink); }

.quick-info { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.quick-info-item {
  min-height: 78px;
  padding: 13px 15px;
  border: var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.quick-location { grid-template-columns: 38px minmax(0,1fr); background: var(--cream); }
.quick-link:hover, .quick-link:focus-visible { background: var(--lavender); transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border: var(--border); background: #fff; }
.quick-icon svg, .contact-btn-icon svg, .footer-socials svg, .link-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-copy { min-width: 0; display: grid; gap: 2px; }
.quick-copy small { font-size: 8.5px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; }
.quick-copy strong { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-arrow { font-size: 18px; font-weight: 900; transition: transform .2s ease; }
.quick-link:hover .quick-arrow { transform: translate(2px,-2px); }

/* SKILLS */
.skills-container { width: min(calc(100% - clamp(30px, 6vw, 56px)), var(--container)); }
.skills-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.skill-card {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
  text-align: center;
}
.skill-card:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--ink); }
.skill-logo { width: 38px; height: 38px; object-fit: contain; }
.skill-logo-mini { position: absolute; width: 20px; height: 20px; top: 13px; right: 13px; object-fit: contain; }
.skill-card h3 { font-size: 11px; line-height: 1.2; font-weight: 900; }
.bg-silver{background:#f1eef8}.bg-cyan{background:#aee9f6}.bg-mint{background:#bceecf}.bg-aqua{background:#aee8e2}.bg-coral{background:#ffc0b1}.bg-rose{background:#ffc1d8}.bg-purple{background:#cdbbff}.bg-blush{background:#ffd1e1}.bg-sky{background:#acd9ff}.bg-peach{background:#ffd2a3}.bg-lightblue{background:#b9dcff}.bg-yellow{background:#ffe58a}.bg-green{background:#bfea9e}.bg-sand{background:#ffe0b2}


.section-projects,
.section-certificates {
  overflow: visible;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.project-card {
  position: relative;
  min-height: 360px;
  padding: 26px;
  overflow: visible;
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 104px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover,
  .project-card:focus-within {
    z-index: 20;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .projects-grid:has(.project-card:hover) .project-card:not(:hover),
  .projects-grid:has(.project-card:focus-within) .project-card:not(:focus-within) {
    opacity: .72;
    filter: saturate(.88);
    transform: scale(.994);
  }
}

.project-cyan { background: var(--aqua); }
.project-yellow { background: var(--yellow); }
.project-pink { background: var(--pink); }

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.project-meta span:last-child { font-size: 28px; line-height: 1; color: rgba(31,27,45,.18); }
.project-card h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.16; margin-bottom: 13px; }
.project-card > p { font-size: 14px; line-height: 1.7; }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 16px; }
.tag-list span {
  border: 1.5px solid var(--ink);
  background: rgba(255,255,255,.7);
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 2px;
}

.card-link,
.preview-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: var(--border);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.card-link .link-icon,
.preview-toggle-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.card-link svg,
.preview-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-link b { transition: transform .18s ease; }
.card-link:hover,
.preview-toggle:hover,
.card-link:focus-visible,
.preview-toggle:focus-visible {
  background: var(--lavender);
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.card-link:hover b { transform: translate(2px,-2px); }

/* Project gallery: desktop hover + explicit pin button. */
.project-preview {
  position: relative;
  left: 50%;
  width: min(128%, 900px);
  max-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transform: translateX(-50%) translateY(10px);
  transform-origin: top center;
  scroll-margin: 100px 0 28px;
  transition:
    max-height .34s cubic-bezier(.2,.8,.2,1),
    margin .28s ease,
    padding .28s ease,
    opacity .18s ease,
    transform .3s cubic-bezier(.2,.8,.2,1),
    visibility .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-preview,
  .project-card.is-preview-open .project-preview {
    max-height: 760px;
    margin: 18px 0 16px;
    padding: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    background: rgba(255,253,249,.985);
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--pink), 12px 12px 0 var(--ink);
  }
}

.project-preview[data-count="1"] { width: min(124%, 900px); }
.project-preview[data-count="2"] { width: min(126%, 900px); }
.project-preview[data-count="3"] { width: min(116%, 780px); }

.project-preview .preview-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}
.project-preview[data-count="2"] .preview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.project-preview[data-count="3"] .preview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.project-preview[data-count="3"] .preview-frame:first-child { grid-column: 1 / -1; }

.preview-frame {
  min-width: 0;
  margin: 0;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
}

.image-preview-button {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: zoom-in;
}
.image-preview-button img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.project-preview[data-count="1"] img { max-height: 310px; }
.project-preview[data-count="2"] img { max-height: 215px; }
.project-preview[data-count="3"] .preview-frame:first-child img { max-height: 195px; }
.project-preview[data-count="3"] .preview-frame:not(:first-child) img { max-height: 145px; }

.image-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border: 1.5px solid var(--ink);
  background: rgba(255,253,249,.94);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.image-preview-button:hover .image-zoom-hint,
.image-preview-button:focus-visible .image-zoom-hint { opacity: 1; transform: none; }

.preview-placeholder {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 16px;
  text-align: center;
  background: #fffdf9;
}
.preview-placeholder span { font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.preview-placeholder small { font-size: 9px; color: var(--muted); }

/* EXPERIENCE */
.experience-heading { margin-bottom: 46px; }
.timeline { position: relative; display: grid; gap: 30px; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; background: var(--ink); }
.timeline-item { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 20px; align-items: stretch; }
.timeline-rail { position: relative; z-index: 2; display: flex; justify-content: center; padding-top: 20px; }
.timeline-marker { width: 52px; height: 52px; display: grid; place-items: center; border: var(--border); background: #fff; font-size: 11px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); }
.timeline-item:nth-child(1) .timeline-marker { background: var(--lavender); }
.timeline-item:nth-child(2) .timeline-marker { background: var(--aqua); }
.timeline-item:nth-child(3) .timeline-marker { background: var(--coral); }
.timeline-card { overflow: hidden; padding: 0; background: #fff; box-shadow: 6px 6px 0 var(--ink); transition: transform .22s ease, box-shadow .22s ease; }
.timeline-card:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 var(--ink); }
.timeline-banner { min-height: 132px; padding: 24px 26px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: start; border-bottom: var(--border); }
.timeline-lilac .timeline-banner { background: var(--lavender); }
.timeline-mint .timeline-banner { background: var(--aqua); }
.timeline-peach .timeline-banner { background: var(--coral); }
.timeline-kicker { font-size: 8.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 7px; }
.timeline-card h3 { font-size: clamp(20px,2.2vw,29px); line-height: 1.05; margin-bottom: 7px; }
.timeline-company { font-size: 13px; font-weight: 800; }
.timeline-badges { display: grid; justify-items: end; gap: 8px; }
.timeline-badges span, .timeline-badges b { display: inline-flex; min-height: 32px; align-items: center; padding: 6px 11px; border: var(--border); background: #fff; font-size: 8.5px; font-weight: 900; letter-spacing: .07em; }
.timeline-badges b { color: #fff; background: var(--ink); }
.timeline-body { padding: 24px 26px; background: #fffdf9; }
.experience-points { list-style: none; display: grid; gap: 13px; }
.experience-points li { position: relative; padding-left: 25px; font-size: 13px; line-height: 1.72; }
.experience-points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: var(--border); background: var(--pink); }
.timeline-item:nth-child(2) .experience-points li::before { background: var(--aqua); }
.timeline-item:nth-child(3) .experience-points li::before { background: var(--coral); }

/* CERTIFICATES */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
}

.certificate-grid-single {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.certificate-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 0;
  border: var(--border);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: stretch;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .certificate-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--ink);
  }
}

.certificate-no {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  color: rgba(31,27,45,.18);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.certificate-copy {
  min-width: 0;
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}

.certificate-heading {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.certificate-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: var(--border);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 25px;
  font-weight: 900;
}

.certificate-card h3 {
  margin: 5px 0 8px;
  max-width: 420px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.certificate-issuer {
  max-width: 440px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.certificate-description {
  max-width: 520px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.72;
}

.certificate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.certificate-meta span {
  padding: 6px 9px;
  border: 1.5px solid var(--ink);
  background: rgba(255,255,255,.72);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .04em;
}

.certificate-actions {
  margin-top: auto;
  padding-top: 26px;
}

.certificate-view-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 13px;
  border: var(--border);
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: inherit;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.certificate-view-button:hover,
.certificate-view-button:focus-visible {
  background: var(--lavender);
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.certificate-view-button b {
  font-size: 16px;
  transition: transform .18s ease;
}

.certificate-view-button:hover b {
  transform: translate(2px,-2px);
}

.certificate-view-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.certificate-view-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certificate-thumbnail {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border-left: var(--border);
  background:
    linear-gradient(135deg, rgba(199,182,255,.28), rgba(255,255,255,.86)),
    #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.certificate-thumbnail .preview-frame {
  width: 100%;
  box-shadow: 5px 5px 0 var(--ink);
}

.certificate-thumbnail .image-preview-button {
  min-height: 220px;
}

.certificate-thumbnail .image-preview-button img {
  width: 100%;
  height: auto;
  max-height: 285px;
  object-fit: contain;
  object-position: center;
}

.certificate-thumbnail figcaption {
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

/* CONTACT — intentionally simplified to one large panel */
.contact-heading { margin-bottom: 42px; }
.contact-heading h2 { font-size: clamp(52px,7.2vw,88px); line-height: .92; letter-spacing: -.065em; }
.contact-underline { display: block; width: 104px; height: 8px; margin-top: 20px; background: var(--pink); border: 1px solid var(--ink); }
.contact-panel {
  position: relative;
  border: 3px solid var(--ink);
  background: var(--lavender);
  padding: clamp(30px,5vw,58px);
  box-shadow: 10px 10px 0 var(--pink), 14px 14px 0 var(--ink);
}
.contact-panel::before { content: ''; position: absolute; right: 22px; top: 22px; width: 26px; height: 26px; background: var(--yellow); border: var(--border); transform: rotate(8deg); }
.contact-panel-solo { max-width: 980px; margin: 0 auto; }
.contact-panel-label { display: inline-flex; padding: 7px 10px; border: var(--border); background: #fff; font-size: 8.5px; font-weight: 900; letter-spacing: .12em; }
.contact-panel h3 { max-width: 700px; margin: 20px 0 14px; font-size: clamp(32px,4vw,52px); line-height: 1.02; letter-spacing: -.045em; }
.contact-lead-inside { max-width: 790px; font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
.contact-note { max-width: 720px; font-size: 11px; line-height: 1.65; color: #4d465b; }
.contact-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 30px; }
.contact-btn { min-height: 66px; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border: var(--border); background: #fffdf9; box-shadow: 4px 4px 0 var(--ink); font-size: 11px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-btn-primary { background: var(--yellow); }
.contact-btn:hover, .contact-btn:focus-visible { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); background: var(--aqua); }
.contact-btn-icon { width: 36px; height: 36px; display: grid; place-items: center; border: var(--border); background: #fff; }
.contact-btn b { font-size: 18px; transition: transform .2s ease; }
.contact-btn:hover b { transform: translate(2px,-2px); }

/* FOOTER */
.site-footer { position: relative; background: var(--ink); color: #f8f4eb; padding: 0 0 36px; }
.footer-accent { height: 8px; background: linear-gradient(90deg,var(--yellow) 0 25%,var(--aqua) 25% 50%,var(--lavender) 50% 75%,var(--pink) 75%); border-bottom: 2px solid #0f0d14; }
.footer-inner { min-height: 188px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; font-size: 9px; }
.footer-brand { display: grid; gap: 14px; }
.footer-logo-wrap { color: #fff; justify-self: start; }
.footer-brand p { color: #fff; font-size: 11px; font-weight: 800; line-height: 1.55; }
.footer-brand p span { color: #c9c2d5; font-size: 9px; font-weight: 600; }
.footer-socials { display: flex; gap: 11px; }
.footer-socials a { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid #fff; background: #302943; box-shadow: 4px 4px 0 var(--yellow); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.footer-socials a:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--pink); background: #463c61; }
.footer-meta { justify-self: end; display: grid; gap: 5px; text-align: right; color: #c9c2d5; }
.footer-meta strong { color: #fff; font-size: 9.5px; }

/* DECOR */
.decor { position: absolute; pointer-events: none; }
.decor-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); opacity: .55; }
.decor-dot-a { left: 4%; top: 66px; }
.decor-dot-b { right: 4%; bottom: 70px; background: var(--aqua); }
.decor-dot-c { left: 4%; top: 55px; background: var(--lavender); }
.decor-square { width: 34px; height: 34px; border: 1px solid var(--ink); transform: rotate(-11deg); background: #fff; }
.decor-square::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--yellow); top: 7px; left: 7px; }
.decor-square-a { top: 42px; right: 4%; }
.decor-square-b { top: 42px; right: 4%; }
.decor-diamond { width: 28px; height: 28px; background: var(--lavender); transform: rotate(45deg); left: 2%; bottom: 65px; border: 1px solid var(--ink); }
.decor-corner { width: 26px; height: 26px; border: 1px solid var(--ink); background: var(--yellow); transform: rotate(12deg); left: 2.2%; bottom: 28px; }

/* ACCESSIBILITY + LIGHTBOX + GLOBAL UX */
.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 4000;
  padding: 10px 14px;
  border: var(--border);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: none; }

::selection { background: var(--yellow); color: var(--ink); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.section, .project-card, .timeline-item, .certificate-card { scroll-margin-top: 104px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-columns: minmax(44px,72px) minmax(0,1fr) minmax(44px,72px);
  align-items: center;
  gap: 16px;
  padding: clamp(18px,3vw,42px);
  background: rgba(20,17,31,.92);
  backdrop-filter: blur(9px);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 1500px);
  min-width: 0;
  margin: 0;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.lightbox-image {
  display: block;
  width: min(100%, 1500px);
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  object-position: center;
  border: 3px solid #fffdf9;
  background: #fff;
  box-shadow: 10px 10px 0 var(--pink);
}

.lightbox-caption {
  max-width: min(100%, 1100px);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--yellow);
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 3;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.lightbox-nav[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .skills-grid { grid-template-columns: repeat(4,1fr); }
  .project-preview[data-count="1"],
  .project-preview[data-count="2"] { width: min(120%, 820px); }
  .project-preview[data-count="3"] { width: min(112%, 720px); }
}

@media (max-width: 980px) {
  .container, .skills-container { width: min(calc(100% - 40px), var(--container)); }
  .section { padding: 88px 0; }
  .header-inner { grid-template-columns: auto auto auto; justify-content: space-between; }
  .menu-toggle { display: block; order: 3; }
  .site-nav {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 18px;
    background: rgba(255,248,239,.99);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 8px 0 rgba(31,27,45,.08);
  }
  .site-nav.is-open { display: flex; }
  .nav-link { min-height: 46px; padding: 12px 3px; font-size: 13px; }
  .nav-link::after { right: auto; width: 42px; bottom: 5px; }
  .header-cta { margin-left: auto; }
  .skills-grid { grid-template-columns: repeat(3,1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-meta { grid-column: 1/-1; justify-self: start; text-align: left; }
}

@media (max-width: 860px) {

  .certificate-card { grid-template-columns: 1fr; }
  .certificate-thumbnail { border-left: 0; border-top: var(--border); }
  .certificate-thumbnail .image-preview-button img { max-height: 360px; }
}

@media (max-width: 760px) {
  .container, .skills-container { width: min(calc(100% - 30px), var(--container)); }
  .header-inner { min-height: 66px; grid-template-columns: 1fr auto; gap: 16px;}
  .menu-toggle { justify-self: end;}
  .brand-logo { width: 36px; height: 33px; }
  .brand-name { font-size: 13px; }
  .header-cta { display: none; }
  .section { padding: 72px 0; }
  .section-heading-row { grid-template-columns: 1fr; align-items: start; gap: 14px; margin-bottom: 32px; }
  .section-title { font-size: clamp(30px, 10vw, 38px); }
  .section-lead { font-size: 13.5px; }

  .about-text-block { max-width: none; margin: 0 0 34px; padding-left: 18px; }
  .about-text-block p { font-size: 15px; line-height: 1.75; }
  .about-cards, .projects-grid, .certificate-grid { grid-template-columns: 1fr; }
  .quick-info { grid-template-columns: 1fr; }
  .feature-card { min-height: 176px; }
  .skills-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .skill-card { min-height: 116px; }

  .project-card { min-height: 0; padding: 22px; overflow: hidden; }
  .project-card h3 { font-size: 22px; }
  .project-card > p { font-size: 13.5px; }
  .project-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .card-link, .preview-toggle { width: 100%; }

  /* On touch/mobile, previews are explicit accordions, not hover content. */
  .project-preview,
  .project-preview[data-count="1"],
  .project-preview[data-count="2"],
  .project-preview[data-count="3"] {
    position: relative;
    left: auto;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    border: 0;
    box-shadow: none;
  }
  .project-card.is-preview-open .project-preview {
    max-height: 1200px;
    margin-top: 18px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(255,253,249,.96);
    border: var(--border);
    box-shadow: 4px 4px 0 var(--ink);
  }
  .project-preview[data-count="2"] .preview-grid,
  .project-preview[data-count="3"] .preview-grid { grid-template-columns: 1fr; }
  .project-preview[data-count="3"] .preview-frame:first-child { grid-column: auto; }
  .project-preview img,
  .project-preview[data-count="1"] img,
  .project-preview[data-count="2"] img,
  .project-preview[data-count="3"] .preview-frame:first-child img,
  .project-preview[data-count="3"] .preview-frame:not(:first-child) img { max-height: 260px; }
  .image-zoom-hint { opacity: 1; transform: none; }

  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 44px minmax(0,1fr); gap: 11px; }
  .timeline-marker { width: 40px; height: 40px; box-shadow: 3px 3px 0 var(--ink); }
  .timeline-rail { padding-top: 16px; }
  .timeline-banner { grid-template-columns: 1fr; min-height: 0; padding: 19px; gap: 15px; }
  .timeline-badges { justify-items: start; grid-auto-flow: column; justify-content: start; }
  .timeline-body { padding: 19px; }
  .experience-points li { font-size: 12.5px; }
  .certificate-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .certificate-copy {
    padding: 24px 20px;
  }

  .certificate-heading {
    grid-template-columns: 50px minmax(0,1fr);
    gap: 14px;
  }

  .certificate-icon {
    width: 50px;
    height: 50px;
  }

  .certificate-card h3 {
    font-size: 25px;
  }

  .certificate-thumbnail {
    border-left: 0;
    border-top: var(--border);
    padding: 16px;
  }

  .certificate-thumbnail .image-preview-button {
    min-height: 0;
  }

  .certificate-thumbnail .image-preview-button img {
    max-height: 420px;
  }

  .certificate-view-button {
    width: 100%;
  }

  .contact-heading h2 { font-size: clamp(48px, 14vw, 64px); }
  .contact-panel { padding: 28px 20px; box-shadow: 7px 7px 0 var(--pink), 10px 10px 0 var(--ink); }
  .contact-panel h3 { font-size: 32px; }
  .contact-lead-inside { font-size: 14px; }
  .contact-actions { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; min-height: 260px; align-content: center; gap: 24px; }
  .footer-socials, .footer-meta, .footer-logo-wrap { justify-self: center; }
  .footer-brand { justify-items: center; text-align: center; }
  .footer-meta { text-align: center; }

  .lightbox { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; padding: 18px 10px; }
  .lightbox-stage { grid-column: 2; width: 100%; }
  .lightbox-image { max-height: 76vh; box-shadow: 6px 6px 0 var(--pink); }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-nav { width: 40px; height: 44px; font-size: 26px; }
}

@media (max-width: 440px) {
  .container, .skills-container { width: min(calc(100% - 22px), var(--container)); }
  .skills-grid { gap: 10px; }
  .skill-card { padding: 14px 8px; }
  .project-actions { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 36px minmax(0,1fr); }
  .timeline::before { left: 17px; }
  .timeline-marker { width: 34px; height: 34px; font-size: 9px; }
  .timeline-badges { grid-auto-flow: row; }
  .contact-panel::before { width: 20px; height: 20px; right: 14px; top: 14px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-stage { grid-column: 1; grid-row: 1; width: 100%; }
  .lightbox-nav { position: absolute; bottom: 14px; z-index: 2; }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }
  .lightbox-caption { padding-bottom: 54px; }
}

/* Pass 2: touch, tablet, and mobile polish */
@media (hover: none), (pointer: coarse) {
  /* Touch devices use the explicit preview button instead of hover. */
  .project-preview,
  .project-preview[data-count="1"],
  .project-preview[data-count="2"],
  .project-preview[data-count="3"] {
    position: relative;
    left: auto;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: none;
    border: 0;
    box-shadow: none;
  }

  .project-card.is-preview-open .project-preview {
    max-height: 1400px;
    margin: 18px 0 2px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(255,253,249,.96);
    border: var(--border);
    box-shadow: 4px 4px 0 var(--ink);
  }

  .project-preview[data-count="2"] .preview-grid,
  .project-preview[data-count="3"] .preview-grid {
    grid-template-columns: 1fr;
  }

  .project-preview[data-count="3"] .preview-frame:first-child {
    grid-column: auto;
  }

  .project-preview img,
  .project-preview[data-count="1"] img,
  .project-preview[data-count="2"] img,
  .project-preview[data-count="3"] .preview-frame:first-child img,
  .project-preview[data-count="3"] .preview-frame:not(:first-child) img {
    max-height: 320px;
  }

  .image-zoom-hint {
    opacity: 1;
    transform: none;
  }

  /* Avoid sticky hover movement after taps. */
  .feature-card:hover,
  .skill-card:hover,
  .timeline-card:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .feature-card h2 {
    font-size: 17px;
  }

  .feature-card p {
    font-size: 13px;
    line-height: 1.62;
  }

  .quick-copy small {
    font-size: 9px;
  }

  .quick-copy strong {
    font-size: 12.5px;
  }

  .card-link,
  .preview-toggle,
  .certificate-view-button {
    min-height: 46px;
  }

  .lightbox {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left));
  }
}

@media (max-width: 440px) {
  .section {
    padding: 60px 0;
  }

  .project-card {
    padding: 19px;
  }

  .project-meta {
    margin-bottom: 26px;
  }

  .lightbox-close,
  .lightbox-nav {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Pass 3: optional low-data polish for decorative effects. */
@media (prefers-reduced-data: reduce) {
  .decor,
  .guestbook-glow {
    display: none !important;
  }

  .site-header,
  .lightbox {
    backdrop-filter: none;
  }
}
