/* =========================================================
   crafted by pueng — Hero
   Mobile-first. Builds on base.css tokens.
   ========================================================= */

/* ---------- Hero-specific tokens ---------- */
:root {
  --hero-deep: #0f1330;
  --hero-mid: #171a42;
  --hero-high: #232a5e;
  --wave-soft: #c9bcff;
  --wave-main: #f1ecfa;
}

/* =========================================================
   HEADER
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-header);
  transition:
    background var(--duration-normal) var(--ease-out),
    backdrop-filter var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(12, 16, 40, 0.72);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 1.2rem 3.2rem rgba(6, 10, 30, 0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  z-index: calc(var(--z-menu) + 1);
}
.brand__logo {
  height: 4.4rem;
  width: auto;
}

/* ---- Nav (mobile: slide-in panel) ---- */
.nav {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(82vw, 34rem);
  padding: calc(var(--header-height) + 2rem) 3.2rem 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  background: linear-gradient(180deg, #141a3f, #0d1130);
  border-inline-start: 1px solid var(--color-border-inverse);
  box-shadow: -2rem 0 6rem rgba(4, 8, 24, 0.5);
  transform: translateX(102%);
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: var(--z-menu);
}
.nav.is-open {
  transform: translateX(0);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.nav__link {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
  color: var(--color-body-inverse);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-heading-inverse);
  background: rgba(116, 96, 214, 0.14);
}
.nav__link.is-active {
  color: var(--color-heading-inverse);
}
.nav__link.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 1.3rem;
  width: 3px;
  border-radius: 999px;
  background: var(--color-primary);
}

.nav__cta {
  margin-block-start: 0.8rem;
  align-self: flex-start;
}

/* ---- Hamburger ---- */
.hamburger {
  --bar: 2.4rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0 1.1rem;
  border: 1px solid var(--color-border-inverse);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  z-index: calc(var(--z-menu) + 1);
}
.hamburger span {
  display: block;
  height: 2px;
  width: var(--bar);
  border-radius: 999px;
  background: var(--color-heading-inverse);
  transition:
    transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 26, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
  /* Must sit BELOW the header (which owns the nav panel's stacking
     context) so it only dims the page, never the menu itself. */
  z-index: calc(var(--z-header) - 1);
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1;
  padding: 1.4rem 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn__arrow,
.btn__icon {
  width: 1.7rem;
  height: 1.7rem;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2rem 4rem rgba(91, 61, 210, 0.42);
}
.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--outline {
  background: transparent;
  color: var(--color-heading-inverse);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--outline:hover {
  border-color: var(--color-primary-soft);
  background: rgba(116, 96, 214, 0.12);
  transform: translateY(-2px);
}
.btn--outline:hover .btn__icon {
  transform: translateY(2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-heading-inverse);
  border-color: rgba(255, 255, 255, 0.24);
  padding: 1.2rem 2rem;
  font-size: 1.5rem;
}
.btn--ghost:hover {
  border-color: var(--color-primary-soft);
  background: rgba(116, 96, 214, 0.14);
}
.btn--ghost:hover .btn__arrow {
  transform: translateX(4px);
}

:where(a, button):focus-visible {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  padding-block-start: calc(var(--header-height) + 2.4rem);
  padding-block-end: clamp(9rem, 22vw, 16rem);
  overflow: hidden;
  color: var(--color-heading-inverse);
  background-color: var(--hero-deep);
  background-image:
    linear-gradient(
      104deg,
      rgba(14, 18, 46, 0.94) 0%,
      rgba(19, 24, 62, 0.82) 34%,
      rgba(30, 34, 92, 0.42) 66%,
      rgba(40, 40, 96, 0.22) 100%
    ),
    url("assets/hero-bg.png");
  background-size: cover, cover;
  background-position:
    center,
    center right;
  background-repeat: no-repeat, no-repeat;
}

/* ambient glows */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* faint starfield drifting upward (hero only, behind everything) */
.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__stars .star {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 var(--glow, 4px) rgba(255, 255, 255, 0.7);
  opacity: 0;
  will-change: transform, opacity;
  animation:
    star-rise var(--dur, 18s) linear infinite,
    star-twinkle var(--tw, 3.5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
}
@keyframes star-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.7);
  }
  10% {
    opacity: var(--max, 0.6);
  }
  88% {
    opacity: var(--max, 0.6);
  }
  100% {
    opacity: 0;
    transform: translateY(calc(-1 * var(--rise, 90vh))) scale(1);
  }
}
@keyframes star-twinkle {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__stars {
    display: none;
  }
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.hero__glow--1 {
  width: 42rem;
  height: 42rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(
    circle,
    rgba(190, 160, 245, 0.5),
    transparent 70%
  );
  animation: drift 16s var(--ease-soft) infinite alternate;
}
.hero__glow--2 {
  width: 34rem;
  height: 34rem;
  bottom: 4rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(116, 96, 214, 0.5), transparent 70%);
  animation: drift 20s var(--ease-soft) infinite alternate-reverse;
}
.hero__glow--3 {
  width: 26rem;
  height: 26rem;
  top: 40%;
  left: 42%;
  background: radial-gradient(
    circle,
    rgba(96, 120, 220, 0.35),
    transparent 70%
  );
  animation: drift 24s var(--ease-soft) infinite alternate;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3rem, -2.4rem, 0) scale(1.12);
  }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
}

