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

:root {
  --limestone: #f1eee5;
  --oxide: #bd3d2a;
  --oxide-dark: #8e2a1e;
  --graphite: #1e2328;
  --sand: #b79a72;
  --mortar: #d9d2c4;
  --paper: #fbfaf6;
  --ink-soft: #555149;
  --header-height: 82px;
  --pad: clamp(20px, 4.2vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--limestone);
  font-family: "Smiley Sans", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--mortar); }
::-webkit-scrollbar-thumb { background: var(--oxide); border: 3px solid var(--mortar); }

a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

:focus-visible {
  outline: 3px solid #2169d6;
  outline-offset: 4px;
}

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

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 700;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -.03em;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px var(--pad);
  color: var(--graphite);
  background: rgba(241, 238, 229, .94);
  border-bottom: 1px solid rgba(30, 35, 40, .18);
  backdrop-filter: blur(12px);
}

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

.brand img { width: 46px; height: 46px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 19px; letter-spacing: .02em; }
.brand-copy small { margin-top: 5px; font-size: 12px; color: #5c584f; letter-spacing: .06em; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }

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

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 2px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  min-width: 52px;
  min-height: 52px;
  padding: 9px 10px;
  color: var(--graphite);
  background: transparent;
  border: 1px solid var(--graphite);
  cursor: pointer;
}

.menu-line { display: block; width: 28px; height: 2px; margin: 5px auto; background: currentColor; transition: transform 200ms var(--ease-out); }
.menu-label { display: block; font-size: 11px; line-height: 1; }

.hero {
  position: relative;
  min-height: 900px;
  height: 100svh;
  overflow: hidden;
  background: var(--mortar);
}

.hero::after {
  content: "";
  position: absolute;
  inset: var(--header-height) 0 36% 0;
  background: linear-gradient(90deg, rgba(241,238,229,.93) 0%, rgba(241,238,229,.7) 33%, rgba(241,238,229,0) 62%);
  pointer-events: none;
}

.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-copy {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-height) + clamp(58px, 8vh, 110px));
  left: var(--pad);
  width: min(780px, 60vw);
}

.hero-copy p { max-width: 52ch; margin-bottom: 0; font-size: clamp(17px, 1.5vw, 22px); color: #3e3b35; }

.spec-band {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  min-height: 32%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 48px;
  padding: clamp(32px, 4vw, 68px) var(--pad);
  color: var(--paper);
  background: var(--oxide);
  transform: translateY(28px);
  box-shadow: 0 18px 48px rgba(30, 35, 40, .26);
  transition: transform 900ms var(--ease-out);
}

body.ready .spec-band { transform: translateY(0); }

.spec-lead { align-self: end; }
.spec-lead p { margin-bottom: 8px; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; }
.spec-lead a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }

.spec-names {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  align-content: center;
  border-top: 1px solid rgba(251, 250, 246, .58);
}

.spec-names span { padding: 16px 10px 12px 0; border-bottom: 1px solid rgba(251, 250, 246, .34); font-size: clamp(16px, 1.4vw, 20px); }

.section-intro {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 50px;
  align-items: end;
  padding: clamp(100px, 12vw, 190px) var(--pad) clamp(62px, 7vw, 110px);
}

.section-intro h2 { margin-bottom: 0; max-width: 900px; }
.section-intro p { max-width: 36ch; margin-bottom: 10px; color: var(--ink-soft); }

.atlas-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  min-height: 660px;
  border-top: 1px solid rgba(30, 35, 40, .22);
}

.atlas-row--roman,
.atlas-row--resin { grid-template-columns: minmax(320px, 1fr) minmax(0, 1.65fr); }

.atlas-image { min-height: 560px; overflow: hidden; }
.atlas-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.atlas-row:hover .atlas-image img { transform: scale(1.018); }

.atlas-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 108px) var(--pad);
  background: var(--paper);
}

.atlas-row--roman .atlas-copy,
.atlas-row--resin .atlas-copy { background: var(--graphite); color: var(--paper); }

