@font-face {
  font-family: "Kinugawa Sans";
  src: url("assets/fonts/noto-sans-sc-subset.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #111315;
  --carbon: #1d2124;
  --paper: #f2f3f1;
  --white: #ffffff;
  --steel: #a7afb4;
  --muted: #667078;
  --red: #d72a2a;
  --red-dark: #a21414;
  --red-link-dark: #ff7777;
  --ink-rule: rgba(17, 19, 21, 0.18);
  --light-rule: rgba(255, 255, 255, 0.24);
  --pad: clamp(22px, 4vw, 72px);
  --section-y: clamp(92px, 11vw, 160px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--graphite);
  font-family: "Kinugawa Sans", "Microsoft YaHei UI", sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--red); color: var(--white); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--graphite); border: 3px solid var(--paper); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 var(--pad);
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--ink-rule);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--graphite);
  font-size: clamp(.82rem, 1.25vw, 1rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 46px; height: 34px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; }
.brand-mark circle { fill: var(--white); stroke-width: 3; }
.brand-mark .brand-mark-red { fill: var(--red); stroke: var(--red); }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.35vw, 38px); }
.desktop-nav a {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--red);
  transition: right .32s var(--ease-out);
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; width: 48px; height: 48px; border: 0; padding: 12px; background: transparent; cursor: pointer; }
.menu-button span { display: block; height: 2px; background: var(--graphite); margin: 6px 0; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  align-content: center;
  padding: 92px var(--pad) 36px;
  background: var(--graphite);
  color: var(--white);
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out), opacity .25s ease-out, visibility 0s .55s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; clip-path: inset(0); transition-delay: 0s; }
.menu-close {
  position: absolute;
  right: var(--pad);
  top: 16px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--light-rule);
  background: transparent;
  cursor: pointer;
}
.menu-close svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mobile-menu nav { border-top: 1px solid var(--light-rule); }
.mobile-menu a {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--light-rule);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 800;
  text-decoration: none;
}
.mobile-menu a b { color: var(--red-link-dark); font-size: .8rem; letter-spacing: .12em; }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
}
.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 74px clamp(24px, 2.4vw, 42px) 122px var(--pad);
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.2rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
  white-space: nowrap;
}
.hero-copy > p { max-width: 590px; margin: 38px 0 24px; color: #d8dde0; font-size: clamp(1rem, 1.3vw, 1.18rem); }
.text-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 20px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.text-action svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease-out); }
.text-action:hover svg, .text-action:focus-visible svg { transform: translateX(6px); }
.hero-media { min-width: 0; margin: 0; }
.hero-media img { object-position: 61% center; }
.hero-route { position: absolute; z-index: 4; left: 0; bottom: -1px; width: 100%; height: 180px; pointer-events: none; }
.hero-route path { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-route 1.8s .35s var(--ease-out) forwards; }
.hero-route circle { fill: var(--red); animation: route-pulse 3s 2.1s ease-in-out infinite; }
@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes route-pulse { 0%,100% { opacity: .45; transform: scale(.8); transform-origin: center; } 50% { opacity: 1; transform: scale(1.35); } }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(34px, 6vw, 110px); align-items: end; }
.section-heading h2, .quality-intro h2, .application-copy h2, .development-heading h2, .contact-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.section-heading p, .quality-intro p, .development-heading p { max-width: 62ch; margin: 0; color: var(--muted); }

.process { padding: var(--section-y) var(--pad); background: var(--white); }
.process-heading { padding-bottom: clamp(64px, 8vw, 110px); }
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-rule);
}
.process-rail::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: linear-gradient(90deg, var(--red) 0 20%, var(--ink-rule) 20% 100%); }
.process-rail li { position: relative; min-height: 230px; padding: 42px clamp(18px, 2.2vw, 34px) 18px 0; border-right: 1px solid var(--ink-rule); }
.process-rail li:not(:first-child) { padding-left: clamp(18px, 2.2vw, 34px); }
.process-rail li:last-child { border-right: 0; }
.process-node { position: absolute; top: -17px; left: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--graphite); border-radius: 50%; background: var(--white); font-size: .66rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.process-rail li:first-child .process-node { background: var(--red); border-color: var(--red); color: var(--white); }
.process-rail li:not(:first-child) .process-node { left: clamp(18px, 2.2vw, 34px); }
.process-rail h3 { margin: 18px 0 12px; font-size: clamp(1.25rem, 1.7vw, 1.65rem); line-height: 1.15; }
.process-rail p { max-width: 23ch; margin: 0; color: var(--muted); font-size: .94rem; }

