:root {
  --ink: #151515;
  --ink-soft: #4c4c4c;
  --paper: #f7f7f5;
  --white: #ffffff;
  --line: #d8d8d3;
  --blue: #2f5eea;
  --blue-dark: #2347bd;
  --red: #e92f2f;
  --red-dark: #bd2020;
  --yellow: #f0c62c;
  --max: 1240px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 14px; background: var(--white); }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: rgba(20, 20, 20, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; }
.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { margin-top: 5px; font-size: 11px; color: #bdbdb8; }

.primary-nav { display: flex; justify-content: center; gap: 28px; }
.primary-nav a { position: relative; color: #e2e2de; font-size: 14px; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--blue); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }

.language-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.28); }
.language-switch button { min-width: 42px; height: 34px; padding: 0 10px; border: 0; color: #d3d3cf; background: transparent; cursor: pointer; }
.language-switch button.active { color: var(--ink); background: var(--white); }
.menu-button { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--white); }

.hero {
  position: relative;
  min-height: min(780px, 88vh);
  padding: calc(var(--header) + 70px) max(24px, calc((100vw - var(--max)) / 2)) 90px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #202020 url("./assets/hero-material-workshop.webp") center / cover no-repeat;
  overflow: hidden;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,.94) 0%, rgba(11,11,11,.78) 42%, rgba(11,11,11,.16) 78%); }