/* ---- Content ---- */
.hero__content {
  max-width: 60rem;
}
.hero__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-primary-soft);
  margin: 0 0 1.6rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0.005em;
  font-size: clamp(3.8rem, 11vw, 6.6rem);
}
.hero__title span {
  display: block;
}
.hero__title-accent {
  background: linear-gradient(100deg, #a597e6 0%, #7460d6 55%, #8b78dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.2vw, 1.85rem);
  line-height: 1.75;
  color: var(--color-body-inverse);
  margin: 2.4rem 0 0;
  max-width: 46rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-block-start: 3.2rem;
}

/* ---- Visual ---- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero__portrait {
  position: relative;
  width: min(100%, 46rem);
  container-type: inline-size;
  /* Mobile: pull the portrait down so the desk sits flush with the
     bottom of the hero and tucks behind the wave. The hero has
     overflow:hidden, so any excess below is clipped. */
  margin-block-end: calc(-1 * clamp(9rem, 22vw, 16rem) - 1rem);
}
.hero__portrait-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2.4rem 5rem rgba(6, 8, 24, 0.55));
}

/* =========================================================
   FLOATING TECH ICONS
   ========================================================= */
.tech-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;

  /* ring geometry — centre & radius are relative to the portrait width
     (cqw = 1% of the portrait), so the ring scales with the woman on
     every screen size and never drifts off-screen. */
  --ring-cx: 50%;
  --ring-cy: 42%;
  --ring-r: 34cqw;
}

/* Outer chip = fixed point on the circle (positioned with negative
   margins so no transform is used here — the inner element is free to
   animate its own transform without fighting the placement). */
.tech-chip {
  position: absolute;
  width: var(--chip, 5rem);
  height: var(--chip, 5rem);
  left: calc(var(--ring-cx) + var(--ring-r) * cos(var(--a)));
  top: calc(var(--ring-cy) + var(--ring-r) * sin(var(--a)));
  margin-left: calc(var(--chip, 5rem) / -2);
  margin-top: calc(var(--chip, 5rem) / -2);
}

/* Inner glass tile = visuals + entrance + float loop.
   Muted, cohesive glass — quiet border, minimal glow. */
.tech-chip__inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 1.6rem;
  color: rgba(233, 228, 255, 0.9);
  background: linear-gradient(
    155deg,
    rgba(122, 100, 208, 0.26),
    rgba(58, 46, 116, 0.2)
  );
  border: 1px solid rgba(196, 184, 246, 0.26);
  box-shadow:
    0 0.8rem 2rem rgba(18, 12, 50, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(7px);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: scale(0.4);
}
.tech-chip__inner b {
  font-size: 1.4rem;
}
.tech-chip .ico {
  width: 54%;
  height: 54%;
  opacity: 0.92;
}