.products { background: var(--paper); }
.products-heading { padding: var(--section-y) var(--pad); }
.product-spread { min-height: 640px; display: grid; grid-template-columns: 1.35fr .65fr; border-top: 1px solid var(--ink-rule); }
.product-spread-reverse { grid-template-columns: .65fr 1.35fr; }
.product-spread-reverse figure { order: 2; }
.product-spread figure { min-width: 0; margin: 0; }
.product-spread img { min-height: 640px; }
.product-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 120px) var(--pad); }
.product-copy h3 { margin: 0 0 30px; font-size: clamp(2.05rem, 3.8vw, 3.8rem); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.product-copy p { max-width: 48ch; margin: 0 0 30px; }
.product-copy > a:not(.text-action) { align-self: flex-start; color: var(--red-dark); font-weight: 800; }
.product-copy > a span { margin-left: 8px; }
.product-spread-dark { background: var(--graphite); color: var(--white); border-top-color: var(--light-rule); }
.product-spread-dark .product-copy p { color: #cdd2d5; }
.product-spread-dark .product-copy > a { color: #ff7777; }
.text-action-dark { color: var(--graphite); }

.quality { display: grid; grid-template-columns: .7fr 1fr 1fr; background: var(--graphite); color: var(--white); }
.quality-intro { padding: var(--section-y) clamp(30px, 4vw, 72px); border-right: 1px solid var(--light-rule); }
.quality-intro h2 { font-size: clamp(2.3rem, 4vw, 4.3rem); }
.quality-intro p { margin-top: 36px; color: #cdd2d5; }
.quality-media { position: relative; min-width: 0; min-height: 720px; margin: 0; border-right: 1px solid var(--light-rule); }
.quality-media:last-child { border-right: 0; }
.quality-media img { min-height: 720px; }
.quality-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(17,19,21,.92)); pointer-events: none; }
.quality-media div { position: absolute; z-index: 2; left: clamp(26px, 3vw, 52px); right: clamp(26px, 3vw, 52px); bottom: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.5); }
.quality-media strong { display: block; font-size: 1.5rem; }
.quality-media span { color: #d6dade; }

.application { min-height: 760px; display: grid; grid-template-columns: 1.25fr .75fr; background: var(--paper); }
.application figure { margin: 0; min-width: 0; }
.application img { min-height: 760px; }
.application-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--section-y) var(--pad); }
.application-copy p { max-width: 48ch; margin: 36px 0 0; color: var(--muted); }

