/* Mekavix site CSS bundle.
   Generated by scripts/build-css.mjs.
   Do not edit site.css directly; edit the source CSS files and rebuild.
*/
/* ===== styles.css ===== */
:root {
  --navy: #0d1b3d;
  --navy-deep: #07152f;
  --navy-black: #041020;
  --emerald: #00b67a;
  --emerald-soft: #4ce1b2;
  --ocean: #0077ff;
  --sky: #64b8ff;
  --orange: #ff8a00;
  --ink: #10203f;
  --muted: #64738a;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --line: rgba(13, 27, 61, .11);
  --shell: min(1180px, calc(100vw - 48px));
  --radius-lg: 34px;
  --radius-md: 24px;
  --shadow: 0 28px 90px rgba(7, 21, 47, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  transition: top .2s ease;
}
.skip-link:focus { top: 18px; }

.shell { width: var(--shell); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  pointer-events: none;
}
.nav-shell {
  width: var(--shell);
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 36px rgba(4,16,32,.13);
  backdrop-filter: saturate(165%) blur(20px);
  -webkit-backdrop-filter: saturate(165%) blur(20px);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
  pointer-events: auto;
}
.site-header.scrolled .nav-shell {
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 50px rgba(4,16,32,.17);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 216px;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  color: rgba(13,27,61,.7);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--navy); }
.nav-contact {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,119,255,.09), rgba(0,182,122,.12));
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--emerald-soft);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow.dark { color: #008d65; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 {
  max-width: 1080px;
  margin-bottom: 34px;
  font-size: clamp(4rem, 7.8vw, 7.8rem);
  line-height: .91;
  font-weight: 650;
}
h1 span {
  background: linear-gradient(92deg, #75c5ff 0%, #39dfae 76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  margin-bottom: 28px;
  font-size: clamp(2.7rem, 5.1vw, 5rem);
  line-height: .99;
  font-weight: 640;
}
h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 650;
}
p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  color: #f7fbff;
  background:
    radial-gradient(circle at 83% 18%, rgba(0,119,255,.22), transparent 31%),
    radial-gradient(circle at 72% 74%, rgba(0,182,122,.16), transparent 31%),
    linear-gradient(145deg, var(--navy-black) 0%, var(--navy) 58%, #09294a 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 168px 0 145px;
}
.hero-lead {
  max-width: 760px;
  margin-bottom: 40px;
  color: #bac8da;
  font-size: clamp(1.14rem, 1.75vw, 1.43rem);
  line-height: 1.65;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #f6fbff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.hero-link span { color: var(--emerald-soft); }
.hero-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
}
.hero-foot {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(222,233,243,.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(12px);
}
.glow-blue {
  width: 46vw;
  height: 46vw;
  right: -15vw;
  top: 7vh;
  background: radial-gradient(circle at 36% 36%, rgba(0,119,255,.48), rgba(0,119,255,.04) 63%, transparent 71%);
}
.glow-green {
  width: 32vw;
  height: 32vw;
  right: 19vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(0,182,122,.3), transparent 67%);
}
.grid {
  position: absolute;
  inset: 0;
  opacity: .19;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 78%, transparent 100%);
}
.river-line {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 220px;
  border: 1px solid transparent;
  border-top-color: rgba(87,190,255,.26);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(0,119,255,.22));
}
.river-one { bottom: 10%; transform: rotate(-4deg); }
.river-two {
  bottom: 4%;
  transform: rotate(3deg);
  border-top-color: rgba(52,224,173,.2);
  filter: drop-shadow(0 0 12px rgba(0,182,122,.18));
}
.hero-mark {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-51%);
  color: rgba(255,255,255,.025);
  font-size: min(58vw, 840px);
  line-height: .7;
  font-weight: 900;
  letter-spacing: -.12em;
  user-select: none;
}