/* Five icons on a calm arc across the top — evenly spaced from the
   left, up over her head, to the right. Lower zone left empty.
   0deg = right, angle increases clockwise. */
.tech-chip--wp {
  --a: 185deg;
  --chip: 5.2rem;
} /* left */
.tech-chip--code {
  --a: 226deg;
  --chip: 4.8rem;
} /* upper-left */
.tech-chip--php {
  --a: 267deg;
  --chip: 4.8rem;
} /* top */
.tech-chip--js {
  --a: 308deg;
  --chip: 4.8rem;
} /* upper-right */
.tech-chip--css {
  --a: 350deg;
  --chip: 5rem;
} /* right */

/* Depth: tiles further out / higher read softer, nearer ones firmer —
   gives the cluster real dimension instead of a flat sticker sheet.
   (opacity on the outer chip caps the inner entrance fade.) */
.tech-chip--php {
  opacity: 0.7;
}
.tech-chip--code {
  opacity: 0.82;
}
.tech-chip--js {
  opacity: 0.82;
}
.tech-chip--css {
  opacity: 0.9;
}
.tech-chip--wp {
  opacity: 0.96;
}

/* entrance + continuous float, staggered by --i */
.is-loaded .tech-chip__inner {
  animation:
    chip-in 0.8s var(--ease-out) forwards,
    chip-float 8s ease-in-out infinite;
  animation-delay: calc(0.9s + var(--i) * 0.14s), calc(1.7s + var(--i) * 0.5s);
}
@keyframes chip-in {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(1rem);
  }
  70% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes chip-float {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -0.55rem;
    rotate: 1.2deg;
  }
}

/* =========================================================
   BOTTOM WAVE
   ========================================================= */
.hero__wave {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  z-index: 2;
  line-height: 0;
}
.hero__wave .wave {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  width: 100%;
  height: clamp(7rem, 14vw, 13rem);
}
.wave--main path {
  fill: var(--wave-main);
}
.wave--soft {
  height: clamp(8rem, 16vw, 15rem);
  transform: translateX(6%);
}
.wave--soft path {
  fill: var(--wave-soft);
  opacity: 0.65;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  background:
    radial-gradient(
      120% 80% at 85% 8%,
      rgba(205, 192, 242, 0.45),
      transparent 55%
    ),
    linear-gradient(180deg, #f1ecfa 0%, #ece5f7 45%, #e7def5 100%);
  color: var(--color-heading);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 4rem);
  align-items: center;
}

