:root {
  --bg: #020817;
  --bg-deep: #01040d;
  --surface: rgba(7, 20, 45, 0.66);
  --surface-strong: rgba(15, 36, 78, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #f8fbff;
  --muted: #b8c6dc;
  --line: rgba(96, 165, 250, 0.22);
  --line-strong: rgba(96, 165, 250, 0.44);
  --blue: #2f80ff;
  --blue-strong: #0f6fff;
  --blue-soft: #7db3ff;
  --cyan: #38bdf8;
  --radius: 8px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --blue-shadow: 0 0 34px rgba(47, 128, 255, 0.38);
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0) 0%, var(--bg) 760px, var(--bg-deep) 100%),
    linear-gradient(135deg, rgba(15, 111, 255, 0.16), transparent 40%),
    var(--bg);
  font-family: "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 50;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 14px;
  color: #021329;
  background: #ffffff;
  border-radius: 999px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 56px;
  background: rgba(2, 8, 23, 0.58);
  border-bottom: 1px solid rgba(96, 165, 250, 0.13);
  backdrop-filter: blur(22px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 8, 23, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(125, 179, 255, 0.78);
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at 40% 42%, rgba(56, 189, 248, 0.26), rgba(2, 8, 23, 0.92) 62%);
  box-shadow: 0 0 32px rgba(47, 128, 255, 0.76), inset 0 0 18px rgba(255, 255, 255, 0.1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
}

.brand-label {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(47, 128, 255, 0.2);
}

.brand-word-main {
  color: #ffffff;
}

.brand-word-accent {
  color: #2f9bff;
  text-shadow: 0 0 24px rgba(47, 155, 255, 0.48);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
}

.language-toggle {
  min-height: 44px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  color: #dbeafe;
  background: rgba(47, 128, 255, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-toggle-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--blue-soft);
  filter: drop-shadow(0 0 10px rgba(47, 128, 255, 0.52));
}

.language-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-toggle-code {
  min-width: 2ch;
  letter-spacing: 0;
  line-height: 1;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 179, 255, 0.72);
  box-shadow: var(--blue-shadow);
  outline: none;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #ffffff;
  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 900px;
  padding: 150px 56px 34px;
  overflow: hidden;
  background-image: url("assets/portfolio-hero-bg.webp");
  background-size: cover;
  background-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 5, 15, 0.94) 0%, rgba(1, 8, 24, 0.76) 31%, rgba(1, 8, 24, 0.32) 62%, rgba(1, 5, 15, 0.12) 100%),
    linear-gradient(180deg, rgba(1, 5, 15, 0.08) 0%, rgba(1, 5, 15, 0.18) 55%, rgba(1, 5, 15, 0.96) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1560px, 100%);
  min-height: 700px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(320px, 0.28fr) minmax(240px, 0.26fr);
  grid-template-rows: 1fr auto;
  column-gap: 34px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-kicker,
.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.58);
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 32%, rgba(56, 189, 248, 0.34), rgba(15, 111, 255, 0.12) 54%, rgba(2, 8, 23, 0.12) 100%);
  box-shadow: 0 0 22px rgba(47, 128, 255, 0.52), inset 0 0 18px rgba(47, 128, 255, 0.18);
}

.hero-kicker-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #5bbcff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.62));
}

h1,
h2,
h3,
p,
span,
strong,
li {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin-top: 28px;
  font-size: 4.45rem;
  font-weight: 950;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}

.hero-title-line {
  display: block;
}

h2 {
  font-size: 2.5rem;
  font-weight: 920;
}

h3 {
  font-size: 1.2rem;
  font-weight: 890;
}

.hero-name {
  margin: 16px 0 0;
  color: var(--blue);
  font-size: 1.56rem;
  font-weight: 900;
}

.personal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.personal-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(47, 128, 255, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
}

.hero-lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(235, 244, 255, 0.88);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 42px;
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-flow span {
  width: 100%;
  color: #dbeafe;
}

.hero-flow strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: #9fc4ff;
  background: rgba(7, 20, 45, 0.54);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
}

.button {
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, #0f6fff, #2f80ff);
  box-shadow: 0 0 0 1px rgba(125, 179, 255, 0.4), 0 0 34px rgba(47, 128, 255, 0.68);
}

.button-disabled {
  cursor: default;
}

.button-disabled:hover,
.button-disabled:focus-visible {
  transform: none;
}

