/* Vespera Global (緯博國際) site styles.
   Palette shared with the group's other sites: navy #08182A, orange #F26B21, teal #0B7A8C.
   Motif: lines of latitude. Horizontal rules carry the structure; the 22nd parallel is the one accent. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2?v=e3a28eade2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --dusk: #08182A;
  --vesper: #F26B21;
  --gulf: #0B7A8C;
  --paper: #F3F6F8;
  --rule: #D3DDE3;
  --slate: #52626E;
  --ink: #08182A;
  --on-dusk: #FFFFFF;
  --on-dusk-soft: #A9BAC6;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--vesper); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 20;
  padding: 8px 14px;
  background: #FFFFFF;
  color: var(--ink);
}
.skip:focus { left: 8px; }

.dusk { background: var(--dusk); color: var(--on-dusk); }

/* ---------- header ---------- */

.top-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  color: var(--on-dusk);
}
.brand img { width: 38px; height: 38px; flex: none; }
.brand-words { display: block; }
.brand-en {
  display: block;
  font-size: 1.125rem;
  font-weight: 640;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-zh {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.42em;
  color: var(--on-dusk-soft);
}

.nav { display: none; gap: 30px; }
.nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--on-dusk-soft);
}
.nav a:hover { color: var(--on-dusk); }

.lang {
  flex: none;
  padding: 7px 14px;
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--on-dusk);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}
.lang:hover { border-color: var(--on-dusk); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(36px, 7vw, 92px); }

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  font-weight: 560;
  font-stretch: 125%;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--on-dusk);
}
.hero h1:lang(zh) {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 60ch;
  margin-top: 26px;
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  line-height: 1.6;
  color: var(--on-dusk-soft);
}
.lead:lang(zh) { max-width: 38em; line-height: 1.8; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 620;
  font-stretch: 112%;
  text-decoration: none;
  color: var(--dusk);
  background: var(--vesper);
  border-radius: 3px;
}
.btn:hover { background: #FF7D33; }

.link-light {
  color: var(--on-dusk);
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 6px;
}
.link-light:hover { text-decoration-color: var(--on-dusk); }

/* Each phrase of the headline stays together; on narrow screens a phrase wraps within itself. */
.phrase { display: inline-block; }

/* ---------- the latitude band ---------- */

.band {
  margin-block: clamp(44px, 7vw, 80px) 0;
  padding-bottom: clamp(36px, 5vw, 60px);
}

.band-plot {
  position: relative;
  aspect-ratio: 927.18 / 340;
}
.band-land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.lat, .parallel, .route {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.lat { background: rgba(255, 255, 255, 0.08); }
.lat-label {
  position: absolute;
  left: 0;
  bottom: 4px;
  font-size: 0.6875rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.38);
}
.parallel { background: rgba(242, 107, 33, 0.4); }
.parallel-label {
  position: absolute;
  right: 0;
  bottom: 5px;
  font-size: 0.75rem;
  line-height: 1;
  font-stretch: 112%;
  color: var(--vesper);
}

.route {
  right: auto;
  height: 2px;
  margin-top: -0.5px;
  background: var(--vesper);
  transform-origin: right center;
  animation: route 1.7s cubic-bezier(0.55, 0.05, 0.25, 1) 0.35s both;
}

.pin {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #D6E3EB;
}
.pin-major {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--vesper);
  box-shadow: 0 0 0 5px rgba(242, 107, 33, 0.22);
}

.tag {
  position: absolute;
  font-size: 0.8125rem;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--on-dusk-soft);
}
.tag, .lat-label, .parallel-label {
  text-shadow: 0 0 3px var(--dusk), 0 0 8px var(--dusk), 0 0 14px var(--dusk);
}
.tag b {
  display: block;
  font-weight: 600;
  font-stretch: 112%;
  color: var(--vesper);
}
.tag-major { font-size: 0.9375rem; font-weight: 560; color: var(--on-dusk); }
.tag-below-right { transform: translate(10px, 12px); }
.tag-above-left  { transform: translate(calc(-100% - 10px), calc(-100% - 12px)); text-align: right; }
.tag-above       { transform: translate(-50%, calc(-100% - 9px)); }
.tag-left        { transform: translate(calc(-100% - 10px), -50%); }

.at-hongkong { animation: appear 0.5s ease 0.15s both; }
.at-jeddah   { animation: appear 0.6s ease 1.95s both; }

.band figcaption {
  max-width: 72ch;
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--on-dusk-soft);
}

