.credentials-section,
.ecosystem-section {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin-inline: auto;
  padding-block: var(--space-9);
}

.credentials-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr);
  column-gap: var(--space-8);
  row-gap: 88px;
  border-top: 1px solid var(--color-line);
}

.credentials-visual {
  position: absolute;
  top: 22px;
  right: 0;
  z-index: 0;
  width: min(34%, 450px);
  pointer-events: none;
}

.credentials-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.credentials-lead h2,
.story-copy h2,
.ecosystem-intro h2,
.technology-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(54px, 6.5vw, 102px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .88;
  text-transform: uppercase;
}

html[lang="en"] .credentials-lead h2 { text-transform: uppercase; }
 .credentials-lead h2 .display-line { display: inline; }
html[lang="en"] .credentials-lead h2 .display-line:first-child { margin-right: .2em; }

.credentials-account {
  margin-top: var(--space-4);
}

.credentials-account strong {
  margin-top: var(--space-2);
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.text-link {
  width: fit-content;
  margin-top: var(--space-4);
  padding-bottom: 6px;
  display: inline-flex;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-line-strong);
  font-size: 13px;
  font-weight: 600;
}

.credentials-account .text-link {
  padding: 11px 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: 2px;
}

.licence-list {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.licence-item {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  transition: background-color 220ms cubic-bezier(.16, 1, .3, 1), border-color 220ms cubic-bezier(.16, 1, .3, 1), color 220ms cubic-bezier(.16, 1, .3, 1);
}

.licence-item span,
.capability > span {
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.licence-item > span,
.capability > span,
.capability > div { transition: transform 220ms cubic-bezier(.16, 1, .3, 1); }

.licence-item h3 { font-size: clamp(18px, 2vw, 28px); font-weight: 400; letter-spacing: -.025em; transition: color 220ms cubic-bezier(.16, 1, .3, 1), transform 220ms cubic-bezier(.16, 1, .3, 1); }
.licence-item .licence-arrow {
  position: absolute;
  top: 50%;
  right: 30px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 220ms cubic-bezier(.16, 1, .3, 1);
}

.portfolio-story,
.technology-story {
  position: relative;
  min-height: 94dvh;
  overflow: hidden;
  isolation: isolate;
}

.story-media,
.technology-media { position: absolute; inset: 0; z-index: -2; }
.story-media img,
.technology-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media img { object-position: 50% 48%; filter: saturate(.65) brightness(.58); }
.technology-media img { object-position: 50% 50%; filter: saturate(.5) brightness(.48); }

.portfolio-story::after,
.technology-story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12,13,14,.94) 0%, rgba(12,13,14,.64) 45%, rgba(12,13,14,.14) 80%), linear-gradient(0deg, rgba(12,13,14,.7), transparent 50%);
}

.story-copy,
.technology-copy {
  width: min(720px, 62vw);
  min-height: 94dvh;
  margin-left: max(var(--page-gutter), calc((100vw - var(--content-max)) / 2));
  padding-block: var(--space-9);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-copy > p:not(.section-kicker),
.technology-copy > p:not(.section-kicker) {
  max-width: 570px;
  margin-top: var(--space-3);
  color: #ccc8c0;
  font-size: clamp(16px, 1.3vw, 19px);
}

.ecosystem-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr);
  gap: var(--space-8);
}

.ecosystem-intro { position: sticky; top: calc(var(--header-height) + var(--space-4)); align-self: start; }
.capability-list { border-top: 1px solid var(--color-line); }
.capability {
  position: relative;
  min-height: 220px;
  padding-block: var(--space-4);
  display: grid;
  grid-template-columns: 72px 1fr;
  align-content: center;
  border-bottom: 1px solid var(--color-line);
  transition: background-color 220ms cubic-bezier(.16, 1, .3, 1), border-color 220ms cubic-bezier(.16, 1, .3, 1), color 220ms cubic-bezier(.16, 1, .3, 1);
}
.capability h3 { max-width: 480px; font-size: clamp(24px, 2.6vw, 38px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; transition: color 220ms cubic-bezier(.16, 1, .3, 1); }
.capability p { max-width: 530px; margin-top: var(--space-2); color: var(--color-muted); font-size: 15px; transition: color 220ms cubic-bezier(.16, 1, .3, 1); }
.capability .capability-arrow {
  position: absolute;
  top: 50%;
  right: 30px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 220ms cubic-bezier(.16, 1, .3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .licence-item:hover,
  .capability:hover {
    color: var(--color-bg);
    background-color: var(--color-text);
    border-color: rgba(12, 13, 14, .18);
  }

  .capability:hover p { color: rgba(12, 13, 14, .72); }

  .licence-item:hover > *,
  .capability:hover > * { transform: translateX(30px); }

  .licence-item:hover > span,
  .capability:hover > span { color: var(--color-accent); }

  .licence-item:hover > .licence-arrow {
    color: var(--color-bg);
    transform: translateY(-50%);
  }

  .capability:hover > .capability-arrow {
    color: var(--color-bg);
    transform: translateY(-50%);
  }
}

.technology-story::after { background: linear-gradient(90deg, rgba(12,13,14,.94), rgba(12,13,14,.62) 48%, rgba(12,13,14,.22)), linear-gradient(0deg, rgba(12,13,14,.75), transparent 65%); }

.contact-section {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin-inline: auto;
  padding-block: var(--space-9);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  gap: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--color-line);
}

.contact-section h2 {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .82;
  text-transform: uppercase;
}

.contact-copy { align-self: start; }
.contact-details { margin-top: 48px; max-width: 420px; }
.contact-details > p,
.contact-details > a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.7;
}
.contact-details > a { margin-top: 18px; }
.contact-details svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  padding: 40px;
  border-radius: 12px;
  background: #151617;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 30px;
}

