@font-face {
  font-family: "Schibsted Grotesk";
  src: url("./assets/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7f9;
  --panel: #e9eff5;
  --white: #fff;
  --ink: #12253c;
  --quiet: #42566b;
  --navy: #112c50;
  --blue: #19568a;
  --pale-blue: #d8e7f4;
  --gutter: clamp(18px, 4.1vw, 72px);
  --section-space: clamp(72px, 9vw, 148px);
  --small: .875rem;
  --body: 1.0625rem;
  --lead: clamp(1.125rem, .98rem + .55vw, 1.4375rem);
  --heading: clamp(2.2rem, 1.3rem + 3.05vw, 4.5rem);
  --title: clamp(2.6rem, 1.18rem + 4.6vw, 6rem);
  --font: "Schibsted Grotesk", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: var(--body); line-height: 1.65; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.043em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--title); }
h2 { font-size: var(--heading); }
h3 { font-size: var(--lead); }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--pale-blue); color: var(--ink); }

.frame { width: min(calc(100% - 2 * var(--gutter)), 1480px); margin-inline: auto; }
.skip-link { position: fixed; inset: .5rem auto auto .5rem; z-index: 2; translate: 0 -180%; background: var(--white); color: var(--ink); padding: .65rem 1rem; }
.skip-link:focus { translate: 0; }
.header-layout { min-height: 76px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 38px; }
.brand { display: block; width: 76px; height: 44px; }
.brand img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.site-nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; font-size: var(--small); font-weight: 700; }
.site-nav a { text-decoration: none; padding: .35rem 0; white-space: nowrap; }
.site-nav a:hover, .footer-columns a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; width: fit-content; min-height: 46px; padding: .55rem 1rem; background: var(--navy); color: var(--white); font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 180ms, transform 180ms; }
.button:hover { background: var(--blue); }
.button:active { transform: translateY(1px); }
.text-link { width: fit-content; color: var(--blue); font-weight: 700; text-underline-offset: .3em; text-decoration-thickness: .08em; }
.text-link:hover { text-decoration-thickness: .15em; }

.masthead { position: relative; min-height: clamp(300px, 27vw, 442px); overflow: hidden; background: var(--navy); }
.masthead-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 52%; }
.masthead-links { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; width: min(32%, 370px); }
.masthead-links a { display: grid; background: var(--paper); text-decoration: none; overflow: hidden; transition: translate 200ms; }
.masthead-links a:hover { translate: 0 -4px; }
.masthead-links a:focus-visible { outline-color: var(--white); outline-offset: -3px; }
.masthead-links img { width: 100%; aspect-ratio: 2.2; height: auto; object-fit: cover; }
.masthead-links a:nth-child(2) img { object-position: center 41%; }
.masthead-links span { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 39px; padding: .3rem .7rem; font-size: var(--small); font-weight: 700; }
.masthead-links i { color: var(--blue); font-style: normal; }

.editorial-grid { display: grid; grid-template-columns: minmax(0, .40fr) minmax(0, .60fr); gap: clamp(1.5rem, 5vw, 5rem); }
.hero-text { align-items: end; padding-block: clamp(34px, 5.2vw, 78px) var(--section-space); }
.hero-context { max-width: 27ch; font-size: var(--body); font-weight: 600; line-height: 1.5; padding-bottom: .25rem; }
.platforms { display: grid; gap: .4rem; }
.platforms > div { display: grid; grid-template-columns: 8.5rem 1fr; column-gap: .4rem; align-items: baseline; }
.platforms dt { font-weight: 700; }
.platforms dd { color: var(--quiet); font-size: var(--small); white-space: nowrap; }
.hero-context .text-link { display: block; margin-top: 1rem; font-size: var(--small); }
.lead { max-width: 41ch; font-size: var(--lead); line-height: 1.57; }
.hero-text .lead { margin-top: 1.5rem; }
.section-space { padding-block: var(--section-space); }
.section-heading { align-items: end; margin-bottom: clamp(1.7rem, 4vw, 4.2rem); }