/* ---- Copy ---- */
.about__content {
  width: 100%;
  max-width: 52rem;
}
.about__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.6rem;
}
.about__eyebrow-line {
  width: 2.6rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  opacity: 0.7;
}
.about__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: #1c1838;
  margin: 0 0 2rem;
}
.about__title-accent {
  display: block;
  background: linear-gradient(100deg, #7460d6 0%, #8b78dd 60%, #a597e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.6vw, 1.7rem);
  line-height: 1.8;
  color: #4a4664;
  margin: 0 0 1.6rem;
  max-width: 46rem;
}
.about__content .btn {
  margin-block-start: 1.2rem;
}
.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(116, 96, 214, 0.4);
}
.btn--outline-dark:hover {
  background: rgba(116, 96, 214, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.btn--outline-dark:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---- Visual ---- */
.about__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}
.about__figure {
  position: relative;
  width: min(100%, 33rem);
  aspect-ratio: 5 / 6;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.about__img {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: min(96%, 32rem);
  height: auto;
  filter: drop-shadow(0 2.2rem 3.6rem rgba(60, 40, 120, 0.24));
}

/* main filled arch (rounded top, gentle bottom) */
.about__arch {
  position: absolute;
  z-index: 0;
  inset-block: 11% 0;
  inset-inline: 5%;
  border-radius: 46% 46% 12% 12% / 33% 33% 7% 7%;
  background: linear-gradient(165deg, #e7ddf7 0%, #dbc9f1 55%, #cdb9ec 100%);
  box-shadow: inset 0 -1.6rem 4rem rgba(158, 130, 218, 0.3);
}
/* offset outlined arch behind — adds depth */
.about__arch-back {
  position: absolute;
  z-index: 0;
  inset-block: 5% 5%;
  inset-inline: -1% 11%;
  border-radius: 46% 46% 12% 12% / 31% 31% 7% 7%;
  border: 1.5px solid rgba(116, 96, 214, 0.22);
  background: linear-gradient(
    160deg,
    rgba(214, 202, 244, 0.35),
    transparent 70%
  );
}
/* dotted grid, left */
.about__dots {
  position: absolute;
  z-index: 1;
  inset-block-start: 24%;
  inset-inline-start: -3%;
  width: clamp(6.5rem, 26%, 9.5rem);
  aspect-ratio: 1;
  background-image: radial-gradient(
    circle,
    rgba(116, 96, 214, 0.5) 1.6px,
    transparent 2px
  );
  background-size: 1.6rem 1.6rem;
  -webkit-mask-image: linear-gradient(150deg, #000 40%, transparent 88%);
  mask-image: linear-gradient(150deg, #000 40%, transparent 88%);
}

/* ---- Scroll reveal (About) ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(2.4rem);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-visual-about {
  opacity: 0;
  transform: translateY(3rem) scale(0.97);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out);
}
.about.is-inview .reveal-up,
.about.is-inview .reveal-visual-about {
  opacity: 1;
  transform: none;
}
.about.is-inview .about__content > .reveal-up:nth-child(1) {
  transition-delay: 0.05s;
}
.about.is-inview .about__content > .reveal-up:nth-child(2) {
  transition-delay: 0.16s;
}
.about.is-inview .about__content > .reveal-up:nth-child(3) {
  transition-delay: 0.28s;
}
.about.is-inview .about__content > .reveal-up:nth-child(4) {
  transition-delay: 0.38s;
}
.about.is-inview .about__content > .reveal-up:nth-child(5) {
  transition-delay: 0.5s;
}
.about.is-inview .reveal-visual-about {
  transition-delay: 0.15s;
}

/* Desktop: two columns */
@media (min-width: 1024px) {
  .about {
    padding-block: clamp(7rem, 9vw, 11rem);
  }
  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: clamp(3rem, 6vw, 7rem);
  }
  .about__content {
    flex: 1 1 52%;
  }
  .about__visual {
    flex: 1 1 48%;
  }
  .about__figure {
    width: min(100%, 38rem);
  }
  .about__img {
    width: min(94%, 36rem);
  }
  .reveal-visual-about {
    transform: translateX(3rem) scale(0.97);
  }
}

/* =========================================================
   SKILLS SECTION
   ========================================================= */
.skills {
  position: relative;
  scroll-margin-top: var(--header-height);
  padding-block: clamp(1rem, 3vw, 3rem) clamp(4.5rem, 10vw, 8rem);
  background: linear-gradient(180deg, #ece5f6 0%, #f0eafa 50%, #ece5f6 100%);
}

.skills__panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(2rem, 3vw, 3.2rem);
  padding: clamp(2.6rem, 5vw, 4.2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.6rem, 5vw, 3.4rem);
  color: var(--color-heading-inverse);
  background:
    radial-gradient(
      90% 120% at 12% 12%,
      rgba(96, 72, 180, 0.42),
      transparent 55%
    ),
    radial-gradient(
      90% 120% at 92% 90%,
      rgba(70, 60, 150, 0.4),
      transparent 55%
    ),
    linear-gradient(150deg, #1a1740 0%, #141232 55%, #100e28 100%);
  box-shadow:
    0 3rem 6rem rgba(30, 22, 78, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* head */
.skills__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-soft);
  margin: 0 0 1.4rem;
}
.skills__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  line-height: 1.16;
  color: #fff;
  margin: 0;
}
.skills__title-accent {
  background: linear-gradient(100deg, #a597e6, #7460d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skills__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-block-start: 1.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-primary-soft);
  transition:
    gap var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}
.skills__link svg {
  width: 1.6rem;
  height: 1.6rem;
}
.skills__link:hover {
  gap: 1.2rem;
  color: #fff;
}

/* grid of cards */
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 2.2vw, 1.8rem);
}
.sk-card {
  flex: 1 1 12rem;
  min-width: 11rem;
  max-width: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(1.8rem, 2.6vw, 2.4rem) 1.2rem;
  border-radius: 1.8rem;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
}
.sk-card:hover {
  transform: translateY(-6px);
  border-color: rgba(160, 130, 245, 0.4);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
}

/* icon tile */
.sk-ico {
  --ink: #e6ddf7;
  position: relative;
  display: grid;
  place-items: center;
  width: 5.8rem;
  height: 5.8rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(var(--brand), 0.16),
      transparent 70%
    ),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 2.2rem rgba(var(--brand), 0.26);
}
/* faint brand aura behind the tile */
.sk-ico::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(var(--brand), 0.22),
    transparent 66%
  );
}
.sk-ico--html {
  --brand: 228, 96, 58;
}
.sk-ico--css {
  --brand: 74, 134, 232;
}
.sk-ico--js {
  --brand: 224, 200, 70;
}
.sk-ico--php {
  --brand: 140, 146, 205;
}
.sk-ico--wp {
  --brand: 180, 160, 240;
}

