:root {
  --ink: #171717;
  --charcoal: #2c2c2c;
  --mid: #666666;
  --line: #b8b8b8;
  --soft: #ececec;
  --paper: #f7f7f7;
  --white: #ffffff;
  --page: 1440px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid #d2d2d2;
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  width: min(var(--page), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  align-items: center;
}

.wordmark {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-meta {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: #555555;
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.page-width {
  width: min(1220px, 100%);
  margin: 0 auto;
}

main > section:not(:first-child),
body > .site-footer {
  border-top: 0;
}

.page-hero {
  padding: 112px 48px 96px;
  background: var(--paper);
}

.hero-layout {
  display: block;
}

.eyebrow {
  margin: 0 0 18px;
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: 68px;
  line-height: 1.1;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: #4f4f4f;
  font-size: 19px;
}

.brand-index {
  padding: 88px 48px 96px;
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 54px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  justify-self: end;
  color: #555555;
  font-size: 17px;
}

.brand-jump-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  background: var(--white);
}

.brand-jump {
  display: grid;
  min-height: 340px;
  padding: 44px;
  place-items: center;
  align-content: center;
  background: var(--paper);
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.brand-jump:hover {
  background: var(--soft);
}

.brand-logo {
  position: relative;
  display: grid;
  width: 170px;
  aspect-ratio: 1;
  margin-bottom: 20px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #909090;
  border-radius: 50%;
  background-color: var(--white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.brand-jump strong {
  font-size: 21px;
}

.brand-jump > span:last-child {
  color: var(--mid);
  font-size: 14px;
}

.brand-panel {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
  background: var(--paper);
}

.brand-panel.reverse .brand-visual {
  order: 2;
}

.brand-panel.reverse .brand-copy {
  order: 1;
}

.brand-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background-color: #dedede;
  background-position: center;
  background-size: cover;
}

.brand-visual::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  content: "";
}

.brand-copy {
  display: flex;
  padding: 80px clamp(48px, 6vw, 100px);
  justify-content: center;
  flex-direction: column;
}

.brand-copy h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.15;
}

.lead {
  margin: 26px 0 0;
  color: #4f4f4f;
  font-size: 17px;
}

.brand-points {
  display: grid;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid #999999;
  list-style: none;
}

.brand-points li {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #c4c4c4;
}

.brand-points strong {
  font-size: 14px;
}

.brand-points span {
  color: #5b5b5b;
  font-size: 14px;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.primary:hover {
  color: var(--ink);
  background: var(--white);
}

.button.secondary {
  background: var(--white);
}

.button.secondary:hover {
  background: var(--soft);
}

.asset-note {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  max-width: 300px;
  padding: 9px 12px;
  border: 1px solid #9f9f9f;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.9);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.brand-logo .asset-note {
  position: static;
  max-width: 135px;
  overflow-wrap: anywhere;
  text-align: center;
}

.image-ready > .asset-note {
  display: none;
}

.site-footer {
  padding: 54px 48px 28px;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 16px;
}

.footer-grid h2 {
  font-size: 28px;
}

.footer-grid h3 {
  font-size: 14px;
}

.footer-grid p {
  margin: 8px 0;
  color: #666666;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #444444;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  width: min(1220px, 100%);
  margin: 46px auto 0;
  padding-top: 22px;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #d0d0d0;
  color: #777777;
  font-size: 12px;
}

.footer-bottom a {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 160px 1fr 120px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .page-hero h1 {
    font-size: 54px;
  }

  .brand-panel {
    grid-template-columns: 1fr 1fr;
  }

  .brand-copy {
    padding: 64px 42px;
  }

  .brand-copy h2 {
    font-size: 40px;
  }

  .brand-points li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    display: flex;
    width: min(100% - 32px, var(--page));
    justify-content: space-between;
  }

  .desktop-nav,
  .header-meta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--ink);
    background: var(--white);
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 90;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid #c7c7c7;
    font-weight: 700;
    text-decoration: none;
  }

  .page-hero,
  .brand-index {
    padding: 64px 20px;
  }

  .hero-layout,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section-heading h2,
  .brand-copy h2 {
    font-size: 36px;
  }

  .section-heading > p {
    justify-self: start;
  }

  .brand-jump-grid {
    grid-template-columns: 1fr;
  }

  .brand-jump {
    min-height: 300px;
  }

  .brand-panel,
  .brand-panel.reverse {
    grid-template-columns: 1fr;
  }

  .brand-panel .brand-visual,
  .brand-panel.reverse .brand-visual {
    min-height: 480px;
    order: 1;
  }

  .brand-panel .brand-copy,
  .brand-panel.reverse .brand-copy {
    padding: 58px 20px 64px;
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer {
    padding: 48px 20px 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
