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

:root {
  --ink: #111718;
  --steel: #667074;
  --paper: #ece9e2;
  --chalk: #f8f5ed;
  --oxide: #d4512f;
  --oxide-strong: #b13a1c;
  --line: rgba(17, 23, 24, 0.25);
  --max: 1380px;
  --header: 80px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header); scrollbar-color: var(--steel) var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

::selection { color: var(--chalk); background: var(--oxide-strong); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--steel); border: 2px solid var(--paper); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--chalk);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--header);
  padding: 14px clamp(20px, 4vw, 64px);
  color: var(--chalk);
  background: rgba(17, 23, 24, 0.96);
  border-bottom: 1px solid rgba(248, 245, 237, 0.18);
  transition: background 220ms ease;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 50px); }
.site-nav a { position: relative; color: inherit; text-decoration: none; font-size: 14px; }
.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.nav-contact { padding: 11px 18px; color: var(--ink) !important; background: var(--chalk); }
.nav-contact:hover { background: var(--oxide-strong); color: var(--chalk) !important; }
.menu-toggle { display: none; }

.section-shell { width: min(calc(100% - 80px), var(--max)); margin-inline: auto; }

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--chalk);
  background: var(--ink);
  overflow: hidden;
}

.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 11, 12, 0.94) 0%, rgba(8, 11, 12, 0.72) 38%, rgba(8, 11, 12, 0.08) 72%); }
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  width: min(860px, calc(100% - 80px));
  padding: calc(var(--header) + 56px) 0 clamp(72px, 10vh, 118px) clamp(40px, 6vw, 102px);
}