/* marks — all outline / monochrome light ink */
.sk-shield {
  width: 58%;
  height: 58%;
}
.sk-shield path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.sk-mark {
  position: absolute;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
}
.sk-ico--html .sk-mark,
.sk-ico--css .sk-mark {
  font-size: 1.25rem;
  inset-block-start: 52%;
  transform: translateY(-44%);
}

/* JS — outlined rounded square */
.sk-square {
  width: 60%;
  height: 60%;
  border-radius: 0.9rem;
  background: none;
  border: 1.5px solid var(--ink);
}
.sk-mark--dark {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
}

/* PHP — outlined ellipse */
.sk-ellipse {
  width: 68%;
  height: 50%;
  border-radius: 999px;
  background: none;
  border: 1.5px solid var(--ink);
}
.sk-mark--php {
  color: var(--ink);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* WordPress — outlined ring + W (the reference style) */
.sk-ring {
  width: 74%;
  height: 74%;
  color: var(--ink);
}
.sk-mark--wp {
  color: var(--ink);
  font-size: 1.6rem;
  font-family: var(--font-heading);
}

.sk-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.5rem);
  color: rgba(233, 228, 255, 0.86);
  text-align: center;
}

/* Skills reveal */
.reveal-panel {
  opacity: 0;
  transform: translateY(3rem) scale(0.99);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.skills.is-inview .reveal-panel {
  opacity: 1;
  transform: none;
}
.contact.is-inview .reveal-panel {
  opacity: 1;
  transform: none;
}
.skills.is-inview .sk-card {
  animation: sk-pop 0.6s var(--ease-out) backwards;
  animation-delay: calc(0.25s + var(--d) * 0.09s);
}
@keyframes sk-pop {
  0% {
    opacity: 0;
    transform: translateY(1.6rem) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Desktop: head left, cards right */
@media (min-width: 1024px) {
  .skills__panel {
    flex-direction: row;
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
    padding: clamp(3.4rem, 4vw, 4.6rem);
  }
  .skills__head {
    flex: 0 0 26%;
  }
  .skills__grid {
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }
  .skills__link {
    margin-block-start: 2.2rem;
  }
}

/* =========================================================
   PROJECTS SECTION
   ========================================================= */
.projects {
  position: relative;
  scroll-margin-top: var(--header-height);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: linear-gradient(180deg, #e7def5 0%, #eae2f6 55%, #ece5f6 100%);
  color: var(--color-heading);
}
.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem;
  margin-block-end: clamp(2.8rem, 5vw, 4rem);
}
.projects__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.2rem;
}
.projects__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.1;
  color: #1c1838;
  margin: 0;
}
.projects__all {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--color-primary);
  transition: gap var(--duration-fast) var(--ease-out);
}
.projects__all svg {
  width: 1.6rem;
  height: 1.6rem;
}
.projects__all:hover {
  gap: 1.2rem;
}