.capabilities { background: var(--panel); }
.capability-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; font-size: var(--body); }
.capability-table th, .capability-table td { padding: 1.1rem clamp(.8rem, 2.15vw, 2.2rem); vertical-align: middle; }
.capability-table thead th { font-size: var(--small); font-weight: 700; color: var(--quiet); }
.capability-table thead th:first-child { width: 24%; }
.capability-table thead th:nth-child(2) { width: 47%; }
.capability-table tbody th { font-size: var(--lead); letter-spacing: -.018em; }
.capability-table tbody tr:nth-child(odd) { background: var(--white); }
.capability-table tr > :nth-child(2) { background: var(--navy); color: var(--white); }
.capability-table tbody tr:nth-child(even) td:nth-child(2) { background: #173b62; }

.workflow-layout { display: grid; grid-template-columns: minmax(0, .40fr) minmax(0, .60fr); align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.workflow-figure { background: var(--panel); }
.workflow-photo { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.workflow-photo img { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: 0; transition: opacity 820ms ease; }
.workflow-photo img:first-child,
.workflow-photo[data-image="facts"] [data-stage-photo="facts"],
.workflow-photo[data-image="listing"] [data-stage-photo="listing"],
.workflow-photo[data-image="review"] [data-stage-photo="review"] { opacity: 1; }
.workflow-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; padding: .625rem .85rem; font-size: var(--small); font-weight: 700; }
.workflow-figure figcaption span { color: var(--quiet); }
.workflow-steps { display: grid; gap: .65rem; }
.workflow-steps details { background: var(--panel); }
.workflow-steps details + details { margin-left: min(2vw, 24px); }
.workflow-steps details:nth-child(3) { margin-left: min(4vw, 48px); }
.workflow-steps details:nth-child(4) { margin-left: min(6vw, 72px); }
.workflow-steps details:not([open]) .step-content { display: none; }
.workflow-steps details[open] { background: var(--pale-blue); }
.workflow-steps summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer; list-style: none; min-height: 54px; padding: .85rem 1.15rem; font-size: clamp(1.125rem, 1rem + .75vw, 1.7rem); line-height: 1.3; font-weight: 760; }
.workflow-steps summary::-webkit-details-marker { display: none; }
.workflow-steps summary::after { content: ""; display: block; width: .55rem; height: .55rem; flex: none; margin-right: .25rem; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -.1rem; transition: rotate 170ms, translate 170ms; }
.workflow-steps details[open] summary::after { rotate: 225deg; translate: 0 .1rem; }
.workflow-steps summary:hover { background-color: var(--pale-blue); }
.step-content { padding: 0 1.15rem 1.15rem; }
.sample-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .85rem; }
.sample-facts > div { padding: .55rem .6rem; background: var(--paper); }
.sample-facts dt { font-size: var(--small); color: var(--quiet); }
.sample-facts dd { margin-top: .15rem; font-weight: 700; }
.sample-title { margin-top: .8rem; padding: .75rem .85rem; background: var(--paper); font-weight: 700; overflow-wrap: anywhere; }

.about { background: var(--panel); }
.about-mosaic { display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, .34fr); gap: clamp(1rem, 2vw, 2rem); }
.about-photo img { width: 100%; height: 100%; max-height: 494px; aspect-ratio: 16 / 10; object-fit: cover; }
.about-details { background: var(--navy); color: var(--white); min-height: 100%; padding: clamp(1.4rem, 3.4vw, 3.8rem); display: flex; flex-direction: column; justify-content: end; gap: 1.05rem; }
.about-details h3 { font-size: clamp(1.45rem, 1.19rem + 1.05vw, 2.35rem); line-height: 1.25; }
.about-details p { max-width: 32ch; }
.about-details .text-link { color: var(--pale-blue); }

.contact-content { align-self: end; }
.contact .lead, .contact-content .button { margin-top: 1.35rem; }
.contact-content p { max-width: 44ch; }
dialog { width: min(calc(100% - 2rem), 490px); margin: auto; max-height: calc(100% - 2rem); padding: clamp(1.25rem, 4vw, 2.4rem); border: 0; color: var(--ink); background: var(--white); }
dialog::backdrop { background: rgb(15 31 51 / .64); }
dialog h2 { font-size: 2rem; }
dialog p { margin: 1rem 0; }
dialog .text-link { overflow-wrap: anywhere; }
.dialog-actions { float: right; margin: -.55rem -.52rem .5rem .5rem; }
.dialog-actions button { display: grid; place-content: center; min-width: 42px; min-height: 42px; border: 0; background: var(--panel); color: var(--ink); line-height: 1; font-size: 1.5rem; cursor: pointer; }
.dialog-actions button:hover { background: var(--pale-blue); }
html:has(dialog[open]) { overflow: hidden; }

