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

:root {
  --paper: #eeece6;
  --paper-deep: #dedbd3;
  --quartz: #f8f7f3;
  --ink: #111210;
  --muted: #5b5a54;
  --line: #b8b5ad;
  --control-line: #74716a;
  --rust: #a43c25;
  --dark: #161816;
  --header-height: 76px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --display: "Runhe Display", "Noto Sans SC", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--rust);
  color: var(--quartz);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 2px solid var(--paper-deep);
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

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

.making :focus-visible,
.mobile-menu :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--quartz);
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--quartz);
  padding: 12px 18px;
  transition: transform 180ms ease-out;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(17, 18, 16, 0.34);
  background: rgba(238, 236, 230, 0.94);
  transition: background 220ms ease-out, border-color 220ms ease-out;
}

.site-header.is-scrolled {
  background: rgba(238, 236, 230, 0.985);
  border-color: var(--ink);
}

.brand {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-type {
  display: grid;
  line-height: 1;
}

.brand-type strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-type small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 46px);
}

.desktop-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 7px;
  height: 2px;
  background: var(--rust);
  transition: right 220ms ease-out;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="true"]::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 220ms ease-out;
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: var(--header-height) 0 0;
  display: grid;
  align-content: space-between;
  padding: 40px var(--gutter) 28px;
  background: var(--dark);
  color: var(--quartz);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 220ms ease-out, transform 220ms ease-out, visibility 0s linear 220ms;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.mobile-menu nav {
  border-top: 1px solid rgba(248, 247, 243, 0.4);
}

.mobile-menu a {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(248, 247, 243, 0.3);
  text-decoration: none;
}

.mobile-menu a span {
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 700;
}

.mobile-menu a small {
  color: #bdbbb4;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.menu-close {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(248, 247, 243, 0.65);
  background: transparent;
  color: var(--quartz);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
  align-items: stretch;
  padding-top: var(--header-height);
  border-bottom: 1px solid var(--ink);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--gutter);
  top: var(--header-height);
  bottom: 0;
  width: 1px;
  background: rgba(17, 18, 16, 0.3);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px clamp(30px, 4vw, 68px) 64px var(--gutter);
}

.hero-context {
  width: fit-content;
  margin-bottom: 48px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rust);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.echo-title {
  position: absolute;
  z-index: -1;
  top: 18%;
  left: clamp(18px, 2.4vw, 46px);
  display: grid;
  color: #d8d5ce;
  font-family: var(--display);
  font-size: clamp(96px, 12vw, 190px);
  font-weight: 900;
  line-height: 0.62;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.echo-title span:nth-child(2) {
  color: #cecbc4;
  transform: translateX(0.06em);
}

.echo-title span:nth-child(3) {
  color: #c4c1ba;
  transform: translateX(0.12em);
}

.hero h1,
.section-heading h2,
.development h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 7ch;
  font-size: clamp(66px, 7.4vw, 112px);
  line-height: 0.9;
}

.hero h1::after {
  content: "";
  display: block;
  width: clamp(88px, 10vw, 150px);
  height: 6px;
  margin-top: 28px;
  background: var(--rust);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 30px;
  color: #343530;
  font-size: clamp(16px, 1.35vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 38px;
}

.primary-action,
.text-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.primary-action {
  padding: 12px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--quartz);
  text-decoration: none;
  transition: background 180ms ease-out, color 180ms ease-out;
}

.primary-action:hover {
  background: var(--rust);
  border-color: var(--rust);
}

.text-action {
  text-decoration-color: var(--rust);
}

.text-action svg,
.inquiry-form button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.text-action svg {
  margin-left: 12px;
  color: var(--rust);
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--dark);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  filter: saturate(0.8) contrast(1.04);
}

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  padding: 7px 10px;
  background: rgba(17, 18, 16, 0.84);
  color: var(--quartz);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-scale {
  position: absolute;
  z-index: 3;
  left: calc(var(--gutter) - 10px);
  bottom: 28px;
  height: 150px;
  display: grid;
  justify-items: center;
  grid-template-rows: auto 1fr auto;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.hero-scale i {
  width: 1px;
  background: var(--rust);
}

.material-intro {
  padding: clamp(96px, 12vw, 176px) var(--gutter);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(44px, 8vw, 130px);
  padding-bottom: clamp(52px, 7vw, 96px);
  border-bottom: 1px solid var(--ink);
}

.section-heading h2,
.development h2,
.contact h2 {
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.92;
}

.section-heading p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 17px;
}