.about {
  position: relative;
  padding: 155px 0;
  background: var(--surface);
}
.about-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 92px;
  align-items: end;
}
.about-layout h2 { max-width: 780px; }
.about-copy { padding-bottom: 6px; }
.about-copy p {
  max-width: 590px;
  font-size: clamp(1.12rem, 1.65vw, 1.34rem);
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--navy); }
.focus-grid {
  margin-top: 92px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.focus-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(13,27,61,.08);
  border-radius: var(--radius-lg);
  background: #f7f9fb;
  transition: transform .3s ease, box-shadow .3s ease;
}
.focus-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -110px;
  top: -125px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .14;
}
.focus-aqua::before { background: var(--emerald); }
.focus-tech::before { background: var(--ocean); }
.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-number {
  position: relative;
  z-index: 1;
  color: #8794a7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.card-label {
  margin-bottom: 10px;
  color: #008d65;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.focus-tech .card-label { color: #006fe8; }
.focus-card p:last-child { max-width: 500px; margin-bottom: 0; }

.approach {
  position: relative;
  overflow: hidden;
  padding: 160px 0;
  color: #f5f9fd;
  background:
    radial-gradient(circle at 90% 12%, rgba(0,119,255,.17), transparent 27%),
    radial-gradient(circle at 13% 95%, rgba(0,182,122,.12), transparent 27%),
    var(--navy-deep);
}
.approach-visual {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: linear-gradient(115deg, transparent 48%, rgba(255,255,255,.035) 49%, rgba(255,255,255,.035) 50%, transparent 51%);
  background-size: 140px 140px;
  pointer-events: none;
}
.approach-content { position: relative; z-index: 1; }
.approach-heading { max-width: 940px; }
.approach-heading h2 span {
  background: linear-gradient(90deg, #69bcff, #46dfb2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.approach-flow {
  list-style: none;
  margin: 86px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.15);
}
.approach-flow li {
  position: relative;
  min-height: 190px;
  padding: 28px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.approach-flow li:not(:first-child) { padding-left: 24px; }
.approach-flow li:last-child { border-right: 0; }
.approach-flow span {
  color: var(--emerald-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.approach-flow strong {
  max-width: 210px;
  color: #f6f9fd;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 650;
}

.now {
  padding: 145px 0;
  background: var(--bg);
}
.now-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 38px;
  display: grid;
  grid-template-columns: .58fr 1.2fr .55fr;
  gap: 60px;
  align-items: end;
  border: 1px solid rgba(13,27,61,.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 95% 0%, rgba(0,119,255,.08), transparent 29%),
    radial-gradient(circle at 6% 100%, rgba(0,182,122,.08), transparent 28%),
    #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}
.now-status {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6a788c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 6px rgba(0,182,122,.1);
}
.now-copy h2 { max-width: 650px; }
.now-copy > p:last-child { max-width: 680px; margin-bottom: 0; }
.now-copy strong { color: var(--navy); }
.now-meta {
  align-self: end;
  padding: 22px 0 2px 22px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #778599;
  font-size: 13px;
}
.now-meta strong { color: var(--navy); font-size: 18px; }

.contact {
  padding: 150px 0 135px;
  color: #f5f9fd;
  background:
    radial-gradient(circle at 13% 100%, rgba(0,182,122,.16), transparent 29%),
    radial-gradient(circle at 91% 8%, rgba(0,119,255,.17), transparent 25%),
    linear-gradient(145deg, var(--navy-black), var(--navy));
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
  align-items: end;
}
.contact-layout h2 { max-width: 760px; margin-bottom: 0; }
.contact-copy p { max-width: 550px; color: #afbed0; }
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,.42);
  color: #f7fbff;
  font-size: clamp(1.45rem, 2.6vw, 2.4rem);
  font-weight: 620;
  letter-spacing: -.035em;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.email-link span { color: var(--emerald-soft); }
.email-link:hover { border-color: var(--emerald-soft); }

.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--navy-black);
  color: rgba(217,228,240,.48);
}
.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand strong {
  color: #f2f7fb;
  font-size: 12px;
  letter-spacing: .16em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .72s cubic-bezier(.2,.65,.3,1), transform .72s cubic-bezier(.2,.65,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(0,119,255,.35);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 1180px); }
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 50px; }
  .about-copy { padding-bottom: 0; }
  .approach-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-flow li:nth-child(2) { border-right: 0; }
  .approach-flow li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .approach-flow li:nth-child(3) { padding-left: 0; }
  .now-card { grid-template-columns: 1fr; gap: 42px; min-height: 0; }
  .now-status { align-self: auto; }
  .now-meta { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --shell: calc(100vw - 28px); --radius-lg: 26px; }
  .site-header { padding-top: 10px; }
  .nav-shell { min-height: 58px; padding-left: 14px; border-radius: 17px; }
  .brand img { width: 174px; }
  .nav-links a:not(.nav-contact) { display: none; }
  .nav-contact { padding: 8px 12px; }
  h1 { font-size: clamp(3.35rem, 15vw, 5.2rem); }
  h2 { font-size: clamp(2.55rem, 11vw, 3.9rem); }
  p { font-size: 17px; }
  .hero-content { padding: 145px 0 120px; }
  .hero-lead { max-width: 92%; }
  .hero-foot { bottom: 20px; font-size: 9px; }
  .hero-mark { right: -10vw; font-size: 90vw; }
  .about, .approach, .now, .contact { padding-top: 108px; padding-bottom: 108px; }
  .focus-grid { grid-template-columns: 1fr; margin-top: 62px; }
  .focus-card { min-height: 315px; padding: 27px; }
  .approach-flow { margin-top: 60px; grid-template-columns: 1fr; }
  .approach-flow li,
  .approach-flow li:not(:first-child),
  .approach-flow li:nth-child(3) {
    min-height: 122px;
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .approach-flow li:first-child { border-top: 0; }
  .approach-flow strong { max-width: none; }
  .now-card { padding: 27px; }
  .contact-layout { gap: 44px; }
  .email-link { word-break: break-word; }
  .footer-layout,
  .footer-brand { align-items: flex-start; flex-direction: column; }
  .footer-layout { gap: 18px; }
  .footer-brand { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== refinement.css ===== */
/* Mekavix brand refinement: five chapters, one visual language, restrained motion. */

html { background: #050f20; }
body { overflow-x: hidden; }

::selection {
  background: rgba(0, 119, 255, .2);
  color: inherit;
}

h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Navigation */
.site-header {
  padding: 0;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(13, 27, 61, .07);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.nav-shell,
.site-header.scrolled .nav-shell {
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img { width: 176px; }
.nav-links { gap: 26px; }
.nav-links a {
  font-size: 12px;
  font-weight: 560;
  letter-spacing: -.01em;
  color: rgba(13, 27, 61, .72);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--navy); }
.nav-contact { padding: 0; background: transparent; }

/* Hero */
.hero {
  min-height: 100svh;
  background:
    radial-gradient(circle at 72% 24%, rgba(0, 119, 255, .14), transparent 34%),
    radial-gradient(circle at 46% 86%, rgba(0, 182, 122, .09), transparent 31%),
    linear-gradient(180deg, #051328 0%, #071a36 62%, #08223f 100%);
}

.hero-content {
  max-width: 1120px;
  padding: 152px 0 132px;
  text-align: left;
}

.hero .eyebrow {
  margin-bottom: 28px;
  color: rgba(226, 239, 250, .66);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
}

.hero h1 {
  max-width: 1080px;
  margin: 0 0 34px;
  font-size: clamp(4rem, 7.1vw, 7rem);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -.055em;
}

.hero h1 span {
  background: linear-gradient(90deg, #7cc6ff 0%, #51dfb7 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 780px;
  margin: 0 0 30px;
  color: rgba(222, 233, 244, .72);
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.58;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #79c4ff;
  font-size: 16px;
  font-weight: 560;
  text-decoration: none;
}
.hero-text-link span {
  display: inline-block;
  transition: transform .22s ease;
}
.hero-text-link:hover span,
.hero-text-link:focus-visible span { transform: translateY(3px); }

.hero-visual { opacity: .9; }
.glow { filter: blur(34px); }
.glow-blue {
  width: 45vw;
  height: 45vw;
  right: -16vw;
  top: 8vh;
  opacity: .5;
  animation: heroGlowBlue 18s ease-in-out infinite alternate;
}
.glow-green {
  width: 31vw;
  height: 31vw;
  right: 22vw;
  bottom: -19vw;
  opacity: .48;
  animation: heroGlowGreen 22s ease-in-out infinite alternate;
}
.river-line {
  height: 260px;
  border-top-color: rgba(103, 188, 255, .14);
  filter: none;
  animation: riverDrift 16s ease-in-out infinite alternate;
}
.river-one { bottom: 3%; }
.river-two {
  bottom: -3%;
  border-top-color: rgba(71, 221, 176, .11);
  animation-duration: 21s;
}

@keyframes heroGlowBlue {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 12px, 0) scale(1.04); }
}
@keyframes heroGlowGreen {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -10px, 0) scale(1.05); }
}
@keyframes riverDrift {
  from { translate: 0 0; }
  to { translate: 18px -5px; }
}

/* Problem chapter */
.problem {
  padding: 150px 0;
  background: #fff;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 96px;
  align-items: center;
}

.problem-copy { max-width: 620px; }
.problem h2 {
  margin-bottom: 34px;
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  line-height: 1.01;
  font-weight: 600;
  letter-spacing: -.052em;
}
.problem h2 span { color: #667185; }
.problem-copy > p {
  max-width: 570px;
  color: #667185;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.67;
}
.problem-thesis {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(13, 27, 61, .1);
  color: #26374f !important;
}
.problem-thesis strong { color: var(--navy); font-weight: 620; }

/* Signature visual: water → signal → understanding */
.signal-scene {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 182, 122, .11), transparent 26%),
    radial-gradient(circle at 82% 74%, rgba(0, 119, 255, .12), transparent 29%),
    linear-gradient(155deg, #eef8f4 0%, #edf4f8 52%, #e9f1f8 100%);
  isolation: isolate;
}
.signal-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 27, 61, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 61, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 80%, transparent);
  opacity: .55;
}

.signal-water,
.signal-sensors,
.signal-data { position: absolute; inset: 0; }

.wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 180px;
  border: 1px solid transparent;
  border-top-color: rgba(0, 119, 255, .16);
  border-radius: 50%;
}
.wave-a { top: 23%; transform: rotate(-3deg); animation: signalWave 13s ease-in-out infinite alternate; }
.wave-b { top: 34%; transform: rotate(2deg); border-top-color: rgba(0, 182, 122, .16); animation: signalWave 17s ease-in-out infinite alternate-reverse; }
.wave-c { top: 45%; transform: rotate(-1deg); border-top-color: rgba(13, 27, 61, .08); animation: signalWave 21s ease-in-out infinite alternate; }