.atlas-copy p { max-width: 40ch; margin-bottom: 34px; color: var(--ink-soft); }
.atlas-row--roman .atlas-copy p,
.atlas-row--resin .atlas-copy p { color: #e4dfd5; }
.atlas-copy a { min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; color: var(--oxide-dark); }
.atlas-row--roman .atlas-copy a,
.atlas-row--resin .atlas-copy a { color: #ffd7ca; }

.product-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 var(--pad) clamp(90px, 10vw, 160px);
  background: var(--graphite);
  color: var(--paper);
}

.product-ribbon span {
  flex: 1 0 190px;
  padding: 22px 14px 22px 0;
  border-top: 1px solid rgba(251, 250, 246, .32);
  font-size: 18px;
}

.materials { background: var(--paper); }

.material-plane { position: relative; min-height: 840px; overflow: hidden; color: var(--paper); background: var(--graphite); }
.material-plane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.material-plane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,35,40,.96) 0%, rgba(30,35,40,.62) 45%, rgba(30,35,40,.08) 75%); }
.material-plane-copy { position: relative; z-index: 1; width: min(760px, 62vw); padding: clamp(120px, 15vw, 240px) var(--pad); }
.material-plane-copy p { max-width: 50ch; color: #e6e0d4; font-size: 20px; }

.cutaway {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.5fr);
  min-height: 660px;
}

.cutaway-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 8vw, 130px) var(--pad); }
.cutaway-copy p { max-width: 42ch; margin-bottom: 0; color: var(--ink-soft); }
.cutaway img { width: 100%; height: 100%; object-fit: cover; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
  min-height: 900px;
  background: var(--oxide);
  color: var(--paper);
}