.site-footer { background: var(--ink); color: var(--white); padding-block: clamp(2rem, 5.3vw, 4.75rem) 1.65rem; }
.footer-columns { display: grid; grid-template-columns: minmax(0, .40fr) repeat(2, minmax(0, .30fr)); gap: clamp(1rem, 5vw, 5rem); }
.footer-columns nav { display: grid; align-content: start; justify-items: start; gap: .35rem; }
.footer-columns nav:last-child { justify-self: end; }
.footer-columns a { width: fit-content; text-decoration: none; overflow-wrap: anywhere; }
.footer-label { color: var(--pale-blue); margin-bottom: .32rem; font-size: var(--small); font-weight: 700; }
.footer-wordmark { display: block; width: fit-content; margin-block: .18em .04em; color: var(--pale-blue); font-weight: 800; font-size: clamp(5.5rem, 34vw, 28rem); letter-spacing: -.084em; line-height: .88; white-space: nowrap; }
.copyright { font-size: var(--small); }
.site-footer :focus-visible, .about-details :focus-visible { outline-color: var(--pale-blue); }

@media (max-width: 820px) {
  .header-layout { gap: 18px; }
  .site-nav { gap: 15px; }
  .masthead { min-height: clamp(249px, 40vw, 355px); }
  .masthead-links { width: min(40%, 300px); right: .85rem; bottom: .85rem; }
  .about-mosaic { grid-template-columns: minmax(0, .56fr) minmax(0, .44fr); }
}

@media (max-width: 600px) {
  .header-layout { grid-template-columns: 1fr auto; min-height: 0; padding-top: .6rem; gap: .3rem .6rem; }
  .brand { width: 65px; height: 43px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0 .4rem; padding-block: .4rem .6rem; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 32px; padding-block: .25rem; }
  .header-login { grid-column: 2; grid-row: 1; min-height: 42px; gap: .6rem; }
  .masthead { min-height: clamp(224px, 64vw, 310px); }
  .masthead-image { object-position: 75% center; }
  .masthead-links { width: min(78%, 265px); right: .65rem; bottom: .65rem; gap: .5rem; }
  .masthead-links span { padding-inline: .5rem; }
  .editorial-grid, .workflow-layout, .about-mosaic { grid-template-columns: minmax(0, 1fr); }
  .hero-text { gap: 1.45rem; padding-top: 1.9rem; }
  .hero-context { grid-row: 2; max-width: none; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .65rem; font-size: var(--small); color: var(--quiet); }
  .platforms > div { grid-template-columns: 7.25rem 1fr; }
  .hero-context .text-link { flex: none; margin: 0; }
  .hero-text .lead { margin-top: .9rem; }
  .section-heading { gap: .75rem; }
  .capability-table, .capability-table tbody { display: block; }
  .capability-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .capability-table tbody tr { display: grid; padding: .8rem; gap: .35rem; }
  .capability-table th, .capability-table td { padding: .5rem .6rem; }
  .capability-table td { line-height: 1.56; }
  .capability-table td::before { display: block; font-size: var(--small); font-weight: 700; margin-bottom: .12rem; }
  .capability-table td:nth-child(2)::before { content: "工作台支持"; color: var(--pale-blue); }
  .capability-table td:nth-child(3)::before { content: "运营核对"; color: var(--quiet); }
  .workflow-layout { gap: 1.2rem; }
  .workflow-photo { aspect-ratio: 16 / 10; }
  .workflow-steps details + details { margin-left: min(2vw, 8px); }
  .workflow-steps details:nth-child(3) { margin-left: min(4vw, 16px); }
  .workflow-steps details:nth-child(4) { margin-left: min(6vw, 24px); }
  .about-details { min-height: 0; }
  .contact .lead, .contact-content .button { margin-top: 1rem; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
  .footer-columns > div { grid-column: 1 / -1; }
  .footer-columns nav:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .masthead-image { animation: photograph-arrive 1450ms cubic-bezier(.18, .75, .2, 1) both; }
  .enter-now { animation: enter 560ms cubic-bezier(.18, .75, .24, 1) var(--enter-delay, 0ms) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@keyframes photograph-arrive {
  from { transform: scale(1.035); opacity: .84; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes enter {
  from { transform: translateY(18px); opacity: .55; }
  to { transform: translateY(0); opacity: 1; }
}
