*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #05080f;
  --bg2: #0a0e1a;
  --bg3: #0f1524;
  --white: #f0f4ff;
  --accent: #4f8bff;
  --green: #00e5a0;
  --pink: #ff4fa3;
  --muted: #64748b;
  --border: rgba(79, 139, 255, 0.15);
  --card: rgba(255, 255, 255, 0.035);

  /* Fluid scale — one source of truth for gutters, rhythm and nav offset */
  --gutter: clamp(1.15rem, 5vw, 4.25rem);
  --pad-l: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  --pad-r: calc(var(--gutter) + env(safe-area-inset-right, 0px));
  --pad-block: clamp(3.25rem, 8vw, 6rem);
  --nav-h: 4rem;
  --si-top: env(safe-area-inset-top, 0px);
  --si-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Type ramps with the viewport instead of jumping at fixed widths */
  font-size: clamp(16px, 15.1px + 0.24vw, 18.5px);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* ── Ambient background fx — film grain + spotlight ── */
/* Matte film grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Soft spotlight that follows the cursor */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 30%),
      rgba(79, 139, 255, 0.1),
      rgba(0, 229, 160, 0.035) 45%,
      transparent 72%);
}

/* ── Cursor — mouse and trackpad only ──────── */
.cursor {
  display: none;
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
}

.cursor-ring {
  display: none;
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(79, 139, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.15s ease;
}

.cursor-ring.hovered {
  width: 52px;
  height: 52px;
  border-color: var(--green);
}

/* Touch and stylus-led screens keep the native pointer and cursor */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  .cursor,
  .cursor-ring {
    display: block;
  }
}

/* ── Nav ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad-r) 0.9rem var(--pad-l);
  padding-top: calc(0.9rem + var(--si-top));
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-right {
  /* Keeps the toggle clickable above the off-canvas panel */
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.25s;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  width: 100%;
  background: var(--green);
}

.hire-me-sticky {
  position: fixed;
  bottom: calc(2rem + var(--si-bottom));
  left: calc(2rem + env(safe-area-inset-left, 0px));
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 140;
  box-shadow: 0 4px 24px rgba(79, 139, 255, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.hire-me-sticky:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 32px rgba(79, 139, 255, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Click-away layer for the mobile menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(3, 6, 12, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ── Skip link ─────────────────────────────── */
.skip-link {
  position: fixed;
  top: calc(10px + var(--si-top));
  left: 10px;
  z-index: 600;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-140%);
  transition: transform 0.2s;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 1.8rem + var(--si-top)) calc(var(--pad-block) * 0.55);
  padding-inline: var(--pad-l) var(--pad-r);
  position: relative;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-glow {
  position: absolute;
  top: -15%;
  right: -10%;
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.12) 0%, transparent 65%);
}

.hero-glow2 {
  position: absolute;
  bottom: -5%;
  left: -8%;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.08) 0%, transparent 65%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-name {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

.hero-name .line2 {
  color: var(--accent);
}

/* Typewriter caret for the hero heading */
.hero-name .type-line {
  display: inline-block;
  min-height: 1em;
}

.hero-name .caret::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.1em;
  background: var(--green);
  vertical-align: -0.08em;
  animation: caretBlink 0.85s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 2.4rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.92rem 2.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--white);
  text-decoration: none;
  padding: 0.92rem 2.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 3rem;
  flex-wrap: wrap;
}

.metric {
  min-width: 0;
}

.metric-num {
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.metric-num span {
  color: var(--accent);
}

/* Suffix stays small so "10 thousand+" never outgrows its column */
.metric-num span:not(.count) {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 0.15em;
}

.metric-label {
  font-size: clamp(0.62rem, 1.5vw, 0.8rem);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  overflow-wrap: break-word;
}

.metric-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

@keyframes card-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 18px 3px rgba(79, 139, 255, 0.25), 0 0 0 1px rgba(79, 139, 255, 0.2);
  }

  33% {
    box-shadow: 0 0 22px 5px rgba(0, 229, 160, 0.22), 0 0 0 1px rgba(0, 229, 160, 0.2);
  }

  66% {
    box-shadow: 0 0 22px 5px rgba(255, 79, 163, 0.2), 0 0 0 1px rgba(255, 79, 163, 0.18);
  }
}