.development { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--white); border-top: 1px solid var(--ink-rule); }
.development-media { position: sticky; top: 74px; align-self: start; height: calc(100vh - 74px); }
.development-media img { object-position: 56% center; }
.development-content { padding: var(--section-y) var(--pad); }
.development-heading { padding-bottom: 76px; }
.development-heading p { margin-top: 30px; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--graphite); }
.timeline li { display: grid; grid-template-columns: 118px 1fr; gap: 28px; padding: 30px 0 34px; border-bottom: 1px solid var(--ink-rule); }
.timeline time { color: var(--red-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; }
.timeline p { margin: 0 0 12px; color: var(--muted); }
.timeline a { color: var(--red-dark); font-size: .88rem; font-weight: 800; }

.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--graphite); color: var(--white); }
.contact-copy { padding: var(--section-y) var(--pad); background: var(--red); color: var(--white); }
.contact-copy p { max-width: 54ch; margin: 38px 0 70px; }
.contact-copy dl { margin: 0; border-top: 1px solid rgba(255,255,255,.5); }
.contact-copy dl div { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.5); }
.contact-copy dt { font-weight: 800; }
.contact-copy dd { margin: 0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; align-content: center; padding: var(--section-y) var(--pad); }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.field input, .field textarea { width: 100%; color: var(--white); border: 0; border-bottom: 1px solid rgba(255,255,255,.55); border-radius: 0; padding: 9px 0; background: transparent; caret-color: var(--red); outline: none; }
.field input { min-height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom: 3px double var(--red); }
.contact-form button { grid-column: 1 / -1; min-height: 54px; display: flex; align-items: center; justify-content: space-between; border: 0; padding: 0 18px; background: var(--red); color: var(--white); font-weight: 800; cursor: pointer; }
.contact-form button:hover { background: #bd1f1f; }
.contact-form button svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.form-status { grid-column: 1 / -1; min-height: 1.7em; margin: -10px 0 0; color: #ffaaaa; font-weight: 700; }

.site-footer { min-height: 150px; display: grid; grid-template-columns: 1.25fr 1fr auto; align-items: center; gap: 34px; padding: 38px var(--pad); background: #090a0b; color: var(--white); border-top: 1px solid var(--light-rule); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark circle { fill: #090a0b; }
.site-footer p { margin: 0; color: #aeb5ba; font-size: .84rem; }
.site-footer p:last-child { color: var(--white); }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 620px; grid-template-columns: 46% 54%; }
  .hero-copy { padding-bottom: 110px; }
  .hero h1 { font-size: clamp(2.15rem, 4.2vw, 2.5rem); }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .process-rail { grid-template-columns: repeat(5, 1fr); }
  .process-rail li { padding-right: 12px; }
  .process-rail li:not(:first-child) { padding-left: 12px; }
  .process-rail li:not(:first-child) .process-node { left: 12px; }
  .process-rail h3 { font-size: 1.08rem; }
  .process-rail p { font-size: .84rem; }
  .product-spread, .product-spread-reverse { grid-template-columns: 1fr 1fr; }
  .quality { grid-template-columns: 1fr 1fr; }
  .quality-intro { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--light-rule); }
  .quality-media { min-height: 560px; }
  .quality-media img { min-height: 560px; }
  .application { grid-template-columns: 1fr; }
  .application img { min-height: 560px; }
  .development { grid-template-columns: 1fr; }
  .development-media { position: relative; top: auto; height: 540px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer p:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .site-header { height: 68px; }
  .brand { font-size: .78rem; gap: 8px; }
  .brand-mark { width: 38px; height: 30px; }
  .hero { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { order: 1; min-height: 470px; padding: 70px var(--pad) 74px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero h1 { white-space: normal; }
  .hero-copy > p { margin-top: 30px; }
  .hero-media { order: 2; height: 390px; }
  .hero-media img { object-position: 64% center; }
  .hero-route { display: none; }
  .section-heading h2, .quality-intro h2, .application-copy h2, .development-heading h2, .contact-copy h2 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .process-heading { padding-bottom: 58px; }
  .process-rail { display: block; border-top: 0; border-left: 2px solid var(--red); margin-left: 16px; }
  .process-rail::before { display: none; }
  .process-rail li, .process-rail li:not(:first-child) { min-height: 0; padding: 0 0 42px 48px; border: 0; }
  .process-rail li:last-child { padding-bottom: 0; }
  .process-node, .process-rail li:not(:first-child) .process-node { top: 0; left: -18px; }
  .process-rail h3 { margin-top: 0; }
  .products-heading { padding-bottom: 72px; }
  .product-spread, .product-spread-reverse { display: flex; flex-direction: column; min-height: 0; }
  .product-spread-reverse figure { order: initial; }
  .product-spread figure, .product-spread img { min-height: 340px; height: 340px; }
  .product-copy { padding: 62px var(--pad) 76px; }
  .quality { display: block; }
  .quality-intro { padding-top: 92px; padding-bottom: 84px; }
  .quality-media { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--light-rule); }
  .quality-media img { min-height: 430px; }
  .application { min-height: 0; }
  .application figure, .application img { min-height: 430px; height: 430px; }
  .application-copy { padding-top: 76px; padding-bottom: 90px; }
  .development-media { height: 420px; }
  .development-content { padding-top: 90px; }
  .timeline li { grid-template-columns: 82px 1fr; gap: 18px; }
  .contact { grid-template-columns: 1fr; }
  .contact-copy p { margin-bottom: 54px; }
  .contact-copy dl div { grid-template-columns: 82px 1fr; gap: 14px; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full, .contact-form button, .form-status { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .site-footer p:last-child { grid-column: auto; }
}

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