.contact-field { display: grid; gap: 12px; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field > span { color: var(--color-text); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #494949;
  border-radius: 6px;
  outline: 0;
  background: #101112;
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.contact-field textarea { min-height: 132px; resize: vertical; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #77736d; opacity: 1; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--color-accent); background: #121415; }

.contact-submit {
  width: auto;
  min-width: 190px;
  margin-top: 36px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-accent);
  border-radius: 0;
  background: var(--color-accent);
  color: #0c0d0e;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.contact-submit:hover { background: #ff6a4d; }
.contact-form-note { margin-top: 16px; color: var(--color-muted); font-size: 12px; line-height: 1.5; }

.site-footer {
  padding: 72px var(--page-gutter) 40px;
  border-top: 1px solid var(--color-line);
  background: #080909;
}

.footer-main,
.footer-bottom { width: min(100%, var(--content-max)); margin-inline: auto; }

.footer-main {
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.footer-logo { width: min(100%, 190px); }
.footer-logo img { width: 100%; height: auto; display: block; }

.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column a { color: #999690; font-size: 12px; line-height: 1.35; }
.footer-column .footer-column-title { margin-bottom: 10px; color: var(--color-text); font-size: 14px; font-weight: 700; }
.footer-column a:hover { color: var(--color-text); }

.footer-bottom { padding-top: 24px; border-top: 1px solid var(--color-line); }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.footer-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-trust img { width: auto; height: 24px; object-fit: contain; opacity: .78; }
.footer-trust img:first-child { height: 28px; }
.footer-regulatory { max-width: 560px; color: #7f7c77; font-size: 10px; line-height: 1.75; text-align: right; }

@media (max-width: 900px) {
  .credentials-section,
  .ecosystem-section { padding-block: var(--space-8); }
  .credentials-section,
  .ecosystem-section { grid-template-columns: 1fr; gap: var(--space-6); }
  .contact-section { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-logo { grid-column: 1 / -1; }
  .footer-bottom-row { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-regulatory { max-width: 760px; text-align: left; }
  .credentials-account { align-self: auto; }
  .credentials-visual { display: none; }
  .ecosystem-intro { position: static; }
}

@media (max-width: 767px) {
  .credentials-section,
  .ecosystem-section { width: calc(100% - 32px); padding-block: var(--space-7); gap: var(--space-5); }
  .credentials-lead h2,
  .story-copy h2,
  .ecosystem-intro h2,
  .technology-copy h2 { font-size: clamp(42px, 13vw, 60px); }
  .licence-list { margin-top: 0; }
  .licence-item { min-height: 82px; grid-template-columns: 42px 1fr; }
  .licence-item h3 {
    min-width: 0;
    padding-right: 48px;
    font-size: 17px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .portfolio-story,
  .technology-story { min-height: 86dvh; }
  .story-copy,
  .technology-copy { width: auto; min-height: 86dvh; margin-left: 16px; margin-right: 16px; padding-block: var(--space-7); justify-content: flex-end; }
  .portfolio-story::after,
  .technology-story::after { background: linear-gradient(0deg, rgba(12,13,14,.95) 0%, rgba(12,13,14,.5) 62%, rgba(12,13,14,.18) 100%); }
  .capability { min-height: 190px; grid-template-columns: 42px 1fr; }
  .capability h3 { font-size: 26px; }
  .capability p {
    max-width: calc(100% - 63px);
    overflow-wrap: break-word;
  }
  .contact-section { width: calc(100% - 32px); padding-block: var(--space-7); }
  .contact-copy,
  .contact-form { min-width: 0; }
  html[lang="zh-Hant"] .contact-section h2 .display-line {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .contact-section h2 { font-size: 64px; }
  .contact-details { margin-top: 36px; }
  .contact-form { padding: 28px 20px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-field-wide { grid-column: auto; }
  .site-footer { padding: 56px 16px 32px; }
  .footer-main { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding-bottom: 56px; }
  .footer-logo { grid-column: auto; width: 170px; }
  .footer-trust { gap: 14px; }
  .footer-trust img { height: 20px; }
  .footer-trust img:first-child { height: 24px; }
}

html[lang="zh-Hant"] .credentials-lead h2,
html[lang="zh-Hant"] .story-copy h2,
html[lang="zh-Hant"] .ecosystem-intro h2,
html[lang="zh-Hant"] .technology-copy h2 {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(58px, 5.9vw, 88px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.08;
}

html[lang="zh-Hant"] .contact-section h2 {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.08;
}

html[lang="zh-Hant"] .credentials-lead h2 .display-line {
  display: block;
}

html[lang="zh-Hant"] .story-copy > p:not(.section-kicker),
html[lang="zh-Hant"] .technology-copy > p:not(.section-kicker),
html[lang="zh-Hant"] .capability p { line-height: 1.75; }

html[lang="zh-Hant"] .licence-item h3,
html[lang="zh-Hant"] .capability h3 {
  letter-spacing: 0;
  line-height: 1.25;
}

@media (max-width: 767px) {
  html[lang="zh-Hant"] .credentials-lead h2,
  html[lang="zh-Hant"] .story-copy h2,
  html[lang="zh-Hant"] .ecosystem-intro h2,
  html[lang="zh-Hant"] .technology-copy h2 {
    font-size: clamp(38px, 11.5vw, 48px);
    letter-spacing: 0;
    line-height: 1.1;
  }

  html[lang="zh-Hant"] .contact-section h2 { font-size: 64px; }
}