/* grid: 1 -> 2 -> 3 columns */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3vw, 2.8rem);
}
@media (min-width: 560px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* card */
.pj-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.8rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(116, 96, 214, 0.1);
  box-shadow: 0 1.6rem 3.6rem rgba(70, 50, 140, 0.1);
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}
.pj-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 3rem 6rem rgba(70, 50, 140, 0.2);
}

/* thumbnail — stylised browser mockup */
.pj-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #3a3170, #221d4d);
}
.pj-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}
.pj-chrome i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.pj-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}
.pj-shot b {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
}
.pj-shot em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(255, 255, 255, 0.72);
}
/* per-project thumbnail palettes */
.pj-thumb--resort {
  background: linear-gradient(135deg, #1f6f8b 0%, #2a4b7c 55%, #12243f 100%);
}
.pj-thumb--health {
  background: linear-gradient(135deg, #4b8b6f 0%, #35707a 55%, #23484f 100%);
}
.pj-thumb--car {
  background: linear-gradient(135deg, #2a3358 0%, #171d3a 60%, #0c1024 100%);
}
.pj-thumb--award {
  background: linear-gradient(135deg, #7a5a2a 0%, #4a3418 55%, #251a10 100%);
}
.pj-thumb--food {
  background: linear-gradient(135deg, #b5533a 0%, #7c3a3a 55%, #40202a 100%);
}
.pj-thumb--shop {
  background: linear-gradient(135deg, #5b46b0 0%, #3f3080 55%, #241a52 100%);
}
.pj-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 80% 110%,
    rgba(255, 255, 255, 0.16),
    transparent 55%
  );
}

/* รูปจริงใน thumbnail ของ project (ทับพื้นสีธีม) */
.pj-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* overlay มืดๆ ให้ตัวอักษรอ่านออกบนรูป */
.pj-thumb--has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    rgba(16, 14, 40, 0.35),
    rgba(16, 14, 40, 0.5)
  );
}

/* body */
.pj-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.8rem, 2.6vw, 2.4rem);
}
.pj-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  color: #1c1838;
  margin: 0;
}
.pj-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.65;
  color: #55516f;
  margin: 0;
}
.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-block: 0.2rem 0.4rem;
}
.pj-tags li {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: #6450c0;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(116, 96, 214, 0.1);
}
.pj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-block-start: auto;
  padding-block-start: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--color-primary);
  transition: gap var(--duration-fast) var(--ease-out);
}
.pj-link svg {
  width: 1.6rem;
  height: 1.6rem;
}
.pj-link:hover {
  gap: 1.2rem;
}

/* reveal */
.projects.is-inview .pj-card {
  animation: sk-pop 0.6s var(--ease-out) backwards;
  animation-delay: calc(0.1s + var(--d) * 0.08s);
}

/* =========================================================
   EXPERIENCE (vertical timeline)
   ========================================================= */
.exp {
  position: relative;
  scroll-margin-top: var(--header-height);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: linear-gradient(180deg, #ece5f6 0%, #e9e1f5 55%, #efe9f9 100%);
  color: var(--color-heading);
}
.exp__head {
  margin-block-end: clamp(3rem, 6vw, 5rem);
}
.exp__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.2rem;
}
.exp__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.12;
  color: #1c1838;
  margin: 0;
}

/* timeline */
.exp__timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 3.4rem;
  max-width: 68rem;
}
.exp__timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.6rem;
  inset-block: 0.6rem 1rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(116, 96, 214, 0.55) 12%,
    rgba(116, 96, 214, 0.55) 88%,
    transparent
  );
}
.exp__item {
  position: relative;
  padding-block-end: clamp(3rem, 5vw, 4.2rem);
}
.exp__item:last-child {
  padding-block-end: 0;
}

.exp__marker {
  position: absolute;
  inset-inline-start: -3.4rem;
  inset-block-start: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #9482df, #7460d6);
  box-shadow:
    0 0 0 4px rgba(116, 96, 214, 0.16),
    0 0 1.6rem rgba(116, 96, 214, 0.5);
  transition:
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}
.exp__item:hover .exp__marker {
  transform: scale(1.18);
  box-shadow:
    0 0 0 5px rgba(116, 96, 214, 0.2),
    0 0 2.2rem rgba(116, 96, 214, 0.7);
}

