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

:root {
  --ink: #101315;
  --ink-soft: #1c2222;
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --insulation: #d7c5a8;
  --signal: #a63728;
  --signal-bright: #ef8062;
  --signal-dark: #8e2f22;
  --muted: #a7aba7;
  --rule-dark: rgba(244, 240, 232, .2);
  --rule-light: rgba(16, 19, 21, .16);
  --page: min(1320px, calc(100% - 64px));
  --route-progress: 0;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--rule-dark);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand-name { font-family: "Smiley Display", "Microsoft YaHei", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.brand-slash { padding: 0 5px; color: var(--signal); }

.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; letter-spacing: .12em; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(244, 240, 232, .72); transition: color .25s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); }
.site-nav .nav-action { gap: 10px; color: var(--paper); }

.menu-toggle { display: none; min-width: 76px; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--rule-dark); background: transparent; color: var(--paper); cursor: pointer; }
.menu-glyph { display: inline-flex; flex-direction: column; gap: 4px; width: 17px; }
.menu-glyph i { display: block; height: 1px; background: currentColor; transition: transform .25s ease; }
.menu-toggle[aria-expanded="true"] .menu-glyph i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-glyph i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.css-arrow { position: relative; display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; }
.css-arrow::before { content: ""; position: absolute; left: 1px; right: 2px; top: 8px; height: 1px; background: currentColor; }
.css-arrow::after { content: ""; position: absolute; top: 4px; right: 1px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
a:hover .css-arrow, a:focus-visible .css-arrow, button:hover .css-arrow { transform: translateX(4px); }

.page-width { width: var(--page); margin: 0 auto; }

main { position: relative; isolation: isolate; }
.journey-rail { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.journey-rail svg { position: absolute; inset: 0 auto 0 25px; width: 56px; height: 100%; overflow: visible; }
.journey-base, .journey-trace { fill: none; stroke: var(--signal); stroke-linecap: round; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.journey-base { opacity: .13; }
.journey-trace { opacity: .8; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--route-progress)); transition: stroke-dashoffset .15s linear; }
.route-dot { position: absolute; left: 50px; width: 7px; height: 7px; transform: translateX(-50%); background: var(--signal); border: 2px solid var(--paper); }
.route-dot-one { top: 14%; }
.route-dot-two { top: 49%; }
.route-dot-three { top: 82%; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Smiley Display", "Microsoft YaHei", sans-serif; font-weight: 700; letter-spacing: -.045em; line-height: .98; }
h1 { max-width: 880px; margin-bottom: 0; font-size: clamp(4.4rem, 11vw, 11rem); }
h1 em, h2 em { color: var(--signal); font-style: normal; }
.section-dark h2 em, .section-ink h2 em, .section-dark .section-index, .section-ink .section-index, .section-dark .note-index, .section-ink .note-index { color: var(--signal-bright); }
h2 { margin-bottom: 22px; font-size: clamp(3.1rem, 7vw, 7.4rem); }

.hero { position: relative; z-index: 2; background: var(--ink); color: var(--paper); }
.hero-image-wrap { position: relative; height: min(74vh, 760px); min-height: 480px; overflow: hidden; background: var(--ink); }
.hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: rgba(16, 19, 21, .24); pointer-events: none; }
.hero-image-note { position: absolute; right: 32px; bottom: 26px; z-index: 1; color: var(--paper); font-size: 10px; line-height: 1.4; letter-spacing: .17em; text-align: right; }
.hero-content { padding-top: 48px; padding-bottom: 36px; }
.hero-meta, .hero-caption { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.hero-meta { padding-bottom: 22px; border-bottom: 1px solid var(--rule-dark); }
.hero-content h1 { padding-top: 55px; }
.hero-lower { display: grid; grid-template-columns: minmax(0, 5fr) minmax(300px, 3fr); gap: 50px; align-items: end; padding-top: 36px; }
.hero-lead { max-width: 32rem; margin-bottom: 0; color: rgba(244, 240, 232, .78); font-size: clamp(1.1rem, 1.8vw, 1.55rem); line-height: 1.45; }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 13px 20px; border: 1px solid transparent; font-size: 13px; letter-spacing: .08em; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.button-signal { background: var(--signal); color: var(--paper); }
.button-signal:hover, .button-signal:focus-visible { background: var(--paper); color: var(--ink); }
.button-outline { border-color: rgba(244, 240, 232, .48); color: var(--paper); }
.button-outline:hover, .button-outline:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--paper); font-size: 13px; letter-spacing: .08em; }
.hero-caption { margin-top: 74px; padding-top: 16px; border-top: 1px solid var(--rule-dark); }

