:root {
  --bg: #f4f2ee;
  --paper: #fffdf8;
  --ink: #1b1d20;
  --muted: #6c7179;
  --line: rgba(27, 29, 32, 0.12);
  --accent: #0f8b8d;
  --blue: #1479e8;
  --accent-2: #e95d45;
  --soft: #e8f3ef;
  --shadow: 0 18px 44px rgba(25, 28, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(27, 29, 32, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(27, 29, 32, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar,
.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links,
.actions,
.section-title,
.section-title a,
.contact-links a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
}

.brand .flag-vn {
  position: relative;
  width: 42px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: #da251d;
  box-shadow: 0 0 0 1px rgba(27, 29, 32, 0.08);
}

.brand .flag-vn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  background: #ffdd00;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 69%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  transform: translate(-50%, -50%);
}

.brand em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.8);
}

.page {
  padding: 18px 0 34px;
}

.intro {
  display: grid;
  min-height: clamp(440px, 62vh, 620px);
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

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

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(1.85rem, 4.6vw, 4.15rem);
  font-weight: 500;
  line-height: 1.05;
}

.kicker span {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.text-reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 0.72s ease, transform 0.72s ease, filter 0.72s ease;
}

.text-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: #4d535c;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  font-weight: 400;
  line-height: 1.75;
}

.quick-links {
  display: flex;
  max-width: 620px;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.quick-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #363b43;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 139, 141, 0.34);
  background: var(--paper);
}

.quick-links svg {
  width: 17px;
  height: 17px;
}

.featured-projects {
  display: grid;
  max-width: 720px;
  gap: 10px;
  margin: 0 0 18px;
}

.featured-project {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 12px 30px rgba(25, 28, 34, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.featured-project:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 139, 141, 0.34);
  background: var(--paper);
}

.featured-project img {
  width: 132px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.featured-project .project-logo {
  object-fit: contain;
  padding: 12px;
  background: #ffffff;
}

.featured-project span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.featured-project h3 {
  margin-bottom: 5px;
  font-size: 1.02rem;
  font-weight: 600;
}

.featured-project p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.featured-project small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #4d535c;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.featured-project small svg {
  width: 14px;
  height: 14px;
}

.featured-project:hover small {
  color: var(--accent);
}

.actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 28px rgba(27, 29, 32, 0.05);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--paper);
}

.button.primary {
  border-color: rgba(15, 139, 141, 0.2);
  color: #ffffff;
  background: var(--accent);
}

.button svg,
.section-title svg,
.contact-links svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.profile {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.9);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.profile-mobile {
  display: none;
}

.profile-desktop {
  align-self: center;
}

.profile img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
}

.profile div {
  padding: 18px;
}

.status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 999px;
  color: var(--accent);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.profile h2 {
  margin-bottom: 7px;
  font-size: 1.4rem;
  font-weight: 600;
}

.profile p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.founder-line {
  font-style: italic;
}

.founder-line .esim-red {
  color: #ff3838;
}

.founder-line .vivu-blue {
  color: #149bd7;
}

.contact-row {
  border: 1px solid rgba(255, 253, 248, 0.9);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.contact-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  margin-top: 14px;
  padding: 20px;
}

.contact-row h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.contact-title {
  color: var(--accent);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-links a {
  min-height: 46px;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #343942;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 139, 141, 0.34);
}

.phone-code {
  color: var(--accent-2);
  font-weight: 600;
}

.detail-page {
  padding-top: 34px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
}

.detail-copy,
.detail-logo,
.detail-gallery img {
  border: 1px solid rgba(255, 253, 248, 0.9);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.detail-copy {
  padding: clamp(24px, 5vw, 46px);
}

.detail-kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.detail-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5.8vw, 4.4rem);
}

.detail-copy p {
  max-width: 760px;
  margin-bottom: 24px;
  color: #4d535c;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.detail-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 600;
}

.detail-phone svg {
  width: 18px;
  height: 18px;
}

.detail-logo {
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-logo img {
  width: min(100%, 220px);
}

.detail-side-photo {
  overflow: hidden;
  padding: 0;
}

.detail-side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
  margin-top: 14px;
}

.detail-gallery img {
  width: 100%;
  height: clamp(360px, 58vw, 620px);
  object-fit: cover;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 860px) {
  .intro {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 34px 0 18px;
  }

  .profile-desktop {
    display: none;
  }

  .profile-mobile {
    display: grid;
    width: min(100%, 620px);
    grid-template-columns: 188px 1fr;
    align-items: center;
    margin: 0 0 22px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .profile-mobile img {
    height: 100%;
    aspect-ratio: 1;
  }

  .profile-mobile h2 {
    font-size: 1.58rem;
  }

  .profile-mobile p {
    font-size: 1.06rem;
  }

  .contact-row,
  .contact-links,
  .detail-hero,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-logo {
    min-height: 160px;
  }

  .detail-gallery img {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .topbar,
  .page {
    width: min(100% - 24px, 1080px);
  }

  .topbar {
    min-height: 66px;
  }

  .brand strong {
    display: none;
  }

  .intro {
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .lead {
    font-size: 0.98rem;
  }

  .profile {
    grid-template-columns: 154px 1fr;
  }

  .profile div {
    padding: 14px;
  }

  .status {
    margin-bottom: 9px;
  }

  .featured-project {
    grid-template-columns: 96px 1fr;
  }

  .featured-project img {
    width: 96px;
    height: 68px;
  }

  .featured-project p {
    font-size: 0.82rem;
  }
}

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