/* =========================================================
   Mirei Vietnam: "route to market"
   The transit-map story (Japanese brands -> Mirei -> Vietnamese shelves)
   in a soft glass skin: floating pill navigation, aurora background,
   tinted glass panels, brand tiles, logo marquee, scroll motion.
   ========================================================= */

:root {
  /* base */
  --paper: #EEF2F1;          /* mist tinted with Mirei green */
  --card: #FFFFFF;
  --brand: #758B8B;          /* Mirei green: primary colour (logo) */
  --brand-600: #5F7676;
  --brand-700: #566C6C;
  --brand-800: #3F5252;
  --pine: #1E3030;           /* text */
  --ink: #1E3030;
  --muted: #526262;
  --line: #D3DBD8;
  --danger: #A23B2A;

  /* service lines */
  --c-offline: #B45F14;     /* amber: physical retail */
  --c-online: #0E6E7C;      /* teal: e-commerce */
  --c-social: #A93766;      /* berry: social & KOL */

  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 60px;
  --header-gap: 12px;
  --edge: clamp(8px, 1.4vw, 20px);          /* inset of the full-width rounded blocks */

  --r-xl: clamp(28px, 3.6vw, 44px);
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --stripe: linear-gradient(90deg, var(--c-offline), var(--c-online) 50%, var(--c-social));
  --brand-grad: linear-gradient(135deg, #758B8B 0%, #6C8383 45%, #5C7373 100%);
  --glass: rgba(255, 255, 255, .68);
  --glass-border: rgba(255, 255, 255, .9);
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, .8), 0 36px 70px -50px rgba(30, 48, 48, .55);

  --z-route: 2;
  --z-header: 30;
  --z-float: 40;
}

