:root {
  --paper: #f3ecdf;
  --paper-soft: #fbf7ef;
  --deep: #073b32;
  --deep-soft: #315d50;
  --signal: #13b8a6;
  --sun: #d9b56b;
  --mist: #e7efe9;
  --line: rgba(7, 59, 50, 0.18);
  --shadow: rgba(7, 59, 50, 0.18);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  cursor: progress;
}

::selection {
  background: rgba(19, 184, 166, 0.25);
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.6rem;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(7, 59, 50, 0.12);
  background: rgba(243, 236, 223, 0.82);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.wordmark-logo {
  height: 2.1rem;
  width: auto;
  display: block;
}

.wordmark-tm,
.brand-tm {
  font-size: 0.6em;
  font-weight: 600;
  line-height: 1;
  vertical-align: super;
  margin-left: 0.14em;
  pointer-events: none;
  display: inline;
  white-space: nowrap;
}

.brand-nowrap {
  white-space: nowrap;
}

.section-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.section-nav-link {
  position: relative;
  padding: 0.6rem 0;
  color: rgba(7, 59, 50, 0.48);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.section-nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0.15rem;
  left: 0;
  height: 1px;
  background: var(--signal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.section-nav-link:hover,
.section-nav-link.is-active {
  color: var(--deep);
}

.section-nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.story-section {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  scroll-margin-top: 4.6rem;
  isolation: isolate;
  background: var(--paper);
}

.story-hero {
  min-height: 100svh;
}

.story-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(0.97);
  transform: scale(1.02);
  transition: transform 1.6s var(--ease-out), filter 1s ease;
}

.story-section.is-visible .story-image {
  transform: scale(1);
}

.story-image-hero {
  object-position: center right;
}

.story-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.story-wash-hero {
  background:
    linear-gradient(90deg, rgba(243, 236, 223, 0.98) 0%, rgba(243, 236, 223, 0.9) 28%, rgba(243, 236, 223, 0.28) 57%, rgba(243, 236, 223, 0) 76%),
    linear-gradient(180deg, rgba(243, 236, 223, 0.16), rgba(243, 236, 223, 0.3));
}

.story-wash-companionship {
  background: linear-gradient(90deg, rgba(243, 236, 223, 0) 26%, rgba(243, 236, 223, 0.52) 55%, rgba(243, 236, 223, 0.96) 78%, var(--paper) 100%);
}

.story-wash-record {
  background: linear-gradient(90deg, rgba(243, 236, 223, 0.96) 0%, rgba(243, 236, 223, 0.74) 33%, rgba(243, 236, 223, 0.12) 67%, rgba(243, 236, 223, 0) 100%);
}

.story-content {
  width: min(100% - 3rem, 72rem);
  margin: 0 auto;
}

.hero-content {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem 0 5rem;
}

.section-content {
  display: flex;
  min-height: 88svh;
  max-width: 35rem;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 5rem;
}

.section-content-right {
  margin-right: max(3rem, 8vw);
  margin-left: auto;
}

.section-content-left {
  margin-left: max(3rem, 8vw);
}

.eyebrow {
  margin-bottom: 1.35rem;
  color: var(--deep-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.eyebrow::before {
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  margin: 0 0.8rem 0.28rem 0;
  background: var(--signal);
  content: "";
}

.brand-lockup {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-name {
  color: var(--deep);
  font-family: var(--serif);
  font-size: 10rem;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-name-en {
  margin: 0.7rem 0 0 0.42rem;
  color: rgba(7, 59, 50, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.ecg-signature {
  position: absolute;
  bottom: -2.35rem;
  left: 0.35rem;
  width: 20rem;
  height: 5.8rem;
  pointer-events: none;
}

.ecg-signature svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecg-path,
.ecg-echo {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.ecg-path {
  stroke: var(--sun);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 0.25rem rgba(217, 181, 107, 0.85));
}

.ecg-echo {
  stroke: var(--signal);
  stroke-width: 8;
  opacity: 0.58;
  filter: blur(5px);
}

.ecg-beat {
  position: absolute;
  top: 28%;
  left: 43%;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: #fff6db;
  box-shadow: 0 0 1.2rem 0.3rem rgba(19, 184, 166, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.hero-tagline {
  margin-top: 3.9rem;
  color: var(--deep);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero-copy {
  max-width: 25rem;
  margin-top: 0.9rem;
  color: var(--deep-soft);
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-email {
  display: inline-block;
  margin-top: 1rem;
  color: var(--deep-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hero-email:hover {
  color: var(--signal);
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.74rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--deep);
  color: var(--paper-soft);
}

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

.button-quiet {
  border-color: rgba(7, 59, 50, 0.3);
  color: var(--deep);
}

.button-quiet:hover {
  border-color: var(--deep);
  background: rgba(255, 255, 255, 0.32);
}

.button-dark {
  margin-top: 1.8rem;
  background: var(--sun);
  color: var(--deep);
}

.button-dark:hover {
  background: #e5c885;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 4.4rem;
  color: rgba(7, 59, 50, 0.58);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.scroll-cue-line {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  height: 1px;
  background: rgba(7, 59, 50, 0.35);
}

.scroll-cue-line::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--signal);
  border-bottom: 1px solid var(--signal);
  content: "";
  transform: rotate(45deg);
}

.section-content h2 {
  color: var(--deep);
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.05em;
}

.section-copy {
  max-width: 31rem;
  margin-top: 1.6rem;
  color: var(--deep-soft);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 2;
}

.site-footer {
  padding: 1.6rem clamp(1.25rem, 4vw, 4.5rem) 1.8rem;
  border-top: 1px solid var(--line);
  color: rgba(7, 59, 50, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.footer-tag {
  justify-self: start;
}

.footer-copy {
  justify-self: center;
}

.footer-email {
  justify-self: end;
}

.footer-tag,
.footer-copy,
.footer-email {
  font-weight: 400;
}

.footer-email {
  color: rgba(7, 59, 50, 0.64);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-email:hover {
  color: var(--deep);
}

.footer-compliance {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  text-align: center;
}

.footer-record {
  color: rgba(7, 59, 50, 0.64);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-record:hover {
  color: var(--deep);
}

.footer-record-link {
  color: rgba(7, 59, 50, 0.42);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-record-link:hover {
  color: var(--deep);
}

.js .story-content,
.js .story-image {
  opacity: 0;
}

.js .story-section.is-visible .story-content {
  animation: reveal-up 0.9s var(--ease-out) forwards;
}

.js .story-section.is-visible .story-image {
  opacity: 1;
}

.js .story-hero.is-visible .ecg-path {
  animation: ecg-draw 1.2s cubic-bezier(0.37, 0, 0.63, 1) 0.24s forwards;
}

.js .story-hero.is-visible .ecg-echo {
  animation: ecg-draw 1.3s cubic-bezier(0.37, 0, 0.63, 1) 0.12s forwards;
}

.js .story-hero.is-visible .ecg-beat {
  animation: ecg-pulse 1.1s var(--ease-out) 1.05s forwards;
}

@keyframes ecg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ecg-pulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0.28rem rgba(217, 181, 107, 0.45), 0 0 1.5rem 0.32rem rgba(19, 184, 166, 0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    box-shadow: 0 0 0 1.4rem rgba(217, 181, 107, 0), 0 0 0 0 rgba(19, 184, 166, 0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .brand-name {
    font-size: 8rem;
  }

  .section-content-right {
    margin-right: 6vw;
  }

  .section-content-left {
    margin-left: 6vw;
  }

  .section-content h2 {
    font-size: 3.25rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 4.1rem;
    padding-inline: 1.1rem;
  }

  .wordmark-logo {
    height: 1.7rem;
  }

  .section-nav {
    gap: 0.95rem;
  }

  .section-nav-link {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .story-section,
  .story-hero {
    min-height: 100svh;
  }

  .story-hero,
  .hero-content {
    min-height: 92svh;
  }

  .story-content {
    width: min(100% - 2.2rem, 34rem);
  }

  .story-image-hero {
    object-position: 64% center;
  }

  .story-wash-hero {
    background:
      linear-gradient(180deg, rgba(243, 236, 223, 0.88) 0%, rgba(243, 236, 223, 0.78) 40%, rgba(243, 236, 223, 0.18) 76%, rgba(243, 236, 223, 0.22) 100%),
      linear-gradient(90deg, rgba(243, 236, 223, 0.78), rgba(243, 236, 223, 0.08));
  }

  .story-wash-companionship {
    background: linear-gradient(180deg, rgba(243, 236, 223, 0) 42%, rgba(243, 236, 223, 0.62) 78%, var(--paper) 100%);
  }

  .story-wash-record {
    background: linear-gradient(180deg, rgba(243, 236, 223, 0) 42%, rgba(243, 236, 223, 0.68) 78%, var(--paper) 100%);
  }

  .hero-content,
  .section-content {
    min-height: 100svh;
    padding: 7rem 0 4.5rem;
  }

  .story-companionship,
  .story-record {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: visible;
  }

  .story-companionship .story-image,
  .story-record .story-image {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    width: 100%;
    height: 48svh;
    min-height: 18rem;
    object-position: 34% center;
    transform: scale(1.02);
  }

  .story-record .story-image {
    object-position: center center;
  }

  .story-companionship .story-wash,
  .story-record .story-wash {
    inset: 0 0 auto;
    z-index: 1;
    height: 48svh;
  }

  .story-companionship .story-content,
  .story-record .story-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    margin: 0;
    padding: 3.5rem 1.1rem 5.2rem;
    background: var(--paper);
  }

  .brand-name {
    font-size: 4.5rem;
    letter-spacing: 0.04em;
  }

  .brand-name-en {
    margin-top: 0.5rem;
    font-size: 0.68rem;
  }

  .ecg-signature {
    bottom: -1.85rem;
    left: 0.1rem;
    width: 15rem;
    height: 4.3rem;
  }

  .hero-tagline {
    margin-top: 3.4rem;
    font-size: 1.35rem;
    letter-spacing: 0.1em;
  }

  .hero-copy {
    max-width: 18rem;
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-email {
    margin-top: 0.85rem;
    font-size: 0.76rem;
  }

  .button {
    min-height: 2.75rem;
    padding-inline: 1rem;
    font-size: 0.74rem;
  }

  .scroll-cue {
    margin-top: 3rem;
  }

  .section-content-right,
  .section-content-left {
    justify-content: flex-end;
    margin: 0;
    padding-bottom: 5.4rem;
  }

  .section-content h2 {
    font-size: 2.55rem;
    line-height: 1.3;
  }

  .section-copy {
    margin-top: 1.2rem;
    font-size: 0.94rem;
    line-height: 1.9;
  }

  .site-footer {
    padding: 1.4rem 1.1rem;
    font-size: 0.66rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.55rem;
    text-align: center;
  }

  .footer-compliance {
    margin-top: 1.2rem;
    line-height: 1.6;
  }
}

@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;
  }

  .js .story-content,
  .js .story-image {
    opacity: 1;
    transform: none;
  }

  .ecg-path,
  .ecg-echo {
    stroke-dashoffset: 0;
  }

  .ecg-beat {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7);
  }
}