.material-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  gap: 0;
  margin-top: 64px;
}

.macro-figure {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

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

.macro-figure figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: rgba(17, 18, 16, 0.86);
  color: var(--quartz);
}

.macro-figure figcaption span {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.macro-figure figcaption strong {
  font-family: var(--display);
  font-size: 18px;
}

.material-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(34px, 5vw, 80px) 0 0 clamp(34px, 5vw, 80px);
}

.material-copy p:first-child {
  margin-bottom: 34px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
}

.material-copy p:last-child {
  max-width: 30rem;
  color: var(--muted);
}

.slab-family {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  margin-top: clamp(88px, 11vw, 150px);
  border-top: 1px solid var(--ink);
}

.slab-family img {
  width: 100%;
  height: min(70vw, 760px);
  object-fit: cover;
}

.slab-family figcaption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  padding: 48px 0 0 clamp(34px, 5vw, 78px);
}

.slab-family figcaption::before {
  content: "";
  width: 72px;
  height: 6px;
  background: var(--rust);
}

.slab-family strong {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
}

.slab-family span {
  max-width: 26rem;
  color: var(--muted);
}

.making {
  padding: clamp(96px, 12vw, 176px) var(--gutter) clamp(110px, 14vw, 200px);
  background: var(--dark);
  color: var(--quartz);
}

.section-heading.inverse {
  border-color: rgba(248, 247, 243, 0.58);
}

.section-heading.inverse p {
  color: #c7c5be;
}

.process-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(46px, 8vw, 128px);
  align-items: center;
  padding: clamp(68px, 9vw, 126px) 0;
  border-bottom: 1px solid rgba(248, 247, 243, 0.28);
}

.process-row.reverse {
  grid-template-columns: minmax(0, 0.64fr) minmax(280px, 0.36fr);
}

.process-row.reverse .process-text {
  grid-column: 2;
  grid-row: 1;
}

.process-row.reverse figure {
  grid-column: 1;
  grid-row: 1;
}

.process-text {
  align-self: end;
}

.process-index {
  display: block;
  margin-bottom: 52px;
  color: #aaa8a1;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.process-text h3 {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
}

.process-text h3::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 24px 0;
  background: var(--rust);
}

.process-text p {
  max-width: 31rem;
  color: #c7c5be;
}

.process-row figure {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.process-row figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(248, 247, 243, 0.2);
  pointer-events: none;
}

.process-row img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}

.development {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  min-height: 980px;
  border-bottom: 1px solid var(--ink);
}

.development-visual {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: var(--dark);
}

.development-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.development-visual p {
  position: absolute;
  inset: auto 22px 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(248, 247, 243, 0.74);
  color: var(--quartz);
  font-size: 13px;
}

.development-content {
  padding: clamp(92px, 11vw, 158px) var(--gutter);
}

.development h2 {
  max-width: 9ch;
}

.timeline {
  margin-top: 82px;
  border-top: 1px solid var(--ink);
}

.timeline article {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 0.65fr);
  gap: 32px;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--rust);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.timeline p {
  max-width: 36rem;
}

.timeline .planned {
  background: var(--ink);
  color: var(--quartz);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  border-bottom-color: var(--ink);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: clamp(70px, 9vw, 150px);
  padding: clamp(100px, 12vw, 170px) var(--gutter);
}

.contact-heading p {
  max-width: 38rem;
  margin-top: 34px;
  color: var(--muted);
  font-size: 17px;
}

.contact-heading address {
  max-width: 32rem;
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-style: normal;
  font-weight: 700;
}

.inquiry-form {
  align-self: end;
  border-top: 3px solid var(--rust);
}

.field-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.field-row label {
  font-size: 13px;
  font-weight: 700;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--control-line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--rust);
  outline: 0;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  border-bottom-color: var(--rust);
}

.field-row input[aria-invalid="true"],
.field-row select[aria-invalid="true"],
.field-row textarea[aria-invalid="true"] {
  border-bottom-color: #b42318;
}

