/* =====================================================================
   Primeavest — public site styles
   Layouts:  Phone < 768px  ·  Tablet / iPad 768–1199px  ·  Desktop ≥ 1200px
   ===================================================================== */
:root {
  --bg: #0a0a0c; --bg-2: #101013; --panel: #15151a; --panel-2: #1c1c22;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #eeede8; --muted: #a09d95; --dim: #6f6d67;
  --gold: #c9a961; --gold-2: #e4c98b; --gold-soft: rgba(201,169,97,.12); --on-gold: #17130a;
  --green: #6fbf8e; --amber: #e0b25a; --red: #e07a6a; --blue: #7fa6d9;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px; --radius-sm: 10px;
  --gutter: 48px; --section: 128px; --nav-h: 80px;
  --shadow: 0 40px 80px -30px rgba(0,0,0,.85);
}
@media (max-width: 1199px) { :root { --gutter: 40px; --section: 96px; --nav-h: 72px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; --section: 72px; --nav-h: 64px; --radius: 14px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.display { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.display em { font-style: italic; color: var(--gold-2); }
h2.display { font-size: clamp(34px, 4.6vw, 58px); }
.lede { color: var(--muted); font-size: 17px; max-width: 58ch; }
@media (max-width: 767px) { .lede { font-size: 16px; } body { font-size: 15px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px;
  border: 1px solid transparent; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, color .2s, background .2s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(201,169,97,.6); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.link { color: var(--gold); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; padding: 0; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled, .nav.menu-open { background: rgba(10,10,12,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; border: 1px solid var(--gold); border-radius: 9px; display: grid; place-items: center; color: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 23px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .3em; color: var(--muted); }
.nav-links { display: flex; gap: 34px; font-size: 13.5px; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.nav.menu-open .menu-btn span { background: transparent; }
.nav.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.nav.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 59; background: rgba(10,10,12,.97); backdrop-filter: blur(16px);
  padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; overflow-y: auto; }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a.m-link { font-family: var(--serif); font-size: 34px; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.m-link::after { content: '→'; font-family: var(--sans); font-size: 18px; color: var(--gold); }
.mobile-menu .m-actions { display: grid; gap: 10px; margin-top: 28px; }
.mobile-menu .m-contact { margin-top: auto; padding-top: 32px; color: var(--muted); font-size: 14px; line-height: 2; }
@media (max-width: 1199px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 767px) {
  .nav-cta .btn-gold { display: none; }
  .brand-name { font-size: 19px; } .brand-name small { display: none; }
  .brand-mark { width: 32px; height: 32px; }
}
@media (min-width: 768px) and (max-width: 1199px) { .mobile-menu a.m-link { font-size: 42px; } .mobile-menu .m-actions { grid-template-columns: 1fr 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 110px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 520px at 78% 25%, rgba(201,169,97,.15), transparent 60%), radial-gradient(700px 500px at 5% 95%, rgba(127,166,217,.06), transparent 60%); }
.hero-grid-bg { position: absolute; inset: 0; opacity: .32;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero h1 { font-size: clamp(44px, 6.6vw, 96px); margin: 22px 0 26px; }
.hero-points { display: flex; gap: 28px; margin-top: 36px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.hero-points span { display: flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--gold); }

.track-card { position: relative; border: 1px solid var(--line-2); border-radius: 24px; padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); box-shadow: var(--shadow); }
.track-card h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 10px 0 8px; }
.track-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.track-field { display: flex; gap: 10px; padding: 7px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s; }
.track-field:focus-within { border-color: var(--gold); }
.track-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 16px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.track-field input::placeholder { text-transform: none; letter-spacing: 0; color: var(--dim); }
.track-hint { margin-top: 14px; font-size: 12.5px; color: var(--dim); }
.track-hint button { background: none; border: 0; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.track-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 26px; }
.track-foot div { background: var(--bg-2); padding: 14px 16px; font-size: 12px; color: var(--muted); }
.track-foot b { display: block; color: var(--text); font-weight: 500; font-size: 13px; }

@media (max-width: 1199px) {
  .hero { padding: calc(var(--nav-h) + 72px) 0 88px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(52px, 8.4vw, 84px); max-width: 14ch; }
  .track-card { max-width: 720px; }
}
@media (max-width: 767px) {
  .hero { padding: calc(var(--nav-h) + 40px) 0 56px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); margin: 16px 0 18px; }
  .hero-points { gap: 10px 18px; margin-top: 24px; font-size: 13px; }
  .track-card { padding: 22px; border-radius: 20px; }
  .track-card h2 { font-size: 27px; }
  .track-field { flex-direction: column; border-radius: 16px; padding: 6px; }
  .track-field input { height: 48px; padding: 0 12px; }
  .track-field .btn { width: 100%; border-radius: 12px; }
  .track-foot { grid-template-columns: 1fr; }
  .track-foot div { display: flex; justify-content: space-between; gap: 12px; }
  .track-foot b { display: inline; }
}

/* ---------- feature strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.strip-item:last-child { border-right: 0; }
.strip-item svg { color: var(--gold); flex: none; margin-top: 2px; }
.strip-item b { display: block; font-weight: 500; font-size: 14.5px; }
.strip-item span { font-size: 13px; color: var(--muted); }
@media (max-width: 1199px) { .strip-inner { grid-template-columns: 1fr 1fr; } .strip-item:nth-child(2) { border-right: 0; } .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 767px) { .strip-inner { grid-template-columns: 1fr; } .strip-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; } .strip-item:last-child { border-bottom: 0; } }

/* ---------- sections ---------- */
section.block { padding: var(--section) 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.section-head .display { margin-top: 14px; }
@media (max-width: 767px) { .section-head { margin-bottom: 36px; gap: 16px; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg); padding: 40px 34px; transition: background .3s; display: flex; flex-direction: column; }
.service:hover { background: var(--panel); }
.service .num { font-family: var(--serif); color: var(--dim); font-size: 15px; letter-spacing: .1em; }
.service .icon { color: var(--gold); margin: 30px 0 22px; }
.service h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin-bottom: 10px; line-height: 1.15; }
.service p { color: var(--muted); font-size: 14.5px; }
.service ul { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.service li::before { content: '—'; color: var(--gold); margin-right: 10px; }
@media (max-width: 1199px) {
  .services { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 0 28px; padding: 34px; align-items: start; }
  .service .icon { margin: 0; grid-row: 1 / 4; }
  .service .num { display: none; }
  .service ul { grid-column: 3; grid-row: 1 / 4; margin: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .service { display: flex; padding: 28px 22px; }
  .service .icon { margin: 0 0 16px; }
  .service ul { padding: 16px 0 0; margin-top: 16px; border-left: 0; border-top: 1px solid var(--line); }
  .service h3 { font-size: 26px; }
}

/* cargo categories: grid on desktop/tablet, swipeable row on phones */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--panel), var(--bg)); transition: border-color .3s, transform .3s; }
.cat:hover { border-color: rgba(201,169,97,.5); transform: translateY(-3px); }
.cat h4 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.1; margin-bottom: 6px; }
.cat p { font-size: 13px; color: var(--muted); }
@media (max-width: 1199px) { .cats { grid-template-columns: repeat(3, 1fr); } .cat { min-height: 190px; } }
@media (max-width: 767px) {
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 78%; scroll-snap-align: start; min-height: 200px; }
  .swipe-hint { display: block !important; }
}
.swipe-hint { display: none; font-size: 12px; color: var(--dim); margin-top: 12px; }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.process::before { content: ''; position: absolute; top: 22px; left: 22px; right: 12%; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line-2)); }
.p-step { position: relative; padding-right: 28px; }
.p-step::before { counter-increment: s; content: '0' counter(s); display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--bg-2); color: var(--gold); font-family: var(--serif); font-size: 18px; margin-bottom: 24px; position: relative; font-variant-numeric: lining-nums; }
.p-step h4 { font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.p-step p { color: var(--muted); font-size: 14px; }
@media (max-width: 1199px) { .process { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .process::before { display: none; } }
@media (max-width: 767px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .p-step { display: grid; grid-template-columns: 45px 1fr; gap: 0 18px; padding: 0 0 28px; }
  .p-step::before { margin: 0; grid-row: 1 / 3; }
  .p-step:not(:last-child)::after { content: ''; position: absolute; left: 22px; top: 48px; bottom: 4px; width: 1px; background: var(--line-2); }
}

/* statuses legend */
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.legend div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); }
.legend p { color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 1199px) { .legend { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .legend { grid-template-columns: 1fr; margin-top: 36px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 16.5px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; font-size: 14.5px; }
@media (max-width: 1199px) { .faq-wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 767px) { .faq summary { font-size: 15.5px; padding: 18px 0; } .faq details p { padding-right: 0; } }

/* contact */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-info { margin-top: 32px; display: grid; gap: 18px; }
.contact-info div { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 14.5px; }
.contact-info svg { color: var(--gold); flex: none; margin-top: 3px; }
.contact-info b { display: block; color: var(--text); font-weight: 500; }
.contact-card { border: 1px solid var(--line-2); border-radius: 22px; padding: 34px; background: var(--bg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input, .field input, .field select, .field textarea { width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: 0; transition: border-color .2s; font-size: 15px; min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field select option { background: var(--panel); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 12px; color: var(--dim); margin-top: 12px; }
@media (max-width: 1199px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } .contact-card { padding: 22px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 32px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a:hover { color: var(--gold-2); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
@media (max-width: 1199px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .foot-grid > :first-child { grid-column: 1 / -1; } footer { padding-bottom: 100px; } }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; border: 1px solid; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-label_created { color: var(--muted); border-color: var(--line-2); }
.s-secured { color: var(--gold-2); border-color: rgba(201,169,97,.4); }
.s-in_transit, .s-out_for_delivery { color: var(--blue); border-color: rgba(127,166,217,.4); }
.s-customs, .s-on_hold { color: var(--amber); border-color: rgba(224,178,90,.4); }
.s-delivered { color: var(--green); border-color: rgba(111,191,142,.4); }
.s-exception { color: var(--red); border-color: rgba(224,122,106,.4); }

/* ---------- tracking result: modal (desktop/tablet) · full-screen sheet (phone) ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,7,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; align-items: flex-start; justify-content: center; padding: 56px 24px; overflow-y: auto; overscroll-behavior: contain; }
.overlay.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet { width: min(900px, 100%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; animation: rise .4s cubic-bezier(.2,.8,.2,1); }
.sheet-head { padding: 32px 36px; border-bottom: 1px solid var(--line); position: relative; background: radial-gradient(600px 200px at 100% 0, rgba(201,169,97,.12), transparent); }
.icon-close { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.icon-close:hover { color: var(--text); border-color: var(--gold); }
.tn { font-family: var(--serif); font-size: 38px; letter-spacing: .03em; margin: 6px 0 14px; font-variant-numeric: lining-nums; word-break: break-all; line-height: 1.1; }
.sheet-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 28px 36px; border-bottom: 1px solid var(--line); }
.route small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.route b { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.2; display: block; }
.route .place:last-child { text-align: right; }
.route .sub { font-size: 12.5px; color: var(--dim); }
.route .line { width: 150px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line-2)); position: relative; }
.route .line::after { content: '✦'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); color: var(--gold); font-size: 12px; background: var(--bg-2); padding: 0 8px; }
.progress { padding: 26px 36px; border-bottom: 1px solid var(--line); }
.bar { height: 3px; background: var(--line-2); border-radius: 2px; position: relative; margin: 6px 0 16px; }
.bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 2px; transition: width 1s ease; }
.milestones { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); letter-spacing: .05em; gap: 6px; }
.milestones span.on { color: var(--gold-2); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.specs div { padding: 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div:nth-child(4n) { border-right: 0; }
.specs div:nth-last-child(-n+4) { border-bottom: 0; }
.specs small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.specs b { font-weight: 500; font-size: 14px; }
.contents { padding: 20px 36px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.timeline { padding: 30px 36px 40px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.tl-item { display: grid; grid-template-columns: 150px 22px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .when { font-size: 12.5px; color: var(--muted); text-align: right; padding-top: 1px; }
.tl-item .when b { display: block; color: var(--text); font-weight: 500; font-size: 13px; }
.tl-item .dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); margin: 6px auto 0; position: relative; z-index: 1; }
.tl-item:first-child .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.tl-item:not(:last-child)::after { content: ''; position: absolute; left: calc(150px + 16px + 11px); top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.tl-item .what b { font-weight: 500; display: block; }
.tl-item .what p { color: var(--muted); font-size: 14px; }
.tl-item .what small { color: var(--dim); font-size: 12px; }
@media (max-width: 1199px) {
  .overlay { padding: 40px 32px; }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .route .line { width: 90px; }
}
@media (max-width: 767px) {
  .overlay { padding: 0; align-items: stretch; background: var(--bg-2); }
  .sheet { border-radius: 0; border: 0; min-height: 100%; width: 100%; }
  .sheet-head { padding: 22px 20px; position: sticky; top: 0; z-index: 2; background: var(--bg-2); }
  .icon-close { top: 18px; right: 16px; }
  .tn { font-size: 27px; padding-right: 48px; }
  .route { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .route .line { width: 100%; }
  .route .place:last-child { text-align: left; }
  .route b { font-size: 24px; }
  .progress, .contents { padding: 20px; }
  .milestones { font-size: 10px; }
  .milestones span:not(.cur) { display: none; }
  .milestones span.cur { display: block; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div { padding: 14px 20px; border-bottom: 1px solid var(--line) !important; }
  .specs div:nth-child(4n) { border-right: 1px solid var(--line); }
  .specs div:nth-child(2n) { border-right: 0; }
  .timeline { padding: 24px 20px 40px; }
  .tl-item { grid-template-columns: 22px 1fr; gap: 6px 14px; }
  .tl-item .dot { grid-row: 1 / 3; margin-top: 4px; }
  .tl-item .when { grid-column: 2; text-align: left; order: 2; display: flex; gap: 8px; font-size: 12px; }
  .tl-item .when b { display: inline; font-size: 12px; }
  .tl-item:not(:last-child)::after { left: 11px; }
}

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); opacity: 0; z-index: 300; max-width: calc(100vw - 32px);
  background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 20px; border-radius: 999px; font-size: 13.5px; transition: all .3s; pointer-events: none; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(224,122,106,.5); color: var(--red); }
@media (max-width: 767px) { .toast { bottom: 90px; border-radius: 14px; } }

/* ---------- live chat: floating panel (desktop/tablet) · full screen (phone) ---------- */
.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 120; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 40px -12px rgba(201,169,97,.7); transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--on-gold); color: var(--gold-2); font-size: 11px; display: none; place-items: center; padding: 0 6px; letter-spacing: 0; }
.chat-fab .badge.on { display: grid; }
.chat-panel { position: fixed; right: 24px; bottom: 94px; z-index: 130; width: 390px; height: min(600px, calc(100vh - 130px)); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 22px; display: none; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.chat-panel.open { display: flex; }
.chat-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: radial-gradient(400px 120px at 100% 0, rgba(201,169,97,.14), transparent); }
.chat-head b { font-family: var(--serif); font-weight: 400; font-size: 23px; display: block; line-height: 1.1; }
.chat-head small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head small i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; }
.chat-head small i.on { background: var(--green); box-shadow: 0 0 0 3px rgba(111,191,142,.2); }
.chat-head .icon-close { position: static; width: 36px; height: 36px; flex: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-start { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; }
.chat-start p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.chat-start textarea.input { min-height: 96px; resize: vertical; }
.chat-off { padding: 24px 20px; color: var(--muted); font-size: 14px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { display: block; font-size: 10.5px; opacity: .65; margin-top: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-note { align-self: center; font-size: 12.5px; color: var(--dim); text-align: center; padding: 4px 10px; }
.chat-input { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; background: var(--bg-2); }
.chat-input textarea { flex: 1; resize: none; height: 46px; max-height: 120px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; outline: 0; font-size: 15px; }
.chat-input textarea:focus { border-color: var(--gold); }
.chat-input .btn { height: 46px; padding: 0 18px; }
@media (min-width: 768px) and (max-width: 1199px) { .chat-panel { width: 420px; height: min(640px, calc(100vh - 140px)); } }
@media (max-width: 767px) {
  .chat-fab { right: 16px; bottom: 16px; width: 58px; height: 58px; padding: 0; justify-content: center; }
  .chat-fab .lbl { display: none; }
  .chat-fab .badge { position: absolute; top: -2px; right: -2px; }
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; bottom: 0; right: 0; }
  .chat-panel.open ~ .chat-fab { display: none; }
  .chat-input { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .chat-input textarea { font-size: 16px; } /* prevents iOS zoom */
  .input, .field input, .field select, .field textarea { font-size: 16px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* keep the chat button out of the way of full-screen layers */
.chat-fab { z-index: 90; }
body.menu-open .chat-fab { display: none; }
@media (min-width: 1200px) { .hero-points { gap: 12px 22px; } }
