/* Beyond Innovation brand tokens
   Navy and ice blue come from the brand card: ice for large light surfaces,
   navy for accents, buttons and dark surfaces, ink for the mark and text. */
:root {
  --navy: #2b5278;
  --ice: #dce8ef;
  --ice-2: #e9f0f4;
  --paper: #f3f5f5;
  --ink: #0f1e33;
  --ink-2: #34445a;
  --muted: #5a6878;
  --line: #ccd9e1;
  --white: #ffffff;

  --display: "Montserrat", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --rail: 220px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

html[lang="en"] body { line-height: 1.65; }

a { color: inherit; }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

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

.phrase { display: inline-block; }

/* Brand lockup: mark, English name, Chinese name (as in the logo) */

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: auto;
  flex: none;
  color: var(--ink);
}
.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1px;
  vector-effect: non-scaling-stroke;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.brand-en {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.brand-zh {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.8em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(243 245 245 / 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-2);
}
.nav-link:hover { color: var(--navy); }
.lang {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
}
.lang:hover { background: var(--ink); color: var(--white); }

/* Hero: ice-blue field with the mark expanding outward */

.hero {
  background: var(--ice);
  padding: clamp(48px, 9vw, 128px) 0 clamp(64px, 9vw, 128px);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 22px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
}
html[lang="en"] h1 {
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--ink-2);
  max-width: 32em;
  margin: 0 0 36px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
}
.button:hover { background: var(--ink); }
.text-link {
  font-size: 15px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}
.text-link:hover { color: var(--navy); text-decoration-color: currentColor; }

/* The outer lines reach about 37% of the mark's width beyond it on each
   side, so the mark sits at the column's right edge and bleeds off the page
   rather than into the text. */
.hero-art {
  justify-self: end;
  width: min(75%, 340px);
}
.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-art path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: miter;
}
.hero-art .echo path { stroke: var(--navy); stroke-width: 2; }

.draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.3s cubic-bezier(0.6, 0, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
.echo path {
  opacity: 0;
  animation: fade 1.2s ease forwards;
  animation-delay: var(--d, 1s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: var(--o, 0.3); } }

/* On narrow screens the mark sits on the hero's bottom edge, with its
   outer lines running off the bottom and sides. */
@media (max-width: 860px) {
  .hero { padding-bottom: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art {
    justify-self: center;
    width: min(78%, 340px);
    margin-top: 56px;
    margin-bottom: max(-28px, -8%);
  }
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--ice-2); border-top-color: transparent; }
.section-alt + .section { border-top-color: transparent; }

.section-head {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head:last-child { margin-bottom: 0; }
.label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  padding-top: 0.9em;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  margin: 0;
}
html[lang="en"] h2 { line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
.section-intro {
  margin: 20px 0 0;
  color: var(--ink-2);
  max-width: 38em;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .label { padding-top: 0; }
}

/* Numbered columns (services, product range) */

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
}
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col { padding: 28px 28px 4px 0; }
.col + .col {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.section-alt .col + .col { border-left-color: rgb(43 82 120 / 0.2); }
.num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
}
.col h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 14px 0 2px;
}
.sub {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.col p { color: var(--ink-2); margin: 16px 0 0; }

.aside-note {
  margin: 40px 0 0;
  color: var(--ink-2);
}
.aside-note strong {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
}

@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-4 .col:nth-child(3) { padding-left: 0; border-left: 0; }
  .cols-4 .col:nth-child(n + 3) { border-top: 1px solid rgb(43 82 120 / 0.2); margin-top: 24px; }
}
@media (max-width: 860px) {
  .cols:not(.cols-4) { grid-template-columns: minmax(0, 1fr); }
  .cols:not(.cols-4) .col,
  .cols:not(.cols-4) .col + .col {
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .cols-4 .col,
  .cols-4 .col + .col {
    padding: 22px 0;
    margin-top: 0;
    border-left: 0;
    border-top: 0;
    border-bottom: 1px solid rgb(43 82 120 / 0.2);
  }
}

/* Roots timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}
.timeline li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.t-mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--navy);
  padding-top: 0.2em;
}
.timeline h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 0 0 6px;
}
.timeline p { margin: 0; color: var(--ink-2); }
.timeline li.now .t-mark { color: var(--ink); }

@media (max-width: 560px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Contact: ice surface */

.contact {
  background: var(--ice);
  color: var(--ink);
  border-top: 0;
}
.contact .section-intro { color: var(--ink-2); }
.email {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  color: var(--navy);
  text-decoration-color: rgb(43 82 120 / 0.35);
}
.email:hover { text-decoration-color: currentColor; }

/* Footer */

.site-footer {
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.site-footer .brand { color: var(--ink); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (max-width: 760px) {
  .nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw path { animation: none; stroke-dashoffset: 0; }
  .echo path { animation: none; opacity: var(--o, 0.3); }
}