@keyframes route { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 719px) {
  .pin-minor, .tag-minor, .lat-label, .parallel-label { display: none; }
  .tag-major { font-size: 0.8125rem; }
  .tag { font-size: 0.75rem; }
  .pin-major { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 4px rgba(242, 107, 33, 0.22); }
  .tag-below-right { transform: translate(6px, 9px); }
  .tag-above-left  { transform: translate(calc(-100% - 6px), calc(-100% - 9px)); }
}

/* ---------- content sections ---------- */

.section { padding-block: clamp(60px, 8.5vw, 112px); }
.paper { background: var(--paper); }

.section h2, .contact h2 {
  max-width: 28ch;
  text-wrap: balance;
  margin-bottom: clamp(26px, 3.5vw, 44px);
  font-size: clamp(1.75rem, 3.1vw, 2.375rem);
  font-weight: 600;
  font-stretch: 118%;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section h2:lang(zh), .contact h2:lang(zh) { letter-spacing: 0.02em; line-height: 1.3; }

h3 {
  font-size: 1.25rem;
  font-weight: 620;
  font-stretch: 108%;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h3:lang(zh) { letter-spacing: 0.02em; }

.section p { color: var(--slate); }
.section p:lang(zh) { line-height: 1.8; }

/* services: rows ruled like parallels */
.rows { border-bottom: 1px solid var(--rule); }
.row {
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-top: 1px solid var(--rule);
}
.row:first-child { border-top: 2px solid var(--ink); }
.row p { max-width: 62ch; }

/* supply */
.supply {
  display: grid;
  gap: 34px 48px;
  padding: 0;
  list-style: none;
}
.supply li { max-width: 46ch; }
.supply h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--gulf);
}
.supply p { margin-top: 8px; }

/* process: four steps on one line, numbered because they happen in order */
.steps {
  position: relative;
  display: grid;
  gap: 30px;
  padding: 0;
  list-style: none;
}
.steps .n {
  display: block;
  margin-bottom: 12px;
  font-size: 1.625rem;
  font-weight: 600;
  font-stretch: 125%;
  line-height: 1;
  color: var(--vesper);
}
.steps p { margin-top: 8px; max-width: 34ch; }

/* about the name */
.intro { max-width: 60ch; font-size: 1.1875rem; }
.defs {
  display: grid;
  gap: 36px 56px;
  margin-top: clamp(30px, 4vw, 48px);
}
.defs > div { padding-top: 24px; border-top: 1px solid var(--rule); }
.defs dt {
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  font-weight: 520;
  font-stretch: 125%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.defs dt:lang(zh) {
  font-family: "PingFang TC", "PingFang SC", "Hiragino Sans TC", "Microsoft JhengHei", "Noto Sans TC",
               "Noto Sans CJK TC", "Source Han Sans TC", var(--sans);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.defs dd { max-width: 46ch; margin-top: 14px; color: var(--slate); }
.defs dd:lang(zh) { line-height: 1.8; }

/* contact */
.contact { padding-block: clamp(64px, 9vw, 120px); }
.contact h2 { color: var(--on-dusk); }
.contact-text { max-width: 56ch; color: var(--on-dusk-soft); }
.contact-text:lang(zh) { line-height: 1.8; }
.mail {
  display: inline-block;
  margin-top: clamp(26px, 3.5vw, 40px);
  font-size: clamp(1.0625rem, 5vw, 2.75rem);
  font-weight: 520;
  font-stretch: 125%;
  letter-spacing: -0.015em;
  color: var(--on-dusk);
  text-decoration-line: underline;
  text-decoration-color: var(--vesper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--vesper); }
.where { margin-top: 18px; font-size: 0.9375rem; color: var(--on-dusk-soft); }

/* footer */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 26px;
  font-size: 0.875rem;
  color: var(--on-dusk-soft);
}
.foot a { color: var(--on-dusk-soft); text-underline-offset: 4px; }
.foot a:hover { color: var(--on-dusk); }

/* 404 */
.notfound { min-height: 100vh; }
.notfound main { padding-block: 48px; }
.notfound .brand { margin-bottom: 72px; }
.notfound h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 560;
  font-stretch: 125%;
  letter-spacing: -0.02em;
}
.notfound p { margin-top: 8px; color: var(--on-dusk-soft); }
.notfound p a { color: var(--on-dusk); text-underline-offset: 4px; }

/* ---------- wider screens ---------- */

@media (min-width: 760px) {
  .row { grid-template-columns: minmax(240px, 1fr) 2fr; gap: 48px; }
  .supply { grid-template-columns: 1fr 1fr; }
  .defs { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 13px;
    height: 1px;
    background: var(--rule);
  }
  .steps .n {
    position: relative;
    display: inline-block;
    padding-right: 14px;
    margin-bottom: 18px;
    background: #FFFFFF;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route, .at-hongkong, .at-jeddah { animation: none; }
}