.hero h1, h2, h3 { margin: 0; font-family: "Smiley Sans", "Microsoft YaHei", sans-serif; font-weight: 700; line-height: 0.98; text-wrap: balance; }
.hero h1 { max-width: 11ch; font-size: clamp(64px, 8.6vw, 138px); letter-spacing: -0.035em; }
.hero-summary { max-width: 640px; margin: 30px 0 36px; color: #e8e2d7; font-size: clamp(17px, 1.45vw, 22px); }
.text-link { display: inline-flex; gap: 18px; align-items: center; width: fit-content; font-weight: 700; text-decoration: none; }
.text-link svg, form button svg { width: 32px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 180ms ease; }
.text-link svg { color: var(--oxide); }
.text-link:hover svg, form button:hover svg { transform: translateX(8px); }
.hero-datum { position: absolute; right: 0; bottom: 34px; left: 0; z-index: 1; height: 1px; background: rgba(248, 245, 237, 0.3); }
.hero-datum span { display: block; width: 32%; height: 3px; margin-top: -1px; background: var(--oxide); transform-origin: left; animation: datum-sweep 1.1s cubic-bezier(.16,1,.3,1) both; }
@keyframes datum-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.project { padding-block: clamp(110px, 14vw, 210px); }
.section-heading { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 8vw; align-items: end; }
.section-heading h2, .direction-intro h2, .material-copy h2, .taxonomy h2, .development h2, .contact h2 { font-size: clamp(48px, 6.4vw, 98px); letter-spacing: -0.035em; }
.section-heading p, .direction-intro p, .taxonomy-copy p, .development-heading p { max-width: 62ch; margin: 0 0 4px; color: #414b4e; }
.fact-ledger { margin-top: clamp(72px, 9vw, 138px); border-top: 2px solid var(--ink); }
.fact-row { display: grid; grid-template-columns: minmax(160px, .4fr) 1.6fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.fact-row span { color: #4c5659; }
.fact-row strong { font-size: clamp(20px, 2.1vw, 32px); font-weight: 600; line-height: 1.4; }
.fact-row.split { grid-template-columns: minmax(120px,.35fr) .65fr minmax(120px,.35fr) .65fr; }
.fact-row b { color: var(--oxide); font-family: "Smiley Sans", sans-serif; font-size: 1.6em; font-variant-numeric: tabular-nums; }

.direction-intro { display: grid; grid-template-columns: 1fr .72fr; gap: 9vw; align-items: end; padding-bottom: clamp(72px, 9vw, 130px); }
.direction-panel { min-height: 78vh; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
.direction-panel.reverse { grid-template-columns: 1.1fr .9fr; }
.direction-panel.reverse .direction-copy { order: 2; }
.direction-panel.dark { color: var(--chalk); background: var(--ink); }
.direction-panel.paper { background: #dedbd4; }
.direction-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 8vw, 140px); }
.direction-copy h3 { font-size: clamp(42px, 5vw, 76px); letter-spacing: -.03em; }
.direction-copy p { max-width: 54ch; margin: 34px 0 0; color: inherit; opacity: .78; }
.portrait-figure { min-height: 680px; overflow: hidden; }
.portrait-figure img { width: 100%; height: 100%; object-fit: cover; }

.material-story { position: relative; min-height: 100vh; color: var(--chalk); background: #282f31; }
.material-macro { position: sticky; top: 0; height: 100vh; }
.material-macro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,23,24,.06), rgba(17,23,24,.78)); }
.material-macro img { width: 100%; height: 100%; object-fit: cover; }
.material-copy { position: relative; z-index: 1; margin-top: -100vh; min-height: 100vh; display: grid; grid-template-columns: .9fr .6fr; grid-template-rows: auto auto; column-gap: 10vw; align-content: center; padding-left: 46%; }
.material-copy h2 { grid-column: 1 / -1; }
.material-copy > p { max-width: 50ch; margin: 36px 0; color: #dedbd4; }
.communication-line { grid-column: 1 / -1; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(248,245,237,.35); }
.communication-line li { display: grid; grid-template-columns: .65fr 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(248,245,237,.2); }
.communication-line span { color: #b9c0c1; }
.communication-line b { font-weight: 600; }

.taxonomy { padding-block: clamp(110px, 13vw, 200px); }
.taxonomy-copy { display: grid; grid-template-columns: 1fr .75fr; gap: 9vw; align-items: end; margin-bottom: 70px; }
.wide-figure { overflow: hidden; background: var(--ink); }
.wide-figure img { width: 100%; aspect-ratio: 16 / 8.8; object-fit: cover; transition: transform 900ms cubic-bezier(.16,1,.3,1); }
.wide-figure:hover img { transform: scale(1.02); }

.precision-band { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 74vh; color: var(--chalk); background: var(--ink); }
.precision-image { min-height: 620px; }
.precision-image img { width: 100%; height: 100%; object-fit: cover; }
.precision-quote { display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: clamp(60px, 8vw, 130px); border-left: 1px solid rgba(248,245,237,.2); }
.precision-quote p { margin: 0; font-family: "Smiley Sans", sans-serif; font-size: clamp(42px, 5vw, 78px); line-height: 1; letter-spacing: -.03em; }
.precision-quote cite { color: #b8bec0; font-style: normal; }

.development { padding-block: clamp(110px, 13vw, 200px); }
.development-heading { display: grid; grid-template-columns: 1fr .6fr; gap: 10vw; align-items: end; }
.development-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 5vw; margin-top: clamp(68px, 8vw, 120px); }
.development-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.timeline { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-left: 42px; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 1px; background: var(--line); }
.time-point { position: relative; padding-bottom: 54px; }
.time-point::before { content: ""; position: absolute; top: 7px; left: -42px; width: 15px; height: 15px; background: var(--paper); border: 2px solid var(--steel); border-radius: 50%; }
.time-point.active::before { background: var(--oxide); border-color: var(--oxide); }
.time-point time { display: block; font-family: "Smiley Sans", sans-serif; font-size: clamp(36px, 4vw, 64px); font-variant-numeric: tabular-nums; line-height: 1; }
.time-point p { margin: 12px 0 0; color: #4c5659; }

.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; color: var(--chalk); background: #1d2527; }
.contact-image { min-height: 760px; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.contact-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 8vw, 130px); }
.contact-panel > p { max-width: 54ch; margin: 32px 0 54px; color: #cbd0cf; }
form { display: grid; gap: 30px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
label { display: grid; gap: 8px; color: #cbd0cf; font-size: 14px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  color: var(--chalk);
  caret-color: var(--oxide);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(248,245,237,.35);
  border-radius: 0;
}
textarea { resize: vertical; }
select option { color: var(--ink); background: var(--paper); }
input::placeholder, textarea::placeholder { color: #9da6a7; }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--oxide); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--oxide); outline-offset: 4px; }
form button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  padding: 14px 20px;
  color: var(--chalk);
  background: var(--oxide-strong);
  border: 0;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
form button:hover { color: var(--ink); background: var(--chalk); }
.form-status { min-height: 1.65em; margin: -10px 0 0; color: #ffd1c4; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: end; padding: 54px clamp(20px, 4vw, 64px); color: var(--chalk); background: var(--ink); border-top: 1px solid rgba(248,245,237,.2); }
.site-footer div { display: flex; gap: 18px; align-items: center; }
.site-footer p { margin: 0; color: #c0c7c7; font-size: 14px; }
.site-footer div p { color: var(--chalk); font-weight: 700; }

.reveal { opacity: 1; transform: none; }
.js .reveal { clip-path: inset(0 0 10% 0); filter: blur(5px); transition: clip-path 700ms cubic-bezier(.16,1,.3,1), filter 700ms cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { clip-path: inset(0 0 0 0); filter: blur(0); }

@media (max-width: 1024px) {
  .section-shell { width: min(calc(100% - 48px), var(--max)); }
  .hero-content { width: min(780px, calc(100% - 48px)); padding-left: 24px; }
  .section-heading, .direction-intro, .taxonomy-copy, .development-heading { grid-template-columns: 1fr; gap: 34px; }
  .direction-copy { padding: 68px 48px; }
  .material-copy { padding-left: 38%; }
  .development-grid { grid-template-columns: 1fr; }
  .timeline { min-height: 360px; }
  .contact-panel { padding: 64px 48px; }
}

@media (max-width: 864px) {
  :root { --header: 72px; }
  .site-header { min-height: var(--header); padding: 12px 24px; }
  .brand span { max-width: 13em; font-size: 13px; line-height: 1.3; }
  .brand img { width: 44px; height: 44px; }
  .menu-toggle {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    min-width: 56px;
    min-height: 46px;
    color: var(--chalk);
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .menu-lines, .menu-lines::before { display: block; width: 22px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-lines { position: relative; }
  .menu-lines::before { content: ""; position: absolute; top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(90deg); }
  .site-nav {
    position: fixed;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 24px;
    color: var(--chalk);
    background: var(--ink);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 260ms cubic-bezier(.16,1,.3,1), visibility 260ms;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .site-nav a { padding: 18px 0; font-family: "Smiley Sans", sans-serif; font-size: clamp(34px, 8vw, 56px); border-bottom: 1px solid rgba(248,245,237,.22); }
  .nav-contact { margin-top: 26px; padding: 16px !important; font-size: 26px !important; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,11,12,.92), rgba(8,11,12,.28)); }
  .hero-content { width: calc(100% - 48px); padding: calc(var(--header) + 40px) 0 76px 24px; }
  .hero h1 { font-size: clamp(58px, 15vw, 104px); }
  .fact-row.split { grid-template-columns: minmax(110px,.5fr) 1fr; }
  .direction-panel, .direction-panel.reverse { grid-template-columns: 1fr; min-height: auto; }
  .direction-panel.reverse .direction-copy { order: 0; }
  .portrait-figure { min-height: 70vh; max-height: 820px; }
  .material-macro { position: relative; height: 70vh; }
  .material-copy { margin-top: 0; min-height: auto; padding: 96px 24px; grid-template-columns: 1fr; }
  .material-macro::after { background: linear-gradient(0deg, rgba(17,23,24,.72), rgba(17,23,24,.06)); }
  .precision-band { grid-template-columns: 1fr; }
  .precision-image { min-height: 64vh; }
  .precision-quote { min-height: 520px; border-left: 0; border-top: 1px solid rgba(248,245,237,.2); }
  .contact { grid-template-columns: 1fr; }
  .contact-image { min-height: 62vh; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 540px) {
  .section-shell { width: calc(100% - 40px); }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-content { width: calc(100% - 40px); padding-left: 20px; }
  .hero-summary { font-size: 16px; }
  .project, .taxonomy, .development { padding-block: 92px; }
  .section-heading h2, .direction-intro h2, .material-copy h2, .taxonomy h2, .development h2, .contact h2 { font-size: clamp(44px, 13vw, 62px); }
  .fact-row, .fact-row.split { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .fact-row.split strong:not(:last-child) { margin-bottom: 20px; }
  .direction-intro { padding-bottom: 70px; }
  .direction-copy { padding: 72px 20px; }
  .direction-copy h3 { font-size: clamp(42px, 12vw, 58px); }
  .portrait-figure { min-height: 60vh; }
  .material-copy { padding: 84px 20px; }
  .communication-line li { grid-template-columns: 1fr; gap: 4px; }
  .taxonomy-copy { margin-bottom: 44px; }
  .wide-figure img { aspect-ratio: 4 / 3; }
  .precision-image { min-height: 54vh; }
  .precision-quote { min-height: 420px; padding: 58px 20px; }
  .development-image img { min-height: 48vh; }
  .timeline { min-height: 320px; }
  .contact-image { min-height: 50vh; }
  .contact-panel { padding: 76px 20px; }
  .field-pair { grid-template-columns: 1fr; }
  .site-footer { padding: 44px 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; }
  .js .reveal { clip-path: none; filter: none; }
}