.project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(90px, 11vw, 180px) var(--pad); }
.project-copy h2 { max-width: 760px; }
.project-copy > p { max-width: 60ch; color: #fff0ea; }
.project-name { margin: 18px 0 26px; padding: 22px 0; border-top: 1px solid rgba(251,250,246,.48); border-bottom: 1px solid rgba(251,250,246,.48); font-size: clamp(20px, 2vw, 29px); line-height: 1.45; }
.project-location { margin-top: 26px; margin-bottom: 0; font-size: 15px; }
.project-image { min-height: 720px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(50px, 8vw, 130px);
  padding: clamp(100px, 12vw, 190px) var(--pad);
  background: var(--limestone);
}

.contact-heading p { max-width: 46ch; color: var(--ink-soft); }
.contact-list { margin: 48px 0 0; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 17px 0; border-top: 1px solid rgba(30,35,40,.28); }
.contact-list dt { color: var(--ink-soft); font-size: 14px; }
.contact-list dd { margin: 0; font-size: clamp(18px, 1.7vw, 24px); overflow-wrap: anywhere; }

.inquiry-form { align-self: start; padding-top: 12px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inquiry-form label { display: grid; gap: 8px; margin-bottom: 22px; font-size: 14px; color: #4f4b43; }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--graphite);
  background: var(--paper);
  border: 1px solid #777168;
  border-radius: 0;
  caret-color: var(--oxide);
}
.inquiry-form textarea { min-height: 150px; resize: vertical; }
.inquiry-form input:hover,
.inquiry-form select:hover,
.inquiry-form textarea:hover { border-color: var(--graphite); }
.inquiry-form input:focus-visible,
.inquiry-form select:focus-visible,
.inquiry-form textarea:focus-visible { outline: 3px solid #2169d6; outline-offset: 3px; border-color: var(--graphite); }
.inquiry-form [aria-invalid="true"] { border-color: #9d1919; background: #fff8f5; }
.form-action { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.form-action button {
  min-height: 52px;
  padding: 12px 24px;
  color: var(--paper);
  background: var(--graphite);
  border: 1px solid var(--graphite);
  border-radius: 0;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.form-action button:hover { color: var(--graphite); background: transparent; }
.form-action button:disabled { cursor: not-allowed; opacity: .52; }
.form-status { min-height: 52px; margin: 0; padding: 11px 0; color: var(--oxide-dark); font-size: 15px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: end;
  padding: 46px var(--pad);
  color: var(--paper);
  background: var(--graphite);
  font-size: 13px;
}

.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand p { display: grid; margin: 0; line-height: 1.35; }
.footer-brand strong { font-size: 16px; }
.footer-brand span { color: #cfc7ba; }
.site-footer > p { margin-bottom: 0; color: #d6d0c5; }

@media (max-width: 1040px) {
  :root { --header-height: 76px; }
  .hero { min-height: 820px; }
  .hero-copy { width: min(710px, 72vw); }
  .spec-band { grid-template-columns: 1fr 1.8fr; }
  .spec-names { grid-template-columns: repeat(2, 1fr); }
  .atlas-row,
  .atlas-row--roman,
  .atlas-row--resin { min-height: 560px; grid-template-columns: 1.2fr 1fr; }
  .atlas-row--roman,
  .atlas-row--resin { grid-template-columns: 1fr 1.2fr; }
  .atlas-image { min-height: 500px; }
  .project { grid-template-columns: 1.15fr .85fr; }
  .contact { grid-template-columns: 1fr 1fr; gap: 48px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-note { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; --pad: 20px; }
  body { font-size: 16px; }
  .site-header { backdrop-filter: none; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  h2 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  h3 { font-size: clamp(2rem, 8vw, 3rem); }
  .brand-copy small { display: none; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px var(--pad) 60px;
    color: var(--paper);
    background: var(--graphite);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 360ms var(--ease-out), visibility 0s linear 360ms;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .site-nav a { min-height: 72px; border-bottom: 1px solid rgba(251,250,246,.28); font-size: 28px; }
  .site-nav a::after { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-line:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: 760px; height: 100svh; }
  .hero::after { inset: var(--header-height) 0 40% 0; background: linear-gradient(180deg, rgba(241,238,229,.96), rgba(241,238,229,.64) 62%, rgba(241,238,229,0)); }
  .hero-image { object-position: 66% center; }
  .hero-copy { top: calc(var(--header-height) + 42px); left: var(--pad); width: calc(100% - 40px); }
  .hero-copy p { max-width: 38ch; font-size: 16px; line-height: 1.55; }
  .spec-band { min-height: 39%; grid-template-columns: 1fr; gap: 18px; padding: 24px var(--pad) 30px; }
  .spec-lead { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .spec-lead p { margin-bottom: 0; font-size: 23px; }
  .spec-lead a { font-size: 13px; }
  .spec-names { grid-template-columns: repeat(4, 1fr); }
  .spec-names span { padding: 12px 6px 10px 0; font-size: 14px; }
  .section-intro { grid-template-columns: 1fr; gap: 24px; padding-top: 92px; padding-bottom: 56px; }
  .section-intro p { margin-bottom: 0; }
  .atlas-row,
  .atlas-row--roman,
  .atlas-row--resin { display: flex; flex-direction: column; min-height: 0; }
  .atlas-row--roman .atlas-copy,
  .atlas-row--resin .atlas-copy { order: 2; }
  .atlas-row--roman .atlas-image,
  .atlas-row--resin .atlas-image { order: 1; }
  .atlas-image { min-height: 310px; height: 58vw; }
  .atlas-copy { padding: 54px var(--pad) 62px; }
  .atlas-copy p { margin-bottom: 24px; }
  .product-ribbon { padding-bottom: 82px; }
  .product-ribbon span { flex-basis: 50%; font-size: 15px; }
  .material-plane { min-height: 740px; }
  .material-plane::after { background: linear-gradient(180deg, rgba(30,35,40,.93) 0%, rgba(30,35,40,.58) 58%, rgba(30,35,40,.12)); }
  .material-plane-copy { width: 100%; padding: 88px var(--pad); }
  .material-plane-copy p { font-size: 17px; }
  .cutaway { display: flex; flex-direction: column; min-height: 0; }
  .cutaway-copy { padding: 72px var(--pad); }
  .cutaway img { height: 380px; object-fit: cover; }
  .project { display: flex; flex-direction: column; min-height: 0; }
  .project-copy { padding: 82px var(--pad); }
  .project-image { min-height: 620px; height: 120vw; }
  .contact { grid-template-columns: 1fr; gap: 60px; padding-top: 88px; padding-bottom: 100px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .form-action { grid-template-columns: 1fr; gap: 8px; }
  .form-action button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .footer-note { grid-column: auto; grid-row: auto; }
}

@media (max-width: 420px) {
  .brand-copy strong { font-size: 17px; }
  .hero-copy { top: calc(var(--header-height) + 32px); }
  .hero-copy p { font-size: 15px; }
  .spec-band { min-height: 41%; }
  .spec-names span { font-size: 13px; }
  .contact-list div { grid-template-columns: 92px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .spec-band { transform: none; }
}