.exp__content {
  position: relative;
  padding: 0.2rem 0 0.2rem 0.4rem;
}
.exp__date {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-block-end: 0.7rem;
}
.exp__role {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #1c1838;
  margin: 0 0 0.4rem;
}
.exp__company {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #7a6fa6;
  margin-block-end: 1rem;
}
.exp__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.4vw, 1.6rem);
  line-height: 1.75;
  color: #55516f;
  margin: 0;
  max-width: 52rem;
}

/* reveal — items slide in from the left, staggered */
.exp__item {
  opacity: 0;
  transform: translateX(-1.6rem);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d) * 0.12s);
}
.exp.is-inview .exp__item {
  opacity: 1;
  transform: none;
}
.exp.is-inview .reveal-up {
  opacity: 1;
  transform: none;
}
.exp__head .reveal-up:nth-child(1) {
  transition-delay: 0.05s;
}
.exp__head .reveal-up:nth-child(2) {
  transition-delay: 0.15s;
}

@media (min-width: 768px) {
  .exp__timeline {
    padding-left: 4rem;
  }
  .exp__marker {
    inset-inline-start: -4rem;
  }
}

/* =========================================================
   CONTACT + FOOTER
   ========================================================= */
.contact {
  position: relative;
  scroll-margin-top: var(--header-height);
  padding-block: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, #efe9f9 0%, #f2edf9 100%);
}
.contact__panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(2rem, 3vw, 3.2rem);
  padding: clamp(2.8rem, 5vw, 4.4rem);
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  color: var(--color-heading-inverse);
  background:
    radial-gradient(
      80% 120% at 15% 20%,
      rgba(96, 72, 180, 0.4),
      transparent 55%
    ),
    radial-gradient(
      80% 120% at 90% 90%,
      rgba(70, 60, 150, 0.4),
      transparent 55%
    ),
    linear-gradient(150deg, #1c1946 0%, #151238 55%, #100e28 100%);
  box-shadow: 0 3rem 6rem rgba(30, 22, 78, 0.32);
}

/* woman — hidden on small screens, shown on desktop bottom-left */
.contact__figure {
  display: none;
}
.contact__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.6rem 3rem rgba(0, 0, 0, 0.35));
}

.contact__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-soft);
  margin: 0 0 1.4rem;
}
.contact__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.18;
  color: #fff;
  margin: 0 0 2.4rem;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.contact__info {
  display: grid;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact__info li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--color-body-inverse);
}
.contact__info a {
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}
.contact__info a:hover {
  color: #fff;
}
.contact__ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  color: var(--color-primary-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact__ic svg {
  width: 1.9rem;
  height: 1.9rem;
}

/* footer */
.site-footer {
  background: #f2edf9;
  padding-block: clamp(2.4rem, 4vw, 3.4rem) clamp(2.4rem, 4vw, 3rem);
  border-block-start: 1px solid rgba(116, 96, 214, 0.12);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}
.site-footer__brand img {
  height: 4rem;
  width: auto;
}
.site-footer__copy {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: #6c6488;
  margin: 0;
}
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-footer__social {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  color: #6a5fa0;
  background: rgba(116, 96, 214, 0.08);
  border: 1px solid rgba(116, 96, 214, 0.16);
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}
.site-footer__social a:hover {
  transform: translateY(-3px);
  background: var(--color-primary);
  color: #fff;
}
.site-footer__social svg {
  width: 1.9rem;
  height: 1.9rem;
}
/* Desktop layout for contact panel */
@media (min-width: 900px) {
  .contact__panel {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding-block: 0;
    padding-inline: clamp(3rem, 4vw, 4.5rem);
    min-height: 30rem;
  }
  .contact__figure {
    display: block;
    align-self: end;
    margin-block-end: calc(clamp(2.8rem, 5vw, 4.4rem) * -1);
  }
  .contact__info {
    justify-self: end;
  }
}

@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* floating back-to-top */
.to-top {
  position: fixed;
  right: clamp(1.6rem, 3vw, 3rem);
  bottom: clamp(1.6rem, 3vw, 3rem);
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  box-shadow: 0 1.2rem 2.8rem rgba(70, 50, 140, 0.4);
  opacity: 0;
  transform: translateY(1.2rem) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  z-index: var(--z-header);
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px);
}
.to-top svg {
  width: 2rem;
  height: 2rem;
}
@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: opacity 0.2s linear;
  }
  .to-top.is-visible {
    transform: none;
  }
}