.hero-right {
  flex: 0 1 clamp(260px, 32vw, 400px);
  min-width: 0;
  position: relative;
}

.hero-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.18) 0%, rgba(0, 229, 160, 0.1) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 0;
}

.hero-right:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.profile-card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  margin-inline: auto;
  background: var(--card);
  border: 1px solid rgba(79, 139, 255, 0.35);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: card-glow-pulse 4s ease-in-out infinite;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 139, 255, 0.55);
  box-shadow: 0 18px 40px rgba(3, 9, 20, 0.5), 0 0 30px 6px rgba(79, 139, 255, 0.35);
  animation-play-state: paused;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--pink));
  z-index: 2;
}

.profile-head {
  position: relative;
  aspect-ratio: 400 / 440;
  overflow: hidden;
  border-radius: 24px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.profile-card:hover .profile-avatar img {
  transform: scale(1.05);
}

.profile-head-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(5, 8, 15, 0.97) 0%, rgba(5, 8, 15, 0.7) 55%, transparent 100%);
  text-align: center;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.profile-title {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ── Marquee ─────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  width: 100%;
  padding: clamp(0.7rem, 1.8vw, 0.95rem) 0;
  border-top: 1px solid rgba(79, 139, 255, 0.15);
  border-bottom: 1px solid rgba(0, 229, 160, 0.15);
  background: linear-gradient(90deg, rgba(79, 139, 255, 0.04), rgba(0, 229, 160, 0.03), rgba(79, 139, 255, 0.04));
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-item {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  font-weight: 600;
  color: var(--accent);
  padding: 0 clamp(0.8rem, 1.8vw, 1.4rem);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.marquee-item::after {
  content: '·';
  color: var(--green);
  margin-left: clamp(0.8rem, 1.8vw, 1.4rem);
  font-weight: 700;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Sections shared ──────────────────────── */
section {
  padding-block: var(--pad-block);
  padding-inline: var(--pad-l) var(--pad-r);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 2rem 0 3rem;
  opacity: 0.2;
}

/* ── About ──────────────────────────────────── */
.about-section {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4.5vw, 5rem);
  align-items: stretch;
  margin-top: 3rem;
}

.about-text p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.97rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.about-text p strong {
  color: var(--white);
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

@media (max-width: 767px) {
  .about-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .pill {
    text-align: center;
  }

  .about-pills .pill:last-child {
    grid-column: span 2;
  }
}

.pill {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-right > div:last-child {
  flex: 1;
}

.info-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-row > div:last-child {
  min-width: 0;
}

.info-row i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.info-row-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.info-row-val {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
  overflow-wrap: break-word;
}

.experience-bar {
  margin-top: 0.5rem;
}

.exp-item {
  display: block;
  margin-bottom: 1.2rem;
}

.exp-bar {
  height: 4px;
  background: rgba(79, 139, 255, 0.12);
  border-radius: 4px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.exp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

/* ── Services ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin-top: 3rem;
}

@media (min-width: 1180px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(79, 139, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card ul {
  overflow-wrap: break-word;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.75;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.stag {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  background: rgba(79, 139, 255, 0.08);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── Case Studies / Work ────────────────────── */
.work-section {
  background: var(--bg2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin-top: 3rem;
}

@media (min-width: 1280px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
  }
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.work-card-header {
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.1rem, 2vw, 1.6rem) 1rem;
  display: flex;
  align-items: flex-start;
  gap: clamp(0.7rem, 1.4vw, 1rem);
}

.work-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.work-icon.laos-logo {
  background: #ffffff;
  padding: 6px;
}

.work-icon.laos-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.work-icon.laskill-logo {
  background: #ffffff;
  padding: 6px;
}

.work-icon.laskill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.work-icon.chaindustry-logo,
.work-icon.dinari-logo,
.work-icon.stafi-logo {
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-icon.chaindustry-logo img,
.work-icon.dinari-logo img,
.work-icon.stafi-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.work-icon.dexari-logo {
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-icon.dexari-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.work-icon.syntetika-logo {
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-icon.syntetika-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.work-meta {
  flex: 1;
  min-width: 0;
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.work-status.live {
  background: rgba(0, 229, 160, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.25);
}

.work-status.past {
  background: rgba(100, 116, 139, 0.12);
  color: var(--muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.work-name {
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: break-word;
}

.work-role {
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-body {
  padding: 0 clamp(1.1rem, 2vw, 1.6rem) 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.work-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1vw, 0.6rem);
}

@media (max-width: 560px) {
  .work-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .work-results .result-box:nth-child(3):last-child {
    grid-column: span 2;
  }
}

.result-box {
  background: rgba(79, 139, 255, 0.06);
  border: 1px solid rgba(79, 139, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.4rem;
  text-align: center;
  min-width: 0;
}

.result-num {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 800;
  color: var(--accent);
}

.result-label {
  font-size: clamp(0.6rem, 1.1vw, 0.7rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
}

.work-footer {
  padding: 1rem clamp(1.1rem, 2vw, 1.6rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
}

.work-footer span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Content gallery ─────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
  }
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.25s, transform 0.25s;
}

.content-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.content-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.content-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.45;
  word-break: break-word;
}

.content-tag {
  background: rgba(79, 139, 255, 0.1);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
}

.content-card {
  cursor: pointer;
}

/* ── LAOS full-set strip ─────────────────────── */
.laos-strip {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.laos-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(0.85rem, 1.8vw, 1.1rem) clamp(0.85rem, 1.8vw, 1.4rem);
  cursor: pointer;
  text-align: left;
  color: var(--white);
  font-family: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.laos-box:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.laos-box-previews {
  --thumb: clamp(38px, 11vw, 56px);
  display: flex;
  flex-shrink: 0;
}

.laos-box-previews img {
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--bg);
  margin-left: calc(var(--thumb) / -4);
}

.laos-box-previews img:first-child {
  margin-left: 0;
}

.laos-box-text {
  flex: 1;
  min-width: 0;
}

.laos-box-text h3 {
  font-size: clamp(0.92rem, 1.7vw, 1.05rem);
  font-weight: 700;
  overflow-wrap: break-word;
}

.laos-box-text p {
  font-size: clamp(0.7rem, 1.4vw, 0.75rem);
  color: var(--muted);
  margin-top: 0.2rem;
  overflow-wrap: break-word;
}

.laos-box-arrow {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ── LAOS gallery modal ──────────────────────── */
.laos-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-block: 1.5rem 3rem;
  padding-inline: var(--pad-l) var(--pad-r);
}

.laos-modal.open {
  display: block;
}

.laos-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 1.4rem;
  padding: 0.5rem 0 calc(0.5rem + var(--si-top));
  padding-top: calc(0.5rem + var(--si-top));
  position: sticky;
  top: 0;
  background: rgba(5, 8, 15, 0.94);
  z-index: 2;
}

.laos-modal-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.laos-modal-head .lm-close {
  position: relative;
  transform: none;
  flex-shrink: 0;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

@media (max-width: 480px) {
  .laos-modal-head {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .laos-modal-head h3 {
    font-size: 1rem;
    padding-top: 0.4rem;
    padding-right: 0;
  }

  .lm-close {
    width: 40px;
    height: 40px;
  }
}

.laos-modal .laos-grid {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(110px, 11vw, 140px)), 1fr));
}

.laos-count {
  background: var(--green);
  color: #05080f;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.laos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
  gap: clamp(0.45rem, 1.4vw, 0.7rem);
  margin-top: 1.4rem;
}

.laos-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.laos-thumb:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

/* ── Lightbox ────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(88vw, 760px, calc(100vw - 2rem));
  max-height: 82vh;
  max-height: 82svh;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  margin: auto;
}

.lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lb-btn:hover {
  background: rgba(79, 139, 255, 0.2);
  border-color: var(--accent);
}

.lb-close {
  top: calc(1.2rem + var(--si-top));
  right: calc(1.2rem + var(--si-right));
}

.lb-prev {
  left: calc(1.2rem + var(--si-left));
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: calc(1.2rem + var(--si-right));
  top: 50%;
  transform: translateY(-50%);
}

.lb-caption {
  position: absolute;
  bottom: calc(1.2rem + var(--si-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  max-width: min(80vw, calc(100vw - 6rem));
  text-align: center;
}

/* ── Impact numbers ──────────────────────────── */
.impact-section {
  background: var(--bg3);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.2rem);
  margin-top: 3rem;
}

@media (min-width: 561px) {
  .impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .impact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .impact-card {
    padding: 1.2rem 0.8rem;
  }

  .impact-num {
    font-size: 1.8rem;
  }

  .impact-label {
    font-size: 0.72rem;
  }
}

.impact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.2rem, 2.4vw, 1.8rem) clamp(0.8rem, 1.6vw, 1.4rem);
  text-align: center;
  min-width: 0;
  transition: border-color 0.2s;
}

.impact-card:hover {
  border-color: var(--green);
}

.impact-num {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.impact-num.blue {
  color: var(--accent);
}

.impact-num.green {
  color: var(--green);
}

.impact-num.pink {
  color: var(--pink);
}

.impact-label {
  font-size: clamp(0.72rem, 1.4vw, 0.78rem);
  color: var(--muted);
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
}

/* ── Tools ───────────────────────────────────── */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 0.9rem;
  text-align: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  flex: 0 0 calc(50% - 0.7rem);
  box-sizing: border-box;
}

.tool-card:hover {
  border-color: var(--accent);
  background: rgba(79, 139, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tool-card i {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  transition: transform 0.25s;
}

.tool-card:hover i {
  transform: scale(1.1);
}

.tool-card span {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 561px) {
  .tool-card {
    flex: 0 0 calc(33.333% - 0.95rem);
  }
}

@media (min-width: 992px) {
  .tools-grid {
    gap: 1.8rem;
    max-width: 1000px;
  }

  .tool-card {
    flex: 0 0 calc(25% - 1.35rem);
    padding: 1.8rem 1rem;
  }

  .tool-card i {
    font-size: 2rem;
    margin-bottom: 0.7rem;
  }

  .tool-card span {
    font-size: 0.92rem;
  }
}

/* ── Testimonials ────────────────────────────── */
.testimonials-section {
  background: var(--bg2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
  margin-top: 3rem;
}

.tcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.35rem, 2.4vw, 1.8rem);
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tcard-stars {
  color: #fbbf24;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
  letter-spacing: 2px;
}

.tcard-quote {
  font-size: 2.8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-family: Arial, Helvetica, sans-serif;
}

.tcard-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
  margin: 0.3rem 0 1.4rem;
  flex: 1;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  min-width: 0;
}

.tcard-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

.tcard-avatar.a {
  background: linear-gradient(135deg, var(--accent), #7b5ea7);
}

.tcard-avatar.b {
  background: linear-gradient(135deg, var(--green), var(--accent));
}

.tcard-avatar.c {
  background: linear-gradient(135deg, var(--pink), #7b5ea7);
}

.tcard-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.tcard-role {
  font-size: 0.73rem;
  color: var(--muted);
  overflow-wrap: break-word;
}

/* ── Contact ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
  align-items: stretch;
  margin-top: 3rem;
}

.contact-intro {
  display: flex;
  flex-direction: column;
}

.contact-intro p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}

.channel-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.channel-link i {
  color: var(--accent);
  width: 18px;
  text-align: center;
}

.channel-link span {
  font-size: 0.88rem;
  font-weight: 600;
}

/* On desktop, lay the channels out as a wrapping horizontal row; on mobile
   they keep stacking vertically (column) above. */
@media (min-width: 768px) {
  .contact-channels {
    flex-direction: row;
    align-content: flex-start;
  }

  .channel-link {
    flex: 0 0 auto;
  }
}

/* ── Footer ──────────────────────────────── */
footer {
  padding: 2.2rem var(--pad-r) calc(2.2rem + var(--si-bottom)) var(--pad-l);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: var(--accent);
}

/* ── Scroll shortcuts ──────────────────────── */
.scroll-btn {
  position: fixed;
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  z-index: 140;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.scroll-btn:hover {
  box-shadow: 0 0 18px 4px rgba(79, 139, 255, 0.35);
  color: var(--white);
}

#scrollToTop {
  bottom: calc(5rem + var(--si-bottom));
}

#scrollToFooter {
  bottom: calc(1.5rem + var(--si-bottom));
}

/* Fixed helpers must never sit over an open gallery or lightbox */
body.is-locked .hire-me-sticky,
body.is-locked .scroll-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

body.is-locked {
  overflow: hidden;
}

/* ── Scroll reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
    transform: none;
  }

  .profile-card {
    animation: none;
  }

  .hero-name .caret::after {
    animation: none;
  }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-right {
    flex: 0 0 auto;
    width: 100%;
  }

  .hero-desc {
    margin: 0 auto 2.4rem;
  }

  .hero-actions,
  .hero-metrics {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Off-canvas menu — kept in the flow so it can slide, hidden from
     pointer and keyboard until opened */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(84vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: calc(var(--nav-h) + 1.4rem + var(--si-top)) 1.6rem calc(1.6rem + var(--si-bottom));
    background: var(--bg2);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateX(101%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  }

  .nav-links.open {
    visibility: visible;
    transform: translateX(0);
  }

  .nav-links.open a {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
    cursor: pointer;
  }
}

@media (max-width: 560px) {
  .laos-box-arrow {
    display: none;
  }
}

/* Small-screen layout safeguards */
.hero-left,
.about-grid > *,
.contact-grid > *,
.work-card,
.channel-link span {
  min-width: 0;
}

.channel-link span {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--nav-h) + 2.2rem + var(--si-top)) 3.5rem;
  }

  .section-sub {
    font-size: 1rem;
  }

  .services-grid,
  .work-grid,
  .content-grid,
  .testimonials-grid,
  .about-grid,
  .contact-grid {
    gap: 1.75rem;
    margin-top: 2rem;
  }

  .laos-modal {
    padding-block: calc(1.25rem + var(--si-top)) 2rem;
  }

  .hire-me-sticky {
    left: calc(1rem + var(--si-left));
    bottom: calc(1rem + var(--si-bottom));
    padding: 0.7rem 1.1rem;
  }
}

@media (max-width: 600px) {
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2.25rem;
    text-align: center;
    justify-items: center;
  }

  .metric-divider {
    display: none;
  }

  .metric-label {
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .lb-btn {
    width: 40px;
    height: 40px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: calc(1rem + var(--si-bottom));
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 48px);
  }

  .lb-next {
    right: calc(50% - 48px);
  }

  .lb-caption {
    bottom: calc(4.5rem + var(--si-bottom));
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(2.7rem, 13vw, 3.5rem);
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .laos-box {
    align-items: flex-start;
  }

  .laos-box-text p {
    line-height: 1.45;
  }

  .lightbox img {
    max-height: 72svh;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  /* Keep the footer clear of the sticky pill and scroll buttons */
  footer {
    padding-bottom: calc(5rem + var(--si-bottom));
  }
}

/* Short landscape phones — trade height for readability */
@media (orientation: landscape) and (max-height: 540px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--nav-h) + 1.6rem + var(--si-top)) 2.5rem;
  }

  .hero-name {
    font-size: clamp(2rem, 9vh, 3.2rem);
  }

  .hero-desc {
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-metrics {
    margin-top: 1.5rem;
  }

  section {
    padding-block: clamp(2.5rem, 9vh, 4rem);
  }

  .divider {
    margin: 1.25rem 0 2rem;
  }

  .hire-me-sticky {
    display: none;
  }
}
