@font-face {
  font-family: "Chiron Hei HK";
  src: url("/assets/company/fonts/chiron-hei-hk-company-v2.woff2?v=20260901b") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Chiron Sung HK";
  src: url("/assets/company/fonts/chiron-sung-hk-company-v2.woff2?v=20260901b") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: oklch(0.975 0.009 83);
  --surface: oklch(0.94 0.011 83);
  --ink: oklch(0.19 0.014 72);
  --muted: oklch(0.48 0.018 72);
  --line: oklch(0.82 0.016 72);
  --accent: oklch(0.54 0.16 36);
  --nav-bg: color-mix(in oklch, var(--paper) 88%, transparent);
  --page-max: 92rem;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --serif: "Chiron Sung HK", "Songti TC", serif;
  --sans: "Chiron Hei HK", "PingFang TC", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.16 0.008 95);
    --surface: oklch(0.21 0.009 95);
    --ink: oklch(0.91 0.009 83);
    --muted: oklch(0.69 0.012 83);
    --line: oklch(0.34 0.012 83);
    --accent: oklch(0.72 0.13 43);
  }
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

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

.page-shell,
.nav-shell,
.product-shell {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--page-max));
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  min-height: 4rem;
  background: var(--nav-bg);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 65%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.nav-shell {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark,
.nav-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1rem;
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover {
  color: var(--ink);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  padding-block: clamp(7rem, 14vh, 11rem) clamp(5rem, 10vh, 8rem);
}

.hero-inner {
  display: grid;
  gap: clamp(1.5rem, 3.5vh, 2.75rem);
}

.hero-company {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.055em;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(3.5rem, 8.4vw, 8.25rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-lede {
  max-width: 34rem;
  margin: 0 0 0 clamp(0rem, 18vw, 16rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.75;
}

.scroll-cue {
  position: absolute;
  right: var(--page-gutter);
  bottom: clamp(1.5rem, 4vh, 3rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.scroll-cue span {
  width: 2.75rem;
  height: 1px;
  background: currentColor;
}

.product {
  min-height: 128svh;
  position: relative;
  view-timeline-name: --product-section;
  view-timeline-axis: block;
}

.product-sticky {
  height: 100svh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.product-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 3vh, 2.5rem);
  padding-block: clamp(5.5rem, 10vh, 7rem) clamp(1.5rem, 4vh, 3rem);
}

.product-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 9rem);
}

.product-index {
  margin: 0 0 0.7rem;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.product-index span {
  opacity: 0.52;
}

.product h2 {
  font-size: clamp(3.15rem, 6.3vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.product-intro {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-bottom: 0.35rem;
}

.product-intro p {
  max-width: 28rem;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.23rem);
  line-height: 1.65;
}

.product-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}

.product-link span {
  transition: transform 220ms var(--ease-out);
}

.product-link:hover span {
  transform: translate(0.16rem, -0.16rem);
}

.product-visual {
  min-height: 0;
  position: relative;
  margin: 0;
  contain: layout paint;
}

.product-visual-browser {
  overflow: hidden;
  border: 1px solid currentColor;
}

.product-visual-browser picture,
.product-visual-browser img {
  width: 100%;
  height: 100%;
}

.product-visual-browser img {
  object-fit: cover;
  object-position: top center;
}

.product-news {
  color: oklch(0.19 0.016 68);
  background: oklch(0.96 0.021 86);
}

.product-news .product-visual-browser {
  border-color: oklch(0.72 0.027 78);
}

.product-perks {
  color: oklch(0.25 0.036 47);
  background: oklch(0.92 0.038 74);
}

.product-perks .product-visual-browser {
  border-color: oklch(0.71 0.058 59);
}

.product-ful {
  color: oklch(0.92 0.01 72);
  background: oklch(0.13 0.008 72);
}

.product-ful .product-index,
.product-ful .product-link {
  color: oklch(0.75 0.17 64);
}

.ful-composition {
  overflow: hidden;
  border: 1px solid oklch(0.32 0.018 70);
  background: oklch(0.1 0.006 72);
}

.ful-web,
.ful-web img {
  width: 100%;
  height: 100%;
}

.ful-web img {
  object-fit: cover;
  object-position: top center;
  opacity: 0.52;
}

.ful-phone {
  position: absolute;
  bottom: -24%;
  width: min(25vw, 25rem);
  border: 1px solid oklch(0.46 0.016 72);
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
  background: oklch(0.1 0.006 72);
}

.ful-phone img {
  width: 100%;
  height: auto;
}

.ful-phone-map {
  right: 25%;
}

.ful-phone-orders {
  right: 3%;
  bottom: -34%;
}

.product-fortune {
  color: oklch(0.84 0.026 77);
  background: oklch(0.1 0.008 78);
}

.product-fortune .product-index,
.product-fortune .product-link {
  color: oklch(0.76 0.13 74);
}

.product-fortune .product-visual-browser {
  border-color: oklch(0.3 0.035 76);
}

.company {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(8rem, 16vh, 13rem);
  background: var(--paper);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(4rem, 11vw, 11rem);
}

.company-heading {
  position: sticky;
  top: 8rem;
}

.company-heading p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company h2 {
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.company-list {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.company-list > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(1.4rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.company-list dd {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.email {
  display: flex;
  flex-wrap: wrap;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@supports (animation-timeline: view()) {
  @media (min-width: 721px) and (prefers-reduced-motion: no-preference) {
    [data-parallax] {
      animation: product-drift 1ms linear both;
      animation-timeline: --product-section;
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes product-drift {
  from {
    transform: translate3d(0, 2.6vh, 0) scale(0.985);
  }
  to {
    transform: translate3d(0, -2.6vh, 0) scale(1);
  }
}

@media (max-width: 900px) {
  .product-heading {
    grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
    gap: 2rem;
  }

  .hero-lede {
    margin-left: clamp(0rem, 10vw, 5rem);
  }

  .company-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .company-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 1.25rem;
  }

  .site-nav,
  .nav-shell {
    min-height: 3.65rem;
  }

  .hero {
    min-height: 100svh;
    padding-block: 7rem 5rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  h1 {
    max-width: 8.8ch;
    font-size: clamp(3.25rem, 17vw, 5.25rem);
    line-height: 1.02;
  }

  .hero-lede {
    margin-left: 0;
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .scroll-cue {
    right: auto;
    left: var(--page-gutter);
  }

  .product {
    min-height: 0;
  }

  .product-sticky {
    height: auto;
    position: relative;
    overflow: visible;
  }

  .product-shell {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto auto;
    gap: 2.25rem;
    padding-block: 6rem 4.5rem;
  }

  .product-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product h2 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .product-intro {
    gap: 0.75rem;
  }

  .product-visual-browser {
    aspect-ratio: 4 / 5;
  }

  .product-visual-browser img {
    object-position: top left;
  }

  .ful-composition {
    min-height: 41rem;
  }

  .ful-web img {
    object-position: top left;
  }

  .ful-phone {
    bottom: -21%;
    width: min(61vw, 18rem);
    border-radius: 0.85rem 0.85rem 0 0;
  }

  .ful-phone-map {
    right: 31%;
  }

  .ful-phone-orders {
    right: -18%;
    bottom: -29%;
  }

  .company {
    min-height: 0;
    padding-block: 7rem 6rem;
  }

  .company-layout {
    gap: 2.75rem;
  }

  .company-list > div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-block: 1.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-parallax],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