@keyframes signalWave {
  from { translate: -8px 0; scale: 1; }
  to { translate: 16px -4px; scale: 1.015; }
}

.sensor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--emerald);
  box-shadow: 0 0 0 7px rgba(0, 182, 122, .06), 0 10px 26px rgba(13, 27, 61, .08);
  animation: sensorPulse 4.5s ease-in-out infinite;
}
.s1 { left: 22%; top: 30%; }
.s2 { left: 43%; top: 41%; animation-delay: .7s; border-color: var(--ocean); }
.s3 { left: 65%; top: 27%; animation-delay: 1.3s; }
.s4 { left: 75%; top: 54%; animation-delay: 2s; border-color: var(--ocean); }

@keyframes sensorPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.trace {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 255, .5), rgba(0, 182, 122, .45), transparent);
  opacity: .55;
}
.trace-a { left: 18%; right: 14%; top: 68%; transform: rotate(-7deg); }
.trace-b { left: 26%; right: 22%; top: 73%; transform: rotate(5deg); opacity: .38; }
.trace-c { left: 34%; right: 18%; top: 79%; transform: rotate(-2deg); opacity: .28; }

.signal-labels {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(13, 27, 61, .42);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Approach chapter */
.approach {
  padding: 148px 0 140px;
  color: #f5f9fd;
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 119, 255, .11), transparent 25%),
    radial-gradient(circle at 14% 88%, rgba(0, 182, 122, .08), transparent 28%),
    #07152f;
}

