@font-face {
  font-family: "Smiley Sans";
  src: url("assets/fonts/smiley-sans-display.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 900;
}

:root {
  color-scheme: light;
  --ink: #10282f;
  --vacuum: #12323a;
  --vacuum-deep: #091d23;
  --paper: #f4f7f2;
  --white: #ffffff;
  --freeze: #83c6c3;
  --freeze-dark: #357f80;
  --protein: #a43e2c;
  --amber: #d5a02c;
  --line: rgba(18, 50, 58, 0.22);
  --line-light: rgba(244, 247, 242, 0.24);
  --muted: #5b6c6f;
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section: clamp(5rem, 10vw, 10rem);
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-display: "Smiley Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

::selection {
  background: var(--protein);
  color: var(--white);
}

* {
  scrollbar-color: var(--freeze-dark) var(--paper);
  scrollbar-width: thin;
}

button,
input,
select,
textarea {
  font: inherit;
  caret-color: var(--protein);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

p {
  max-width: 72ch;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--vacuum);
  transform: translateY(-150%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 5.5rem;
  padding: 0 var(--gutter);
  color: var(--white);
  border-bottom: 1px solid var(--line-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.brand img {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-size: 0.88rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--freeze);
}

.site-nav .nav-action {
  min-width: 7.25rem;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.site-nav .nav-action:hover {
  background: var(--white);
  color: var(--vacuum);
  border-color: var(--white);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(960px, 100svh);
  padding: clamp(8rem, 13vh, 11rem) var(--gutter) 7.5rem;
  background: var(--vacuum-deep);
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 5.2rem;
  height: 1px;
  background: var(--line-light);
}

.hero-copy {
  z-index: 2;
  align-self: center;
  padding-right: clamp(1.5rem, 4vw, 5rem);
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 650;
}

.hero-lede {
  max-width: 35rem;
  margin-bottom: 2.25rem;
  color: rgba(244, 247, 242, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: var(--vacuum-deep);
  background: var(--freeze);
  border-color: var(--freeze);
}

.button-primary:hover {
  color: var(--vacuum-deep);
  background: var(--white);
  border-color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  border-bottom: 1px solid rgba(244, 247, 242, 0.5);
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(0.35rem);
}

.status-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  color: rgba(244, 247, 242, 0.68);
  font-size: 0.86rem;
  border-top: 1px solid var(--line-light);
}

.status-stamp strong {
  color: var(--amber);
  font-weight: 650;
}

.sightglass {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(49vw, 720px);
  aspect-ratio: 1;
  border: clamp(12px, 2vw, 28px) solid #29434a;
  border-radius: 50%;
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 8px;
  overflow: hidden;
}

.sightglass::before,
.sightglass::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: var(--freeze);
}

.sightglass::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.sightglass::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.sightglass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(0.84) contrast(1.08);
}

.sublimation-trace {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trace-ring,
.trace-path {
  fill: none;
  stroke: var(--freeze);
  vector-effect: non-scaling-stroke;
}

.trace-ring {
  opacity: 0.25;
  stroke-width: 1;
  stroke-dasharray: 4 14;
}

.trace-path {
  stroke-width: 2;
  stroke-dasharray: 780;
  stroke-dashoffset: 780;
  animation: draw-trace 2.2s cubic-bezier(0.22, 1, 0.36, 1) 450ms forwards;
}

.trace-point {
  fill: var(--protein);
  stroke: var(--white);
  stroke-width: 2;
  opacity: 0;
  animation: show-point 300ms ease 2.35s forwards;
}

.trace-point-end {
  fill: var(--amber);
  animation-delay: 2.55s;
}

.sightglass-note {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 8%;
  padding: 0.4rem 0.6rem;
  color: var(--vacuum-deep);
  background: var(--freeze);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.direction-baseline {
  position: absolute;
  right: var(--gutter);
  bottom: 1.8rem;
  left: var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  color: rgba(244, 247, 242, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(16rem, 3fr);
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 7vw, 6.5rem);
}

.section-heading h2,
.observation h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 620;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.direction-intro,
.progress {
  padding: var(--section) var(--gutter);
}

.spectrum-figure {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.spectrum-figure img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.spectrum-figure figcaption {
  padding: 0.85rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.direction-lines {
  max-width: var(--max);
  margin: clamp(3.5rem, 7vw, 7rem) auto 0;
}

.direction-line {
  display: grid;
  grid-template-columns: 1fr 4fr 5fr;
  gap: clamp(1rem, 3vw, 4rem);
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.direction-line:last-child {
  border-bottom: 1px solid var(--line);
}

.direction-line p {
  margin: 0;
  color: var(--muted);
}

.direction-line .direction-number {
  color: var(--protein);
  font-size: 0.84rem;
  font-weight: 700;
}

.direction-line h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 600;
}

.process {
  padding: var(--section) var(--gutter);
  background: var(--vacuum);
  color: var(--paper);
}

.section-heading-light > p:last-child {
  color: rgba(244, 247, 242, 0.68);
}

.process-sequence {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-step {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--line-light);
}

.process-step figure {
  margin: 0;
  overflow: hidden;
}

.process-step img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.process-step-split {
  display: grid;
  grid-template-columns: minmax(16rem, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.process-step-reverse {
  grid-template-columns: minmax(0, 7fr) minmax(16rem, 4fr);
}

.process-step-reverse .process-copy {
  order: 2;
}

.process-step-wide .process-copy {
  display: grid;
  grid-template-columns: 1fr 4fr 5fr;
  gap: clamp(1rem, 3vw, 4rem);
  align-items: start;
  margin-bottom: 2rem;
}

.process-step-wide img {
  aspect-ratio: 16 / 7;
}

.process-number {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--freeze);
  font-size: 0.8rem;
  font-weight: 700;
}

.process-copy h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 600;
}

.process-copy p {
  margin-bottom: 0;
  color: rgba(244, 247, 242, 0.7);
}

.process-step-wide .process-copy h3,
.process-step-wide .process-copy p {
  margin: 0;
}

.observation {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(22rem, 5fr);
  min-height: 800px;
  background: var(--vacuum-deep);
  color: var(--paper);
}

.observation-image {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

.observation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.observation-copy {
  align-self: center;
  padding: var(--section) var(--gutter);
}

.observation-copy > p {
  margin: 2rem 0;
  color: rgba(244, 247, 242, 0.7);
}

.observation-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.observation-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
}

.observation-list span {
  color: var(--freeze);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.text-link-light {
  border-bottom-color: var(--freeze);
}

.progress-stage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto;
}

.progress-stage figure {
  margin: 0;
  min-height: 600px;
  overflow: hidden;
}

.progress-stage figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-track {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 2rem 0;
  list-style: none;
}

.status-track::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 6px;
  width: 1px;
  background: var(--line);
}

.status-track li {
  position: relative;
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
}

.status-marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  margin-top: 0.4rem;
  background: var(--paper);
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.is-done .status-marker {
  background: var(--freeze-dark);
  border-color: var(--freeze-dark);
}

.is-current .status-marker {
  background: var(--amber);
  border-color: var(--amber);
  outline: 4px solid rgba(213, 160, 44, 0.22);
}

.status-track li span:not(.status-marker),
.status-track time {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-track strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.is-current strong {
  color: #916a00;
}

.is-pending {
  opacity: 0.58;
}

.contact {
  display: grid;
  grid-template-columns: minmax(18rem, 4fr) minmax(0, 7fr);
  gap: clamp(3rem, 8vw, 10rem);
  padding: var(--section) var(--gutter);
  background: #dde8e4;
}

.contact-intro {
  max-width: 34rem;
}

.contact-intro h2 {
  margin-bottom: 2rem;
}

.contact-intro > p:last-child {
  color: var(--muted);
}

.contact-form {
  max-width: 760px;
}

.contact-form label {
  display: block;
  margin-bottom: 1.5rem;
}

.contact-form label > span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(18, 50, 58, 0.55);
  border-radius: 0;
}

textarea {
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--protein);
}

.form-action {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.button-submit {
  min-width: 9rem;
  color: var(--white);
  background: var(--vacuum);
  border-color: var(--vacuum);
}

.button-submit:hover {
  color: var(--vacuum);
  background: transparent;
}

.form-status {
  margin: 0;
  color: var(--protein);
  font-size: 0.88rem;
  font-weight: 650;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem var(--gutter);
  color: rgba(244, 247, 242, 0.65);
  background: var(--vacuum-deep);
  font-size: 0.78rem;
  border-top: 1px solid var(--line-light);
}

.site-footer p {
  margin-bottom: 0.35rem;
}

.site-footer .footer-brand {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-meta {
  text-align: right;
}

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

@keyframes show-point {
  to { opacity: 1; }
}

@media (max-width: 1050px) {
  .site-header {
    min-height: 5rem;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.68rem;
  }

  .menu-icon,
  .menu-icon::after {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-icon::after {
    content: "";
    transform: translateY(6px);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-90deg);
  }

  .menu-label {
    margin-top: 0.35rem;
  }

  .site-nav {
    position: absolute;
    top: 5rem;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    color: var(--paper);
    background: var(--vacuum-deep);
    border-top: 1px solid var(--line-light);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 52px;
    border-bottom: 1px solid var(--line-light);
  }

  .site-nav .nav-action {
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .section-heading {
    grid-template-columns: 1fr 3fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .observation,
  .contact {
    grid-template-columns: 1fr;
  }

  .observation-image {
    min-height: 560px;
  }

  .observation-copy {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 760px) {
  :root {
    --section: 4.5rem;
  }

  html {
    scroll-padding-top: 5rem;
  }

  .brand span {
    max-width: 13rem;
    line-height: 1.3;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 7rem;
    padding-bottom: 8.5rem;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .sightglass {
    align-self: flex-end;
    width: min(92vw, 620px);
    margin-top: 3rem;
    transform: translateX(14%);
  }

  .direction-baseline {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    bottom: 1rem;
  }

  .hero::after {
    bottom: 5.7rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2,
  .observation h2,
  .contact h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .spectrum-figure img,
  .process-step-wide img {
    aspect-ratio: 4 / 3;
  }

  .direction-line {
    grid-template-columns: 3rem 1fr;
    padding: 1.5rem 0;
  }

  .direction-line p:last-child {
    grid-column: 2;
  }

  .process-step-split,
  .process-step-reverse,
  .process-step-wide .process-copy {
    display: block;
  }

  .process-step-reverse .process-copy {
    order: initial;
  }

  .process-step figure {
    margin-top: 2rem;
  }

  .process-step-reverse figure {
    margin-bottom: 2rem;
  }

  .process-step-reverse .process-copy {
    margin-top: 2rem;
  }

  .process-step-wide .process-copy h3 {
    margin-bottom: 1.25rem;
  }

  .observation {
    min-height: 0;
  }

  .observation-image {
    min-height: 420px;
  }

  .progress-stage {
    grid-template-columns: 1fr;
  }

  .progress-stage figure {
    min-height: 380px;
  }

  .status-track {
    padding-left: 0.25rem;
  }

  .form-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}

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

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

  .trace-path {
    stroke-dashoffset: 0;
  }

  .trace-point {
    opacity: 1;
  }
}