/* =========================================================
   PAGE-LOAD REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal[data-reveal="1"] {
  transition-delay: 0.05s;
}
.reveal[data-reveal="2"] {
  transition-delay: 0.18s;
}
.reveal[data-reveal="3"] {
  transition-delay: 0.3s;
}
.reveal[data-reveal="4"] {
  transition-delay: 0.42s;
}
.reveal[data-reveal="5"] {
  transition-delay: 0.56s;
}
.reveal[data-reveal="6"] {
  transition-delay: 0.7s;
}
.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-visual {
  opacity: 0;
  transform: translateX(4rem) scale(0.96);
  transition:
    opacity 1s var(--ease-out) 0.35s,
    transform 1.1s var(--ease-out) 0.35s;
}
.is-loaded .reveal-visual {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* =========================================================
   RESPONSIVE — tablet & up
   ========================================================= */
@media (min-width: 768px) {
  .brand__logo {
    height: 5rem;
  }
  .hero__actions {
    margin-block-start: 3.6rem;
  }
  .hero__portrait {
    width: min(80%, 54rem);
  }
}

/* Desktop: two-column hero + inline nav */
@media (min-width: 1024px) {
  /* nav becomes inline */
  .hamburger {
    display: none;
  }
  .nav-backdrop {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 3.2rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }
  .nav__link {
    font-size: 1.55rem;
    padding: 0.6rem 1.1rem;
    color: var(--color-body-inverse);
  }
  .nav__link.is-active {
    color: #fff;
  }
  .nav__link.is-active::before {
    inset: auto;
    inset-block-end: -0.2rem;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }
  .nav__cta {
    margin: 0 0 0 1.2rem;
  }

  .hero {
    padding-block-end: clamp(11rem, 12vw, 17rem);
  }
  .hero__inner {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 6rem);
  }
  .hero__content {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero__visual {
    flex: 1 1 48%;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .hero__portrait {
    width: min(100%, 54rem);
    margin-inline-end: calc(var(--container-padding) * -0.28);
    /* fully cancel the hero bottom padding (+2rem) so the desk clips at
       the bottom edge and tucks into the wave — no floating gap. */
    margin-block-end: calc(-1 * clamp(11rem, 12vw, 17rem) - 2rem);
  }
  .tech-orbit {
    --ring-cy: 40%;
    --ring-r: 39cqw;
  }
}

@media (min-width: 1280px) {
  .hero__portrait {
    width: 57rem;
    margin-inline-end: calc(var(--container-padding) * -0.45);
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .reveal-visual,
  .reveal-up,
  .reveal-visual-about,
  .reveal-panel {
    opacity: 1;
    transform: none;
  }
  .tech-chip__inner {
    opacity: 1;
    transform: none;
  }
  .sk-card {
    animation: none !important;
    opacity: 1;
  }
  .pj-card {
    animation: none !important;
    opacity: 1;
  }
  .exp__item {
    opacity: 1;
    transform: none;
  }
  .hero__glow {
    animation: none;
  }
}

/* header พื้นเข้มตลอด — สำหรับหน้าที่ไม่มี hero */
.site-header--solid {
  background: rgba(12, 16, 40, 0.92);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 1.2rem 3.2rem rgba(6, 10, 30, 0.4);
}

/* หัวหน้าเพจ (หน้าที่ไม่มี hero) */
.page-head {
  padding-top: 7rem;
}

/* หัวหน้าเพจ (หน้าที่ไม่มี hero) */
.page-head {
  padding-top: 7rem;
  margin-bottom: 2.5rem;
}
.page-head .projects__title {
  margin: 0.4rem 0 1rem;
}