.approach-heading {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.approach-heading h2 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  line-height: 1.01;
  font-weight: 600;
}
.approach-heading h2 span {
  background: linear-gradient(90deg, #74c2ff, #4ce1b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.approach-heading > p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(224, 235, 246, .64);
  font-size: 1.08rem;
  line-height: 1.65;
}

.approach-words {
  list-style: none;
  max-width: 1120px;
  margin: 88px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.approach-words li {
  min-height: 190px;
  padding: 26px 28px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255,255,255,.1);
}
.approach-words li:not(:first-child) { padding-left: 28px; }
.approach-words li:last-child { border-right: 0; }
.approach-words strong {
  color: #f7fbff;
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: 1;
  font-weight: 580;
  letter-spacing: -.045em;
}
.approach-words span {
  max-width: 190px;
  color: rgba(216, 229, 241, .5);
  font-size: .94rem;
  line-height: 1.5;
}

/* Current chapter */
.now {
  padding: 145px 0;
  background: #f5f5f7;
}
.now-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 90px;
  align-items: end;
  padding: 58px;
  border-radius: 36px;
  background: #fff;
}
.now-copy { max-width: 760px; }
.now-copy h2 {
  margin-bottom: 30px;
  font-size: clamp(3rem, 4.9vw, 5rem);
  line-height: 1.01;
  font-weight: 600;
}
.now-copy h2 span { color: #006fd8; }
.now-copy > p {
  max-width: 700px;
  color: #667185;
  font-size: 1.08rem;
  line-height: 1.66;
}
.now-copy > p:first-of-type {
  color: #26374f;
  font-size: clamp(1.18rem, 1.55vw, 1.4rem);
}

.now-mark {
  min-height: 280px;
  padding: 26px 0 0 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(13, 27, 61, .1);
}
.now-index {
  color: #9aa6b5;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .16em;
}
.now-mark div { display: flex; flex-direction: column; gap: 8px; }
.now-mark small {
  color: #008d65;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.now-mark strong {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.25;
}
.now-mark div > span:last-child { color: #7b8798; font-size: .92rem; }

/* Mekong brand moment + contact */
.origin {
  position: relative;
  overflow: hidden;
  padding: 160px 0 132px;
  color: #f5f9fd;
  background:
    radial-gradient(circle at 15% 100%, rgba(0, 182, 122, .14), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(0, 119, 255, .14), transparent 28%),
    linear-gradient(160deg, #041020, #07152f 58%, #08233f);
}
.origin-ambient { position: absolute; inset: 0; pointer-events: none; }
.origin-ambient span {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 210px;
  border-radius: 50%;
  border-top: 1px solid rgba(116, 194, 255, .12);
  animation: originDrift 18s ease-in-out infinite alternate;
}
.origin-ambient span:first-child { bottom: 12%; transform: rotate(-3deg); }
.origin-ambient span:last-child {
  bottom: 3%;
  transform: rotate(3deg);
  border-top-color: rgba(76, 225, 178, .1);
  animation-duration: 23s;
}
@keyframes originDrift {
  from { translate: -8px 0; }
  to { translate: 18px -5px; }
}

.origin-inner {
  position: relative;
  z-index: 1;
  max-width: 1020px;
}
.origin h2 {
  max-width: 960px;
  margin-bottom: 32px;
  font-size: clamp(3.2rem, 5.7vw, 5.8rem);
  line-height: 1.01;
  font-weight: 600;
}
.origin h2 span {
  background: linear-gradient(90deg, #76c4ff, #4ce1b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.origin-inner > p:not(.eyebrow):not(.origin-closing) {
  max-width: 760px;
  color: rgba(220, 232, 244, .68);
  font-size: 1.13rem;
  line-height: 1.68;
}
.origin-closing {
  margin-top: 48px;
  color: #f6f9fd !important;
  font-size: clamp(1.45rem, 2.1vw, 2rem) !important;
  line-height: 1.35 !important;
  font-weight: 580;
  letter-spacing: -.025em;
}
.contact-line {
  margin-top: 76px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.contact-line > span {
  color: rgba(220, 232, 244, .58);
  font-size: .95rem;
}
.contact-line a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #79c4ff;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 560;
  text-decoration: none;
}
.contact-line a span { transition: transform .2s ease; }
.contact-line a:hover span,
.contact-line a:focus-visible span { transform: translate(2px, -2px); }

.site-footer {
  padding: 28px 0;
  background: #041020;
}

.reveal {
  transform: translateY(14px);
  transition-duration: .68s;
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 1180px); }
  .brand img { width: 164px; }

  .hero-content { padding-top: 138px; padding-bottom: 112px; }
  .problem { padding: 112px 0; }
  .problem-layout { grid-template-columns: 1fr; gap: 60px; }
  .problem-copy { max-width: 760px; }
  .signal-scene { min-height: 500px; }

  .approach { padding: 112px 0; }
  .approach-words { grid-template-columns: repeat(2, 1fr); }
  .approach-words li:nth-child(2) { border-right: 0; }
  .approach-words li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .approach-words li:nth-child(3) { padding-left: 0; }

  .now { padding: 112px 0; }
  .now-layout { grid-template-columns: 1fr; gap: 54px; padding: 46px; }
  .now-mark {
    min-height: 0;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(13, 27, 61, .1);
    flex-direction: row;
    align-items: flex-end;
    gap: 28px;
  }

  .origin { padding: 122px 0 108px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100vw - 28px); }

  .nav-shell { min-height: 50px; }
  .brand img { width: 154px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(:last-child) { display: none; }

  .hero { min-height: 94svh; }
  .hero-content { padding-top: 116px; padding-bottom: 94px; }
  .hero .eyebrow { margin-bottom: 22px; font-size: 10px; }
  .hero h1 {
    font-size: clamp(3.05rem, 14vw, 4.35rem);
    line-height: 1.045;
    letter-spacing: -.05em;
  }
  .hero-lead { font-size: 1.02rem; line-height: 1.58; }
  .hero-text-link { font-size: 15px; }

  .problem { padding: 90px 0; }
  .problem h2 {
    font-size: clamp(2.55rem, 11vw, 3.7rem);
    line-height: 1.03;
  }
  .problem-copy > p { font-size: 1rem; }
  .signal-scene { min-height: 390px; border-radius: 26px; }
  .signal-labels { left: 22px; right: 22px; bottom: 20px; font-size: 8px; }

  .approach { padding: 94px 0 90px; }
  .approach-heading h2 {
    font-size: clamp(2.55rem, 11vw, 3.75rem);
    line-height: 1.03;
  }
  .approach-heading > p:last-child { font-size: 1rem; }
  .approach-words {
    margin-top: 54px;
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .approach-words li,
  .approach-words li:not(:first-child),
  .approach-words li:nth-child(3) {
    min-height: 126px;
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .approach-words li:first-child { border-top: 0; }
  .approach-words strong { font-size: 2.15rem; }
  .approach-words span { max-width: none; }

  .now { padding: 90px 0; }
  .now-layout { padding: 28px; border-radius: 26px; gap: 44px; }
  .now-copy h2 {
    font-size: clamp(2.5rem, 10.6vw, 3.65rem);
    line-height: 1.03;
  }
  .now-copy > p { font-size: 1rem; }
  .now-copy > p:first-of-type { font-size: 1.1rem; }
  .now-mark { align-items: flex-start; flex-direction: column; }

  .origin { padding: 96px 0 84px; }
  .origin h2 {
    font-size: clamp(2.75rem, 11.5vw, 4rem);
    line-height: 1.03;
  }
  .origin-inner > p:not(.eyebrow):not(.origin-closing) { font-size: 1rem; }
  .origin-closing { margin-top: 38px; font-size: 1.35rem !important; }
  .contact-line {
    margin-top: 56px;
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-line a { font-size: 1.18rem; word-break: break-word; }

  .footer-layout,
  .footer-brand { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-blue,
  .glow-green,
  .river-line,
  .wave,
  .sensor,
  .origin-ambient span { animation: none !important; }
  .hero-text-link span,
  .contact-line a span { transition: none; }
}

/* ===== polish.css ===== */
/* Final presentation polish: typography, rhythm, tablet/mobile and accessibility. */

:root {
  --display-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--text-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

h1,
h2,
.approach-words strong,
.now-mark strong {
  font-family: var(--display-font);
  font-synthesis: none;
}

h1,
h2 {
  letter-spacing: -.045em;
}

p {
  hanging-punctuation: first last;
}

.eyebrow {
  line-height: 1.35;
  letter-spacing: .12em;
}

/* Navigation: precise proportions and better tap targets. */
.nav-shell {
  min-height: 52px;
}

.brand,
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 170px;
  height: auto;
}

.nav-links a {
  padding: 0 2px;
}

/* Hero: retain impact while improving Vietnamese line spacing. */
.hero-content {
  max-width: 1080px;
  padding-top: clamp(132px, 16vh, 174px);
  padding-bottom: clamp(108px, 13vh, 148px);
}

.hero h1 {
  max-width: 1000px;
  margin-bottom: 30px;
  font-size: clamp(3.9rem, 6.75vw, 6.65rem);
  line-height: 1.055;
  letter-spacing: -.052em;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  line-height: 1.62;
}

.hero-text-link {
  min-height: 44px;
  font-size: 15px;
}

.glow-blue,
.glow-green {
  filter: blur(42px);
  opacity: .42;
}

.river-line {
  opacity: .78;
}

/* Problem: editorial line lengths and a tighter page rhythm. */
.problem {
  padding: 132px 0;
}

.problem-layout {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 80px;
}

.problem-copy {
  max-width: 600px;
}

.problem h2 {
  margin-bottom: 30px;
  font-size: clamp(2.9rem, 4.8vw, 4.85rem);
  line-height: 1.045;
}

.problem-copy > p {
  max-width: 55ch;
  font-size: clamp(1.03rem, 1.2vw, 1.14rem);
  line-height: 1.72;
}

.problem-thesis {
  margin-top: 28px;
  padding-top: 26px;
}

.signal-scene {
  min-height: 540px;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(13, 27, 61, .035);
}

.signal-scene::before {
  opacity: .4;
}

.sensor {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 6px rgba(0, 182, 122, .05), 0 10px 24px rgba(13, 27, 61, .065);
}

.signal-labels {
  letter-spacing: .12em;
}

/* Approach: less diagram-like, more editorial. */
.approach {
  padding: 128px 0 124px;
}

.approach-heading {
  max-width: 880px;
}

.approach-heading h2 {
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 4.75vw, 4.8rem);
  line-height: 1.045;
}

.approach-heading > p:last-child {
  max-width: 660px;
  font-size: 1.03rem;
  line-height: 1.68;
}

.approach-words {
  margin-top: 70px;
  border-top-color: rgba(255, 255, 255, .1);
}

.approach-words li {
  min-height: 168px;
  padding-top: 24px;
  padding-bottom: 18px;
  border-right-color: rgba(255, 255, 255, .07);
}

.approach-words strong {
  font-size: clamp(1.85rem, 2.35vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.approach-words span {
  color: rgba(216, 229, 241, .56);
  font-size: .9rem;
}

/* First experiment: quieter card, stronger hierarchy. */
.now {
  padding: 124px 0;
}

.now-layout {
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 72px;
  padding: 52px;
  border: 1px solid rgba(13, 27, 61, .045);
  border-radius: 32px;
  box-shadow: 0 22px 60px rgba(13, 27, 61, .035);
}

.now-copy h2 {
  margin-bottom: 26px;
  font-size: clamp(2.85rem, 4.45vw, 4.55rem);
  line-height: 1.045;
}

.now-copy > p {
  max-width: 62ch;
  font-size: 1.03rem;
  line-height: 1.7;
}

.now-copy > p:first-of-type {
  font-size: clamp(1.12rem, 1.4vw, 1.28rem);
  line-height: 1.58;
}

.now-mark {
  min-height: 250px;
}

/* Mekong brand moment. */
.origin {
  padding-top: 140px;
  padding-bottom: 112px;
}

.origin-inner {
  max-width: 980px;
}

.origin h2 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.25vw, 5.25rem);
  line-height: 1.045;
}

.origin-inner > p:not(.eyebrow):not(.origin-closing) {
  max-width: 68ch;
  font-size: 1.07rem;
  line-height: 1.72;
}

.origin-closing {
  margin-top: 42px;
}

.contact-line {
  margin-top: 64px;
  padding-top: 24px;
}

.contact-line a {
  min-height: 44px;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Tablet / iPad portrait and compact desktop. */
@media (max-width: 980px) {
  :root {
    --shell: min(100% - 44px, 1180px);
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding-top: 126px;
    padding-bottom: 104px;
  }

  .hero h1 {
    max-width: 850px;
    font-size: clamp(3.55rem, 8.4vw, 5.45rem);
    line-height: 1.06;
  }

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

  .problem {
    padding: 104px 0;
  }

  .problem-layout {
    gap: 52px;
  }

  .problem-copy {
    max-width: 700px;
  }

  .problem h2,
  .approach-heading h2,
  .now-copy h2,
  .origin h2 {
    line-height: 1.055;
  }

  .signal-scene {
    min-height: 460px;
    border-radius: 28px;
  }

  .approach {
    padding: 104px 0;
  }

  .approach-words {
    margin-top: 58px;
  }

  .approach-words li {
    min-height: 150px;
  }

  .now {
    padding: 104px 0;
  }

  .now-layout {
    gap: 44px;
    padding: 42px;
  }

  .origin {
    padding: 108px 0 94px;
  }
}

/* Mobile: preserve hierarchy without oversized typography or cramped Vietnamese. */
@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .nav-shell {
    min-height: 48px;
  }

  .brand img {
    width: 146px;
  }

  .nav-links a:last-child {
    min-height: 44px;
    padding-inline: 2px;
    font-size: 12px;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-content {
    padding-top: 104px;
    padding-bottom: 84px;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
    letter-spacing: .11em;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: clamp(2.85rem, 13.3vw, 4rem);
    line-height: 1.085;
    letter-spacing: -.045em;
  }

  .hero-lead {
    max-width: 35ch;
    margin-bottom: 22px;
    font-size: .98rem;
    line-height: 1.64;
  }

  .hero-text-link {
    min-height: 44px;
    font-size: 14px;
  }

  .glow-blue,
  .glow-green {
    opacity: .3;
  }

  .problem {
    padding: 76px 0;
  }

  .problem-layout {
    gap: 38px;
  }

  .problem h2 {
    margin-bottom: 24px;
    font-size: clamp(2.35rem, 10.3vw, 3.25rem);
    line-height: 1.075;
    letter-spacing: -.04em;
  }

  .problem-copy > p {
    font-size: .98rem;
    line-height: 1.72;
  }

  .problem-thesis {
    margin-top: 24px;
    padding-top: 22px;
  }

  .signal-scene {
    min-height: 320px;
    border-radius: 22px;
  }

  .signal-scene::before {
    background-size: 36px 36px;
    opacity: .28;
  }

  .wave {
    height: 130px;
  }

  .sensor {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 5px rgba(0, 182, 122, .045);
  }

  .signal-labels {
    left: 16px;
    right: 16px;
    bottom: 16px;
    gap: 8px;
    font-size: 7px;
    letter-spacing: .08em;
  }

  .approach {
    padding: 78px 0 74px;
  }

  .approach-heading h2 {
    margin-bottom: 20px;
    font-size: clamp(2.35rem, 10.3vw, 3.3rem);
    line-height: 1.075;
    letter-spacing: -.04em;
  }

  .approach-heading > p:last-child {
    max-width: 34ch;
    font-size: .97rem;
    line-height: 1.68;
  }

  .approach-words {
    margin-top: 44px;
  }

  .approach-words li,
  .approach-words li:not(:first-child),
  .approach-words li:nth-child(3) {
    min-height: 104px;
    padding: 18px 0;
  }

  .approach-words strong {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .approach-words span {
    margin-top: 12px;
    font-size: .88rem;
  }

  .now {
    padding: 76px 0;
  }

  .now-layout {
    gap: 34px;
    padding: 24px;
    border-radius: 22px;
  }

  .now-copy h2 {
    margin-bottom: 22px;
    font-size: clamp(2.3rem, 10vw, 3.15rem);
    line-height: 1.075;
    letter-spacing: -.04em;
  }

  .now-copy > p,
  .now-copy > p:first-of-type {
    font-size: .98rem;
    line-height: 1.7;
  }

  .now-mark {
    min-height: 0;
    padding-top: 20px;
  }

  .now-mark strong {
    font-size: 1.2rem;
  }

  .origin {
    padding: 80px 0 70px;
  }

  .origin h2 {
    margin-bottom: 24px;
    font-size: clamp(2.45rem, 10.5vw, 3.45rem);
    line-height: 1.075;
    letter-spacing: -.04em;
  }

  .origin-inner > p:not(.eyebrow):not(.origin-closing) {
    max-width: 35ch;
    font-size: .98rem;
    line-height: 1.72;
  }

  .origin-closing {
    margin-top: 32px;
    font-size: 1.22rem !important;
    line-height: 1.45 !important;
  }

  .contact-line {
    margin-top: 46px;
    padding-top: 22px;
    gap: 14px;
  }

  .contact-line > span {
    font-size: .9rem;
  }

  .contact-line a {
    max-width: 100%;
    min-height: 44px;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
  }

  .footer-layout {
    gap: 14px;
  }

  .footer-brand span,
  .footer-layout > span {
    font-size: .8rem;
  }
}

/* Small phones. */
@media (max-width: 390px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  .brand img {
    width: 138px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.35rem);
  }

  .hero-lead {
    font-size: .95rem;
  }

  .signal-scene {
    min-height: 286px;
  }

  .now-layout {
    padding: 22px;
  }
}

@media (hover: none) {
  .hero-text-link span,
  .contact-line a span {
    transform: none !important;
  }
}

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


/* Technology signature: concise, brand-level expression of Mekavix's technical direction. */
.technology-line {
  margin: 30px 0 0;
  color: rgba(235, 244, 255, .82);
  font-size: .78rem;
  line-height: 1.7;
  font-weight: 650;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.technology-line span {
  margin: 0 .38em;
  color: var(--emerald-soft);
  opacity: .82;
}

@media (max-width: 640px) {
  .technology-line {
    margin-top: 24px;
    max-width: 30ch;
    font-size: .7rem;
    line-height: 1.8;
    letter-spacing: .075em;
  }

  .technology-line span {
    margin: 0 .28em;
  }
}


/* Final QA refinement: cleaner copy rhythm and softer approach treatment. */
.approach-heading .approach-lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(224, 235, 246, .68);
  font-size: 1.04rem;
  line-height: 1.72;
  text-align: center;
}

.technology-line {
  max-width: 920px;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  color: rgba(225, 236, 247, .72);
  font-size: .76rem;
  line-height: 1.6;
  font-weight: 680;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
}

.technology-line span {
  display: inline-flex;
  align-items: center;
}

.technology-line span:not(:last-child)::after {
  content: "·";
  margin: 0 .62em;
  color: var(--emerald-soft);
  opacity: .9;
}

.approach-words {
  max-width: 1160px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 0;
}

.approach-words li,
.approach-words li:not(:first-child),
.approach-words li:nth-child(3) {
  position: relative;
  min-height: 190px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.018));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 14px 38px rgba(0,0,0,.08);
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.approach-words li::before {
  display: block;
  margin-bottom: 30px;
  color: rgba(108, 222, 185, .78);
  font-size: .68rem;
  font-weight: 720;
  letter-spacing: .14em;
}

.approach-words li:nth-child(1)::before { content: "01"; }
.approach-words li:nth-child(2)::before { content: "02"; }
.approach-words li:nth-child(3)::before { content: "03"; }
.approach-words li:nth-child(4)::before { content: "04"; }

.approach-words li:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 196, 255, .16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
}

.approach-words strong {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 2.15vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.038em;
}

.approach-words span {
  max-width: 21ch;
  margin-top: auto;
  color: rgba(216, 229, 241, .58);
  font-size: .9rem;
  line-height: 1.58;
}

@media (max-width: 980px) and (min-width: 641px) {
  .approach-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .approach-words li,
  .approach-words li:not(:first-child),
  .approach-words li:nth-child(3) {
    min-height: 168px;
  }
}

.origin h2 {
  max-width: 1020px;
}

@media (prefers-reduced-motion: reduce) {
  .approach-words li {
    transition: none;
  }
}


/* Language switch */
.lang-switch {
  min-width: 36px;
  justify-content: center;
  margin-left: 2px;
  padding-left: 14px !important;
  border-left: 1px solid rgba(13, 27, 61, .12);
  color: rgba(13, 27, 61, .62) !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  color: var(--navy) !important;
}

/* ===== mobile.css ===== */
/* Mobile-specific composition. Desktop/tablet remain controlled by refinement.css + polish.css. */

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 36px);
  }

  html {
    scroll-padding-top: calc(60px + env(safe-area-inset-top));
  }

  [id] {
    scroll-margin-top: calc(60px + env(safe-area-inset-top));
  }

  /* Header: one clear action, no desktop navigation compression. */
  .site-header {
    background: rgba(255, 255, 255, .9);
    border-bottom-color: rgba(13, 27, 61, .055);
    backdrop-filter: saturate(170%) blur(18px);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
  }

  .nav-shell {
    min-height: 52px;
    padding-inline: 0;
  }

  .brand {
    min-height: 48px;
  }

  .brand img {
    width: 136px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .nav-links a:last-child {
    min-width: 58px;
    min-height: 44px;
    justify-content: flex-end;
    padding: 0;
    font-size: 12px;
    font-weight: 590;
    color: rgba(13, 27, 61, .74);
  }

  /* Hero: content-led, not a shrunken full-screen desktop hero. */
  .hero {
    min-height: auto;
  }

  .hero-content {
    max-width: none;
    padding-top: calc(94px + env(safe-area-inset-top));
    padding-bottom: 72px;
  }

  .hero .eyebrow {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: .105em;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: clamp(2.62rem, 12.2vw, 3.22rem);
    line-height: 1.105;
    letter-spacing: -.038em;
  }

  .hero-lead {
    max-width: 32ch;
    margin-bottom: 20px;
    font-size: .96rem;
    line-height: 1.68;
  }

  .hero-text-link {
    min-height: 42px;
    font-size: 14px;
  }

  .glow-blue {
    width: 82vw;
    height: 82vw;
    right: -42vw;
    top: 8%;
    opacity: .24;
  }

  .glow-green {
    width: 62vw;
    height: 62vw;
    right: 4vw;
    bottom: -34vw;
    opacity: .2;
  }

  .river-line {
    height: 150px;
    opacity: .48;
  }

  /* Problem: one editorial flow, then a compact visual. */
  .problem {
    padding: 72px 0 68px;
  }

  .problem-layout {
    display: block;
  }

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

  .problem .eyebrow {
    margin-bottom: 16px;
  }

  .problem h2 {
    max-width: 10.5ch;
    margin-bottom: 22px;
    font-size: clamp(2.28rem, 10.4vw, 2.85rem);
    line-height: 1.105;
    letter-spacing: -.035em;
  }

  .problem-copy > p {
    max-width: none;
    margin-bottom: 16px;
    font-size: .97rem;
    line-height: 1.72;
  }

  .problem-thesis {
    margin-top: 22px;
    padding-top: 20px;
  }

  .signal-scene {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1.08 / 1;
    margin-top: 36px;
    border-radius: 20px;
  }

  .signal-scene::before {
    background-size: 32px 32px;
    opacity: .22;
  }

  .wave {
    height: 108px;
  }

  .sensor {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
    box-shadow: 0 0 0 4px rgba(0, 182, 122, .04);
  }

  .signal-labels {
    left: 14px;
    right: 14px;
    bottom: 13px;
    font-size: 6.5px;
    letter-spacing: .065em;
  }

  /* Approach: rows designed for thumbs and narrow screens. */
  .approach {
    padding: 72px 0 66px;
  }

  .approach-heading {
    text-align: left;
  }

  .approach-heading .eyebrow {
    margin-bottom: 16px;
  }

  .approach-heading h2 {
    max-width: 10ch;
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 10.5vw, 2.9rem);
    line-height: 1.095;
    letter-spacing: -.035em;
  }

  .approach-heading > p:last-child {
    max-width: 32ch;
    margin: 0;
    font-size: .96rem;
    line-height: 1.68;
  }

  .approach-words {
    margin-top: 38px;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, .11);
  }

  .approach-words li,
  .approach-words li:not(:first-child),
  .approach-words li:nth-child(3) {
    min-height: 0;
    padding: 18px 0;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .approach-words strong {
    font-size: 1.72rem;
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .approach-words span {
    max-width: none;
    margin: 0;
    font-size: .84rem;
    line-height: 1.5;
  }

  /* First experiment: remove the nested desktop card on phones. */
  .now {
    padding: 72px 0;
    background: #fff;
  }

  .now-layout {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

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

  .now-copy .eyebrow {
    margin-bottom: 16px;
  }

  .now-copy h2 {
    max-width: 11ch;
    margin-bottom: 22px;
    font-size: clamp(2.28rem, 10.2vw, 2.85rem);
    line-height: 1.1;
    letter-spacing: -.035em;
  }

  .now-copy > p,
  .now-copy > p:first-of-type {
    max-width: none;
    font-size: .97rem;
    line-height: 1.7;
  }

  .now-copy > p:first-of-type {
    color: #25364f;
    font-size: 1.03rem;
  }

  .now-mark {
    min-height: 0;
    margin-top: 32px;
    padding: 20px 0 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    border: 0;
    border-top: 1px solid rgba(13, 27, 61, .1);
  }

  .now-index {
    padding-top: 3px;
  }

  .now-mark div {
    gap: 5px;
  }

  .now-mark strong {
    font-size: 1.12rem;
  }

  /* Mekong ending: compact but still a brand moment. */
  .origin {
    padding: 76px 0 calc(68px + env(safe-area-inset-bottom));
  }

  .origin .eyebrow {
    margin-bottom: 16px;
  }

  .origin h2 {
    max-width: 10.6ch;
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 10.6vw, 3rem);
    line-height: 1.095;
    letter-spacing: -.035em;
  }

  .origin-inner > p:not(.eyebrow):not(.origin-closing) {
    max-width: 33ch;
    font-size: .97rem;
    line-height: 1.72;
  }

  .origin-closing {
    margin-top: 28px;
    font-size: 1.16rem !important;
    line-height: 1.45 !important;
  }

  .contact-line {
    margin-top: 38px;
    padding-top: 20px;
    display: block;
  }

  .contact-line > span {
    display: block;
    margin-bottom: 10px;
    font-size: .86rem;
  }

  .contact-line a {
    min-height: 40px;
    font-size: 1.02rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .origin-ambient span {
    height: 128px;
    opacity: .66;
  }

  .site-footer {
    padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  }

  .footer-layout {
    gap: 12px;
  }

  .footer-brand {
    gap: 3px;
  }
}

/* Narrow phones: preserve clean wrapping without shrinking body text. */
@media (max-width: 380px) {
  :root {
    --shell: calc(100vw - 30px);
  }

  .brand img {
    width: 130px;
  }

  .hero-content {
    padding-top: calc(88px + env(safe-area-inset-top));
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(2.48rem, 12vw, 2.82rem);
  }

  .hero-lead,
  .problem-copy > p,
  .approach-heading > p:last-child,
  .now-copy > p,
  .origin-inner > p:not(.eyebrow):not(.origin-closing) {
    font-size: .94rem;
  }

  .signal-scene {
    aspect-ratio: 1 / 1;
  }

  .approach-words strong {
    font-size: 1.58rem;
  }

  .approach-words li,
  .approach-words li:not(:first-child),
  .approach-words li:nth-child(3) {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 14px;
  }

  .contact-line a {
    font-size: .98rem;
  }
}

/* Short mobile viewports: avoid making the hero feel trapped. */
@media (max-width: 640px) and (max-height: 700px) {
  .hero-content {
    padding-top: calc(82px + env(safe-area-inset-top));
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(2.42rem, 11.5vw, 2.95rem);
  }

  .hero-lead {
    line-height: 1.58;
  }
}


/* Final mobile composition: full-width reading rhythm and card-based approach. */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: calc(96px + env(safe-area-inset-top));
    padding-bottom: 72px;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(2.58rem, 11.9vw, 3.18rem);
    line-height: 1.07;
    letter-spacing: -.04em;
  }

  .hero-lead {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: .98rem;
    line-height: 1.7;
  }

  .hero-text-link {
    margin-top: 0;
  }

  .approach {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .approach-heading {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .approach-heading h2 {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .approach-heading .approach-lead {
    max-width: none;
    margin: 0;
    font-size: .97rem;
    line-height: 1.7;
    text-align: left;
  }

  .technology-line {
    max-width: none;
    margin: 22px 0 0;
    justify-content: flex-start;
    gap: 7px 0;
    font-size: .7rem;
    line-height: 1.7;
    letter-spacing: .075em;
    text-align: left;
  }

  .technology-line span:not(:last-child)::after {
    margin: 0 .5em;
  }

  .approach-words {
    margin-top: 38px;
    grid-template-columns: 1fr;
    gap: 12px;
    border: 0;
  }

  .approach-words li,
  .approach-words li:not(:first-child),
  .approach-words li:nth-child(3) {
    min-height: 0;
    padding: 22px 20px 20px;
    display: block;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.018));
  }

  .approach-words li::before {
    margin-bottom: 20px;
  }

  .approach-words strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.74rem;
    line-height: 1.08;
  }

  .approach-words span {
    display: block;
    max-width: none;
    margin: 0;
    font-size: .88rem;
    line-height: 1.58;
  }

  .origin h2 {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: clamp(2.42rem, 11.5vw, 2.78rem);
  }

  .technology-line {
    font-size: .67rem;
  }

  .approach-words strong {
    font-size: 1.62rem;
  }
}


/* Mobile language navigation */
@media (max-width: 640px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.nav-contact):not(.lang-switch) {
    display: none !important;
  }

  .nav-contact,
  .lang-switch {
    display: inline-flex !important;
    min-height: 44px;
    align-items: center;
  }

  .nav-contact {
    min-width: auto !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    font-size: 12px !important;
  }

  .lang-switch {
    min-width: 34px;
    justify-content: flex-end;
    margin-left: 0;
    padding-left: 12px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 380px) {
  .nav-links {
    gap: 10px;
  }

  .lang-switch {
    min-width: 30px;
    padding-left: 10px !important;
  }
}

/* ===== media.css ===== */
/* Photography layer: controlled-environment aquaculture, restrained and editorial. */

.story-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 32px;
  background: #e9eef2;
  box-shadow: inset 0 0 0 1px rgba(13, 27, 61, .035);
  isolation: isolate;
}