.button-secondary {
  background: rgba(7, 20, 45, 0.64);
  border-color: rgba(125, 179, 255, 0.48);
  backdrop-filter: blur(16px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(125, 179, 255, 0.8);
  box-shadow: var(--blue-shadow);
}

.position-card {
  align-self: end;
  margin-bottom: 130px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(11, 30, 66, 0.82), rgba(6, 16, 36, 0.74));
  border: 1px solid rgba(125, 179, 255, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--blue-shadow);
  backdrop-filter: blur(18px);
}

.position-card article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 16px 0;
}

.position-card article + article {
  border-top: 1px solid rgba(125, 179, 255, 0.18);
}

.card-icon,
.metric-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 128, 255, 0.86);
  border-radius: 999px;
  background: rgba(15, 111, 255, 0.16);
  color: var(--blue-soft);
  box-shadow: inset 0 0 22px rgba(47, 128, 255, 0.24), 0 0 20px rgba(47, 128, 255, 0.24);
  font-weight: 950;
}

.card-icon {
  width: 46px;
  height: 46px;
  font-size: 0.76rem;
}

.card-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(125, 179, 255, 0.36));
}

.position-card p {
  margin: 0 0 4px;
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.position-card strong {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.hero-metrics article {
  min-height: 148px;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: linear-gradient(145deg, rgba(9, 28, 63, 0.84), rgba(4, 15, 34, 0.78));
  border: 1px solid rgba(125, 179, 255, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.metric-icon {
  width: 70px;
  height: 70px;
}

.metric-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(125, 179, 255, 0.34));
}

.hero-metrics strong {
  display: block;
  color: #73a8ff;
  font-size: 2.36rem;
  line-height: 1;
  font-weight: 950;
}

.hero-metrics p {
  margin: 10px 0 0;
  color: rgba(235, 244, 255, 0.78);
  font-weight: 700;
}

.section {
  padding: 92px 56px;
}

.projects-section {
  padding-bottom: 58px;
}

.section-heading,
.about-grid,
.project-showcase,
.validation-panel,
.skill-grid,
.timeline,
.contact-panel,
.site-footer {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-top: 12px;
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-section,
.skills-section,
.section-soft-glow {
  background: linear-gradient(180deg, rgba(3, 12, 29, 0.1), rgba(15, 111, 255, 0.04));
  border-block: 1px solid rgba(96, 165, 250, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(230px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.profile-card {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.mindset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-column: 1 / -1;
}

.mindset-grid article,
.project-card,
.skill-grid article,
.timeline article,
.contact-panel,
.personal-card,
.builder-snapshot,
.validation-panel {
  background: linear-gradient(145deg, rgba(8, 26, 58, 0.76), rgba(5, 16, 36, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mindset-grid article,
.personal-card,
.builder-snapshot {
  padding: 24px;
}

.personal-card h3 {
  margin-top: 10px;
}

.personal-card dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.personal-card dl div {
  padding: 12px;
  background: rgba(47, 128, 255, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius);
}

.personal-card dt {
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.personal-card dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 850;
}

.builder-snapshot {
  position: relative;
  overflow: hidden;
}

.builder-snapshot::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(47, 128, 255, 0.26), transparent 68%);
  pointer-events: none;
}

.builder-snapshot h3 {
  margin-top: 10px;
}

.builder-snapshot p {
  position: relative;
  z-index: 1;
}

.snapshot-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.snapshot-list div {
  padding: 12px;
  background: rgba(47, 128, 255, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius);
}

.snapshot-list span {
  display: block;
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.snapshot-list strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.48;
}

.snapshot-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.snapshot-stack span {
  padding: 7px 9px;
  color: #dbeafe;
  background: rgba(15, 111, 255, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.mindset-grid p,
.project-card p,
.skill-grid p,
.timeline p,
.contact-panel p,
.personal-card p,
.builder-snapshot p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  align-items: stretch;
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-featured {
  align-self: stretch;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.project-personapair img {
  object-position: top center;
}

.project-thcount img {
  object-position: top left;
}

.project-engdict img {
  object-position: top center;
}

.project-whizzquiz img {
  object-position: top center;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 32px;
}

.project-content h3 {
  margin-top: 8px;
  font-size: 1.48rem;
}

.project-featured .project-content h3 {
  font-size: 1.92rem;
}

.project-personapair .project-content > p[data-i18n="personaText"] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.project-title-row h3 {
  margin-top: 0;
}

.date-badge {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  color: #bfdbfe;
  background: rgba(15, 111, 255, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.tag-list,
.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.tag-list span,
.mini-metrics strong {
  padding: 8px 10px;
  color: #dbeafe;
  background: rgba(47, 128, 255, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.mini-metrics strong {
  color: #9fc4ff;
  background: rgba(15, 111, 255, 0.18);
}

.project-thcount .mini-metrics {
  margin-bottom: 14px;
}

.project-insight {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(15, 111, 255, 0.12), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.insight-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: calc(var(--radius) - 2px);
}

.insight-row + .insight-row {
  border-top: 1px solid rgba(96, 165, 250, 0.14);
}

.insight-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #7db3ff;
  background:
    radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.28), rgba(15, 111, 255, 0.12) 58%, rgba(2, 8, 23, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(47, 128, 255, 0.22);
}

.insight-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--insight-mask) center / contain no-repeat;
  mask: var(--insight-mask) center / contain no-repeat;
}

.insight-icon-role {
  --insight-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 20.5 8 12 12.5 3.5 8 12 3.5Z'/%3E%3Cpath d='m3.5 12 8.5 4.5 8.5-4.5'/%3E%3Cpath d='m3.5 16 8.5 4.5 8.5-4.5'/%3E%3C/g%3E%3C/svg%3E");
}

.insight-icon-impact {
  --insight-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17 9.5 11.5l4 4L20 9'/%3E%3Cpath d='M15 9h5v5'/%3E%3C/g%3E%3C/svg%3E");
}

.insight-icon-next {
  --insight-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/g%3E%3C/svg%3E");
}

.project-insight strong {
  display: block;
  color: #9fc4ff;
  font-size: 0.74rem;
  font-weight: 950;
}

.project-insight p {
  margin: 3px 0 0;
  color: #dbeafe;
  font-size: 0.86rem;
  line-height: 1.55;
}

.project-link {
  min-height: 46px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(15, 111, 255, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 961px) {
  .project-content {
    min-height: 430px;
  }
}

.project-link-label {
  color: #ffffff;
  font-weight: 950;
}

.project-url {
  color: #9fc4ff;
  font-size: 0.88rem;
  font-weight: 800;
}

.validation-section {
  padding-top: 54px;
}

.validation-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.validation-panel::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(47, 128, 255, 0.24), transparent 70%);
  pointer-events: none;
}

.validation-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.validation-heading p:not(.eyebrow) {
  max-width: 760px;
}

.validation-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.validation-stats article {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(47, 128, 255, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.validation-stats strong {
  color: #7db3ff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 0 22px rgba(47, 128, 255, 0.34);
}

.validation-stats span {
  margin-top: 12px;
  color: rgba(235, 244, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.validation-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.validation-copy {
  display: grid;
  gap: 12px;
}

.validation-copy p,
.validation-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.validation-events {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.validation-events span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: #dbeafe;
  background: rgba(15, 111, 255, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.validation-events strong {
  color: #9fc4ff;
  font-weight: 950;
}

.personapair-events {
  display: grid;
  grid-template-columns: 1fr;
  align-self: stretch;
}

.personapair-events span {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.32;
}

.personapair-events strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.validation-note {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(2, 8, 23, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.thcount-validation-section {
  padding-top: 36px;
}

.thcount-validation-panel::before {
  inset: auto -110px -130px auto;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
}

.personapair-validation-section {
  padding-top: 30px;
}

.thcount-validation-body,
.personapair-validation-body {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
}

.validation-breakdown {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.validation-list {
  padding: 18px;
  background: rgba(2, 8, 23, 0.26);
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius);
}

.validation-list h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
}

.validation-list ul {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.validation-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: var(--muted);
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  line-height: 1.35;
}

.validation-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.validation-list li:last-child {
  padding-bottom: 0;
}

.validation-list strong {
  flex: 0 0 auto;
  color: #9fc4ff;
  font-weight: 950;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: rgba(125, 179, 255, 0.78);
  box-shadow: var(--blue-shadow);
  outline: none;
}

.compact-visual {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 950;
  background:
    linear-gradient(135deg, rgba(15, 111, 255, 0.34), rgba(56, 189, 248, 0.12)),
    rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-grid article {
  min-height: 190px;
  padding: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.timeline article {
  min-height: 210px;
  padding: 22px;
}

.timeline span {
  color: var(--blue);
  font-weight: 950;
}

.timeline h3 {
  margin-top: 26px;
}

.contact-section {
  padding-bottom: 92px;
}

.contact-heading {
  margin-bottom: 24px;
}

.open-to-grid {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.open-to-grid article {
  min-height: 184px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(8, 26, 58, 0.76), rgba(5, 16, 36, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.open-to-grid h3 {
  margin-top: 10px;
}

.open-to-grid p:not(.card-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 42px;
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(15, 111, 255, 0.22), rgba(3, 12, 29, 0.86)),
    rgba(7, 20, 45, 0.78);
}

.contact-card-copy h3 {
  margin-top: 10px;
}

.contact-card-copy p:not(.card-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.contact-email {
  display: inline-flex;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(125, 179, 255, 0.34);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(47, 128, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 34px 56px;
  color: rgba(184, 198, 220, 0.84);
  border-top: 1px solid rgba(96, 165, 250, 0.14);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

@media (max-width: 1220px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.58fr) minmax(300px, 0.42fr);
  }

  .position-card {
    margin-bottom: 80px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .site-header {
    padding-inline: 24px 140px;
    gap: 12px;
    justify-content: flex-start;
  }

  .menu-button {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    display: block;
    order: 3;
  }

  .language-toggle {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    order: 2;
    min-height: 42px;
    min-width: 68px;
    padding-inline: 11px;
    font-size: 0.82rem;
  }

  .language-toggle:hover,
  .language-toggle:focus-visible {
    transform: translateY(-50%);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(2, 8, 23, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
    min-height: 48px;
  }

  .hero {
    min-height: auto;
    padding: 132px 24px 34px;
    background-position: 64% top;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(1, 5, 15, 0.94) 0%, rgba(1, 8, 24, 0.82) 48%, rgba(1, 8, 24, 0.54) 100%),
      linear-gradient(180deg, rgba(1, 5, 15, 0.08) 0%, rgba(1, 5, 15, 0.32) 50%, rgba(1, 5, 15, 0.98) 100%);
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .position-card {
    max-width: 540px;
    margin: 12px 0 0;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .section {
    padding: 82px 24px;
  }

  .about-grid,
  .project-showcase,
  .validation-body,
  .validation-breakdown,
  .open-to-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .validation-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-showcase {
    grid-auto-rows: auto;
  }

  .project-featured,
  .project-thcount,
  .project-whizzquiz,
  .project-engdict {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-card {
    max-width: 420px;
  }

  .mindset-grid,
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    display: flex;
    padding-inline: 16px 112px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
    font-size: 1.02rem;
    margin-right: 0;
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    box-shadow: 0 0 24px rgba(47, 128, 255, 0.72), inset 0 0 16px rgba(255, 255, 255, 0.18);
  }

  .brand-label {
    font-size: clamp(0.68rem, 2.6vw, 0.84rem);
  }

  .language-toggle {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    min-height: 38px;
    min-width: 56px;
    gap: 6px;
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  .language-toggle-icon {
    width: 16px;
    height: 16px;
  }

  .language-toggle:hover,
  .language-toggle:focus-visible {
    transform: translateY(-50%);
  }

  .menu-button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 9px;
  }

  .site-nav {
    inset: calc(var(--header-height) + 10px) 16px auto;
  }

  .hero {
    padding: 102px 16px 28px;
    background-size: auto 690px;
    background-position: 61% 78px;
  }

  body {
    overflow-x: hidden;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(1, 5, 15, 0.98) 0%, rgba(1, 8, 24, 0.88) 52%, rgba(1, 8, 24, 0.64) 100%),
      linear-gradient(180deg, rgba(1, 5, 15, 0.34) 0%, rgba(1, 5, 15, 0.2) 42%, rgba(1, 5, 15, 0.98) 100%),
      radial-gradient(circle at 78% 30%, rgba(47, 128, 255, 0.22), transparent 38%);
  }

  .hero-inner {
    gap: 18px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-kicker {
    gap: 10px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .hero-kicker-icon {
    width: 24px;
    height: 24px;
  }

  .hero-kicker-icon svg {
    width: 14px;
    height: 14px;
  }

  h1 {
    margin-top: 32px;
    font-size: clamp(2.5rem, 12vw, 3rem);
    line-height: 1.04;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-name {
    margin-top: 12px;
    font-size: 1.08rem;
  }

  .hero-lead,
  .section-heading p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-lead {
    margin-top: 26px;
    line-height: 1.68;
  }

  .hero-flow {
    width: fit-content;
    margin-top: 22px;
    padding: 9px 12px;
    background: rgba(7, 20, 45, 0.52);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .hero-flow span {
    width: auto;
    font-size: 0.82rem;
  }

  .hero-flow strong {
    display: none;
  }

  .personal-strip {
    gap: 7px;
    margin-top: 18px;
  }

  .personal-strip span,
  .date-badge {
    font-size: 0.74rem;
  }

  .personal-strip span {
    min-height: 30px;
    padding: 5px 9px;
  }

  .button {
    width: 100%;
    min-height: 58px;
  }

  .position-card {
    max-width: none;
    margin-top: 10px;
    padding: 16px;
    border-color: rgba(125, 179, 255, 0.36);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38), 0 0 24px rgba(47, 128, 255, 0.2);
  }

  .position-card article {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px 0;
    align-items: center;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    font-size: 0.7rem;
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }

  .position-card p {
    font-size: 0.7rem;
  }

  .position-card strong {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
  }

  .hero-metrics article {
    min-height: 126px;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
    padding: 14px;
  }

  .metric-icon {
    width: 48px;
    height: 48px;
  }

  .metric-icon svg {
    width: 24px;
    height: 24px;
  }

  .hero-metrics strong {
    font-size: 1.48rem;
    line-height: 1.08;
  }

  .hero-metrics p {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .section {
    padding: 62px 18px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    margin-top: 10px;
  }

  .about-grid {
    gap: 14px;
  }

  .profile-card {
    width: 100%;
    max-width: none;
    min-height: 330px;
  }

  .mindset-grid,
  .skill-grid,
  .timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-title-row {
    display: grid;
    justify-items: start;
  }

  .project-content,
  .mindset-grid article,
  .personal-card,
  .validation-panel,
  .skill-grid article,
  .timeline article {
    padding: 18px;
  }

  .validation-section {
    padding-top: 40px;
  }

  .projects-section {
    padding-bottom: 38px;
  }

  .thcount-validation-section {
    padding-top: 26px;
  }

  .personapair-validation-section {
    padding-top: 22px;
  }

  .validation-heading {
    margin-bottom: 18px;
  }

  .validation-stats {
    gap: 10px;
  }

  .validation-stats article {
    min-height: 112px;
    padding: 14px;
  }

  .validation-stats strong {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .validation-stats span {
    font-size: 0.82rem;
  }

  .validation-body {
    gap: 16px;
    margin-top: 18px;
  }

  .validation-copy p,
  .validation-note {
    font-size: 0.92rem;
    line-height: 1.64;
  }

  .validation-events {
    gap: 8px;
  }

  .personapair-events {
    grid-template-columns: 1fr;
  }

  .validation-events span {
    padding: 8px 9px;
    font-size: 0.76rem;
  }

  .validation-breakdown {
    gap: 10px;
    margin-top: 18px;
  }

  .validation-list {
    padding: 14px;
  }

  .validation-list h3 {
    font-size: 0.92rem;
  }

  .validation-list li {
    gap: 10px;
    padding: 8px 0;
    font-size: 0.84rem;
  }

  .project-content {
    padding-bottom: 22px;
  }

  .skill-grid article,
  .timeline article {
    min-height: auto;
  }

  .project-card img {
    aspect-ratio: 16 / 9.5;
  }

  .project-card .tag-list,
  .project-card .mini-metrics {
    margin-bottom: 14px;
  }

  .open-to-grid article {
    min-height: auto;
    padding: 18px;
  }

  .contact-panel {
    padding: 28px 20px;
    gap: 20px;
  }

  .contact-email {
    width: 100%;
    font-size: 0.98rem;
  }

  .contact-actions {
    gap: 10px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .project-insight {
    gap: 6px;
    margin-bottom: 18px;
    padding: 10px;
  }

  .insight-row {
    grid-template-columns: 28px 1fr;
    gap: 9px;
    padding: 7px 6px;
  }

  .insight-icon {
    width: 26px;
    height: 26px;
    font-size: 0.74rem;
  }

  .project-insight p {
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .project-link {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    margin-top: 4px;
    padding-inline: 14px;
    text-align: center;
  }

  .project-url {
    overflow-wrap: anywhere;
  }

  .contact-section {
    padding-bottom: 64px;
  }

  .contact-panel {
    padding: 24px;
  }

  .site-footer {
    padding-block: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