.hero-content { position: relative; z-index: 1; width: min(720px, 65vw); }
.eyebrow, .section-index { margin: 0 0 20px; font-size: 12px; font-weight: 800; color: var(--blue); text-transform: uppercase; }
.hero .eyebrow { color: #8aa5ff; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; letter-spacing: 0; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(44px, 5.4vw, 76px); font-weight: 850; text-wrap: balance; }
.hero-lead { max-width: 670px; margin: 0; color: #e0e0dc; font-size: clamp(18px, 2vw, 22px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; font-weight: 750; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.button-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.hero-caption { position: absolute; right: 24px; bottom: 18px; z-index: 1; margin: 0; font-size: 12px; color: rgba(255,255,255,.65); }

.principles {
  width: min(var(--max), calc(100% - 48px));
  margin: -38px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: var(--ink);
  border-top: 4px solid var(--blue);
}
.principles > div { min-height: 150px; padding: 28px 26px; border-right: 1px solid #373735; }
.principles > div:last-child { border-right: 0; }
.principles span { display: block; margin-bottom: 15px; color: var(--yellow); font-size: 12px; font-weight: 800; }
.principles strong, .principles small { display: block; }
.principles strong { margin-bottom: 8px; font-size: 17px; }
.principles small { color: #bdbdb8; font-size: 13px; line-height: 1.55; }

.section { padding: 112px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 62px; }
h2 { margin-bottom: 24px; font-size: clamp(32px, 4.5vw, 58px); font-weight: 830; }
.section-heading > p:last-child, .development-intro > p:last-child, .quality-copy > p:last-child { color: var(--ink-soft); font-size: 18px; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 90px; row-gap: 68px; }
.about-lead h2 { max-width: 650px; }
.about-copy { align-self: end; max-width: 720px; color: var(--ink-soft); font-size: 18px; }
.about-copy p { margin: 0 0 20px; }
.about-copy p:last-child { margin-bottom: 0; }
.capability-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.capability-strip article { min-height: 220px; padding: 28px 26px; border-right: 1px solid var(--line); }
.capability-strip article:last-child { border-right: 0; }
.capability-strip span { color: var(--blue); font-size: 12px; font-weight: 850; }
.capability-strip h3 { margin: 40px 0 12px; font-size: 20px; }
.capability-strip p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.solution-list { border-top: 1px solid var(--ink); }
.solution-row { display: grid; grid-template-columns: 80px minmax(280px, 1.2fr) minmax(220px, .8fr); gap: 34px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.solution-number { width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); background: var(--ink); font-weight: 850; }
.solution-row h3 { margin-bottom: 12px; font-size: 27px; }
.solution-row p { margin-bottom: 0; color: var(--ink-soft); }
.solution-row ul { margin: 29px 0 0; padding: 0; list-style: none; }
.solution-row li { padding: 8px 0 8px 19px; position: relative; border-bottom: 1px solid var(--line); font-size: 14px; }
.solution-row li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; background: var(--yellow); }
.status { display: inline-flex; width: fit-content; margin: 0 0 12px !important; padding: 4px 8px; color: var(--ink) !important; font-size: 11px; font-weight: 800; line-height: 1.4; }
.status-scope { background: #e4e4df; }
.status-development { background: var(--yellow); }

.design-showcase { color: var(--white); background: #101010; }
.design-heading { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 90px; margin-bottom: 58px; }
.design-heading .section-index { grid-column: 1 / -1; color: #8aa5ff; }
.design-heading h2 { max-width: 620px; margin-bottom: 0; }
.design-heading > p:last-child { align-self: end; max-width: 680px; margin: 0; color: #bebeba; font-size: 17px; }
.design-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.design-item { position: relative; margin: 0; overflow: hidden; background: #1b1b1b; border: 1px solid #353535; }
.design-item-wide { grid-column: 1 / -1; }
.design-item img { width: 100%; aspect-ratio: 3 / 2; display: block; object-fit: cover; }
.design-item-wide img { aspect-ratio: 16 / 8.4; }
.design-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border-top: 1px solid #353535; }
.design-item figcaption span { color: #8aa5ff; font-size: 11px; font-weight: 850; }
.design-item figcaption strong { font-size: 15px; text-align: right; }

.development { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(460px, 1.2fr); gap: 90px; color: var(--white); background: var(--ink); }
.development .section-index { color: #8aa5ff; }
.development-intro > p:last-child { color: #bebeba; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #4a4a47; }
.process-list li { display: grid; grid-template-columns: 58px 1fr; gap: 25px; padding: 27px 0; border-bottom: 1px solid #4a4a47; }
.process-list li > span { color: var(--yellow); font-size: 13px; font-weight: 800; }
.process-list h3 { margin-bottom: 7px; font-size: 21px; }
.process-list p { margin: 0; color: #bebeba; font-size: 15px; }

.quality { display: grid; grid-template-columns: .85fr 1.15fr; gap: 82px; background: var(--white); }
.quality-table { align-self: start; border-top: 3px solid var(--ink); }
.quality-row { display: grid; grid-template-columns: .55fr 1.45fr 1fr; border-bottom: 1px solid var(--line); }
.quality-row span { padding: 17px 14px; }
.quality-row span:first-child { padding-left: 0; font-weight: 750; }
.quality-head { color: var(--ink-soft); font-size: 13px; font-weight: 800; }

.insights { background: #ecece8; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.insight-grid article { min-height: 310px; padding: 32px; border-right: 1px solid var(--ink); }
.insight-grid article:last-child { border-right: 0; }
.insight-grid article > p:first-child { color: var(--blue); font-size: 12px; font-weight: 800; }
.insight-grid h3 { min-height: 86px; margin: 28px 0 30px; font-size: 23px; }
details { border-top: 1px solid #b9b9b4; }
summary { padding: 16px 0; cursor: pointer; font-weight: 750; }
details p { color: var(--ink-soft); font-size: 14px; }

.project-brief { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; background: var(--white); }
.brief-heading h2 { font-size: clamp(34px, 3.3vw, 46px); text-wrap: balance; }
.brief-heading > p:last-child { color: var(--ink-soft); font-size: 17px; }
.brief-grid { align-self: start; display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.brief-grid li { min-height: 144px; display: grid; grid-template-columns: 42px 1fr; align-content: center; column-gap: 14px; padding: 23px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brief-grid li:nth-child(2n) { border-right: 0; }
.brief-grid span { grid-row: 1 / 3; color: var(--blue); font-size: 12px; font-weight: 850; }
.brief-grid strong { font-size: 18px; }
.brief-grid small { margin-top: 5px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; color: var(--white); background: var(--ink); }
.faq .section-index { color: #8aa5ff; }
.faq-heading h2 { max-width: 460px; }
.faq-list { border-bottom: 1px solid #4a4a47; }
.faq-list details { border-top-color: #4a4a47; }
.faq-list summary { position: relative; padding: 24px 48px 24px 0; color: var(--white); font-size: 18px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 19px; right: 2px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 780px; margin: -2px 48px 24px 0; color: #bebeba; font-size: 15px; line-height: 1.75; }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; color: var(--white); background: var(--blue); }
.contact .section-index { color: #101d4f; }
.contact h2 { max-width: 520px; }
.contact-copy > p { max-width: 700px; margin-top: 3px; font-size: 18px; }
.contact dl { margin: 36px 0 0; border-top: 1px solid rgba(255,255,255,.45); }
.contact dl > div { display: grid; grid-template-columns: 130px 1fr; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.45); }
.contact dt { color: #111d4d; font-weight: 800; }
.contact dd { margin: 0; }
.contact dd a { text-decoration: underline; text-underline-offset: 3px; }

.inquiry-form { grid-column: 1 / -1; position: relative; margin-top: 6px; padding: 42px; color: var(--ink); background: var(--white); border-top: 5px solid var(--yellow); }
.inquiry-form-heading { display: grid; grid-template-columns: .75fr 1.25fr; column-gap: 54px; align-items: end; margin-bottom: 34px; }
.inquiry-form-heading .form-kicker { grid-column: 1 / -1; margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 850; }
.inquiry-form-heading h3 { margin: 0; font-size: 30px; }
.inquiry-form-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.form-grid label { min-width: 0; display: grid; gap: 8px; }
.form-grid label > span { font-size: 13px; font-weight: 780; }
.form-wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 1px solid #b9b9b4; border-radius: 0; color: var(--ink); background: #fbfbfa; font: inherit; }
.form-grid input, .form-grid select { height: 50px; padding: 0 14px; }
.form-grid textarea { min-height: 170px; padding: 13px 14px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); outline: 3px solid rgba(47,94,234,.18); }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #777772; opacity: 1; }
.form-consent { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; margin-top: 24px; color: var(--ink-soft); font-size: 13px; }
.form-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.inquiry-submit { min-width: 160px; color: var(--white); background: var(--blue); border: 0; cursor: pointer; }
.inquiry-submit:hover { background: var(--blue-dark); }
.inquiry-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.form-actions p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.form-status { display: none; margin: 22px 0 0; padding: 14px 16px; color: #173f25; background: #e5f5e9; border-left: 4px solid #2b8a4b; font-weight: 700; }
.form-status.visible { display: block; }
.form-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 38px; padding: 36px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--ink); font-size: 13px; }
footer p { color: #aaa; }
.footer-brand .brand-logo { width: 36px; height: 36px; }

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

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .menu-button { display: block; order: 2; }
  .language-switch { order: 3; }
  .primary-nav { display: none; position: fixed; top: var(--header); left: 0; right: 0; padding: 22px 24px 30px; flex-direction: column; gap: 18px; background: #171717; border-bottom: 1px solid #3a3a3a; }
  .primary-nav.open { display: flex; }
  .hero-content { width: min(720px, 82vw); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles > div:nth-child(2) { border-right: 0; }
  .principles > div:nth-child(-n+2) { border-bottom: 1px solid #373735; }
  .about, .development, .quality, .project-brief, .faq, .contact { grid-template-columns: 1fr; gap: 56px; }
  .capability-strip { grid-template-columns: repeat(2, 1fr); }
  .capability-strip article:nth-child(2) { border-right: 0; }
  .capability-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .design-heading { grid-template-columns: 1fr; gap: 24px; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .insight-grid article:last-child { border-bottom: 0; }
  .insight-grid h3 { min-height: 0; }
  .inquiry-form { padding: 34px; }
}

@media (max-width: 720px) {
  :root { --header: 68px; }
  .site-header { gap: 9px; padding: 0 16px; }
  .brand { min-width: 0; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { display: none; }
  .language-switch button { min-width: 34px; padding: 0 6px; }
  .hero { min-height: 700px; padding: calc(var(--header) + 44px) 20px 68px; background-position: 59% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(11,11,11,.94), rgba(11,11,11,.7)); }
  .hero-content { width: 100%; }
  h1 { font-size: 42px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-caption { left: 20px; right: auto; }
  .principles { width: calc(100% - 32px); grid-template-columns: 1fr; margin-top: -30px; }
  .principles > div { min-height: 0; border-right: 0; border-bottom: 1px solid #373735; }
  .section { padding: 82px 20px; }
  h2 { font-size: 37px; }
  .section-heading > p:last-child, .development-intro > p:last-child, .quality-copy > p:last-child { font-size: 16px; }
  .about { row-gap: 44px; }
  .about-copy { font-size: 16px; }
  .capability-strip { grid-template-columns: 1fr; }
  .capability-strip article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-strip article:nth-child(2) { border-right: 0; }
  .capability-strip article:last-child { border-bottom: 0; }
  .capability-strip h3 { margin-top: 22px; }
  .design-grid { grid-template-columns: 1fr; gap: 14px; }
  .design-item-wide { grid-column: auto; }
  .design-item img, .design-item-wide img { aspect-ratio: 4 / 3; }
  .design-item figcaption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .design-item figcaption strong { text-align: left; }
  .solution-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .solution-row ul { grid-column: 2; margin-top: 0; }
  .quality-row { grid-template-columns: .7fr 1.3fr; }
  .quality-row span:nth-child(3) { grid-column: 2; padding-top: 0; color: var(--ink-soft); font-size: 13px; }
  .quality-head span:nth-child(3) { display: none; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-grid li { min-height: 124px; border-right: 0; }
  .faq-list summary { font-size: 16px; }
  .contact dl > div { grid-template-columns: 1fr; gap: 4px; }
  .inquiry-form { padding: 26px 20px; }
  .inquiry-form-heading, .form-grid { grid-template-columns: 1fr; }
  .inquiry-form-heading { gap: 12px; }
  .form-wide { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .inquiry-submit { width: 100%; }
  footer { grid-template-columns: 1fr; gap: 16px; }
}

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