.story-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 19, 40, .01), rgba(5, 19, 40, .12)),
    linear-gradient(135deg, rgba(0, 119, 255, .025), rgba(0, 182, 122, .02));
}

.story-photo img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(.99);
  transform: scale(1.002);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.story-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  max-width: calc(100% - 32px);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(4, 16, 32, .48);
  color: rgba(255,255,255,.88);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .045em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.story-photo:hover img {
  transform: scale(1.018);
  filter: saturate(.98) contrast(1);
}

.problem-photo {
  min-height: 540px;
  aspect-ratio: 16 / 10;
}

.problem-photo img {
  object-position: 52% 50%;
}

.now-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 58px;
  align-items: stretch;
}

.now-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.now-photo {
  flex: 1 1 auto;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
}

.now-photo img {
  object-position: 50% 46%;
}

.now-mark {
  min-height: 0;
  padding: 18px 0 0;
  border-left: 0;
  border-top: 1px solid rgba(13, 27, 61, .1);
  flex-direction: row;
  align-items: flex-end;
  gap: 24px;
}

.now-mark div {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 980px) {
  .problem-photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
  }

  .now-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .now-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 24px;
    align-items: stretch;
  }

  .now-photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .now-mark {
    height: 100%;
    padding: 18px 0 0 22px;
    border-top: 0;
    border-left: 1px solid rgba(13, 27, 61, .1);
    flex-direction: column;
    align-items: flex-start;
  }

  .now-mark div {
    margin-left: 0;
    margin-top: auto;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .story-photo {
    border-radius: 20px;
  }

  .story-photo figcaption {
    left: 12px;
    bottom: 11px;
    max-width: calc(100% - 24px);
    padding: 6px 8px;
    font-size: 8px;
  }

  .problem-photo {
    aspect-ratio: 4 / 3;
  }

  .problem-photo img {
    object-position: 56% 50%;
  }

  .now-side {
    display: block;
  }

  .now-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: 2px;
    border-radius: 20px;
  }

  .now-photo img {
    object-position: 52% 50%;
  }

  .now-mark {
    height: auto;
    margin-top: 18px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(13, 27, 61, .1);
    flex-direction: row;
    align-items: flex-end;
  }

  .now-mark div {
    margin-left: auto;
    margin-top: 0;
    text-align: right;
  }

  .story-photo:hover img {
    transform: scale(1.002);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-photo img {
    transition: none;
  }
}
