/* Nicksonder Examar | Email Developer Portfolio
   Organized by page section. Project borders are intentionally static. */

/* Design tokens and reset */
:root {
  --page: #fffdf9;
  --ink: #162033;
  --muted: #697386;
  --blue: #1957df;
  --lime: #a8c56f;
  --line: #dfe5ee;
  --max: 1280px;
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
.shell {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
}

/* Shared labels, headings, buttons, and links */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--blue);
}
.eyebrow:after {
  content: '✦';
  color: var(--blue);
  font-size: 12px;
}
.section h2,
.contact h2,
h1 {
  letter-spacing: -0.055em;
  line-height: 0.94;
}
h1 {
  max-width: 760px;
  margin: 24px 0 28px;
  font-size: clamp(56px, 8.2vw, 116px);
}
h1 em {
  color: var(--lime);
  font-style: normal;
}
.section h2 {
  max-width: 760px;
  margin: 13px 0 0;
  font-size: clamp(39px, 5vw, 73px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 31px;
}
.btn,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.btn {
  gap: 8px;
  padding: 14px 19px;
  background: var(--lime);
  color: var(--ink);
}
.btn.alt,
.pill {
  background: transparent;
  color: var(--ink);
  border: 1px solid #16203344;
}
.btn.alt {
  padding: 14px 19px;
}
.pill {
  padding: 11px 16px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px #192d5426;
}
.btn.alt:hover,
.pill:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Header and mobile navigation */
.nav {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  background: #fffdf9f7;
  border-bottom: 1px solid #16203318;
}
.site-header__inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo {
  margin-right: auto;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.12em;
}
.logo b {
  color: var(--lime);
  font-size: 24px;
}
.links {
  display: flex;
  gap: 26px;
  color: #667287;
  font-size: 12px;
  font-weight: 850;
}
.links a:hover {
  color: var(--blue);
}

/* Hero introduction and email preview cards */
.hero {
  min-height: 780px;
  padding: 74px 0 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 25%, #d9e6ff 0, transparent 34%),
    linear-gradient(135deg, #fffdf9, #f5f8ff 58%, #eef3ff);
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#1957df0d 1px, transparent 1px),
    linear-gradient(90deg, #1957df0d 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 706px;
}
.lede {
  max-width: 550px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.hero-chat-cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid transparent;
}
.hero-chat-cue:hover {
  border-bottom-color: currentColor;
}
.hero-chat-cue span {
  font-size: 16px;
}
.hero-note {
  margin-top: 35px;
  color: #778398;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-visual {
  height: 510px;
  position: relative;
}
.hero-visual:before {
  content: '';
  position: absolute;
  inset: 5% 10%;
  border: 1px solid #6d9aff55;
  border-radius: 50%;
  transform: rotate(-18deg) skewX(-16deg);
}
.hero-photo {
  position: absolute;
  z-index: 4;
  right: 4%;
  bottom: 4%;
  width: 155px;
  height: 155px;
  border: 8px solid var(--blue);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow:
    0 0 0 8px #d9e6ff,
    0 22px 50px #192d5426;
  transform: rotate(6deg);
}
.email-card {
  position: absolute;
  width: 265px;
  overflow: hidden;
  color: #15243a;
  background: #fff;
  border: 1px solid #1620331c;
  border-radius: 14px;
  box-shadow: 0 24px 65px #192d5422;
  transition:
    transform 0.36s var(--ease),
    box-shadow 0.36s var(--ease);
}
.email-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.email-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  font-size: 11px;
  font-weight: 950;
}
.email-card footer span {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.email-card--one {
  left: 5%;
  top: 14%;
  transform: rotate(-8deg);
  z-index: 2;
}
.email-card--two {
  right: 3%;
  top: 3%;
  transform: rotate(7deg);
  z-index: 1;
}
.email-card--three {
  left: 24%;
  bottom: 0;
  transform: rotate(2deg);
  z-index: 3;
}
.email-card:hover {
  z-index: 10;
  transform: translateY(-26px) rotate(-2deg) scale(1.02);
  box-shadow: 0 30px 70px #192d5433;
}

/* Scrolling production ticker */
.signal {
  padding: 13px 0;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.signal-track {
  display: block;
  width: 100%;
}
.signal-track__run {
  display: inline-flex;
  width: max-content;
  min-width: max-content;
  animation: signalLoop 42s linear infinite;
  will-change: transform;
}
.signal-track__run span {
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 58px;
}
.signal-track__run span:nth-child(5n) {
  color: var(--lime);
}
@keyframes signalLoop {
  from {
    transform: translate3d(-25%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Skills and tools */
.section {
  padding: 105px 0;
  border-top: 1px solid var(--line);
}
.skills-list {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}
.skills-list__row {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) 1.35fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.skills-list__row strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}
.skills-list__row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.tool {
  padding: 11px 14px;
  color: #46556a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}
.tool strong {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}
.tool:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* About section and supporting quote */
.about {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 75px;
  align-items: center;
}
.about-photo {
  height: 410px;
  position: relative;
  overflow: hidden;
  background: #e7edff;
  border: 1px solid #16203318;
  border-radius: 28px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.about-photo:before {
  content: '✦';
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 19px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px #192d5426;
}
.about-photo-label {
  position: absolute;
  z-index: 2;
  left: 17px;
  bottom: 17px;
  display: grid;
  gap: 3px;
  padding: 6px 8px;
  color: #fff;
  background: #162033c7;
  border-radius: 5px;
}
.about-photo-label strong {
  font-size: 12px;
}
.about-photo-label span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.quote {
  max-width: 650px;
  margin-top: 25px;
  padding: 16px 18px;
  color: var(--ink);
  border-left: 3px solid var(--lime);
  font-size: 14px;
  font-weight: 900;
}

/* Project library: one static 1px pastel border, no glow or shadow */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.section-head:after {
  content: '↗';
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  color: var(--blue);
  border: 1px solid #1957df55;
  border-radius: 50%;
  font-size: 17px;
  transform: rotate(-12deg);
}
.section-lede {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.library {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}
.library .project {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #d89ac8, #7aa6e8, #e6b27a, #95c7a1, #d89ac8)
      border-box;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: none;
  animation: none;
}
.library .project img {
  display: block;
  width: 100%;
  height: 320px;
  flex: 0 0 320px;
  object-fit: cover;
  object-position: center top;
  background: #edf2f8;
  filter: saturate(1.18) contrast(1.06);
}
.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 17px 20px;
  color: var(--ink);
  background: #fff;
}
.project-copy h3 {
  margin: 6px 0 9px;
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -0.06em;
}
.project-copy p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.tag {
  color: var(--lime);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}
.card-tech {
  display: inline-flex;
  padding: 6px 9px;
  color: #46556a;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
}
.project-link {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--blue);
  background: #f4f7fc;
  border: 1px solid #b6c7dc;
  border-radius: 50%;
  font-size: 17px;
}
.library .project:hover .project-link {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translate(2px, -2px);
}

/* Contact and footer */
.contact {
  padding: 115px 0;
  background: linear-gradient(125deg, #dce7ff, #f2f5ff 55%, #fff4d9);
}
.contact h2 {
  max-width: 900px;
  margin: 16px 0;
}
.contact p {
  max-width: 490px;
  color: var(--muted);
  line-height: 1.6;
}
.footer {
  padding: 24px 0;
  color: #778398;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.footer-in {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Loading handoff */
.page-loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  background: var(--page);
  pointer-events: none;
}
.page-loader .loader-mark {
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.12em;
}
.page-loader .loader-mark span {
  color: var(--lime);
  font-size: 40px;
}
.page-loader .loader-caption {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.is-ready .page-loader {
  animation: loaderExit 1.8s var(--ease) 0.18s forwards;
}
@keyframes loaderExit {
  0%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Restored final sizing and contact treatment. */
.logo {
  font-size: 28px;
}
.logo b {
  font-size: 32px;
}
.hero .btn:not(.alt) {
  color: #fff;
}
.about {
  grid-template-columns: 1fr 1.25fr;
  gap: 75px;
}
.about-photo {
  height: 520px;
}
.contact h2 {
  font-size: clamp(45px, 7vw, 99px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  max-width: 900px;
  margin: 16px 0;
}
.contact .btn {
  color: #fff;
}
.btn:hover {
  box-shadow: 0 8px 18px #192d5414;
}
.btn.alt:hover,
.pill:hover {
  background: transparent;
  color: var(--ink);
  border-color: #16203344;
}
.site-header__cta:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tool {
  transition: none;
}
.tool:hover {
  color: #46556a;
  background: #fff;
  border-color: var(--line);
  transform: none;
}

/* Responsive layout, mobile menu, and touch behavior */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 820px) {
  .shell {
    width: min(100% - 38px, 620px);
  }
  .links,
  .site-header__cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid #16203344;
    border-radius: 50%;
    cursor: pointer;
  }
  .mobile-menu-toggle span:not(.sr-only) {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .mobile-menu-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible,
  .mobile-menu-toggle[aria-expanded='true'] {
    outline: none;
    border-color: var(--blue);
    background: #1957df0d;
    box-shadow:
      0 0 0 3px #a8c56f33,
      0 0 14px #1957df33;
  }
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 8px 19px 18px;
    visibility: hidden;
    opacity: 0;
    background: var(--page);
    border-top: 1px solid #16203318;
    box-shadow: 0 18px 28px #192d5418;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }
  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-menu a {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 850;
  }
  .mobile-menu a span {
    color: var(--blue);
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .mobile-menu__contact {
    color: var(--blue) !important;
    border-bottom: 0 !important;
  }
  .menu-is-open {
    overflow: hidden;
  }
  .hero {
    min-height: 0;
    padding-bottom: 30px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-top: 24px;
  }
  .hero-grid > div:first-child {
    padding-top: 10px;
  }
  .hero-visual {
    height: 390px;
    margin-bottom: 18px;
  }
  .email-card {
    width: 205px;
  }
  .email-card img {
    height: 170px;
  }
  .email-card--one {
    left: 0;
  }
  .email-card--two {
    right: 0;
  }
  .email-card--three {
    left: 17%;
  }
  .hero-photo {
    right: 0;
    bottom: 0;
    width: 112px;
    height: 112px;
    border-width: 5px;
  }
  .section {
    padding: 78px 0;
  }
  .section-head {
    display: block;
  }
  .section-head:after {
    display: none;
  }
  .section-lede {
    margin-top: 18px;
  }
  .skills-list__row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px 0;
  }
  .skills-list__row strong {
    font-size: 18px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-copy {
    font-size: 16px;
  }
  .library {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .library .project {
    min-height: 510px;
  }
  .contact {
    padding: 82px 0;
  }
  .footer-in {
    display: block;
  }
  .footer-in span {
    display: block;
    margin-top: 8px;
  }
}
@media (max-width: 820px) and (hover: none) {
  .email-card:hover,
  .tool:hover {
    transform: none;
  }
  .library .project:hover .project-link {
    transform: none;
  }
}
@media (max-width: 820px) {
  .about-photo {
    height: 390px;
  }
  .logo {
    font-size: 24px;
  }
  .logo b {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