.field-message {
  align-items: start;
  padding-block: 18px;
}

.field-message label {
  padding-top: 14px;
}

.field-row textarea {
  resize: vertical;
}

.inquiry-form button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 0 22px;
  border: 0;
  background: var(--ink);
  color: var(--quartz);
  font-weight: 800;
  transition: background 180ms ease-out;
}

.inquiry-form button:hover {
  background: var(--rust);
}

.form-status {
  min-height: 28px;
  margin-top: 16px;
  color: #7b2418;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 0.8fr) auto;
  gap: 40px;
  align-items: end;
  padding: 52px var(--gutter) 34px;
  background: var(--dark);
  color: var(--quartz);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  filter: invert(1);
}

.footer-brand p {
  display: grid;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 18px;
}

.footer-brand span,
.footer-note,
.copyright {
  color: #aaa8a1;
  font-size: 11px;
}

.footer-note p + p {
  margin-top: 8px;
}

.copyright {
  white-space: nowrap;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 48% 52%;
  }

  .hero-copy {
    padding-right: 34px;
  }

  .hero h1 {
    font-size: clamp(58px, 7vw, 82px);
  }

  .section-heading,
  .material-spread,
  .slab-family,
  .contact {
    gap: 48px;
  }

  .development {
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 730px;
    padding-top: 110px;
  }

  .hero-visual {
    min-height: 72vw;
  }

  .hero-visual::before {
    inset: 0 0 auto;
    width: auto;
    height: 1px;
  }

  .hero-scale {
    display: none;
  }

  .section-heading,
  .material-spread,
  .slab-family,
  .process-row,
  .process-row.reverse,
  .development,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .material-spread,
  .slab-family {
    gap: 0;
  }

  .macro-figure {
    min-height: 72vw;
  }

  .material-copy,
  .slab-family figcaption {
    padding: 42px 0 0;
  }

  .slab-family img {
    height: 72vw;
  }

  .process-row,
  .process-row.reverse {
    gap: 42px;
  }

  .process-row.reverse .process-text,
  .process-row.reverse figure {
    grid-column: auto;
    grid-row: auto;
  }

  .process-row.reverse .process-text {
    order: 1;
  }

  .process-row.reverse figure {
    order: 2;
  }

  .process-index {
    margin-bottom: 28px;
  }

  .development {
    min-height: auto;
  }

  .development-visual {
    position: relative;
    top: auto;
    height: 78vw;
  }

  .contact {
    gap: 72px;
  }

  .contact-heading address {
    margin-top: 46px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-type strong {
    font-size: 16px;
  }

  .brand-type small {
    font-size: 8px;
  }

  .hero-copy {
    min-height: 700px;
    padding: 104px 20px 56px;
  }

  .hero-context {
    margin-bottom: 36px;
    letter-spacing: 0.08em;
  }

  .echo-title {
    top: 21%;
    left: 8px;
    font-size: 90px;
  }

  .hero h1 {
    font-size: clamp(60px, 18vw, 76px);
  }

  .hero-lead {
    margin-top: 26px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-action,
  .text-action {
    width: 100%;
  }

  .hero-visual {
    min-height: 94vw;
  }

  .hero-visual img {
    object-position: 62% center;
  }

  .material-intro,
  .making,
  .development-content,
  .contact {
    padding-top: 90px;
    padding-bottom: 96px;
  }

  .section-heading h2,
  .development h2,
  .contact h2 {
    font-size: clamp(48px, 14vw, 62px);
  }

  .section-heading {
    gap: 30px;
    padding-bottom: 48px;
  }

  .macro-figure,
  .slab-family img,
  .development-visual {
    min-height: 0;
    height: 110vw;
  }

  .macro-figure figcaption {
    display: grid;
  }

  .material-copy p:first-child {
    font-size: 38px;
  }

  .process-row,
  .process-row.reverse {
    padding: 64px 0;
  }

  .process-row figure,
  .process-row img {
    min-height: 270px;
  }

  .process-text h3 {
    font-size: 46px;
  }

  .timeline {
    margin-top: 58px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .field-row input,
  .field-row select,
  .field-row textarea {
    min-height: 46px;
  }

  .field-message label {
    padding-top: 0;
  }

  .footer-brand {
    align-items: flex-start;
  }
}

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