.section { position: relative; z-index: 2; padding: 132px 0; }
.section-dark, .section-ink { background: var(--ink); color: var(--paper); }
.section-paper, .section-quiet { background: var(--paper); color: var(--ink); }
.section-warm { background: var(--insulation); color: var(--ink); }
.split-intro, .section-heading, .project-heading, .contact-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 25%); gap: 64px; align-items: end; }
.section-summary { max-width: 38rem; margin-bottom: 0; color: rgba(244, 240, 232, .65); font-size: 1.05rem; line-height: 1.75; }
.section-paper .section-summary, .section-warm .section-summary, .section-quiet .section-summary { color: rgba(16, 19, 21, .68); }
.section-index { align-self: end; padding-bottom: 4px; color: var(--signal); font-size: 10px; line-height: 1.75; letter-spacing: .16em; text-align: right; }
.section-index span { color: var(--muted); letter-spacing: .08em; }
.dark-index { color: var(--signal-dark); }

.focus-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(40px, 8vw, 140px); align-items: start; margin-top: 72px; }
.image-frame { position: relative; margin: 0; overflow: hidden; }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-frame-tall { min-height: 520px; }
.image-frame-tall img { aspect-ratio: 3 / 2; }
.image-frame figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 13px; color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.section-paper .image-frame figcaption, .section-warm .image-frame figcaption, .section-quiet .image-frame figcaption { color: rgba(16, 19, 21, .58); }
.focus-notes { padding-top: 20px; }
.note-line { display: grid; grid-template-columns: 32px 1fr; gap: 24px; padding: 25px 0; border-top: 1px solid var(--rule-dark); }
.note-line:last-child { border-bottom: 1px solid var(--rule-dark); }
.note-index { color: var(--signal); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.note-line p { margin: 0; color: rgba(244, 240, 232, .72); line-height: 1.75; }

.structure-layout { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 9vw, 150px); align-items: start; margin-top: 72px; }
.display-quote { max-width: 25rem; margin: 0 0 70px; font-family: "Smiley Display", "Microsoft YaHei", sans-serif; font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: .98; letter-spacing: -.05em; }
.structure-list { border-top: 1px solid var(--rule-light); }
.structure-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule-light); }
.structure-list span { color: var(--signal-dark); font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.structure-list strong { display: block; font-size: 1.05rem; }
.structure-list small { grid-column: 2; color: rgba(16, 19, 21, .62); }
.image-frame-atlas { max-width: 650px; justify-self: end; }
.image-frame-atlas img { aspect-ratio: 2 / 3; }

.route-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(40px, 8vw, 120px); align-items: center; }
.image-frame-wide img { aspect-ratio: 2 / 1; }
.route-copy { max-width: 31rem; }
.route-copy .section-index { margin-bottom: 52px; text-align: left; }
.route-copy h2 { font-size: clamp(2.8rem, 5vw, 5.6rem); }
.route-copy p { max-width: 28rem; margin: 28px 0 34px; color: rgba(244, 240, 232, .68); line-height: 1.8; }

.sequence-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: clamp(40px, 8vw, 120px); align-items: end; margin-top: 70px; }
.sequence-image img { aspect-ratio: 3 / 2; }
.sequence-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--rule-light); }
.sequence-list li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule-light); }
.sequence-list li > span { color: var(--signal-dark); font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.sequence-list strong { display: block; margin-bottom: 7px; font-size: 1.2rem; }
.sequence-list p { margin: 0; color: rgba(16, 19, 21, .68); font-size: .95rem; line-height: 1.65; }

.inspection-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.inspection-copy { max-width: 30rem; }
.inspection-copy .section-index { margin-bottom: 52px; text-align: left; }
.inspection-copy h2 { font-size: clamp(3rem, 5.6vw, 6rem); }
.inspection-copy > p { color: rgba(16, 19, 21, .68); line-height: 1.8; }
.inspection-rule { display: flex; align-items: center; gap: 16px; margin-top: 48px; color: var(--signal-dark); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.inspection-rule span { width: 56px; height: 1px; background: var(--signal); }
.image-frame-inspection { max-width: 560px; justify-self: end; }
.image-frame-inspection img { aspect-ratio: 2 / 3; }

.project-heading { margin-bottom: 70px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.project-record { border-top: 1px solid var(--rule-dark); }
.record-title { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0 27px; border-bottom: 1px solid var(--rule-dark); }
.record-title span, .project-fields dt, .form-title span { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.record-title strong { font-family: "Smiley Display", "Microsoft YaHei", sans-serif; font-size: clamp(1.45rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; }
.project-fields { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.project-fields > div { min-height: 116px; padding: 20px 18px 15px 0; border-bottom: 1px solid var(--rule-dark); }
.project-fields > div:not(:nth-child(3n + 1)) { padding-left: 18px; border-left: 1px solid var(--rule-dark); }
.project-fields dt { margin-bottom: 10px; }
.project-fields dd { margin: 0; color: var(--paper); font-family: "Smiley Display", "Microsoft YaHei", sans-serif; font-size: 1.25rem; line-height: 1.2; }
.record-boundary { max-width: 42rem; margin: 24px 0 0; color: rgba(244, 240, 232, .55); font-size: .9rem; line-height: 1.75; }
.image-frame-project { margin-top: 36px; }
.image-frame-project img { aspect-ratio: 3 / 2; }

.contact-intro { margin-bottom: 70px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: clamp(40px, 8vw, 130px); align-items: start; }
.image-frame-contact img { aspect-ratio: 16 / 9; }
.inquiry-form { border-top: 1px solid var(--rule-light); }
.form-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 22px 0 28px; border-bottom: 1px solid var(--rule-light); }
.form-title strong { font-family: "Smiley Display", "Microsoft YaHei", sans-serif; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.04em; }
.inquiry-form label { display: block; padding: 18px 0 6px; color: rgba(16, 19, 21, .62); font-size: 12px; letter-spacing: .08em; }
.inquiry-form input, .inquiry-form textarea { display: block; width: 100%; margin-top: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule-light); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; line-height: 1.5; }
.inquiry-form textarea { resize: vertical; min-height: 110px; }
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--signal); }
.form-submit { width: 100%; margin-top: 22px; border: 0; }
.form-status { min-height: 27px; margin: 16px 0 0; color: var(--signal-dark); font-size: 13px; line-height: 1.5; }

.site-footer { position: relative; z-index: 2; background: var(--ink); color: var(--paper); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: center; min-height: 130px; border-bottom: 1px solid var(--rule-dark); }
.footer-brand { color: var(--paper); }
.footer-top p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--paper); font-size: 12px; letter-spacing: .1em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }

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