.line--offline { --line-c: var(--c-offline); --line-soft: rgba(180, 95, 20, .16);  --line-tint: #F9F0E7; }
.line--online  { --line-c: var(--c-online);  --line-soft: rgba(14, 110, 124, .16); --line-tint: #E8F2F3; }
.line--social  { --line-c: var(--c-social);  --line-soft: rgba(169, 55, 102, .16); --line-tint: #F7ECF1; }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-gap) + 20px);
  scrollbar-color: #9DAFAE transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 350;          /* Segoe UI Semilight */
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* aurora: soft light in Mirei green with a hint of the three line colours */
body::before {
  content: ""; position: fixed; inset: -8%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(44% 40% at 10% 6%, rgba(117, 139, 139, .40), transparent 72%),
    radial-gradient(32% 34% at 94% 2%, rgba(14, 110, 124, .14), transparent 70%),
    radial-gradient(36% 38% at 100% 60%, rgba(180, 95, 20, .10), transparent 70%),
    radial-gradient(38% 42% at 0% 76%, rgba(169, 55, 102, .08), transparent 70%),
    radial-gradient(52% 40% at 50% 104%, rgba(117, 139, 139, .34), transparent 70%);
}
/* fine grain so the gradients do not look flat */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .19 0 0 0 0 .19 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(117, 139, 139, .35); }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { color: var(--pine); font-weight: 300; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; font-weight: 400; }
:lang(vi) h1, :lang(vi) h2 { line-height: 1.2; } /* room for stacked Vietnamese diacritics */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--c-offline); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--card); color: var(--pine); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 400; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 400; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--brand-grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 18px 30px -18px rgba(63, 82, 82, .85);
}
.btn-primary:hover { background: linear-gradient(135deg, #6C8383, #566C6C); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 24px 36px -18px rgba(63, 82, 82, .95); }
.btn-primary:disabled { opacity: .75; cursor: progress; }
.btn-ghost {
  background: var(--glass); color: var(--brand-800); border-color: rgba(117, 139, 139, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: #fff; border-color: var(--brand); }

/* label + round arrow that turns to point forward */
.btn-arrow { padding-right: 8px; }
.btn-ico {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--brand-800); transition: transform .35s var(--ease);
}
.btn-arrow:hover .btn-ico, .btn-arrow:focus-visible .btn-ico { transform: rotate(45deg); }

/* ---------- Scroll progress: the journey so far ---------- */
.scroll-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: calc(var(--z-header) + 1);
  background: var(--stripe); transform: scaleX(var(--progress, 0)); transform-origin: left center; pointer-events: none;
}

/* ---------- Header: floating glass pill ---------- */
.site-header {
  position: sticky; top: var(--header-gap); z-index: var(--z-header);
  margin-top: var(--header-gap); padding-inline: var(--gutter); pointer-events: none;
}
.header-inner {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto;
  padding: 0 10px 0 26px; border-radius: 999px; color: #fff;
  background: linear-gradient(120deg, rgba(117, 139, 139, .92), rgba(98, 121, 121, .92));
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 14px 30px -22px rgba(30, 48, 48, .6);
  transition: box-shadow .3s;
}
.site-header.is-scrolled .header-inner { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 22px 44px -22px rgba(30, 48, 48, .75); }
.brand-mark { display: block; padding: 6px 0; }
.brand-mark img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav ul a {
  display: block; padding: 9px 15px; border-radius: 999px;
  text-decoration: none; font-weight: 400; font-size: .97rem; color: #fff;
  transition: background-color .25s;
}
.main-nav ul a:hover { background: rgba(255, 255, 255, .16); }
.main-nav ul a.is-active { background: rgba(255, 255, 255, .24); }
.nav-shop {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 20px; border-radius: 999px;
  background: #fff; color: var(--brand-800); font-weight: 400; font-size: .93rem; text-decoration: none; white-space: nowrap;
  transition: background-color .25s;
}
.nav-shop svg { transition: transform .3s var(--ease); }
.nav-shop:hover { background: var(--paper); }
.nav-shop:hover svg { transform: translate(2px, -2px); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.main-nav + .header-tools { margin-left: 0; }
.lang-switch { display: flex; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 3px; }
.lang-switch a {
  min-width: 40px; min-height: 34px; display: grid; place-items: center;
  border-radius: 999px; font-size: .84rem; font-weight: 400; text-decoration: none; color: #fff;
}
.lang-switch a[aria-current] { background: #fff; color: var(--brand-800); }
.lang-switch a:not([aria-current]):hover { background: rgba(255, 255, 255, .16); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .18); border-radius: 50%;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(40px, 5.5vw, 84px) clamp(48px, 6vw, 88px); }
/* map paper: dot grid that fades out towards the edges */
.hero::before {
  content: ""; position: absolute; inset: -90px 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(63, 82, 82, .22) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(75% 65% at 50% 30%, #000 20%, transparent 100%);
}
.hero-top {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px 72px; align-items: center;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; }
:lang(vi) .hero h1 { line-height: 1.2; }
.hero-lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Route map ---------- */
.route {
  --row: 164px;   /* height of one service line */
  --ly: 60px;     /* where the line runs inside its row */
  --bar: 8px;     /* line thickness */
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(32px, 1fr) 128px minmax(0, 7fr) 200px;
  grid-template-rows: repeat(3, var(--row));
  padding: 16px 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .64));
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}

.route-origin { grid-column: 1; grid-row: 1 / -1; position: relative; }
.route-marker {
  position: absolute; z-index: var(--z-route); right: -8px; top: calc(var(--row) + var(--ly) - 17px);
  width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 7px solid var(--brand);
  box-shadow: 0 0 0 7px rgba(117, 139, 139, .16);
}
.route-place { position: absolute; left: 0; right: 0; bottom: calc(2 * var(--row) - var(--ly) + 30px); text-align: right; line-height: 1.3; }
.route-num { display: block; font-size: 3.4rem; font-weight: 300; line-height: 1; color: var(--pine); letter-spacing: -0.01em; }
.route-place-name { display: block; margin-top: 6px; font-weight: 400; color: var(--pine); }

.route-trunk { grid-column: 2; grid-row: 1 / -1; position: relative; }
.route-trunk::before {
  content: ""; position: absolute; left: 0; right: -20px;
  top: calc(var(--row) + var(--ly) - var(--bar) / 2); height: var(--bar); background: var(--brand);
}

.route-hub { grid-column: 3; grid-row: 1 / -1; position: relative; z-index: var(--z-route); }
.route-hub-capsule {
  position: absolute; left: 0; right: 0;
  top: calc(var(--ly) - 32px); height: calc(2 * var(--row) + 64px);
  display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #F4F7F6); border: 5px solid var(--brand); border-radius: 999px;
  box-shadow: 0 26px 40px -28px rgba(63, 82, 82, .75);
}
.route-hub-capsule img { width: 84px; }

.route-lines { grid-column: 4; grid-row: 1 / -1; display: grid; grid-template-rows: repeat(3, var(--row)); }
.route-line { position: relative; }
.route-line::before {
  content: ""; position: absolute; left: -64px; right: -64px;
  top: calc(var(--ly) - var(--bar) / 2); height: var(--bar); background: var(--line-c);
  box-shadow: 0 8px 18px 0 var(--line-soft);
}
.route-line-name {
  position: absolute; z-index: 1; left: 18px; top: calc(var(--ly) - 46px);
  padding: 4px 13px; border-radius: 999px; background: var(--line-c); color: #fff;
  font-size: .8rem; font-weight: 400; text-decoration: none; white-space: nowrap;
  transition: box-shadow .25s, transform .25s var(--ease);
}
.route-line-name:hover { box-shadow: 0 0 0 5px var(--line-soft); transform: translateY(-1px); }
.route-stops { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 100%; padding-left: 22px; }
.route-stops li { min-width: 0; }
.route-stops a { position: relative; display: block; height: 100%; padding: calc(var(--ly) + 22px) 16px 0 0; text-decoration: none; color: inherit; border-radius: 10px; }
.stop-dot {
  position: absolute; left: 0; top: calc(var(--ly) - 12px);
  width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 5px solid var(--line-c);
  transition: background-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.stop-name { display: block; font-weight: 400; font-size: .93rem; line-height: 1.3; color: var(--pine); }
.route-stops a:hover .stop-dot, .route-stops a:focus-visible .stop-dot { background: var(--line-c); box-shadow: 0 0 0 7px var(--line-soft); transform: scale(1.12); }
.route-stops a:hover .stop-name { text-decoration: underline; text-decoration-color: var(--line-c); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

.route-terminus { grid-column: 5; grid-row: 1 / -1; position: relative; z-index: var(--z-route); }
.route-terminus-capsule {
  position: absolute; left: 0; right: 0;
  top: calc(var(--ly) - 32px); height: calc(2 * var(--row) + 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding: 28px 24px; border-radius: 30px;
  background: var(--brand-grad); color: #fff; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 30px 44px -30px rgba(63, 82, 82, .9);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.route-terminus-capsule:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 38px 50px -30px rgba(63, 82, 82, 1); }
.term-fig { font-size: .95rem; font-weight: 400; line-height: 1.3; }
.term-fig strong { display: block; color: #fff; font-size: 2.7rem; font-weight: 300; line-height: 1; letter-spacing: -0.01em; }
.term-name { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 400; line-height: 1.3; }

/* ---------- Service lines: one tinted glass panel each ---------- */
#services { padding-bottom: calc(var(--section-y) * .55); }
.pillar { padding-block: clamp(10px, 1.6vw, 18px); }
.pillar-panel {
  position: relative; padding: clamp(18px, 3.4vw, 48px); border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--line-tint) 0%, rgba(255, 255, 255, .82) 42%, rgba(255, 255, 255, .64) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.line-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 18px 6px 14px; border-radius: 999px;
  background: var(--line-c); color: #fff; font-size: .95rem; font-weight: 400; line-height: 1.25;
}
.line-chip::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.line-nav { display: flex; gap: 8px; flex: none; }
.line-nav a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--brand-800);
  text-decoration: none; font-size: .9rem; font-weight: 400; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.line-nav a:hover { background: var(--line-c); border-color: var(--line-c); color: #fff; }

.pillar-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 72px; align-items: center; margin: clamp(28px, 4vw, 52px) 0 clamp(28px, 4vw, 48px); }
.pillar-head h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
.pillar-lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; padding: 4px 0 4px 26px; border-left: 2px solid var(--line-c); }

.pillar-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pillar-body.is-reversed .stops { order: 2; }

/* the services sit on a vertical stretch of the line */
.stops { position: relative; display: grid; gap: 8px; padding-left: 44px; }
.stops::before {
  content: ""; position: absolute; left: 13px; top: 38px; bottom: 20px; width: 6px; border-radius: 3px;
  background: linear-gradient(var(--line-c) 72%, transparent);
}
.svc {
  position: relative; padding: 18px 22px 24px; border-radius: 22px; border: 1px solid transparent;
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
.svc::before {
  content: ""; position: absolute; left: -44px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 6px solid var(--line-c);
  transition: background-color .3s, box-shadow .3s;
}
.svc.is-active { background: rgba(255, 255, 255, .92); border-color: #fff; box-shadow: 0 22px 44px -32px rgba(30, 48, 48, .55); }
.svc.is-active::before { background: var(--line-c); box-shadow: inset 0 0 0 4px var(--card), 0 0 0 7px var(--line-soft); }
.svc h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.svc-trigger {
  all: unset; display: block; width: 100%; cursor: pointer; color: var(--muted); padding-top: 4px;
  transition: color .25s;
}
.svc-trigger:focus-visible { outline: 3px solid var(--line-c); outline-offset: 6px; border-radius: 6px; }
.svc-text { margin-top: 8px; color: var(--muted); max-width: 54ch; opacity: .82; transition: opacity .3s; }
.svc.is-active .svc-trigger, .svc-trigger:hover { color: var(--pine); }
.svc.is-active .svc-text { opacity: 1; }
.svc-inline-img { display: none; }

/* thin timer on the active service while the panel plays through its stops */
.svc-progress {
  position: absolute; left: 22px; right: 22px; bottom: 11px; height: 2px; border-radius: 2px;
  background: var(--line-soft); overflow: hidden; opacity: 0; transition: opacity .3s;
}
.svc-progress i { display: block; height: 100%; background: var(--line-c); transform: scaleX(0); transform-origin: left center; }
.is-playing .svc.is-active .svc-progress { opacity: 1; }
.is-playing .svc.is-active .svc-progress i { animation: svc-fill 7s linear forwards; }
.pillar-body:hover .svc-progress i, .pillar-body:focus-within .svc-progress i { animation-play-state: paused; }
@keyframes svc-fill { to { transform: scaleX(1); } }

/* image with a soft glow in the line colour and a floating caption */
.poster { position: relative; isolation: isolate; }
.poster::before {
  content: ""; position: absolute; inset: 10% -3% -5% 10%; z-index: -1; border-radius: 50%;
  background: var(--line-c); filter: blur(56px); opacity: .3;
}
.poster-img { aspect-ratio: 1 / 1; border-radius: clamp(24px, 2.6vw, 34px); overflow: hidden; background: var(--paper); border: 1px solid var(--glass-border); box-shadow: 0 40px 70px -50px rgba(30, 48, 48, .8); }
.poster-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .9s var(--ease); }
.poster-img img.is-fading { opacity: 0; transform: scale(1.03); }
.poster-cap {
  position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); color: var(--pine); font-size: .95rem; line-height: 1.25;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 28px -18px rgba(30, 48, 48, .6);
}
.poster-cap::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-c); box-shadow: 0 0 0 4px var(--line-soft); }
.poster-name { font-weight: 400; }

/* ---------- Brands: glass tiles on Mirei green ---------- */
.brands {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: var(--edge); padding-block: var(--section-y); border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(46% 60% at 100% 0%, rgba(14, 110, 124, .22), transparent 70%),
    radial-gradient(42% 55% at 0% 100%, rgba(63, 82, 82, .55), transparent 72%),
    var(--brand-grad);
}
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { margin-top: 16px; font-size: 1.1rem; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: #fff; font-weight: 400; }

.journey { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; font-size: 1rem; font-weight: 400; white-space: nowrap; }
.journey-line { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.journey-line::before, .journey-line::after {
  content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff;
}
.journey-line::before { left: 0; }
.journey-line::after { right: 0; box-shadow: 0 0 0 5px rgba(255, 255, 255, .25); }
/* a light travelling from Japan to Vietnam */
.journey-line i {
  position: absolute; inset: -2px 12px; border-radius: 3px;
  background: linear-gradient(90deg, transparent 0 44%, #fff 50%, transparent 56% 100%); background-size: 220% 100%;
  animation: travel 4.5s linear infinite;
}
@keyframes travel { from { background-position: 100% 0; } to { background-position: -10% 0; } }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile {
  --mx: 50%; --my: -40%;
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 236px; padding: 20px 20px 18px;
  border-radius: 26px; color: #fff; text-decoration: none;
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-6px); border-color: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 34px 44px -30px rgba(20, 36, 36, .8); }
.tile:focus-visible { outline-color: #fff; }
.tile-go {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); transition: background-color .3s, color .3s;
}
.tile:hover .tile-go, .tile:focus-visible .tile-go { background: #fff; color: var(--brand-800); }
.tile-logo { flex: 1; display: grid; place-items: center; padding: 34px 6px 20px; }
.tile-logo img { max-height: 56px; max-width: 82%; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.tile-name { font-size: 1.02rem; font-weight: 400; line-height: 1.3; }
.tile-year {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .26);
  font-size: 1.75rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.tile-year small { max-width: 13ch; font-size: .8rem; font-weight: 400; line-height: 1.3; letter-spacing: 0; }

/* ---------- Retailers: the terminus, logos passing by ---------- */
.retailers { padding-block: var(--section-y); overflow: hidden; }
.retail-head { display: flex; align-items: flex-start; gap: 28px; }
.terminus-mark { flex: none; width: 46px; height: 46px; margin: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 7px var(--paper), 0 0 0 13px var(--brand); }
.retail-kicker { margin-bottom: 12px; font-weight: 400; color: var(--brand-800); }
.retail-head > div { flex: 1; min-width: 0; }

.logo-wall { display: grid; gap: 14px; margin-top: clamp(36px, 4.5vw, 56px); }
.marquee {
  --gap: 14px;
  display: flex; gap: var(--gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  flex: none; display: flex; gap: var(--gap); min-width: 100%; justify-content: space-around;
  animation: marquee 64s linear infinite;
}
.marquee--rev .marquee-track { animation-direction: reverse; }
.logo-wall:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  flex: none; display: grid; place-items: center; width: clamp(148px, 13vw, 196px); height: 92px; padding: 20px 24px;
  border-radius: 22px; background: rgba(255, 255, 255, .74); border: 1px solid var(--glass-border);
  box-shadow: 0 16px 30px -26px rgba(30, 48, 48, .6);
  transition: background-color .25s;
}
.marquee-track li:hover { background: #fff; }
.marquee-track img { max-height: 38px; max-width: 100%; width: auto; object-fit: contain; filter: brightness(0); opacity: .6; transition: opacity .25s; }
.marquee-track li:hover img { opacity: .9; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

/* ---------- Contact ---------- */
.contact { padding-block: 0 var(--section-y); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding: 0; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .72));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
}
.contact-grid.wrap { max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.contact-intro {
  position: relative; color: #fff; padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 52px);
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(14, 110, 124, .22), transparent 70%),
    radial-gradient(70% 55% at 0% 100%, rgba(63, 82, 82, .6), transparent 72%),
    var(--brand-grad);
}
.contact-intro h2 { color: #fff; }
.contact-intro p { margin-top: 18px; font-size: 1.12rem; font-weight: 400; max-width: 40ch; }
.contact-teams { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.contact-teams li {
  padding: 6px 14px; border-radius: 999px; color: #fff; font-size: .92rem; font-weight: 400;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .5);
}

.form-card { padding: clamp(24px, 4vw, 52px); }
#contactForm { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 400; font-size: .95rem; color: var(--pine); padding: 0; }
.field legend { margin-bottom: 10px; }
.req { color: var(--c-social); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 18px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(238, 242, 241, .9); border: 1px solid transparent; border-radius: 16px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 140px; border-radius: 20px; }
.field select {
  appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231E3030' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background-color: var(--card); border-color: var(--brand); box-shadow: 0 0 0 5px rgba(117, 139, 139, .22);
}
.field ::placeholder { color: #7F908F; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 400; color: var(--ink); background: var(--card);
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.chip span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; transition: background-color .25s; }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 12px 20px -14px rgba(63, 82, 82, .9); }
.chip input:checked + span::before { background: #fff; border-color: #fff; opacity: 1; }
.chip input:focus-visible + span { outline: 3px solid var(--c-offline); outline-offset: 2px; }

.form-alert {
  margin-bottom: 20px; padding: 14px 18px; border-radius: 16px;
  background: #FBEDEA; color: var(--danger); border: 1px solid #F1C9C1; font-weight: 400;
}
.form-actions { display: flex; justify-content: flex-end; }
.form-actions .btn { min-width: 170px; justify-content: space-between; padding-left: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 var(--edge) var(--edge); border-radius: var(--r-xl); color: #fff; padding-top: clamp(48px, 6vw, 72px);
  background:
    radial-gradient(50% 70% at 100% 100%, rgba(63, 82, 82, .6), transparent 72%),
    var(--brand-grad);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 44px; }
.footer-name { color: #fff; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
.footer-brand p + p { margin-top: 10px; max-width: 40ch; font-weight: 400; }
.footer-heading { color: #fff; font-weight: 400; margin-bottom: 12px; opacity: .9; }
.footer-nav ul { display: grid; gap: 2px; }
.footer-nav a, .footer-base a { text-decoration: none; display: inline-block; padding: 5px 0; font-weight: 400; }
.footer-nav a:hover, .footer-base a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .95rem; font-weight: 400;
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, rgba(117, 139, 139, .92), rgba(92, 115, 115, .92));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 26px -12px rgba(30, 48, 48, .7);
  transition: transform .3s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Thank you / error ---------- */
.thanks { min-height: calc(100vh - var(--header-h) - 260px); display: grid; place-items: center; padding-block: 96px; }
.thanks-inner { max-width: 680px; text-align: center; }
.thanks-icon { color: var(--brand); margin: 0 auto 24px; }
.thanks h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.thanks p { margin: 18px auto 36px; color: var(--muted); font-size: 1.12rem; max-width: 56ch; }

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* aurora drifts slowly */
  body::before { animation: aurora 26s ease-in-out infinite alternate; }
  @keyframes aurora { to { transform: translate3d(2.5%, 2%, 0) scale(1.06) rotate(2deg); } }

  /* page load: headline, then the lines are laid out from Japan to Vietnam */
  .hero h1 { animation: rise .9s var(--ease) both; }
  .hero-side { animation: rise .9s var(--ease) .12s both; }
  .route { animation: rise 1s var(--ease) .22s both; }
  .route-trunk::before { animation: draw-x .5s ease-out .45s both; transform-origin: left center; }
  .route-line::before { animation: draw-x .9s cubic-bezier(.45, 0, .2, 1) calc(.8s + var(--i) * .12s) both; transform-origin: left center; }
  .route-line-name { animation: pop .35s ease-out calc(.95s + var(--i) * .12s) both; }
  .route-stops li { animation: pop .35s ease-out calc(1.15s + var(--i) * .12s + var(--j) * .14s) both; }
  .route-terminus { animation: pop .45s ease-out 1.7s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes draw-x { from { transform: scaleX(0); } }
  @keyframes draw-y { from { transform: scaleY(0); } }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } }

  /* sections ease in once as they are scrolled into view (class set in site.js) */
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
  .js [data-reveal].is-in, .js.no-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav { gap: 12px; }
  .main-nav ul a { padding: 9px 10px; }
  .header-inner { gap: 16px; }
}

/* below 1100px the map turns into a vertical route diagram */
@media (max-width: 1099px) {
  .route {
    display: block; padding: 28px 24px 24px;
    --x: 17px; /* centre of the vertical line */
  }
  .route-origin { position: relative; display: flex; align-items: center; min-height: 34px; padding-left: 56px; }
  .route-marker { right: auto; left: calc(var(--x) - 17px); top: 0; }
  .route-place { position: static; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .route-num { display: inline; font-size: 1.9rem; }
  .route-place-name { display: inline; margin: 0; }

  .route-trunk { height: 32px; }
  .route-trunk::before { left: calc(var(--x) - var(--bar) / 2); right: auto; top: 0; bottom: 0; width: var(--bar); height: auto; }

  .route-hub-capsule { position: relative; top: auto; height: 64px; width: 168px; left: auto; right: auto; }

  .route-lines { display: block; }
  .route-line { padding: 20px 0 8px 56px; }
  .route-line::before { left: calc(var(--x) - var(--bar) / 2); right: auto; top: 0; bottom: 0; width: var(--bar); height: auto; box-shadow: none; }
  .route-line-name { position: static; display: inline-block; margin-bottom: 8px; }
  .route-stops { display: block; height: auto; padding: 0; }
  .route-stops a { height: auto; padding: 10px 0; }
  .stop-dot { left: calc(var(--x) - 12px - 56px); top: 12px; }

  .route-terminus-capsule { position: relative; top: auto; height: auto; left: auto; right: auto; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; padding: 22px 24px; border-radius: 22px; }
  .term-name { flex-basis: 100%; }
  .term-fig strong { font-size: 2rem; }

  .tiles { gap: 10px; }
  .tile { min-height: 200px; padding: 14px 14px 14px; border-radius: 20px; }
  .tile-go { top: 10px; right: 10px; width: 30px; height: 30px; }
  .tile-go svg { width: 15px; height: 15px; }
  .tile-logo { padding: 30px 2px 14px; }
  .tile-logo img { max-height: 44px; max-width: 92%; }
  .tile-name { font-size: .95rem; }
  .tile-year { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 1.5rem; }
  .tile-year small { max-width: none; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 1099px) {
  .route-trunk::before, .route-line::before { animation-name: draw-y; transform-origin: center top; }
}

/* tablet: headline beside the vertical route */
@media (min-width: 760px) and (max-width: 1099px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
  .hero-top { grid-template-columns: 1fr; margin: 0; position: sticky; top: calc(var(--header-h) + var(--header-gap) + 28px); }
  .hero h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 10px 22px 22px; margin: 0; border-radius: 28px;
    background: linear-gradient(135deg, #6E8484, #586E6E);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 30px 50px -24px rgba(30, 48, 48, .8);
    visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .26); font-size: 1.08rem; }
  .main-nav ul a:hover, .main-nav ul a.is-active { background: none; }
  .nav-shop { justify-content: center; min-height: 50px; }
  .main-nav + .header-tools { margin-left: auto; }

  .pillar-head { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .pillar-body { grid-template-columns: 1fr; }
  .poster { display: none; }
  .stops { gap: 12px; }
  .stops::before { bottom: 80px; }
  .svc { padding: 18px 18px 18px; background: rgba(255, 255, 255, .9); border-color: #fff; box-shadow: 0 22px 44px -34px rgba(30, 48, 48, .55); }
  .svc::before { background: var(--line-c); box-shadow: inset 0 0 0 4px var(--card); }
  .svc-trigger { color: var(--pine); cursor: default; }
  .svc-text { opacity: 1; }
  .svc-progress { display: none; }
  .svc-inline-img { display: block; width: 100%; margin-top: 16px; border-radius: 16px; aspect-ratio: 1 / 1; object-fit: cover; }
  .line-nav-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .line-nav a { padding: 0; }

  /* long glass panels are costly to blur on phones: use a more opaque surface instead */
  .pillar-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(150deg, var(--line-tint) 0%, rgba(255, 255, 255, .92) 38%, rgba(255, 255, 255, .86) 100%); }
  .contact-grid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .94); }
}

@media (max-width: 759px) {
  .hero-top { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 190px; padding: 16px; }
  .tile-year { flex-direction: row; align-items: flex-end; }
  .tile-year small { max-width: 13ch; }
}

@media (max-width: 600px) {
  :root { --header-h: 56px; }
  body { font-size: 1rem; }
  h2 { font-size: 1.8rem; }
  .pillar-head h2 { font-size: 1.8rem; }
  .header-inner { padding: 0 6px 0 20px; gap: 10px; }
  .brand-mark img { height: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .btn-arrow { justify-content: space-between; padding-left: 28px; }
  .route { padding: 24px 16px 18px; margin-inline: -4px; }
  .route-line { padding-left: 48px; }
  .route-stops a { padding: 8px 0; min-height: 44px; }
  .stop-dot { left: calc(var(--x) - 12px - 48px); top: 10px; }
  .stop-name { display: block; }
  .route-origin { padding-left: 48px; }

  .pillar-panel { padding: 16px 14px 18px; }
  .line-chip { font-size: .88rem; padding: 6px 14px 6px 12px; }
  .pillar-lead { padding-left: 18px; }
  .stops { padding-left: 34px; }
  .stops::before { left: 9px; width: 4px; }
  .svc::before { left: -34px; top: 20px; width: 24px; height: 24px; border-width: 5px; box-shadow: inset 0 0 0 3px var(--card); }

  .journey { gap: 12px; font-size: .95rem; }
  .tile-logo img { max-height: 40px; }

  .retail-head { gap: 18px; }
  .terminus-mark { width: 30px; height: 30px; margin: 9px; box-shadow: 0 0 0 5px var(--paper), 0 0 0 9px var(--brand); }
  .marquee { --gap: 10px; }
  .logo-wall { gap: 10px; }
  .marquee-track { animation-duration: 48s; }
  .marquee-track li { width: 132px; height: 74px; padding: 14px 18px; border-radius: 18px; }
  .marquee-track img { max-height: 30px; }

  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-base { flex-direction: column; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  /* no endless motion: the logo wall becomes a static grid */
  .journey-line i { display: none; }
  .marquee { flex-wrap: wrap; padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; min-width: 0; width: 100%; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