@media (max-width: 900px) {
  :root { --page: min(100% - 48px, 720px); }
  .site-header { padding: 0 24px; }
  .site-nav { gap: 20px; }
  .hero-lower, .focus-grid, .structure-layout, .route-layout, .sequence-grid, .inspection-layout, .project-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-lower { gap: 30px; }
  .hero-actions { justify-content: flex-start; }
  .section { padding: 100px 0; }
  .split-intro, .section-heading, .project-heading, .contact-intro { grid-template-columns: 1fr; gap: 26px; }
  .section-index { text-align: left; }
  .image-frame-atlas, .image-frame-inspection { justify-self: start; max-width: none; width: min(100%, 600px); }
  .route-copy .section-index, .inspection-copy .section-index { margin-bottom: 30px; }
  .route-copy { max-width: 40rem; }
  .project-heading { margin-bottom: 48px; }
  .image-frame-project { margin-top: 20px; }
}

@media (max-width: 660px) {
  :root { --page: calc(100% - 36px); }
  .site-header { min-height: 68px; padding: 0 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 68px; right: 0; left: 0; display: flex; visibility: hidden; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 18px 22px; transform: translateY(-12px); background: var(--ink); border-bottom: 1px solid var(--rule-dark); opacity: 0; pointer-events: none; transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s; }
  .site-nav.open { visibility: visible; transform: translateY(0); opacity: 1; pointer-events: auto; transition-delay: 0s; }
  .site-nav a { min-height: 48px; border-bottom: 1px solid var(--rule-dark); }
  .site-nav .nav-action { margin-top: 12px; padding-left: 0; border-bottom: 0; }
  .journey-rail svg { left: 6px; width: 36px; }
  .route-dot { left: 24px; }
  .route-dot-one { top: 17%; }
  .route-dot-two { top: 53%; }
  .route-dot-three { top: 85%; }
  h1 { font-size: clamp(3.8rem, 18vw, 6rem); }
  h2 { font-size: clamp(2.7rem, 13vw, 4.6rem); }
  .hero-image-wrap { height: 62vh; min-height: 380px; }
  .hero-image-note { right: 18px; bottom: 18px; }
  .hero-content { padding-top: 28px; padding-bottom: 24px; }
  .hero-meta, .hero-caption { flex-wrap: wrap; gap: 8px 18px; font-size: 9px; }
  .hero-content h1 { padding-top: 42px; }
  .hero-lower { padding-top: 26px; }
  .hero-lead { font-size: 1.1rem; }
  .hero-actions { flex-wrap: wrap; gap: 12px 22px; }
  .hero-caption { margin-top: 48px; }
  .section { padding: 78px 0; }
  .focus-grid, .structure-layout, .sequence-grid { margin-top: 48px; }
  .image-frame-tall { min-height: 0; }
  .note-line { gap: 14px; padding: 20px 0; }
  .display-quote { margin-bottom: 44px; font-size: 2.5rem; }
  .record-title { grid-template-columns: 1fr; gap: 10px; }
  .project-fields { grid-template-columns: repeat(2, 1fr); }
  .project-fields > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .project-fields > div:not(:nth-child(3n + 1)) { padding-left: 12px; }
  .project-fields > div:nth-child(even) { border-left: 1px solid var(--rule-dark); padding-left: 12px; }
  .project-fields > div:nth-child(odd) { padding-right: 12px; }
  .project-fields dd { font-size: 1.08rem; }
  .form-title { align-items: start; flex-direction: column; gap: 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 17px; padding: 28px 0; }
  .footer-top p { margin: 0; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .journey-trace { stroke-dashoffset: 0; }
}
